Info Node: (texinfo)Inserting Quote Characters

CFHT HOME texinfo: Inserting Quote Characters


up: Insertions next: Inserting Space prev: Special Characters Back to Software Index

14.2 Inserting Quote Characters
===============================

As explained in the early section on general Texinfo input conventions
(Note: 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 you, Texinfo provides these two commands:

'@codequoteundirected ON-OFF'
     causes the output for the ''' character in code environments to be
     the undirected single quote, like this: '''.

'@codequotebacktick ON-OFF'
     causes the output for the '`' character in code environments to be
     the backtick character (standalone grave accent), like this: '`'.

  If you want these settings for only part of the document,
'@codequote... off' will restore the normal behavior, as in
'@codequoteundirected off'.

  These settings affect '@code', '@example', '@kbd', '@samp', '@verb',
and '@verbatim'.  Note: Useful Highlighting.

  This feature used to be controlled by '@set' variable names; they are
still supported, but the command interface is preferred.


automatically generated by info2www version 1.2