Re: [NTG-context] Missing break/ while exporting to xml before highlight
On 7-11-2011 08:53, Marco wrote: Hans Hagenpra...@wxs.nl writes: On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext %%% stop example It has to do with the way grouping interferes with the start of a paragraph \dontleavehmode \emph ... I'll make highlights horizontal by default It works, thanks a bunch. The previous missingbreak/ seems to be fixed wrapping the paragraph with \startparagraph \stopparagraph. I assume this is the right thing to do for a proper export, isn't it? Indeed. On and off I'm trying to make the automatic recognition more clever but too much guessing is bad too. Btw, is there a way to run context just for the xml output (as I'm doing conditional runs, and I discard the pdf which comes with the xml as a side effect). context --help doesn't seem to have an option for that. Well, not so important, just asking. Currently not. It would also complicate matters as we need to flush some information in the pdf backend that is needed in following passes. 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 ___
Re: [NTG-context] Table bug in MkIV?
On 7-11-2011 03:17, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, It seems that \starttable has a bug in MkIV: \starttext \starttable{|c|c|c|} [ ] \HL \VL Test \VL Test \VL Test \VL\FR \stoptable \stoptext - 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 ___
Re: [NTG-context] highlight problems on xml export (Was: Missing break/ while exporting to xml before highlight)
I think I'm hitting another bug with highlights: See this following example: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \startparagraph Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \stoptext %%% stop example Output: ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : prova -- !-- processing date : Mon Nov 7 09:32:00 2011 -- !-- context version : 2011.11.04 14:15 -- !-- exporter version : 0.30 -- document language=en file=prova date=Mon Nov 7 09:32:00 2011 context=2011.11.04 14:15 version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML; paragraphPublished on highlight detail=emphDissonanze/highlight vol. I/paragraph paragraphPublished on vol. I Published on vol. I Published on vol. I Published on highlight detail=emphDissonanze/highlightvol. I/paragraph /document As you can see, in the first case the space after Dissonanze is preserved, while in the second paragraph the space is eaten and there's no way to add it. The only thing that changes is the lenght of the paragraph. (Oh, and thanks for the previous reply). Best wishes -- 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] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: Am 29.10.2011 um 23:57 schrieb Andreas Harder: On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Zoom image in presentation
Hello all, I'd like to be able to zoom an image during a presentation. My thinking is that it might be possible by turning layers on and off interactively. I see in this message: http://archive.contextgarden.net/message/20110426.183109.fc46c5a5.en.html that Hans said (enigmatically :-)) And then there are viewerlayers (acrobat) that you can turn on and off with \goto{On}[VideLayer{mylayer}] but that's a different topic. Any hints on how I could do this? I'm using the latest standalone, installed yesterday. Thanks, Roger ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] xtreme tables repeating header
Hello Hans, quick hack: \placefigure[split,fixed,none]{}{...} currently only the the float related splitter will check the available space, so in your case you have a regular flush with skips between the rows and a header/footer only Works fine, thanks! Patrick ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 12:03, Wolfgang Schuster wrote: Am 07.11.2011 um 11:53 schrieb Andreas Harder: On 30.10.2011, at 09:45, Wolfgang Schuster wrote: Am 29.10.2011 um 23:57 schrieb Andreas Harder: On 29.10.2011, at 23:47, Paul Menzel wrote: Dear ConTeXt folks, I am sorry for another reference related question. Using ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mp-chem.mpiv bug
There is a (new) problem typesetting text in chemical structures. Alan Minimal example: \starttext \startchemical \chemical [ONE,Z0] [O] \stopchemical \stoptext ! terminal: (/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv) labtype-10 ! Unknown relation will be considered false. to be read again ) chem_text-...XPR3));p:=p.if(labtype(SUFFIX2)=10) :shifted(0,ypart.center.p)... chem_z_zero-...(SUFFIX2)((TEXT3),chem_do(origin)) ;endgroup * chem_z_zero(\dochemicaltext{O}) ; . system tex error on line 4 in file foo.tex: terminal: (/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv) labtype-10 ! Unknown relation will be considered false. to be read again ) chem_text-...XPR3));p:=p.if(labtype(SUFFIX2)=10) :shifted(0,ypart.center.p)... chem_z_zero-...(SUFFIX2)((TEXT3),chem_do(origin)) ;endgroup * chem_z_zero(\dochemicaltext{O}) ; ... 1 \starttext 2 \startchemical 3 \chemical [ONE,Z0] [O] 4 \stopchemical 5 \stoptext 6 \stopchemical ...erence \ctxlua {chemicals.stop()} \egroup \chemicalwidth \wd... l.4 \stopchemical ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
Am 07.11.2011 um 12:45 schrieb Andreas Harder: When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Instead of patching strc-mat.mkiv you can create a file with the name cont-loc.mkiv in your working directory where you add both modified commands. With this method you don’t have to make the changes in the core and when it’s fixed just delete this file. 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] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 13:02, Wolfgang Schuster wrote: Am 07.11.2011 um 12:45 schrieb Andreas Harder: When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Instead of patching strc-mat.mkiv you can create a file with the name cont-loc.mkiv in your working directory where you add both modified commands. With this method you don’t have to make the changes in the core and when it’s fixed just delete this file. This is a really useful tip! Thanks again. Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Export \thinspace
Hi Hans! If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends on the line break. \definefontfeature[default][default][expansion=quality] \setupalign[hz] \setupbackend[export=yes,css=yes,xhtml=yes] \starttext \startbuffer narrow\,nonbreaking\,space \stopbuffer \getbuffer \par \dorecurse{10}{\getbuffer} \stoptext exports to: narrownonbreakingspace break/ narrow nonbreaking … Would it be possible to export \, to #x202F;? Regards Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table bug in MkIV?
On Mon, 07 Nov 2011 00:09:00 -0700, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.11.2011 um 03:17 schrieb Idris Samawi Hamid ادريس سماوي حامد: It seems that \starttable has a bug in MkIV: \starttext \starttable{|c|c|c|} Use bracket for the argument and not braces: “[|c|c|c|]”. On Mon, 07 Nov 2011 01:14:39 -0700, Hans Hagen pra...@wxs.nl wrote: \starttext \starttable{|c|c|c|} [ ] Ok, thanks guys. One question though: Why does the error give me an undefined control sequence? This sent me down dead ends as I tried to figure out what was wrong in the main project... Thnx again and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table bug in MkIV?
Am 07.11.2011 um 14:24 schrieb Idris Samawi Hamid ادريس سماوي حامد: On Mon, 07 Nov 2011 00:09:00 -0700, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.11.2011 um 03:17 schrieb Idris Samawi Hamid ادريس سماوي حامد: It seems that \starttable has a bug in MkIV: \starttext \starttable{|c|c|c|} Use bracket for the argument and not braces: “[|c|c|c|]”. On Mon, 07 Nov 2011 01:14:39 -0700, Hans Hagen pra...@wxs.nl wrote: \starttext \starttable{|c|c|c|} [ ] Ok, thanks guys. One question though: Why does the error give me an undefined control sequence? This sent me down dead ends as I tried to figure out what was wrong in the main project… \HL is only a valid command in the table environment in your example the command was seen by TeX (when \starttable was looking for the column alignment) before it was defined. 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] Problems with linespacing
Am 05.11.2011 um 18:54 schrieb Jan Heinen: Linespacing is still not working in every case - I try a little bit more, maybe I find my error ... otherwise I start another thead. TeX (the program) has a few rules when to change the linespacing. Below is example where you can see in which case TeX use the local or global setting. Because TeX will always use the last value which is active at the *end* it’s important to add \par or a blank at the end of the group. The paragraph in the first group end after \stop and this is why the global setting is used but in the second and third group I ended the paragraph in the group and now you get the local setting. \starttext \setupinterlinespace[line=14pt] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes. \blank \start \setupinterlinespace[line=30pt] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes. \stop \blank \start \setupinterlinespace[line=30pt] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes.\par \stop \blank \start \setupinterlinespace[line=30pt] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes. \stop \stoptext 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] Textbackgrounds
On Thu, Jul 22, 2010 at 08:34:19PM +0200, Andreas Harder wrote: Am 22.07.2010 um 16:37 schrieb Hans Hagen: On 22-7-2010 3:50, Andreas Harder wrote: \definetextbackground [test] [location=paragraph, % frame=off, % - no round corners anymore corner=round, % - corner=1|2|3… would be nice leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize] \setuphead [subject] [after=, command=\MyHead] \def\MyHead#1#2% {\framed [background=color, backgroundcolor=gray, frame=off, offset=.5\bodyfontsize, corner=3]{#1#2}} \starttext \subject{Test} \starttest \input tufte \stoptest \stoptext \setuphead [subject] [after=\nointerlineskip, command=\MyHead] Thank you Hans, that killed the space. Greeting, Andreas Something is now broken with textbackgrounds : metapost loading 'metafun': /usr/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv ! terminal: ! Enormous number has been reduced. * ...6.0pt ; ; ; prepare_multi_pars(1,4661756 ,37662495,0,683329,265737,... ... 1 \definetextbackground 2 [test] 3 [location=paragraph, 4frame=off, 5leftoffset=.5\bodyfontsize, 6rightoffset=.5\bodyfontsize, 7topoffset=.5\bodyfontsize, 8bottomoffset=.5\bodyfontsize] 9 10 \starttext 11 inserted text ...ainTextArea; ]===], false)} \processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... \useMPpositiongraphic ...tartMPcode #3\stopMPcode \egroup \doMPpositiongraphic ...riables \getvalue {MPG:#1} } \doMPpositiongraphic ...fined {MPG:#1}\donothing } \removelastspace }\smashbo... \dohandleMPpositiongraphicrange ...raphic {#3}{#4} \fi \fi ... l.17 \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] Italic correction (line starts with comma)
Hi Hans, as a side effect of italic correction some lines start with an comma. \setuppapersize[A5] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] \starttext \showframe[text] \startbuffer {\it italic}, normal, {\em emphasized}, normal \stopbuffer \dorecurse{20}{\getbuffer} \stoptext Regards Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] page number placement in multiline TOC entry
Greetings, At the recent ConTeXt workshop someone mentioned that they had achieved placing a pagenumber to the right of the first line of a multiline table of contents entry. Can anyone describe how to acomplish this? With kind regards, Michael Guravage ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page number placement in multiline TOC entry
On 07.11.2011, at 15:51, Michael Guravage wrote: Greetings, At the recent ConTeXt workshop someone mentioned that they had achieved placing a pagenumber to the right of the first line of a multiline table of contents entry. Can anyone describe how to acomplish this? Hi, something like this? \define[3]\ChapterList {\bTABLE[offset=0pt,rulethickness=0pt,strut=yes,frame=off,width=broad] \bTR \bTD[width=2em] \begstrut#1\endstrut \eTD \bTD\begstrut#2\endstrut \eTD \bTD[width=2em,align={left,high}] \begstrut#3\endstrut \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \starttext \showframe \placelist[chapter] \dorecurse{3}{\chapter{Some very long title. Some very long title. Some very long title. Some very long title. Some very long title. }} \stoptext Regards Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Export \thinspace
On 7-11-2011 14:19, Andreas Harder wrote: Hi Hans! If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends on the line break. \definefontfeature[default][default][expansion=quality] \setupalign[hz] \setupbackend[export=yes,css=yes,xhtml=yes] \starttext \startbuffer narrow\,nonbreaking\,space \stopbuffer \getbuffer \par \dorecurse{10}{\getbuffer} \stoptext exports to: narrownonbreakingspace break/ narrow nonbreaking … i redid some of that code and will make a new beta later Would it be possible to export \, to#x202F;? \unexpanded\def\,{\mathortext{\mskip\thinmuskip}\narrownobreakspace} - 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 ___
[NTG-context] defineselector
Hi, One can select between short and long figure captions (for an index of figures and the figure display itself, respectively) using a selector. The syntax is: \defineselector [caption] [max=2,n=2] % alternate {short}{long} captions \starttext \placefigure [here] [fig:reference] {\select{caption} {short caption} {long caption: bla, bla, bla.} } {\externalfigure [myfigure]} ... \startchapter [title={Figure index}] \setupselector [caption] [n=1] \placelistoffigures [criterium=all] \stopchapter \stoptext I find \select{caption} to be awkward as the label caption is not typeset (the convention of text between {}). Should not the syntax be rather \select[caption]{short}{long} or else \selectcaption{short}{long}? What do the experts think? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Italic correction (line starts with comma)
On 7-11-2011 15:08, Andreas Harder wrote: Hi Hans, as a side effect of italic correction some lines start with an comma. \setuppapersize[A5] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] \starttext \showframe[text] \startbuffer {\it italic}, normal, {\em emphasized}, normal \stopbuffer \dorecurse{20}{\getbuffer} \stoptext fixed in next beta - 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 ___
Re: [NTG-context] Textbackgrounds
On 7-11-2011 14:59, Alan Braslau wrote: Something is now broken with textbackgrounds : fixed in next beta (low level we're now scaled points so a conversion is missing) - 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 ___
Re: [NTG-context] mp-chem.mpiv bug
On 7-11-2011 12:59, Alan Braslau wrote: starttext \startchemical \chemical [ONE,Z0] [O] \stopchemical \stoptext in mp-chem.mpiv patch labtype to mfun_labtype: if (mfun_labtype@# = 10) : shifted (0,ypart center p) fi (much has been moved to a namespace in order to be more protected against clashes) - 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 ___
Re: [NTG-context] defineselector
On 7-11-2011 16:32, Alan Braslau wrote: Hi, One can select between short and long figure captions (for an index of figures and the figure display itself, respectively) using a selector. The syntax is: \defineselector [caption] [max=2,n=2] % alternate {short}{long} captions \starttext \placefigure [here] [fig:reference] {\select{caption} {short caption} {long caption: bla, bla, bla.} } {\externalfigure [myfigure]} \startchapter [title={Figure index}] \setupselector [caption] [n=1] \placelistoffigures [criterium=all] \stopchapter \stoptext I find \select{caption} to be awkward as the label caption is not typeset (the convention of text between {}). Should not the syntax be rather \select[caption]{short}{long} or else \selectcaption{short}{long}? What do the experts think? this one had to think a while to recognize the mkii selector mechanism in mkiv we do \starttext \startplacefigure[location=here,reference=fig:reference,title={lots of bla},list={less bla}] \externalfigure [myfigure] \stopplacefigure \startchapter [title={Figure index}] \placelistoffigures [criterium=all] \stopchapter \stoptext but i saw that i don't pass the list entry ... will be in the next beta 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 ___
Re: [NTG-context] page number placement in multiline TOC entry
Am 07.11.2011 um 16:09 schrieb Andreas Harder: On 07.11.2011, at 15:51, Michael Guravage wrote: Greetings, At the recent ConTeXt workshop someone mentioned that they had achieved placing a pagenumber to the right of the first line of a multiline table of contents entry. Can anyone describe how to acomplish this? Hi, something like this? Hans wrote some code for Thomas A. Schmitz (the one how showed it at the conference) but it never went into the core. 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] highlight problems on xml export [hacky workaround included]
Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the /highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: %% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \startmode[huge] \definepapersize[huge][width=4000mm] \setuppapersize[huge][huge] \setupbodyfont[8pt] \stopmode \starttext \startparagraph Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on blablabla \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \stoptext %%% stop example Compiled with context prova.tex, the space is eaten on the second paragraph. See produced pdf. ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : prova -- !-- processing date : Mon Nov 7 17:43:10 2011 -- !-- context version : 2011.11.04 14:15 -- !-- exporter version : 0.30 -- document language=en file=prova date=Mon Nov 7 17:43:10 2011 context=2011.11.04 14:15 version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML; paragraphPublished on highlight detail=emphDissonanze/highlight vol. I/paragraph paragraphPublished on vol. I Published on vol. I Published on vol. I Published on highlight detail=emphDissonanze/highlightvol. I/paragraph paragraphPublished on vol. I Published on vol. I Published on vol. I Published on blablabla highlight detail=emphDissonanze/highlight vol. I/paragraph /document With `context --mode=huge prova.tex` everything is fine (As the paper is 4 meters long on 8pt!) ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : prova -- !-- processing date : Mon Nov 7 17:44:02 2011 -- !-- context version : 2011.11.04 14:15 -- !-- exporter version : 0.30 -- document language=en file=prova date=Mon Nov 7 17:44:02 2011 context=2011.11.04 14:15 version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML; paragraphPublished on highlight detail=emphDissonanze/highlight vol. I/paragraph paragraphPublished on vol. I Published on vol. I Published on vol. I Published on highlight detail=emphDissonanze/highlight vol. I/paragraph paragraphPublished on vol. I Published on vol. I Published on vol. I Published on blablabla highlight detail=emphDissonanze/highlight vol. I/paragraph /document So, my impression is that for exporting the modal compilation is not an option. Is there a way to set the paper width to infinity? (Even if, speaking about impression, I believe the 4 meters are enough for the average usage). Best wishes -- 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] highlight problems on xml export [hacky workaround included]
On Mon, 7 Nov 2011, Marco Pessotto wrote: So, my impression is that for exporting the modal compilation is not an option. So far, that has been my impression as well. I need a lot of tweaks to get the right XML output (and I also need (multiple) PDF output). I have set a separate mode for XML export, and use something equivalent to context --mode=screen --result=s-filename filename to get a screen version of the document, context --mode=handout --result=h-filename filename to get a handout version of the document, and context --mode=export filename to get an xml version. Is there a way to set the paper width to infinity? (Even if, speaking about impression, I believe the 4 meters are enough for the average usage). TeX does finite precision arithematics, so infinity is not possible. But you can set paper width (and paper height) to \maxdimen, which is the maximum dimension TeX can handle. \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen] \setuppapersize[max] 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 ___
Re: [NTG-context] highlight problems on xml export [hacky workaround included]
Aditya Mahajan adit...@umich.edu writes: TeX does finite precision arithematics, so infinity is not possible. But you can set paper width (and paper height) to \maxdimen, which is the maximum dimension TeX can handle. \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen] \setuppapersize[max] Thanks! -- 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] highlight problems on xml export [hacky workaround included]
On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the/highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote some of the 'heuristics' so best test the next beta 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 ___
Re: [NTG-context] highlight problems on xml export [hacky workaround included]
Hans Hagen pra...@wxs.nl writes: On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the/highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote some of the 'heuristics' so best test the next beta I will for sure. Looking forward to the beta. Thanks Best wishes -- 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 ___
[NTG-context] Configure \setuppublicationlayout[article] to not insert a '.' after a title ending with a '?'
Hello list, Possibly people can give me a pointer into the proper direction? What I am after is probably something like: \setuppublicationlayout[article]{% ... \insertarttitle{\bgroup }{\egroup\optionallyinsertdot }{}% ... } I am not very knowledgeable about TeX, but would this be possible? With kind regards, Renald ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with mkiv under MacOSX 7 (Lion)
On 5 nov. 2011, at 18:16, Robert Blackstone wrote: […] I use TeXShop 2.43 (which, incidentally, tells me, when I check for updates, that it is the newest version available.) with an engine that reads: Hi, Yes this is correct: TeXShop won't update to TeXShop 3 if you are using version 2.43. Actually TeXShop 3 is a completely new version of TeXShop only for Mac OS X 10.7 Lion: it has many intersting features using the capabilities of Mac OS Lion (in particular one I apperciate very much is a feature which allows you to have all the versions of a file, something like a dedicated Time Machine to each file). For more information see Richard Koch's website http://pages.uoregon.edu/koch/texshop/ Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Figure Help
On Fri, 2011-11-04 at 10:32 +0100, Hans Hagen wrote: \externalfigure[Images/Figure.svg][width=2.5cm] Thanks Hans, but all I see is a grey box with the following in it where I expected to see the image: name: dummy file: figure:Figure state: unknown I've checked the path and it looks correct. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Background using Image Overlay
Hi All I am new to the Metapost and Context world, and need some help regarding the inclusion of Metapost graphics in ConTeXt documents. I am trying a very simple approach, using a graphic as a background. Here's my sample (using a very basic metapost graphic as a page background in a document): Metapost: beginfig(0); theta := 360/7; radius := 1in; z0 = origin; z1 = z0 + dir(90)*radius; z2 = z0 + dir(90 + theta)*radius; z3 = z0 + dir(90 + 2*theta)*radius; z4 = z0 + dir(90 + 3*theta)*radius; z5 = z0 + dir(90 + 4*theta)*radius; z6 = z0 + dir(90 + 5*theta)*radius; z7 = z0 + dir(90 + 6*theta)*radius; draw z1 -- z2 -- z3 -- z4 -- z5 -- z6 -- z7 -- cycle; endfig; end; ConTeXt (after running mpost on the metapost graphic to generate the hexagon.0 file): = \defineoverlay [backg] [{\externalfigure[hexagon.0][width=\overlaywidth,height=\overlayheight]}] \starttext \noheaderandfooterlines \setupbackgrounds[page][background=backg] %\placefigure %{none} %{\externalfigure[hexagon.0][width=12cm]} \stoptext Thanks in advance Syed ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Figure Help
On Mon 07 Nov 2011, Kip Warner wrote: \externalfigure[Images/Figure.svg][width=2.5cm] Thanks Hans, but all I see is a grey box with the following in it where I expected to see the image: name: dummy file: figure:Figure state: unknown I've checked the path and it looks correct. See if it works with a PDF file. SVG support is not 100% -- on MkII it can only be done using Inkscape for preprocessing, and on MkIV support is ‘via preprocessing and limited’ according to http://wiki.contextgarden.net/File_Formats . Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Background using Image Overlay
Am 08.11.2011 um 04:45 schrieb Syed N Haider: Hi All I am new to the Metapost and Context world, and need some help regarding the inclusion of Metapost graphics in ConTeXt documents. I am trying a very simple approach, using a graphic as a background. Here's my sample (using a very basic metapost graphic as a page background in a document): Metapost: beginfig(0); theta := 360/7; radius := 1in; z0 = origin; z1 = z0 + dir(90)*radius; z2 = z0 + dir(90 + theta)*radius; z3 = z0 + dir(90 + 2*theta)*radius; z4 = z0 + dir(90 + 3*theta)*radius; z5 = z0 + dir(90 + 4*theta)*radius; z6 = z0 + dir(90 + 5*theta)*radius; z7 = z0 + dir(90 + 6*theta)*radius; draw z1 -- z2 -- z3 -- z4 -- z5 -- z6 -- z7 -- cycle; endfig; end; ConTeXt (after running mpost on the metapost graphic to generate the hexagon.0 file): = \defineoverlay [backg] [{\externalfigure[hexagon.0][width=\overlaywidth,height=\overlayheight]}] \starttext \noheaderandfooterlines \setupbackgrounds[page][background=backg] %\placefigure %{none} %{\externalfigure[hexagon.0][width=12cm]} \stoptext With ConTeXt you can include your MetaPost code in the document and the graphic is generated at runtime. \startuseMPgraphic{hexagon} theta := 360/7; radius := 1in; z0 = origin; z1 = z0 + dir(90)*radius; z2 = z0 + dir(90 + theta)*radius; z3 = z0 + dir(90 + 2*theta)*radius; z4 = z0 + dir(90 + 3*theta)*radius; z5 = z0 + dir(90 + 4*theta)*radius; z6 = z0 + dir(90 + 5*theta)*radius; z7 = z0 + dir(90 + 6*theta)*radius; draw (z1 -- z2 -- z3 -- z4 -- z5 -- z6 -- z7 -- cycle) xysized(OverlayWidth,OverlayHeight) ; \stopuseMPgraphic \defineoverlay[hexagon][\useMPgraphic{hexagon}] \setupbackgrounds[page][background=hexagon] \starttext \page[empty] \stoptext For more information about MetaPost graphics take a look into the MetaFun manual (http://pragma-ade.com/show-man-7.htm) which provides many examples. 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 ___