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!
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
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!
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!
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 -------------------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Martin Kolarík
-
varheit@gmx.de