From: Christopher H. <cch...@gm...> - 2007-03-03 06:26:41
|
On 3/2/07, Lukas Tanner <nju...@ya...> wrote: > > --- Christopher Heckman <cch...@gm...> schrieb: > > > On 3/1/07, Bi-Info (http://members.home.nl/bi-info) > > <bi...@ho...> wrote: > > > > > > I've got two problems with LaTeX. > > > > > > The first one is: I want to quote text in another part of the text. This > > > has to be quoted literally. > > > > > > So I write \sometrick{this} > > > > > > and I reference it should read > > > > > > this > > > > Before you use it the first time, use: > > > > \def\texttorepeat{this} > > > > Then use the \texttorepeat macro in both places. > > > > --- Christopher Heckman > > > > > > Hello > I think it is not recommendet to use \def in LaTeX, > since there is no control, if you overwrite some > internal commands. And what's wrong with overwriting internal commands? 8-) > I'd rather use \newcommand{\texttoreapeat}{this}. I guess you did ask for how to do it in LaTeX. (Needing to use "\newcommand" instead of "\def" is one reason why I don't use LaTeX.) > But make sure to > use brackets when applying the macro e.g. > texttorepeat{} otherwise the following space gets > ignored. You could also put a backslash and a space after it, after the macro, which saves you one keystroke: "...I said earlier \texttoreapeat\ and want to explain what I meant..." --- Christopher Heckman |