* for idris
@ 2004-06-01 19:20 Hans Hagen
2004-06-04 18:48 ` Idris Samawi Hamid
0 siblings, 1 reply; 2+ messages in thread
From: Hans Hagen @ 2004-06-01 19:20 UTC (permalink / raw)
This one is better:
% add to cont-new.tex
\unprotect
\definesystemvariable{sx}
\def\definestylecollection
{\dosingleargument\dodefinestylecollection}
\def\dodefinestylecollection[#1]%
{\iffirstargument
\unexpanded\setvalue{#1}{\styleinstance[#1]}%
\def\docommand##1{\letbeundefined{\??sx##1:\commalistelement}}%
\processcommacommand[\stylelist,\s!default]\docommand
\fi}
\def\definestyleinstance
{\dotripleargument\dodefinestyleinstance}
\def\dodefinestyleinstance[#1][#2][#3]%
{\ifsecondargument
\doifundefined{#1}{\definestylecollection[#1]}%
\setvalue{\??sx#1:#2}{#3}%
\fi}
\unexpanded\def\styleinstance[#1]%
{\executeifdefined{\??sx#1:\fontalternative}{\getvalue{\??sx#1:\s!default}}}
\protect
% so far
\definestylecollection[mine]
\definestyleinstance[mine][default][sorry]
\definestyleinstance[mine][bf][\sl]
\definestyleinstance[mine][sl][\tt]
{\bf test \mine test \sl test \mine test \bs oeps \mine oeps}
(of course you now have to write a MyWay to explain it)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE/POD/CTS
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: for idris
2004-06-01 19:20 for idris Hans Hagen
@ 2004-06-04 18:48 ` Idris Samawi Hamid
0 siblings, 0 replies; 2+ messages in thread
From: Idris Samawi Hamid @ 2004-06-04 18:48 UTC (permalink / raw)
Thank you so very much Hans!
I've been busy this week getting my journal printed; I'll play with this
stuff over the weekend.
Again, thnx a million and may you your days be multiplied:-))
Best
Idris
On Tue, 01 Jun 2004 21:20:34 +0200, Hans Hagen <pragma@wxs.nl> wrote:
> This one is better:
>
> % add to cont-new.tex
>
> \unprotect
>
> \definesystemvariable{sx}
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-04 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01 19:20 for idris Hans Hagen
2004-06-04 18:48 ` Idris Samawi Hamid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).