JezK
Edit File: Inserting-Quotation-Marks.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This manual is for GNU Texinfo (version 6.8, 8 June 2021), a documentation system that can produce both online information and a printed manual from a single source using semantic markup. Copyright (C) 1988, 1990-1993, 1995-1999, 2001-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". --> <title>Inserting Quotation Marks (GNU Texinfo 6.8)</title> <meta name="description" content="Inserting Quotation Marks (GNU Texinfo 6.8)"> <meta name="keywords" content="Inserting Quotation Marks (GNU Texinfo 6.8)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2any"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link href="index.html" rel="start" title="Top"> <link href="Command-and-Variable-Index.html" rel="index" title="Command and Variable Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="Insertions.html" rel="up" title="Insertions"> <link href="Inserting-Subscripts-and-Superscripts.html" rel="next" title="Inserting Subscripts and Superscripts"> <link href="Inserting-Accents.html" rel="prev" title="Inserting Accents"> <style type="text/css"> <!-- a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} kbd {font-style: oblique} pre.display {font-family: inherit} pre.format {font-family: inherit} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} span:hover a.copiable-anchor {visibility: visible} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en"> <div class="section" id="Inserting-Quotation-Marks"> <div class="header"> <p> Next: <a href="Inserting-Subscripts-and-Superscripts.html" accesskey="n" rel="next"><code>@sub</code> and <code>@sup</code>: Inserting Subscripts and Superscripts</a>, Previous: <a href="Inserting-Accents.html" accesskey="p" rel="prev">Inserting Accents</a>, Up: <a href="Insertions.html" accesskey="u" rel="up">Special Insertions</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="Inserting-Quotation-Marks-1"></span><h3 class="section">11.5 Inserting Quotation Marks</h3> <span id="index-Inserting-quotation-marks"></span> <span id="index-Quotation-marks_002c-inserting"></span> <span id="index-Quotation-characters-_0028_0060_0027_0029_002c-in-source"></span> <p>Use doubled single-quote characters to begin and end quotations: <tt>`<!-- /@w -->`…'<!-- /@w -->'</tt><!-- /@w -->. TeX converts two single quotes to left- and right-hand doubled quotation marks, and Info converts doubled single-quote characters to ASCII double quotes: <tt>`<!-- /@w -->`…'<!-- /@w -->'</tt><!-- /@w --> becomes <tt>"…"</tt><!-- /@w -->. </p> <p>You may occasionally need to produce two consecutive single quotes; for example, in documenting a computer language such as Maxima where <tt>'<!-- /@w -->'</tt> is a valid command. You can do this with the input <tt>'@w{}'</tt>; the empty <code>@w</code> command stops the combination into the double-quote characters. </p> <span id="index-Unicode-quotation-characters"></span> <span id="index-Grave-accent-2"></span> <p>The left quote character (<tt>`</tt>, ASCII code 96) used in Texinfo is a grave accent in ANSI and ISO character set standards. We use it as a quote character because that is how TeX is set up, by default. </p> <p>Texinfo supports several other quotation marks used in languages other than English. Below is a table with the commands Texinfo provides for inserting quotation marks. </p> <span id="index-UTF_002d8"></span> <span id="index-ISO-8859_002d15"></span> <span id="index-Latin-9"></span> <span id="index-ISO-8859_002d1"></span> <span id="index-Latin-1"></span> <p>In order to get the symbols for the quotation marks in encoded Info output, it is necessary to specify <code>@documentencoding UTF-8</code>. (See <a href="_0040documentencoding.html"><code>@documentencoding <var>enc</var></code>: Set Input Encoding</a>.) Double guillemets are also present in ISO 8859-1 (aka Latin 1) and ISO 8859-15 (aka Latin 9). </p> <span id="index-European-Computer-Modern-fonts"></span> <span id="index-EC-fonts"></span> <p>The standard TeX fonts support the usual quotation marks used in English (the ones produced with single and doubled ASCII single quotes). For the other quotation marks, TeX uses European Computer Modern (EC) fonts (<samp>ecrm1000</samp> and other variants). These fonts are freely available, of course; you can download them from <a href="http://ctan.org/pkg/ec">http://ctan.org/pkg/ec</a>, among other places. </p> <span id="index-CM_002dSuper-fonts"></span> <p>The free EC fonts are bitmap fonts created with Metafont. Especially for on-line viewing, Type 1 (vector) versions of the fonts are preferable; these are available in the CM-Super font package (<a href="http://ctan.org/pkg/cm-super">http://ctan.org/pkg/cm-super</a>). </p> <p>Both distributions include installation instructions. </p> <span id="index-Single-quotation-marks"></span> <span id="index-Double-quotation-marks"></span> <span id="index-Left-quotation-marks"></span> <span id="index-Right-quotation-marks"></span> <span id="index-quotedblleft"></span> <span id="index-_0060_0060"></span> <span id="index-quoteleft"></span> <span id="index-_0060"></span> <span id="index-_0022-_0028undirected-double-quote-character_0029"></span> <span id="index-quotedblright"></span> <span id="index-_0027_0027"></span> <span id="index-quoteright"></span> <span id="index-_0027"></span> <span id="index-Double-low_002d9-quotation-mark"></span> <span id="index-Single-low_002d9-quotation-mark"></span> <span id="index-quotedblbase"></span> <span id="index-_201e-_0028double-low_002d9-quotation-mark_0029"></span> <span id="index-quotesinglbase"></span> <span id="index-_201a-_0028single-low_002d9-quotation-mark_0029"></span> <span id="index-Angle-quotation-marks"></span> <span id="index-Guillemets"></span> <span id="index-Guillemots"></span> <span id="index-French-quotation-marks"></span> <span id="index-Quotation-marks_002c-French"></span> <span id="index-German-quotation-marks"></span> <span id="index-Quotation-marks_002c-German"></span> <span id="index-Double-guillemets"></span> <span id="index-Single-guillemets"></span> <span id="index-Double-angle-quotation-marks"></span> <span id="index-Single-angle-quotation-marks"></span> <span id="index-Left_002dpointing-angle-quotation-marks"></span> <span id="index-Right_002dpointing-angle-quotation-marks"></span> <span id="index-Double-left_002dpointing-angle-quotation-mark"></span> <span id="index-Double-right_002dpointing-angle-quotation-mark"></span> <span id="index-Single-left_002dpointing-angle-quotation-mark"></span> <span id="index-Single-right_002dpointing-angle-quotation-mark"></span> <span id="index-guillemetleft"></span> <span id="index-guillemotleft"></span> <span id="index-_003c_003c_00ab"></span> <span id="index-guillemetright"></span> <span id="index-guillemotright"></span> <span id="index-_00bb"></span> <span id="index-guilsinglleft"></span> <span id="index-_003c_2039"></span> <span id="index-guilsinglright"></span> <span id="index-_203a"></span> <table> <thead><tr><th>Command</th><th>Glyph</th><th>Unicode name (point)</th></tr></thead> <tr><td><tt>@quotedblleft{} ``</tt></td><td>“</td><td>Left double quotation mark (U+201C)</td></tr> <tr><td><tt>@quotedblright{} ''</tt></td><td>”</td><td>Right double quotation mark (U+201D)</td></tr> <tr><td><tt>@quoteleft{} `</tt></td><td>‘</td><td>Left single quotation mark (U+2018)</td></tr> <tr><td><tt>@quoteright{} '</tt></td><td>’</td><td>Right single quotation mark (U+2019)</td></tr> <tr><td><tt>@quotedblbase{}</tt></td><td>„</td><td>Double low-9 quotation mark (U+201E)</td></tr> <tr><td><tt>@quotesinglbase{}</tt></td><td>‚</td><td>Single low-9 quotation mark (U+201A)</td></tr> <tr><td><tt>@guillemetleft{}</tt></td><td>«</td><td>Left-pointing double angle quotation mark (U+00AB)</td></tr> <tr><td><tt>@guillemetright{}</tt></td><td>»</td><td>Right-pointing double angle quotation mark (U+00BB)</td></tr> <tr><td><tt>@guilsinglleft{}</tt></td><td>‹</td><td>Single left-pointing angle quotation mark (U+2039)</td></tr> <tr><td><tt>@guilsinglright{}</tt></td><td>›</td><td>Single right-pointing angle quotation mark (U+203A)</td></tr> </table> <span id="index-Auk_002c-bird-species"></span> <p>For the double angle quotation marks, Adobe and LaTeX glyph names are also supported: <code>@guillemotleft</code> and <code>@guillemotright</code>. These names are incorrect; a “guillemot” is a bird species (a type of auk). </p> <p>Traditions for quotation mark usage vary to a great extent between languages (<a href="http://en.wikipedia.org/wiki/Quotation_mark">http://en.wikipedia.org/wiki/Quotation_mark</a>). Texinfo does not provide commands or configurations for typesetting quotation marks according to the numerous traditions. Therefore, you have to choose the commands appropriate for the language of your manual. Sometimes aliases (see <a href="_0040alias.html">‘<samp>@alias <var>new</var>=<var>existing</var></samp>’</a>) can simplify the usage and make the source code more readable. For example, in German, <code>@quotedblbase</code> is used for the left double quote, and the right double quote is the glyph produced by <code>@quotedblleft</code>, which is counterintuitive. Thus, in this case the following aliases would be convenient: </p> <div class="example"> <pre class="example">@alias lgqq = quotedblbase @alias rgqq = quotedblleft </pre></div> </div> <hr> <div class="header"> <p> Next: <a href="Inserting-Subscripts-and-Superscripts.html"><code>@sub</code> and <code>@sup</code>: Inserting Subscripts and Superscripts</a>, Previous: <a href="Inserting-Accents.html">Inserting Accents</a>, Up: <a href="Insertions.html">Special Insertions</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> </body> </html>