Re: [NTG-context] chapter names in header

2007-06-30 Thread Peter Rolf
Hi Patrick, Patrick Gundlach schrieb: Hi, what is wrong with -- \setuppagenumbering[location=] \starttext \setupheadertexts[text][section][chapter] \dorecurse{8}{\chapter{chapter - \recurselevel} \expanded{\chapter } look

Re: [NTG-context] columns

2007-06-29 Thread Aditya Mahajan
in the column after balancing are greater than ntop, do column balancing (if enabled) otherwise not. For example, \showgrid \starttext \dostepwiserecurse{5}{15}{1}{ \section{\recurselevel} \startcolumns[n=2,ntop=\recurselevel,balance=yes] \dorecurse{20}{This is a test line to check for balancing

Re: [NTG-context] Label loops within a XeConTeXt document

2007-06-24 Thread nicola
how do I change \startTeXtexts \dorecurse{10}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}} \stopTeXtexts so that I can print labels from x_0 up to x_9? Do I need to use \defineconversion and \convertnumber? No, use \dostepwiserecuse. The general syntax

Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
\stopitemize \stopitemize \startitemize[n,packed,broad][itemalign=left] \dorecurse{10}{\item Item \recurselevel.} \stopitemize \startitemize[n,packed,broad] \dorecurse{10}{\item Item \recurselevel.} \stopitemize \stoptext Wolfgang

Re: [NTG-context] Wierd problem.

2007-06-23 Thread luigi scarso
is on an Ubuntu system. He asked his question on the Scribus list. If I understand well, why not something like %% %% set here papersize, pagenumbers, margins and so on %% \starttext \dorecurse{200}{% \hbox{% \externalfigure[book.pdf][page=\recurselevel]% \externalfigure[book.pdf][page=\recurselevel

Re: [NTG-context] Label loops within a XeConTeXt document

2007-06-23 Thread nicola
{\recurselevel}{$x_{\recurselevel}$}} \stopTeXtexts so that I can print labels from x_0 up to x_9? Do I need to use \defineconversion and \convertnumber? Nicola ___ If your question is of interest to others as well, please

Re: [NTG-context] Label loops within a XeConTeXt document

2007-06-23 Thread Aditya Mahajan
question, though: how do I change \startTeXtexts \dorecurse{10}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}} \stopTeXtexts so that I can print labels from x_0 up to x_9? Do I need to use \defineconversion and \convertnumber? No, use \dostepwiserecuse. The general syntax

Re: [NTG-context] Label loops within a XeConTeXt document

2007-06-23 Thread nicola
do not have xetex, so I can not test this. Ok, even if I put those definitions in an MPenvironment the text fonts do not change (I guess the mechanism for font selection is slightly different in XeTeX). how do I change \startTeXtexts \dorecurse{10}{\TeXtext{\recurselevel}{$x_

Re: [NTG-context] Weird Fieldstack problem

2007-06-11 Thread Zhichu Chen
} . . . % Some random graphics \stopuseMPgraphic % \startuseMPgraphic{aa} \dorecurse{\the\steps} {\includeMPgraphic{step\recurselevel}} \stopuseMPgraphic but, it's not working. On 6/9/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting

Re: [NTG-context] How to format the line Table of Contents ?

2007-06-05 Thread David Arnold
} \placecontent \chapter{New Chapter} \input knuth \dorecurse{5}{\expanded{\section{Section \recurselevel}} \input knuth} \stoptext On Jun 5, 2007, at 5:57 AM, Steffen Wolfrum wrote: Hi, maybe just a detail, but it never was really clear to me: To change the actual text of TOC's heading I use

Re: [NTG-context] Forcing a TABLE page break

2007-05-29 Thread luigi scarso
\rowTBL+1\relax \dorecurse\Tempc{ \advance\Temp by \dimexpr\gettblht{\recurselevel}{1}\relax}% \advance \spaceleft by -\Temp% \advance \spaceleft by -1pt% % funny %\llap{\vbox to 0pt{\hsize=11pt\vss\vrule width11pt height\Temp}} \vrule width0pt height\spaceleft% } \bTR[after={\RuleToEnd}] -- luigi

Re: [NTG-context] mirrored pages

2007-04-19 Thread Wolfgang Schuster
\advance\vsize -2\scratchdimen \advance\hsize -2\scratchdimen \externalfigure[#1][\c!page=\recurselevel,#2,\c!scale=, \c!factor=\v!max,\c!offset=\v!overlay]% \else \externalfigure[#1][\c!page=\recurselevel,#2,\c!offset= \v!overlay]% \fi

Re: [NTG-context] mirrored pages

2007-04-19 Thread Horacio Suarez
\hsize -2\scratchdimen \externalfigure[#1][\c!page=\recurselevel,#2,\c!scale=, \c!factor=\v!max,\c!offset=\v!overlay]% \else \externalfigure[#1][\c!page=\recurselevel,#2,\c!offset= \v!overlay]% \fi}}} \page} \egroup} \protect \setuppapersize[A4][A4

Re: [NTG-context] Force all floats on opposite even pages

2007-03-31 Thread Wolfgang Schuster
} \defineconversion [oddpagenumber][\oddpagenumbers] %\setuppagenumbering[conversion=oddpagenumber] \starttext \dorecurse {10} {\dorecurse {12} {\section{Knuth}\input knuth\par} \placefigure{}{\framed{}} %\page[right] \midaligned{Figure \recurselevel} \dorecurse {4

Re: [NTG-context] Grid-keeping table

2007-03-29 Thread luigi scarso
\newdimen\CellHeightOne \CellHeightOne=\lineheight %% synch with grid \newdimen\TestDim \long\def\CellContent#1{% \setbox100=\vbox{\hsize=\CellWidth% #1} \dp100=0pt% \TestDim=\CellHeightOne \doloop{%30 \ifdim\ht100\TestDim% \setbox100=\vbox to \TestDim{\hsize=\CellWidth \recurselevel #1}\exitloop\fi

Re: [NTG-context] including pdf and using the entire page

2007-02-04 Thread Aditya Mahajan
] [\c!page=\recurselevel,\c!width=\paperwidth,\c!height=\paperheight,\c!factor=\v!max,#2] \stopTEXpage \incrementnumber[page]} \egroup} \protect For page numbers, I had a separate layer, which printed on top of the included pdfs (some pdfs were scanned images). I can send you my

Re: [NTG-context] including pdf and using the entire page

2007-02-04 Thread Johan Sandblom
=\!!thousand, \c!offset=\!!zeropoint, #2]% \dorecurse\@@ipn {\startTEXpage[\c!width=\paperwidth,\c!height=\paperheight,\c!offset=\@@ipoffset] \externalfigure [#1] [\c!page=\recurselevel,\c!width=\paperwidth,\c!height=\paperheight,\c!factor=\v!max,#2

Re: [NTG-context] Can't create more than about 240 footnotes

2007-01-23 Thread Mike Bird
with a known solution? No. This works fine here \starttext \dorecurse{500} {\input knuth\footnote[note:\recurselevel]{this is a footnote}\endgraf} \stoptext Hi Aditya, Thanks for checking. I've been unable as yet to create a simple test case. It must be a combination of things. I'll

Re: [NTG-context] Can't create more than about 240 footnotes

2007-01-22 Thread Aditya Mahajan
\starttext \dorecurse{500} {\input knuth\footnote[note:\recurselevel]{this is a footnote}\endgraf} \stoptext Using ConTeXt ver: 2007.01.18 12:57 MKII fmt: 2007.1.18 Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] rightframe=on

2007-01-13 Thread Willi Egger
: 2007.01.12 15:56 MKII fmt: 2007.1.13 int: english/english % This is MetaPost, Version 0.992 (Web2C 7.5.5) \setupbodyfont[ss,12pt] \setupcolors[state=start] \starttext \dostepwiserecurse{8}{24}{2}{% \switchtobodyfont[ss,\recurselevel pt] \framed[corner=14, frame=on, framecolor

Re: [NTG-context] rightframe=on

2007-01-13 Thread Sanjoy Mahajan
-rul.tex: \starttext \dontleavehmode\dostepwiserecurse{13}{16}{1}{\framed [corner=\recurselevel,frame=on,framecolor=green]{\tttf TEST \twodigits\recurselevel}\quad} \stoptext and see also Aditya's wikified results: http://wiki.contextgarden.net/Framed#Rounded_Coreners -Sanjoy `Not all those who

Re: [NTG-context] rightframe=on

2007-01-13 Thread Peter Rolf
, on/off frame lines to use. Try this magic snippet from core-rul.tex: \starttext \dontleavehmode\dostepwiserecurse{13}{16}{1}{\framed [corner=\recurselevel,frame=on,framecolor=green]{\tttf TEST \twodigits\recurselevel}\quad} \stoptext and see also Aditya's wikified results: http

Re: [NTG-context] How to squeeze one more line onto a page

2007-01-12 Thread Aditya Mahajan
not know why this used to work earlier. The correct syntax is \adaptlayout[lines=+2] For example \showframe \setuppapersize[A6][A6] \starttext \dorecurse{30} {\recurselevel \endgraf} \page \adaptlayout[lines=+2] \dorecurse{30} {\recurselevel \endgraf} \stoptext Aditya

Re: [NTG-context] How to squeeze one more line onto a page

2007-01-12 Thread David Arnold
used to work. But I get the same error right now. Hmm I do not know why this used to work earlier. The correct syntax is \adaptlayout[lines=+2] For example \showframe \setuppapersize[A6][A6] \starttext \dorecurse{30} {\recurselevel \endgraf} \page \adaptlayout[lines=+2

Re: [NTG-context] rightframe=on

2007-01-10 Thread andrea valle
(it doesn't appears in core-modu.pdf) % \startTEXpage % \dontleavehmode\framed % [corner=0,frame=on,framecolor=green, % background=color,backgroundcolor=yellow]{\tttf TEST \twodigits\recurselevel}% % \vskip1em % \dontleavehmode\dostepwiserecurse {1} {4}{1

Re: [NTG-context] rightframe=on

2007-01-09 Thread luigi scarso
Inside last core-rule.tex (it doesn't appears in core-modu.pdf) % \startTEXpage % \dontleavehmode\framed % [corner=0,frame=on,framecolor=green, % background=color,backgroundcolor=yellow]{\tttf TEST \twodigits\recurselevel}% % \vskip1em % \dontleavehmode

Re: [NTG-context] store counter or variable and reread again

2007-01-01 Thread Hans Hagen
is of \nofPoints\ Points} % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte \endgraf} \stoptext The whole things is much shorter :) Hans, I just noticed that \everystarttext is executed at the start of components and products, while

Re: [NTG-context] store counter or variable and reread again

2006-12-31 Thread Thomas Engel
][background=kopf] \starttext % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte \endgraf} \stoptext What's going wrong? Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman

Re: [NTG-context] store counter or variable and reread again

2006-12-31 Thread Aditya Mahajan
\setupbackgrounds[page][background=kopf] \starttext % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte \endgraf} \stoptext What's going wrong? The layer kopf is being set before the tui file is read. So, the value of \nofPoints is still 0. You need

Re: [NTG-context] store counter or variable and reread again

2006-12-30 Thread Aditya Mahajan
\iftwopassdatafound \xdef \nofPoints {\twopassdata} \fi \global\let\checkproblems\relax} % An example usage \starttext \checkPoints \title{This exam is of \nofPoints\ Points} % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte

Re: [NTG-context] store counter or variable and reread again

2006-12-30 Thread Aditya Mahajan
}}} % It is a bit boring to type \savenofPoints everytime \appendtoks \savenofPoints \to \everystoptext % An example usage \starttext \title{This exam is of \nofPoints\ Points} % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte \endgraf} \stoptext

Re: [NTG-context] pb inserting multipage documents

2006-12-21 Thread olivier Turlier
-tecnic-rt2000-gobck.pdf] \dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] [width=\textwidth,height=\textheight][page=\recurselevel]} Try \copypages[filename][width=\textwidth,height=\textheight] Aditya Thanks for your answer Aditya, This partialy solve

[NTG-context] pb inserting multipage documents

2006-12-20 Thread olivier Turlier
-sol-tecnic-rt2000-gobck.pdf] [width=\textwidth,height=\textheight][page=\recurselevel]} If you are interested, you can test source and see differences at this url : http://tebcado.free.fr/context-quest/01/ TIA for the answers. -- olivier Turlier

Re: [NTG-context] pb inserting multipage documents

2006-12-20 Thread Aditya Mahajan
] \dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] [width=\textwidth,height=\textheight][page=\recurselevel]} Try \copypages[filename][width=\textwidth,height=\textheight] Aditya ___ ntg-context mailing list ntg-context

[NTG-context] please add support for Korean language in unic-cjk.tex

2006-11-22 Thread Dohyun Kim
{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} %%% CJK Compatibility Ideographs \dostepwiserecurse{249}{250}{1}{\expanded{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} Additionally, I here report some possible bugs of context-beta related to CJK (especially Korean language) support

Re: [NTG-context] please add support for Korean language in unic-cjk.tex

2006-11-22 Thread Hans Hagen
{172}{215}{1}{\expanded{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} %%% CJK Compatibility Ideographs \dostepwiserecurse{249}{250}{1}{\expanded{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} ok, done Additionally, I here report some possible bugs of context-beta

[NTG-context] bugs found while trying to support utf-8 Korean Hangul under ConTeXt

2006-10-21 Thread Dohyun Kim
}{215}{1}{\expanded{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} % CJK Compatibility Ideographs \dostepwiserecurse{249}{250}{1}{\expanded{\defineunicodecommand {\recurselevel}} {\lookaheaduchar}} %%% % modify \enableunicodefont in font-uni.tex \def

Re: [NTG-context] \showgrid question

2006-10-16 Thread Hans Hagen
\noflines {\strut \hskip-.5\lineheight \ifcase\gridboxlinenomode\or \rlap {\hskip.2\bodyfontsize\hskip\scratchdimen \infofont\hbox to 1em{\hss\recurselevel}}% \or \llap

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-25 Thread Sanjoy Mahajan
In another thread, Hans mentioned the 2006.09.25 beta. I tested it against this test file and it works great: \starttext \dorecurse{20}{\startreusableMPgraphic{\recurselevel} draw fullcircle scaled 3mm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{\recurselevel}}} \stoptext

[NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Sanjoy Mahajan
The following minimal file overruns the available output streams (version 2006.08.08 and context live): \starttext \dorecurse{16}{\startstaticMPfigure{\recurselevel} fill fullcircle scaled 1cm withcolor red; \stopstaticMPfigure} \stoptext At the end are the last few lines of the log. Here

Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-14 Thread Hans Hagen
=6,ny=4] \setuparranging [XY] \starttext \dorecurse{1}{\recurselevel\space} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-09-06 Thread Willi Egger
=start] \dostepwiserecurse{1}{20}{1}{% \startalignment[middle] \chapter{Chapter title} \vfil This is {\bfd \recurselevel} \input zapf \stopalignment \vfil \page} \stoptext Willi Sanjoy Mahajan wrote: I've mostly understood arranging but I

Re: [NTG-context] figure directory is sort of searched

2006-08-16 Thread Mojca Miklavec
[fig-1] \externalfigure[fig-2] \setups{chapter:2} \externalfigure[fig-1] \stoptext Just out of curiosity I tried the following: \startsetups chapter:1 \dorecurse{10}{\useexternalfigure[fig-\recurselevel][1/fig-\recurselevel.pdf]} \stopsetups \startsetups chapter:2 \dorecurse{10

[NTG-context] how to figure out the number of elements inside \defineconversion?

2006-08-10 Thread Mojca Miklavec
% TODO: 6 is only a guess: I need a better guess (3 in this case) \dostepwiserecurse{1}{6}{1}{\TeXtext{\recurselevel}{{\convertnumber{abc}{\recurselevel \stopTeXtexts \startMPcode variant := 1; gp_point(1cm,0cm,1); gp_point(2cm,0cm,2); variant := 2; gp_point(1cm,1cm,1); gp_point(2cm,1cm

Re: [NTG-context] how to figure out the number of elements inside \defineconversion?

2006-08-10 Thread Hans Hagen
\defineconversion[abc][$\star$,$\bullet$,$\ast$] \startTeXtexts % TODO: 6 is only a guess: I need a better guess (3 in this case) \dostepwiserecurse{1}{6}{1}{\TeXtext{\recurselevel}{{\convertnumber{abc}{\recurselevel \stopTeXtexts \startMPcode variant := 1; gp_point(1cm,0cm,1); gp_point(2cm,0cm

Re: [NTG-context] how to figure out the number of elements inside \defineconversion?

2006-08-10 Thread Mojca Miklavec
{\doifelseconversionnumber{abc}{\recurselevel} {[abc \recurselevel\space defined]} {\exitloop}} \doloop {\doifelseconversionnumber{def}{\recurselevel} {[def \recurselevel\space defined]} {\exitloop}} Perfect. That's exactly what I needed. I only have to keep my fingers

Re: [NTG-context] index (again)

2006-08-04 Thread Hans Hagen
the format); no key/val control yet \starttext \chardef\collapseregisterpages\zerocount \placeregister[index] \blank[2*big] \chardef\collapseregisterpages\plusone \placeregister[index] \page \dorecurse{10}{test 1:!\index{test} test \page} \dorecurse{5} {test 2:\recurselevel \page} \dorecurse

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-25 Thread Mojca Miklavec
to both you and Taco! why do you need a counter 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic[name][n={1,3},width=8cm] (syntax

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-25 Thread Hans Hagen
as externalfigure Thanks to both you and Taco! why do you need a counter 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-24 Thread Hans Hagen
}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic[name][n={1,3},width=8cm] (syntax might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-24 Thread Taco Hoekwater
in order to be unique)? Better use \definenumber instead of the low-level command. 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel}} Where does this '2

[NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-23 Thread Mojca Miklavec
a better name than \abc to the counter (the name should depend on #2 in order to be unique)? 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic

[NTG-context] XY and papersize

2006-07-21 Thread Claus, Matt - eSpeed
] \setuppaper[nx=3,ny=10,dx=0mm,dy=0mm,topspace=5mm,backspace=5mm] \setuplayout [location=middle] \setuparranging [XY] \showframe \starttext \dorecurse{15}{test \recurselevel \page} \stoptext However, when I change A4 to letter the output seems to introduce some dy. I experimented with some other

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Taco Hoekwater
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Mojca Miklavec
\chemlowbox}\fi} \newif\iffluor \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode

Re: [NTG-context] small caps italic and font switching inside math

2006-06-30 Thread Mojca Miklavec
\uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem \rawcharacter{\recurselevel% \catcode`\-=\active \uccode`\~=`\- \uppercase{\def

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
{\box\chemlowbox}\fi} \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
\recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem \rawcharacter{\recurselevel% \catcode`\-=\active \uccode`\~=`\- \uppercase{\def~{--}}% \domolecule }% \def\domolecule#1{#1\finishchem\egroup} \starttext {\bf A test \variant[Caps] in small

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Hans Hagen
}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem \rawcharacter{\recurselevel% \catcode`\-=\active \uccode`\~=`\- \uppercase{\def~{--}}% \domolecule }% \def\domolecule#1{#1\finishchem\egroup

Re: [NTG-context] \bTABLE[distance=...]

2006-06-29 Thread Hans Hagen
sticking out in the margin is always bad ;-) % test: \advance\!!dimena-\gettbldis\recurselevel\relax you can enable that line in core-ntb and see what happens Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] \bTABLE[distance=...]

2006-06-29 Thread Taco Hoekwater
Hans Hagen wrote: Could this be done automatically? I expect it can (and should) be. Stuff sticking out in the margin is always bad ;-) % test: \advance\!!dimena-\gettbldis\recurselevel\relax you can enable that line in core-ntb and see what happens works for me ... Peter? Taco

Re: [NTG-context] \bTABLE[distance=...]

2006-06-29 Thread Peter Münster
On Thu, 29 Jun 2006, Taco Hoekwater wrote: % test: \advance\!!dimena-\gettbldis\recurselevel\relax you can enable that line in core-ntb and see what happens works for me ... Peter? Yes, thanks! But the next issues follow immediately: just consider leftmargindistance

Re: [NTG-context] \bTABLE[distance=...]

2006-06-29 Thread Hans Hagen
� wrote: On Thu, 29 Jun 2006, Taco Hoekwater wrote: % test: \advance\!!dimena-\gettbldis\recurselevel\relax you can enable that line in core-ntb and see what happens works for me ... Peter? Yes, thanks! But the next issues follow immediately: just consider

Re: [NTG-context] PsTRICKS in Context

2006-06-19 Thread Hans Hagen
\usemodule[pstrick] \startPSTRICKS \pspicture(0,0)(10,10) \dorecurse{10}{\psline(0,0)(\recurselevel,10)} \dorecurse{10}{\psline(0,0)(10,\recurselevel)} \endpspicture \stopPSTRICKS an option is to put the graphics in separate files and/or use checksum trickery as used in m-r (not yet done

Re: [NTG-context] PsTRICKS in Context

2006-06-19 Thread batela
a easy way to make the migration? there is a module, m-pstric.tex \usemodule[pstrick] \startPSTRICKS \pspicture(0,0)(10,10) \dorecurse{10}{\psline(0,0)(\recurselevel,10)} \dorecurse{10}{\psline(0,0)(10,\recurselevel)} \endpspicture \stopPSTRICKS an option is to put

Re: [NTG-context] splitting tables

2006-06-17 Thread Johannes Graumann
\splitfloat[lines=11] {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}} {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE} \input tufte \page \input tufte \endgraf \splitfloat[lines=0] {} {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE} \input tufte \endgraf

[NTG-context] splitting tables

2006-06-16 Thread Hans Hagen
=repeat] \input tufte \endgraf \splitfloat[lines=11] {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}} {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE} \input tufte \page \input tufte \endgraf \splitfloat[lines=0] {} {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE

Re: [NTG-context] How to make this section header in ConTeXt?

2006-06-16 Thread Hans Hagen
of it in a table, but I got errors when trying to put a \section in the table. Any suggestion on how to do this will be highly appreciated. rough approach \setvariables [chapter] [title=, text=] \startsetups chapter:reset \dorecurse {10} { \setvariables[chapter][key-\recurselevel

Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
} \@@plaatspaginanummer {\ConvertConstantAfter\doifelse\v!date{#1} {\currentdate} {#1{}{}{}} \protect \setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][Whatever] \starttext \dorecurse{4}{ \chapter{Chapter \recurselevel} \input tufte

Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread John R. Culleton
][pagenumber][pagenumber][section][W hatever] \starttext \dorecurse{4}{ \chapter{Chapter \recurselevel} \input tufte \endgraf \input tufte \endgraf \input tufte \endgraf \section{Section} \input knuth \input knuth \input knuth } \stoptext Aditya

Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
\setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][W hatever] \starttext \dorecurse{4}{ \chapter{Chapter \recurselevel} \input tufte \endgraf \input tufte \endgraf \input tufte \endgraf \section{Section} \input knuth \input knuth \input knuth } \stoptext

Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Willi Egger
\dorecurse{4}{ \chapter{Chapter \recurselevel} \input tufte \endgraf \input tufte \endgraf \input tufte \endgraf \section{Section} \input knuth \input knuth \input knuth } \stoptext Aditya ___ ntg-context mailing list ntg

Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
wrong headers \setupheadertexts[section] \starttext \dorecurse{20}{\section{Test \recurselevel}\input knuth\endgraf} \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] making multiple choice questions exams

2006-05-28 Thread Hans Hagen
ID\EQ \NC \NR \NC Version \EQ \recurselevel \NC \NR \stoptabulate \blank[2*big] \getbuffer[examn] \stopsetups \startsetups examn:ok \doifmode {answers} { \inleft{\symbol[star]} } \ignorespaces \stopsetups \starttext \startbuffer[examn

Re: [NTG-context] Math encoding in XeTeX

2006-05-22 Thread Mojca Miklavec
On 5/21/06, Hans Hagen wrote: Mojca Miklavec wrote: i think that using \enableregime[utf] should work ok xetex (but in loading patterns) You can play with \startregime[none] \dostepwiserecurse{128}{255}{1} {\expanded{\defineactivecharacter {\recurselevel

Re: [NTG-context] Math encoding in XeTeX

2006-05-21 Thread Hans Hagen
with \startregime[none] \dostepwiserecurse{128}{255}{1} {\expanded{\defineactivecharacter {\recurselevel} {\rawcharacter{\recurselevel \stopregime \enableregime[none] \appendtoks \enableregime[utf]% % \everyhbox\expandafter{\the\everyhbox\enableregime[none]}% fails

Re: [NTG-context] Cyrillic glyphs display problem with standalone ConTeXt distribution under win32

2006-05-07 Thread Hans Hagen
it, but Hans or others probably know better how to handle with this than I do. \starttext \usetypescript [serif,sans,mono,math] [computer-modern] [default,name,size,t2c] \usetypescript [map] [computer-modern] [t2c] \usemathcollection[default] \setupbodyfont[modern] \dorecurse{200}{\char\recurselevel

Re: [NTG-context] help needed with difficult document structure

2006-04-20 Thread Taco Hoekwater
\subject{Short Contents} \placecombinedlist[shortcontent] \completecontent \stopfrontmatter \startbodymatter \shortpart{First part} \dorecurse{5} {\expanded{\startchapter[Chapter \recurselevel]} \dorecurse{5}{\section{My section} \input knuth } \stopchapter

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-06 Thread Martin Kolařík
][criterium=text] test \typefile{test.tuo} \stoptext this can be sped up (a bit) with % \dostepwiserecurse{0}{255}{1} % {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}} % \def\rawcharacter#1{\getvalue{rchr:#1}} this means that all chars are round tripped to themselves in output files

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Hans Hagen
) with % \dostepwiserecurse{0}{255}{1} % {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}} % \def\rawcharacter#1{\getvalue{rchr:#1}} this means that all chars are round tripped to themselves in output files! raw characters are not active and they are therefore equivalent to \char it's enough

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Vit Zyka
[chapter]{2}{Dobré odpoledne}} \placelist[chapter][criterium=text] test \typefile{test.tuo} \stoptext this can be sped up (a bit) with % \dostepwiserecurse{0}{255}{1} % {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}} % \def\rawcharacter#1{\getvalue{rchr:#1

Re: [NTG-context] Extending the black circled numbers

2006-04-05 Thread nico
don't put \ss I haven't this. So, if I put the following in the test I have no more the problem. \setbox\scratchbox\hbox{\ss 99} % workaround to fix the strange size initialization... \starttext \dontleavehmode \dorecurse{99}{\conum{\recurselevel}, } \stoptext Regards, BG

Re: [NTG-context] Extending the black circled numbers

2006-04-04 Thread Taco Hoekwater
{\textreference[line#1]{\noexpand\conum{#1 \def\refline#1{\in{line }[line#1]} \dorecurse{99}{\markline{\recurselevel}, } \dorecurse{99}{\refline{\recurselevel}, } Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl

Re: [NTG-context] Extending the black circled numbers

2006-04-04 Thread Hans Hagen
circled number \def\conum#1% {\evalwidth% \framed[background=cocircle,strut=no,frame=off, width=\the\cowidth,height=\the\cowidth,offset=overlay] {\color[white]{\small\bf{\ss #1 \starttext \dorecurse{99}{\conum{\recurselevel}, } \stoptext \setupcolors

Re: [NTG-context] Extending the black circled numbers

2006-04-04 Thread nico
{\in{line }[line#1]} \dorecurse{99}{\markline{\recurselevel}, } \dorecurse{99}{\refline{\recurselevel}, } Yes, it works fine! Thanks much! Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Extending the black circled numbers

2006-04-03 Thread nico
% {\evalwidth% \framed[background=cocircle,strut=no,frame=off, width=\the\cowidth,height=\the\cowidth,offset=overlay] {\color[white]{\small\bf{\ss #1 \starttext \dorecurse{99}{\conum{\recurselevel}, } \stoptext Regards, BG

Re: [NTG-context] \page inside a block

2006-03-16 Thread Hans Hagen
}{line 4:\recurselevel\par} \StopPoem \stoptext I leave it up to you (or others) to wikify this example. It looks more complex than it is. By using a mp graphic you have more options watch what happens if you add \page \startuseMPgraphic{mpos:par:poem} for i = 1 upto nofmultipars : multipars

[NTG-context] Still problem with \eqalign :(

2006-02-01 Thread Matthias Weber
!distance \tabskip \zeropoint \to \s... \ydorecurse ...el \let \recurselevel \!!plusone #2 [EMAIL PROTECTED] \let [EMAIL PROTECTED] \recurselev... \buildeqalign ...e \scratchtoks \the \!!toksb

Re: [NTG-context] math

2006-01-20 Thread David Arnold
\dorecurse{\mathalignparameter\c!m} {\ifnum\recurselevel\plusone \appendtoks \tabskip\mathalignparameter\c!distance\tabskip\zeropoint \to\scratchtoks \fi \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}% \dorecurse{\numexpr\mathalignparameter\c!n-\plusone

[NTG-context] math

2006-01-17 Thread Hans Hagen
{\mathalignparameter\c!m} {\ifnum\recurselevel\plusone \appendtoks \tabskip\mathalignparameter\c!distance\tabskip\zeropoint \to\scratchtoks \fi \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}% \dorecurse{\numexpr\mathalignparameter\c!n-\plusone\relax

Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen
no macro) \def\buildeqalign {\scratchtoks\emptytoks \dorecurse{\mathalignparameter\c!m} {\ifnum\recurselevel\plusone \appendtoks \tabskip\mathalignparameter\c!distance\tabskip\zeropoint \to\scratchtoks \fi \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa

[NTG-context] postponed processing

2006-01-15 Thread Henning Hraban Ramm
}] \setupTABLE[x][2][width=\getvalue{SenderValueWidth}, align=right, style={\valstyle\strut}] \bTABLE \dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1 \expanded{\GetSenderLine{\recurselevel}} } \eTABLE } \def\EnableSender{\setupbackgrounds[rightpage

[NTG-context] math align

2006-01-15 Thread Hans Hagen
\recurselevel\plusone\appendtoks\tabskip\@@eqdistance\tabskip\zeropoint\to\scratchtoks\fi \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}% \dorecurse{\numexpr\@@eqn-\plusone\relax} {\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb% \expanded{\scratchtoks{\the\scratchtoks

Re: [NTG-context] math align

2006-01-15 Thread David Arnold
) . . . . . . . . . Overfull \hbox (98.21335pt too wide) in paragraph at lines 72--72 [][][] [][] [][] [][] [][] [][]\*10pf* {[][]\ifnum\recurselevel[] [][][]\pl usone\appendtoks\tabskip\@@eqdistance[][][][]\tabskip\zeropoint\to \scratchtoks \fi[] . . . [3.1] . Overfull \hbox (87.71338pt too wide

Re: [NTG-context] math align

2006-01-15 Thread David Arnold
in recurse ane no macro) \def\buildeqalign {\scratchtoks\emptytoks \dorecurse\@@eqm {\ifnum\recurselevel\plusone\appendtoks\tabskip\@@eqdistance \tabskip\zeropoint\to\scratchtoks\fi \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}% \dorecurse{\numexpr\@@eqn-\plusone\relax

Re: [NTG-context] serial definition

2006-01-06 Thread Henning Hraban Ramm
of the Key and Val macros (\setvalue{}{} autoexpands its first argument, but not its second argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the manual bit, and you are actually re-evaluating the macro using the then current \recurselevel definition when inside

Re: [NTG-context] serial definition

2006-01-06 Thread Willi Egger
argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the manual bit, and you are actually re-evaluating the macro using the then current \recurselevel definition when inside the looping bit. The magic expansion hit me again, I should've known it. So you need

Re: [NTG-context] About 'repeat' option of \startitemize

2006-01-04 Thread Radhelorn
{\scratchcounter\itemlevel \advance\scratchcounter\minusone \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}% \ifnum\itemlevel\plusone \ifdim\wd\scratchbox\zeropoint %\hskip-\dimen2 \global\advance\fullwidth\wd\scratchbox

Re: [NTG-context] serial definition

2006-01-03 Thread Peter Rolf
Henning Hraban Ramm wrote: ... After some hacking I learned how \setvalue works: TEX \def\Set#1#2#3{\setvalue{Key#1}{#2}\setvalue{Val#1}{#3}} \def\Get#1{\getvalue{Key#1}/\getvalue{Val#1}} \dostepwiserecurse{1}{9}{1}{ \Set{\recurselevel}{K\recurselevel}{V\recurselevel} } \Set{1

Re: [NTG-context] serial definition

2006-01-03 Thread Taco Hoekwater
Peter Rolf wrote: Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands its first argument

<    3   4   5   6   7   8   9   >