[NTG-context] groupedcommand with color
Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? Thanks, Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] groupedcommand with color
On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} - 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] groupedcommand with color
Am 14.02.2012 um 13:21 schrieb Hans Hagen: On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Increment an item number?
Hi Alasdair, Maybe the following gives you what you want? \starttext \startitemize[n] \item First question \phantom{\item } \item Third question \phantom{\item } \item Fifth question \item Sixth question \stopitemize \stoptext Best regards: OK On 14 févr. 2012, at 06:27, Alasdair McAndrew wrote: What is the ConTeXt version of the LaTeX \addtocounter{enumi}{1} ? I want to increment my numbering in an itemize environment, so that the list is typeset as 1. First item 2. Next item 3. Another item 5. Yet another 6. And so on I'm typing out solutions to questions in some student notes, and the missing item is a question for which a written solution is not necessary. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] groupedcommand with color
On 14-2-2012 13:37, Steffen Wolfrum wrote: Am 14.02.2012 um 13:21 schrieb Hans Hagen: On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. and how about {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}} - 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] groupedcommand with color
On 2012-02-14 13:37, Steffen Wolfrum wrote: Am 14.02.2012 um 13:21 schrieb Hans Hagen: On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. Works when using “\switchtocolor”: \define\ColorSwitch {\groupedcommand{\language[de]\ss\switchtocolor[darkred]}{}} \starttext foo \bgroup\ColorSwitch bar\egroup baz\par \stoptext Regards Philipp Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpqh5EvCIQTj.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Increment an item number?
On 14-2-2012 13:39, Otared Kavian wrote: \starttext \startitemize[n] \item First question \phantom{\item } \item Third question \phantom{\item } \item Fifth question \item Sixth question \stopitemize \stoptext or something \starttext \startitemize[n] \item First question \incrementnumber[itemgroup:itemize] \item Third question \incrementnumber[itemgroup:itemize] \item Fifth question \item Sixth question \stopitemize \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] groupedcommand with color
Am 14.02.2012 um 13:44 schrieb Hans Hagen: On 14-2-2012 13:37, Steffen Wolfrum wrote: Am 14.02.2012 um 13:21 schrieb Hans Hagen: On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. and how about {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}} now it works: directedcolor, as well as switchtolcolor Thank you Hans and Philipp! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Increment an item number?
On 2/14/12 1:48 PM, Hans Hagen wrote: \starttext \startitemize[n] \item First question \phantom{\item } \item Third question \phantom{\item } \item Fifth question \item Sixth question \stopitemize \stoptext or something \starttext \startitemize[n] \item First question \incrementnumber[itemgroup:itemize] \item Third question \incrementnumber[itemgroup:itemize] \item Fifth question \item Sixth question \stopitemize \stoptext Just a hint: however you do it, I think this is not the best approach. you write: I'm typing out solutions to questions in some student notes, and the missing item is a question for which a written solution is not necessary. If this is a recurrent task, i.e. if you regularly make up student problems and then typeset the solutions, this approach is inefficient because you're doing the book keeping yourself. If, for example, you decide to delete one of the questions without written solution, you will have to delete the \incrementnumber as well. It may be better if you let ConTeXt do the book keeping: give every question a unique identitfier like so \startitem[p:1:2] Problem? \stopitem and then typeset the solutions by referring back to this identifier: \sym{\in[p:1:2]} That way, the numbers in problems and solutions will always be correct, even if you rearrange etc. (I often typeset such exercise stylesheets, and after many years, that's my approach today.) Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug on fallback fonts alternative switching
On 14-2-2012 03:33, Li Yanrui (李延瑞) wrote: Hi, I reported the bug, please see: http://www.ntg.nl/pipermail/ntg-context/2012/064858.html It is still exist in the beta 2012.02.08. in font-col.mkvi replace \font_auto_font_size by \c_font_auto_size 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 ___
[NTG-context] [***SPAM***] How to remove white space?
Hello, Here you see some white space at the left and the right of .COM: \ss \framed[offset=overlay]{.COM} How can I remove this space in the right, correct, natural, smart, elegant, ConTeXtish manner? I have a workaround, but I find it a bit ugly: \starttext \ss \framed[offset=overlay]{\kern-0.07em.COM\kern-0.07em} \stoptext TIA for any hints! -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] How to remove white space?
Am 14.02.2012 um 20:25 schrieb Peter Münster: Hello, Here you see some white space at the left and the right of .COM: \ss \framed[offset=overlay]{.COM} This space is part of the font. \setupbodyfont[sans] \starttext \dontleavehmode \ruledhbox{.}% \ruledhbox{C}% \ruledhbox{O}% \ruledhbox{M} \framed[offset=overlay]{.COM} \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] [***SPAM***] How to remove white space?
On Tue, Feb 14 2012, Wolfgang Schuster wrote: This space is part of the font. Yes, that's what I've guessed too. The question was more, if there was a method to say: Dear TeX-engine, give me please the letter `M' but without its natural kerning on the right side. I thought, that all this information was inside the font: width of the glyph, left kerning, right kerning, and so on. It seems, that I was wrong... -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] How to remove white space?
On Tue, Feb 14, 2012 at 08:46:34PM +0100, Peter Münster wrote: On Tue, Feb 14 2012, Wolfgang Schuster wrote: This space is part of the font. Yes, that's what I've guessed too. The question was more, if there was a method to say: Dear TeX-engine, give me please the letter `M' but without its natural kerning on the right side. I thought, that all this information was inside the font: width of the glyph, left kerning, right kerning, and so on. It seems, that I was wrong... That would be the side bearings which is not readily accessible (not to TeX at least). Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] groupedcommand with color
Am 14.02.2012 um 14:26 schrieb Steffen Wolfrum: Am 14.02.2012 um 13:44 schrieb Hans Hagen: On 14-2-2012 13:37, Steffen Wolfrum wrote: Am 14.02.2012 um 13:21 schrieb Hans Hagen: On 14-2-2012 12:55, Steffen Wolfrum wrote: Hi, due to \color[]{} now needs an argument, groupedcommand doesn't work as before: \define\PlainSwitch% {\groupedcommand{\language[de]\ss}{}} \define\ColorSwitch% {\groupedcommand{\language[de]\ss\color[darkred]}{}} \starttext English: \date {\PlainSwitch German \date} English: \date {\ColorSwitch German \date} Test \date \stoptext Someone knows what to change here (in order to get the red G back)? something {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}} In version 2012.01.16 this gives an error: ! Extra }, or forgotten \endgroup. and how about {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}} now it works: directedcolor, as well as switchtolcolor You can also use \definestartstop to create your command which can then be used with \ColorSwitch{…} and {\ColorSwitch …}. \definestartstop [ColorSwitch] [commands={\language[de]}, style=sans, color=darkred] 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] Increment an item number?
Thanks for the answers. I did in fact know about \incrementnumber, but I couldn't find any information about the counter. Where would I find such information, aside from asking on this mailgroup? As for identifying each question and referring to it: that is an excellent solution, but in fact I have only rarely to leave out an answer, and the small amount of bookkeeping required is not at all onerous. Thanks again, Alasdair On Wed, Feb 15, 2012 at 3:27 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On 2/14/12 1:48 PM, Hans Hagen wrote: \starttext \startitemize[n] \item First question \phantom{\item } \item Third question \phantom{\item } \item Fifth question \item Sixth question \stopitemize \stoptext or something \starttext \startitemize[n] \item First question \incrementnumber[itemgroup:**itemize] \item Third question \incrementnumber[itemgroup:**itemize] \item Fifth question \item Sixth question \stopitemize \stoptext Just a hint: however you do it, I think this is not the best approach. you write: I'm typing out solutions to questions in some student notes, and the missing item is a question for which a written solution is not necessary. If this is a recurrent task, i.e. if you regularly make up student problems and then typeset the solutions, this approach is inefficient because you're doing the book keeping yourself. If, for example, you decide to delete one of the questions without written solution, you will have to delete the \incrementnumber as well. It may be better if you let ConTeXt do the book keeping: give every question a unique identitfier like so \startitem[p:1:2] Problem? \stopitem and then typeset the solutions by referring back to this identifier: \sym{\in[p:1:2]} That way, the numbers in problems and solutions will always be correct, even if you rearrange etc. (I often typeset such exercise stylesheets, and after many years, that's my approach today.) Thomas __**__** ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/** listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __**__** ___ -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] columnsets error in 2.08 beta
Updated to Feb. 8 beta, now none of my documents with columnsets will compile. Without the columnset, the example below works fine: \definecolumnset[body][n=2] \starttext \startcolumnset[body] \input tufte\par \stopcolumnset \stoptext Error message: 1 \definecolumnset[body][n=2] 2 \starttext 3 \startcolumnset[body] 4 \input tufte\par 5 \stopcolumnset 6 \stoptext \154columnset:page_otr_command_routine ...outine \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing ... l.4 \input tufte\par ? -- Peter Park Nelson peter.park.nel...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___