File: FAQ-spaftend.html

package info (click to toggle)
texlive-doc 2005.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 125,100 kB
  • ctags: 12,558
  • sloc: xml: 24,267; perl: 14,394; makefile: 727; sh: 324; lisp: 276; java: 159; sed: 4
file content (17 lines) | stat: -rw-r--r-- 986 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<head>
<title>UK TeX FAQ -- question label spaftend</title>
</head><body>
<h3>There's a space added after my environment</h3>
<p>You've written your own environment <code>env</code>, and it works
except that a space appears at the start of the first line of typeset
text after <code>\</code><code>end{env}</code>.  This doesn't happen with similar
LaTeX-supplied environments.
<p>You could impose the restriction that your users always put a
"<code>%</code>" sign after the environment ... but
LaTeX environments don't require that, either.
<p>The LaTeX environments' "secret" is an internal flag which causes
the unwanted spaces to be ignored.  Fortunately, you don't have to use
the internal form: since 1996, LaTeX has had a user command
<code>\</code><code>ignorespacesafterend</code>, which sets the internal flag.
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spaftend">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spaftend</a>
</body>