Article View: comp.text.tex
Article #2309Re: need help with a LaTeX macro
From: Hartmut Benz
Date: Mon, 07 Sep 1992 08:14
Date: Mon, 07 Sep 1992 08:14
23 lines
1429 bytes
1429 bytes
David Kastrup writes
> iwsbarke@acs.ucalgary.ca (Scott Barker) writes:
[Stuff deleted...]
> >So I defined the macro as:
>
> >\newcommand{\type}[1]{\verb"#1"\\}
> Well, \verb works by removing all special meaning to all characters,
> then reading its argument. If you define a macro like the above,
> the characters already have a fixed meaning, and \verb can only change
> the meaning of characters not already read in.
Right!
As far as I know it is impssible to use \verb... inside a macro like this
at all.
If a command with arguments is found (like \type) the arguments are
scanned *and tokenized* bevore the \verb gets them. Since \verb can only
change the meaning of *characters* (not already tokenized text), nothing
of the desired effect can take place.
--
Tschoe'wa
_______________________________________
Hartmut Benz | benz@infko.uni-koblenz.de
D-5400 Koblenz, Germany | (NeXTmail ok)
Technical Details
Message-ID:
<1992Sep07.081446.192@infko.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!infko!newsReferences:
<dak.715093340@tabaqui>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!infko!news From: benz@infko.uni-koblenz.de (Hartmut Benz) Subject: Re: need help with a LaTeX macro Message-ID: <1992Sep07.081446.192@infko.uucp> Sender: news@infko.uucp (that is the account for news) Nntp-Posting-Host: nelke.uni-koblenz.de Organization: Universitaet Koblenz (FB Informatik) References: <dak.715093340@tabaqui> Date: Mon, 07 Sep 1992 08:14:46 GMT Lines: 23