Browse files

suppress ligatures in \code as well as \samp

git-svn-id: https://svn.r-project.org/R/trunk@56347 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
1 parent 3133d47 commit 4622cb425ec3f665fa09461e834e05174848a713 ripley committed Jul 10, 2011
Showing with 5 additions and 1 deletion.
  1. +4 −0 doc/NEWS.Rd
  2. +1 −1 share/texmf/tex/latex/Rd.sty
View
4 doc/NEWS.Rd
@@ -728,6 +728,10 @@
\item Rd conversion to latex mis-handled multi-line titles
(including cases where there was a blank line in the \samp{\title}
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).
}
}
}
View
2 share/texmf/tex/latex/Rd.sty
@@ -207,7 +207,7 @@
%% \code without `-' ligatures
{\catcode`\-=\active%
- \global\def\code{\bgroup%
+ \global\def\code{\bgroup\@noligs%
\catcode`\-=\active \let-\codedash%
\Rd@code}}
\def\codedash{-\discretionary{}{}{}}

0 comments on commit 4622cb4

Please sign in to comment.