* Modes
@ 2003-05-07 10:54 varheit
2003-05-07 11:05 ` Modes Martin Kolarík
0 siblings, 1 reply; 7+ messages in thread
From: varheit @ 2003-05-07 10:54 UTC (permalink / raw)
Hello,
I compile a document with texexec --pdf --mode=<somemode> ..., and I want
to access whatever is specified for <somemode> in the document as literal
text.
So if I run texexec --pdf --mode=screen ... I want something like "this
document was
processed in screen mode" to show up in the text.
How can this be done?
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Modes
2003-05-07 10:54 Modes varheit
@ 2003-05-07 11:05 ` Martin Kolarík
2003-05-07 12:05 ` Modes varheit
2003-05-07 12:05 ` Modes varheit
0 siblings, 2 replies; 7+ messages in thread
From: Martin Kolarík @ 2003-05-07 11:05 UTC (permalink / raw)
This could be simple, try:
\startmode[somemode]
...
\stopmode
(there is \startnotmode[somemode]..\stopnotmode variant too)
or
\doifmode{somemode}{this document was...}
or
\doifnotmode{somemode}{...}
or
\doifmodeelse{somemode}{when set}{when unset}
Have a nice day,
Martin
> -----Original Message-----
> From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On
> Behalf Of varheit@gmx.de
> Sent: Wednesday, May 07, 2003 12:55 PM
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Modes
>
>
> Hello,
>
> I compile a document with texexec --pdf --mode=<somemode> ..., and I want
> to access whatever is specified for <somemode> in the document as literal
> text.
> So if I run texexec --pdf --mode=screen ... I want something like "this
> document was
> processed in screen mode" to show up in the text.
>
> How can this be done?
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Modes
2003-05-07 11:05 ` Modes Martin Kolarík
@ 2003-05-07 12:05 ` varheit
2003-05-07 12:05 ` Modes varheit
1 sibling, 0 replies; 7+ messages in thread
From: varheit @ 2003-05-07 12:05 UTC (permalink / raw)
Thanks, but this does not relly help:
I am looking for a command that would just insert whatever was specified
in the --mode option. A conditional comparison does not work, since a lot
of modes may be specified. A conditional comparison has to modified
whenever a new mode is used.
I want something like "This document is processed in \mode mode"
> This could be simple, try:
>
> \startmode[somemode]
> ...
> \stopmode
>
> (there is \startnotmode[somemode]..\stopnotmode variant too)
>
> or
>
> \doifmode{somemode}{this document was...}
>
> or
>
> \doifnotmode{somemode}{...}
>
> or
>
> \doifmodeelse{somemode}{when set}{when unset}
>
> Have a nice day,
>
> Martin
>
> > -----Original Message-----
> > From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On
> > Behalf Of varheit@gmx.de
> > Sent: Wednesday, May 07, 2003 12:55 PM
> > To: ntg-context@ntg.nl
> > Subject: [NTG-context] Modes
> >
> >
> > Hello,
> >
> > I compile a document with texexec --pdf --mode=<somemode> ..., and I
> want
> > to access whatever is specified for <somemode> in the document as
> literal
> > text.
> > So if I run texexec --pdf --mode=screen ... I want something like "this
> > document was
> > processed in screen mode" to show up in the text.
> >
> > How can this be done?
> >
> > --
> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> > Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
> >
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Modes
2003-05-07 11:05 ` Modes Martin Kolarík
2003-05-07 12:05 ` Modes varheit
@ 2003-05-07 12:05 ` varheit
2003-05-07 13:19 ` Modes Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: varheit @ 2003-05-07 12:05 UTC (permalink / raw)
Thanks, but this does not relly help:
I am looking for a command that would just insert whatever was specified
in the --mode option. A conditional comparison does not work, since a lot
of modes may be specified. A conditional comparison has to modified
whenever a new mode is used.
I want something like "This document is processed in \mode mode"
> This could be simple, try:
>
> \startmode[somemode]
> ...
> \stopmode
>
> (there is \startnotmode[somemode]..\stopnotmode variant too)
>
> or
>
> \doifmode{somemode}{this document was...}
>
> or
>
> \doifnotmode{somemode}{...}
>
> or
>
> \doifmodeelse{somemode}{when set}{when unset}
>
> Have a nice day,
>
> Martin
>
> > -----Original Message-----
> > From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On
> > Behalf Of varheit@gmx.de
> > Sent: Wednesday, May 07, 2003 12:55 PM
> > To: ntg-context@ntg.nl
> > Subject: [NTG-context] Modes
> >
> >
> > Hello,
> >
> > I compile a document with texexec --pdf --mode=<somemode> ..., and I
> want
> > to access whatever is specified for <somemode> in the document as
> literal
> > text.
> > So if I run texexec --pdf --mode=screen ... I want something like "this
> > document was
> > processed in screen mode" to show up in the text.
> >
> > How can this be done?
> >
> > --
> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> > Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
> >
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Modes
2003-05-07 12:05 ` Modes varheit
@ 2003-05-07 13:19 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2003-05-07 13:19 UTC (permalink / raw)
At 14:05 07/05/2003 +0200, varheit@gmx.de wrote:
>Thanks, but this does not relly help:
>
>I am looking for a command that would just insert whatever was specified
>in the --mode option. A conditional comparison does not work, since a lot
>of modes may be specified. A conditional comparison has to modified
>whenever a new mode is used.
>
>I want something like "This document is processed in \mode mode"
\currentmode\ mode
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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] 7+ messages in thread
* modes
@ 2010-10-14 13:57 Hans Hagen
2010-10-15 6:34 ` modes Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2010-10-14 13:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
(for module writers)
The latest beta gives access to modes at the lua end
\starttext
\enablemode[test]
\enablemode[xxxx]
\doifallmodes{test,xxx}{NO}
\doifallmodes{test,xxxx}{YES}
\doifmode{test}{YES}
\doifnotmode{xxx}{YES}
\startluacode
tex.sprint(tex.modes['x'] and "YES" or "NOP")
tex.sprint(tex.modes['xx'] and "YES" or "NOP")
tex.sprint(tex.modes['xxx'] and "YES" or "NOP")
tex.sprint(tex.modes['xxxx'] and "YES" or "NOP")
tex.sprint(tex.modes['test'] and "YES" or "NOP")
\stopluacode
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-10-15 6:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 10:54 Modes varheit
2003-05-07 11:05 ` Modes Martin Kolarík
2003-05-07 12:05 ` Modes varheit
2003-05-07 12:05 ` Modes varheit
2003-05-07 13:19 ` Modes Hans Hagen
2010-10-14 13:57 modes Hans Hagen
2010-10-15 6:34 ` modes Henning Hraban Ramm
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).