diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-tabacc.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-tabacc.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-tabacc.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-tabacc.html new file mode 100644 index 00000000000..5b1e5fd09f1 --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-tabacc.html @@ -0,0 +1,52 @@ +<head> +<title>UK TeX FAQ -- question label tabacc</title> +</head><body> +<h3>Accents misbehave in <code>tabbing</code></h3> +<p/>So you are constructing a <code>tabbing</code> environment, and you +have the need of some diacriticised text — perhaps something as simple +as <code>\</code><code>’{e}</code> — and the accent disappears because it has been +interpreted as a <code>tabbing</code> command, and everything goes +wrong. +<p/>This is really a rather ghastly feature of the <code>tabbing</code> +environment; in order to type accented characters you need to use the +<code>\</code><code>a</code> kludge: so <code>\</code><code>a’{e}</code> inside <code>tabbing</code> for +<code>\</code><code>’{e}</code> outside, and similarly <code>\</code><code>a‘</code> for <code>\</code><code>‘</code> and <code>\</code><code>a=</code> +for <code>\</code><code>=</code>. This whole procedure is of course hideous and +error-prone. +<p/>The simplest alternative is to type in an encoding that has the +diacriticised characters in it, and to use an appropriate encoding +definition file in the <i>inputenc</i> package. So for example, +type: +<blockquote> + <code>\</code><code>usepackage[latin1]{inputenc}</code><br> + <code>...</code><br> + <code>\</code><code>begin{tabbing}</code><br> + <code>...</code><br> + <code>...</code> <code>\</code><code>></code> <code>voilà</code> <code>\</code><code>></code> <code>...</code> +</blockquote><p> +for: +<blockquote> + ...\quad voilà\quad ... +</blockquote><p> +and the internal mechanisms of the <i>inputenc</i> package will put +the right version of the accent command in there. +<p/>A witty reversal of the r\^oles is introduced by the package +<i>Tabbing</i> (note the capital “T”): it provides a +<code>Tabbing</code> environment which duplicates +<code>tabbing</code>, but all the single-character commands become +complicated objects. So <code>tabbing</code>’s <code>\</code><code>></code> becomes +<code>\</code><code>TAB></code>, <code>\</code><code>=</code> becomes <code>\</code><code>TAB=</code>, and so on. The above trivial +example would therefore become: +<blockquote> +<pre> +\usepackage{Tabbing} +... +\begin{Tabbing} + ... ... \TAB> voil\`a \TAB> ... +</pre> +</blockquote><p> +<dl> +<dt><tt><i>Tabbing.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/Tabbing.zip">macros/latex/contrib/Tabbing</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/Tabbing.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/Tabbing/">browse</a>) +</dl> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tabacc">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tabacc</a> +</body> |