Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!usc!jarthur!nntp-server.caltech.edu!news From: marcel@cs.caltech.edu (Marcel van der Goot) Newsgroups: comp.text.tex Subject: Re: How can I supress a par? Keywords: arguments, \par Message-ID: <1991Jan19.020454.15247@nntp-server.caltech.edu> Date: 19 Jan 91 02:04:54 GMT References: <1317@mti.mti.com> Sender: news@nntp-server.caltech.edu Organization: California Institute of Technology (CS Dept) Lines: 28 Nntp-Posting-Host: stun4i.caltech.edu In <1317@mti.mti.com> Adrian McCarthy (adrian@mti.mti.com) asks > \mymacro{hello} > <-- blank line implies \par > more text. > > Is there something I can put in the definition of \mymacro to get TeX to > ignore that implied \par? Yes, if you always use \mymacro in this way: \def\mymacro#1\par{ ... } will get rid of the \par. It will still insert an extra space (from the first newline character) though. If you want to get rid of that one as well, insert a space between "#1" and "\par". If you sometimes use \mymacro differently, things get a lot harder. You could do something like temporarily changing the definition of \par, or you could use \futurelet to check if a \par is coming next. I don't want to go into that now. > I really can't change to format of the input. Why not? No editor? No compiler so that you can write a trivial filter? No computer? ... (just curious) Marcel van der Goot marcel@vlsi.cs.caltech.edu