[NTG-context] jump to document
I want to jump from the generated pdf to an external document. For example to something like file:///Volumes/MYDISK/users/me/Documents/thisone.jpg. Especially when writing a document that refers to many external documents this makes referencing back to sources a lot easier. I tried to find how to do it from the reference manual but did not succees. Help will be appreciated. Hans van der Meer ___ 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] chapterhead
I am using sectionstopper to put something between the chapter number and the chapter title: \setuphead[chapter][sectionstopper={something}] However, this "something" also appears in the table of contents between the chapter number and its title. Is it possible to suppress this sectionstopper within the table of contents? Hans van der Meer ___ 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 coloring
Indeed, this helped. Thanks. For the record: in order to keep the position of the number in the footnote high, one has to use: \def\redfootnotenumber#1{\color[red]{\high{#1}}} \setupnotation[footnote][numbercommand=\redfootnotenumber] Hans van der Meer On 06 Sep 2015, at 12:29, Pablo Rodriguez> wrote: this setup works fine in MkIV: \setupnote[footnote][textcolor=blue] \setupnotation[footnote][numbercommand={\color[red]}, color=green] I hope it helps, ___ 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 coloring
Thanks. I would not have thought of that. In the reference manual headcolor occurs in 13.2 \setupdescriptions and in 13.5 \definelabel only. I did not connect that with footnotes. Is \setupnotation a special form of \setupdescriptions? By the way, is a separate call to \setupnote[footnote][textcolor=red] necessary to color the footnotemark in the running text? Or is there a key for it in \setupnotation[footnote] too? Hans van der Meer On 06 Sep 2015, at 18:25, Wolfgang Schuster <schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote: Meer, H. van der<mailto:h.vanderm...@uva.nl> 6. September 2015 13:15 Indeed, this helped. Thanks. For the record: in order to keep the position of the number in the footnote high, one has to use: \def\redfootnotenumber#1{\color[red]{\high{#1}}} \setupnotation[footnote][numbercommand=\redfootnotenumber] You can use the headcolor key to change the color of the footnote number. \setupnotation[footnote][headcolor=red] 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 ___
[NTG-context] float in columns
I seem to remember that it was possible to place a figure over the whole width of the page inside columns as for example \startsimplecolumns[n=2] text in 2 columns placefigure-over-fullwidth further text in 2 columns \stopsimplecolumns However, I cannot find with what command this was accomplished. Can someone enlighten me? Hans van der Meer ___ 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] xmlconcat
There is a behaviour of xmlconcat that I do not understand. Calling as \xmlconcat{#1}{test}{xxx} correctly interjects the xxx between the successive members, in according with the documentation. But using the command version for calling: \xmlconcat{#1}{test/command(xmltest:test)}{yyy} does typeset the nodes but not the text from the third argument. It might be the correct behaviour but it confuses me. Any comments or enlightment? Thamks in advance. Hans van der Meer Minimal example: \setuppapersize[A6][A6] \startxmlsetups xmltest:setups \xmlsetsetup{\xmldocument}{root|test}{xmltest:*} \stopxmlsetups \xmlregistersetup{xmltest:setups} \startxmlsetups xmltest:root \writestatus{TEST}{calling xmltest:root} \xmlconcat{#1}{test}{xxx}\crlf \xmlconcat{#1}{test/command(xmltest:test)}{yyy}\crlf \stopxmlsetups \startxmlsetups xmltest:test \xmlflush{#1} \stopxmlsetups \startbuffer[xmlbuffer] ?xml version=1.0 encoding=UTF-8? root testnode-1/test testnode-2/test testnode-3/test testnode-4/test /root \stopbuffer \starttext \xmlprocessbuffer{root}{xmlbuffer}{} \stoptext \endinput concat.pdf Description: concat.pdf ___ 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 exceptions?
Indeed, the combination Amsterdam-Buitenveldert is the culprit. The solution therefore is to use (it is ConTeXt afterall) Amsterdam|-|Buitenveldert, then the word Amsterdam doesn't even needs an exception. Thanks for the help. Hans van der Meer On 07 Jul 2015, at 18:00, Pablo Rodriguez oi...@gmx.esmailto:oi...@gmx.es wrote: On 07/07/2015 05:41 PM, Arthur Reutenauer wrote: [...] That's because the word you're trying to hyphenate is Amsterdam-Buitenveldert, not Amsterdam. Compound words are by default hyphenated only at the hyphen in TeX. \setbreakpoints[compound] works in the following sample: \language[nl] \setbreakpoints[compound] \starttext \hyphenatedword{Amsterdam--Buitenveldert} \stoptext I don’t know whether it would make sense to use an en-dash for compound words in Dutch. I hope it helps now, Pablo ___ 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 exceptions?
The \hyphenatedword works here too. But it does not work out when the word Amsterdam occurs in the text. See tthe two examples. In the first Amsterdam is not broken according to the \hyphenation{Am-ster-dam}-rule. In the second example the linebreak is forced by the explicit use of Am\-ster\-dam in the source text. So it doesn't work when occurring in the text. [cid:3FCD961E-655E-4A3A-B889-D6CDB564D4F8@dynamic.ziggo.nl] [cid:2F0C9076-27B7-4CD4-9965-23FC2141A1E6@dynamic.ziggo.nl] met vriendelijke groet Hans van der Meer On 07 Jul 2015, at 16:37, Pablo Rodriguez oi...@gmx.esmailto:oi...@gmx.es wrote: On 07/07/2015 03:33 PM, dr. Hans van der Meer wrote: Has something happened to hyphenation? The following does not work \language[nl] \startexceptions[nl] Am-ster-dam \stopexceptions Neither does\hyphenation{Am-ster-dam} Hi Hans, using latest beta from 2015.07.01 21:40, both options work for me: \language[nl] %~ \startexceptions[nl] %~ Ams-terd-am %~ \stopexceptions \hyphenation{Ams-terd-am} \starttext \hyphenatedword{Amsterdam} \stoptext BTW, I have to change the hyphenation points, since the proposed exception is the default hyphenation in Dutch. Or how did you know that the exceptions weren’t working? I hope it helps, ___ 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] embeddedxtable
On 24 May 2015, at 22:53, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. It is a pity if \xmlstrip does not work. It is of course fairly essential that the whitespace between the tags can be ignored. I sincerely hope this will be looked into. Or could this be a special effect related to either the use of a buffer as source or to the embeddedxtable structure? However, it doesn't seem the whole story. I removed all whitespace between the tags and the \unskip's from the code. In the result below you can see that removing the whitespace between the tags removes most of the spurious spaces, but not all of them. Another picture has the = embedded before the \xmlflush in \startrow and shows that still spurious space is injected. To me it looks if every row gets an extra space: three of them before the table and the last one after the table (but here I am guessing). Hans van der Meer [cid:23AE90F4-C415-4635-B1CD-E8E10E65B791] [cid:EBC94BBA-8505-47C8-B5D3-20329BC1E06E] ___ 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] embeddedxtable
On 24 May 2015, at 22:53, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 24.05.2015 um 21:33 schrieb Meer, H. van der h.vanderm...@uva.nl: In this case you have to provide a working minimal example. Wolfgang Here an example as minimal as I could construct. The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. \startxmlsetups xmlcommon \xmlsetsetup{\xmldocument}{table|tr|td}{xmlcommon:*} \stopxmlsetups \xmlregistersetup{xmlcommon} \startxmlsetups xmlcommon:table % \removeunwantedspaces \startembeddedxtable \xmlflush{#1} \stopembeddedxtable % \ignorespaces \stopxmlsetups \startxmlsetups xmlcommon:tr % \removeunwantedspaces \startxrow \xmlflush{#1} \stopxrow % \ignorespaces \stopxmlsetups \startxmlsetups xmlcommon:td % \removeunwantedspaces \startxcell \xmlflush{#1} \stopxcell % \ignorespaces \stopxmlsetups Input from file or from buffer doesn't make a difference. I inserted the \removeunwantedspaces and \ignorespaces, as you suggested. The xmlstrip macros do not make any difference, either active or commented out. Then there still remains extra space at the end. See below. xtablespace.pdf Description: xtablespace.pdf ___ 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] embeddedxtable
On 24 May 2015, at 22:53, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. There is something I do not understand and I hope you can explain this. The table is typeset by the \xmlflush{#1} in the table macro: \startxmlsetups xmlcommon:table Z\bgroup \setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit,width=fit, align={center,lohi},columndistance=0pt] \setupxtableparameters{#1} \startlocationbox{#1} \removeunwantedspaces \startembeddedxtable X\xmlflush{#1}Y\stopembeddedxtable \ignorespaces \stoplocationbox \egroup \stopxmlsetups The X and Y have been placed around the \xmlflush to see what happens. Why do I see them 3 times? It looks as if the embeddedxtable-line is called 3 times (or maybe 4 times once for each row with the last call vanishing). However, the table macro itself is called only once, the Z at the beginning proves that. I cannot explain this. Another observation: inserting a newline after the ?xml-tag also does insert a space just before the Z. Hans van der Meer xtablespace.pdf Description: xtablespace.pdf ___ 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] embeddedxtable
On 24 May 2015, at 22:53, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 24.05.2015 um 21:33 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: Here an example as minimal as I could construct. The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. I think I can reduce the number of places where spaces have to be suppressed. With just 2 \removeunwantedspaces and 1 \ignorespaces I get rid of most of them. The \framed[offset=0pt] shows where spurious space is still inserted. Only 1 space remains inside the framed: in the vertical dimension below the table. Any idea where this comes from? Some parameter to change in the \framerd perhaps? Of course I would be happier if none of these space-suppressing is necessary in my code, because ConTeXt takes care of them. Hans van der Meer \startxmlsetups xmlcommon:table \bgroup \setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit,width=fit, align={center,lohi},columndistance=0pt] \setupxtableparameters{#1} \startlocationbox{#1} \startembeddedxtable \xmlflush{#1} \removeunwantedspaces \stopembeddedxtable \stoplocationbox \egroup \ignorespaces \stopxmlsetups \startxmlsetups xmlcommon:tr \bgroup \setupxtableparameters{#1} \removeunwantedspaces \startxrow \xmlflush{#1} \stopxrow \egroup \stopxmlsetups xtablespace.pdf Description: xtablespace.pdf ___ 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] embeddedxtable
On 25 May 2015, at 13:05, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The following example shows where you have to take care of extra space and you don’t need them when you put the whole table in a \vbox (you can test by commenting all \ignorespaces and \removeunwantedspaces commands and replacing \ruledhbox with \ruledvbox). Thanks for the suggestion of the \ruledvbox. This shows that the remaining whitespace originates in the \framed and not in the table code. Hans van der Meer ___ 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] embeddedxtable
When typesetting inside a \midaligned a version with markers around: A\startembeddedxtable\xmlflush{#1}\stopembeddedxtable B then the A and B show up centered and have the width of the table material between them. The embeddedxtable stuff is placed outside that range starting at the location of the B. A sketch of what happens: A space of tablewidth Btable starts here extending to the right Definitely something with embeddedxtable placement, I might guess. Some unwanted spaces in the code perhaps? Hans van der Meer On 24 May 2015, at 12:18, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since the end of 2013? (The embeddedxtable macro was needed because the typeset material exists inside \startbuffer..\stopbuffer.) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] embeddedxtable
Further experimenting with different ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable to the right over distance width-of-table. version 2015.03.25 and version 2015.05.23 put the left side of the embeddedxtable in the middle of the page. Something changed between these two versions. But clearly not enough. Hans van der Meer On 24 May 2015, at 12:36, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: When typesetting inside a \midaligned a version with markers around: A\startembeddedxtable\xmlflush{#1}\stopembeddedxtable B then the A and B show up centered and have the width of the table material between them. The embeddedxtable stuff is placed outside that range starting at the location of the B. A sketch of what happens: A space of tablewidth Btable starts here extending to the right Definitely something with embeddedxtable placement, I might guess. Some unwanted spaces in the code perhaps? Hans van der Meer On 24 May 2015, at 12:18, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since the end of 2013? (The embeddedxtable macro was needed because the typeset material exists inside \startbuffer..\stopbuffer.) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] embeddedxtable
Here can be seen how every row adds space before the table. I.e. spaces are added and after that the table is put behind. This behaviour was not present when I had the material typeset earlier. The xmlsetup's used were not changed since then. \startxmlsetups xmlcommon:tr \xmlstripanywhere{#1}{.} \bgroup \setupxtableparameters{#1} \startxrow X\xmlflush{#1} \stopxrow \egroup \stopxmlsetups Hans van der Meer [cid:723DA497-86EF-4142-A951-D70FD92D5104] On 24 May 2015, at 13:49, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: Further experimenting with different ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable to the right over distance width-of-table. version 2015.03.25 and version 2015.05.23 put the left side of the embeddedxtable in the middle of the page. Something changed between these two versions. But clearly not enough. Hans van der Meer On 24 May 2015, at 12:36, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: When typesetting inside a \midaligned a version with markers around: A\startembeddedxtable\xmlflush{#1}\stopembeddedxtable B then the A and B show up centered and have the width of the table material between them. The embeddedxtable stuff is placed outside that range starting at the location of the B. A sketch of what happens: A space of tablewidth Btable starts here extending to the right Definitely something with embeddedxtable placement, I might guess. Some unwanted spaces in the code perhaps? Hans van der Meer On 24 May 2015, at 12:18, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since the end of 2013? (The embeddedxtable macro was needed because the typeset material exists inside \startbuffer..\stopbuffer.) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] embeddedxtable
I can get rid of the unwanted spaces before the table by inserting a whole bunch of \unskip's in my code. All the \unskip's in the following code are necessary. I guess this observation will be enough to repair the ConText code. Or do I have to change something in my code? \startxmlsetups xmlcommon:tr \unskip \xmlstripanywhere{#1}{.} \unskip \bgroup \unskip \setupxtableparameters{#1} \unskip \startxrow \unskip\xmlflush{#1} \stopxrow \egroup \unskip \stopxmlsetups \startxmlsetups xmlcommon:td \unskip \xmlstrip{#1}{.} \bgroup \setupxtableparameters{#1} \startxcell[nc=\xmlattdef{#1}{colspan}{1},nr=\xmlattdef{#1}{rowspan}{1}] \xmlflush{#1} \stopxcell \egroup \stopxmlsetups Hans van der Meer On 24 May 2015, at 15:06, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: Here can be seen how every row adds space before the table. I.e. spaces are added and after that the table is put behind. This behaviour was not present when I had the material typeset earlier. The xmlsetup's used were not changed since then. \startxmlsetups xmlcommon:tr \xmlstripanywhere{#1}{.} \bgroup \setupxtableparameters{#1} \startxrow X\xmlflush{#1} \stopxrow \egroup \stopxmlsetups Hans van der Meer On 24 May 2015, at 13:49, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: Further experimenting with different ConTeXt versions: Trying earlier and latest beta, placing the embeddedxtable inside \midaligned: version 2014.11.26 puts the embbedxtable to the right over distance width-of-table. version 2015.03.25 and version 2015.05.23 put the left side of the embeddedxtable in the middle of the page. Something changed between these two versions. But clearly not enough. Hans van der Meer On 24 May 2015, at 12:36, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: When typesetting inside a \midaligned a version with markers around: A\startembeddedxtable\xmlflush{#1}\stopembeddedxtable B then the A and B show up centered and have the width of the table material between them. The embeddedxtable stuff is placed outside that range starting at the location of the B. A sketch of what happens: A space of tablewidth Btable starts here extending to the right Definitely something with embeddedxtable placement, I might guess. Some unwanted spaces in the code perhaps? Hans van der Meer On 24 May 2015, at 12:18, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since the end of 2013? (The embeddedxtable macro was needed because the typeset material exists inside \startbuffer..\stopbuffer.) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ row-adds-space.tiff___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage
[NTG-context] embeddedxtable
With the construct \startembeddedxtable\xmlflush{#1}\stopembeddedxtable placed inside a \midaligned I used to get a neatly centered content. But now the material is shifted to the right, even sticking out of the page. Has something changed in the embeddedxtable alignment handling since the end of 2013? (The embeddedxtable macro was needed because the typeset material exists inside \startbuffer..\stopbuffer.) Hans van der Meer ___ 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] arranging pages
Trying to put 2 pages in A5 format besides one another on an A4 page like this: -- | | | | | | | | | |1| 2 | | | | | | | -- but using: \setuppapersize[A5][A4,landscape] \setuparranging[2UP] I get this instead: -- -- | | | | | | | | | | | | | | | | | | | | 1| |2| | | | | | | | | | | | | | | | | | | | -- -- What I am doing wrong? Hans van der Meer ___ 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] arranging pages
That is it! The difference between 2UP and 2SIDE had escaped me. Thanks. Hans van der Meer On 24 May 2015, at 12:15, Otared Kavian ota...@gmail.commailto:ota...@gmail.com wrote: Hi again, Sorry I didn’t notice that you used \setuparranging[2UP] Actually what you want to do may be: begin arranging-up-or-side.tex \setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuparranging[2SIDE] %\setuparranging[2UP] —— Compare with the above \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \dorecurse{20}{\input knuth\par} \stoptext begin arranging-up-or-side.tex Best regards: OK On 24 May 2015, at 11:24, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: Trying to put 2 pages in A5 format besides one another on an A4 page like this: -- | | | | | | | | | |1| 2 | | | | | | | -- but using: \setuppapersize[A5][A4,landscape] \setuparranging[2UP] I get this instead: -- -- | | | | | | | | | | | | | | | | | | | | 1| |2| | | | | | | | | | | | | | | | | | | | -- -- What I am doing wrong? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] embeddedxtable
In this case you have to provide a working minimal example. Wolfgang Here an example as minimal as I could construct. Hans van der Meer The following example outputs show what happens with and without the \unskip's in the code. [cid:E7DC008D-E8CB-4F0A-BC45-9E8E4969C8DB] [cid:8A14737A-52AE-4B90-A03B-FA36FFF321E0] Also I am adding two other examples made by the same code, one in 2012 and one just now. Note the extensions to the right of each row. They are absent in the older version. [cid:1110D708-ADD3-46B8-A49B-143200704DA7][cid:539F8473-CC40-4CDB-AFC6-48AF306DD3F5] The example code follows here: % Switching on attribute being present (even if empty) or absent. \def\doifexistattribute#1#2{\doifnot{\xmlattdef{#1}{#2}{__NOT__}}{__NOT__}}%{#3} % Translate attribute: #1 = node, #2 = category #3 = attribute #4 = default value. \def\xlat#1#2#3#4{\xmlvalue{#2}{\xmlatt{#1}{#3}}{#4}} % Setup parameter to attribute. % #1 = node, #2 = setup, #3 = param, #4 = attrib, #5 = category, #6 = default. \def\setupToAttribute#1#2#3#4#5#6{% % Only executed if attribute is present. \doifexistattribute{#1}{#4}% % Attribute is present but category can be empty. {\doifelse{#5}{\empty}% {\doifelse{\xmlatt{#1}{#4}}{\empty}% {#2[#3=#6]}% attribute present but empty then take default {#2[#3=\xmlatt{#1}{#4}]}% attribute has content }% {#2[#3=\xlat{#1}{#5}{#4}{#6}]}% translate from category }% } % Setup flag (an TeX-if) from attribute values on,off,no,yes,true,false. % #1=node #2=flag: execute \attributetrue or \attributefalse \def\setFlagToAttribute#1#2{% \doifexistattribute{#1}{#2}% {% \doifinset{\xmlatt{#1}{#2}}{on,yes,true}{\csname#2true\endcsname}% \doifinset{\xmlatt{#1}{#2}}{off,no,false}{\csname#2false\endcsname}% }% } \startxmlsetups xmlcommon \xmlsetsetup{\xmldocument}{error|store|restore|include |table|tr|td|tbody }{xmlcommon:*} \stopxmlsetups \xmlregistersetup{xmlcommon} % Place at top/middle(default)/bottom location. \def\startlocationbox#1{% \let\templocation\relax \doif{\xmlatt{#1}{location}}{top}{\def\templocation{\vtop}}% \doif{\xmlatt{#1}{location}}{middle}{\def\templocation{\vcenter}}% \doif{\xmlatt{#1}{location}}{center}{\def\templocation{\vcenter}}% \doif{\xmlatt{#1}{location}}{bottom}{\def\templocation{\vbox}}% \templocation\bgroup\ifx\templocation\relax\else\vss\fi } \let\stoplocationbox\egroup \def\setupframeparameters#1#2{% % color % Always set background to color if backgroundcolor is set. \doifnot{\xmlatt{#1}{bgcolor}}{\empty}{#2[background=color]}% % But it can be overridden. \doifnot{\xmlatt{#1}{background}}{\empty}{#2[background=\xmlatt{#1}{background}]}% \setupToAttribute{#1}{#2}{foregroundcolor}{color}{}{darkblue}% \setupToAttribute{#1}{#2}{backgroundcolor}{bgcolor}{}{green}% % frame \doifnot{\xmlatt{#1}{frame}}{\empty}% {#2[frame=off]\setframeparts{\xmlatt{#1}{frame}}{#2}}% \setupToAttribute{#1}{#2}{framecolor}{framecolor}{}{black}% \setupToAttribute{#1}{#2}{corner}{corner}{}{rectangular}% \setupToAttribute{#1}{#2}{radius}{radius}{}{0.5ex}% \setupToAttribute{#1}{#2}{backgroundcorner}{bgcorner}{}{rectangular}% \setupToAttribute{#1}{#2}{backgroundradius}{bgradius}{}{0.5ex}% % dimensions \setupToAttribute{#1}{#2}{rulethickness}{rulethickness}{}{3pt}% \doifnot{\xmlatt{#1}{height}}{\empty}% {#2[height=\NumberCollect{\xmlattdef{#1}{height}{fit},\the\makeupheight}]}% \doifnot{\xmlatt{#1}{width}}{\empty}% {#2[width=\NumberCollect{\xmlattdef{#1}{width}{fit},\the\textwidth}]}% % alignment \setupToAttribute{#1}{#2}{strut}{strut}{}{on}% \setupToAttribute{#1}{#2}{align}{align}{html}{normal}% \setupToAttribute{#1}{#2}{align}{valign}{html}{lohi}% } % Setups for tables with xtable. \def\setupxtableparameters#1{% \setupframeparameters{#1}{\setupxtable}% \setupToAttribute{#1}{\setupxtable}{foregroundstyle}{style}{style}{\tf}% \setupToAttribute{#1}{\setupxtable}{offset}{cellpadding}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{columndistance}{cellspacing}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{spaceinbetween}{rowspacing}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{option}{option}{}{}% } \startxmlsetups xmlcommon:table \bgroup \xmlstripanywhere{#1}{.} \setupxtable[% Setup defaults leftmargindistance=0pt,rightmargindistance=0pt, offset=2pt,height=fit,width=fit, align={center,lohi},columndistance=0pt] \setupxtableparameters{#1} \startlocationbox{#1} \startembeddedxtable\xmlflush{#1}\stopembeddedxtable \stoplocationbox \egroup \stopxmlsetups \startxmlsetups xmlcommon:tbody \xmlstripanywhere{#1}{.} \bgroup \setupxtableparameters{#1} \startxtablebody \xmlflush{#1} \stopxtablebody \egroup \stopxmlsetups \startxmlsetups xmlcommon:tr \unskip \xmlstripanywhere{#1}{.} \unskip \bgroup \unskip \setupxtableparameters{#1} \unskip \startxrow \unskip =\xmlflush{#1} \stopxrow \egroup \unskip \stopxmlsetups \startxmlsetups xmlcommon:td \unskip \xmlstrip{#1}{.} \bgroup \setupxtableparameters{#1} \startxcell[nc=\xmlattdef{#1}{colspan}{1},nr=\xmlattdef{#1}{rowspan}{1}] \xmlflush{#1} \stopxcell \egroup \stopxmlsetups \starttext
Re: [NTG-context] embeddedxtable
Defined as follows: \def\setupxtableparameters#1{% #1 is the node \setupframeparameters{#1}{\setupxtable}% \setupToAttribute{#1}{\setupxtable}{foregroundstyle}{style}{style}{\tf}% \setupToAttribute{#1}{\setupxtable}{offset}{cellpadding}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{columndistance}{cellspacing}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{spaceinbetween}{rowspacing}{}{0pt}% \setupToAttribute{#1}{\setupxtable}{option}{option}{}{}% } \def\setupframeparameters#1#2{% % color % Always set background to color if backgroundcolor is set. \doifnot{\xmlatt{#1}{bgcolor}}{\empty}{#2[background=color]}% % But it can be overridden. \doifnot{\xmlatt{#1}{background}}{\empty}{#2[background=\xmlatt{#1}{background}]}% \setupToAttribute{#1}{#2}{foregroundcolor}{color}{}{darkblue}% \setupToAttribute{#1}{#2}{backgroundcolor}{bgcolor}{}{green}% % frame \doifnot{\xmlatt{#1}{frame}}{\empty}% {#2[frame=off]\setframeparts{\xmlatt{#1}{frame}}{#2}}% \setupToAttribute{#1}{#2}{framecolor}{framecolor}{}{black}% \setupToAttribute{#1}{#2}{corner}{corner}{}{rectangular}% \setupToAttribute{#1}{#2}{radius}{radius}{}{0.5ex}% \setupToAttribute{#1}{#2}{backgroundcorner}{bgcorner}{}{rectangular}% \setupToAttribute{#1}{#2}{backgroundradius}{bgradius}{}{0.5ex}% % dimensions \setupToAttribute{#1}{#2}{rulethickness}{rulethickness}{}{3pt}% \doifnot{\xmlatt{#1}{height}}{\empty}% {#2[height=\NumberCollect{\xmlattdef{#1}{height}{fit},\the\makeupheight}]}% \doifnot{\xmlatt{#1}{width}}{\empty}% {#2[width=\NumberCollect{\xmlattdef{#1}{width}{fit},\the\textwidth}]}% % alignment \setupToAttribute{#1}{#2}{strut}{strut}{}{on}% \setupToAttribute{#1}{#2}{align}{align}{html}{normal}% \setupToAttribute{#1}{#2}{align}{valign}{html}{lohi}% } % Setup parameter to attribute. % #1 = node, #2 = setup, #3 = param, #4 = attrib, #5 = category, #6 = default. \def\setupToAttribute#1#2#3#4#5#6{% % Only executed if attribute is present. \doifexistattribute{#1}{#4}% % Attribute is present but category can be empty. {\doifelse{#5}{\empty}% {\doifelse{\xmlatt{#1}{#4}}{\empty}% {#2[#3=#6]}% attribute present but empty then take default {#2[#3=\xmlatt{#1}{#4}]}% attribute has content }% {#2[#3=\xlat{#1}{#5}{#4}{#6}]}% translate from category }% } Hans van der Meer On 24 May 2015, at 17:31, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 24.05.2015 um 15:32 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: I can get rid of the unwanted spaces before the table by inserting a whole bunch of \unskip's in my code. All the \unskip's in the following code are necessary. I guess this observation will be enough to repair the ConText code. Or do I have to change something in my code? \startxmlsetups xmlcommon:tr \unskip \xmlstripanywhere{#1}{.} \unskip \bgroup \unskip \setupxtableparameters{#1} \unskip \startxrow \unskip\xmlflush{#1} \stopxrow \egroup \unskip \stopxmlsetups \startxmlsetups xmlcommon:td \unskip \xmlstrip{#1}{.} \bgroup \setupxtableparameters{#1} \startxcell[nc=\xmlattdef{#1}{colspan}{1},nr=\xmlattdef{#1}{rowspan}{1}] \xmlflush{#1} \stopxcell \egroup \stopxmlsetups How did you define the \setupxtableparameters command in your example? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] typeset chapter elements
I would like to vary the typesetting of chapter titles by formatting the elements chapternumber, title and the word 'chapter' myself. However, the style values of the parameter setup from \setuphead[chapter][] should be used. Needed for this is access to and/or the naming scheme of the paramters: style, textstyle, numberstyle, color, textcolor, numbercolor. To clarify further, in \def\mychaptercode#1#2{...} \setuphead[chapter][command=mychaptercode] the #1 parameter gives the chapternumber typeset in a form that is just not how I want it. Thus instead of using #1 in the code for \mychaptercode I am using \headnumber[chapter]. But then cannot imagine how to set the right style and color. Finally, how is the macro containing the expansion for the chapter,sectiion-designation recalled? It is the macro defined by for example \setuplabeltext[chapter=Hoofdstuk ]. The reference manual does not reveal this as far as I can see. Yhanks in advance for either an answer or a pointer where to find the info. Hans van der Meer ___ 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] setuphead bug?
There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle. In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else. minimal example: \setuphead[chapter][alternative=middle] \starttext \startchapter[title=TITLE] \stopchapter \stoptext Is there a quick repair? ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english Hans van der Meer else-bug.pdf Description: else-bug.pdf ___ 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] setuphead bug?
\setuphead[chapter][align=middle] works out ok for me. Thanks! But then, \setuphead[chapter][alternative=middle] seems quite correct, following the manual. The else seems strange then. Hans van der Meer On 07 Oct 2014, at 17:59, Otared Kavian ota...@gmail.commailto:ota...@gmail.com wrote: Don’t you mean rather \setuphead[chapter][align=middle] instead of « alternative »? Best regards: OK On 07 Oct 2014, at 17:28, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle. In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else. minimal example: \setuphead[chapter][alternative=middle] \starttext \startchapter[title=TITLE] \stopchapter \stoptext Is there a quick repair? ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english Hans van der Meer else-bug.pdf___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] framedtext and itemize
I have a question regarding the interplay between framedtext and itemize. Example \startitemize[n]\startitem \startframedtext[left][width=0.5\textwidth]\leavevmode some text \stopframedtext \stopitem\stopitemize The framedtext is put on the next line instead of on the first of the item. [cid:3B8394EB-ADB8-4DA9-9E09-6ACFB9389BB4] How do I get here the top frameline of the framedtext aligned with the 1. of the itemnumber? Playing with the location-parameter on the \startframedtext doesn't seem to make any difference. Especially I would like the baseline of the first line inside the framed text to be at the same level as the itemlabel. Hans van der Meer ___ 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] aligning framedtexts inside framed
In search of a nice presentation of two passages of text I am trying to put two \framedtext's inside a \framed with their top at the same level. However, I have not been able to accomplish this. Instead they align their bottom. Example with its result: \framed[location=top]\bgroup \hsize=0.5\textwidth \startframedtext[left][width=0.5\textwidth,location=top]\leavevmode some text \stopframedtext \startframedtext[left][width=0.5\textwidth,location=top]\leavevmode some other text\crlf of more lines \stopframedtext \egroup [cid:B80CDDB1-1D08-4FEE-8B80-B1C0C11AC256] Changing the location parameter made no difference, introducing an align ruined the placement on the same line. How do I get the toplines of the inner frames at the same height? Hans van der Meer ___ 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] pagenumber suppression howto?
Would it be a good idea to add to the definition of \noheaderandfooterlines? For example \def\noheaderandfooterlines{..} % Separately kill header and footerlines on the current page. \def\noheaderlines{\setuplayoutelement[header][state=empty]} \def\nofooterlines{\setuplayoutelement[footer][state=empty]} I added these to my macroset, because I find \noheaderlines easier to remember than \setuplayoutelement[header][state=empty]. Hans van der Meer On 20 Jul 2014, at 22:20, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 20.07.2014 um 22:02 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: On 20 Jul 2014, at 21:51, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 20.07.2014 um 21:35 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: Thanks. Please let us know if this addition of location=none will be taken up in a future beta. I also realised that the effect wanted can be obtained by dividing the single \noheaderandfooterlines into two additional macros \noheaderlines and \nofooterlines Is that a viable idea too? When you want disable only one element you can use the \setupheader or \setupfooter command. I guess no. That was just the thing that did not worked out, because the \noheaderandfooterlines did the effect of the \setupheader vanish. What \noheaderandfooterlines does is to call the following two setups: - \setupheader[state=empty] and - \setupfooter[state=empty] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://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] pagenumber suppression howto?
My goal is pages without header info at the top and text plus a pagenumber on the bottom. This can be accomplished by: \setupheader[state=stop] \setupfooter[text][before=\hairline,style=small,location=left,strut=yes] \setupfootertexts[some text][pagenumber] I want the first page without that footer, to be done with: \noheaderandfooterlines But then comes the problem, because afterwards the default takes over and on the subsequent pages the pagenumber starts to appear in the header (the default setting apparently). Thus the \noheaderandfooterlines annuls the \setupheader[state=stop] I did not find out how to get rid of the default pagenumber. \setuppagenumber[state=stop] kills all pagenumbering, the programmed one in the leftbottom corner too. \setuppagenumbering[state=stop] kills all pagenumbers, included the one I want to appear. \setuppagenumbering[location=none] merely puts the pagenumber in the middle of the footer, obviously location=none has no meaning in ConTeXt. So, I am at the end of the possibilities I can think of. How to? Hans van der Meer ___ 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] pagenumber suppression howto?
On 20 Jul 2014, at 21:51, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 20.07.2014 um 21:35 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: Thanks. Please let us know if this addition of location=none will be taken up in a future beta. I also realised that the effect wanted can be obtained by dividing the single \noheaderandfooterlines into two additional macros \noheaderlines and \nofooterlines Is that a viable idea too? When you want disable only one element you can use the \setupheader or \setupfooter command. I guess no. That was just the thing that did not worked out, because the \noheaderandfooterlines did the effect of the \setupheader vanish. Hans van der Meer ___ 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] running PlainTeX from beta
I have some plaintex code to run from the ConTeXt beta-distribution, because I didn't install the complete TeXp-distribution (and if possible prefer to keep it that way). I did not fare well with running texexec --make plain and mtxrun --script plain myfile.tex The first command does not give a sign of dumping the plain format somewhere, the second command complains I can't find the format file luatex-plain.fmt It looks if I am on the wrong track for using luatex with plain. Will someone please be so kind to turn me in the right direction? Hans van der Meer ___ 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] reading modules broken?
Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: modules have names like m- x- s- p- u- Remark: u- does not work out of the box, only when called as \usemodule[u][modulename]. I had consulted the Wiki that tells us: Usage When you load a module with \usemodule[modulename] ConTeXt looks for a file with the following names: * m-modulaname (core module) * p-modulename (private module) * s-modulename (ConTeXt style file) * x-modulename (XML module) * t-modulename (Third party module) * modulename Once a file is found ConTeXt stops the search and loads the found file (only once). When you have two file with the same name but different prefixes you can tell ConTeXt which file it should load with \usemodule[prefix][modulename] I checked \usemodule[modulename] with all these prefixes and they work ok. But the last item in the list (marked red for clarity) does not (any more). That item suggest \usemodule[module-name] should work. I suggest someone in charge of the Wiki takes a look and removes the last item when my observations turn out to be correct. A final question. Using the \usemodule[prefix][modulename] form, one can use any prefix letter. In fact, any prefix seems to work. If that functionality stays, it will give more flexibility in the naming scheme for modules. Please confirm if this will be the case or if module naming in the future will be restricted to a one letter scheme or even restricted to [mpsxt] exclusively as mentioned in the Wiki. Hans van der Meer On 06 Jun 2014, at 22:52, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: On 6/6/2014 9:35 PM, Meer, H. van der wrote: My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second. Minimal example follows. Hans van der Meer Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log. \stoptext modules have names like m- x- s- p- u- and the lookup happens in a certain order without prefix, and checking for mkvi, mkiv, mkii or tex suffixes so in your case it should be something u-hvdm-test or so (user hvdm test) so you were just lucky that in the past modules-* worked the loading is probably ok because test.* is loaded In the log I find: This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source 1 1 /Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.06.05 23:04 MKIV beta fmt: 2014.6.6 int: english/english open source 2 3 /Users/hansm/tex/test-tex/modules/moduletest.tex resolversmodules 'module-test' is already loaded -- wrongly thinks it is loaded It says the module is already loaded, but the telltale \writestatus is absent. Running the same code with an older version of ConTeXt does load the module: ConTeXt ver: 2014.01.02 20:05 MKIV current fmt: 2014.1.2 int: english/english (/Users/hansm/tex/test-tex/modules/moduletest.tex resolversmodules 'module-test' is loaded -- loads as it should (module-test.tex HVDM Module has been read ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.comhttp://www.pragma-ade.com/ | www.pragma-pod.nlhttp://www.pragma-pod.nl/ - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net
Re: [NTG-context] reading modules broken?
I have my modules renamed. With x-oldname for xml-processors and t-oldname for the others. After that everything seems to work fine. No need therefore to change \usemodule calls inside the code. Hans van der Meer On 07 Jun 2014, at 14:40, Andreas Schneider ak...@gmx.demailto:ak...@gmx.de wrote: So either this old behavior had it's upsides or SimpleSlides needs to be fixed :-) ___ 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] reading modules broken?
My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second. Minimal example follows. Hans van der Meer Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log. \stoptext In the log I find: This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source 1 1 /Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.06.05 23:04 MKIV beta fmt: 2014.6.6 int: english/english open source 2 3 /Users/hansm/tex/test-tex/modules/moduletest.tex resolversmodules 'module-test' is already loaded -- wrongly thinks it is loaded It says the module is already loaded, but the telltale \writestatus is absent. Running the same code with an older version of ConTeXt does load the module: ConTeXt ver: 2014.01.02 20:05 MKIV current fmt: 2014.1.2 int: english/english (/Users/hansm/tex/test-tex/modules/moduletest.tex resolversmodules 'module-test' is loaded -- loads as it should (module-test.tex HVDM Module has been read ___ 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] MathML in ConTeXt conforming to MathML3?
Does the MathML in ConText conforms to the MathML3 specification? (see http://www.w3.org/TR/MathML3/chapter5.html) I find that with \usemodule[mathml] (1) semanticsannotation encoding=application/x-texTeX-code/annotation/semantics does not typesets, but (2) semanticsannotation encoding=texTeX-code/annotation/semantics does. As I understand from the specification, (1) should have been correct, but does not processes the TeX and the attribute application/x-tex seems not to be recognized. Does ConTeXt-MathML deviates in this respect from the current standard? Or do I miss some important fact? Hans van der Meer ___ 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] MathML in ConTeXt conforming to MathML3?
Examples below, the two examples change between tex and application/x-tex in the annotation. Hans van der Meer On 21 May 2014, at 22:14, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: On 5/21/2014 8:09 PM, Meer, H. van der wrote: Does the MathML in ConText conforms to the MathML3 specification? (see http://www.w3.org/TR/MathML3/chapter5.html) I find that with \usemodule[mathml] (1) semanticsannotation encoding=application/x-texTeX-code/annotation/semantics does not typesets, but (2) semanticsannotation encoding=texTeX-code/annotation/semantics does. As I understand from the specification, (1) should have been correct, but does not processes the TeX and the attribute application/x-tex seems not to be recognized. Does ConTeXt-MathML deviates in this respect from the current standard? Or do I miss some important fact? I can add that encoding spec but you post to make a complete minimal example first. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.comhttp://www.pragma-ade.com/ | www.pragma-pod.nlhttp://www.pragma-pod.nl/ - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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 ___ mathml-fail.pdf Description: mathml-fail.pdf mathml-fail.pdf Description: mathml-fail.pdf ___ 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] MathML in ConTeXt conforming to MathML3?
Thanks. And added to some future beta? I would be obliged. Hans van der Meer you can patch x-math.mkiv: \xmldoifelse {#1} {.[oneof(@encoding,'TeX','tex','application/x-tex','TEX','ConTeXt','context','CONTEXT','ctx')]} { as that seems to work okay ___ 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] mathml mtext behaviour
On 18 mei 2014, at 17:26, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: On 5/18/2014 10:05 AM, H. van der Meer wrote: Sorry if this question reaches you twice, but the first time I used an email address not registered with this newsgroup. The short example below typeset with \usemodule[mathml] \starttext \typebuffer \blank \processxmlbuffer \stoptext and ConTeXt ver: 2014.04.04 00:08 MKIV beta shows that the mtext element does not honour the tags within. This severely restricts the presentation. So what makes you think these tags should be recognized and interpreted as being 'bold'? see: http://en.wikipedia.org/wiki/MathML Presentation MathML Note however that these token elements may be used as extension points, allowing markup in host languages. MathML in HTML5http://en.wikipedia.org/wiki/HTML5 allows most inline HTML markup in mtext, and * mtextbnon/b zero/mtext is conforming, with the HTML markup being used within the MathML to mark up the embedded text (making the first word bold in this example). Hans van der Meer ___ 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] MacOsX Mavericks and Luatex
On 25 okt. 2013, at 00:13, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: anyway, in a next beta you can set this in texmf.cnf.lua: return { content = { directives = { [fonts.usesystemfonts] = false, }, }, } Best do that in texmf-local as a next update will overwrite the main cnf file. Entries in the he local file overload main ones. (1) Where resides above mentioned main cnf file? Useful as template for local changes. (2) I presume that the main cnf file is read in first and the local one after that. Thus changing only that what is done in the local file. Correct? Hans van der Meer ___ 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] repost add bib category?
I am reposting this, because I did not see someone reply. Is there anyone who can help me out? Thanks in advance. Hans van der Meer On 6 sep. 2013, at 09:36, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: I am in need of a reference to a bachelor thesis but the file bxml-apa.mkiv only provides phdthesis as a possibility. Adding the following code to bxml-apa.mkiv doesn't work or is not enough to add the bachelorthesis as an extra. I did search for phdthesis in the ConTeXt base files and was found once: in the bxml-apa.mkiv file. How to? \startxmlsetups bibtex:apa:bachelorthesis \setvariables[bibtex:temp][label=Bachelor thesis] \bibxmlsetup{bibtex:apa:common:thesis} \stopxmlsetups used in the .bib file as: @bachelorthesis{rijneveld:13, Author = {A. Author}, School = {Excellent University}, Title = {{How the Dutch.}}, Year = {2013}} Hans van der Meer ___ 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] extra - in reference
Doing \in{Figure}[fig:figname] neatly typesets for example: figure 1.4 Defined as: \startplacefigure[title=figure-title,reference=fig:figname] But if I define:\startchapter[title=chapter-title,reference=chap:chapname] Then \in{Chapter}[chap:chapname] produces: chapter 6 - Thus an extra space + minus sign + space are put behind the chapter reference. This is annoying, because I would like my chapter reference to be chapter 6 without any additions. Besides, the figure reference and chapter reference behave differently, an unexpected phenomenon. It seems the \startchapter defines a reference different from the reference in \startplacefigure. Is this difference in behaviour intentional? Is it a bug? How can I revert my chapter references to the form without the trailing characters? Thanks in advance Hans van der Meer ___ 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] extra - in reference
Culprit found by experimenting with your example that indeed is correct. The problem is in the sectionstopper in the setup: \setuphead[chapter][sectionstopper={ – }] This sectionstopper inserts something between chapter marker and chapter title: Chapter 1 – Chapter title I didn't expect this sectionstopper to turn up in the reference to the chapter number. Can you point out how to suppress the sectionstopper in the references (if for now) while keeping it between the marker and the title? And if you are also of the opinion that the sectionstopper shouldn't turn up at the end of the reference, will this be changed in an upcoming beta? Hans van der Meer On 10 sep. 2013, at 11:16, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 10.09.2013 um 10:51 schrieb Meer, H. van der h.vanderm...@uva.nl: Doing \in{Figure}[fig:figname] neatly typesets for example: figure 1.4 Defined as: \startplacefigure[title=figure-title,reference=fig:figname] But if I define:\startchapter[title=chapter-title,reference=chap:chapname] Then \in{Chapter}[chap:chapname] produces: chapter 6 - Thus an extra space + minus sign + space are put behind the chapter reference. This is annoying, because I would like my chapter reference to be chapter 6 without any additions. Besides, the figure reference and chapter reference behave differently, an unexpected phenomenon. It seems the \startchapter defines a reference different from the reference in \startplacefigure. Is this difference in behaviour intentional? Is it a bug? How can I revert my chapter references to the form without the trailing characters? Make a minimal example because I can’t reproduce your results. \useMPlibrary[dum] \starttext \startchapter[title=chapter-title,reference=chap:chapname] \startplacefigure[title=figure-title,reference=fig:figname] \externalfigure[dummy] \stopplacefigure Take a look at \in{Figure}[fig:figname] in \in{Chapter}[chap:chapname]. \stopchapter \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] add bib category
I am in need of a reference to a bachelor thesis but the file bxml-apa.mkiv only provides phdthesis as a possibility. Adding the following code to bxml-apa.mkiv doesn't work or is not enough to add the bachelorthesis as an extra. I did search for phdthesis in the ConTeXt base files and was found once: in the bxml-apa.mkiv file. How to? \startxmlsetups bibtex:apa:bachelorthesis \setvariables[bibtex:temp][label=Bachelor thesis] \bibxmlsetup{bibtex:apa:common:thesis} \stopxmlsetups used in the .bib file as: @bachelorthesis{rijneveld:13, Author = {A. Author}, School = {Excellent University}, Title = {{How the Dutch.}}, Year = {2013}} Hans van der Meer ___ 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] textext sync problem?
I am using textext to draw text from inside a metapost program. The drawoptions macro is used by metapost to set drawing options such as color. As I understand, the textext call is handled by the tex-side of the metapost-context system, initiated of course from the metapost side. My impression is that this occurs asynchronously, judging by the problem I encountered. On the metapost side I have: drawoptions(withcolor blue); pic := textext(labeltext); drawoptions(); % the pic is output later [cid:3EBB8ADD-F7B8-4DE1-8990-9EB0E0F45EF6@fritz.box] Deleting the reset implied by the second drawoptions does honor the coloring: drawoptions(withcolor blue); pic := textext(labeltext); [cid:8813D244-4326-4F4A-8520-3C704619954C@fritz.box] I am inclined to conclude that the calling environment containing the drawoptions setting is not captured the moment the textext call is placed, but somewhat later. Because so it can be explained why the latter has the blue color but the former does not (drawoptions has already been reset before it is taken into account). The following code variation seems to corroborate this conclusion: drawoptions(withcolor blue); pic := textext(labeltext); drawoptions(withcolor darkgreen); [cid:415E4344-B8AA-492B-B320-D57D405462EB@fritz.box] If the conclusion is correct, I have a serious problem, because it then becomes impossible to predictably change the drawoptions used by textext. The result then might be dependent on timing conditions in the system. In my opinion, calling textext should capture all relevant data at the precise moment of the call in metapost. I might be wrong, of course, but otherwise I am in need of a repair. Hans van der Meer inline: blue.jpginline: green.jpgattachment: notblue.tiff___ 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] textext sync problem?
Do I understand ypu correctly then that: (1) textext delivers a picture containing what it did typeset, regardless of the setting of drawop (2) drawoptions (withcolor red) then applies the color to that picture? But then there is a complication. On input textext(\tfb text) the above seems to apply, but submitting textext(\orange\tfb text) makes the text orange coloured in spit of the drawoptions setting. Thus textext seems to behave differently for getting an explicit color for its content or not. Before ripping the program for a minimal example I would like to first have a clear understanding of the functioning of textext in relation to metapost. It seems that as yet I do not have a clear enough picture of that process. Hans van der Meer On 28 aug. 2013, at 21:20, Aditya Mahajan adit...@umich.edu wrote: On 2013-08-28, at 1:40 PM, Meer, H. van der h.vanderm...@uva.nl wrote: I am using textext to draw text from inside a metapost program. The drawoptions macro is used by metapost to set drawing options such as color. As I understand, the textext call is handled by the tex-side of the metapost-context system, initiated of course from the metapost side. My impression is that this occurs asynchronously, judging by the problem I encountered. On the metapost side I have: drawoptions(withcolor blue); pic := textext(labeltext); drawoptions(); % the pic is output later Can you posts complete minimal example? Drawoptions are only taken into consideration when the picture is drawn, and textext does not draw the picture. So, it is not surprising that when you actually draw the picture, the current draw options are used. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] nasty crash
A nasty crash occurs with no helpful output in the log. It seems likely to arise from a complicated hbox, because the log ends abruptly in: \hbox(80.33+74.07002)x426.78 The output on the console isn't helpful either, I merely get: pagesflushing realpage 12, userpage 8 mtx-context | fatal error: no return code, message: luatex: execution interrupted This log message isn't closed with a newline. Of course I tried to construct a minimal example, but did not succeed. When I isolate the page where the execution crashes then no error occurs. It might be something in ConTeXt, but also something in luatex. Any idea how I can collect more information for trying to pinpoint the problem? Hans van der Meer ___ 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] context command behaviour
The help (command context) tells me: mtx-context | --noconsoledisable logging to the console (logfile only) mtx-context | --batchmoderun without stopping and do not show messages on the console However, neither lives up to its promise. See the two sample runs below. Because I would like to run context silently from within a Lua program, I would appreciate if this can be repaired. Hans van der Meer 105 videots: context --noconsole --once eng-dvb.tex mtx-context | run 1: luatex --fmt=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=eng-dvb --lua=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:directives=logs.target=file --c:fulljobname=./eng-dvb.tex --c:input=./eng-dvb.tex --c:kindofrun=3 --c:maxnofruns=1 --c:noconsole --c:once cont-yes.mkiv This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627) \write18 enabled. (/Users/hansm/TeX/context-10/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.05.10 15:05 MKIV beta fmt: 2013.5.10 int: english/english (/Users/hansm/TeX/context-10/tex/texmf-context/tex/context/base/cont-new.mkiv) (/Users/hansm/Projects/Lua/programs/videots/eng-dvb.tex{/Users/hansm/TeX/context-10/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/hansm/TeX/context-10/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/hansm/TeX/context-10/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} ) )/Users/hansm/TeX/context-10/tex/texmf/fonts/opentype/public/lm/lmroman6-regular.otf/Users/hansm/TeX/context-10/tex/texmf/fonts/opentype/public/lm/lmroman6-bold.otf system | total runtime: 6.930 106 videots: 106 videots: context --batchmode --once eng-dvb.tex mtx-context | run 1: luatex --fmt=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --interaction=batchmode --jobname=eng-dvb --lua=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:batchmode --c:currentrun=1 --c:fulljobname=./eng-dvb.tex --c:input=./eng-dvb.tex --c:kindofrun=3 --c:maxnofruns=1 --c:once cont-yes.mkiv This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627) \write18 enabled. system 'cont-new.mkiv' loaded system files jobname 'eng-dvb', input './eng-dvb', result 'eng-dvb' fontslatin modern fonts are not preloaded languageslanguage 'en' is active LINES DELETED mkiv lua stats luatex banner: this is luatex, version beta-0.76.0-2013040508 (tex live 2013/dev)(rev 4627) mkiv lua stats control sequences: 37310 of 65536 + 10 mkiv lua stats current memory usage: 77 MB (ctx: 67 MB) mkiv lua stats runtime: 6.755 seconds, 11 processed pages, 11 shipped pages, 1.628 pages/second system | total runtime: 6.934 ___ 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] mpgraphics confusion
I am a bit confused about the metafum graphis. In the manual (2012) I read (screen version after page 203 section 3.3) the following. \startuseMPgraphic-\useMPgraphic this graphic is calculated each time it is placed. \startreusableMPgraphic-\reuseMPgraphic for graphics that don't change. \startuniqueMPgraphic-\uniqueMPgraphic this graphic is calculated for each distinctive case. I fail to see in what respect startuseMPgraphic en startuniqueMPgraphic do differ? Can someone please explain? Hans van der Meer ___ 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] fontsize drawing in metapost
The reason behind starting this thread was the fact that I want my \useMPgraphic's arbitrarily (and perfectly) scaled. In Metapost/Metafun that is easily done through a \MPvar{scale} variable, applied to the main dimensions on which all measures in my figures depend. But for the fontsizes this turned out to be not so easy. Understandable, because text is typeset at the TeX-end not inside the Metapost. Perhaps a better and possibly more elegant way seems the following route. When I turn Metapost figures into external pdf-files, these can be placed with \useexternalfigure and the scaled as a whole, drawing and text alike. My question is: can this be done without resorting to an external pdf? That is, can I pick up the result of \useMPgraphic somewhere, then put this in \useexternalfigure and apply everything possible there to the figure. Does someone know how to? Hans van der Meer ___ 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] fontsize drawing in metapost
Thanks. This is exactly what is needed. I feel myself somewhat silly, because I did try \scale, but with the wrong parameter setup; nothing happened then, of course. Now I know to do it right! Hans van der Meer On 7 May 2013, at 9:35 AM, Marco Patzer home...@lavabit.com wrote: On 2013–05–07 Meer, H. van der wrote: Perhaps a better and possibly more elegant way seems the following route. When I turn Metapost figures into external pdf-files, these can be placed with \useexternalfigure and the scaled as a whole, drawing and text alike. My question is: can this be done without resorting to an external pdf? That is, can I pick up the result of \useMPgraphic somewhere, then put this in \useexternalfigure and apply everything possible there to the figure. You could use \scale : \startuseMPgraphic{foo} fill unitcircle scaled 1cm; label(Foo, origin); \stopuseMPgraphic \starttext \useMPgraphic{foo} \scale[width=3cm]{\useMPgraphic{foo}} \scale[width=3cm,height=5cm] {\useMPgraphic{foo}} \scale[scale=2500] {\useMPgraphic{foo}} \stoptext Marco ___ 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] parameters to \startxmlsetups
\startxmlsetups takes one (implicit) parameter #1, the current node. The setup can be called with \setup{node}{command}. My question: Can there be another parameter transferred to the \startxmlsetups from the \setup call? What I would like to do is having a variant \startxmlsetups and corresponding \setup with three parameters {#1}{#2}{#3}. Then argument #3 will allow me to transfer extraneous information to the \startxmlsetups. So one can avoid transferring information through (global) defines, which makes code less general and not very transparant. Hans van der Meer ___ 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] inclusion of tex code in xml context
I have some difficulties understanding the intake of ConTeXt-code in an XML processing environment. The setup is as follows. \startbuffer[buffername] \startuseMPgraphic{graphicname}{} .. \stopuseMPgraphic \stopbuffer Processing inside xmlsetup: \startxmlsetups xmlcommon:mpgraphic Here I want to read the buffer and then call it up with \useMPgraphic{graphicname}{} \stopxmlsetups This works if I pack the graphic definition in the buffer inside a tex/tex node and call \xmlprocessbuffer{tex}{\xmlatt{#1}{buffer}}{} where tex is a ConTeXt processing setup. This actuallty works, but has the drawback of putting the ConTeXt code inside tex/tex thereby makeing it difficult to reuse the definition of the graphic in a non XML-context. I thus want to get rid of the tex/tex enclosure. I tried things like \xmlloadbuffer{tex}{\xmlatt{#1}{buffer}} \xmlsetup{tex}{xmlcommon:tex}== the tex processing xmlsetups But this does not work. Because the graphic in this case is not found by \useMPgraphic. Clearly I am misunderstanding some of the intricacies of the xmlloading macros and probably the solution is quite simple. But I cannot find the right way to do it. Any help would be appreciated. Hans van der Meer ___ 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] makeing xml-node
With \xmlload{myroot}{file} I can load an xml file and the execute on its nodes. However what to do if the file is not of the form rootfile-contents/root? In that case it would help if I could contruct a node with with some actions like: root\input{fileconytents/root and then operate with xml commands on that root node. Can this be accomplished? Hans van der Meer ___ 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] makeing xml-node
Alas, this does not solve the problem, iff I am following your suggestion correctly. I did \xmlloadbuffer{thebuffer}{\xmlatt{#1}{buffer}} \xmlfilter{thebuffer}{*/context()} \useMPgraphic.. This works for a buffer content enclosed in any node: \startbuffer[ychannel] anyone = cannot be omitted \startuseMPgraphic{}{} .. \stopuseMPgraphic /anyone = cannot be omitted \stopbuffer But it does not work when the content is not enclosed in a node, which is my input case: \startbuffer[ychannel] \startuseMPgraphic{}{} .. \stopuseMPgraphic \stopbuffer Now the xml is judged invalid by running it. In the case of a file there is a circumvention through directlua. There I can os.execute a chain of commands: echo node tmp;cat file tmp;echo node tmp and then \xmlprocessfile the tmp. A bit of a kludge, I am ready to admit, but working. But I don't see how to do this with buffers. Hans van der Meer On 7 May 2013, at 7:39 PM, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote: On 5/7/2013 5:30 PM, Meer, H. van der wrote: With \xmlload{myroot}{file} I can load an xml file and the execute on its nodes. However what to do if the file is not of the form rootfile-contents/root? In that case it would help if I could contruct a node with with some actions like: root\input{fileconytents/root and then operate with xml commands on that root node. Can this be accomplished? you can just filter the node .. \xmlfilter{#myroot}{/some/element . ___ 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] xml attribute trickery possible?
In the xml setup one may call a command on the current node like: \startxmlsetups xam:define:get \xmlcommand{#1}{}{xmlcommon:whatever} \stopxmlsetups The current node will have attributes and these can be used in the execution of the command xmlcommon:whatever. The question is the following: I would like to change/addto the attributes on the current node, for example to supply missing defaults. Is this possible and if yes, how to? Hans van der Meer ___ 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] fontsize drawing in metapost
This is but a partial solution in my case, for two reasons: 1. \textstyle=\small gives few control, I tried textstyle=5pt without result 2. the setup cannot be placed inside \startuseMPgraphic, where I need it most. I skimmed through meta-ini.mkiv, but did not find a solution. It is however quite possible things cannot be done other than by putting a fontchange inside each label. Hans van der Meer On 6 May 2013, at 6:04 PM, Marco Patzer home...@lavabit.com wrote: On 2013–05–06 Meer, H. van der wrote: What is the simplest way to change the size of fonts in labels drawn in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco __ ___ 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] fontsize drawing in metapost
I did some further experimentation, hoping using dimexp calculations would help. But either I am doing somthing wrong or I do not understand the innards of bodyfont switching well enough. The example program seems to have accessed a 30 pt font (see the log file) but did not typeset in it, the dimexpr does evaluates to 30 pt. Where am I at fault? Hans van der Meer \setuppapersize[A6][A6] \setupbodyfont[10pt] \starttext 10pt\ \begingroup\switchtobodyfont[20pt]20pt\endgroup\ 10pt\par \writestatus{==}{} 10pt\ \begingroup\switchtobodyfont[\the\dimexpr(3\bodyfontsize)] times 3\endgroup\ 10pt\par dimexpr=\the\dimexpr(3\bodyfontsize)\par \stoptext fonts'fallback modern rm 10pt' is loaded fontsbodyfont '20pt' is defined (can better be done global) fontsbodyfont '24pt' is defined (can better be done global) fontsbodyfont '16pt' is defined (can better be done global) == fontsbodyfont '30.0pt' is defined (can better be done global) fontsbodyfont '36pt' is defined (can better be done global) fontsbodyfont '24pt' is defined (can better be done global) fontsbodyfont '30.0pt' is defined (can better be done global) fontsbodyfont '30.0pt' is not defined On 6 May 2013, at 8:57 PM, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: This is but a partial solution in my case, for two reasons: 1. \textstyle=\small gives few control, I tried textstyle=5pt without result 2. the setup cannot be placed inside \startuseMPgraphic, where I need it most. I skimmed through meta-ini.mkiv, but did not find a solution. It is however quite possible things cannot be done other than by putting a fontchange inside each label. Hans van der Meer On 6 May 2013, at 6:04 PM, Marco Patzer home...@lavabit.commailto:home...@lavabit.com wrote: On 2013–05–06 Meer, H. van der wrote: What is the simplest way to change the size of fonts in labels drawn in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco _ dimexpr.pdf Description: dimexpr.pdf ___ 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] extra line after switchtobodyfont
On 4 May 2013, at 9:21 AM, Aditya Mahajan adit...@umich.edu wrote: On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote: Seems finally solved (sigh). I cleaned out all files loading typescripts on the fly. - typescript macros ending in ] at the end of a line have now ]% at the end of the line - empty lines have been removed for clarity - all files now have \endinput at the end. The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. wants to incorporate them in the next beta. I haven't followed this thread in detail, but an alternative is to redefine \starttypescript etc. to use a different catcode regime so that new lines and spaces are ignores (similar to \starttexdefinition, etc) Would be nice. But doing this is left to other people than me, I feel not qualified to tinker with that code. You would like to challenge Hans Hagen? Hans van der Meer ___ 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] extra line after switchtobodyfont
There is more to it then a preference for \crlf, typescript loading introduces a lot of spurious white, that not always can be made to disappear. I tracked it down to a macro in type-ini.mkvi: \def\font_typescript_process_typescript_file_and_store {*\expandafter\let\expandafter\t_font_typescripts\csname\??typescriptfiles\currenttypefile\endcsname A\ifx\t_font_typescripts\relax B\font_typescript_process_typescript_store_indeed C\fi D\the\t_font_typescripts} The ABCD*'s were added to see what happens. See the screen shot from one of my tests (br/ results in \crlf but does not sit between text and fontswitch \switchtobodyfont). My guess is that the token register \t_font_typescripts is the source of the spaces, but I am not further than that. I have already mailed Hans Hagen about these findings. [cid:AE3D66B6-9CD5-4377-B68D-AED490D0487E@fritz.box] Hans van der Meer On 2 May 2013, at 11:17 PM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 02.05.2013 um 12:40 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: A call to \switchtobodyfont introduces extra vertical spacing as can be seen in the example. Is this intentional or is it something like a % missing somewhere in a macro? Hans van der Meer Sorry, flew accidentally to early away. Here the attached output. \setuppapersize[A6][A6] \setupbodyfont[lucidaot] \starttext First line.\crlf \start \switchtobodyfont[euler] Font switch here.\crlf \stop Last line. \hairline First line.\crlf \start Font switch here.\crlf \stop Last line. \stoptext Is there a reason why you use \crlf to end the lines? When you would end the paragraph after each line the additional line wouldn't appear. inline: fontswitch.jpg___ 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] extra line after switchtobodyfont
I did some more experiments. In the macro below delete ABC and replace D by ! then the output of the test will match. example1 is made with the type-imp-euler.mkiv as given below. I removed every space in it, ended every ] with a % and commented [texgyre] out. In the log can be seen that --as far as I am aware-- just that euler file is loaded and processed. For further testing I added a blank line before the starttypescript[euler]% line and the example2 results. There is indeed an effect from the intervening newline. Also removed space from type-imp-latinmodern.mkiv and type-imp-lmnames.mkiv. But I still cannot explain where the remaining spaces do come from. There are a few places in type-ini.mkvi with space after an } in a macro, but I have patched these in my system. Any idea how further? More from \loadfontgoodies[lm]? To what file does that resolve? I am willing to clean up the existing typescript files and sending them where they can be incorporated. But if that is not al… Hans van der Meer Minimal Tex code: \setuppapersize[A5][A5] %\usetypescriptfile[euler]\usetypescript[euler] \tracetypescriptstrue \setupbodyfont[lmodern,10pt] \starttext Before\writestatus{}{}\switchtobodyfont[euler,10pt]\writestatus{}{}Fontswitch\stoptext Sample from type-imp-euler.mkiv %\loadtypescriptfile[texgyre]% \starttypescriptcollection[pagella-euler]% \starttypescript[\s!math][euler]% \definefontsynonym[EulerMath][\s!file:euler.otf]% \stoptypescript \starttypescript[\s!math][euler][\s!name]% Relevant part of the log: fontsrequest: [euler] [] [] fontsauto load typescript file 1: [euler] fontsrequest: [euler] [] [] (/Users/hansm/TeX/texmf/tex/context/base/type-imp-euler.mkiv) fontsmatch: [euler] fontsdefine: [euler] [rm] [serif] [euler] fontsrequest: [serif] [euler] [name] fontsmatch: [serif] [euler] [name] fontsrequest: [serif] [default] [size] fontsmatch: [serif] [default] [size] fontsdefine: [euler] [tt] [mono] [modern] fontsrequest: [mono] [modern] [name] fontsmatch: [mono] [modern,latin-modern-designsize,latin-modern] [name] fontsmatch: [mono] [modern,latin-modern,modern-variable,latin-modern-variable,modern-condensed,latin-modern-condensed] fontsrequest: [mono] [default] [size] fontsmatch: [mono] [default] [size] fontsdefine: [euler] [mm] [math] [euler] fontsrequest: [math] [euler] [name] fontsmatch: [math] [euler] fontsmatch: [math] [euler] [name] fontsrequest: [math] [default] [size] fontsmatch: [math] [default] [size] [cid:70BCE0AE-8EE4-4E82-B545-913CB0DE816F@fritz.box] [cid:58DBF4D7-539A-4FE8-A799-2BEAED31F7DE@fritz.box] On 3 May 2013, at 9:43 AM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 03.05.2013 um 09:34 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: There is more to it then a preference for \crlf, typescript loading introduces a lot of spurious white, that not always can be made to disappear. I tracked it down to a macro in type-ini.mkvi: \def\font_typescript_process_typescript_file_and_store {*\expandafter\let\expandafter\t_font_typescripts\csname\??typescriptfiles\currenttypefile\endcsname A\ifx\t_font_typescripts\relax B\font_typescript_process_typescript_store_indeed C\fi D\the\t_font_typescripts} The ABCD*'s were added to see what happens. See the screen shot from one of my tests (br/ results in \crlf but does not sit between text and fontswitch \switchtobodyfont). My guess is that the token register \t_font_typescripts is the source of the spaces, but I am not further than that. I have already mailed Hans Hagen about these findings. The spaces in the output come from the line ending after the \definefontsynonym entry in the typescript and extra line in your other example from the empty lines between the typescript blocks and not from the macro above. \starttext A\crlf B\crlf \stoptext Wolfgang inline: example1.jpginline: example2.jpg___ 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] extra line after switchtobodyfont
On 3 May 2013, at 12:28 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Do you mean the missing % after \doifsomething etc.? These lines don’t need a % because TeX gobbles the spaces between the arguments. I wasn't aware of that, but will remember. Any idea how further? More from \loadfontgoodies[lm]? To what file does that resolve? The commands loads lm.lfg The somewhat simpleminded idea of adding \ignorespaces at the end of the \definetypeface macro and friends, will not work I am afraid. Is there a possibilty to remove all whitespace from the tokens in \t_font_typescripts or prevent them from entering? Perhaps in the lua end? Or is it possible to assign to all whitespace characters (space, tab, newline) a category code 9 when reading/processing the typescript definitions? Hans van der Meer ___ 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] extra line after switchtobodyfont
This might be interesting. The example I gave before was now typeset with type-imp-euler.mkiv cannibalized to \endinput in the very first line. Then there are no spurious spaces and 5 executions of the recursive loop from \t_font_typescripts. Thus, even though in type-imp-euler.mkiv all empty lines were removed, all intermediate spaces removed, all macros ended in ]% en texgyre not loaded, there is still spurious space. From the log I see that there are requests for [mono][modern] etc. In order to locate these I have reduced the euler file to one define: \starttypescript[euler]% \definetypeface[euler][\s!mm][\s!math][euler][\s!default]% \quittypescriptscanning \stoptypescript Now I get one or possibly two spurious spaces. But I cannot easily find which typescript file is involved. Do you know this? Exerpt from the log: fontsrequest: [euler] [] [] fontsauto load typescript file 1: [euler] fontsrequest: [euler] [] [] (/Users/hansm/TeX/texmf/tex/context/base/type-imp-euler.mkiv) fontsmatch: [euler] fontsdefine: [euler] [mm] [math] [euler] fontsrequest: [math] [euler] [name] fontsauto load typescript file 2: [euler] fontsrequest: [math] [euler] [name] fontsrequest: [math] [default] [size] fontsmatch: [math] [default] [size] fontsdefining font with asked name 'unknown' is not found using lookup 'file' fontsdefining unknown font 'unknown', loading aborted fontsdefining unable to define 'unknown' as 'euler-10pt-mm-mb--3' fontsdefining font with asked name 'unknown' is not found using lookup 'file' fontsdefining unknown font 'unknown', loading aborted fontsdefining unable to define 'unknown' as 'euler-10pt-mm-mb--2' fontsdefining font with asked name 'unknown' is not found using lookup 'file' fontsdefining unknown font 'unknown', loading aborted fontsdefining unable to define 'unknown' as 'euler-10pt-mm-mb--1' By the way. Is it correct that alone \definetypeface, \definefontsynonym, \starttypescriptcollection must be closed by ]% while for example \starttypescript[] seems to do no harm? Hans van der Meer On 3 May 2013, at 1:06 PM, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: On 3 May 2013, at 12:28 PM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Do you mean the missing % after \doifsomething etc.? These lines don’t need a % because TeX gobbles the spaces between the arguments. I wasn't aware of that, but will remember. Any idea how further? More from \loadfontgoodies[lm]? To what file does that resolve? The commands loads lm.lfg The somewhat simpleminded idea of adding \ignorespaces at the end of the \definetypeface macro and friends, will not work I am afraid. Is there a possibilty to remove all whitespace from the tokens in \t_font_typescripts or prevent them from entering? Perhaps in the lua end? Or is it possible to assign to all whitespace characters (space, tab, newline) a category code 9 when reading/processing the typescript definitions? Hans van der Meer ___ 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] extra line after switchtobodyfont
Seems finally solved (sigh). I cleaned out all files loading typescripts on the fly. - typescript macros ending in ] at the end of a line have now ]% at the end of the line - empty lines have been removed for clarity - all files now have \endinput at the end. The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. wants to incorporate them in the next beta. Hans van der Meer On 3 May 2013, at 9:43 AM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The spaces in the output come from the line ending after the \definefontsynonym entry in the typescript and extra line in your other example from the empty lines between the typescript blocks and not from the macro above. ___ 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] font weirdness
In desperation I finally tried mtxrun --script fonts --reload --force (May The Force be with you, for the scifi fans) That helped. It looks like the font database got corrupted, but I cannot guess why. Because I do not know whatI did to create the havoc, I cannot recreate the problem (nor do I want to, I may add). Hans van der Meer On 1 May 2013, at 10:25 PM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 01.05.2013 um 20:08 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: From one moment to the next typesetting in Cambria suddenly gets sour: ! Math error: parameter \Umathquad\displaystyle is not set. Doing mtxrun --script fonts --reload did not help. Any idea what can have cause the trouble? The fact that I have used \showfont a few times, perhaps? I have no problems with Cambria. I am completely in the dark. Do you have a minimal example which demonstrates the problem. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] extra line after switchtobodyfont
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in the example. Is this intentional or is it something like a % missing somewhere in a macro? Hans van der Meer \setuppapersize[A6][A6] \setupbodyfont[lucidaot] \starttext First line.\crlf \start \switchtobodyfont[euler] Font switch here.\crlf \stop Last line. \hairline First line.\crlf \start Font switch here.\crlf \stop Last line. \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] extra line after switchtobodyfont
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in the example. Is this intentional or is it something like a % missing somewhere in a macro? Hans van der Meer Sorry, flew accidentally to early away. Here the attached output. \setuppapersize[A6][A6] \setupbodyfont[lucidaot] \starttext First line.\crlf \start \switchtobodyfont[euler] Font switch here.\crlf \stop Last line. \hairline First line.\crlf \start Font switch here.\crlf \stop Last line. \stoptext fontswitch.pdf Description: fontswitch.pdf ___ 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] extra line after switchtobodyfont
I see. But that means I have to load various typescript files beforehand and then switch at a later moment. It is possible of course, but unexpected and a pain in the ass - if I may say so. Could it be solved once and for all by going through the typescript files? If I can find time for it, I will look into the matter too. Hans van der Meer On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com wrote: On 2013–05–02 Meer, H. van der wrote: A call to \switchtobodyfont introduces extra vertical spacing as can be seen in the example. Is this intentional or is it something like a % missing somewhere in a macro? Loading the typescript in the setup area should get rid of the space. See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html ___ 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] extra line after switchtobodyfont
Indeed, adding \usetypescriptfile[euler]\usetypescript[euler] before \starttext makes the extra vertical spacing go away in a simple test file. But that doesn't solve my problem, because I am typesetting xml data wherein a font change can be dictated from the inside. See the example code (supporting modules not included): \startbuffer[font] ?xml version=1.0 encoding=UTF-8? root First line.br/ fontswitch family=euler Font switch here. /fontswitchbr/ Last line. /root \stopbuffer \xmlprocessbuffer{root}{font}{} There is no way to have the typescript loaded before the \starttext, because it is not known what fonts will be called up by the xml. And loading it from within the data processed is too late. I therefore conclude that this typescript problem should be fundamentally solved, instead of resorting to a subterfuge as loading things beforehand to avoid - what seems to me - coding mistakes. Hans van der Meer On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com wrote: On 2013–05–02 Meer, H. van der wrote: A call to \switchtobodyfont introduces extra vertical spacing as can be seen in the example. Is this intentional or is it something like a % missing somewhere in a macro? Loading the typescript in the setup area should get rid of the space. See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html Marco ___ 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] log reporting?
How do I enable the output of for example: report_typescripts(unknown library %a or %a,name_one,name_two) defined by local report_typescripts = logs.reporter(fonts,typescripts) Hans van der Meer ___ 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] square in Cambria font
Thanks, this indeed produces a square more akin to boxtimes in Cambria. But the situation seems even worse than I thought. Under the 40pt fontsize it is apparent that lucidaot's square has a thinner outline then boxtimes. Of the three fonts I tried (cambria, lmodern, lucidaot) it seems lmodern is the only one doing it right. Hans van der Meer On 1 May 2013, at 12:17 AM, Sietse Brouwer sbbrou...@gmail.com wrote: Hello Hans, The bad news: I think it's the font. The good news: here comes MetaPost to the rescue! I don't have Cambria, so I plucked a cambria.ttf file off the Internet somewhere, which contains both Cambria and Cambria Math. I don't know whether you have the same file/version, so YMMV, but it does exhibit the problem you describe. According to the lovely and free FontForge, * the WHITE SQUARE glyph (U+25A1) is 1060 units high * the SQUARED PLUS glyph (U+229E) is 1630 units high (of which 230 below the baseline). This is in Cambria Math — Cambria does does not have either of these glyphs. I suspect the square size is a design decision: that the designers decided they wanted the white square to match the letters rather than the 'squared *' operators. Anyway, here's a very close MetaPost approximation of the 'squared plus' square, made by looking in with FontForge and copying the glyph dimensions. (And then tweaking them because some things still didn't look right; didn't manage to fix everything, alas.) It scales with the font size. Cheers, Sietse \setuppapersize[A7][A7] \setuppagenumber[state=stop] \setupbodyfont[cambria,40pt] \showframe \showgrid \startuseMPgraphic{square} numeric u, strokewd, strokeht, sqwd, sqht; u:= BodyFontSize / 2083; strokewd := 128u; strokeht := 123u; sqwd := 1506u; sqht := 1533u; offset := 200u; pickup pensquare xscaled strokewd yscaled strokeht; draw unitsquare xscaled sqwd yscaled sqht; setbounds currentpicture to boundingbox currentpicture leftenlarged offset rightenlarged offset; \stopuseMPgraphic \def\mysquare{% \lower \dimexpr \bodyfontsize / 2083 * 234 \relax\hbox{\useMPgraphic{square}}% } try it out \starttext $\square+\mysquare\boxplus$ \crlf $\mysquare\boxplus$ \page[yes] $+ \ruledhbox{\boxplus}$ \crlf $+ \ruledhbox{\mysquare}$ \crlf $\ruledhbox{\boxplus}$ \crlf $\ruledhbox{\mysquare}$ \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] parameters in startuseMPgraphic
I used to pass (color) parameters to \startuseMPgraphic with: \startuseMPgraphic{square}{acolor} draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{acolor} In both cases I get the following error: metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun' as '/Users/hansm/TeX/context-09/tex/texmf-context/metapost/context/base/metafun.mpiv' using method 'default' metapost initializing number mode 'scaled' checkmissing or ungrouped '=' after 'green' in line '7 (442square:)' Has something changed in this mechanism of parameter use, or am I doing something wrong? Hans van der Meer ___ 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] \showmathfontcharacters ?
Why do I get an error on \starttext \showmathfontcharacters \stoptext When that macro is defined in s-mat-10.mkiv as \unexpanded\def\showmathfontcharacters {\dodoubleempty\doshowmathfontcharacters} ConTeXt ver: 2013.04.16 12:08 MKIV beta fmt: 2013.4.19 int: english/english ! Undefined control sequence. 9 \showmathfontcharacters Hans van der Meer ___ 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] font arial?
Can someone tell me why \showfont[arial] does embed arial characters in the pdf, but \setupbodyfont[arial] has lmodern only? Hans van der Meer ___ 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] font weirdness
From one moment to the next typesetting in Cambria suddenly gets sour: ! Math error: parameter \Umathquad\displaystyle is not set. Doing mtxrun --script fonts --reload did not help. Any idea what can have cause the trouble? The fact that I have used \showfont a few times, perhaps? I am completely in the dark. Hans van der Meer ___ 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] opentype font catalogue?
Is there a script/command to generate a catalogue of all glyphs in an opentype font? Hans van der Meer ___ 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] xml path
Having for example xml-structure: rootnode node1subnode1../subnode1/node1 node2/ /node3/ /rootnode With the path expression \xmlall{#1}{!node1} the node1 should be suppressed, as happens in case. However, nodes under node1 like subnode1 should be suppressed because node1 is suppressed. But that is not the case, these nodes do appear. Apparently I need another path expression. But which one? Hans van der Meer ___ 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] csname not applicable?
Why doesn't it seem possible to have the following macro \def\docall#1{\csname xmlprocess#1\encsname{}{}} and use it with \docall{buffer}? How then accomplish this? Runaway argument? \def \sourcenode {exam::15}\edef \currentsource {\xmlattdef {exam::15\ETC. ! File ended while scanning use of \buff_gobble. ... \luat_start_lua_code_indeed ...nd \directlua {#1}} Hans van der Meer ___ 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] select setups
If I have various setups like: \startxmlsetups xam:setups \xmlsetsetup{\xmldocument}{..{xam:*} \stopxmlsetups \xmlregistersetup{xam:setups} \startxmlsetups xbm:setups \xmlsetsetup{\xmldocument}{..{xbm:*} \stopxmlsetups \xmlregistersetup{xbm:setups} Is it then possible to have \xmlall{#1}{lpath} with a path such that on the top level restrictions apply to some of the xam:setups but to none of the xbm:setups? Hans van der Meer ___ 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] halign broken
There seems something very much amiss with \halign in later ConTeXt versions. This typesets fine in PlainTeX and is an example taken from a textbook. \tabskip=1em\halign{% \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr} Also in contextversion 2012.05.30 (from a TeXlive distribution). But it fails at least in ConTeXt ver: 2013.03.20 10:34 MKIV and in ConTeXt ver: 2013.04.16 12:08 MKIV beta with the following error ! Only one # is allowed per tab. system tex error on line 5 in file fixedwidth.tex: Only one # is allowed per tab ... 1 \starttext 2 contextversion=\contextversion\par 3 \tabskip=1em 4 \halign{% 5 \hfil\it#\hfil\hfil#\hfil#\hfil#\cr 6 ABCD\cr} 7 \stoptext l.5 \hfil\it#\hfil\hfil# \hfil#\hfil#\cr Why? How primitive it may be, I would like to use \halign now and then. Hans van der Meer ___ 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] halign broken
I see, it is either the nuisance of having to type \ etc. in the text, or the nuisance of having to wrap everything like \halign in \unprotect..\protect and then resorting to \ again. At least there is nothing amiss with \halign itself, which is reassuring. However, I do not feel secure with these little deviations from the orginal TeX. Hans van der Meer On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 18.04.2013 um 14:55 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: There seems something very much amiss with \halign in later ConTeXt versions. This typesets fine in PlainTeX and is an example taken from a textbook. \tabskip=1em\halign{% \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr} Also in contextversion 2012.05.30 (from a TeXlive distribution). But it fails at least in ConTeXt ver: 2013.03.20 10:34 MKIV and in ConTeXt ver: 2013.04.16 12:08 MKIV beta with the following error ! Only one # is allowed per tab. system tex error on line 5 in file fixedwidth.tex: Only one # is allowed per tab ... 1 \starttext 2 contextversion=\contextversion\par 3 \tabskip=1em 4 \halign{% 5 \hfil\it#\hfil\hfil#\hfil#\hfil#\cr 6 ABCD\cr} 7 \stoptext l.5 \hfil\it#\hfil\hfil# \hfil#\hfil#\cr Why? How primitive it may be, I would like to use \halign now and then. The error message is misleading because the problem is and not #. One of the changes for MkIV was to make _, ^ and normal characters in the document (the first two still works for math). For code writing this doesn’t matter because has it’s normal meaning when you use \unprotect … \protect but it can’t be used in the document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] halign broken
There seems to be more to it: This works: \unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}\protect But these generate a missing } after the \halign: \unprotect\framed{\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}}\protect \framed{\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}\protect} Is such a construction (now) impossible? Hans van der Meer On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote: Am 18.04.2013 um 14:55 schrieb Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl: There seems something very much amiss with \halign in later ConTeXt versions. This typesets fine in PlainTeX and is an example taken from a textbook. \tabskip=1em\halign{% \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr} Also in contextversion 2012.05.30 (from a TeXlive distribution). But it fails at least in ConTeXt ver: 2013.03.20 10:34 MKIV and in ConTeXt ver: 2013.04.16 12:08 MKIV beta with the following error ! Only one # is allowed per tab. system tex error on line 5 in file fixedwidth.tex: Only one # is allowed per tab ... 1 \starttext 2 contextversion=\contextversion\par 3 \tabskip=1em 4 \halign{% 5 \hfil\it#\hfil\hfil#\hfil#\hfil#\cr 6 ABCD\cr} 7 \stoptext l.5 \hfil\it#\hfil\hfil# \hfil#\hfil#\cr Why? How primitive it may be, I would like to use \halign now and then. The error message is misleading because the problem is and not #. One of the changes for MkIV was to make _, ^ and normal characters in the document (the first two still works for math). For code writing this doesn’t matter because has it’s normal meaning when you use \unprotect … \protect but it can’t be used in the document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] halign broken
Why does the [align=middle] makess such a difference? Hans van der Meer On 18 Apr 2013, at 3:34 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 18.04.2013 um 15:26 schrieb Meer, H. van der h.vanderm...@uva.nl: There seems to be more to it: This works: \unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}\protect But these generate a missing } after the \halign: \unprotect\framed{\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}}\protect \framed{\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr ABCD\cr ABB\cr}\protect} Is such a construction (now) impossible? \framed[align=normal,strut=no]{…} 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 ___
[NTG-context] bodyfont size in margin?
I would like to have the same font and especially the same size for inmargin texts. Why is the following program not honouring the size setting? % Font in margin text \def\MarkMaster{\inmargin[location=left]{{\switchtobodyfont[sans,8pt]\red MASTER SECTION}}} \starttext \startchapter[title=\MarkMaster test title] \input tufte \MarkMaster \input tufte \blank contextversion=\contextversion \stopchapter \stoptext Hans van der Meer marginfont.pdf Description: marginfont.pdf ___ 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] footnoterule
Is there a reason why the first does switches off the rule above the footnote \setupfootnotes[rule=off] but this doesn't? \setupnotation[footnote][rule=off]] Just try with \setupnotation[footnote][rule=off] % either this or the next one %\setupfootnotes[rule=off] \starttext Some footnote\footnote{The foonote}.\crlf \stoptext Hans van der Meer ___ 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] endnotemarkers
With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] Hans van der Meer ___ 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] footnoterule
I find this setup stuff bewildering. My last posting is concerning the typesetting of the endnote numbering in both the text and the list at the en dof the chapter. In the Reference Manual both textcommand and numbercommand are treated in the same setup macro: \setupfootnotes on page 94. But (with the help of your reply) I find now there are different macros needed to set them up: Needed for the text = \setupnotes[endnote][textcommand=\hifnmarker] Needed for the list = \setupnotation[endnote][numbercommand=\fnmarker] \def\fnmarker#1{[#1]}\def\hifnmarker#1{\high{[#1]}} Wolfgang Schuster just comes up with a similar solution: \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] Allthough the difference between \setupnote and \setupnotes alludes me. The \setupnotes does not handle the numbercommand, the \setupnotation does not handle the textcommand. I find this split in behaviour difficult to understand. May I plead for a unification here? Hans van der Meer On 17 Apr 2013, at 8:14 PM, Marco Patzer home...@lavabit.commailto:home...@lavabit.com wrote: On 2013–04–17 Meer, H. van der wrote: Is there a reason why the first does switches off the rule above the footnote \setupfootnotes[rule=off] but this doesn't? \setupnotation[footnote][rule=off]] It's \setupnotes, not \setupnotation that controls the rule. \setupnotes [footnote] [rule=off] \starttext Some footnote\footnote{The foonote}.\crlf \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] typesetting TOC
It took me quite a while to find the solution for this problem. By posting it here, I hope this will be useful to others. \completecontent set the list composed of the chapters with a previous call to: \setupcombinedlist[content][list=chapter] and the list of chapters and included sections with: \setupcombinedlist[list={chapter,section}] etcetera. Hans van der Meer On 16 Apr 2013, at 10:17 PM, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: I am very sorry, but I still cannot understand how to get the TOC as I would like it. The following does typeset the Content header but is empty otherwise. \startfrontmatter \completelist[content][criterium=chapter] \stopfrontmatter I tried various possibilities from the reference manual, like \placelist[section][criterium=chapter]. But either this doesn't work (anymore?) or I am doing something very stupid. But these call do nothing. It seems so simple: use the \complete.. mechanism (because this wraps the TOC nicely) to typeset a selection from the TOC using the criterium-mechanism. Which seems to me just made for this sort of action. But nothing comes out of it. Hans van der Meer ___ 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] endnotemarkers
A minor point perhaps on this textcommand= \groupedcommand for the marking of the notes in the text. I tried this but now the marking is not typeset as a superscript. Hans van der Meer On 17 Apr 2013, at 9:28 PM, Hans Hagen pra...@wxs.nl wrote: On 4/17/2013 8:27 PM, Wolfgang Schuster wrote: Am 17.04.2013 um 20:23 schrieb Meer, H. van der h.vanderm...@uva.nl: With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] neat Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : 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] header variations how?
I tried to put the sectionnumbers in the margin, but it didn't work. The I looked at the example in the ConTeXt Reference Manual and this didn't work either. Why? See the minimal example below where the manual is contrasted with the actual output. Hans van der Meer \setuppapersize[A5][A5] \starttext \startchapter[title=Test] From ConTeXt Reference Manual 18 october 2012 page 210\crlf \externalfigure[headers.jpg][width=0.8\textwidth] \startsection[title=enclosing section] \setupheads[alternative=normal] \subsection{Title alternative equals normal} \setupheads[alternative=inmargin] \subsection{Title alternative equals inmargin} \setupheads[alternative=middle] \subsubject{Title alternative equals middle} \stopsection ConTeXt ver: 2013.03.20 10:34 MKIV fmt: 2013.3.20 \stopchapter \stoptext headers.pdf Description: headers.pdf ___ 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] header variations how?
I tried similar examples from the manual and these fail even more badly: \chapter{Influences \nomarking{in the 20th century:} an introduction} \chapter{Influences in the 20th century\nolist{: an introduction}} The macros on page 204 give \nomarking and \nolist as undefined macros! Both in \chapter{} as in \startchapter[title={}] form. What can be hapening here? Hans van der Meer On 16 Apr 2013, at 10:08 AM, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: I tried to put the sectionnumbers in the margin, but it didn't work. The I looked at the example in the ConTeXt Reference Manual and this didn't work either. Why? See the minimal example below where the manual is contrasted with the actual output. Hans van der Meer \setuppapersize[A5][A5] \starttext \startchapter[title=Test] From ConTeXt Reference Manual 18 october 2012 page 210\crlf \externalfigure[headers.jpg][width=0.8\textwidth] \startsection[title=enclosing section] \setupheads[alternative=normal] \subsection{Title alternative equals normal} \setupheads[alternative=inmargin] \subsection{Title alternative equals inmargin} \setupheads[alternative=middle] \subsubject{Title alternative equals middle} \stopsection ConTeXt ver: 2013.03.20 10:34 MKIV fmt: 2013.3.20 \stopchapter \stoptext headers.pdf___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] select TOC elements
With \placecontents I am able to put the TOC for a chapter right after the chapter heading. So far so good. But now I would like to suppress in the overall TOC all elements below the chapters. How to? At the moment I am using \completecontent for calling up the TOC. I looked in the ConTeXtGarden but the explanation for \completecontent didn't make me any wiser.For example, I do not understand the meaning of the three successive []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help me out. Hans van der Meer ___ 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] where is completecontent defined?
I tried to find the definition of \completecontent in the source, but searching for it doesn't turn up its occurence. Where do I have to look? Hans van der Meer ___ 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] tekst before \starttext?
I thought that typesetting should start after \startext and that anything before it should be ignored. That is indeed the case with the following input: ABC \starttext CONTENT \stoptext But add a \setupbodyfont and suddenly the ABC appears: \setupbodyfont[lmodern] ABC \starttext CONTENT \stoptext Is this correct behaviour? It is a nuisance because this phenomenon causes a spurious blank page appears in my book. It might be a recently introduced because I did not experience this in the past. ConTeXt ver: 2013.04.16 12:08 MKIV beta fmt: 2013.4.16 Hans van der Meer ___ 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] where is completecontent defined?
Your statement doesn't seem true. In neither of the files you mentioned is there a string 'completecontent' to be found. Always assuming I can trust my BBEdit search, of course. In fact 'completecontent' occurs in one place only, as %\completecontent in strc-pag.mkiv, that is all. I excluded mkii files in order not to mix things up between mkii and mkiv. Hans van der Meer On 16 Apr 2013, at 5:57 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 16.04.2013 um 17:51 schrieb Meer, H. van der h.vanderm...@uva.nl: I tried to find the definition of \completecontent in the source, but searching for it doesn't turn up its occurence. Where do I have to look? The \completecontent command is created with \definecombinedlist[content]. The definition for \definecombinedlist is in strc-lst.mkvi but \completecontent is defined in strc-def.mkiv 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 ___
[NTG-context] typesetting TOC
I am very sorry, but I still cannot understand how to get the TOC as I would like it. The following does typeset the Content header but is empty otherwise. \startfrontmatter \completelist[content][criterium=chapter] \stopfrontmatter I tried various possibilities from the reference manual, like \placelist[section][criterium=chapter]. But either this doesn't work (anymore?) or I am doing something very stupid. But these call do nothing. It seems so simple: use the \complete.. mechanism (because this wraps the TOC nicely) to typeset a selection from the TOC using the criterium-mechanism. Which seems to me just made for this sort of action. But nothing comes out of it. Hans van der Meer ___ 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] flushfootnotes
The contextgarden mentions a command flushfootnotes, however \starttext \flushfootnotes \stoptext results in an error: ! Undefined control sequence. log system tex error on line 2 in file sectioning.tex: Undefined control sequence ... l.2 \flushfootnotes ConTeXt ver: 2013.03.20 10:34 MKIV fmt: 2013.3.20 int: english/english Hans van der Meer ___ 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] endnotes not placed
The contextgarden tells me under Command/placefootnotesPlace unplaced footnotes. Has no visible effect if location=page, but can be used to place footnotes (or endnotes) made when location=text was in effect.However nothing happens for an \endnote, but it works for a \footnote. See minimal example.Minimal example:\setupfootnotes[location=text]\starttextabc\endnote{an endnote}\placefootnotes\stoptext Hans van der Meer ConTeXt ver: 2013.03.20 10:34 MKIV fmt: 2013.3.20 int: english/english sectioning.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] endnotes not placed
Thanks. I checked again in the contextgarden, fearing I might have overlooked the obvious, but \placenotes is not among the commands described. Hans van der Meer On 11 apr. 2013, at 22:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 11.04.2013 um 14:51 schrieb Meer H. van der h.vanderm...@uva.nl: The contextgarden tells me under Command/placefootnotes Place unplaced footnotes. Has no visible effect if location=page, but can be used to place footnotes (or endnotes) made when location=text was in effect. However nothing happens for an \endnote, but it works for a \footnote. See minimal example. Use \placenotes[endnote] to flush your endnotes, \placefootnotes is only a abbreviation for \placenotes[footnote]. 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] manual
The latest downloaded ConTeXt manual to be found on my system is: ConTeXt reference manual Hans Hagen, Taco Hoekwater June 1,2011 Is there a more recent one? I searched the Pragma site, expecting to find it there. Did I look in the wrong place? Hans van der Meer ___ 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] widowpenalty
Is the \widowpenalty for avoiding short single lines at the top of the page functional in ConTeXt? Or is there another setup to be done? I find a situation where \widowpenalty=1 doesn't make a difference. But it is not easily decided if the TeX-engine could have done nothing in this special case or if the parameter is not functional. Hans van der Meer ___ 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 ___