Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mathics/doc/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def escape_latex_code(text):

text = escape_latex_output(text)
escape_char = get_latex_escape_char(text)
return "\\lstinline%s%s%s" % (escape_char, text, escape_char)
return "%s%s%s" % (escape_char, text, escape_char)


def escape_latex(text):
Expand Down Expand Up @@ -216,7 +216,7 @@ def repl(match):
text = r"\ " + text[1:]
if text.endswith(" "):
text = text[:-1] + r"\ "
return "\\code{\\lstinline%s%s%s}" % (escape_char, text, escape_char)
return "\\code{%s%s%s}" % (escape_char, text, escape_char)
else:
# treat double '' literaly
return "''"
Expand Down Expand Up @@ -251,8 +251,8 @@ def repl_list(match):
text,
[
("$", r"\$"),
("\u22bc", "nand"), # \barwedge isn't working
("\u22bd", "nor"), # \vebarr isn't working
("\u22bc", r"$\not\land$"),
("\u22bd", r"$\not\lor$"),
("\u03c0", r"$\pi$"),
("\u2265", r"$\ge$"),
("\u2264", r"$\le$"),
Expand Down
2 changes: 1 addition & 1 deletion mathics/doc/tex/mathics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
\end{minipage}%
}

\newcommand{\code}[1]{\hbadness=10000{\ttfamily #1}}
\newcommand{\code}[1]{\hbadness=10000{#1}}
\newcommand{\codevar}[1]{{\rmfamily #1}}
\newcommand{\console}[1]{\hbadness=10000{\ttfamily #1}}

Expand Down