ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Schorsch <tralalas@freenet.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Did usage of \expanded changed?
Date: Fri, 11 May 2012 13:28:34 +0200	[thread overview]
Message-ID: <20120511132834.27268b02@freenet.de> (raw)

Hi,

I "reactivated" some code that was working a year ago. But now it seems
that \expanded has no effect in my case (see below). I also tried it
with \normalexpanded and \expandedafter but both had also no effect. My
problem seems to be this line of the full example below:

	\doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%

The error shows itself in the line:

	Should be 1/1: \in[test] 

As \in[test] gives me 1/3 instead of 1/1. (1 was the number assigned to
the first paragraph - 3 is the acutal number).

Can someone tell me what I need to change?

Thanks in advanced
P.

-----8<-------full example-------------------

\unprotect

\definenumber[ParagraphNumber][way=bysection,prefixsegments=100]
 
\unexpanded\def\startParagraph
    {\dosingleempty\dostartParagraph}
 
\def\dostartParagraph[#1]%
   {\getrawparameters[Paragraph][heading=,mark=,#1]%
    \incrementnumber[ParagraphNumber]%
    \ininner{\tfx\getnumber[ParagraphNumber]}%
    \doifsomething\Paragraphheading{\inouter{\Paragraphheading}}%
    \doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
    \ignorespaces}

\unexpanded\def\stopParagraph
    {\blank[medium]}
\protect

\starttext

\chapter{Alter novom}

\startParagraph[heading={lorem ipsum},mark=test]
\input tufte
\stopParagraph

\startParagraph
\input tufte
\stopParagraph

\startParagraph
Should be 1/1: \in[test] 
\stopParagraph

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2012-05-11 11:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11 11:28 Peter Schorsch [this message]
2012-05-11 12:10 ` Thomas A. Schmitz
2012-05-11 14:59   ` Peter Schorsch
2012-05-11 15:40     ` 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=20120511132834.27268b02@freenet.de \
    --to=tralalas@freenet.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).