From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: defining and expanding in xml
Date: Mon, 26 Nov 2007 21:14:18 +0100 [thread overview]
Message-ID: <03044B5D-DF52-418C-9604-3EB27D5D64A9@uni-bonn.de> (raw)
In-Reply-To: <4748A619.9020807@wxs.nl>
On Nov 24, 2007, at 11:30 PM, Hans Hagen wrote:
> Thomas A. Schmitz wrote:
>
>
>> \define\sln
>> {\externalfigure[presentations/07_11_23.pdf][page=
>> \currentSlideNumber]\incrementSlideNumber}
>
> does it work with simple filenames? like abc.pdf?
>
Thank you, Hans. Wolfgang Schuster was kind enough to help me off-
list; he provided a solution that works wonderfully. If anybody is
interested, here's the relevant code:
\def\CurPres#1{\gdef\doCurPres{#1}}
\def\sln
{\blank[line]
\incrementSlideNumber % vor dem Bild notwendig?
\midaligned{\externalfigure[\doCurPres]
[page={\getnumber[SlideNumber]},width=.75\textwidth]}
\blank[line]}
and in order to provide the translation xml --> ConTeXt:
\defineXMLargument [present] \CurPres
Not sure if this is of interest to anybody; if it is, I'll wikify it.
All best, and thanks to Wolfgang!
Thomas
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2007-11-26 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 16:49 Thomas A. Schmitz
2007-11-24 22:30 ` Hans Hagen
2007-11-26 20:14 ` Thomas A. Schmitz [this message]
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=03044B5D-DF52-418C-9604-3EB27D5D64A9@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).