diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html index f37343a9096..e296254d6cb 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-whatmacros.html @@ -3,33 +3,33 @@ </head><body> <h3>What are (TeX) macros</h3> <p/>TeX is a <em>macro processor</em>: this is a computer-science-y term -meaning “text expander” (more or less); TeX typesets text as it -goes along, but <em>expands</em> each macro it finds. TeX’s macros +meaning “text expander” (more or less); TeX typesets text as it +goes along, but <em>expands</em> each macro it finds. TeX’s macros may include instructions to TeX itself, on top of the simple text generation one might expect. <p/>Macros are a <em>good thing</em>, since they allow the user to manipulate documents according to context. For example, the macro -<code>\</code><code>TeX</code> is usually defined to produce “TEX” with the ‘E’ lowered, +<code>\</code><code>TeX</code> is usually defined to produce “TEX” with the ‘E’ lowered, but in these FAQs the default definition of the macro is -overridden, and it simply expands to the letters “TeX”. (<em>You</em> +overridden, and it simply expands to the letters “TeX”. (<em>You</em> may not think this a good thing, but the author of the macros has his -reasons – see <a href="FAQ-logos.html">TeX-related logos</a>.) +reasons – see <a href="FAQ-logos.html">TeX-related logos</a>.) <p/>Macro names are conventionally built from a <code>\</code> followed by a sequence of letters, which may be upper or lower case (as in <code>\</code><code>TeX</code>, mentioned above). They may also be <code>\<<i>any single character</i>></code>, which allows all sorts of oddities (many built in to most TeX macro sets, all the -way up from the apparently simple ‘<code>\</code><code> </code>’ meaning “insert a space -here”). +way up from the apparently simple ‘<code>\</code><code> </code>’ meaning “insert a space +here”). <p/>Macro programming can be a complicated business, but at their very -simplest they need little introduction — you’ll hardly need to be +simplest they need little introduction — you’ll hardly need to be told that: <blockquote> <pre> \def\foo{bar} </pre> </blockquote><p> -replaces each instance of <code>\</code><code>foo</code> with the text “bar”. The +replaces each instance of <code>\</code><code>foo</code> with the text “bar”. The command <code>\</code><code>def</code> is Plain TeX syntax for defining commands; LaTeX offers a macro <code>\</code><code>newcommand</code> that goes some way towards protecting users from themselves, but basically does the same thing: @@ -38,7 +38,7 @@ protecting users from themselves, but basically does the same thing: \newcommand{\foo}{bar} </pre> </blockquote><p> -Macros may have “arguments”, which are used to substitute for marked +Macros may have “arguments”, which are used to substitute for marked bits of the macro expansion: <blockquote> <pre> @@ -57,7 +57,7 @@ or, in LaTeX speak: </blockquote><p> Macro writing can get very complicated, very quickly. If you are a beginner (La)TeX programmer, you are well advised to read something -along the lines of the <a href="FAQ-books.html">TeXbook</a>; once you’re under +along the lines of the <a href="FAQ-books.html">TeXbook</a>; once you’re under way, <a href="FAQ-ol-books.html">TeX by Topic</a> is possibly a more satisfactory choice. Rather a lot of the answers in these FAQs tell you about various issues of how to write macros. |