From 849cc20e88cda29430575e93787a08351865c7bb Mon Sep 17 00:00:00 2001 From: Nathan Hattersley Date: Fri, 12 Mar 2021 14:43:38 -0600 Subject: [PATCH] Change tex escaping to tex comments Take more opinionated stance on TeX inside julia blocks--LaTeX belongs in comments. --- src/rendering/texformats.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rendering/texformats.jl b/src/rendering/texformats.jl index 825d7eb..3f05905 100644 --- a/src/rendering/texformats.jl +++ b/src/rendering/texformats.jl @@ -152,11 +152,11 @@ end Base.@kwdef mutable struct LaTeXMinted <: LaTeXFormat description = "LaTeX using minted package for code highlighting" extension = "tex" - codestart = "\\begin{minted}[escapeinside=||, mathescape, fontsize=\\small, xleftmargin=0.5em]{julia}" + codestart = "\\begin{minted}[texcomments = true, mathescape, fontsize=\\small, xleftmargin=0.5em]{julia}" codeend = "\\end{minted}" - termstart = "\\begin{minted}[escapeinside=||, mathescape, fontsize=\\footnotesize, xleftmargin=0.5em]{jlcon}" + termstart = "\\begin{minted}[texcomments = true, mathescape, fontsize=\\footnotesize, xleftmargin=0.5em]{jlcon}" termend = "\\end{minted}" - outputstart = "\\begin{minted}[escapeinside=||, mathescape, fontsize=\\small, xleftmargin=0.5em, frame = leftline]{text}" + outputstart = "\\begin{minted}[texcomments = true, mathescape, fontsize=\\small, xleftmargin=0.5em, frame = leftline]{text}" outputend = "\\end{minted}" mimetypes = ["application/pdf", "image/png", "text/latex", "text/plain"] fig_ext = ".pdf"