[NTG-context] \lohi{…}{…}
Hi Hans, something goes wrong with \lohi{high}{low}. inline: Bildschirmfoto 2011-06-20 um 11.08.34.png \starttext \lohi{high}{low} \stoptext Greeting Andreas___ 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] \setupbodyfont[dejavu]
Hi Hans, with the latest beta (as well as experimental) \setupbodyfont[dejavu] \starttext test \stoptext breaks with ! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil) Greeting Andreas ___ 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] Footnote number followed by a dot
Hi all, I'm pretty sure the following example worked a white ago \setupnote [footnote] [numbercommand=,right={.}] \starttext \dorecurse{12}{test\footnote{test}} \stoptext Can someone help? I would like to have: 1. First footnote 2. Second footnote etc. Greeting Andreas ___ 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] Footnote number followed by a dot
Am 02.07.2011 um 14:42 schrieb Wolfgang Schuster: Am 02.07.2011 um 14:20 schrieb Andreas Harder: Hi all, I'm pretty sure the following example worked a white ago \setupnote [footnote] [numbercommand=,right={.}] Use \setupnotedefinition. Hi Woflgang, I tried this allready \setupnote [footnote] [numbercommand=,] \setupnotedefinition [footnote] [right={.}] \starttext \dorecurse{12}{test\footnote{test}} \stoptext The output is the same. Andreas ___ 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] Footnote number followed by a dot
Am 02.07.2011 um 15:52 schrieb Wolfgang Schuster: Am 02.07.2011 um 15:05 schrieb Andreas Harder: I tried this allready \setupnote [footnote] [numbercommand=,] \setupnotedefinition [footnote] [right={.}] \starttext \dorecurse{12}{test\footnote{test}} \stoptext The output is the same. Use this: \setupnote [footnote] [numbercommand=\groupedcommand{}{.}] \starttext \dorecurse{12}{test\footnote{test} } \stoptext Thanks Wolfgang! Andreas ___ 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] Export problems
Hi, I played a little with the export feature. It's really fun. So far I've two questions/problems. 1. \setupbackend[export=yes,xhtml=yes,css=yes] \starttext before \quotation{test \quote{test}} after \stoptext exports to: before “test ‘test’ ” after -^ (space between ’ and ”) But sometimes there is no space between the closing quote symbol and the following word. (I‘m trying to make an example). 2. Is there a possibility to “ignore” content the other way round? Something like: \startmode[export] … \stopmode Concrete it‘s problematic to export texts with onum- and pnum-features enabled. Greeting Andreas ___ 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] beta
Am 14.07.2011 um 17:24 schrieb Hans Hagen: (also see http://www.pragma-ade.com/show-mag-13.htm) So it's recommended to load the \environment before the \start- \stopcomponent and \start- \stopproduct? So far I've done it vice versa, but this changes my page break. Greeting Andreas ___ 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] beta
Am 15.07.2011 um 13:33 schrieb Hans Hagen: On 15-7-2011 1:00, Andreas Harder wrote: The problematic part was \setupblank[medium]. Would it be possible to make this setup work also before \start[component | prodoct | text]? Well, in that case you need to initialize the bodyfont beforehand. Normally it should sync itself so there must be some interference somewhere. If I'm getting you right, this should work? \startbuffer \setupbodyfont[modern] \setupblank[medium] \showframe \stopbuffer \getbuffer % \setupblank[medium] not applied \starttext % \getbuffer % \setupblank[medium] applied \dorecurse{17}{\dorecurse{35}{test }\par\blank} \stoptext Andreas ___ 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] beta
Am 15.07.2011 um 14:28 schrieb Wolfgang Schuster: Am 15.07.2011 um 13:43 schrieb Andreas Harder: If I'm getting you right, this should work? \startbuffer \setupbodyfont[modern] \setupblank[medium] \showframe \stopbuffer \getbuffer % \setupblank[medium] not applied \starttext % \getbuffer % \setupblank[medium] applied \dorecurse{17}{\dorecurse{35}{test }\par\blank} \stoptext No, there are a few settings which can only be set *after* \starttext because ConTeXt resets them at this point. Okay, so I will stick to that. Thanks! Andreas ___ 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] Problem with \automigrateinserts
Hi, if one uses \automigrateinsers footnotes in captions will be eaten. \automigrateinserts % kill footnotes in captions! \starttext \in{Footnote}[foot:a] \par \in{Footnote}[foot:b] \par \in{Footnote}[foot:c] \placefigure[here] [pic:ref:h]{test\footnote[foot:a]{a footnote}}{} \placefigure[top] [pic:ref:t]{test\footnote[foot:b]{a footnote}}{} \placefigure[bottom][pic:ref:b]{test\footnote[foot:c]{a footnote}}{} \in{Footnote}[foot:a] \par \in{Footnote}[foot:b] \par \in{Footnote}[foot:c] \stoptext Greeting Andreas ___ 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] \environment before vs. after \startproduct
Hi, here is another problem regarding \environments. % \setupbodyfont[palatino] % OK \starttext \setupbodyfont[palatino] % not OK \startformula \binom{n}{0} \stopformula \stoptext To avoid it, I'd have to use something like the following? \environment font-setups \startproduct \environment blank-setups Greeting Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \automigrateinserts
Am 16.07.2011 um 15:28 schrieb Wolfgang Schuster: Am 16.07.2011 um 13:40 schrieb Andreas Harder: Hi, if one uses \automigrateinsers footnotes in captions will be eaten. \automigrateinserts % kill footnotes in captions! Do the notes appear when you comment \automigrateinserts? Yes, they do. And now I see, it's mentioned in the source (node-mig.mkiv). Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \automigrateinserts
Am 18.07.2011 um 13:39 schrieb Hans Hagen: On 16-7-2011 1:40, Andreas Harder wrote: Hi, if one uses \automigrateinsers footnotes in captions will be eaten. \automigrateinserts % kill footnotes in captions! experimental hack in next version Thanks a lot! It works. Andreas ___ 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] vertical alignment in TOC
Am 19.07.2011 um 20:36 schrieb Thomas A. Schmitz: Hi all, for an edited volume, entries in the TOC have two lines, title, then author. Is is possible to have the page number aligned to the title, i.e. the first of these lines? Example: \setuphead[chapter] [number=no] \setuplist[chapter] [width=0cm] \starttext \startchapter[title=One,list={A Title \crlf An Author}] \input knuth \stopchapter \page \placelist[chapter][criterium=text] \define[3]\ChapterList% {\bTABLE[offset=none,rulethickness=0pt,width=broad] \bTR % \bTD #1 \eTD \bTD #2 \eTD \bTD[width=1.5em,align={left,high}]\strut #3 \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \placelist[chapter][criterium=text] \stoptext If I got your right, this should work. Greeting Andreas ___ 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] Long word out of text area/No proper line wrap with flushleft
On 20.09.2011, at 11:31, Stefan Müller wrote: Hi again, in one of my documents I want the text to be flushedleft and not hyphenated, see the following example. \setupalign[flushleft, nothyphenated] \starttext \showlayout bb bb bb bb bb aa bb \stoptext \setupalign[flushleft,nothyphenated,broad] \starttext \showframe bb bb bb bb bb aa bb \stoptext Greeting Andreas ___ 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] Long word out of text area/No proper line wrap with flushleft
On 20.09.2011, at 11:50, Stefan Müller wrote: Ah, thank you very much! Can you tell me why it's called broad? I don't get the intention behind this key… I’ve no clue. Wolfgang Schuster postet this solution a several times, so I've remembered it. Andreas ___ 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] Latest Beta
Hello, in some rare circumstances the enabled italic correction (\setupitaliccorrection[always]) cause the following error: /tex/texmf-context/tex/context/base/typo-itc.lua:99: attempt to index local 'cd' (a nil value) In needed I will try to make a minimal example. I’ve asked it already, bun since I got no answer … Would it be possible to expand the the cross referencing mechanism, so that it would be possible to store the component files in a subfolder? Here is a test: http://www.ntg.nl/pipermail/ntg-context/2011/062335.html Thanks in advance Andreas ___ 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 in latest beta
On 13.10.2011, at 21:46, Hans Hagen wrote: On 13-10-2011 09:37, luigi scarso wrote: Please type another input file name: A new beta ... better check mp code as I've split all mkii/mkiv mp related code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might have messed when cleaning up the code. The compilation of \startMPpage[offset=1ex] draw function (1,x,sin(x),0,2*pi,.001) scaled 20 ; \stopMPpage ends with ! Improper `addto'. … Greeting Andreas ___ 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] Item-referencing broken in latest beta
Hi, here is a test file: \startcomponent test \startitemize[n] \item[itm:1] test \stopitemize In \in{item}[itm:1] \stopcomponent and the relevant log excerpt: references itm:1={ { [error]=unknown inner, [inner]=itm:1, [reference]=itm:1, }, [n]=1, [prefix]=test, [reference]=itm:1, } references unknown reference [test][itm:1] Greeting Andreas ___ 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] No \colon with pxmath
Hi, the colon sign disappears if one uses pxmath fonts (latest beta MkIV). \setupbodyfont[palatino] % not OK % \setupbodyfont[asana] % OK \startTEXpage $a:b$\par $a\colon b$ \stopTEXpage Regards Andreas ___ 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] xmldir
Hello, I would like to use some tricks described in xmldir manual (only with MkIV) but mtxrun --script tool --dirtoxml stops with /Users/ah/context-old/tex/texmf-osx-64/bin/mtxrun:3248: bad argument #1 to '(for generator)' (directory metatable expected, got nil) Regards Andreas ___ 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 in latest beta
Hi Hans, something is wrong with the \mathprime definition in math-pln.mkiv. The compilation of \starttext $f'(x)$ \stoptext Stopps with: \dodomathprime -\normalprime \futurelet \nexttoken \dododomathprime Regards Andreas ___ 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] xmldir (mtxrun still unpatched?)
Hi Hans, with the latest beta I still have to patch mtxrun to make xmldir work … Besides, the root-parameter (--root=some/path) don’t seem to have any impact. As an workaround I’m using \startmode[*first] \executesystemcommand {cd some/path mtxrun --script tools --dirtoxml --pattern=*.pdf --output=some/path/xmldir.xml} \stopmode Thanks in advance Andreas ___ 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] Links in exported XHTML file
Hi all, how do I manage to get proper links in the exported XHTML document. It works well with intern references. \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \useURL[google][http://www.google.com/][][Google] \from[google] \textreference[txt:ref]{some text} \in[txt:ref] % OK \goto{Google}[url(http://www.google.com/)] \stoptext I would appreciate any tips. Regards Andreas ___ 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] Error with anglebetween(…)
Hello Hans, has something changed with the anglebetween definition in MetaPost? I’m sure this worked a couple of betas ago. \startMPpage path p,q ; p := origin -- (50,0) ; q := origin -- (50,50); drawarrow anglebetween(p,q,somelabel) ; \stopMPpage ! Missing `)' has been inserted. Regards Andreas ___ 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] Links in exported XHTML file
On 25.10.2011, at 00:20, Hans Hagen wrote: On 24-10-2011 23:22, Andreas Harder wrote: On 24.10.2011, at 15:01, Hans Hagen wrote: On 21-10-2011 11:27, Andreas Harder wrote: \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \useURL[google][http://www.google.com/][][Google] \from[google] \textreference[txt:ref]{some text} \in[txt:ref] % OK \goto{Google}[url(http://www.google.com/)] \stoptext in next beta Thanks Hans, but now the text reference is *not* wrapped in xhml:a-tags. at.href = # .. gsub(at.location,:,_) = href = # .. gsub(at.location,:,_) Thanks again, but here is another one … sorry for complaining \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \goto{Pragma (url)}[url(http://www.pragma-ade.com/)] % OK \goto{PDF (file)}[file(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] \goto{PDF (fileorurl)}[fileorurl(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] \stoptext Andreas ___ 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] Wrong reference number
Hi all, I'm not sure if this was introduced with the latest beta, but I just realized that the referencing numbers not right. \starttext \chapter{First} \in{Figure}[fig:a] % should be 1.1 \placefigure[here][fig:a]{}{} \in{Figure}[fig:b] % should be 1.2 \placefigure[here][fig:b]{}{} \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: Am 29.10.2011 um 23:57 schrieb Andreas Harder: On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. Okay. Thank you in advance. Andreas ___ 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] Italic correction spoils XHTML-output
Hi all, I spotted an curious side effect while using italic correction together with the export feature. The XHTML-export has unwanted spaces while the PDF is fine. \startbuffer[css] highlight[detail=emph] { font-style: italic } \stopbuffer \savebuffer[css][test.css] % - do not work! \setupbackend[export=yes,xhtml=yes,css={test.css}] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] % not OK % \setupitaliccorrection[always,global] % OK \definehighlight[emph][style=\it] \starttext \emph{example} % highlight detail=emphex am ple/highlight \spottiest Regards Andreas PS. By composing this example I noticed that \savebuffer do nothing. ___ 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] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: Am 29.10.2011 um 23:57 schrieb Andreas Harder: On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 12:03, Wolfgang Schuster wrote: Am 07.11.2011 um 11:53 schrieb Andreas Harder: On 30.10.2011, at 09:45, Wolfgang Schuster wrote: Am 29.10.2011 um 23:57 schrieb Andreas Harder: On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 13:02, Wolfgang Schuster wrote: Am 07.11.2011 um 12:45 schrieb Andreas Harder: When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Instead of patching strc-mat.mkiv you can create a file with the name cont-loc.mkiv in your working directory where you add both modified commands. With this method you don’t have to make the changes in the core and when it’s fixed just delete this file. This is a really useful tip! Thanks again. Andreas ___ 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] Export \thinspace
Hi Hans! If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends on the line break. \definefontfeature[default][default][expansion=quality] \setupalign[hz] \setupbackend[export=yes,css=yes,xhtml=yes] \starttext \startbuffer narrow\,nonbreaking\,space \stopbuffer \getbuffer \par \dorecurse{10}{\getbuffer} \stoptext exports to: narrownonbreakingspace break/ narrow nonbreaking … Would it be possible to export \, to #x202F;? Regards Andreas ___ 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] Italic correction (line starts with comma)
Hi Hans, as a side effect of italic correction some lines start with an comma. \setuppapersize[A5] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] \starttext \showframe[text] \startbuffer {\it italic}, normal, {\em emphasized}, normal \stopbuffer \dorecurse{20}{\getbuffer} \stoptext Regards Andreas ___ 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 number placement in multiline TOC entry
On 07.11.2011, at 15:51, Michael Guravage wrote: Greetings, At the recent ConTeXt workshop someone mentioned that they had achieved placing a pagenumber to the right of the first line of a multiline table of contents entry. Can anyone describe how to acomplish this? Hi, something like this? \define[3]\ChapterList {\bTABLE[offset=0pt,rulethickness=0pt,strut=yes,frame=off,width=broad] \bTR \bTD[width=2em] \begstrut#1\endstrut \eTD \bTD\begstrut#2\endstrut \eTD \bTD[width=2em,align={left,high}] \begstrut#3\endstrut \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \starttext \showframe \placelist[chapter] \dorecurse{3}{\chapter{Some very long title. Some very long title. Some very long title. Some very long title. Some very long title. }} \stoptext Regards Andreas ___ 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] beta
On 08.11.2011, at 15:28, Hans Hagen wrote: […] I might have introduced some issues there. Hi Hans! \setupbackend[export=yes] \setupcaptions[number=no] \starttext \startplacefigure[title={Some Caption},location=right] % OK with here \externalfigure[dummy] \stopplacefigure \stoptext exports to: float detail=figure location='aut:1' floatcontent image name=dummy id='image-1' width='4.072cm' height='3.054cm' /image /floatcontent Some Caption /float The floatcaption- and floattext-tags are missing. Regards Andreas___ 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] beta
On 08.11.2011, at 18:31, Hans Hagen wrote: On 8-11-2011 16:58, Andreas Harder wrote: The floatcaption- and floattext-tags are missing. added in next beta (same for empty floats) Thanks, it works! Andreas ___ 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] Splitting (x)tables
Hi all, I think there is a bug with \placefloat and split option. \starttext \showframe[text] \setupxtable [split=yes,option=stretch, width=4cm,height=3cm, align={middle,middle}] \startbuffer \startxtable \dorecurse{15}{% \startxrow \dorecurse{5}{\startxcell cell: #1 x ##1 \stopxcell} \stopxrow} \stopxtable \stopbuffer % \getbuffer % OK \placetable[here,split]{A big table}{\getbuffer} \stoptext By the way, what is the analogous split-option name if one uses the \start- \stopplacetable syntax? Regards Andreas ___ 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] Splitting (x)tables
On 09.11.2011, at 17:05, Wolfgang Schuster wrote: Am 09.11.2011 um 16:55 schrieb Andreas Harder: Hi all, I think there is a bug with \placefloat and split option. \starttext \showframe[text] \setupxtable [split=yes,option=stretch, width=4cm,height=3cm, align={middle,middle}] \startbuffer \startxtable \dorecurse{15}{% \startxrow \dorecurse{5}{\startxcell cell: #1 x ##1 \stopxcell} \stopxrow} \stopxtable \stopbuffer % \getbuffer % OK \placetable[here,split]{A big table}{\getbuffer} \stoptext By the way, what is the analogous split-option name if one uses the \start- \stopplacetable syntax? \startplacetable[location={split,…},…] Thanks Wolfgang. I tried „split=yes“, „option=split“ … Andreas ___ 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] Splitting (x)tables
On 09.11.2011, at 21:09, Hans Hagen wrote: On 9-11-2011 16:55, Andreas Harder wrote: Hi all, I think there is a bug with \placefloat and split option. fixed but it needs testing (the float code has been cleaned up a bit and as a side effect grouping is slightly different) Thank you. I still have problems with local footnotes. It worked a couple of betas before. I will try to make a minimal example. Andreas ___ 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] Local footnotes
Hi Hans, here is the minimal example which shows the problem with local footnotes. \starttext \startlocalfootnotes \dorecurse{23}{footnote\footnote{footnote}\par} % error % \dorecurse{22}{footnote\footnote{footnote}\par} % OK \placelocalfootnotes \stoplocalfootnotes \stoptext Regards Andreas ___ 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] Local footnotes
On 10.11.2011, at 14:27, Wolfgang Schuster wrote: Am 10.11.2011 um 10:47 schrieb Andreas Harder: Hi Hans, here is the minimal example which shows the problem with local footnotes. \starttext \startlocalfootnotes \dorecurse{23}{footnote\footnote{footnote}\par} % error % \dorecurse{22}{footnote\footnote{footnote}\par} % OK \placelocalfootnotes \stoplocalfootnotes \stoptext \placelocalfootnotes[height=\textheight] Thank you Wolfgang, this solved the problem. Andreas ___ 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] No colons with pxmath fonts
Hi, there is (still) no colon if one uses the pxmath fonts. By the way, \setupTEXpage causes an error (Undefined control sequence). \setupbodyfont[palatino] % no colon % \setupbodyfont[asana] % OK % \setupTEXpage[offset=1ex] % error \startTEXpage % [offset=1ex] % OK $a$:\,$b$\par $a\colon b$ \stopTEXpage Regards Andreas ___ 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] Help on centering text inside the standard makeup
On 11.11.2011, at 13:27, Marco Pessotto wrote: Hello! I have some problem centering the text inside the standardmakeup. The resulting alignment is centered, yes, but relative to the text block of the defined layout, and being a doublesided document, the left space is lesser then the right space (which is not what I wanted, as it's supposed to be the cover of a booklet). For example: % \setuppagenumbering[alternative=doublesided] \showframe \starttext \startstandardmakeup \raggedcenter This should be the long title \stopstandardmakeup \input tufte \stoptext % Hi, there is also a page makeup \startpagemakeup[align=center] {\bfc This should be the long title} \stoppagemakeup Regards Andreas ___ 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] feature request
On 11.11.2011, at 16:34, Steffen Wolfrum wrote: Hi Hans, quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. Isn't there already \comment{…}? \starttext test \comment{comment} test \stoptext Andreas ___ 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] Split option toggles caption font size
Hello Hans, it seems that with the split option the body font setting from tabulate is also applied to the float caption. \starttext \startbuffer \setuptabulate[bodyfont=small] \starttabulate \NC test \NC test \NC\NR \stoptabulate \stopbuffer \placetable[split]{Should be in normal font size}{\getbuffer} \stoptext Regards Andreas ___ 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] Metafun manual section titles
On 13.11.2011, at 23:24, Romain Diss wrote: Hello, I'm trying to make some section titles which look like the ones of the metafun manual: title and number underlined, with number in margin. I thougth it would not be too hard but I can't do it. Actually, I'm using a frame with an overlay with a \startuniqueMPgraphic to underline the title but I can't make a frame for both the section number which is in the margin and the text which is not. I tried to make the underlining of the title text extend in the margin but it's not easy because the frame background seems to be centered automatically on the frame. Maybe I should adjust some offsets but how can I know the size of the section number... Anybody can help me on that problem ? Hi, you can try something like this: \setuplayout[width=middle,backspace=4cm] \startuseMPgraphic{line} drawoptions(withcolor \MPcolor{\framedparameter{framecolor}}) ; draw bottomboundary OverlayBox withpen pencircle scaled 3pt ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[head:line][\useMPgraphic{line}] \defineframedtext [framedHead] [align=right,width=fit, offset=overlay,boffset=.25ex, frame=off,framecolor=yellow:4, background=head:line] \defineheadplacement [MyPlacement] [vertical] {\setwidthof{#1\hskip\leftmargindistance}\to\MyWidth\hskip-\MyWidth \startframedHead #1\hskip\leftmargindistance #2 \stopframedHead} \setuphead [chapter,section] [alternative=MyPlacement] \starttext \showframe \dorecurse{3}{ \chapter{Chapter #1} \dorecurse{3}{\section{Section ##1} \dorecurse{3}{\subsection{Subsection}} } } \stoptext But I’m sure there are better solutions … Best wishes Andreas ___ 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] Error with export
Hi Hans, todays beta breaks the following example. It worked the day before yesterday. \setupbackend[export=yes] \definehighlight[Title][color=red] \startsetups document:start \Title{\documentvariable{title}} \stopsetups \startdocument [title=Test] some text \stopdocument Thank you in advance Andreas ___ 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] defineframed has no effect
On 14.11.2011, at 21:54, Christian wrote: This gives only a framed Hello, no red, frame still on. Did something change for setting up own frames? \defineframed[GreyBg][backgroung=color,backgroundcolor=red,frame=off] You’ve written backgroung instead of background. Greeting Andreas ___ 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] defineframed has no effect
On 14.11.2011, at 22:12, Aditya Mahajan wrote: On Mon, 14 Nov 2011, Christian wrote: This gives only a framed Hello, no red, frame still on. Did something change for setting up own frames? \defineframed[GreyBg][backgroung=color,backgroundcolor=red,frame=off] You’ve written backgroung instead of background. Lol, that's what I get for copy-pasting the wiki :D Seriously, the typo is in the wiki code... http://wiki.contextgarden.net/Reference/en/defineframed Works now! I spoke too soon. The style is ignored. Example: \defineframed[myFrame][frame=on,align=middle,style={\it}] \starttext \myFrame{Hello} \stoptext Is it on purpose? IIRC, the name of the key is foregroundstyle. Or use \framedtext{…} \defineframedtext[myFrame][frame=on,align=middle,style=\it,width=fit] Andreas ___ 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] Table cell colo(u)rs
On 16.11.2011, at 15:21, Pavneet Arora wrote: Hello, I am trying to do a simple cell background shading in a table using the example at the wiki: http://wiki.contextgarden.net/Table Unfortunately, I get an Undefined control sequence ... error: ! Undefined control sequence. system tex error on line 4 in file tmp.tex: Undefined control sequence ... 1 \setupcolors[state=start] 2 \starttable[|l|l|] 3 \HL 4 \BL[1]\SR 5 \NC Command \NC Meaning \NC\SR 6 \HL 7 \NC \tex{NC}\NC next column \NC\FR 8 \NC \tex{NR}\NC next row\NC\LR 9 \HL 10 \CL[green]\SR 11 \NC \tex{AR} \NC automatic row\NC\SR 12 \HL 13 \stoptable 14 recently read \BL l.4 \BL [1]\SR ? Any suggestions? I think the using \start- \stoptable is not recommended (MkIV) any more. Instead you can use \starttabulate[|l|l|] \CM[yellow] Command \NCMeaning \NC\NR\FL \NC \tex{NC} \NCnext column \NC\NR \NC \tex{NR} \CM[green] next row\NC\NR \NC \tex{HL} \CM[blue] horizontal line \NC\NR\FL \stoptabulate Or as already suggested the \bTABLE … \eTABLE or the new xtable-environment. Greeting Andreas ___ 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] cross referencing suite
On 22.11.2011, at 00:13, Aditya Mahajan wrote: On Mon, 21 Nov 2011, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear Knights, http://www.pragma-ade.com/general/magazines/mag-1103.pdf mentions a 4-file test site, but I can't find it in my context tree ... Can someone point me to it? The test suite used to refer to http://wiki.contextgarden.net/Test, but it hasn't been updated in years. Perhaps Hans has a local version of the test suite. http://pragma-ade.com/download-4.htm There you will find a folder named project … Greeting Andreas ___ 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] Placing text in the margin of a header or the top right corner of a page
On 23.11.2011, at 06:11, Christian wrote: I think I see what you mean. It disappeared after I tossed the box 1mm to the right with adjusting the x position: change x=180mm to x=181mm Is that it? Hi, there are already presets and \setlayerframed. See my attached example. layerpresets.tex Description: Binary data Best wishes Andreas___ 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] xtable (\getbuffer vs. \processxtablebuffer)
Hi Hans, it seems \processtablebuffer ignores the table settings (at least the stretch-option). \starttext \startbuffer[my:xtable] \startxtable[option=stretch] \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell \startxcell gamma \stopxcell \stopxrow \stopxtable \stopbuffer \getbuffer[my:xtable]\blank \processxtablebuffer[my:xtable] \stoptext Regards Andreas ___ 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] xtable (\getbuffer vs. \processxtablebuffer)
On 24.11.2011, at 17:19, Hans Hagen wrote: On 24-11-2011 11:24, Andreas Harder wrote: Hi Hans, it seems \processtablebuffer ignores the table settings (at least the stretch-option). \starttext \startbuffer[my:xtable] \startxtable[option=stretch] \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell \startxcell gamma \stopxcell \stopxrow \stopxtable \stopbuffer \getbuffer[my:xtable]\blank \processxtablebuffer[my:xtable] \stoptext fixed in next beta but no nesting of xtables ... too much coding and it would nil the advantage (if there is any) anyway Okay, thanks! Andreas ___ 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] \start- \stopalign (in formulas) is broken
Hi, with the latest beta the following do not work anymore (example from math-ali.mkiv). \starttext \placeformula \startformula \startalign \NC a \EQ b \NR[+] \NC c \EQ d \NR \NC\EQ f \NR[for:demo-a-1] \NC\EQ g \NR[for:demo-a-2][a] \NC\EQ h \NR[for:demo-a-3][b] \NC\EQ i \NR \stopalign \stopformula \stoptext error: Missing number, treated as zero … Regards Andreas ___ 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-export
Hi Hans, it seems that tabulate environments are not exported correctly. Here is an example. \setupbackend[export=yes] \starttext \starttabulate[|l|c|r|] \NC left \NC center \NC right \NC \NR \NC l\NC c \NC r \NC \NR \stoptabulate \stoptext exports to: tabulate /tabulate Regards Andreas ___ 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] itemize option
Hi all, is there an itemize option, so that the \blank[-line] in the following example is not needed? If not, can we have one? \starttext \showframe \definedescription[Test] \startTest {head} % \blank[-line] \startitemize[joinedup] \item one \item two \stopitemize \stopTest \stoptext Regards Andreas ___ 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] Header spoils X(HT)ML export
Hi Hans, please consider the following example. \setupbackend[export=yes,xhtml=yes,css=yes] \setupheadertexts[{\startelement[header] test \stopelement}] \starttext \startbuffer \startparagraph \input tufte \stopparagraph \startparagraph \input ward \stopparagraph \stopbuffer \startsection[title=first head] \getbuffer \stopsection \startsection[title=second head] \getbuffer \stopsection %% try to comment this section \startsection[title=third head] \getbuffer \stopsection \stoptext The section-title order is now 3, 1, 2 (in the XHTML output). This problem appears only if there is a page break. After commenting the last section the XHTML output looks like expected. Best wishes Andreas PS. I’ve encountered another export problem. Perhaps it is because of an not intending using of \settaggedmetadata … Here is an example. \setupbackend[export=yes,xhtml=yes,css=yes] \startsetups document:start \settaggedmetadata[title=\documentvariable{title}] \stopsetups \startdocument [title=This document title is wrapped in section-tags] \startsection[title=test] \startparagraph \input tufte \stopparagraph \stopsection \stopdocument ___ 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] Keep struggling with old style numerals!
On 08.12.2011, at 10:56, Verhaag, G.C.H.M. wrote: Hi ConTeXt user's, A few days ago I installed the latest ConTeXt version but now my oldstyle settings don't seem to work any more! I use the following settings in my preamble: \usetypescript[schola] \setupbodyfont[schola,10pt] \definefontfeature [oldstyle] [default] [onum=yes] \addff{oldstyle} Hi, you can play with my example. It seems script=auto (default) is not that robust. Setting it to latn or dflt should help. \definefontfeature [default] [default] [script=latin] \definefontfeature [osf] [onum=yes] \definefontfeature [oldstyle][default] [onum=yes] \definealternativestyle [osf] [\addff{osf}] [\addff{osf}] \setuphead[section][style=osf] \setupbodyfont[schola] \starttext \section{0123456789 -- ---} {\addff{osf}0123456789 -- ---} \par {\osf 0123456789 -- ---} \par {\setff{oldstyle}0123456789 -- ---} \par {\os 0123456789 -- ---} \stoptext Regards Andreas ___ 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] Export (table cell alignment)
Hi Hans, I’ve stumbled upon another export problem, concerning (natural) tables. The first table exports fine but in the second table the first column is ignored. \startbuffer[css] document { display: block } table { display: table ; width: 100% } tablerow { display: table-row } tablecell { display: table-cell ; border-style: solid ; padding: 1ex } tablecell[align=flushright] { display: table-cell ; text-align: right } tablecell[align=flushleft] { display: table-cell ; text-align: left } tablecell[align=middle] { display: table-cell ; text-align: center } \stopbuffer \savebuffer[css] \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}] \starttext \startbuffer \bTR\bTD flush right \eTD\bTD ~ \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD ~ \eTD\bTD middle \eTD\eTR \stopbuffer \bTABLE[width=broad] \getbuffer \eTABLE % OK \bTABLE[width=broad] \setupTABLE [c] [1] [align=flushright] \setupTABLE [c] [2] [align=flushleft] \setupTABLE [c] [3] [align=middle] \getbuffer % not OK! \eTABLE \stoptext Best wishes Andreas ___ 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] Export (table cell alignment)
On 10.12.2011, at 00:28, Hans Hagen wrote: On 9-12-2011 21:58, Andreas Harder wrote: Hi Hans, I’ve stumbled upon another export problem, concerning (natural) tables. The first table exports fine but in the second table the first column is ignored. \startbuffer[css] document { display: block } table { display: table ; width: 100% } tablerow { display: table-row } tablecell { display: table-cell ; border-style: solid ; padding: 1ex } tablecell[align=flushright] { display: table-cell ; text-align: right } tablecell[align=flushleft] { display: table-cell ; text-align: left } tablecell[align=middle] { display: table-cell ; text-align: center } \stopbuffer \savebuffer[css] \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}] \starttext \startbuffer \bTR\bTD flush right \eTD\bTD ~ \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD ~ \eTD\bTD middle \eTD\eTR \stopbuffer \bTABLE[width=broad] \getbuffer \eTABLE % OK \bTABLE[width=broad] \setupTABLE [c] [1] [align=flushright] \setupTABLE [c] [2] [align=flushleft] \setupTABLE [c] [3] [align=middle] \getbuffer % not OK! \eTABLE \stoptext tricky but fixed Thank you! Andreas ___ 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] \definestartstop (not functioning before/after keys)
Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test{test} after \stoptext Tested with the current beta- and experimental-branch. Regards Andreas ___ 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] \definestartstop (not functioning before/after keys)
On 12.12.2011, at 13:00, Wolfgang Schuster wrote: Am 12.12.2011 um 12:55 schrieb Andreas Harder: Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test{test} after \stoptext Tested with the current beta- and experimental-branch. \starttext …\stoptest is not the same as \test{…}, while the environment use the before and after keys the command use the inbetween key. Okay, I see. So, sorry for the noise. Andreas ___ 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] \definelayout
Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm] \definelayout[unknown][default]%[reset] % \definelayout[2] [default]%[reset] \definelayout[last] [default][footer=2cm] \starttext \showframe % \checkcurrentlayout %% Variant A: fails with \default[unknown] first\page unknown=(2)\page \page unknown=(3)\page last %% Variant B: fails with \definelayout[2] % first\page unknown=(2)=last \stoptext By the way the output differs with the latest beta in comparison with the latest experimental. Regards Andreas ___ 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] \definelayout
On 13.12.2011, at 16:44, Wolfgang Schuster wrote: Am 13.12.2011 um 16:26 schrieb Andreas Harder: Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm] \definelayout[unknown][default]%[reset] % \definelayout[2] [default]%[reset] \definelayout[last] [default][footer=2cm] \starttext \showframe % \checkcurrentlayout %% Variant A: fails with \default[unknown] first\page unknown=(2)\page \page unknown=(3)\page last %% Variant B: fails with \definelayout[2] % first\page unknown=(2)=last \stoptext By the way the output differs with the latest beta in comparison with the latest experimental. Hans changed part of the \setuplayout code in the last betas (there are more than you can see in the ctx suite). When context checks the layout (happens with \starttext and when it starts a new page) it test for the following defined layouts: • “pagenumber” • “-pagenumber” • “last” (is only used for the last page of the document) • “first” (is only used for the first page of the document) • “unknown” • “current” • “odd” and “even” (used for left and right pages) All entries in this list are reserved names but you can also define your own layout but in this case you have to enable it with \setuplayout[name]. One of the new features in MkIV is that layout parameters can be inherited, e.g. when you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and another one with the name two (\definelayout[two][one][..,..=..,..]) this will take the values from one of there are nothing set for a value from one and when there is also nothing set for one the global values are used (\setuplayout[..,..=..,..]). Hi Wolfgang, I modified the example (hopefully in a meaningful manner). I get the desired output with the old beta, but it still fails with todays beta. \setuplayout [width=middle,height=middle,header=0pt,footer=0pt] \definelayout[first] [header=2cm] \definelayout[last] [footer=2cm] \definelayout[current] \starttext \showframe % \checkcurrentlayout % \dorecurse{2}{test\page} % last is wrong \dorecurse{5}{test\page} % page 2 and „last“ are wrong \stoptext Andreas ___ 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] beta
On 14.12.2011, at 00:10, Hans Hagen wrote: On 13-12-2011 21:07, Otared Kavian wrote: Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize \stoptext Best regards: OK I'll look into it ... \startitem ... \stopitem should be ok. Hi Hans, another problem with itemization. \starttext \startitemize[text] \item alpha \item beta \item gamma \startitem alpha \stopitem \startitem beta \stopitem \startitem gamma \stopitem \stopitemize \stoptext Regards Andreas ___ 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] Itemize option “text”
Hi Hans, itemize with option “text” gives me still an error (beta: 15-Dec-2011 09:27). \startitemize[text] \item alpha \item beta \item gamma \stopitemize Regards Andreas ___ 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] Export itemize
Hi Hans, many thanks fort the itemize fixes! I’ve found another problem with the latest beta. \setupbackend[export=yes] \starttext \startitemize \item test \stopitemize \stoptext Regards Andreas ___ 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] Layer preset: leftbottom
Hi Hans, it seems that the layer preset leftbottom is broken. \definelayer[page] [width=\paperwidth,height=\paperheight] \setlayer [page] [preset=leftbottom] {\red TEST} % error % \setlayer [page] [preset=rightbottom] {\red TEST} % OK \setupbackgrounds[page][background=page] \starttext \page[empty] \stoptext Regards Andreas ___ 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] Layer preset: leftbottom
On 18.12.2011, at 11:14, Wolfgang Schuster wrote: Am 18.12.2011 um 11:00 schrieb Andreas Harder: Hi Hans, it seems that the layer preset leftbottom is broken. I posted this fix a few days ago on the dev list: supp-box.mkiv: -\unexpanded\def\righttopbox_finish +\def\boxes_righttopbox_finish {\global\boxhdisplacement\boxoffset \global\boxvdisplacement-\dp\nextbox \global\advance\boxvdisplacement-\boxoffset \boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box\nextbox \egroup} Thanks Wolfgang! By the way … Sorry to bother you, but I’m still run into problems according \definelayout. This example used to work with the beta from November 29 (desired output attached). \setuplayout [width=middle,height=middle,header=0pt,footer=0pt] \definelayout[first] [header=2cm] \definelayout[last] [footer=2cm] \definelayout[current] % current|unknown \starttext \showframe % \checkcurrentlayout % \dorecurse{2}{test\page} % last is wrong \dorecurse{5}{test\page} % page 2 and „last“ are wrong \stoptext Two+Pages.pdf Description: Adobe PDF document TwoPages.pdf Description: Adobe PDF document Thank you in advance Andreas___ 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 error
Hi Hans, a line break in tabulate p-column leads to an error. ! TeX capacity exceeded, sorry [input stack size=1]. \starttext \starttabulate[|p|] % \NC \dorecurse{7}{paragraph, } \NC\NR % OK \NC \dorecurse{8}{paragraph, } \NC\NR % - line break (error) \stoptabulate \stoptext Regards Andreas ___ 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] tabulate error
On 19.12.2011, at 20:03, Hans Hagen wrote: On 19-12-2011 17:15, Andreas Harder wrote: Hi Hans, a line break in tabulate p-column leads to an error. ! TeX capacity exceeded, sorry [input stack size=1]. \starttext \starttabulate[|p|] % \NC \dorecurse{7}{paragraph, } \NC\NR % OK \NC \dorecurse{8}{paragraph, } \NC\NR % - line break (error) \stoptabulate \stoptext line 452 of tabl-tbl.mkiv should be \tabulatedummy\expandafter{\the\tabulatedummy\NC}% Thanks! Andreas ___ 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 or feature?
Hi, with the latest beta there is always a line break after a \blackrule … bug or feature? \starttext % \dontleavehmode% \blackrule[width=3cm] unwanted line break! \stoptext Regards Andreas ___ 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 or feature?
On 21.12.2011, at 12:33, Wolfgang Schuster wrote: Am 21.12.2011 um 12:04 schrieb Andreas Harder: Hi, with the latest beta there is always a line break after a \blackrule … bug or feature? \starttext % \dontleavehmode% \blackrule[width=3cm] unwanted line break! \stoptext It’s neither a bug nor a feature, just a result of TeX’s horizontal and vertical modes, the same happens when you use \framed in vertical mode. \starttext \framed{line 1} \framed{line 2} \stoptext Yes, you are right. My example was too minimal. I used \defineheadplacement and since yesterdays beta the line break is introduced. \starttext \defineheadplacement[MyPlacement][vertical] {\vbox{\localheadsetup\begstrut\blackrule[width=3cm] #2}} \setuphead[subject][alternative=MyPlacement] \subject{test Äg} \stoptext Andreas ___ 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] Preserve line height with TABLE
Hi, is there a way to mimic the tabulate behavior with TABLE (or xtable)? \starttext \def\HtTest#1% {\setbox\scratchbox\vbox{#1}hight=\the\ht\scratchbox\par\vbox{#1}\blank} \HtTest{\strut (Äg) first line\par second line\par (Äg) third line} \setuptabulate[before=,after=,] \HtTest{\starttabulate[|l|] \NC (Äg) first line \NC\NR \NC second line \NC\NR \NC (Äg) third line \NC\NR \stoptabulate} \HtTest{\bTABLE[frame=off,offset=overlay,left=\strut] % ,rulethickness=0pt \bTR\bTD (Äg) first line \eTD\eTR \bTR\bTD second line \eTD\eTR \bTR\bTD (Äg) third line \eTD\eTR \eTABLE} \HtTest{\startembeddedxtable[frame=off,offset=overlay] \startxrow \startxcell (Äg) first line \stopxcell \stopxrow \startxrow \startxcell second line \stopxcell \stopxrow \startxrow \startxcell (Äg) third line \stopxcell \stopxrow \stopembeddedxtable} \stoptext Thanks in advance Andreas ___ 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] Preserve line height with TABLE
On 21.12.2011, at 14:20, Wolfgang Schuster wrote: Am 21.12.2011 um 13:24 schrieb Andreas Harder: Hi, is there a way to mimic the tabulate behavior with TABLE (or stable)? You need “offset=0pt” and “strut=yes” (not left=\strut). Thanks Wolfgang, but it still not the hight from tabulate … Andreas ___ 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] Preserve line height with TABLE
On 21.12.2011, at 14:39, Wolfgang Schuster wrote: Am 21.12.2011 um 14:28 schrieb Andreas Harder: On 21.12.2011, at 14:20, Wolfgang Schuster wrote: Am 21.12.2011 um 13:24 schrieb Andreas Harder: Hi, is there a way to mimic the tabulate behavior with TABLE (or stable)? You need “offset=0pt” and “strut=yes” (not left=\strut). Thanks Wolfgang, but it still not the hight from tabulate … The here and also in your other question is that \begstrut is broken, when you add (the definition of \begstrut) \starttexcode \unexpanded\def\begstrut {\relax\ifcase\strutht % \ignorespaces % maybe \else \spacing_begstrut \fi} \stoptexcode at the begin of your example you get a output for TABLE and stable which comes close to tabulate. Thank you very much! Andreas ___ 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] Hyphenation in Natural Table
Hi, try it with: \starttext \bTABLE[align=normal] \bTR \bTD Topic\eTD \bTD Text\eTD \eTR \bTR \bTD Foo\crlf Bar\eTD \bTD \input tufte \eTD \eTR \bTR \bTD BAR \crlf FOO\eTD \bTD \startitemize \item \input tufte \item \input tufte \stopitemize \eTD \eTR \eTABLE \stoptext Greeting Andreas ___ 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 in \date (experimental branch)
Hi Hans, a day is prefixed to every day-number. \starttext \date[d=29,m=12,y=2011] \currentdate \stoptext outputs December day29, 2011 December day30, 2011 Regards Andreas ___ 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] Custom chapter footer
Hi Hans, the following used to work. Has the syntax changed? \definetext[chapter][footer][pagenumber] \setuphead [chapter][footer=chapter] \starttext \chapter{test} \stoptext ! Undefined control sequence. Regards Andreas ___ 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] \setlayerframed align-option causes shift
Hi Hans, setting the align-option of \setlayerframed causes a small (but visible) right shift. \definelayer[page][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=page] \starttext \showframe \setlayerframed [page] [x=\backspace,y=\topspace] [width=broad,height=\headerheight,align=right] {Not OK} % [width=broad,height=\headerheight] {OK} \page[empty] \stoptext Regards Andreas ___ 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] Exporting itemize
Hi Hans, another one. \setupbackend[export=yes] \starttext \startitemize \startitem test \stopitem \stopitemize \stoptext Works with the beta but is broken in the experimental branch. Regards Andreas ___ 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] Exporting itemize
On 02.01.2012, at 17:32, Hans Hagen wrote: On 2-1-2012 17:29, Andreas Harder wrote: Hi Hans, another one. \setupbackend[export=yes] \starttext \startitemize \startitem test \stopitem \stopitemize \stoptext Works with the beta but is broken in the experimental branch. What is the difference between these two? In the time I posted the beta was from last year. Now its broken in the beta as well! Andreas ___ 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] beta
On 02.01.2012, at 17:28, Hans Hagen wrote: Hi, I uploaded a new beta ... hopefully not too many renaming side effects • xtables \starttext \startxtable \startxrow \startxcell test \stopxcell \stopxrow \stopxtable \stoptext ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: incorrect index value -1 for tex.getcount() • drawoptions + textext() \startMPpage[offset=1ex] drawoptions(withcolor red) ; draw textext(test) ; \stopMPpage ! TeX capacity exceeded, sorry [input stack size=1]. Greeting Andreas ___ 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] beta
On 02.01.2012, at 19:41, Hans Hagen wrote: On 2-1-2012 18:46, Andreas Harder wrote: ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: incorrect index value -1 for tex.getcount() ! TeX capacity exceeded, sorry [input stack size=1]. fixed Thanks! ___ 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] beta
On 02.01.2012, at 19:41, Hans Hagen wrote: On 2-1-2012 18:46, Andreas Harder wrote: ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: incorrect index value -1 for tex.getcount() ! TeX capacity exceeded, sorry [input stack size=1]. fixed • \processxtablebuffer[…] \starttext \startbuffer[table] \startxtable \startxrow \startxcell test \stopxcell \stopxrow \stopxtable \stopbuffer \processxtablebuffer[table] % \getbuffer[table] % OK \stoptext ! File ended while scanning use of \next. Andreas ___ 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] beta
On 02.01.2012, at 21:06, Andreas Harder wrote: On 02.01.2012, at 19:41, Hans Hagen wrote: On 2-1-2012 18:46, Andreas Harder wrote: ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: incorrect index value -1 for tex.getcount() ! TeX capacity exceeded, sorry [input stack size=1]. fixed • \processxtablebuffer[…] \starttext \startbuffer[table] \startxtable \startxrow \startxcell test \stopxcell \stopxrow \stopxtable \stopbuffer \processxtablebuffer[table] % \getbuffer[table] % OK \stoptext ! File ended while scanning use of \next. Fixed, thank you! Probably the last for today. \defineinterlinespace[heads][line=2ex] \setuphead[chapter][interlinespace=heads] \starttext \chapter{Some long chapter head. Some long chapter head.} \stoptext ! Undefined control sequence. Andreas ___ 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] Italicized text trailing space too small
On 05.01.2011, at 06:32, Aditya Mahajan wrote: On Wed, 4 Jan 2012, Kip Warner wrote: Text that I {\it have italicized} trails too tight with the first non-italicized word that is typeset next. I'm sure there is some ConTeXt command that adjusts this that I am unfamiliar with. \italiccorrection or \/ Usage: {\it text \italiccorrection} Or www.pragma-ade.com/preliminaries/hybrid-italics.pdf \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] % none|text|always|always,global Andreas ___ 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] TABLEs and backgroundcolor
Hello everyone, this TABLE used to work not long time ago: \setupcolors[state=start] \starttext % \showframe \bTABLE[framecolor=gray] % split=yes \setupTABLE[column][first] [background=color,backgroundcolor=red] \setupTABLE[column][last] [background=color,backgroundcolor=green] \setupTABLE[first] [first] [corner=08] % \setupTABLE[first] [last] [corner=07] % \setupTABLE[last] [first] [corner=05] % \setupTABLE[last] [last] [corner=06] % %-% \bTR \bTD oben links \eTD\bTD oben rechts \eTD\eTR \bTR \bTD Mitte links \eTD\bTD Mitte rechts \eTD\eTR \bTR \bTD Mitte links \eTD\bTD Mitte rechts \eTD\eTR \bTR \bTD unten links \eTD\bTD unten rechts \eTD\eTR \eTABLE \blank \bTABLE[background=color,backgroundcolor=blue] \bTR \bTD[corner=08] left \eTD\bTD[corner=05] right \eTD\eTR \bTR \bTD left \eTD\bTD right \eTD\eTR \bTR \bTD left \eTD\bTD right \eTD\eTR \bTR \bTD[corner=07] left \eTD\bTD[corner=06] right \eTD\eTR \eTABLE \stoptext Now the first and the last row appear black. Any suggestions? Thank you in advance Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Kerning and Minion Pro
Hello, I've a curious problem: With Palatino or Latin Modern kerning seems to work as intended, but what's the matter with Minion (example below)? \setupcolors[state=start] % \mainlanguage[de] \definefontfeature[basekerned][default][mode=base] \definefontfeature[nodekerned][default][mode=node] \definefontfeature[nonekerned][default][mode=base,kern=no] \starttext \startbuffer[KernTest] \startlines Av, AV, LT, LV, Ly, TA, To, Ty, Te, T. Va, V., Ya, Yo, Y. \stoplines \stopbuffer \startTEXpage % Minion Pro \startoverlay {\vbox{\red \definedfont[name:MinionPro-Regular*nonekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\blue\definedfont[name:MinionPro-Regular*basekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\darkgray\definedfont[name:MinionPro-Regular*nodekerned at 100pt]\getbuffer[KernTest] }} \stopoverlay \stopTEXpage \startTEXpage % Latin Modern \startoverlay {\vbox{\red \definedfont[Serif*nonekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\blue\definedfont[Serif*basekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\darkgray\definedfont[Serif*nodekerned at 100pt]\getbuffer[KernTest] }} \stopoverlay \stopTEXpage \startTEXpage % Palatino \startoverlay {\vbox{\red \definedfont[file:texgyrepagella-regular*nonekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\blue\definedfont[file:texgyrepagella-regular*basekerned at 100pt]\getbuffer[KernTest] }} {\vbox{\darkgray\definedfont[file:texgyrepagella-regular*nodekerned at 100pt]\getbuffer[KernTest] }} \stopoverlay \stopTEXpage \stoptext This is luaTeX, Version snapshot-0.31.3 ConTeXt ver: 2009.01.14 11:29 MKIV Thanks, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Kerning and Minion Pro
I've a curious problem: With Palatino or Latin Modern kerning seems to work as intended, but what's the matter with Minion (example below)? This appears to be caused by the fact that in MinionPro most (not all, but most) of the kerning is specified via kern classes. Than you for explanation! But, is it possible to activate kerning for MinionPro? And what about the following example? \startbuffer[KernTest] \startlines Tänze, Tanze, Väter, Vater, \stoplines \stopbuffer The kerned „Väter“ can't be right (with MinionPro). Greetings, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Can't compile LuaTeX beta 0.35.0 (on OS X)
Hello, if I try to compile the actual LuaTeX beta, the compilation ends with the following error: ld: in ../../libs/luasocket/src/socket.a, archive has no table of contents collect2: ld returned 1 exit status make: *** [luatex] Error 1 I'm on Mac OS X 10.5.6 (Intel) and checked out the source from svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.35.0 Du I miss something? Or is there another way to get the current binaries for OS X? Thank you in advance, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] protrusion and \quotation{…}
Hello, is it volitional/known that there is no protrusion if one using \quotation{…} (under mkiv)? \definefontfeature[protrusion][default][protrusion=quality] \definefont[test][Serif*protrusion at 24pt] \setupalign[hanging] \starttext \showframe \test\setupinterlinespace \quotation{Hello World}\hfill \quotation{Hello World}\crlf “Hello World”\hfill “Hello World” \blank \de \quotation{Hello World}\hfill \quotation{Hello World}\crlf „Hello World“\hfill „Hello World“ \quote{Hello World}\hfill \quote{Hello World}\crlf ‚Hello World‘\hfill ‚Hello World‘ \blank \setuplanguage [de] [ leftquote=\rightsubguillemot, leftquotation=\rightguillemot, rightquote=\leftsubguillemot, rightquotation=\leftguillemot] \quotation{Hello World}\hfill \quotation{Hello World}\crlf »Hello World«\hfill »Hello World« \blank \setuplanguage [de] [ leftquote=›, leftquotation=», rightquote=‹, rightquotation=«] \quotation{Hello World}\hfill \quotation{Hello World}\crlf »Hello World«\hfill »Hello World« \quote{Hello World}\hfill \quote{Hello World}\crlf ›Hello World‹\hfill ›Hello World‹ \blank \hfill ||Hello World||\crlf \null\hfill –~Hello World~– \stoptext Greetings Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bibliography module and ibid./ebd.
Hello again, is it possible to achieve with the t-bib-module that the second (third, … ) of two or more consecutive \cite-command with the same tag will be replaced with ebid. (ebd. in German)? I found an older posting http://archive.contextgarden.net/message/20020903.072930.995836b4.en.html on this list, but in the actual manual it's mentioned nowhere … Thank you in advance Adreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] protrusion and \quotation{…}
Thank you very much. Curious, with \hfill\quotation{…} there is still no protrusion on the right side (in regular text, without \hfill, it works as expected). Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] base- vs. node-kerning
Hello, the kerning with mode=node seems not to work as desired, the gaps after the kerned character are to big. Here is a test file: \setupcolors[state=start] \definefontfeature[base][mode=base,kern=yes] \definefontfeature[node][mode=node,kern=yes] \definefont[MinBase][name:minionpro-regular*base] \definefont[MinNode][name:minionpro-regular*node] % \definefont[MinBase][Serif*base] % \definefont[MinNode][Serif*node] \starttext \startbuffer[Kerning] \startlines Wer Tat Ver VAI \stoplines \stopbuffer \startTEXpage \startoverlay {\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning] {\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning] \stopoverlay \stopTEXpage \stoptext Greetings Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] base- vs. node-kerning
Am 04.04.2009 um 12:48 schrieb Hans Hagen: Andreas Harder wrote: Hello, the kerning with mode=node seems not to work as desired, the gaps after the kerned character are to big. Here is a test file: \setupcolors[state=start] \definefontfeature[base][mode=base,kern=yes] \definefontfeature[node][mode=node,kern=yes] \definefont[MinBase][name:minionpro-regular*base] \definefont[MinNode][name:minionpro-regular*node] % \definefont[MinBase][Serif*base] % \definefont[MinNode][Serif*node] \starttext \startbuffer[Kerning] \startlines Wer Tat Ver VAI \stoplines \stopbuffer \startTEXpage \startoverlay {\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning] {\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning] \stopoverlay \stopTEXpage \stoptext ok, fixed in next beta (if your're in a hurry i can send you a patch); bug was introduced when finishing rough ends of right-left handling Thank you! And no, I'm not in a hurry, so I can wait till the next update. Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Error in newest beta/current
Hi, the compilation of: \setupinteraction[state=start] \starttext test\footnote{test} \stoptext ends with: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:66: pdf.pageref() needs page number 0 stack traceback: [C]: in function 'pdfpagereference' ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:66: in function 'pagedest' ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:140: in function ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:79 (tail call): ? ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:302: in function 'action' ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:182: in function 'pdfaction' ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:208: in function 'prerollreference' ...text/tex/texmf-context/tex/context/base/node-ref.lua:331: in function 'setreference' ...text/tex/texmf-context/tex/context/base/node-ref.lua:476: in function 'inject' main ctx instance:1: in main chunk. \directgotobox ...,nil,\extrareferencearguments )} \dostoptagged \setlocation... \typesetsomenotesymbol ...age(#1,\number #2)})]} \globallet \lastnotesymbol... \@@notemakedescription ...ymbol \dolastnotesymbol \else \unskip \unskip \glo... Greeting Andreas ___ 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 ___