<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Texinfo (version 6.7, 23 September 2019),
a documentation system that can produce both online information and a
printed manual from a single source using semantic markup.
Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 1999, 2001, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 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". -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Preparing for TeX (GNU Texinfo 6.7)</title>
<meta name="description" content="Preparing for TeX (GNU Texinfo 6.7)">
<meta name="keywords" content="Preparing for TeX (GNU Texinfo 6.7)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2any">
<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.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {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}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="Preparing-for-TeX"></span><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">Requirements Summary</a>, Up: <a href="Hardcopy.html" accesskey="u" rel="up">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">19.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">Images</a>).
</p>
<span id="index-European-Computer-Modern-fonts_002c-installing"></span>
<span id="index-EC-fonts_002c-installing"></span>
<span id="index-CM_002dSuper-fonts_002c-installing"></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_002c-installing"></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></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">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>
<p>On MS-DOS/MS-Windows, you’d do this like this (note the use of the ‘<samp>;</samp>’
character as directory separator, instead of ‘<samp>:</samp>’):
</p>
<div class="example">
<pre class="example">set TEXINPUTS=.;d:/home/me/mylib;c:
</pre></div>
<p>It is customary for DOS/Windows users to put such commands in the
<samp>autoexec.bat</samp> file, or in the Windows registry.
</p>
<hr>
<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">Requirements Summary</a>, Up: <a href="Hardcopy.html" accesskey="u" rel="up">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>