[NTG-context] Wrong spacing in \unit
Hi, when \unit is used just with a unit, without a number, the spacing at the left is wrong. Example: \starttext % wrong spacing (\unit{micro mol per second}) % spacing OK (\unit{3 micro mol per second}) \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 ___
[NTG-context] Adaptive section structuring
Hi, I am often surprised that some nice-to-have feature is already present in ConTeXt and I just wasn't aware. But I am not sure about this one. Is there something like an adaptive structure code which keeps track of the nesting level? In this example the first structure would become the chapter, the second one a section, etc. \starttext \startstructure [title=Alpha] \startstructure [title=Beta] \startstructure [title=Gamma] \stopstructure \stopstructure \stopstructure \stoptext This would ease moving around sections, which might end up as subsections and vice versa. 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] Strange bug with reversed itemize
Hi Aditya, Yes it is a strange behaviour and it appears only when using mkiv and reversed itemize, even with \setuppagenumber[start=12] instead of \setupuserpagenumber[start=12] Also the pagenumber remains unchanged with either of these commands, which means that it's a bug. I tested your example with Context version 2011.11.29, mkiv and there everything is correct. Best regards: OK On 13 sept. 2012, at 02:34, Aditya Mahajan adit...@umich.edu wrote: Hi, For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? 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] Lucida fonts
On 12-9-2012 22:24, Troy Henderson wrote: yes, but the fonts are relatively cheap (esp for members) and you get a lot relatively is the keyword here as they are the same price that I paid for the Type 1 fonts 3 years ago. So, according to the store website, I essentially have to buy them again. it's more 'relative' to what other commercial fonts cost (whenever we have to do that for a project we end up many times higher than the full set of lucidas which also includes math) 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] Adaptive section structuring
On 13-9-2012 09:48, Marco Patzer wrote: Hi, I am often surprised that some nice-to-have feature is already present in ConTeXt and I just wasn't aware. But I am not sure about this one. Is there something like an adaptive structure code which keeps track of the nesting level? In this example the first structure would become the chapter, the second one a section, etc. \starttext \startstructure [title=Alpha] \startstructure [title=Beta] \startstructure [title=Gamma] \stopstructure \stopstructure \stopstructure \stoptext This would ease moving around sections, which might end up as subsections and vice versa. There has always been this trick: \definehead[level-1][chapter] \definehead[level-2][section] \definehead[level-3][subsection] \startnamedsection[level-1][title=Alpha] \startnamedsection[level-2][title=Beta] \startnamedsection[level-3][title=Gamma] 1-2-3 \stopnamedsection \stopnamedsection \stopnamedsection or \definehead[levelone][chapter] \definehead[leveltwo][section] \definehead[levelthree][subsection] \startlevelone[title=Alpha] \startleveltwo[level-2][title=Beta] \startlevelthree[level-3][title=Gamma] but there's also \startstructurelevel [title=first lower level] \startstructurelevel [title=second lower level] \startstructurelevel [title=third lower level] test \stopstructurelevel \stopstructurelevel \stopstructurelevel and here's 'level-002.tex' from the test suite: \definehead[xxsection][subsubsection] \setuphead [xxsection][color=red] \definestructurelevels[main][chapter,section,subsection,subsubsection] \definestructurelevels[next][chapter,section,subsection,xxsection] \starttext \startstructurelevel [main] [title=first top level] \startstructurelevel [main] [title=first lower level] \startstructurelevel [main] [title=second lower level] \startstructurelevel [main] [title=third lower level] test \stopstructurelevel \stopstructurelevel \stopstructurelevel \startstructurelevel [main] [title=first lower level] \startstructurelevel [main] [title=second lower level] \startstructurelevel [next] [title=third lower level] test \stopstructurelevel \stopstructurelevel \stopstructurelevel \stopstructurelevel \stoptext 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] Lucida fonts
I was able to get the Type 1 versions working. It seems that the problem the whole time was an orphan kpsewhich living in /usr/bin. After removing it, TL2012's kpsewhich took over and everything is fine. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Adaptive section structuring
Am 13.09.2012 um 11:07 schrieb Marco Patzer home...@lavabit.com: Is there something like an adaptive structure code which keeps track of the nesting level? In this example the first structure would become the chapter, the second one a section, etc. \startstructurelevel [title=first lower level] \startstructurelevel [title=second lower level] \startstructurelevel [title=third lower level] test \stopstructurelevel \stopstructurelevel \stopstructurelevel Brilliant. That's it. Thanks also to Wolfgang. Is there a preferred syntax to use either sectionlevel or structurelevel? I would go with \startsectionlevel which is the new name for the command but the old name \startstructurelevel can be also used. 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] setuphead broken?
Hi, \setuphead seems to be broken for me in recent context (following upgrade of a ~year-old system). Problem happens when use the command= key. An example from the wiki fails, as does my own code. mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.09.10 00:57 == \setuppapersize[A5] \setupexternalfigures[location=default] % needed only for the wiki to the find the figure \useexternalfigure[section-1][cow][width=5cm,height=1cm] \useexternalfigure[section-2][mill.png][width=5cm,height=1cm] \setuphead [section] [command=\MySectionCommand] \setuphead [subsection] [command=] \def\MySectionCommand#1#2% {\externalfigure[section-\currentheadnumber]} \starttext \section{One} \subsection{First subsection of Section One} \section{Two} \stoptext == ERROR: Argument of \MySectionCommand has an extra }. --- TeX said --- system tex error on line 19 in file test2.tex: Argument of ... 9[command=\MySectionCommand] 10 \setuphead 11[subsection] 12[command=] 13 14 \def\MySectionCommand#1#2% 15{\externalfigure[section-\currentheadnumber]} 16 17 \starttext 18 19 \section{One} 20 \subsection{First subsection of Section One} 21 \section{Two} 22 23 \stoptext inserted text \par to be read again } \strc_rendering_inject_number_and_text ...ommand } \ifx \p_command \empty \di... \strc_rendering_place_head_number_and_text ...ext }\fi \strc_rendering_stop_... \strc_sectioning_handle ...e_head_number_and_text \else \strc_rendering_plac... l.19 \section{One} --- HELP --- From the .log file... I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. == -- John Devereux ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Referring to multiple elements
Hi, how can I refer to multiple elements at the same time? \starttext \startplacefigure [title=foo, reference=alpha] \stopplacefigure \startplacefigure [title=bar, reference=beta] \stopplacefigure \startplacefigure [title=bar, reference=gamma] \stopplacefigure \in{figure}[alpha,beta,gamma] \stoptext This outputs “figure 1”. What I'd like to have is “figure 1-3”. 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] setuphead broken?
Am 13.09.2012 um 12:14 schrieb John Devereux j...@devereux.me.uk: Hi, \setuphead seems to be broken for me in recent context (following upgrade of a ~year-old system). Problem happens when use the command= key. An example from the wiki fails, as does my own code. mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.09.10 00:57 == \setuppapersize[A5] \setupexternalfigures[location=default] % needed only for the wiki to the find the figure \useexternalfigure[section-1][cow][width=5cm,height=1cm] \useexternalfigure[section-2][mill.png][width=5cm,height=1cm] \setuphead [section] [command=\MySectionCommand] \setuphead [subsection] [command=] \def\MySectionCommand#1#2% {\externalfigure[section-\currentheadnumber]} Use \define[2]\MySectionCommand{…} or \unexpanded\def\MySectionCommand#1#2{…}. To get the section number for the figure you have to replace “\currentheadnumber” with “\namedheadnumber{section}”. 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] Lucida fonts
On Wed, Sep 12, 2012 at 10:24 PM, Troy Henderson wrote: yes, but the fonts are relatively cheap (esp for members) and you get a lot relatively is the keyword here as they are the same price that I paid for the Type 1 fonts 3 years ago. So, according to the store website, I essentially have to buy them again. Actually, you should apply for a special discount :P As soon as you have bought the fonts and started complaining about semi-broken functionality of Lucida while I was sitting behind Hans in Brejlov two years ago, this triggered the project of creating OpenType Lucida (and probably forced us to fix major problems in Type1 for MKII/MKIV). So it's partially your fault that OpenType Lucida exists in the first place. Blame yourself for the extra choiceprice you are offered now ;) But Hans already told you back then: don't use Lucida, didn't he? Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Referring to multiple elements
Hi Marco, I do not know if there is a solution to this. The following would work for your example: \in{figure}[alpha]--\in[gamma] Of course this is a quite rigid solution, that does not safeguard against changes in figure order...So probably not what you were looking for. Cheers, Andreas Am Sep 13, 2012 um 12:15 PM schrieb Marco Patzer: Hi, how can I refer to multiple elements at the same time? \starttext \startplacefigure [title=foo, reference=alpha] \stopplacefigure \startplacefigure [title=bar, reference=beta] \stopplacefigure \startplacefigure [title=bar, reference=gamma] \stopplacefigure \in{figure}[alpha,beta,gamma] \stoptext This outputs “figure 1”. What I'd like to have is “figure 1-3”. 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 ___
Re: [NTG-context] Change color of EPS file.
On 12-9-2012 19:10, pol stra wrote: Hello, I have a EPS file wich contains black lines and no background. The background of my presentation is colored, so I would like to put this figure in white. I tried a \startcolor … \stopcolor environement without succed. Is there a way to do so? edit the eps file - 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] Change color of EPS file.
Hello Pol stra, Off-topic for this mailing list, but on-topic for you: You can do this with Inkscape. * Install Inkscape: http://inkscape.org/download/?lang=en * Open the EPS in Inkscape Working white-on-white sucks, so * File Document properties click to the right of 'Background:', below the Default units dropdown * Choose something nice and pastel-coloured with alpha (opacity) set to non-zero. * Select the object * Object Ungroup (Ctrl+Shift+G) to make Inkscape see the individual paths, instead of a single EPS object The single rectangle selecting the object has now turned into a heap of rectangles. * With the colours at the bottom, set the fill to be red with click and/or set the stroke to be red with Shift+click This will probably not have the desired effect because some of the constituent paths will have black fill+transparent stroke, and with others it will be the other way round. So you'll have to set fill/stroke individually. * Select paths in turn, and set their fill/stroke as appropriate. Their respective values are shown in the bottom left. If you select multiple paths and their fill/stroke is different, it will be shown as mixed; when multiple paths' fills/strokes are not mixed they are identical, and you can change them all at once. (Depending on ... file-related things ... you may need to use Path Object to Path at some point, and possibly Path Break Apart. But probably not.) Good luck! --Sietse ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 broken?
Wolfgang Schuster wolfgang.schus...@gmail.com writes: Am 13.09.2012 um 12:14 schrieb John Devereux j...@devereux.me.uk: Hi, \setuphead seems to be broken for me in recent context (following upgrade of a ~year-old system). Problem happens when use the command= key. An example from the wiki fails, as does my own code. mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.09.10 00:57 == \setuppapersize[A5] \setupexternalfigures[location=default] % needed only for the wiki to the find the figure \useexternalfigure[section-1][cow][width=5cm,height=1cm] \useexternalfigure[section-2][mill.png][width=5cm,height=1cm] \setuphead [section] [command=\MySectionCommand] \setuphead [subsection] [command=] \def\MySectionCommand#1#2% {\externalfigure[section-\currentheadnumber]} Use \define[2]\MySectionCommand{…} or \unexpanded\def\MySectionCommand#1#2{…}. To get the section number for the figure you have to replace “\currentheadnumber” with “\namedheadnumber{section}”. Wolfgang Wow that was fast, thanks Wolfgang. I started to change the examples in the wiki http://wiki.contextgarden.net/Titles. But I realised we need to distinguish MKIV from MKII and I don't really know what I am doing... -- John Devereux ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Lucida fonts
I guess I will take responsibility for my own actions then. ;) Actually, as long as the Type 1 fonts continue to work, I presume I have no need for anything more. Perhaps I'm just somewhat ignorant about fonts and have no idea what more complete (as Hans said) means when comparing the OpenType version to the Type 1 version. If I was given a list of things that are included in the OpenType font that I do not currently have access to in the Type 1 version, then I would at least know what I was missing. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Change color of EPS file.
From: sbbrou...@gmail.com Date: Thu, 13 Sep 2012 13:45:20 +0200 Subject: Re: [NTG-context] Change color of EPS file. To: ntg-context@ntg.nl CC: r...@hotmail.fr Hello Pol stra, Off-topic for this mailing list, but on-topic for you: You can do this with Inkscape. * Install Inkscape: http://inkscape.org/download/?lang=en * Open the EPS in Inkscape Working white-on-white sucks, so * File Document properties click to the right of 'Background:', below the Default units dropdown * Choose something nice and pastel-coloured with alpha (opacity) set to non-zero. * Select the object * Object Ungroup (Ctrl+Shift+G) to make Inkscape see the individual paths, instead of a single EPS object The single rectangle selecting the object has now turned into a heap of rectangles. * With the colours at the bottom, set the fill to be red with click and/or set the stroke to be red with Shift+click This will probably not have the desired effect because some of the constituent paths will have black fill+transparent stroke, and with others it will be the other way round. So you'll have to set fill/stroke individually. * Select paths in turn, and set their fill/stroke as appropriate. Their respective values are shown in the bottom left. If you select multiple paths and their fill/stroke is different, it will be shown as mixed; when multiple paths' fills/strokes are not mixed they are identical, and you can change them all at once. (Depending on ... file-related things ... you may need to use Path Object to Path at some point, and possibly Path Break Apart. But probably not.) Good luck! --Sietse Thanks Sietse I already tried the inskape way, but it’s too much work if you have many files to proced. But your answer gave me the idea to use imegemagick, so I found this trick: convert -background none -density 300 -negate a1.EPS bbb.png I do not know why, but the same command with an EPS output gives me a white background so I had use a png file. The result is good enough for me. Thanks again ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Change color of EPS file.
On Thu, 13 Sep 2012, pol stra wrote: Off-topic for this mailing list, but on-topic for you: You can do this with Inkscape. * Install Inkscape: http://inkscape.org/download/?lang=en * Open the EPS in Inkscape Working white-on-white sucks, so * File Document properties click to the right of 'Background:', below the Default units dropdown * Choose something nice and pastel-coloured with alpha (opacity) set to non-zero. * Select the object * Object Ungroup (Ctrl+Shift+G) to make Inkscape see the individual paths, instead of a single EPS object The single rectangle selecting the object has now turned into a heap of rectangles. * With the colours at the bottom, set the fill to be red with click and/or set the stroke to be red with Shift+click This will probably not have the desired effect because some of the constituent paths will have black fill+transparent stroke, and with others it will be the other way round. So you'll have to set fill/stroke individually. * Select paths in turn, and set their fill/stroke as appropriate. Their respective values are shown in the bottom left. If you select multiple paths and their fill/stroke is different, it will be shown as mixed; when multiple paths' fills/strokes are not mixed they are identical, and you can change them all at once. (Depending on ... file-related things ... you may need to use Path Object to Path at some point, and possibly Path Break Apart. But probably not.) Good luck! --Sietse Thanks Sietse I already tried the inskape way, but it’s too much work if you have many files to proced. But your answer gave me the idea to use imegemagick, so I found this trick: convert -background none -density 300 -negate a1.EPS bbb.png I do not know why, but the same command with an EPS output gives me a white background so I had use a png file. The result is good enough for me. If you want to use eps images, why not just use a white background at ConTeXt end (as you had stated in your first message). 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] Strange bug with reversed itemize
On Thu, 13 Sep 2012, Otared Kavian wrote: On 13 sept. 2012, at 02:34, Aditya Mahajan adit...@umich.edu wrote: For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? Yes it is a strange behaviour and it appears only when using mkiv and reversed itemize, even with \setuppagenumber[start=12] instead of \setupuserpagenumber[start=12] Also the pagenumber remains unchanged with either of these commands, which means that it's a bug. I tested your example with Context version 2011.11.29, mkiv and there everything is correct. Thanks for testing. I also tested with 2012.07. \setupserpagenumber does not change the page number (but \setcounter[userpage][start=12] does!) The item numbers come out correctly. So, the bug with wrong item numbers was introduced recently; the bug with \setupuserpagenumber not working came sometime earlier. 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] Change color of EPS file.
Aditya Mahajan adit...@umich.edu wrote: If you want to use eps images, why not just use a white background at ConTeXt end (as you had stated in your first message I think you misread: Pol wants the EPS to be white-on-transparent, instead of black-on-transparent, so that he can use it on a (dark-)coloured background. Pol stra wrote: But your answer gave me the idea to use imegemagick, so I found this trick: ... The result is good enough for me. Congratulations. Good luck with your work. Cheerio, Sietse ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Trying to rebuild context-beginner
Hello, As I'm new with ConTeXt, I'm playing around and look at how the manuals are made, to understand some of the subtilities of ConTeXt. So I've tried to create the pdf of context-beginner. And I've got a problem, probably a beginner mistake :-D but I would like to know how to solve it! so while doing make en-screen in the context-beginner, I get the following error: (...) systems : end file ma-cb-style at line 13 systems : begin file ma-cb-setups at line 14 (../ma-cb-setups.tex systems : begin file t-setup at line 20 (../t-setup.tex system : module set-02 (mkii) loaded (/home/fc065089/context/tex/texmf-context/tex/context/base/x- set-02.mkii ! I can't find file `mult-en()'. l.28 \input mult-\userinterfacetag() (Press Enter to retry, or Control-D to exit) (...) So I've found out after a while, that I need to write mult-en.mkii, and it works, until it needs it again, and then I need to write it again. So I've search a bit more, and I found that if I change the file context/tex/texmf-context/tex/context/base/x-set-02.mkii (...) \input mult-\userinterfacetag (...) to (...) \input mult-\userinterfacetag.mkii (...) Then everything works, and I don't have to enter manually the extension .mkii. So my question is this normal? Should I really modify this x-set-02 file? Sincerely yours, Alessandro ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] MKII MKIV difference between \textrule
Hello, In my experimentation, I've found that in mkii and mkiv the behavior of \textrule and \setuptextrule are different... What I did was quite simple: \textrule{Testing head} blah blah blah \textrule in mkii the text in well centered between the lines. But in mkiv the bottom line is too near the text, and I need to add something like \blank[halfline] to have a similar behavior as mkii. And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mkiv. Am I missing something? Sincerely yours, Alessandro ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Strange bug with reversed itemize
On Thu, 13 Sep 2012, Aditya Mahajan wrote: On Thu, 13 Sep 2012, Otared Kavian wrote: On 13 sept. 2012, at 02:34, Aditya Mahajan adit...@umich.edu wrote: For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? Yes it is a strange behaviour and it appears only when using mkiv and reversed itemize, even with \setuppagenumber[start=12] instead of \setupuserpagenumber[start=12] Also the pagenumber remains unchanged with either of these commands, which means that it's a bug. I tested your example with Context version 2011.11.29, mkiv and there everything is correct. Thanks for testing. I also tested with 2012.07. I have been able to isolate the bug to the update on 2012.07.09; specifically to this commit. http://repo.or.cz/w/context.git/blobdiff/6f124794f7dc253f8b83f2517c26ce17e50d66ff..refs/heads/origin:/tex/context/base/strc-num.mkiv If I replace the current version of strc-num.mkiv with the version from 2012.07.09: http://repo.or.cz/w/context.git/blob_plain/6f124794f7dc253f8b83f2517c26ce17e50d66ff:/tex/context/base/strc-num.mkiv then the numbering is correct. However, I cannot figure out what is causing the bug in that change. 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] Strange bug with reversed itemize
On Thu, 13 Sep 2012, Aditya Mahajan wrote: On Thu, 13 Sep 2012, Aditya Mahajan wrote: On Thu, 13 Sep 2012, Otared Kavian wrote: On 13 sept. 2012, at 02:34, Aditya Mahajan adit...@umich.edu wrote: For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? Yes it is a strange behaviour and it appears only when using mkiv and reversed itemize, even with \setuppagenumber[start=12] instead of \setupuserpagenumber[start=12] Also the pagenumber remains unchanged with either of these commands, which means that it's a bug. I tested your example with Context version 2011.11.29, mkiv and there everything is correct. Thanks for testing. I also tested with 2012.07. I have been able to isolate the bug to the update on 2012.07.09; specifically to this commit. http://repo.or.cz/w/context.git/blobdiff/6f124794f7dc253f8b83f2517c26ce17e50d66ff..refs/heads/origin:/tex/context/base/strc-num.mkiv If I replace the current version of strc-num.mkiv with the version from 2012.07.09: http://repo.or.cz/w/context.git/blob_plain/6f124794f7dc253f8b83f2517c26ce17e50d66ff:/tex/context/base/strc-num.mkiv then the numbering is correct. However, I cannot figure out what is causing the bug in that change. The bug disappears if I add \setupstructurecounting[start=0] or \setupstructurecounting[start=\zerocount] in the test file! 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] Strange bug with reversed itemize
Am 14.09.2012 um 00:36 schrieb Aditya Mahajan adit...@umich.edu: I have been able to isolate the bug to the update on 2012.07.09; specifically to this commit. http://repo.or.cz/w/context.git/blobdiff/6f124794f7dc253f8b83f2517c26ce17e50d66ff..refs/heads/origin:/tex/context/base/strc-num.mkiv If I replace the current version of strc-num.mkiv with the version from 2012.07.09: http://repo.or.cz/w/context.git/blob_plain/6f124794f7dc253f8b83f2517c26ce17e50d66ff:/tex/context/base/strc-num.mkiv then the numbering is correct. However, I cannot figure out what is causing the bug in that change. Part of the problem is this code block: \def\strc_counters_check_setup#1% does it have to happen here? {% this can be done at the lua end / a bit messy here ... todo ... \ifcsname\??counter#1\c!number\endcsname \doifelsevalue {\??counter#1\c!number}{#1} {\letbeundefined{\??counter#1\c!number}}% {\doifvaluenothing{\??counter#1\c!number} {\letbeundefined{\??counter#1\c!number}}}% \fi \ifcsname\??counter#1\c!number\endcsname % it's a clone \else \edef\currentcounterlevel{\thenamedcounterlevel{#1}}% \edef\p_start{\counterparameter{#1}\c!start}% \ctxcommand{checkcountersetup(#1,\currentcounterlevel,\ifx\p_start\empty0\else\number\p_start\fi,\counterparameter{#1}\c!state)}% \fi} ConTeXt uses \p_start to store the current value of the start parameter. When you set now a value for start in \setuppagenumber the value is kept in \p_start (because there are no groups). When you start now the itemize environment the same code is loaded and the start parameter (which hasn’t been set yet) expands to a very stupid default value which is by another helper function. \def\strc_counter_setup_using_parameter#1#2% name \someparameter {\edef\p_start{#2\c!start}% \setupcounter [#1] [ \c!start=\ifx\p_start\empty0\else\number\p_start\fi, ... \c!numbersegments=#2\c!numbersegments]} As you can see here the start parameter expands to \p_start when it isn’t empty what is the case here and because of this you get a wrong value for the item numbers. 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 ___