[texhax] Vspace Question

阮铮 rz1991 at foxmail.com
Sun Sep 2 01:23:19 CEST 2012


Hi tex group,


I am writing my essay using latex, and find a problem that things I defined using \newcommand shows different effect compared with writing it directly in the body text. Hope someone could explain why. Here is a small example.


\documentclass{article}
\newcommand{\sep}[1]{\vspace{#1}\noindent}
\begin{document}
Hello


\sep{4mm}
some things here


\vspace{4mm}\noindent
Are texts above truly indent?
\end{document}



By compiling it, we can see that the second line still somewhat indent although I give \noindent before. How could it happen? Thanks!


Zheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20120902/96c63061/attachment.html>


More information about the texhax mailing list