Mike Lawrence
2012-Aug-06 22:01 UTC
[Rd] Straight-quotes for usage and examples sections in PDF docs?
Is there any way to ensure that quotation marks are left as straight quotes and not converted to curly quotes in the \usage and \examples sections when the pdf versions of the docs are created?
Dan Tenenbaum
2012-Aug-07 00:17 UTC
[Rd] Straight-quotes for usage and examples sections in PDF docs?
On Mon, Aug 6, 2012 at 3:01 PM, Mike Lawrence <mike.lwrnc at gmail.com> wrote:> Is there any way to ensure that quotation marks are left as straight > quotes and not converted to curly quotes in the \usage and \examples > sections when the pdf versions of the docs are created? >Perhaps if the R session that builds the package has this option set: options('useFancyQuotes' = FALSE) I'm not sure what the context is, so I don't know if you'll be able to control this in every case. Dan> ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Prof Brian Ripley
2012-Aug-08 11:13 UTC
[Rd] Straight-quotes for usage and examples sections in PDF docs?
On 06/08/12 23:01, Mike Lawrence wrote:> Is there any way to ensure that quotation marks are left as straight > quotes and not converted to curly quotes in the \usage and \examples > sections when the pdf versions of the docs are created?They are not converted ... so there cannot be a way. In standard terminology 'quotation marks' are ASCII/Unicode " , and that is what is in the PDF files (in so far as we can guess what you mean without an explicit example). I have no idea what 'straight quotes' and 'curly quotes' are in your lexicon, but how even ASCII characters are rendered depends on the fonts used. The R pdf manuals by default use inconsolata, where quotation marks are somewhat italic. We knew that when selecting inconsolata, but it was the best compromise of the feasible choices. Chose something else it you prefer a different compromise. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595