diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html index abbbb45fc6f..4f8b465b35e 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-compjobnam.html @@ -1,14 +1,14 @@ <head> <title>UK TeX FAQ -- question label compjobnam</title> </head><body> -<h3>Comparing the "job name"</h3> +<h3>Comparing the “job name”</h3> <p>The token <code>\</code><code>jobname</code> amusingly produces a sequence of characters -whose category code is 12 ('other'), regardless of what the characters +whose category code is 12 (‘other’), regardless of what the characters actually are. Since one inevitably has to compare a macro with the contents of another macro (using <code>\</code><code>ifx</code>, somewhere) one needs to create a macro whose expansion looks the same as the expansion of <code>\</code><code>jobname</code>. We find we can do this with <code>\</code><code>meaning</code>, if we strip -the "<code>\</code><code>show</code> command" prefix. +the “<code>\</code><code>show</code> command” prefix. <p>The full command looks like: <blockquote> <pre> @@ -21,8 +21,8 @@ the "<code>\</code><code>show</code> command" prefix. } </pre> -</blockquote> -And it's used as: +</blockquote><p> +And it’s used as: <blockquote> <pre> \if\jobis{mainfile}% @@ -31,9 +31,9 @@ And it's used as: \message{NO}% \fi </pre> -</blockquote> -Note that the command <code>\</code><code>StripPrefix</code> need not be defined if you're -using LaTeX - there's already an +</blockquote><p> +Note that the command <code>\</code><code>StripPrefix</code> need not be defined if you’re +using LaTeX — there’s already an <a href="FAQ-atsigns.html">internal command</a> <code>\</code><code>strip@prefix</code> that you can use. <p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=compjobnam">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=compjobnam</a> |