Re: [NTG-context] tabulate span broken
Am 10.01.2011 um 14:24 schrieb Hans Hagen: > On 10-1-2011 10:46, Steffen Wolfrum wrote: >> Hi, >> >> as far as I remember, the following code worked up to december: >> >> \def\tabulateuse#1% >> {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces} >> >> \appendtoks >>\let\use\tabulateuse >>\defineTABLEshorthands > > remove the previous line as there is no reason why tabulate should inherit > all from table > >> \to \everytabulate >> >> \starttext >> >> \starttabulate[|p(4cm)|p(4cm)|p(6cm)|] >> \NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC >> \dorecurse{18}{text } \NC\NR >> \NC \TWO Short text spanning two tabulate paragraphs. \NC > > \use2 seems to work but keep in mind that such local patches are not > guaranteed to work (one never what logic is used deep down) ... except you :-) Thanks a lot! 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 ___
[NTG-context] tabulate span broken
Hi, as far as I remember, the following code worked up to december: \def\tabulateuse#1% {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces} \appendtoks \let\use\tabulateuse \defineTABLEshorthands \to \everytabulate \starttext \starttabulate[|p(4cm)|p(4cm)|p(6cm)|] \NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC \dorecurse{18}{text } \NC\NR \NC \TWO Short text spanning two tabulate paragraphs. \NC \dorecurse{22}{text } \NC\NR \stoptabulate \stoptext Today it gives: ! Undefined control sequence. ...lateuse \defineTABLEshorthands \dofinalstarttabulate ...ount \the \everytabulate \tabulateparameter \c!inne... \NC l.42 \NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC ? Is there a substitute? 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] bug with reference ?
Sure ... an alternative might be to include the various starter/stopper in the conversion: \define[1]\EbeneDreiConversion {§\,\numbers{#1}} \define[1]\EbeneVierConversion {\Characters{#1}.} ... \defineconversion [ebenedrei] [\EbeneDreiConversion] \defineconversion [ebenevier] [\EbeneVierConversion] ... \definestructureconversionset [default] [ , Erster_Teil, Erstes_Kapitel,ebenedrei,ebenevier] [numbers] In this case the reference output is fine. But: the booksmarks would be wrong, as they fall back to numbers and have no individual start/stopper!! If I write down each conversion literally, then the bookmarks are correct: \defineconversion [ebenedrei] [{§ 1},{§ 2},{§ 3},{§ 4},{§ 5},{§ 6},{§ 7},{§ 8},{§ 9}] So, this is the only way? Steffen Am 06.01.2011 um 17:15 schrieb Steffen Wolfrum: > Hi, > > when the lowest section is defined with "sectionstarter=(" > then the entire reference gets "(" instead of only the actual section: > > > The example below gives ... > (1. (1) 1. (1) > > ...but the right way would be > 1. (1) 1. (1) > > > > Did I make a mistake or is there a bug? > > Steffen > --- > > \starttext > > \setupreferencestructureprefix[default][prefixsegments=2:100] > \definestructureseparatorset [default][,,{. (},{) },{. (}][ ] > > \setupstructurehead[section] > [sectionstarter=,sectionstopper=.,sectionsegments=3:3] > \setupstructurehead[subsection] > [sectionstarter=(,sectionstopper=),sectionsegments=4:4] > \setupstructurehead[subsubsection] > [sectionstarter=,sectionstopper=.,sectionsegments=5:5] > \setupstructurehead[subsubsubsection][sectionstarter=(,sectionstopper=),sectionsegments=6:6] > > \section {One} > > \subsection{Two} > > \subsubsection[sectest]{Three} > > \subsubsubsection[subsectest]{Four} > > See in "Three" \in[sectest] and in "Four" \in[subsectest] as well. > > \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 > ___ ___ 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] bug with reference ?
Hi, when the lowest section is defined with "sectionstarter=(" then the entire reference gets "(" instead of only the actual section: The example below gives ... (1. (1) 1. (1) ...but the right way would be 1. (1) 1. (1) Did I make a mistake or is there a bug? Steffen --- \starttext \setupreferencestructureprefix[default][prefixsegments=2:100] \definestructureseparatorset [default][,,{. (},{) },{. (}][ ] \setupstructurehead[section] [sectionstarter=,sectionstopper=.,sectionsegments=3:3] \setupstructurehead[subsection] [sectionstarter=(,sectionstopper=),sectionsegments=4:4] \setupstructurehead[subsubsection] [sectionstarter=,sectionstopper=.,sectionsegments=5:5] \setupstructurehead[subsubsubsection][sectionstarter=(,sectionstopper=),sectionsegments=6:6] \section {One} \subsection{Two} \subsubsection[sectest]{Three} \subsubsubsection[subsectest]{Four} See in "Three" \in[sectest] and in "Four" \in[subsectest] as well. \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] \insection broken??
Am 06.01.2011 um 09:04 schrieb Wolfgang Schuster: > > Am 05.01.2011 um 22:26 schrieb Steffen Wolfrum: > >> Hi, >> >> using the 31/12/10 version I have problems with reference \insection[...]: >> >> ! Undefined control sequence. >> l.40 Zur Terminologie, vgl. \insection >> [Ref217459429]. >> >> >> >> What's this? > > As the message says context don’t know a command with the name \insection, > the only reference to the command in the source is in the file s-chi-00.tex > which is used in mkii for chinese: > > \definereferenceformat [insection] [\c!label=\v!section] ... ahh, now it's clear why the current version (MkIV!) doesn't know it :o) Thanks for the tip Wolfgang! 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 ___
[NTG-context] \insection broken??
Hi, using the 31/12/10 version I have problems with reference \insection[...]: ! Undefined control sequence. l.40 Zur Terminologie, vgl. \insection [Ref217459429]. What's this? 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] [OT] quvira fonts
Am 17.12.2010 um 22:57 schrieb luigi scarso: > http://quivira-font.com/ nice ;o) st. ___ 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] Bug: delay in \getmarking
Hi, I don't no exactly when it changed, but it still worked in ConTeXt ver: 2010.09.05 13:23 MKIV. Now, there is a one page delay in \getmarking! Please run minimal exmaple below and look at page 7: Section = 1.2 B Header = 1.2 A Steffen --- \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[chapter]} \def\KolumneR{\headnumber[section]\enskip\getmarking[section]} \setupheadertexts [\vtop{\startalignment[center]\KolumneR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}] \starttext \chapter[reference={Teil_1}, title={Einleitung}, bookmark={Einleitung}, list={Einleitung}, marking={Einleitung}] \dorecurse{14}{\input tufte} \section[ title={A}, marking={A}] \dorecurse{14}{\input tufte} \section[ title={B}, marking={B}] \dorecurse{14}{\input tufte} \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] writebetweenlist regression (mkiv)
Am 14.12.2010 um 10:26 schrieb Marco Pessotto: > Hans Hagen writes: > >> On 13-12-2010 11:20, Steffen Wolfrum wrote: >>> >>> Am 08.11.2010 um 23:03 schrieb Marco: >>> >>>> >>>> Hello there. >>>> >>>> Currently \writebetweenlist doesn't work as advised. It inserts the >>>> argument before the last entry of the list. The minimal example is >>>> provided by the reference itself. >>>> >>>> http://wiki.contextgarden.net/Reference/en/writebetweenlist >>>> >>>> The rule is correctly inserted at http://live.contextgarden.net/ and in >>>> the ConTeXt shipped with TeXlive 2010 (2010.05.24), but not with the >>>> current beta and the 2010.07.30 version. mkii works fine. >>>> >>>> It prints >>>> >>>> --rule-- >>>> List entry A >>>> List entry B >>> >>> Unfortunately, I can confirm this with current version: >>> >>> ver: 2010.12.12 17:06 MKIV >>> >>> Help please! >> >> There is a good reason for this. Inbetween has multiple usage and >> these are conflicting: >> >> - in order to get the right page info associated it needs to be >> anchored in the text stream >> - in that case a node can interfere with spacing and can come unexpected >> - sometimes direct flushing is needed, sometimes delayed >> >> btw, all these issues have been observed by users every now and then >> >> Now, if unexpected interference is the hardest to track down, >> inbetween is an immediate action. In principle one can influence that >> but it's not that intuitive. So, I've now added an option to (1) the >> flushers and (2) the list placers. >> >> The following example shows this: >> >> \definelist[testlist][criterium=all] >> >> \starttext >> >>Regular list entries are bound to a specific location in order to >>get the right pagenumber etc.\ associated. When pushing something >>inbetween (in mkiv) it ends up directtly in the list. This is the >>default because otherwise users will wonder why spacing might get >>messed up (due to an unseen but present node). It is possible to >>force a location by explicitly setting \type {location} to \type >>{here}. >> >>Another way to force a certain order is to set the \type {order} >>variable when placing a list. The \type {command} option only >>pushes commands into the right order, and \type {all} orders all >>entries (which might be too much). In this case no specific >>location is needed with the inbetween method. Maybe additional >>mechanisms show up some day. >> >>\subject{normal} \placelist[testlist] >>\subject{command} \placelist[testlist][order=command] >>\subject{all} \placelist[testlist][order=all] >> >>\page \input tufte >> >>\writetolist [testlist] {1} {One} >>\writebetweenlist[testlist] {\blackrule[color=red,width=\hsize]} >> >> \writebetweenlist[testlist][location=here]{\blackrule[color=blue,width=\hsize]} >>\writetolist [testlist] {2} {Second} >>\writetolist [testlist][location=none]{W} {Whatever} >>\writebetweenlist[testlist] {\blackrule[color=green,width=\hsize]} >> >> \stoptext >> >> I admit that it's not an easy mechanism but any default would at some >> point trigger complaints. So it probably needs to be wikified. >> >> Hans >> > > Thanks for this. It's been wikified in the reference wiki: > http://wiki.contextgarden.net/Reference/en/writebetweenlist Thank you Hans for that extension and thank you Marco for prompt wikifying! 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] writebetweenlist regression (mkiv)
Am 08.11.2010 um 23:03 schrieb Marco: > > Hello there. > > Currently \writebetweenlist doesn't work as advised. It inserts the > argument before the last entry of the list. The minimal example is > provided by the reference itself. > > http://wiki.contextgarden.net/Reference/en/writebetweenlist > > The rule is correctly inserted at http://live.contextgarden.net/ and in > the ConTeXt shipped with TeXlive 2010 (2010.05.24), but not with the > current beta and the 2010.07.30 version. mkii works fine. > > It prints > > --rule-- > List entry A > List entry B Unfortunately, I can confirm this with current version: ver: 2010.12.12 17:06 MKIV Help please! 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] bug: no overfullrule in footnotes!
Am 10.12.2010 um 12:29 schrieb Hans Hagen: > On 9-12-2010 11:38, Steffen Wolfrum wrote: > >> as it is easy to typeset hundreds (or thousands?) of pages with context >> how to easily check where (by any reason) a line couldn't break and shot >> over textwidth, for instance?! > > i never check ... just set the tolerance to verytolerant and stretch ... and Hans defined "\dontcomplain" :o) 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] bug: no overfullrule in footnotes!
Am 09.12.2010 um 17:20 schrieb Hans Hagen: > On 8-12-2010 2:14, Steffen Wolfrum wrote: > >> PS: The overfullrule for footnotes is only missing in MKIV ! > > no overfull rules in mkiv (no plans either) is this a well-founded decision? in footnotes there is often used non-breakable url and fixed spaces (\, etc.) in abbreviations. so overfull lines are very likely! how can these be adjusted when they are not indicated as overfull any more? maybe you could revise your opinion 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] bug: no overfullrule in footnotes!
Am 09.12.2010 um 19:39 schrieb Hans Hagen: > On 9-12-2010 6:15, Steffen Wolfrum wrote: >> >> Am 09.12.2010 um 17:20 schrieb Hans Hagen: >> >>> On 8-12-2010 2:14, Steffen Wolfrum wrote: >>> >>>> PS: The overfullrule for footnotes is only missing in MKIV ! >>> >>> no overfull rules in mkiv (no plans either) >> >> >> >> is this a well-founded decision? > > well, i never ever use(d) overfull rules myself ... so, in order to support > it i'd also have to look at interference with recent mkiv node list parsing > based solutions, so it has a real low priority (I will probably provide other > means to check such things) of course, any means is welcome! we only really need an eye-caching way to skim if lines are overfull. as it is easy to typeset hundreds (or thousands?) of pages with context ... how to easily check where (by any reason) a line couldn't break and shot over textwidth, for instance?! 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 ___
[NTG-context] Fwd: bug: no overfullrule in footnotes!
Anfang der weitergeleiteten E-Mail: > Von: Steffen Wolfrum > Datum: 7. Dezember 2010 12:34:00 MEZ > An: mailing list for ConTeXt users > Kopie: Hans Hagen > Betreff: [NTG-context] bug: no overfullrule in footnotes! > Antwort an: mailing list for ConTeXt users > > Hi, > > please have a look at this minimal example below: > the version temporary gives an overfullrule for body text but not for > footnotes! > > Is there something can be done (for the short term)? > > Regards, > Steffen > --- > > > > \version[temporary] > \showframe > > > \starttext > > Test \hbox{text text text text text text text text text text text text text > text text text text text}. > \startfootnote[ftn007] > Test \hbox{text text text text text text text text text text text text text > text text text text text text text text}. > \stopfootnote > > > \stoptext PS: The overfullrule for footnotes is only missing in MKIV ! 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 ___
[NTG-context] bug: no overfullrule in footnotes!
Hi, please have a look at this minimal example below: the version temporary gives an overfullrule for body text but not for footnotes! Is there something can be done (for the short term)? Regards, Steffen --- \version[temporary] \showframe \starttext Test \hbox{text text text text text text text text text text text text text text text text text text}. \startfootnote[ftn007] Test \hbox{text text text text text text text text text text text text text text text text text text text text text}. \stopfootnote \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 ___
[NTG-context] attention: setuplist kills hyperlinks!
Hi, please have a look at this minimal example: Normally you have a bidirectional hyperlink toc-entry <-> section-head. But when you uncomment the line with "setuplist" these hyperlinks are gone! How does this feature come back? Best regards, Steffen --- \def\AltCom#1#2#3{#1 #2 #3} \setupinteraction[state=start] \setuphead[chapter][interaction=list] %\setuplist[chapter][alternative=command,command=\AltCom] % <- un/comment \placelist[chapter][criterium=text,interaction=all] \starttext \chapter{test} \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] next space (problematic example!)
Am 04.12.2010 um 15:56 schrieb Wolfgang Schuster: > > Am 03.12.2010 um 17:21 schrieb Steffen Wolfrum: > >> But how about this (see below)? >> Is there a chance to get a space after footnote even before an italic? > > No, \autoinsertnextspace fails when the next token in the input is a command > which is no criterion to insert a space and you have to help tex in this case > with a {} or \ after \stopfootnote. Ok. I'll use {} . Again :o) (this looks quite save hopefully there is no unforeseen side-effect) 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] next space (problematic example!)
Hans, Is there something you can do about that (that lost space between footnote and italics, see below)? As I am just about to finish a project I would otherwise hack in those "{}" again :o( Thanks, Steffen Am 03.12.2010 um 17:21 schrieb Steffen Wolfrum: > > Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster: > >> >> Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum: >> >>> Hi, >>> >>> please have a look at this: >>> >>> \definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}] >> >> \definestartstop >> [redimportant] >> [style=bold, >> color=red, >> after=\autoinsertnextspace] >> >> \setupnote >> [footnote] >> [next=\autoinsertnextspace] >> >> Wolfgang > > > But how about this (see below)? > Is there a chance to get a space after footnote even before an italic? > > Steffen > > --- > > \definestartstop[Textit][style=\em, > % color=red, > after=\autoinsertnextspace] > > \setupnote > [footnote] > [next=\autoinsertnextspace] > > > \starttext > > Test text. > \startfootnote > Note. > \stopfootnote > \startTextit Test\stopTextit text > > Test text. > \startfootnote > Note. > \stopfootnote > Test text > > \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 > ___ ___ 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] next space (problematic example!)
Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster: > > Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum: > >> Hi, >> >> please have a look at this: >> >> \definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}] > > \definestartstop > [redimportant] > [style=bold, >color=red, >after=\autoinsertnextspace] > > \setupnote > [footnote] > [next=\autoinsertnextspace] > > Wolfgang But how about this (see below)? Is there a chance to get a space after footnote even before an italic? Steffen --- \definestartstop[Textit][style=\em, % color=red, after=\autoinsertnextspace] \setupnote [footnote] [next=\autoinsertnextspace] \starttext Test text. \startfootnote Note. \stopfootnote \startTextit Test\stopTextit text Test text. \startfootnote Note. \stopfootnote Test text \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] itemgroup broken
Am 01.12.2010 um 06:30 schrieb Wolfgang Schuster: > > Am 30.11.2010 um 22:51 schrieb Steffen Wolfrum: > >> Hi, >> >> is "\setupitemgroup" broken in current beta? >> Or did the syntax change? >> >> I am missing "symbol", "left", "right", "stopper". >> >> They don't seem to work. >> See example below, please. > > You need a number as item symbol for the left, right and stopper keys > and the symbol isn’t shown because you overwrite it in your example with > > \startNumberBracket[1] Somehow I thought the first pair of brackets indicate the level of itemization ... Thank you! 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 ___
[NTG-context] itemgroup broken
Hi, is "\setupitemgroup" broken in current beta? Or did the syntax change? I am missing "symbol", "left", "right", "stopper". They don't seem to work. See example below, please. Thanks, Steffen - \defineitemgroup [NumberBracket] \setupitemgroup [NumberBracket] [symbol=2, left={(}, right={)}, stopper=x, itemalign=flushleft] \starttext \startNumberBracket[1] \item foo \item foo \item foo \item foo \item foo \stopNumberBracket \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 ___
[NTG-context] next space
Hi, please have a look at this: \definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}] \starttext This is normal, but this\startredimportant one\startfootnote at least \stopfootnote is bold\stopredimportant style. This is normal, but this\startredimportant one\startfootnote at least \stopfootnote is bold\stopredimportant. This is normal, but this\startredimportant{} one\startfootnote at least \stopfootnote{} is bold\stopredimportant{} style. This is normal, but this\startredimportant{} one\startfootnote at least \stopfootnote{} is bold\stopredimportant. \stoptext Is the missing \autoinsertnextspace back in the meantime? Or does someone has a good substitute ... other then {} braces? 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] luatex hangs at 100% cpu
Am 17.11.2010 um 16:51 schrieb Hans Hagen: > On 17-11-2010 4:47, Steffen Wolfrum wrote: > >> Is this a coincidence?! > > yes. we identified where the problem and a tracker has been added. no patch > today > > Hans thank goodness... st. ___ 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] luatex hangs at 100% cpu
Am 17.11.2010 um 10:34 schrieb Taco Hoekwater: > On 11/16/2010 12:59 PM, Steffen Wolfrum wrote: >> >> Hi, >> >> the current MkIV (ConTeXt ver: 2010.11.12) seems to have problems >> with start/stopitemize and start/stopcolumns: >> >> >> mostly it hangs at 100% cpu, sometimes it gives this error massage: > > We have had a case where luatex goes into a busy loop recently and that > was caused by an undefined $HOME. Can you check and see if that is > the problem? MacBookPro:~ steffen$ echo $HOME /Users/steffen > Otherwise a test file is needed. \setupstructure[state=start] \starttext \startitemize \sym{one}test \sym{two}test %\sym{three}test % <- un/comment this \stopitemize \stoptext Groeten, 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 ___
[NTG-context] luatex hangs at 100% cpu
Hi, the current MkIV (ConTeXt ver: 2010.11.12) seems to have problems with start/stopitemize and start/stopcolumns: mostly it hangs at 100% cpu, sometimes it gives this error massage: ! Attempt to double-free penalty node 78778, ignored. \actualshipout ...t \fi \box \shipoutscratchbox }} \endgroup \else \message {... \myshipout ...\@@ppmethod }\gobbleoneargument {#1} \setnextrealpageno \afters... \dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}} \the \everyaftershipout \a... \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 \resetselectiepagina \doin... \sidefloatoutput ...e \else \finalsidefloatoutput \global \sidefloatvsize \n... \invokenormaloutputroutine ...\OTRcommand \output \fi ... l.1121 ? Process aborted Regards, 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] a ghost in the columns ?
Am 05.11.2010 um 12:09 schrieb Taco Hoekwater: > On 11/05/2010 11:42 AM, Steffen Wolfrum wrote: >> >> Am 05.11.2010 um 09:56 schrieb Taco Hoekwater: >> >>> On 11/05/2010 09:48 AM, Steffen Wolfrum wrote: >>>> Hi, >>>> >>>> please have a look at the minimal below (tex+pdf): >>>> >>>> We always have a kind of heading followed by a block of two columns. >>>> >>>> But suddenly on page 6, entry "Cassius Dio" has a much larger vertical >>>> space above than "Novellen" for example! >>>> >>>> Why? And how can this be avoided? >>> >>> \smash{§§} >> >> >> Ah, this was a bad example... >> I have an other snippet from my original file, please see minimal (tex+pdf) >> below. >> >> Here we have a bigger space before "Gai epitome" than before "Gai >> institutiones". >> >> Why is this one? How can this be avoided? > > In this case it seems that columns believes (height-wise) that there are 12 > lines instead of the actual 11 in the block above. I don't understand why, > though. Wow: "that columns believes" ;o) is there a specialist for parapsychology out there? Hans? The appendix from which these examples come from is quite big and there a dozens of situations like the one shown above: Suddenly there is a little bit more space above, sometimes more sometimes less. But there is no rule, no structure. I tried to throw in some vskip to adjust it manually ... but after 3 hours I gave up: you never get the right distance. So is there a handy work around to get rid off that column's cranky believe? Best, 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] a ghost in the columns ?
Am 05.11.2010 um 09:56 schrieb Taco Hoekwater: > On 11/05/2010 09:48 AM, Steffen Wolfrum wrote: >> Hi, >> >> please have a look at the minimal below (tex+pdf): >> >> We always have a kind of heading followed by a block of two columns. >> >> But suddenly on page 6, entry "Cassius Dio" has a much larger vertical space >> above than "Novellen" for example! >> >> Why? And how can this be avoided? > > \smash{§§} Ah, this was a bad example... I have an other snippet from my original file, please see minimal (tex+pdf) below. Here we have a bigger space before "Gai epitome" than before "Gai institutiones". Why is this one? How can this be avoided? Greetings, Steffen (MkIV) --- columns_2.pdf Description: Adobe PDF document columns_2.tex Description: Binary data ___ 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] a ghost in the columns ?
Hi, please have a look at the minimal below (tex+pdf): We always have a kind of heading followed by a block of two columns. But suddenly on page 6, entry "Cassius Dio" has a much larger vertical space above than "Novellen" for example! Why? And how can this be avoided? Any help very much appreciated! Steffen (MkIV) --- columns_1.pdf Description: Adobe PDF document columns_1.tex Description: Binary data ___ 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] register sorting
Hi Hans, I tested all the combinations that Jano set up (see below) and additionally tried the same, but used ch instead of uc. But none of these runs gave this sorting result: East Prussia Eastern enlargement East-West Institute I would would sort it this way, but maybe I am simply wrong? Regards, Steffen Am 30.10.2010 um 02:33 schrieb Jano Kula: > Hi Steffen, > > On 10/29/2010 10:39 PM, Steffen Wolfrum wrote: >> Hi, >> >> I just installed todays beta and I am not sure if regoster sorting is >> working properly. >> >> Eg. I modify (see below) the example from tricky-002.tex and I would like to >> achieve ... >> >> accession >> Action Plan >> association >> >> But none of the four methods (before, after, first, last) gives this result!! >> >> What is wrong? > > Methods were rewritten to give more flexibility. From the Hans' explanation: > > \startquote > > [pzm][mc] = [plus|zero|minus offsets][mapping|cases] > > uc == unicode order > > ok, a bit cryptic but one can now choose methods more explicitly (with the > four predefined) > > cases : lowercasing with shapebased pre/post injection > mapping : given language mapping with shapebased pre/post injection > > Not all combinations make sense so we might need to figure out which ones to > document. With too much simplification (shape based) the sorter will not sort > right as there always need to be some distinction. > > \stopquote > > Bellow is the example with possible combinations, so try which one suits you > best. > > At least method={zm,mc,uc} gives what you want, but I don't know your border > cases. > > Jano > > > > % tricky-006.tex > \setuplayout[topspace=1cm,height=middle] > > \setupbodyfont[11pt] > > \starttext > > \def\Test#1% > {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank} > > wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank > > \startcolumns[n=3] >\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc} >\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc} >\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc} > \stopcolumns > > \page > > wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank > > \startcolumns[n=3] >\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc} >\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc} >\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc} > \stopcolumns > > \page > > \dorecurse {2} { > \page \recurselevel: >\index{oá} \index{öb} \index{Oč} \index{Öď} >\index{oo} \index{öo} \index{Oo} \index{Öo} >\index{Öq} \index{öř} \index{Oš} \index{oů} > done > } > > > > > > > > > > > > > ___ > 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 > ___ ___ 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] hyperlink TOC->section broken?
In version 2010.10.12 it was working. In version 2010.10.29 the mouseover at the TOC entries says "goto page (Null)" HTH, Steffen Am 01.11.2010 um 11:01 schrieb Steffen Wolfrum: > Hi, > > > while the new PDF feature (jump from section heading to TOC) is working, > the traditional way (jump from a TOC entry to its respective page) does not > work! > > Please try attached minimal: > > \setupinteraction[state=start] > \setuphead[chapter][interaction=list] > \placelist[chapter][criterium=text,interaction=all] > > \starttext > > \chapter{test} > > \stoptext > > > 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 > ___ ___ 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] hyperlink TOC->section broken?
Hi, while the new PDF feature (jump from section heading to TOC) is working, the traditional way (jump from a TOC entry to its respective page) does not work! Please try attached minimal: \setupinteraction[state=start] \setuphead[chapter][interaction=list] \placelist[chapter][criterium=text,interaction=all] \starttext \chapter{test} \stoptext 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] hyphenated url
Am 31.10.2010 um 07:06 schrieb Aditya Mahajan: > On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > >> Hi, >> >> the "%" is a frequently used character in URL. >> But \hyphenatedurl{} can deal with it ... >> >> Does someone has a fix? >> >> >> \starttext >> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >> \stoptext > > This is more a proof of concept so I did not take care of the optional > argument of \footnote. > > \newcatcodetable \mytxtcatcodes > \startcatcodetable \mytxtcatcodes > \catcode`\^^I = 10 > \catcode`\^^M = 5 > \catcode`\^^L = 5 > \catcode`\= 10 > \catcode`\^^Z = 9 > \catcode`\\ = 0 > \catcode`\{ = 1 > \catcode`\} = 2 > \stopcatcodetable > > \def\dosingleasciigroup#1% > {\pushcatcodetable > \setcatcodetable \mytxtcatcodes > \def\next##1{#1{##1}\popcatcodetable}% > \next} > > \def\setasciicommand#1% > {\savenormalmeaning{#1}% > \def#1{\dosingleasciigroup{\csname normal\strippedcsname#1\endcsname}}} > > \setasciicommand\footnote > \setasciicommand\hyphenatedurl > > \starttext > \hyphenatedurl{http://www.google.com/some%20thing} > test \footnote{A footnote with a \bold{url} > \hyphenatedurl{http://www.google.com/some%20thing}} > > \stoptext A very nice and clean solution! Is it also possible to adapt it to useURL? \setasciicommand\useURL test \useURL[one][http://www.google.com/some%20thing][][http://www.google.com/some%20thing] text Thanks a lot, 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] transliteration russian
Am 30.10.2010 um 00:15 schrieb Andrzej Orłowski-Skoczyk: > > Warning: the transliteration used in Steffen's document is (or at least > the example is) lossy and as such will likely produce wrong hyphenation > output no matter the applied method of making TeX hyphenate it. > > The transliteration (in the example) is also inconsistent - if you tried > to reverse transliterate it to Cyrillic, you would not only miss some > characters, but you would also get some other characters wrong. > Andrzej, thanks for your statement! Thus I will leave it to the author to draw in the appropriate break points when reading the first proof. After all it's her text. I think the results were not in proportion to the effort, when we were trying to work on a general solution on the context/luatex side. At least not for this specific project. My question starting this thread was made under the assumption of a good transliteration ... Thank you all for your very interesting hints and notes! 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 ___
[NTG-context] register sorting
Hi, I just installed todays beta and I am not sure if regoster sorting is working properly. Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ... accession Action Plan association But none of the four methods (before, after, first, last) gives this result!! What is wrong? Steffen --- \starttext \subject{before : Oo Öo oo öo} \placeregister[index][language=en,method=before] \par \subject{after : oo öo Oo Öo} \placeregister[index][language=en,method=after] \par \subject{first : Oo oo Öo öo} \placeregister[index][language=en,method=last] \par \subject{last : oo Oo öo Öo} \placeregister[index][language=en,method=first] \par \dorecurse {3} { \page \recurselevel: \index{Action plans} \index{association} \index{accession} \index{bOo} \index{bõö} \index{bõo} \index{boö} \index{oo} \index{öo} \index{Oo} \index{Öo} done } \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 ___
[NTG-context] transliteration russian
Hi all, I am just about to typeset a book of a russian author written in english, but with a lot of russian literature listed in the bibliography: The titles of theses sources are russian but in latin transliteration, like this ... O koordinacii mezhdunarodnyh i vneshnejekonomicheskih svjazej subjektov Rossijskoj Federacii But even though I assigned "\language[ru]" the word "vneshnejekonomicheskih" eg. does not get hyphenated. And there are some dozen titles more that show the same problem ... Is this (to not hyphenate) because of the transliteration? Do I have to choose another \language key? Yours, 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 ___
[NTG-context] asciimode
Hi, if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)?? Steffen --- \starttext test: {\asciimode http://europa.eu/rapid/pressReleasesAction.do?reference=IP/05/1156&format=HTML&aged=0&language=EN&guiLanguage=en} text. &% <- this should give an error again \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 ___
[NTG-context] kerncharacters
Hi Wolfgang, how can I get negative character kerning? (\kerncharacters only seems to work with values <0) \starttext {\kerncharacters[0.02]include/inc-archive/materials/archive-material-newWind.asp?textPath=/documents/} {include/inc-archive/materials/archive-material-newWind.asp?textPath=/documents/} {\kerncharacters[-0.2]include/inc-archive/materials/archive-material-newWind.asp?textPath=/documents/} \stoptext Best regards, 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] hyphenated url (SOLVED)
Am 28.10.2010 um 08:53 schrieb Taco Hoekwater: > This works: > > \startbuffer [comurl] \catcode`\%=12 > \hyphenatedurl{... If I didn't overlook something, then this must be finally the solution: \startbuffer [comurl] \catcode`\%=12 \useURL[test][http://www.kommers.se/upload/Analysarkiv/In%20English/Analyses/Woolcock%20paper%20on%20impact%20of%20Lisbontreaty%20on%20tradepolicy.pdf][] [http://www.kommers.se/upload/Analysarkiv/In%20English/\crlf Analyses/Woolcock%20paper%20on%20impact%20of%20Lisb\crlf ontreaty%20on%20tradepolicy.pdf]\from[test] \stopbuffer \setupinteraction [state=start] \starttext test {\getbuffer[comurl]} text.% HEY! test \startfootnote test \getbuffer[comurl]\ text.% HEY! \stopfootnote{} text.% HEY! \stoptext Here, the "%" character can be used for URL, both in bodytext and footnote, but works as "comment", too. And we can at the same time manually break long URLs that are too weird for hyphenation by \hyphenatedurl. Thank you Taco, Peter, Philipp and Hans for your efforts ... and eventually getting all the pieces for this solution together!!! 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] hyphenated url
Am 28.10.2010 um 00:05 schrieb Philipp Gesang: > % Usage example here: > > \startuseURL[anotherurl][urldescription] > http://test%it.example.com > \stopuseURL > > \starttext > > \from[anotherurl]\par > \url[anotherurl]\par > > Test.\footnote{\url[anotherurl]} > > \stoptext Hi Philipp, this doesn't work ... the address gets corrupt! Just run it, open the PDF in Acrobat and test the link: "Acrobat is attempting to connect to http://test%25it.example.com"; 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] hyphenated url
Hi, I tried an other approach: \useURL But here the letterpercent trick doesn't work at all ... ie. there is no clickable link at all anymore! \setupinteraction [state=start] \showframe \starttext \useURL[aurl] [http://www.kommers.se/upload/Analysarkiv/In\letterpercent English/Analyses/Woolcock\letterpercent paper\letterpercent on\letterpercent impact\letterpercent of\letterpercent Lisbontreaty\letterpercent on\letterpercent tradepolicy.pdf] [] [http://www.kommers.se/upload/Analysarkiv/In\letterpercent English/Analyses/Woolcock\letterpercent paper\letterpercent on\letterpercent impact\letterpercent of\letterpercent Lisbontreaty\letterpercent on\letterpercent tradepolicy.pdf] test \from[aurl] text \stoptext Steffen Am 25.10.2010 um 15:12 schrieb Philipp Gesang: > On 2010-10-25 <12:45:17>, Steffen Wolfrum wrote: >> >> Am 25.10.2010 um 12:26 schrieb Philipp Gesang: >>> \unexpanded\gdef\hyphenatedurl >>> >>> Should work in footnotes. Regards, Philipp >> >> >> No, it doesn't (see below). >> Do you have an other idea? > > Right; it works in footnotes but doesn’t accomplish what you > want. Sorry, I tried a lot but ‘\letterpercent’ is the only > way it works for me. > > Concerning the urlencoding I referred to browsers automatically > converting raw urls, like for instance > > http://www.google.com/search?q=ähre > > , which is encoded as > > http://www.google.com/search?q=%C3%A4hre > > by my browser. As long as your urls mainly consist of unicode > strings you might not need the actual (ascii) percent sign. In > this case you could be fine simply by converting strings like > ‘%C3%A4hre’ to ‘Ähre’, rendering urls percent-less, and rely on > the browsers to re-encode them on the fly. Might be a bit far > fetched, though. > > Philipp > > >> >> Thanks, Steffen >> (ConTeXt ver: 2010.10.21) >> >> >> Runaway argument? >> {test \hyphenatedurl {www.test\par \stoptext \par >> ! File ended while scanning use of \@@notemakedescription. >> >> system > error on line 0 in file : File ended while scanning use of >> \@@notemakedescription ... >> >> >> \let\normalhyphenatedurl\hyphenatedurl >> >> \bgroup >> >> \catcode`\%=11 >> >> \unexpanded\gdef\hyphenatedurl >> {\bgroup >> \catcode`\%=11 >> \expandafter\egroup >> \normalhyphenatedurl} >> >> \egroup >> >> \setupinteraction >> [state=start] >> >> \starttext >> >> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >> >> \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 >> ___ > ___ > 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 > ___ ___ 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] hyphenated url
Am 26.10.2010 um 00:49 schrieb Philipp Gesang: > On 2010-10-25 <17:00:39>, Aditya Mahajan wrote: >> On Mon, 25 Oct 2010, Steffen Wolfrum wrote: >> >>> >>> Am 25.10.2010 um 19:30 schrieb Aditya Mahajan: >>> >>>> On Mon, 25 Oct 2010, Steffen Wolfrum wrote: >>>> >>>>> Hi, >>>>> >>>>> the "%" is a frequently used character in URL. >>>>> But \hyphenatedurl{} can deal with it ... >>>>> >>>>> Does someone has a fix? >>>>> >>>>> >>>>> \starttext >>>>> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >>>>> \stoptext >>>> >>>> An extreme solution: >>>> >>>> \startcatcodetable \txtcatcodes >>>> \catcode`\^^I = 10 >>>> \catcode`\^^M = 5 >>>> \catcode`\^^L = 5 >>>> \catcode`\= 10 >>>> \catcode`\^^Z = 9 >>>> \catcode`\\ = 0 >>>> \catcode`\{ = 1 >>>> \catcode`\} = 2 >>>> % \catcode`\% = 14 >>>> \stopcatcodetable >>>> \starttext >>>> \asciimode >>>> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >>>> \stoptext >>> >>> >>> >>> As I don't have any experience with "\asciimode" "I am not sure if I can >>> map this entirely on a complex book project... >> >> In addition to usual asciimode, I changed the definition so that % >> does not have its usual meaning. So, % is no longer a comment; it >> just typesets percentage sign. You can get a comment using >> >> \starthiding ... \stophiding. >> >>> Any known side-effects? >> >> * You need to use \math{...} to go into math mode. $ will just give >> a dollar. >> >> * You need \startformula ... \stopformula to go into display math. >> $$...$$ will just print dollars. >> >> * _ in text mode will produce an underscore instead of an error. _ >> in math mode will work fine. The same for ^. >> >> * You need >> >> \starttex(something) (I don't remember on the top of my head) >> \def\whatever#1{...} >> \stoptex(something) >> >> to change the definition of a macro. >> >> I have never really tested it on a large document. Maybe you can >> just add this and see if everything compiles. > > Hi Aditya, Steffen and others, > > I was toying around with catcode tables too. Shouldn’t it suffice > to simply change % to ‘other’? This way you can keep the dollar > style math. > > Philipp > > ···8< > > \setupinteraction[state=start] > > \unprotect > \newcatcodetable \urlcatcodes % ordinary \ctxcatcodes except for minor changes > \startcatcodetable \urlcatcodes >\catcode`\^^I = 10 >\catcode`\^^M = 5 >\catcode`\^^L = 5 >\catcode`\= 10 >\catcode`\^^Z = 9 >\catcode`\\ = 0 >\catcode`\{ = 1 >\catcode`\} = 2 >\catcode`\$ = 3 >\catcode`\& = 4 >\catcode`\# = 6 >\catcode`\^ = 7 >\catcode`\_ = 8 >\catcode`\~ = 13 >\catcode`\| = 13 >\catcode`\% = \@@other >\catcode`\* = \@@comment % comment this out if you don’t need line > comments > \stopcatcodetable > > \protect > > \starttext > > \bgroup > TEST > \setcatcodetable \urlcatcodes > \hyphenatedurl{www.test%it.com} > * this should be treated as comment > \footnote{ >\hyphenatedurl{www.test%it.com} > } > Math mode: $(x)(y)\,(Fx\,.\,x=y\,.\supset\,Fy)$ > TEST > \egroup > > \stoptext > > ···8< Hi Hans and other catcode wizards, isn't there a way to make this kind of catcode trickery only be available *inside* \hyphenatedurl{} environment? 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] break after index
Hi Jano, Am 26.10.2010 um 18:03 schrieb Jano Kula: > On 10/26/2010 03:01 PM, Steffen Wolfrum wrote: > >> I am working on a book right now where the author set 4906 index marks ... >> sometimes right-in-the-middle of a word, but most often behind (and before >> dot or comma). > > and what about to clean up the file with regular expression similar to this: sure, that's what I always do in the end ;o) But I really don't like this heavy "cleaning" and actually moving things at all. I would prefer to leave the responsibility to the author ... and change the original document as little as possible. 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 ___
[NTG-context] break after index
Hi Hans, in strc-reg.mkiv I found your remark: % needs thinking ... bla\index{bla}. will break before the . but adding a % penalty is also no solution Is this problem solved, ie. is there a working solution? I am working on a book right now where the author set 4906 index marks ... sometimes right-in-the-middle of a word, but most often behind (and before dot or comma). 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] hyphenated url
Hi Aditya, Philipp and all, thank you very much for your interesting ideas! As far as I understood, your starting point is to avoid "%" being treated as "comment" ... This is nice for controlled situations. But in real life projects there are many, various situations where the "%" is used and needed as "comment"! Isn't there a way to treat "%" as a regular character dedicated in the \hyphenatedurl{} environment only?? Steffen PS @ Philipp: Using "*" as line comment would start the problem again, as "*" is also a valid part of URL addresses ... of course we need to keep a character for comment. Am 26.10.2010 um 00:49 schrieb Philipp Gesang: > Hi Aditya, Steffen and others, > > I was toying around with catcode tables too. Shouldn’t it suffice > to simply change % to ‘other’? This way you can keep the dollar > style math. > > Philipp > > ···8< > > \setupinteraction[state=start] > > \unprotect > \newcatcodetable \urlcatcodes % ordinary \ctxcatcodes except for minor changes > \startcatcodetable \urlcatcodes >\catcode`\^^I = 10 >\catcode`\^^M = 5 >\catcode`\^^L = 5 >\catcode`\= 10 >\catcode`\^^Z = 9 >\catcode`\\ = 0 >\catcode`\{ = 1 >\catcode`\} = 2 >\catcode`\$ = 3 >\catcode`\& = 4 >\catcode`\# = 6 >\catcode`\^ = 7 >\catcode`\_ = 8 >\catcode`\~ = 13 >\catcode`\| = 13 >\catcode`\% = \@@other >\catcode`\* = \@@comment % comment this out if you don’t need line > comments > \stopcatcodetable > > \protect > > \starttext > > \bgroup > TEST > \setcatcodetable \urlcatcodes > \hyphenatedurl{www.test%it.com} > * this should be treated as comment > \footnote{ >\hyphenatedurl{www.test%it.com} > } > Math mode: $(x)(y)\,(Fx\,.\,x=y\,.\supset\,Fy)$ > TEST > \egroup > > \stoptext > > ···8< ___ 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] hyphenated url
Am 25.10.2010 um 19:30 schrieb Aditya Mahajan: > On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > >> Hi, >> >> the "%" is a frequently used character in URL. >> But \hyphenatedurl{} can deal with it ... >> >> Does someone has a fix? >> >> >> \starttext >> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >> \stoptext > > An extreme solution: > > \startcatcodetable \txtcatcodes >\catcode`\^^I = 10 >\catcode`\^^M = 5 >\catcode`\^^L = 5 >\catcode`\= 10 >\catcode`\^^Z = 9 >\catcode`\\ = 0 >\catcode`\{ = 1 >\catcode`\} = 2 > % \catcode`\% = 14 > \stopcatcodetable > \starttext > \asciimode > text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. > \stoptext As I don't have any experience with "\asciimode" "I am not sure if I can map this entirely on a complex book project... Any known side-effects? 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] hyphenated url
Am 25.10.2010 um 15:12 schrieb Philipp Gesang: > Concerning the urlencoding I referred to browsers automatically > converting raw urls, like for instance > > http://www.google.com/search?q=ähre > > , which is encoded as > > http://www.google.com/search?q=%C3%A4hre > > by my browser. As long as your urls mainly consist of unicode > strings you might not need the actual (ascii) percent sign. In > this case you could be fine simply by converting strings like > ‘%C3%A4hre’ to ‘Ähre’, rendering urls percent-less, and rely on > the browsers to re-encode them on the fly. Might be a bit far > fetched, though. It is the space the encodes to %20. Thus, it might look a bit strange eg. in cases like this: http://www.cirp.ru/conferences/new%20neighborhood%20policy/publications/frellesen%20paper.doc There is no way to typeset this in ConTeXt MkIV??? 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] hyphenated url
Am 25.10.2010 um 12:26 schrieb Philipp Gesang: > On 2010-10-25 <12:05:37>, Steffen Wolfrum wrote: >> >> \let\normalhyphenatedurl\hyphenatedurl >> >> \bgroup >> >> \catcode`\%=11 >> >> \gdef\hyphenatedurl > > \unexpanded\gdef\hyphenatedurl > > Should work in footnotes. Regards, Philipp No, it doesn't (see below). Do you have an other idea? Thanks, Steffen (ConTeXt ver: 2010.10.21) Runaway argument? {test \hyphenatedurl {www.test\par \stoptext \par ! File ended while scanning use of \@@notemakedescription. system > error on line 0 in file : File ended while scanning use of \@@notemakedescription ... \let\normalhyphenatedurl\hyphenatedurl \bgroup \catcode`\%=11 \unexpanded\gdef\hyphenatedurl {\bgroup \catcode`\%=11 \expandafter\egroup \normalhyphenatedurl} \egroup \setupinteraction [state=start] \starttext text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. \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] hyphenated url
Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. > > Regards, Philipp > > PS: As I understand, the percent sign appears mostly in > url-encoded strings. Couldn’t you just convert that to unicode > and let the browser do the re-encoding when the url is accessed? I am not sure what you mean ... when I enter the code as above pressing the link in Acrobat gives: http://www.test%25it.com So using \hyphenatedurl doesn't make sense anymore ... or did I miss the crucial part?! 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] hyphenated url
Am 25.10.2010 um 11:50 schrieb Philipp Gesang: > On 2010-10-25 <11:39:12>, Steffen Wolfrum wrote: >> >> Am 25.10.2010 um 11:16 schrieb Philipp Gesang: >> >>> On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: >>>> Hi, >>>> >>>> the "%" is a frequently used character in URL. >>>> But \hyphenatedurl{} can deal with it ... >>>> >>>> Does someone has a fix? >>>> >>>> >>>> \starttext >>>> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >>> Ugly, but it works: >>> >>> text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} >>> text. >> >> >> If setupinteraction is set [state=start] it does not work: > > Did you try exactly this: > > ··8<· > \setupinteraction[state=start] > \starttext > text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. > \stoptext > ··8<· sorry, in the meanwhile I was experimenting with another hack (but does not work when used in footnotes) that mixed things up: \let\normalhyphenatedurl\hyphenatedurl \bgroup \catcode`\%=11 \gdef\hyphenatedurl {\bgroup \catcode`\%=11 \expandafter\egroup \normalhyphenatedurl} \egroup 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] hyphenated url
Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: >> Hi, >> >> the "%" is a frequently used character in URL. >> But \hyphenatedurl{} can deal with it ... >> >> Does someone has a fix? >> >> >> \starttext >> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. > Ugly, but it works: > > text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. If setupinteraction is set [state=start] it does not work: ! Undefined control sequence. \normalhyphenatedurl ...phenatedurlnormal \let \b \dohyphenatedurlbefore \le... \@@ddfootnotetitle ...w.test\letterpercent it.com} test. \dododescriptioncomponent ...onparameter \c!title }}}\endgroup \fi \fi \fi \... \@@notemakedescription ...list =,\c!bookmark =,][] \xdef \currentnotenumber {... l.27 ...durl{www.test\letterpercent it.com} test.} text. ? 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 ___
[NTG-context] hyphenated url
Hi, the "%" is a frequently used character in URL. But \hyphenatedurl{} can deal with it ... Does someone has a fix? \starttext text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. \stoptext Thanks, 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] \seeindex broken?
Am 21.10.2010 um 22:19 schrieb Hans Hagen: > On 21-10-2010 10:05, Steffen Wolfrum wrote: >> Hi Hans, >> >> thanks for the fast fix!! Works great! >> >> And looks very good now: >> "see xindex1, xindex2 and xindex3" >> >> >> ps: what sense does it make that only xindex2 has *no* interaction? > > I didn't test interaction as I made just one simple test file. And I assumed it makes somehow sense concerning the request of Alan but I don't remember the details... (wasn't there something about first and last entry of the seeindex reference?) Again, thanks a lot! 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] \seeindex broken?
Hi Hans, thanks for the fast fix!! Works great! And looks very good now: "see xindex1, xindex2 and xindex3" ps: what sense does it make that only xindex2 has *no* interaction? Steffen Am 20.10.2010 um 09:36 schrieb Steffen Wolfrum: > Hi, > > it seems that \seeindex doesn't work as expected anymore (please run attached > example). > Or did I do something wrong? > > Best, > Steffen > (ConTeXt ver: 2010.10.12 01:03 MKIV) > > > \starttext > > \placeregister[index] > > \page > > %test \seeindex{index1}{xindex2}test % <- here it works > > \page > > test \index{index1}test \index{xindex2}text > > \page > > test \index{index1}test \index{xindex2}text > > \page > > test \index{index1}test \index{xindex2}text > > \page > > test \seeindex{index1}{xindex2}test % <- here it does not > > \page > > test \index{index1}test \index{xindex2}text > > \page > > test \index{index1}test \index{xindex2}text > > \page > > test \index{index1}test \index{xindex2}text > > %\page > > %test \seeindex{index1}{xindex2}test % <- here it does not > > > \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 > ___ ___ 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] \seeindex broken?
Hi, it seems that \seeindex doesn't work as expected anymore (please run attached example). Or did I do something wrong? Best, Steffen (ConTeXt ver: 2010.10.12 01:03 MKIV) \starttext \placeregister[index] \page %test \seeindex{index1}{xindex2}test % <- here it works \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \seeindex{index1}{xindex2}test % <- here it does not \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text %\page %test \seeindex{index1}{xindex2}test % <- here it does not \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] structuresectionstarterset ?
Am 14.10.2010 um 15:58 schrieb Hans Hagen: > On 13-10-2010 1:49, Steffen Wolfrum wrote: >> Hi, >> >> >> as definestructureconversionset is such a convenient command, could we also >> have the accompanying structuresectionstarterset and >> structuresectionstopperset? >> >> >> \definestructureconversionset [default] [ >> ,Characters,Romannumerals,Numbers,characters,charcharacters][numbers] >> \definestructuresectionstarterset [default] [ , , , , ,{(}][{.}] >> \definestructuresectionstopperset [default] [ ,{.},{.},{)},{)},{)}][{.}] > > maybe ... you can set a tracker item so that it can be considered done. st ___ 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] section kills break ?
Hi, Is this a known issue? Without chapter the linebreak "\\" works. With a section header before it fails. Steffen --- \starttext %\chapter{test} % <- un-/comment \starttabulate[|p|p|] \NC test\\test \NC text \NC\NR \stoptabulate \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] page breaks in cells?
Am 13.10.2010 um 23:44 schrieb Arthur Reutenauer: >> ... look at the date/time: This was almost instant reply! > > It's still more than one minute... It was 80 seconds (see log below). Who wants to beat this record?! (13. Oktober 2010 23:34:14 MESZ 13. Oktober 2010 23:35:34 MESZ) 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] page breaks in cells?
... look at the date/time: This was almost instant reply! Great, thank you Wolfgang, Steffen Am 13.10.2010 um 23:35 schrieb Wolfgang Schuster: > > Am 13.10.2010 um 23:34 schrieb Steffen Wolfrum: > >> Hi, >> >> Which kind table supports page breaks in cells? > > tabulate > > 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 > ___ ___ 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] page breaks in cells?
Hi, Which kind table supports page breaks in cells? I have a simple, but long table: only two columns, but sometimes very long text in a cell... Thanks, 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 ___
[NTG-context] entries in registerentry
Hi, I don't understand the concept of entries in registerentry :o( Say, you have this example: \starttext \placeregister[index] \page page 1 \setregisterentry[index] [entries:1={eins}, entries:2={zwei}, entries:3={drei}, label=range] \page page 2 text \page page 3 \finishregisterentry[index][label=range] text \stoptext Why does only have entries:3 the index range "2-4", both entries:1 and 2 are emtpy? What should I write in order to have all of those entries referering to the same "2-4"? Best, 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 ___
[NTG-context] structuresectionstarterset ?
Hi, as definestructureconversionset is such a convenient command, could we also have the accompanying structuresectionstarterset and structuresectionstopperset? \definestructureconversionset [default] [ ,Characters,Romannumerals,Numbers,characters,charcharacters][numbers] \definestructuresectionstarterset [default] [ , , , , ,{(}][{.}] \definestructuresectionstopperset [default] [ ,{.},{.},{)},{)},{)}][{.}] Best wishes, 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] Error message wrong when \component is used
Why do you use start-/stoptext inside start-/stopproduct? Steffen Am 12.10.2010 um 14:59 schrieb : > file1.tex: > \startproduct file1 > \starttext > Bla bla bla. > Bla bla bla. > Bla bla bla. > \component file2 > \stoptext > \stopproduct ___ 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] register broken in latest beta!
Am 12.10.2010 um 13:18 schrieb Hans Hagen: > On 12-10-2010 1:10, Steffen Wolfrum wrote: >> >> >> Hi Taco, >> >> as it calls itself "LuaTeX" error ... maybe you could have a look at it and >> hopefully confirm that error? >> >> >> ! LuaTeX error text/tex/texmf-context/tex/context/base/sort-ini.lua:106: >> attempt to compare nil with number >> stack traceback: >> ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: in >> function<...text/tex/texmf-context/tex/context/base/sort-ini.lua:105> >> ...text/tex/texmf-context/tex/context/base/sort-ini.lua:416: in >> function 'firstofsplit' >> ...text/tex/texmf-context/tex/context/base/strc-reg.lua:403: in >> function 'finalize' >> ...text/tex/texmf-context/tex/context/base/strc-reg.lua:427: in >> function 'analyzed' >> ...text/tex/texmf-context/tex/context/base/strc-reg.lua:789: in >> function 'process' >> :1: in main chunk. >> >> system> error on line 7 in file index_ff.tex: LuaTeX error > > should work ok with the latest ... Yes, with todays beta (ConTeXt ver: 2010.10.12) it works again. Thanks for the fast fix! 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] Fwd: register broken on steffens machine
Am 12.10.2010 um 13:18 schrieb Hans Hagen: > btw, this is related to the somewhat weird feature of setting index entries > at the end - i might remove that feature if it keeps interfering - When I have to deal with documents that were written in MSWord and export them to eg. TEI XML, it looks like this: ... text, text ... Indexentry Subentry So, setting the index entrie at the end matches this order quite well ... And as a lot of documents originally are written in MSWord your feature is very useful! 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] \setupnote (was subfootnote)
Am 12.10.2010 um 11:48 schrieb Alan BRASLAU: > On Tuesday 05 October 2010 15:32:27 Wolfgang Schuster wrote: >> Am 05.10.2010 um 14:41 schrieb Alan BRASLAU: >>> >>> The above example illustrates a *spacing problem* after >>> \startfootnote \stopfootnote >>> (the spacing after the footnote enumerator differs from \footnote{}) >> >> The \stopfootnote gobbles the next space, to prevent this you can say in >> mkii \setupnote[footnote][next=\autoinsertnextspace] but the ”next” key is >> missing in mkiv. > > Indeed! > What to do? Hans recommended: \stopfootnote{} 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 ___
[NTG-context] register broken in latest beta!
Hi, todays beta gives an error with this test (taken from strc-reg.kmiv at line 35): \starttext \placeregister[index] test \index{aa} test \startregister[index][x]{bb} test \page test \page test \page test \stopregister[index][x] \stoptext ! LuaTeX error ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: attempt to compare nil with number stack traceback: ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: in function <...text/tex/texmf-context/tex/context/base/sort-ini.lua:105> ...text/tex/texmf-context/tex/context/base/sort-ini.lua:416: in function 'firstofsplit' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:403: in function 'finalize' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:427: in function 'analyzed' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:789: in function 'process' :1: in main chunk. system > error on line 8 in file index_ff.tex: LuaTeX error ... Greetings, Steffen BTW: I found three invalid characters (form feed?) in strc-reg.mkiv: at line 549, 568, 632. ___ 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] subfootnote
Am 05.10.2010 um 15:32 schrieb Wolfgang Schuster: > > Am 05.10.2010 um 14:41 schrieb Alan BRASLAU: > >> On Thursday 30 September 2010 18:53:43 Steffen Wolfrum wrote: >>> >>> --- test file: >>> >>> \starttext >>> test \footnote{} >>> text >>> test \startfootnote note \stopfootnote >>> test \startsubfootnote subnote \stopsubfootnote >>> text >>> \stoptext >> >> On Thursday 30 September 2010 20:42:39 Wolfgang Schuster wrote: >>> >>> \definestructureseparatorset [footnote][][] >>> \definestructureconversionset[footnote][number,characters][numbers] >>> \setupenumerations[footnote][numberconversionset=footnote,numberseparatorset=footnote] >> >> Nice to discover subfootnotes! >> >> The above example illustrates a *spacing problem* after >> \startfootnote \stopfootnote >> (the spacing after the footnote enumerator differs from \footnote{}) > > The \stopfootnote gobbles the next space, to prevent this you can say in mkii > \setupnote[footnote][next=\autoinsertnextspace] but the ”next” key is missing > in mkiv. > > Wolfgang I can't switch it off \definestructureseparatorset [footnote][][] \definestructureconversionset[footnote][number,characters][numbers] \setupenumerations[footnote][numberconversionset=footnote,numberseparatorset=footnote] \setupfootnotes[way=bytext]% <- here is the problem!! \starttext test \footnote{} text test \startfootnote note \stopfootnote test \startsubfootnote subnote \stopsubfootnote test \startfootnote note \stopfootnote \stoptext 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] Fifth ConTeXt meeting, September 2011, France
Am 03.10.2010 um 22:25 schrieb Arthur Reutenauer: > Hello everyone, > > This must be the second thread I initiate this year on the list, but unlike > my previous post (http://www.ntg.nl/pipermail/ntg-context/2010/048296.html), > this is actually serious. > > I hereby announce the next ConTeXt meeting, that will take place on > the island of Porquerolles off the coast of the French Riviera, > from Monday, September 19th, 2011, to Saturday, September 24th. The > conference venue has been pre-booked for these dates, so this is firm. > Of course, there is yet nothing like a set program at this moment, so > we're expecting your proposals (there will be a formal call for papers > later). > > Watch this page: > > http://meeting.contextgarden.net/2011/ > > Registration is not yet open, but will be in a few weeks. The fee is > notably higher than it was for the previous ConTeXt meetings (see > http://meeting.contextgarden.net/2011/fee.shtml). I'm sorry about that, > but that is the best I can do in this place, short of feeding on black > roots and camping in the woods or on the beach (which is forbidden > anyway on the island, it's a protected area apart for the village). But > food will instead be excellent, obviously, and wine is included in the > price of the meals (that was actually one of the first things I was told > by the people at the conference venue). > > See you in Porquerolles! That's a real nice perspective (... in the face of long, cold and dark months of winter coming close ;o) See you in Porquerolles! 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] Two layer in a document
Am 01.10.2010 um 11:00 schrieb Peter Rolf: > Am 01.10.2010 09:51, schrieb R. Bastian: >> On Thu, 30 Sep 2010 19:42:34 +0200 >> Wolfgang Schuster scribit: >> >>> >>> Am 30.09.2010 um 11:49 schrieb Daniel Grycman: >>> Hi list, I am typesetting a template for internal documentation. In the header of the document I want to put two different figure. One on the left side and the other on the right side. When I compile the source the output shows only the figure on the left side. >> [...] >>> One layer is enough for both pictures, try also to make it more readable >>> next time. >>> >>> \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] >>> >>> \setupbackgrounds[page][background={foreground,logo}] >>> >>> \setlayer >>> [logo] >>> [preset=righttop, >>> hoffset=1cm] >>> {\externalfigure[label][height=4cm,3.5cm]} >>> >>> \setlayer >>> [logo] >>> [preset=lefttop, >>> hoffset=1.3cm, >>> voffset=1.4cm] >>> {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} >>> >>> \starttext >>> \dorecurse{20}{\input knuth\par} >>> \stoptext >>> >>> Wolfgang >> >> Does this work in Mk II ? >> > > You can set your mind at rest and test it yourself. > The 'nuke_my_computer_by_running_context' module is no longer part of > the official distribution ;-) > > Best wishes, Peter ... added to "goodies from the mailing list": http://wiki.contextgarden.net/Humour 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 ___
[NTG-context] structure affects protrusion
Hi, please have look at the minimal example below: Using the latest beta (20100929) with structure set to stop: protrusion works. With structure set to start: the hyphen doesn't get protruded! (but the comma still does ...?) Steffen --- \enabletrackers[structure.tags] \setupstructure[state=stop] % <- start = no protrusion \definefontfeature[default][default] [mode=node,protrusion=quality,script=latn] \starttypescript[TheTimes] \definetypeface [TheTimes] [rm] [serif] [times] [default] \stoptypescript \usetypescript[TheTimes] \setupbodyfont[TheTimes, 12pt] \setupalign[line,block,hanging] \setuplayout [width=113mm] \starttext \showframe \input tufte \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] subfootnote
Am 30.09.2010 um 20:42 schrieb Wolfgang Schuster: > > Am 30.09.2010 um 20:31 schrieb Steffen Wolfrum: > >>> \definestructureconversionset[footnote][number,characters][numbers] >>> \setupenumerations[footnote][numberconversionset=footnote] >> >> Again, not yet! >> >> Please run the test file: now we have "2.a" ... instead of "2a". > > \definestructureseparatorset [footnote][][] > \definestructureconversionset[footnote][number,characters][numbers] > \setupenumerations[footnote][numberconversionset=footnote,numberseparatorset=footnote] Wow, it's really needs a lot to change the outfit of one tiny subfoonote ;o) > @Hans Can you make synonyms of the \define... commands without the > “structure” in the name! +1 I assumed that "\definestructurefoo" is always related to structure, meaning structure of document, sections ... not the formatting of footnotes. Next time I know better: it's all about enumeration, it's all about structure today. Thank you very much! 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] subfootnote
Am 30.09.2010 um 20:06 schrieb Wolfgang Schuster: > > Am 30.09.2010 um 18:53 schrieb Steffen Wolfrum: > >> >> Am 30.09.2010 um 18:28 schrieb Wolfgang Schuster: >> >>> >>> Am 30.09.2010 um 14:03 schrieb Steffen Wolfrum: >>> >>>> Hi, >>>> >>>> how do I change the numbering of subfootnote from eg. "2.1" to "2a"? >>>> >>>> See minimal example, please: >>>> >>>> \setupenumerations[subfootnote][conversion=a] % ? >>>> \setupsubfootnotes[conversion=a] % ? >>> >>> numberconversion=... >> >> No, not yet. >> >> Now the result is "1", "2" and "b.a" ... but it should be "2a" > > \definestructureconversionset[footnote][number,characters][numbers] > \setupenumerations[footnote][numberconversionset=footnote] Again, not yet! Please run the test file: now we have "2.a" ... instead of "2a". And setupenumerations[footnote] doesn't take a stopper! So, how do I get rid of this "." inbetween?? Steffen --- test file: \definestructureconversionset[footnote][number,characters][numbers] \setupenumerations[footnote][numberconversionset=footnote] \starttext test \footnote{} text test \startfootnote note \stopfootnote test \startsubfootnote subnote \stopsubfootnote text \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] subfootnote
Am 30.09.2010 um 18:28 schrieb Wolfgang Schuster: > > Am 30.09.2010 um 14:03 schrieb Steffen Wolfrum: > >> Hi, >> >> how do I change the numbering of subfootnote from eg. "2.1" to "2a"? >> >> See minimal example, please: >> >> \setupenumerations[subfootnote][conversion=a] % ? >> \setupsubfootnotes[conversion=a] % ? > > numberconversion=... No, not yet. Now the result is "1", "2" and "b.a" ... but it should be "2a" Steffen --- test file: \setupenumerations[subfootnote][numberconversion=character] \starttext test \footnote{} text test \startfootnote note \stopfootnote test \startsubfootnote subnote \stopsubfootnote text \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 ___
[NTG-context] subfootnote
Hi, how do I change the numbering of subfootnote from eg. "2.1" to "2a"? See minimal example, please: \setupenumerations[subfootnote][conversion=a] % ? \setupsubfootnotes[conversion=a] % ? \starttext test \footnote{} \subfootnote{} text test \startfootnote note \stopfootnote test \startsubfootnote subnote \stopsubfootnote text \stoptext Thanks, 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] bug with columnsets in projects
Am 29.09.2010 um 20:05 schrieb Wolfgang Schuster: > > Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: > >> Hi, >> >> please see attached example: >> >> If you run the file containing the columnset directly (chap_X) it runs fine. > > The error message is misleading but after i copied everything in one file i > found the culprit, > there is a invalid character in your chap_X file you can see in this message: Oh, then this really was misleading! I never would have searched for this character ... How did you recognize it? You wear special glasses for seeing invisible characters, don't you?! Whatever, thank you very, very much for your efforts :o) Great! 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] insert pagebreak in toc (MkIV)
Am 29.09.2010 um 10:55 schrieb Hans Hagen: > On 29-9-2010 9:22, Steffen Wolfrum wrote: >> >> Am 28.09.2010 um 12:33 schrieb Mari Voipio: >> >>> On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum >>> wrote: >>>>>> \completecontent[pageboundaries={20.3,30}] >>>> >>>> >>>> In current context it doesn't show any effect. >>>> Is it obsolete in MkIV? >>> >>> It works for me, even in the fairly complex files that I recently >>> upgraded from MKII to MKIV. I would've gone back to using MKII if it >>> didn't work... >>> >>> BTW, my magic line is >>> \placecontent[pageboundaries={5.2}] >>> >>> (I do the TOC heading separately.) >>> >>> I just tested it works, my ConTeXt is ver 2010.09.22. >> >> >> If I use eg. pageboundaries={I.} it seems to work ... but: >> it works on *all* sections with "I."!! >> >> If I want to be more precise and use pageboundaries={B.I.} it does not show >> any effect. >> >> So my assumption is: the pageboundaires command only works if I have a >> full-path list, like this ... > > wrong assumption. the page boundary mechanism has never been adapted to the > new structure code > > so, I've decided to kick out pageboundaries and provide a more general > mechanism > > \definelistextra[page][before=\page,after=\page] a very inspiring mechanism, great! > \starttext > >\placelist[chapter,section][criterium=text,extras={1.1=page}] > >\chapter{x1} >\section{xx1} >\section{xx2} >\chapter{y2} >\section{yy1} >\section{yy2} > > \stoptext > > the specification passed in extras uses numbers i.e. no funny conversions and > strips leading and trailing zero numbered sections. :o) 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] prevent page break after head
Am 29.09.2010 um 10:21 schrieb Andreas Harder: > Hi all, > > please have a look at the following example: > > \starttext \showframe > \section{test} > \dorecurse{36}{test\par} > \section{test} > \startitemize > \dorecurse{12}{\item #1} > \stopitemize > % \dorecurse{12}{• #1\blank} > \stoptext > > I would like to prevent the page break after the second section. It works > okay if the head is followed by normal text. > > Is there a key I have not found yet? I tried all kind of combinations … Just add a \testpage[4] before the second \section{test} 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] bug with columnsets in projects
Am 29.09.2010 um 09:27 schrieb Steffen Wolfrum: > > Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: > >> Hi, >> >> please see attached example: >> >> If you run the file containing the columnset directly (chap_X) it runs fine. >> >> But if you run MyProduct.tex there is an error: >> >> >> >> ! Missing } inserted. >> >> system > error on line 21 in file MyProduct.tex: Missing ... >> >> 11 %\component TOCtocDatei >> 12 \stopfrontmatter >> 13 % >> 14 \startbodymatter >> 15 \component chap_X >> 16 %\component teil_1 >> 17 %\component teil_2 >> 18 %\component teil_3 >> 19 %\component teil_4 >> 20 %\component teil_5 >> 21 >> \stopbodymatter >> 22 % >> 23 \startbackmatter >> 24 %\component register >> 25 \stopbackmatter >> 26 \stopproduct >> >> >> } >> >> \endgroup >> l.21 \stopbodymatter >> >> ? >> >> >> >> >> This is with MkIV. > > > > If I would use columns instead of columnsets there is also an error, but > different: > > systems : end file chap_X at line 15 > structure : end of sectionblock bodypart > backends> using xmp file > '/Users/steffen/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1, subpage 1 > structure : begin of sectionblock backpart > structure : end of sectionblock backpart > ) > * In this case (columns) it would help to include the file not as a \component but as a regular file via \input. This runs without "*" error. Yet, trying the same with the original case (columnsets) fails: this just does not get processed! Again a "}" is supposed to be missing. Can someone confirm this? Is there a workaround? 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] bug with columnsets in projects
Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: > Hi, > > please see attached example: > > If you run the file containing the columnset directly (chap_X) it runs fine. > > But if you run MyProduct.tex there is an error: > > > > ! Missing } inserted. > > system > error on line 21 in file MyProduct.tex: Missing ... > > 11 %\component TOCtocDatei > 12 \stopfrontmatter > 13 % > 14 \startbodymatter > 15 \component chap_X > 16 %\component teil_1 > 17 %\component teil_2 > 18 %\component teil_3 > 19 %\component teil_4 > 20 %\component teil_5 > 21 >> \stopbodymatter > 22 % > 23 \startbackmatter > 24 %\component register > 25 \stopbackmatter > 26 \stopproduct > > >} > > \endgroup > l.21 \stopbodymatter > > ? > > > > > This is with MkIV. If I would use columns instead of columnsets there is also an error, but different: systems : end file chap_X at line 15 structure : end of sectionblock bodypart backends> using xmp file '/Users/steffen/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 structure : begin of sectionblock backpart structure : end of sectionblock backpart ) * Hope that helps? 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] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 12:33 schrieb Mari Voipio: > On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum wrote: >>>> \completecontent[pageboundaries={20.3,30}] >> >> >> In current context it doesn't show any effect. >> Is it obsolete in MkIV? > > It works for me, even in the fairly complex files that I recently > upgraded from MKII to MKIV. I would've gone back to using MKII if it > didn't work... > > BTW, my magic line is > \placecontent[pageboundaries={5.2}] > > (I do the TOC heading separately.) > > I just tested it works, my ConTeXt is ver 2010.09.22. If I use eg. pageboundaries={I.} it seems to work ... but: it works on *all* sections with "I."!! If I want to be more precise and use pageboundaries={B.I.} it does not show any effect. So my assumption is: the pageboundaires command only works if I have a full-path list, like this ... A. Test B. Test B.I. Test B.II. Test C. Test But mine looks like this: A. Test B. Test I. Test II. Test C. Test Am I right, that pageboundaries doesn't work with the second setup?! 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] jump to PDF page
Am 28.09.2010 um 16:38 schrieb Hans Hagen: > On 28-9-2010 4:13, Hans Hagen wrote: >> On 28-9-2010 3:27, Steffen Wolfrum wrote: >>> >>> Am 28.09.2010 um 14:41 schrieb Hans Hagen: >>> >>>> On 28-9-2010 2:28, Steffen Wolfrum wrote: >>>>> >>>>> I need it for building my own register by hand: >>>>> when I have "Stichwort 6" and I want add the link it would be great >>>>> to say: >>>>> >>>>> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a >>>>> pagecommand, of course. >>>> >>>> you can add this to lpdf-ano.lua and then use realpage(123) >>>> >>>> function specials.realpage(var,actions) >>>> return link(nil,nil,nil,var.operation,actions) >>>> end >>> >>> >>> no, no, obviously the terms were mixed! sorry!! >>> this is what we already had (the link goes to userpage 10 = realpage 6). >>> >>> I need a "function specials.realpage", so the link goes to userpage 6 ! >> >> that's more work as we can have dup userpage entries > > I'll upload a beta that supports > > \setupinteraction[state=start] > > \starttext >\startstandardmakeup >no page >\stopstandardmakeup >one \goto{page 2}[page(2)] >one \goto{realpage 2}[realpage(2)] >one \goto{userpage 2}[userpage(2)] >\page >two \goto{page 1}[page(1)] >two \goto{realpage 1}[realpage(1)] >two \goto{userpage 1}[userpage(1)] > \stoptext great! st. ___ 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] jump to PDF page
Am 28.09.2010 um 14:41 schrieb Hans Hagen: > On 28-9-2010 2:28, Steffen Wolfrum wrote: >> >> I need it for building my own register by hand: >> when I have "Stichwort 6" and I want add the link it would be great to say: >> >> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of >> course. > > you can add this to lpdf-ano.lua and then use realpage(123) > > function specials.realpage(var,actions) >return link(nil,nil,nil,var.operation,actions) > end no, no, obviously the terms were mixed! sorry!! this is what we already had (the link goes to userpage 10 = realpage 6). I need a "function specials.realpage", so the link goes to userpage 6 ! 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] jump to PDF page
Am 28.09.2010 um 14:22 schrieb Hans Hagen: > On 28-9-2010 1:54, Steffen Wolfrum wrote: >> >> Am 28.09.2010 um 13:26 schrieb Hans Hagen: >> >>> On 28-9-2010 12:49, Steffen Wolfrum wrote: >>>> Hi, >>>> >>>> I there a command to "jump" to a specific pdf page? >>>> >>>> >>>> Like \goto,\at, \in, \about ... only, in this case a page number should be >>>> given! >>>> >>>> >>>> Any ideas? >>> >>> \goto{someplace}[page(10)] >> >> >> This uses the number of real page. >> But if I need to use the numbers of userpage? >> >> For example: >> >> \setuppagenumber[number=5] >> \setupinteraction[state=start] >> \starttext >> \dorecurse{10}{\input tufte \page} >> >> Go to page \goto{6}[page(6)] >> >> \stoptext >> >> >> This link goes to userpage 10 (= realpage 6 ). >> How do I say "go to realpage number 6"? > > what if we have several page 6's in one document (using hard coded page > numbers is a bad idea anyway) ok. but in my book there is only on realpage 6. I need it for building my own register by hand: when I have "Stichwort 6" and I want add the link it would be great to say: "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of course. 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] jump to PDF page
Am 28.09.2010 um 13:26 schrieb Hans Hagen: > On 28-9-2010 12:49, Steffen Wolfrum wrote: >> Hi, >> >> I there a command to "jump" to a specific pdf page? >> >> >> Like \goto,\at, \in, \about ... only, in this case a page number should be >> given! >> >> >> Any ideas? > > \goto{someplace}[page(10)] This uses the number of real page. But if I need to use the numbers of userpage? For example: \setuppagenumber[number=5] \setupinteraction[state=start] \starttext \dorecurse{10}{\input tufte \page} Go to page \goto{6}[page(6)] \stoptext This link goes to userpage 10 (= realpage 6 ). How do I say "go to realpage number 6"? This would be the last missing step to solve all my register problems!!! 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 ___
[NTG-context] jump to PDF page
Hi, I there a command to "jump" to a specific pdf page? Like \goto,\at, \in, \about ... only, in this case a page number should be given! Any ideas? Thanks, 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 ___
[NTG-context] realpage in register
Hi, I want to set up a register that shows the number of userpage and the number of realpage (used in pdf numbering). I was thinking of something like ... \def\BothPageNumbers#1 {#1 (\realpageno[#1])} \setupregister[index][pagecommand=\BothPageNumbers] ... only, I don't know how to address the corresponding realpage number ;o( Any idea? 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] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 11:35 schrieb Elias Oltmanns: > Steffen Wolfrum wrote: >> Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum: >> >>> >>> Am 28.09.2010 um 10:37 schrieb Elias Oltmanns: >>> >>>> Steffen Wolfrum wrote: >>>>> Hi, >>>>> >>>>> somewhere I saw the code how to insert a pagebreak in the table of >>>>> content. >>>>> I remember it somehow was related to the new structure model (one could >>>>> specify after which sections the table should break). >>>> >>>> \completecontent[pageboundaries={20.3,30}] >> >> >> In current context it doesn't show any effect. > > It does here (updated minimals today) and in MkIV too. Do you have an > example that doesn't work? I'll send you some file privately. 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] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum: > > Am 28.09.2010 um 10:37 schrieb Elias Oltmanns: > >> Steffen Wolfrum wrote: >>> Hi, >>> >>> somewhere I saw the code how to insert a pagebreak in the table of content. >>> I remember it somehow was related to the new structure model (one could >>> specify after which sections the table should break). >> >> \completecontent[pageboundaries={20.3,30}] In current context it doesn't show any effect. Is it obsolete in MkIV? 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] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns: > Steffen Wolfrum wrote: >> Hi, >> >> somewhere I saw the code how to insert a pagebreak in the table of content. >> I remember it somehow was related to the new structure model (one could >> specify after which sections the table should break). > > \completecontent[pageboundaries={20.3,30}] Yes, that's what I meant ;o) Thank you! 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 ___
[NTG-context] insert pagebreak in toc (MkIV)
Hi, somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break). But I don't remember how it was done Could someone help, please? Thanks, 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] getmarking does not use mark?
Am 27.09.2010 um 18:21 schrieb Wolfgang Schuster: > > Am 27.09.2010 um 18:16 schrieb Steffen Wolfrum: > >>>> In that example below \getmarking uses the value of title ... and not of >>>> mark! >>> >>> The name of the key is "marking”. >> >> >> >> I don't understand. >> >> In context-excursion it says ... >> >> "After the definition texts can be marked by: >> \marking[.1.]{.2.} >> .1. name .2. text >> and recalled by: >> \getmarking[.1.][.2.]" >> >> But in MkIv sections there is already text marked ... >> >> \startsection[ >> title={title}, >> bookmark={bookmark}, >> mark={mark}, >> list={list}] >> >> At least it looks as if there were some text marked by mark={mark}! > > \startsection[...,marking=mark,...] > > ... > > \stopsection "Time is fleeting, madness takes its toll." ... and I swear: last year in April it was \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] Thanks Wolfgang! 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] getmarking does not use mark?
Am 27.09.2010 um 17:50 schrieb Wolfgang Schuster: > > Am 27.09.2010 um 17:36 schrieb Steffen Wolfrum: > >> >> >> Hi, >> >> did I misunderstood something ... or is this simply a bug?! >> >> In that example below \getmarking uses the value of title ... and not of >> mark! > > The name of the key is "marking”. I don't understand. In context-excursion it says ... "After the definition texts can be marked by: \marking[.1.]{.2.} .1. name .2. text and recalled by: \getmarking[.1.][.2.]" But in MkIv sections there is already text marked ... \startsection[ title={title}, bookmark={bookmark}, mark={mark}, list={list}] At least it looks as if there were some text marked by mark={mark}! Just, how can it be accessed?? 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 ___
[NTG-context] getmarking does not use mark?
Hi, did I misunderstood something ... or is this simply a bug?! In that example below \getmarking uses the value of title ... and not of mark! (is there an other command to access the value of mark?) Steffen --- \def\KolumneL{\headnumber[chapter]\enskip\getmarking[chapter]} \def\KolumneR{\headnumber[section]\enskip\getmarking[section]} \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \setupheadertexts [\vtop{\startalignment[center]\KolumneR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}] \starttext \startchapter[] test \stopchapter \startsection[ title={title}, bookmark={bookmark}, mark={mark}, list={list}] test\page test \page test \stopsection \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 ___
[NTG-context] urgent help needed (registers)
Hi, I need to shape a index register as shown in this sample page: http://werksatz.com/attachments/index_sample.pdf -> the entries should be like \hangafter=1\hangindent=10pt\parindent0pt -> also the subentries (like in itemize: the "-" stands out) -> and the indicator should be the first character bold of the first entry with that letter (better see the example, it's hard to describe :-) How can this be done in MkIV?? Thank you very much, 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 ___
[NTG-context] HowUgly setupregister
Hi, in MkII I used for formatting the index-register a command=\HowUgly \def\HowUgly#1{\doHowUgly#1\relax} \def\doHowUgly#1#2\relax{\iffirstregisterentry{\crlf \crlf $\backslash$blank[biggerblank]$\backslash$hangIndex$\{\backslash$bf #1$\}$}#2\else#1#2\fi} In MkIV there is no \iffirstregisterentry any more. What is the corresponding command today? Thanks, 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 ___
[NTG-context] Tagged register
Hi, up to now one can use either collapsed registeres ... \placeregister[index][compress=yes] or tagged PDF ... \setupstructure[state=start] Otherwise there is an error (see below). Couldn't we also have both, or is this impossible by the logic of structure? (I have to admit, I never saw the combination of a tagged pdf with collapsed register ...) Steffen === ! Undefined control sequence. system > error on line 26 in file Ohnee-Titel.tex: Undefined control sequence ... 16 \starttext 17 \placeregister[index][compress=yes] \blank[2*big] 18 \page 19 \dorecurse{10}{test 1:!\startregister[index]{test} test 20 \stopregister{} 21 \page} 22 \dorecurse{5} {test 2:\recurselevel \page} 23 \dorecurse{10}{test 3:!\startregister[index]{test} test 24 \stopregister{} 25 \page} 26 >> \dorecurse{5} {test 4:\recurselevel \page} 27 \dorecurse{1} {test 5:!\startregister[index]{test} test 28 \stopregister{} 29 \page} 30 \dorecurse{5} {test 6:\recurselevel \page} 31 \dorecurse{10}{test 7:!\startregister[index]{test} test 32 \stopregister{} 33 \page} 34 \stoptext \t!registerpagerange \dododostarttagged ...a {structures.tags.start("#1 ",{ label = "\dogetupsomet... \registerpagerange ...\t!registerpagerange \empty \dostarttagged \t!register... l.26 } \doplaceregister ...ameter \c!pagesegments ", } )} \stoppacked \stopcolumns \... l.17 \placeregister[index][compress=yes] \blank[2*big] ? Process aborted ___ 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] \adaptlayout obsolete?
Am 25.09.2010 um 21:07 schrieb Steffen Wolfrum: > Hi, > > the command "\adaptlayout" doesn't work in MkIV. No, everything is fine with \adaptlayout. It was my mistake, sorry: accidentally the layout had a footer=0pt ... (thus the command couldn't adapt the layout, natch) It won't happen again 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 ___
[NTG-context] \adaptlayout obsolete?
Hi, the command "\adaptlayout" doesn't work in MkIV. Is there a topical alternative? 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] new beta (index)
Am 22.09.2010 um 16:52 schrieb Hans Hagen: > On 22-9-2010 3:22, Alan BRASLAU wrote: > >> Nice, but something is broken >> (of course, my minimal examples work, but not my 700+ page test file!): >> (thanks to Taco, I now understand the luatex error message) > > hm, so some word in the index is triggering this ... no minimal example I > guess btw: does the MkIV-structure-idea also provide an xml-alike start/stop for index marks? Schlüsselwort (I assume \startregister[index]{keyword}...\stopregister is meant for something different: a MkII command for index ranges?) 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] Info about creating modules for beginners.
Am 23.09.2010 um 23:15 schrieb Wolfgang Schuster: > > Am 23.09.2010 um 23:08 schrieb Steffen Wolfrum: > >>>> btw: modules are used to be stored eg. in >>>> ~/context/tex/texmf-local/tex/context/third/ folder. >>>> >>>> is is also possible to keep/find them not in texfm tree but in a projects >>>> folder? >>>> or do I have to use for this purpose environment files? >>> >>> You can put modules in your project folder and these are always loaded >>> before the files in the tex tree. >> >> >> Sounds good, but ... >> >> For example I have in a project's folder a project_test file with these line: >> >> \environment Style_Test >> \usemodule[p-my-test] >> >> Both files (Style_Test.tex and p-my-test.tex are stored next to >> project_test.tex in the project's folder). >> The environment file is found without problems ... even when I change the >> file's name between two runs. >> >> The module is never found. >> >> What is missing? > > Can you give more information or a example, you don’t mention which file you > process and what’s loaded in them. It's like this (mapping context's recommended project structure): project-dir/ p-module.tex env-file.tex project-file.tex product-file.tex subdir/ component-file1.tex component-file2.tex The project-file file says \environment Style_Test \usemodule[p][module] Now I run from the subdir eg. component-file1.tex: the environment was loaded the module was not. 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 ___