From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: using headnumber
Date: Thu, 20 Apr 2006 23:46:57 +0200 [thread overview]
Message-ID: <F7BA2EF2-2D52-4A20-82CE-775A1991EC4F@uni-bonn.de> (raw)
In-Reply-To: <4447F2C3.9030409@wxs.nl>
Fascinating, but... The slidenumber needs to be reset according to
the criterion whether we're starting an odd or an even section.
If anybody's wondering why I want such a bizarre setup: this is the
manuscript of my course for the entire term. Every class consists of
two lectures = two sections in my manuscript, but because the
lectures are back-to-back, I have one pdf presentation for both and
want the marks for the slides in my manuscript numbered consecutively
for section 1+2, then reset and numbered for 3+4 etc. Btw, I
laboriously wrote my own macro to get nice marks for the slides in my
manuscripts and then I discovered the \definelabel command...
Best
Thomas
On Apr 20, 2006, at 10:44 PM, Hans Hagen wrote:
> why not directly use the slidenumber
>
> \def\SlideNumber{1}
>
> command={\ifodd\SlideNumber\gdef\SlideNumber{1}\else\doglobal
> \increment\SlideNumber\fi}}
>
> command={\ifodd\SlideNumber\gdef\SlideNumber{1}\else\gdef
> \SlideNumber{2}\fi}}
>
>
> command={\xdef\SlideNumber{\ifodd\SlideNumber\space1\else2\fi}}
>
> \def\SlideNumber{\ifconditional\OddSlide1\else2\fi}
>
> command=\ifodd\settrue\OddSlide\else\setfalse\OddSlide\fi
>
> etc etc
next prev parent reply other threads:[~2006-04-20 21:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 14:22 Thomas A. Schmitz
2006-04-20 15:14 ` Peter Rolf
2006-04-20 16:15 ` Thomas A. Schmitz
2006-04-20 17:06 ` Sanjoy Mahajan
2006-04-20 20:44 ` Hans Hagen
2006-04-20 21:46 ` Thomas A. Schmitz [this message]
2006-04-20 16:54 ` Sanjoy Mahajan
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=F7BA2EF2-2D52-4A20-82CE-775A1991EC4F@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).