[OS X TeX] tabularx and textwidth
Morten Høgholm
morten.hoegholm at latex-project.org
Thu Apr 28 12:26:48 CEST 2005
On Thu, 28 Apr 2005 12:05:56 +0200, Peter Dyballa <Peter_Dyballa at Web.DE>
wrote:
> So the optimum solution, believing that \noindent only influences the
> next paragraph, would be:
>
> \noindent%
> \begin{tabularx}{\textwidth}{lX}
> ...
Yup. To conclude this thread here is a \NoIndent command that behaves much
like \noindent except this one will also ignore a blank line on the way.
\documentclass{minimal}
\makeatletter
\def\NoIndent {\futurelet\@let at token\@NoIndent}
\def\@NoIndent{%
\ifx\@let at token\par
\expandafter\@NoIndent at remove@par
\else
\expandafter\noindent
\fi
}
% Gobble the \par token and try again.
\def\@NoIndent at remove@par\par{\NoIndent}
\makeatother
\begin{document}
Some indented text.
\noindent Not indented.
This is \noindent indented.
\noindent
The \verb|\noindent| vanished.
Some indented text.
\NoIndent Not indented.
This is \NoIndent indented.
\NoIndent
The \verb|\NoIndent| still worked here.
Back to normal indention.
\end{document}
--
Morten
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list