Skip to content

Commit

Permalink
Merge pull request #2627 from jfbu/latex_inlinecodeusestraightquotes
Browse files Browse the repository at this point in the history
LaTeX use straight quotes also in inline code
  • Loading branch information
jfbu committed Jun 8, 2016
2 parents b8017b0 + 82758b1 commit a51681b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sphinx/texinputs/sphinx.sty
Expand Up @@ -145,7 +145,10 @@
% Some custom font markup commands.
%
\newcommand{\strong}[1]{{\textbf{#1}}}
\newcommand{\code}[1]{\texttt{#1}}
% let \code and \bfcode use straight quotes (\@noligs patched by upquote)
% use \scantokens to handle e.g. \item[{\code{'fontenc'}}], too late for
% \code to change catcodes.
\newcommand{\code}[1]{{\@noligs\scantokens{\texttt{#1}}}}
\newcommand{\bfcode}[1]{\code{\bfseries#1}}
\newcommand{\email}[1]{\textsf{#1}}
\newcommand{\tablecontinued}[1]{\textsf{#1}}
Expand Down

0 comments on commit a51681b

Please sign in to comment.