JezK
Edit File: Preparing-for-TeX.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>Preparing for TeX (GNU Texinfo 6.8)</title> <meta name="description" content="Preparing for TeX (GNU Texinfo 6.8)"> <meta name="keywords" content="Preparing for TeX (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="Hardcopy.html" rel="up" title="Hardcopy"> <link href="Overfull-hboxes.html" rel="next" title="Overfull hboxes"> <link href="Requirements-Summary.html" rel="prev" title="Requirements Summary"> <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="Preparing-for-TeX"> <div class="header"> <p> Next: <a href="Overfull-hboxes.html" accesskey="n" rel="next">Overfull “hboxes”</a>, Previous: <a href="Requirements-Summary.html" accesskey="p" rel="prev">TeX Formatting Requirements Summary</a>, Up: <a href="Hardcopy.html" accesskey="u" rel="up">Formatting and Printing Hardcopy</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="Preparing-for-TeX-1"></span><h3 class="section">18.9 Preparing for TeX</h3> <span id="index-Preparing-for-TeX"></span> <span id="index-TeX-input-initialization"></span> <span id="index-profile-init_002eprofile-initialization-file"></span> <span id="index-cshrc-init_002ecshrc-initialization-file"></span> <span id="index-Initialization-file-for-TeX-input"></span> <p>TeX needs to find the <samp>texinfo.tex</samp> file that the ‘<samp>\input texinfo</samp>’ command on the first line reads. The <samp>texinfo.tex</samp> file tells TeX how to handle @-commands; it is included in all standard GNU distributions. The latest version released for general use is available from the usual GNU servers and mirrors: </p> <div class="display"> <pre class="display"><a href="http://ftp.gnu.org/gnu/texinfo/texinfo.tex">http://ftp.gnu.org/gnu/texinfo/texinfo.tex</a> <a href="http://ftpmirror.gnu.org/texinfo/texinfo.tex">http://ftpmirror.gnu.org/texinfo/texinfo.tex</a> </pre></div> <p>The latest development version is available from the Texinfo source repository: </p> <div class="display"> <pre class="display"><a href="http://git.savannah.gnu.org/cgit/texinfo.git/plain/doc/texinfo.tex">http://git.savannah.gnu.org/cgit/texinfo.git/plain/doc/texinfo.tex</a> </pre></div> <span id="index-texinfo_002etex_002c-installing"></span> <p><samp>texinfo.tex</samp> is essentially a standalone file, so, if you need or want to try a newer version than came with your system, it nearly always suffices to download it and put it anywhere that TeX will find it. You can replace any existing <samp>texinfo.tex</samp> with a newer version (of course saving the original in case of disaster). </p> <span id="index-epsf_002etex_002c-installing"></span> <p>Also, you should install <samp>epsf.tex</samp>, if it is not already installed from another distribution. More details are at the end of the description of the <code>@image</code> command (see <a href="Images.html">Inserting Images</a>). </p> <span id="index-European-Computer-Modern-fonts-1"></span> <span id="index-EC-fonts_002c-installing"></span> <span id="index-CM_002dSuper-fonts-1"></span> <p>To use quotation marks other than those used in English, you’ll need to have the European Computer Modern fonts (e.g., <samp>ecrm1000</samp>) and (for PDF output) CM-Super fonts (see <a href="Inserting-Quotation-Marks.html">Inserting Quotation Marks</a>). </p> <span id="index-feymr10"></span> <span id="index-Euro-font_002c-installing"></span> <p>To use the <code>@euro</code> command, you’ll need the ‘<samp>feym*</samp>’ fonts (e.g., <samp>feymr10</samp>). See <a href="_0040euro.html"><code>@euro</code> (€): Euro Currency Symbol</a>. </p> <p>All of the above files should be installed by default in a reasonable TeX installation. </p> <span id="index-texinfo_002ecnf-installation"></span> <span id="index-Customizing-of-TeX-for-Texinfo"></span> <span id="index-Site_002dwide-Texinfo-configuration-file"></span> <p>Optionally, you may create a file <samp>texinfo.cnf</samp> for site configuration. When processing a Texinfo file, TeX looks for this file in its search path, which includes the current directory and standard installation directories. You can use this file for local conventions. For example, if <samp>texinfo.cnf</samp> contains the line ‘<samp>@afourpaper</samp>’ (see <a href="A4-Paper.html">Printing on A4 Paper</a>), then all Texinfo documents will be processed with that page size in effect. If you have nothing to put in <samp>texinfo.cnf</samp>, you do not need to create it. </p> <span id="index-Environment-variable-TEXINPUTS"></span> <span id="index-TEXINPUTS"></span> <p>You can set the <code>TEXINPUTS</code> environment variable to allow TeX to find <samp>texinfo.cnf</samp>. (This also works for <samp>texinfo.tex</samp> and any other file TeX might read). For example, if you are using a Bourne shell-compatible shell (<code>sh</code>, <code>bash</code>, <code>ksh</code>, …), your <samp>.profile</samp> file could contain the lines: </p> <div class="example"> <pre class="example">TEXINPUTS=.:/home/me/mylib: export TEXINPUTS </pre></div> <p>These settings would cause TeX first to look for an <samp>\input</samp> file in the current directory, indicated by the ‘<samp>.</samp>’, then in a hypothetical user ‘<samp>me</samp>’’s <samp>mylib</samp> directory, and finally in the system directories. (A leading, trailing, or doubled ‘<samp>:</samp>’ indicates searching the system directories at that point.) </p> </div> <hr> <div class="header"> <p> Next: <a href="Overfull-hboxes.html">Overfull “hboxes”</a>, Previous: <a href="Requirements-Summary.html">TeX Formatting Requirements Summary</a>, Up: <a href="Hardcopy.html">Formatting and Printing Hardcopy</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>