Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
ent with this method as well, comparing and contrasting with blocks and Aditya's modes method. It might be a bit annoying, but you could end the previous mode before starting the next. Assuming that I'm not misunderstanding you: For a book-length project, that would be beyond annoying. Well,

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 11:54:52 -0700, Hans Hagen via ntg-context wrote: Blocks are a better mechanism, but I still prefer modes here because I find the \beginblock ... \endblock syntax to be a bit awkward in a context document. it also depends on usage ... you can have blocks and delay

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 10:56:46 -0700, Aditya Mahajan via ntg-context wrote: But you don't have to directly use the modes. The following will work: \definestartstop[abridged] % By default, don't show the unabridged text \definebuffer[unabridged][local=yes, nested=yes] \startmode[unabridged

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Hans Hagen via ntg-context
حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Aditya Mahajan via ntg-context
> > wrote: > > > > > Dear gang, > > > > > > For creating/authoring content in ConTeXt: Can modes or the like be used > > > for content control? For example, someone wants to write at least two > > > versions of a book managed from a sin

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
}{Conditional text}. I don’t think you would get shorter markup with nesting. More possibilities see https://wiki.contextgarden.net/Modes > Consider variant texts: > > === > Here is some text that > contains % mode=variantone > includes % mode=varianttwo > is comprise

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Taco Hoekwater via ntg-context
Hi Idris, I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest: \defineblock[sectionblock] \defineblock[myblock] \startmode[variantone] \keepblocks[sectionblock] \keepblocks[myblock] \stopmode \startmode[varianttwo] \keepblocks[sectionblock] \stopmode \starttext

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
lists of modes? \startmode[short,long] Something that appears everywhere. \stopmode \startmode[long] % or \startnotmode[short] Something that’s only in the long version. \stopmode Many thanks; will study this. Unfortunately - as pointed out on the wiki - modes cannot be nested. : Why would yo

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 17.11.2021 um 04:06 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد via > ntg-context⁩ <⁨ntg-context@ntg.nl⁩>: > > Unfortunately - as pointed out on the wiki - modes cannot be nested. Why would you need that? You know about \startnotmode and that you can use lists of

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Hans Hagen via ntg-context
On 11/17/2021 12:25 AM, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Hi Aditya, Many thanks; see below: On Tue, 16 Nov 2021 17:23:59 -0700, Aditya Mahajan via ntg-context wrote: On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > For creating/authoring content in ConTeXt: Can modes or the like be used > for content control? For example, someone wants to write at least two > versions of a book managed fro

[NTG-context] Can modes be used for content control?

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content - includes a) c) abridged

Re: [NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Pablo Rodriguez via ntg-context
gt; body, and back matter using modes. > [...] Hi Joey, the command is just different: \startsectionblockenvironment[frontpart] \setupbodyfont[modern] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupbodyfont[pagella] \stopsectionblockenvironment \startse

[NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Joey McCollum via ntg-context
Hi, I was curious about the possibility of handling general formatting settings (e.g., page layout, headers and footers, page numbering, alignment, default body font assignment, etc.) conditionally for front, body, and back matter using modes. According to the wiki page at https

Re: [NTG-context] Combining modes and MetaFun

2020-09-06 Thread Jan Willem Flamma
Thank you Hans, this is exactly what I need. I will wikify the examples. Kind regards,Jan Willem Flamma  From: Hans HagenSent: Friday, 4 September 2020 15:09To: mailing list for ConTeXt users; Jan Willem FlammaSubject: Re: [NTG-context] Combining modes and MetaFun On 9/4/2020 2:20 PM, Jan Willem

Re: [NTG-context] Combining modes and MetaFun

2020-09-04 Thread Hans Hagen
On 9/4/2020 2:20 PM, Jan Willem Flamma wrote: Dear list members, Is it possible to combine modes and MetaFun? In the below MWE, the \doifmode construction does not work. Kind regards, Jan Willem Flamma === \enablemode[en] %\enablemode[nl] \starttext \startbuffer[square]     u := 2cm

[NTG-context] Combining modes and MetaFun

2020-09-04 Thread Jan Willem Flamma
Dear list members, Is it possible to combine modes and MetaFun? In the below MWE, the \doifmode construction does not work. Kind regards,Jan Willem Flamma ===\enablemode[en]%\enablemode[nl] \starttext \startbuffer[square]    u := 2cm ;    draw unitsquare scaled u ; drawdblarrow (0,-0.2u)..(u

Re: [NTG-context] Modes and conditional part of the source

2019-03-01 Thread Hans van der Meer
I used \doifmode and friends for selection of mode dependent code. dr. Hans van der Meer > On 1 Mar 2019, at 01:24, Hans Hagen wrote: > > On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote: >> Hello, >> I'm struggling with using modes to make a part of the text conditiona

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Hans Hagen
On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext   A   \b{100} % Should be start of some

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello Aditya, thanks for the code, I'll try something like that. Best regards, Lukas On Thu, 28 Feb 2019 12:54:06 +0100, Aditya Mahajan wrote: On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Aditya Mahajan
On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some

[NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some conditional text from here ... B \e % ... to here

Re: [NTG-context] Modes in tables

2018-09-10 Thread Wolfgang Schuster
Just use a empty line before the table. Wolfgang Jan Willem Flamma schrieb am 10.09.18 um 11:49: Thank you again Wolfgang. Yet another question: I like to get rid of the \par and tried integrating it into the tablesetups somehow. I've tried adding things like before={\blank} and before\par

Re: [NTG-context] Modes in tables

2018-09-10 Thread Jan Willem Flamma
Thank you again Wolfgang. Yet another question: I like to get rid of the \par and tried integrating it into the tablesetups somehow. I've tried adding things like before={\blank} and before\par but couldn’t get it to work. \starttext \startsetups [tablesetups] \setupTABLE [start]

Re: [NTG-context] Modes in tables

2018-09-07 Thread Wolfgang Schuster
Jan Willem Flamma schrieb am 07.09.18 um 20:01: Thank you Wolfgang. When comparing the results between tabulate and TABLE, I noticed some different results in formatting. 1. When using TABLE the table text is slightly shifted to the right. My initial guess was that this is due to the frame

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
of the table varies. It is larger when using tabulate. 4. The vertical space between the lines in the table text also varies. It is larger when using TABLE. (I left out the modes in MWE below because I don’t think it is relevant here.) \starttext \setupwhitespace[big] \startsetups [tablesetups

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
You can’t do this with tabulate but it’s possible with natural tables. %\enablemode [BL] \starttext \startsetups [tablesetups]     \setupTABLE [start]  [frame=off]     \setupTABLE [column] [1] [width=6cm,align=flushleft]     \setupTABLE [column] [2] [width=2cm,align=flushleft] \stopsetups

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
Dear list members I would like to disable to third column in the question when mode BL is not enabled. When mode BL is enabled (using the toggle), the third column should of course appear again. How can I achieve this? Regards, Jan Willem MWE: \starttext %Toggles %\enablemode[BL]

Re: [NTG-context] Question on enabling/disabling modes

2018-08-30 Thread Fabrice Couvreur
>>>> Fabrice >>>> >>>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a >>>> écrit : >>>> >>>>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : >>>>> >>>>> > > On 27 Aug 2018, at 14:14, Mikael

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
>>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a >>> écrit : >>> >>>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : >>>> >>>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist >>>> wrote: >>>>

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Fabrice Couvreur
>> > > >>> > > Hi! >>> > > >>> > > I am writing notes for my teaching and would like to do the >>> following with modes: >>> > > >>> > > * If the file is compiled with context file.tex then everything

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
m 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : >> >> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist >> wrote: >> > > >> > > Hi! >> > > >> > > I am writing notes for my teaching and would like to do the following >&

Re: [NTG-context] Question on enabling/disabling modes

2018-08-28 Thread Fabrice Couvreur
te: > > > > > > Hi! > > > > > > I am writing notes for my teaching and would like to do the following > with modes: > > > > > > * If the file is compiled with context file.tex then everything (i.e. > the content in all modes) is typeset. > > &

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Henning Hraban Ramm
Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > > > Hi! > > > > I am writing notes for my teaching and would like to do the following with > > modes: > > > > * If the file is com

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
On Mon, Aug 27, 2018 at 3:17 PM Taco Hoekwater wrote: > > > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > > > Hi! > > > > I am writing notes for my teaching and would like to do the following > with modes: > > > > * If the file is

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Taco Hoekwater
> On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > Hi! > > I am writing notes for my teaching and would like to do the following with > modes: > > * If the file is compiled with context file.tex then everything (i.e. the > content in all modes)

[NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
Hi! I am writing notes for my teaching and would like to do the following with modes: * If the file is compiled with context file.tex then everything (i.e. the content in all modes) is typeset. * If the file is compiled with context --mode=test1 file.tex then only mode test1 is typeset. I do

Re: [NTG-context] Parse oddity with modes, compilation halts

2018-01-02 Thread Hans Hagen
On 1/2/2018 7:48 PM, Rik Kabel wrote: Consider the following example: When this is run with --mode=vim, all is well. When the mode is not set, compilation fails. I suspect that the parser is scanning for the closing curlie of \inlineTEX but never sees it. \starttext \startmode[vim]

[NTG-context] Parse oddity with modes, compilation halts

2018-01-02 Thread Rik Kabel
Consider the following example: When this is run with --mode=vim, all is well. When the mode is not set, compilation fails. I suspect that the parser is scanning for the closing curlie of \inlineTEX but never sees it. \starttext \startmode[vim] \usemodule[t-vim]

Re: [NTG-context] Modes in Lua

2017-06-01 Thread Henning Hraban Ramm
Thank you all! Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD Am 2017-05-31 um 18:57 schrieb Hans Hagen <pra...@wxs.nl>: > On 5/31/2017 4:51 PM, Pablo Rodriguez wrote: >> This is the way to detect system modes, but I don’t

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Hans Hagen
On 5/31/2017 4:51 PM, Pablo Rodriguez wrote: On 05/31/2017 11:03 AM, MF wrote: if tex.modes['specialmode'] then context('I’m special.') end Best greetings, Massi Hi, this should be easy: How can I access ConTeXt’s modes in Lua? Is it any different with language modes (*en

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Pablo Rodriguez
On 05/31/2017 04:51 PM, Pablo Rodriguez wrote: > [...] > This is the way to detect system modes, but I don’t know how to do it > for \mainlanguage (**en). It was simple (not even using tex.systemmodes): \mainlanguage[es] \starttext \en\startlua if tex.m

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Pablo Rodriguez
On 05/31/2017 11:03 AM, MF wrote: > if tex.modes['specialmode'] then > context('I’m special.') > end > > Best greetings, > Massi > >> Hi, this should be easy: >> >> How can I access ConTeXt’s modes in Lua? Is it any different with >> language m

Re: [NTG-context] Modes in Lua

2017-05-31 Thread MF
if tex.modes['specialmode'] then context('I’m special.') end   Best greetings, Massi > Hi, this should be easy: > > How can I access ConTeXt’s modes in Lua? Is it any different with > language modes (*en)? > > e.g. > > \startluacode > > if context.modes['sp

[NTG-context] Modes in Lua

2017-05-31 Thread Henning Hraban Ramm
Hi, this should be easy: How can I access ConTeXt’s modes in Lua? Is it any different with language modes (*en)? e.g. \startluacode if context.modes['specialmode'] then context('I’m special.') end \stopluacode Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG

Re: [NTG-context] Different column modes and NAW

2016-12-19 Thread Mikael P. Sundqvist
On Sun, Dec 18, 2016 at 9:19 PM, Mikael P. Sundqvist wrote: > Dear list, > > I just realized that the very nice articles in "Nieuw archief voor > Wiskunde" (see > http://www.nieuwarchief.nl/serie5/index.php?deel=17=4=1 > ) are typeset with ConTeXt (at least it says so at >

[NTG-context] Different column modes and NAW

2016-12-18 Thread Mikael P. Sundqvist
Dear list, I just realized that the very nice articles in "Nieuw archief voor Wiskunde" (see http://www.nieuwarchief.nl/serie5/index.php?deel=17=4=1 ) are typeset with ConTeXt (at least it says so at http://www.nieuwarchief.nl/homeitems.php?onderwerp=2=1). I get curious. Does anyone here know

Re: [NTG-context] Nested modes and itemizations

2016-11-17 Thread Christoph Reller
On Thu, Nov 17, 2016 at 13:14:49 +0100 Hans Hagen wrote: > > On 11/17/2016 11:21 AM, Christoph Reller wrote: > > Hi, > > > > I have the following minimal not-working example: > > > > \starttext > > \startitemize > > \item One > > \startmode[modeA] > > \item Two > >

Re: [NTG-context] Nested modes and itemizations

2016-11-17 Thread Hans Hagen
On 11/17/2016 11:21 AM, Christoph Reller wrote: Hi, I have the following minimal not-working example: \starttext \startitemize \item One \startmode[modeA] \item Two \startitemize \startmode[modeB] % <- this \item Two A % <- does \stopmode % <- not work

[NTG-context] Nested modes and itemizations

2016-11-17 Thread Christoph Reller
Hi, I have the following minimal not-working example: \starttext \startitemize \item One \startmode[modeA] \item Two \startitemize \startmode[modeB] % <- this \item Two A % <- does \stopmode % <- not work % \doifmode{modeB}{\item Two A} % <- this

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-10 Thread Wolfgang Schuster
Hans Hagen 10. November 2016 um 17:27 search for 'blocks' ... \defineblock ... \hideblocks \keepblocks \useblocks \processblocks \selectblocks This doesn’t solve the problem because he want a document which contains *only* certain blocks and nothing else, a solution for

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-10 Thread Hans Hagen
(typeset with \startexercise \stopexercise, defined as an enumeration). Is it possible to use modes (or any other trick) to be able to compile the same file and get only the exercises. For example, context file.tex should give the full document, while context --mode=exercises file.tex should give

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-06 Thread Mikael P. Sundqvist
q/337738/52406), and got the answer that > what I want to do might not be possible. > > In my large document I have exercises (typeset with \startexercise > \stopexercise, defined as an enumeration). Is it possible to use modes > (or any other trick) to be able to compile the same file an

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-06 Thread Wolfgang Schuster
cument I have exercises (typeset with \startexercise \stopexercise, defined as an enumeration). Is it possible to use modes (or any other trick) to be able to compile the same file and get only the exercises. For example, context file.tex should give the full document, while context --mode=exe

[NTG-context] Extract only certain part of document (via modes)?

2016-11-06 Thread Mikael P. Sundqvist
as an enumeration). Is it possible to use modes (or any other trick) to be able to compile the same file and get only the exercises. For example, context file.tex should give the full document, while context --mode=exercises file.tex should give only all the exercises (or just everything "i

[NTG-context] Alternative width of figures in different documents (problem with modes?)

2013-02-05 Thread Jaroslav Hajtmar
Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without visual effect. Compilation with the standalone version fails. What

Re: [NTG-context] Alternative width of figures in different documents (problem with modes?)

2013-02-05 Thread Wolfgang Schuster
Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without

Re: [NTG-context] Alternative width of figures in different documents (problem with modes?)

2013-02-05 Thread Jaroslav Hajtmar
Thanx Wolfgang. I might have guessed :-). Anyway, thanks for inspiring solutions ... Jaroslav Hajtmar Dne 5.2.2013 14:15, Wolfgang Schuster napsal(a): Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. I would like use modes alternative to change of image

[NTG-context] modes + arranging

2012-07-08 Thread Thomas A. Schmitz
Hi all, sorry for the slightly silly example, but it's something I can't figure out, and it has worked before. For processing my documents, I have defined a mode which will arrange pages. Here's the silly example test.tex: \startmode[arranged] \setuppapersize[A6][A4] \setuparranging[2*4]

Re: [NTG-context] modes + arranging

2012-07-08 Thread Hans Hagen
On 8-7-2012 20:06, Thomas A. Schmitz wrote: Hi all, sorry for the slightly silly example, but it's something I can't figure out, and it has worked before. For processing my documents, I have defined a mode which will arrange pages. Here's the silly example test.tex: Can you test with

Re: [NTG-context] modes + arranging

2012-07-08 Thread Thomas A. Schmitz
On 07/09/2012 12:17 AM, Hans Hagen wrote: Can you test with c_flags.noarrange = nil in line 671 in mtx-context.lua (some time ago the 'opt' file has been replaced by passing commandline arguments and this slipped through). Hans Hi Hans, yes, when I change this line,

[NTG-context] A problem with modes

2012-06-26 Thread Marcin Borkowski
Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode with \definestartstop? Or is there a better way to do something like

Re: [NTG-context] A problem with modes

2012-06-26 Thread Aditya Mahajan
On 2012-06-26, at 10:12 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
Am 26.06.2012 um 22:12 schrieb Marcin Borkowski: Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode

Re: [NTG-context] A problem with modes

2012-06-26 Thread Marcin Borkowski
}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode with \definestartstop? No you can’t. I was afraid of this... Or is there a better way to do something like this? It depends on what you want to do. You can create a buffer command

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
modes. \startamode “A” mode. \stopamode \stoptext Thanks, it worked. One question: is there any difference between \def\starta{...} \def\stopa{...} and \definestartstop[a][before={...},after={…}] Yes because in my definition for \startamode I start a buffer which reads

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Jaroslav Hajtmar
Hello Hans. Is it possible that I'm still not working? I just updated and always ends the same compilation error. My older projects do not compile. It can be a problem in anything else? When I ignore the error message, then finally generates a PDF file, but the first three rows in PDF file

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Salil Sayed
...@gyza.cz To: Hans Hagen pra...@wxs.nl Cc: mailing list for ConTeXt users ntg-context@ntg.nl Sent: Sunday, November 13, 2011 12:06 PM Subject: Re: [NTG-context] Project structure and modes Hello Hans. Is it possible that I'm still not working? I just updated and always ends the same compilation

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Wolfgang Schuster
Am 13.11.2011 um 13:36 schrieb Salil Sayed: Hi, I get a similar error with a beta updated today. See below. core-env.mkiv (line 226): -\def\resetsystemmode#1% +\def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Jaroslav Hajtmar
Thanks Wolfgang, but unfortunately for me it still does not work... Jaroslav Dne 13.11.2011 14:13, Wolfgang Schuster napsal(a): -\def\resetsystemmode#1% +\def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Wolfgang Schuster
Am 13.11.2011 um 14:38 schrieb Jaroslav Hajtmar: Thanks Wolfgang, but unfortunately for me it still does not work… Minimal example: \startcomponent test \input knuth \stopcomponent With the current beta this fails but after I changed \def\resetsystemmode#1%

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Jaroslav Hajtmar
Thanks many times Wolfgang. You were right! I forgot to regenerate the format in the standalone version, respectively I instead regenerated ConTeXt format in TeXLive 2011, which you probably assumed in your mail :-). Everything is in order now. Thanks again. Jaroslav Dne 13.11.2011

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Hans Hagen
}{NO} \stopproduct I've added it but it needs checking as we need to push/pop modes (so there is now also \pushmode \popmode). I have a hard time imagining a situation where push/pop modes will be useful. It it just so that we can avoid a group? indeed and in this case, environments and such are definitely

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Jaroslav Hajtmar
{*product}{YES}{NO} \stopproduct I've added it but it needs checking as we need to push/pop modes (so there is now also \pushmode \popmode). I have a hard time imagining a situation where push/pop modes will be useful. It it just so that we can avoid a group? indeed and in this case, environments

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Hans Hagen
On 12-11-2011 13:03, Jaroslav Hajtmar wrote: Hello, Hans. Did not make a change now (in project structure)? I've updated an thirty minutes ago ConTeXt and stopped me working translation of things that I have a few days in order compiled. fixed It is possible to go some way older install

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Jaroslav Hajtmar
OK... thanx I'm sorry to bother you., but give the corrected version to download soon? I am not working at the moment the project. Thanks Jaroslav. Dne 12.11.2011 13:46, Hans Hagen napsal(a): On 12-11-2011 13:03, Jaroslav Hajtmar wrote: Hello, Hans. Did not make a change now (in project

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Hans Hagen
On 12-11-2011 13:55, Jaroslav Hajtmar wrote: OK... thanx I'm sorry to bother you., but give the corrected version to download soon? I am not working at the moment the project. normally the garden syncs on the (half) hour Hans

[NTG-context] Project structure and modes

2011-11-11 Thread Wolfgang Schuster
Hi Hans, can you add the systemmodes for products, components etc. in MkIV because they are missing. \startproduct test \doifmodeelse{*product}{YES}{NO} \stopproduct Wolfgang ___ If your question is of interest to

Re: [NTG-context] Project structure and modes

2011-11-11 Thread Hans Hagen
On 11-11-2011 16:02, Wolfgang Schuster wrote: Hi Hans, can you add the systemmodes for products, components etc. in MkIV because they are missing. \startproduct test \doifmodeelse{*product}{YES}{NO} \stopproduct I've added it but it needs checking as we need to push/pop modes (so

Re: [NTG-context] Project structure and modes

2011-11-11 Thread Aditya Mahajan
as we need to push/pop modes (so there is now also \pushmode \popmode). I have a hard time imagining a situation where push/pop modes will be useful. It it just so that we can avoid a group? Aditya ___ If your

[NTG-context] Escaping from modes set for tabulate

2011-01-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to escape from modes (fonts) defined in \starttabulate[...]? I mean just for header - to escape the math mode and to switch to normal font temporarily: --- \starttext I get: \starttabulate[|lT|mc|p|] \NC Code \NC Symbol\NC Description \NC\NR \HL

Re: [NTG-context] Escaping from modes set for tabulate

2011-01-14 Thread Peter Münster
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz writes: \NC {\normalfont Code} \NC {\nomath Symbol} \NC Description \NC\NR \NC {\rm Code} \NC \text{Symbol} \NC Description \NC\NR -- Peter Münster Contact information: http://pmrb.free.fr/contact/

[NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Matija Šuklje
Hullo, I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include modes. The thing is that modes seem to be set right and work when invoked in CLI (e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems to completely igonore lines in text such as: \enablemode

Re: [NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Wolfgang Schuster
Am 24.10.2010 um 21:21 schrieb Matija Šuklje: Hullo, I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include modes. The thing is that modes seem to be set right and work when invoked in CLI (e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems

Re: [NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Matija Šuklje
Dne nedelja 24. oktobra 2010 ob 21:27:58 je Wolfgang Schuster napisal(a): Do you enable the mode before it is used or after it, e.g. That did it, thanks :) Cheers, Matija -- gsm:+386 41 849 552 www:http://matija.suklje.name xmpp: matija.suk...@gabbler.org signature.asc

Re: [NTG-context] modes

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-14 um 15:57 schrieb Hans Hagen: (for module writers) The latest beta gives access to modes at the lua end Wikified (unmodified): http://wiki.contextgarden.net/Modes#Modes_in_LuaTeX Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http

[NTG-context] modes

2010-10-14 Thread Hans Hagen
Hi, (for module writers) The latest beta gives access to modes at the lua end \starttext \enablemode[test] \enablemode[] \doifallmodes{test,xxx}{NO} \doifallmodes{test,}{YES} \doifmode{test}{YES} \doifnotmode{xxx}{YES} \startluacode tex.sprint(tex.modes['x']and YES or NOP

Re: [NTG-context] Indents, enumerations, and modes (mk2+mk4)

2010-06-02 Thread Aditya Mahajan
On Wed, 2 Jun 2010, Wolfgang Schuster wrote: Am 02.06.10 00:14, schrieb Matthias Weber: Dear all, I have two questions regarding using spacing in enumerations. Depending on a mode being enabled, I would like to add a command at the beginning of an enumeration (I want to place something in

[NTG-context] Indents, enumerations, and modes (mk2+mk4)

2010-06-01 Thread Matthias Weber
Dear all, I have two questions regarding using spacing in enumerations. Depending on a mode being enabled, I would like to add a command at the beginning of an enumeration (I want to place something in the margin, but it doesn't actually matter what I do, only when). As shown in the

Re: [NTG-context] Indents, enumerations, and modes (mk2+mk4)

2010-06-01 Thread Wolfgang Schuster
Am 02.06.10 00:14, schrieb Matthias Weber: Dear all, I have two questions regarding using spacing in enumerations. Depending on a mode being enabled, I would like to add a command at the beginning of an enumeration (I want to place something in the margin, but it doesn't actually matter what

[NTG-context] nested modes

2009-09-16 Thread Peter Münster
Hello, Here is a problem with nested modes: \starttext no mode \startmode[mode1] mode1a \startmode[mode2] mode2 \stopmode mode1b % this is printed, but it should not \stopmode no mode \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] nested modes

2009-09-16 Thread Hans Hagen
Peter Münster wrote: Hello, Here is a problem with nested modes: \starttext no mode \startmode[mode1] mode1a \startmode[mode2] mode2 \stopmode mode1b % this is printed, but it should not \stopmode no mode \stoptext indeed, will never work, when nested use \startlocalmode

Re: [NTG-context] modes questions

2008-09-30 Thread Alan Stone
On Mon, Sep 29, 2008 at 10:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best

Re: [NTG-context] modes questions

2008-09-30 Thread Hans Hagen
Alan Stone wrote: Are there currently other ones than those listed above which already have been implemented ? How can one follow along which additional ones are implemented with the update releases ? --help or just looking at the code i have no time to write/update a manual now Hans

Re: [NTG-context] modes questions

2008-09-29 Thread Alan Stone
On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === ?xml version='1.0' standalone='yes

Re: [NTG-context] modes questions

2008-09-29 Thread Hans Hagen
Alan Stone wrote: On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === ?xml version='1.0

Re: [NTG-context] modes questions

2008-09-21 Thread Hans Hagen
Alan Stone wrote: On Sat, Sep 20, 2008 at 6:07 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb

Re: [NTG-context] modes questions

2008-09-20 Thread Alan Stone
Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} ... \doifmode{mz}{\cmd[name][vz]} a macro which does: \doifmode{m*}{\cmd[name][v*]} (2) instead of \doifmode{ma}{\cmd[p

Re: [NTG-context] modes questions

2008-09-20 Thread Hans Hagen
Alan Stone wrote: Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} \doifmode{mz}{\cmd[name][vz]} a macro which does: \doifmode{m*}{\cmd[name][v

  1   2   >