Skip to content

Commit

Permalink
suppress ligatures in \code as well as \samp
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@56347 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Jul 10, 2011
1 parent 3133d47 commit 4622cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/NEWS.Rd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -728,6 +728,10 @@
\item Rd conversion to latex mis-handled multi-line titles \item Rd conversion to latex mis-handled multi-line titles
(including cases where there was a blank line in the \samp{\title} (including cases where there was a blank line in the \samp{\title}
section). (It seems this happened only in 2.13.0 patched.) section). (It seems this happened only in 2.13.0 patched.)

\item In a a \file{.Rd} file, \samp{\\code{''}} was mis-converted
to latex and rendered in e.g. PDF as a double quote (a single
character).
} }
} }
} }
Expand Down
2 changes: 1 addition & 1 deletion share/texmf/tex/latex/Rd.sty
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
%% \code without `-' ligatures %% \code without `-' ligatures
{\catcode`\-=\active% {\catcode`\-=\active%
\global\def\code{\bgroup% \global\def\code{\bgroup\@noligs%
\catcode`\-=\active \let-\codedash% \catcode`\-=\active \let-\codedash%
\Rd@code}} \Rd@code}}
\def\codedash{-\discretionary{}{}{}} \def\codedash{-\discretionary{}{}{}}
Expand Down

0 comments on commit 4622cb4

Please sign in to comment.