[cstex] \csname a expandovani...

Petr Tomasek tomasek at etf.cuni.cz
Sun Jun 26 10:29:44 CEST 2011


On Sun, Jun 26, 2011 at 10:20:00AM +0200, Zdenek Wagner wrote:
> Dne 26. června 2011 7:59 Petr Tomasek <tomasek at etf.cuni.cz> napsal(a):
> >
> > Zdravim!
> >
> > mam takovouto konstrukci:
> >
> > \fnstyls=0\loop%
> > \edef\fnstyleid{\csname fontstyleid:\the\fnstyls \endcsname}%
> > \expandafter\def\csname fontstyleset:\fnstyleid \endcsname{}%
> > \advance \fnstyls by 1 \ifnum \fnstyls<\fncountstyles\repeat
> >
> > Idea je takova, ze v makru pojmenovanem "fontstyleid:0", "fonstyleid:1",
> > "fontstyleid:2"... mam identifkator a potreboval bych nastavit
> > makro "fontstyleset:<identifikator>" na {} (tj. na prazdy obsah).
> >
> U me se to expanduje, ale havaruje to na tom, ze \fontstyleid:0 neni
> definovano. S jeho expanzi si tedy TeX neumi poradit a ohlasi, ze
> chybi \endcsname.

Ano, to je pochopitelne, neni to cely kod, ale jen jeho vysek.

Dobra tedy, v priloze posilam cely soubor, ale je to trosku neprehledne.
Hledejte "TODO NEFUNGUJE".

Diky,
P.T.

-- 
Petr Tomasek <http://www.etf.cuni.cz/~tomasek>
Jabber: butrus at jabbim.cz

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EA 355:001  DU DU DU DU
EA 355:002  TU TU TU TU
EA 355:003  NU NU NU NU NU NU NU
EA 355:004  NA NA NA NA NA
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fonts.tex
Type: application/x-tex
Size: 5972 bytes
Desc: not available
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20110626/628d6454/attachment-0003.tex>


More information about the csTeX mailing list