Next: Inserting Space, Previous: Atsign Braces Comma, Up: Insertions
As explained in the early section on general Texinfo input conventions
(see Conventions), Texinfo source files use the ASCII character
`
(96 decimal) to produce a left quote (`), and ASCII '
(39 decimal) to produce a right quote ('). Doubling these input
characters (``
and ''
) produces double quotes (“ and
”). These are the conventions used by TeX.
This works all right for text. However, in examples of computer code, readers are especially likely to cut and paste the text verbatim—and, unfortunately, some document viewers will mangle these characters. (The free PDF reader xpdf works fine, but other PDF readers, both free and nonfree, have problems.)
If this is a concern for your document, Texinfo provides two special
settings via @set
:
@set txicodequoteundirected
'
character to be the undirected
single quote, like this:
'
.
@set txicodequotebacktick
`
character to be the standalone grave
accent, like this:
`
.
xyza`'bc
If you want these settings for only part of the document,
@clear
will restore the normal behavior, as in
@clear txicodequoteundirected
.
These settings affect @code
, @example
, and
@verbatim
; they do not affect @samp
. (See Useful Highlighting.)