Re: [NTG-context] currentheadnumber / doif.. problem
Aditya wrote: > Can you create a minimum example to play with? I attached the module t-pararef.tex and the example pararef-test.tex. The ref1 is still wrong. When I replace \currentheadnumber in \paragraphMark with the before defined \presentheadnumber context is saying that a «Missing control sequence inserted» - but I don't see any mistake there (but there must be)... But finally I only want that the ref1 in the example is also working (see at the end of example file). A second questions: why is the paragraph of ref3 in the example indented? Thanks, P. \usemodule[pararef] \starttext \chapter{first heading} \section{hamha} \startparagraph\paragraphMark[ref1]\paragraphHeading{tztzttzt} blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph \startparagraph blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph \section[ref2]{dumdidim} \startparagraph blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph \chapter{first heading} \startparagraph blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph \startparagraph\paragraphHeading{heuho} blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph \startparagraph\paragraphMark[ref3] blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopparagraph ref1 should be: para. 1.1/2 and is: \crossref{para.}[ref1] ref2 should be: sec. 1.2 and is: \crossref{sec.}[ref2] ref3 should be: para. 2/3 and is: \crossref{para.}[ref3] \stoptext \startmodule[pararef] \unprotect % variable and functions % % paragraphNumber running number starts at every heading with 1 % % paragraphMark[] Marks the paragraph to make references to it % tmpparagraphMark{}[] replaces temporary paragraphMark until %presentheadnumber is working % getParagraphNumber Writes paragraphNumber (for itmize-enviorement % startParagraph Starts and stops a paragraph % stopParagraph % paragraphHeading{} Defines the margin-heading of that paragraph % crossref{}[] common command for internal references \definenumber[paragraphNumber] \setuphead[chapter,section,subsection,subsubsection][after={\resetnumber[paragraphNumber]}] \def\presentheadnumber {\doifelse{\headnumber[section]}{0}% {\headnumber[chapter]}% {\headnumber[section]}% } \def\paragraphMark[#1] {\expanded{\textreference[#1]{\presentheadnumber/\getnumber[paragraphNumber]}}} \define\getParagraphNumber {\incrementnumber[paragraphNumber]% \inothermargin{\color[grey]% {\tfx\getnumber[paragraphNumber]~}} } \definestartstop[paragraph] [before= {\blank[medium]\incrementnumber[paragraphNumber]% \inothermargin{\color[grey]% {\tfx\getnumber[paragraphNumber]~}}}, after={\blank[medium]}] \def\paragraphHeading#1% {\inmargin{#1}% } \def\crossref#1[#2]% {\color[grey]{#1 \in[#2]}% } \protect \stopmodule \endinput___ 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 ___
[NTG-context] 9pt with \setupbodyfont[10pt,rm]: bug or feature?
Hi, I have discoverered some inconsistent behaviour: This is OK: \usetypescript[modern][ec] \setupbodyfont[11pt,rm] % also 12, 14, 8pt, ..., but not 10pt! \starttext \aacute---\switchtobodyfont[9pt]\aacute \stoptext This is also OK: \usetypescript[modern][ec] \setupbodyfont[modern,10pt,rm] \starttext \aacute---\switchtobodyfont[9pt]\aacute \stoptext But this is wrong \usetypescript[modern][ec] \setupbodyfont[10pt,rm] \starttext \aacute---\switchtobodyfont[9pt]\aacute \stoptext Why? Vit ___ 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 ___
[NTG-context] problems with luatex
Hi, there has been reported problems with luatex and mem settings; this is a result from a problem in the path interpreter and is fixed in a next release (i cannot release now due to fundamental changes in luatex) a temp solution is to make sure that TEXMFCNF is a simple path (no {} mess) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___