ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: getvariable
Date: Thu, 6 Oct 2005 13:06:45 +0200	[thread overview]
Message-ID: <E3CA84BD-D882-49E8-84B1-AE569F3A8476@uni-bonn.de> (raw)
In-Reply-To: <4344F611.6010900@gmx.net>

Peter, thanks for your help yet again!

On Oct 6, 2005, at 12:01 PM, Peter Rolf wrote:

> This should work.

OK, so I'm not completely off the mark...

> The only thing that is missing, is a call (at the end
> of \setupcrop) to a separate routine (based on your \doifelse
> construct), which sets up the background.
>
> Or have i missed something? :)
>
Actually, this part of the code works. I have defined overlays/layers  
and a variable PageBackground and in my doifelse want this

\let\PageBackground\empty
\def\CameraMarks{Camera}
\def\CrossMarks{Cross}

\doifelse{\getvariable{Crop}{mark}{camera}
   {\let\PageBackground\CameraMarks}
   {\doifelse{\getvariable{Crop}{mark}{cross}
      {\let\PageBackground\CrossMarks}
      {\relax}

For debugging purposes, I just have this

\doifelse{\GetMark}{camera}
   {mark defined as \getvariable{Crop}{mark}}
   {mark not defined: \getvariable{Crop}{mark}}

which will print out a message. \getvariable{Crop}{mark} however, is  
either empty or has the value I predefine when I initialize it, it  
does not take the user-supplied value within the module (if I insert  
this doifelse thing into the document, it does return the correct  
value because then the \setup-command has been read before.)

Thanks, and best

Thomas

  reply	other threads:[~2005-10-06 11:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-05 21:12 getvariable Thomas A. Schmitz
2005-10-06  7:31 ` getvariable Hans Hagen
2005-10-06  8:53   ` getvariable Thomas A. Schmitz
2005-10-06 10:01     ` getvariable Peter Rolf
2005-10-06 11:06       ` Thomas A. Schmitz [this message]
2005-10-06 12:45         ` getvariable Peter Rolf
2005-10-06 15:08           ` getvariable Thomas A. Schmitz
2005-10-06 20:08             ` getvariable Peter Rolf
2005-10-06 21:11               ` getvariable Thomas A. Schmitz
2005-10-07 10:53                 ` getvariable Peter Rolf
2005-10-06 21:32               ` getvariable Hans Hagen
2005-10-06 21:28       ` getvariable Hans Hagen
2005-10-06 21:27     ` getvariable Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E3CA84BD-D882-49E8-84B1-AE569F3A8476@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).