[NTG-context] problem with \getparameters

2012-02-23 Thread Thomas A. Schmitz

Hi all,

I'm trying to use \getparameters, but I'm doing it wrong. What I want to 
do is: define an environment which starts linenumbering and takes a 
key=value argument to define the start of the numbers. Here's what I 
tried (I also tried a few other things, such as \setvariables, but 
wasn't any more successful):


\definestartstop[mynumberedblockquote]
[before={\blank[line]
\setupindenting[no]

\setuplinenumbering[width=1cm,start=\getvalue{testsetupsstart}]
\startlinenumbering},
  after={\stoplinenumbering
\setupindenting[yes]
{\blank[line]}
\par}]

\def\startnumberedblockquote#1[#2]%
  {\getparameters[testsetups][start=1,#2]%
   \startmynumberedblockquote}

\define\stopnumberedblockquote%
   {\stopmynumberedblockquote}

\starttext

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At

vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

\startnumberedblockquote [start=9]
Lorem

ipsum

dolor

sit

amet
\stopnumberedblockquote

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At

vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren,

\startnumberedblockquote[start=19]
consetetur

sadipscing

elitr

sed

diam
\stopnumberedblockquote

\stoptext

But for some reason, the numbers are not local for each block. Can 
anybody shed some light into these (for me) dark an mysterious corners 
of ConTeXt?


Thanks a lot!

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread Steffen Wolfrum
Hi Hans

I managed to narrow down my example to just one bibliography, no index, no 
register, nothing fancy.
If I run this example with a pre-Feb.2012 version (say 2012.01.16), then the 
bookmarks FIVE, SIX and SEVEN do not work.

If you run this minimal example with all your tracing magic, can't you find 
where the bug hides (that was part of MkIV at least since May 2011 and vanished 
no more than with your experimental February 2012 versions)?

Steffen
---


\setuppublications[state=start,refcommand=author]

\setupcite   [author]   [pubsep={},lastpubsep={},inbetween={},
left={},right={},andtext={|::|}, otherstext={ \tf et al.}]

\newbibfield[shorttitle]
\newbibfield[shortauthor]

\unexpanded\def\mycite
{\dodoubleempty\domycite}

\def\domycite[#1][#2]#3%
 {\bgroup
  \nocite[#3]%
   \getcitedata[shortauthor][#3] to \myshortauthor%
   \getcitedata[shorttitle][#3] to \myshorttitle%
   \getcitedata[title][#3] to \mytitle%
   \getcitedata[journal][#3] to \myjournal%
  \doifsomethingelse{#2}
   {{\em #1} in: \doifsomethingelse{\myshortauthor}{\myshortauthor}{\cite[#3]},
   
\doifsomethingelse{\myshorttitle}{\myshorttitle}{\mytitle}\doifsomethingelse{#1}{,
 #2}{}}
   {{\em\doifsomethingelse{\myshortauthor}{\myshortauthor}{\cite[#3]}}, 
\doifsomethingelse{\myjournal}{{\doifsomethingelse{\myshorttitle}{\myshorttitle}{\doifsomethingelse{\myjournal}{\myjournal\doifsomethingelse{\myvolume}{\
 \myvolume\ [\mypubyear]}{\ 
\mypubyear}}{\mytitle{\doifsomethingelse{\myshorttitle}{\myshorttitle}{\mytitle}}\doifsomethingelse{#1}{,
 #1}{}}%
  \egroup}

\setuppublicationlist[samplesize={DDBD08},totalnumber=2]

\startpublication[k=Duetz2008,t=book,
a={{Dütz}},y=2009,
n=53,s=Düt09]
\title{Arbeitsrecht}
\stoppublication

% 

\starttext

\setupinteraction
   [state=start,style=,color=black]

\placebookmarks
[chapter,section,subsection,subsubsection]
[chapter,section,subsection,subsubsection][force=yes] 


\chapter{ONE}

\section{TWO}
 
\input tufte \footnote{\input ward}

\subsection{THREE}

\subsubsection{FOUR}

Text.\footnote{%
Siehe
\cite{Duetz2008}; 
\mycite[Rn. 556 ff.]{Duetz2008}; 
\mycite[Rn. 556 ff.]{Duetz2008}; 
}


\dorecurse{5}{\input tufte \footnote{\input ward}}

\subsubsection{FIVE}

{\input tufte \footnote{\input ward}}

\subsection{SIX}

\subsubsection{SEVEN}

{\input tufte \footnote{\input ward}}

\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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Wolfgang Schuster

Am 23.02.2012 um 09:05 schrieb Thomas A. Schmitz:

 Hi all,
 
 I'm trying to use \getparameters, but I'm doing it wrong. What I want to do 
 is: define an environment which starts linenumbering and takes a key=value 
 argument to define the start of the numbers. Here's what I tried (I also 
 tried a few other things, such as \setvariables, but wasn't any more 
 successful):
 
 \definestartstop[mynumberedblockquote]
   [before={\blank[line]
   \setupindenting[no]
   
 \setuplinenumbering[width=1cm,start=\getvalue{testsetupsstart}]
   \startlinenumbering},
 after={\stoplinenumbering
   \setupindenting[yes]
   {\blank[line]}
   \par}]
 
 \def\startnumberedblockquote#1[#2]%
  {\getparameters[testsetups][start=1,#2]%
   \startmynumberedblockquote}
 
 \define\stopnumberedblockquote%
   {\stopmynumberedblockquote}

\usemodule[annotation]

\define[2]\NumberedblockquoteCommand
  {\setupindenting[no]
   \startlinenumbering[width=1cm][\annotationparameter{start}]%
   #2%
   \stoplinenumbering}

\defineannotation
  [numberedblockquote]
  [alternative=command,
  %indenting=no,
   command=\NumberedblockquoteCommand]

Wolfgang
___
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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Thomas A. Schmitz

On 02/23/2012 12:27 PM, Wolfgang Schuster wrote:

\usemodule[annotation]

\define[2]\NumberedblockquoteCommand
   {\setupindenting[no]
\startlinenumbering[width=1cm][\annotationparameter{start}]%
#2%
\stoplinenumbering}

\defineannotation
   [numberedblockquote]
   [alternative=command,
   %indenting=no,
command=\NumberedblockquoteCommand]


Wolfgang,

thanks a lot for your solution. It works beautifully with the minimal 
example, but I can't use it in my project: it only works with a recent 
beta, but since footnotes are so badly broken, I need to use an older 
beta for typesetting this book project. Any chance of having a more 
generic solution without the annotation module?


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Wolfgang Schuster

Am 23.02.2012 um 12:42 schrieb Thomas A. Schmitz:

 On 02/23/2012 12:27 PM, Wolfgang Schuster wrote:
 \usemodule[annotation]
 
 \define[2]\NumberedblockquoteCommand
   {\setupindenting[no]
\startlinenumbering[width=1cm][\annotationparameter{start}]%
#2%
\stoplinenumbering}
 
 \defineannotation
   [numberedblockquote]
   [alternative=command,
   %indenting=no,
command=\NumberedblockquoteCommand]
 
 Wolfgang,
 
 thanks a lot for your solution. It works beautifully with the minimal 
 example, but I can't use it in my project: it only works with a recent beta, 
 but since footnotes are so badly broken, I need to use an older beta for 
 typesetting this book project. Any chance of having a more generic solution 
 without the annotation module?

\def\startnumberedblockquote
  {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
  {\getrawparameters[numberedblockquote][start=1,#1]%
   \blank[line]%
   \begingroup
   \setupindenting[no]%
   \startlinenumbering[width=1cm][\numberedblockquotestart]}

\def\stopnumberedblockquote
  {\stoplinenumbering
   \endgroup
   \blank[line]}

Wolfgang
___
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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread luigi scarso
On Thu, Feb 23, 2012 at 12:42 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 On 02/23/2012 12:27 PM, Wolfgang Schuster wrote:

 \usemodule[annotation]

 \define[2]\NumberedblockquoteCommand
   {\setupindenting[no]
    \startlinenumbering[width=1cm][\annotationparameter{start}]%
    #2%
    \stoplinenumbering}

 \defineannotation
   [numberedblockquote]
   [alternative=command,
   %indenting=no,
    command=\NumberedblockquoteCommand]


 Wolfgang,

 thanks a lot for your solution. It works beautifully with the minimal
 example, but I can't use it in my project: it only works with a recent beta,
 but since footnotes are so badly broken, I need to use an older beta for
 typesetting this book project. Any chance of having a more generic solution
 without the annotation module?

 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___
Hm global  effect.. you can use a namespaced one

\enabletrackers[lines.numbers]
\starttext
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\vrule width\textwidth height 1pt\par
\setuplinenumbering[Mine1][width=1cm,start=1]
\startlinenumbering[Mine1]
consetetur

sadipscing

elitr

sed

diam
\stoplinenumbering

\vrule width\textwidth height 1pt\par
\setuplinenumbering[Mine2][width=1cm,start=19]
\startlinenumbering[Mine2]
consetetur

sadipscing

elitr

sed

diam
\stoplinenumbering
\stoptext

-- 
luigi
___
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
___

Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Wolfgang Schuster

Am 23.02.2012 um 13:31 schrieb luigi scarso:

 Hm global  effect.. you can use a namespaced one
 
 \enabletrackers[lines.numbers]
 \starttext
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
 eirmod
 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
 gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
 \vrule width\textwidth height 1pt\par
 \setuplinenumbering[Mine1][width=1cm,start=1]

Better use first \define… and not \setup… which can result in an error for 
commands which
use the commandhandler (e.g. \definelayout[name][…] vs. 
\setuplayout[name][…]).

Wolfgang

___
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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread luigi scarso
On Thu, Feb 23, 2012 at 1:39 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.02.2012 um 13:31 schrieb luigi scarso:

 Hm global  effect.. you can use a namespaced one

 \enabletrackers[lines.numbers]
 \starttext
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
 eirmod
 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
 At
 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
 gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
 \vrule width\textwidth height 1pt\par
 \setuplinenumbering[Mine1][width=1cm,start=1]

 Better use first \define… and not \setup… which can result in an error for 
 commands which
 use the commandhandler (e.g. \definelayout[name][…] vs. 
 \setuplayout[name][…]).
yes, infact It was only to show the interference... I'm not sure if
it's a bug or not.

Anyway for this case \setup.. seems to inglobe \define...

\unexpanded\def\definelinenumbering
  {\dosingleempty\dodefinelinenumbering}

\def\dodefinelinenumbering[#1]%
  {\edef\currentlinenumbering{#1}%
   \mkdefinetextlinenumbering}

\unexpanded\def\setuplinenumbering
  {\dodoubleempty\dosetuplinenumbering}

\def\dosetuplinenumbering[#1][#2]%
  {\ifsecondargument
 \def\currentlinenumbering{#1}%
 \getparameters[\??rn#1][#2]%
   \else
 \let\currentlinenumbering\empty
 \getparameters[\??rn][#1]%
   \fi
   \mksetuptextlinenumbering}



 Wolfgang

 ___
 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
 ___



-- 
luigi
___
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
___

Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Wolfgang Schuster

Am 23.02.2012 um 13:51 schrieb luigi scarso:

 On Thu, Feb 23, 2012 at 1:39 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
 Am 23.02.2012 um 13:31 schrieb luigi scarso:
 
 Hm global  effect.. you can use a namespaced one
 
 \enabletrackers[lines.numbers]
 \starttext
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
 eirmod
 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
 At
 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
 gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
 \vrule width\textwidth height 1pt\par
 \setuplinenumbering[Mine1][width=1cm,start=1]
 
 Better use first \define… and not \setup… which can result in an error for 
 commands which
 use the commandhandler (e.g. \definelayout[name][…] vs. 
 \setuplayout[name][…]).
 yes, infact It was only to show the interference... I'm not sure if
 it's a bug or not.
 
 Anyway for this case \setup.. seems to inglobe \define...
 
 \unexpanded\def\definelinenumbering
  {\dosingleempty\dodefinelinenumbering}
 
 \def\dodefinelinenumbering[#1]%
  {\edef\currentlinenumbering{#1}%
   \mkdefinetextlinenumbering}
 
 \unexpanded\def\setuplinenumbering
  {\dodoubleempty\dosetuplinenumbering}
 
 \def\dosetuplinenumbering[#1][#2]%
  {\ifsecondargument
 \def\currentlinenumbering{#1}%
 \getparameters[\??rn#1][#2]%
   \else
 \let\currentlinenumbering\empty
 \getparameters[\??rn][#1]%
   \fi
   \mksetuptextlinenumbering}

\definelinenumbering doesn’t use the commandhandler (see mult-aux.mkiv) but 
this can change.

Wolfgang
___
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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread luigi scarso
On Thu, Feb 23, 2012 at 2:00 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 \definelinenumbering doesn’t use the commandhandler (see mult-aux.mkiv) but 
 this can change.
Ah, right.

-- 
luigi
___
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
___

Re: [NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread luigi scarso
On Thu, Feb 23, 2012 at 9:53 AM, Steffen Wolfrum cont...@st.estfiles.de wrote:
 Hi Hans

 I managed to narrow down my example to just one bibliography, no index, no 
 register, nothing fancy.
 If I run this example with a pre-Feb.2012 version (say 2012.01.16), then the 
 bookmarks FIVE, SIX and SEVEN do not work.

They seems ok with AdobeReader 9.4 on linux.


-- 
luigi
___
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
___


Re: [NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread Steffen Wolfrum

Am 23.02.2012 um 14:19 schrieb luigi scarso:

 On Thu, Feb 23, 2012 at 9:53 AM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 Hi Hans
 
 I managed to narrow down my example to just one bibliography, no index, no 
 register, nothing fancy.
 If I run this example with a pre-Feb.2012 version (say 2012.01.16), then the 
 bookmarks FIVE, SIX and SEVEN do not work.
 
 They seems ok with AdobeReader 9.4 on linux.



You must be joking?!

I ran the resulting PDF (attached) with every PDF reader on Mac and Windows ... 
and all results were the same:
no link for bookmark FIVE, SIX, SEVEN.

Did you actually test to click on the link?

Steffen
---


link_test.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread luigi scarso
On Thu, Feb 23, 2012 at 2:45 PM, Steffen Wolfrum cont...@st.estfiles.de wrote:

 Am 23.02.2012 um 14:19 schrieb luigi scarso:

 On Thu, Feb 23, 2012 at 9:53 AM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 Hi Hans

 I managed to narrow down my example to just one bibliography, no index, no 
 register, nothing fancy.
 If I run this example with a pre-Feb.2012 version (say 2012.01.16), then 
 the bookmarks FIVE, SIX and SEVEN do not work.

 They seems ok with AdobeReader 9.4 on linux.



 You must be joking?!
no, maybe I don't understand the problem. I will check your pdf asap.
-- 
luigi
___
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
___


Re: [NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread Philipp Gesang
On 2012-02-23 14:45, Steffen Wolfrum wrote:
 I ran the resulting PDF (attached) with every PDF reader on Mac and Windows 
 ... and all results were the same:
 no link for bookmark FIVE, SIX, SEVEN.

Confirmed for version 2012-01-16/Linux x64 with Okular. (Current
beta seems fine, though.)

Philipp


 
 Did you actually test to click on the link?
 
 Steffen
 ---


 ___
 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
 ___


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpoOKwtlJeAm.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] solution for missing bookmark (minimal example)

2012-02-23 Thread Steffen Wolfrum

Am 23.02.2012 um 15:48 schrieb Philipp Gesang:

 On 2012-02-23 14:45, Steffen Wolfrum wrote:
 I ran the resulting PDF (attached) with every PDF reader on Mac and Windows 
 ... and all results were the same:
 no link for bookmark FIVE, SIX, SEVEN.
 
 Confirmed for version 2012-01-16/Linux x64 with Okular. (Current
 beta seems fine, though.)


but current beta shouldn't be used, as it has not yet (fully) working footnotes.

thus, a version before february must be used ... (that's a problem).

Steffen
___
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
___


Re: [NTG-context] problem with \getparameters

2012-02-23 Thread Thomas A. Schmitz

On 02/23/2012 01:29 PM, Wolfgang Schuster wrote:

\def\startnumberedblockquote
   {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
   {\getrawparameters[numberedblockquote][start=1,#1]%
\blank[line]%
\begingroup
\setupindenting[no]%
\startlinenumbering[width=1cm][\numberedblockquotestart]}

\def\stopnumberedblockquote
   {\stoplinenumbering
\endgroup
\blank[line]}

Wolfgang


Many thanks, Wolfgang, that does exactly what I need!

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Overprinting

2012-02-23 Thread luigi scarso
On Wed, Feb 22, 2012 at 11:59 PM, Jan Heinen jahei...@gmx.de wrote:
 I again must come to this point. At the end of this week I want to give my
 book (pdf) to the printer to print.
 But he says: Your texts are not overprinted over colored areas.

 What do I have to do?



 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.

 I think, I made no mistake - what do you think?
 I hope it is not a missing  \par?


 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}

 \stoptext


 Regards
 Jannis



 ___
 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
 ___

Have you seen if this is ok ?
http://www.pragma-ade.com/general/magazines/mag-0006.pdf
(Use AdobeReader under linux with overprint enable)

-- 
luigi
___
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
___

[NTG-context] Question about spacing of some math symbols

2012-02-23 Thread Khaled Hosny
Hi all,

While testing some XITS symbols, I was wondering about the spacing of
the following symbols:

\setupbodyfont[xits]

\starttext
$$a  b$$ # reference
$$a ⨼ b$$
$$a ⨽ b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
\stoptext

Not sure about the first two, but I think the rest should be mathrel
(additionally, does anyone knows a definite Unicode reference for such
proprieties?)

Regards,
 Khaled
\setupbodyfont[xits]

\starttext
$$a  b$$
$$a ⨼ b$$
$$a ⨽ b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
\stoptext


test.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Question about spacing of some math symbols

2012-02-23 Thread Aditya Mahajan

On Thu, 23 Feb 2012, Khaled Hosny wrote:


Hi all,

While testing some XITS symbols, I was wondering about the spacing of
the following symbols:

\setupbodyfont[xits]

\starttext
$$a  b$$ # reference
$$a ⨼ b$$
$$a ⨽ b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
\stoptext

Not sure about the first two, but I think the rest should be mathrel


I agree.


(additionally, does anyone knows a definite Unicode reference for such
proprieties?)


I usually use the ams symbol list (as implemented by the unicode-math 
package) as reference.


Aditya___
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
___

Re: [NTG-context] Broken Nightly (2012.02.18)

2012-02-23 Thread Wolfgang Schuster

Am 24.02.2012 um 01:12 schrieb Kip Warner:

 On Wed, 2012-02-22 at 22:21 +0100, Wolfgang Schuster wrote:
 \starttextbackground
 
 Wolfgang
 
 I have the following defined in my environment:
 
 \definetextbackground[TimelineGeneralDocument][
location=paragraph,
color=color_text,
background=color,
backgroundcolor=colour_page,
framecolor=colour_text,
topoffset=1.0cm,
bottomoffset=1.0cm,
leftoffset=1.0cm,
rightoffset=1.0cm,
before={
\blank[2*big]
},
after={
\blank[2*big]
},
style=small,
corner=round,
frame=on]
 
 I use it as such...
 
 \startTimelineGeneralDocument
 ...Some stuff...
 \stopTimelineGeneralDocument
 
 So I'm not really sure what I am suppose to do with
 \starttextbackground?

You should make a minimal example with \starttextbackground which produces the 
same error as your document.

Wolfgang
___
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
___