[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
h I imagine there will still be > use-cases for html/epub export.) > > > > I have a document where different versions should have a different > number of images. Following an earlier suggestion from Wolfgang, I usually > handle differences between versions of the same document u

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Bruce Horrocks
ugh I imagine there will still be use-cases for > html/epub export.) > > I have a document where different versions should have a different number of > images. Following an earlier suggestion from Wolfgang, I usually handle > differences between versions of the same document u

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
Hi Mikael, > We have some kind of working setup at the moment (here I have some lua > file that compiles lectures in different files to different xhtml > files, exporting svg files for formulas automatically, and so on), but > this is something that will be discussed further during the meeting, >

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Mikael Sundqvist
Hi Florent, On Thu, Aug 14, 2025 at 2:40 PM Florent Michel wrote: > > > AFAIK you need \startimage … \stopimage around everything that should > > become a SVG. > > Ah, good point! I tried adding \startimage … \stopimage around \sttartformula > ... \stopformula , with no luck, unfortunately. > >

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
> AFAIK you need \startimage … \stopimage around everything that should > become a SVG. Ah, good point! I tried adding \startimage … \stopimage around \sttartformula ... \stopformula , with no luck, unfortunately. However, after looking at mtx-epub.lua and experimenting, I realised that running

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 13:32 schrieb Florent Michel: Thanks a lot Henning! You’re welcome. I tried running: ``` context ./test.tex --mode=show_formula mtxrun --script epub --images test ``` but it still does not seem to generate the images. Is there another option I should pass to either context or

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
Thanks a lot Henning! > The epub script works on the exported xml from a previous context run. > You can apply your mode there. Ah, it seems I was running context and mtxrun in the wrong order. Thanks for the pointer! I tried running: ``` context ./test.tex --mode=show_formula mtxrun --script ep

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 10:01 schrieb Florent Michel: Hi, TL;DR: Is there a way to pass a `mode` argument when running `mtxrun -- script epub --images`? The epub script works on the exported xml from a previous context run. You can apply your mode there. \setupbackend[export=yes]

[NTG-context] mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
agine there will still be use-cases for html/epub export.) I have a document where different versions should have a different number of images. Following an earlier suggestion from Wolfgang, I usually handle differences between versions of the same document using modes, which works very well for pdf ou

[NTG-context] Re: Modes & enumerations

2025-06-05 Thread Aditya Mahajan
On Wed, 28 May 2025, Matthias Weber wrote: > Hello all, > > I would like to typeset a certain enumeration when a corresponding mode is > enabled, like so: > > \defineenumeration[Solution] > [text={Solution:}, > headstyle=bold, >

[NTG-context] Re: Modes & enumerations

2025-06-05 Thread Pablo Rodriguez via ntg-context
On 5/29/25 03:26, Matthias Weber wrote: > [...] > Is there a suitable incantation to make this work? Hi Matthias, I guess that this is only a workaround: \defineenumeration [Solving] [text={Solution:}, headstyle=bold, style=normal,

[NTG-context] Modes & enumerations

2025-05-28 Thread Matthias Weber
Hello all, I would like to typeset a certain enumeration when a corresponding mode is enabled, like so: \defineenumeration [Solution] [text={Solution:}, headstyle=bold, before={\startmode[soluti

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

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
l experiment 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 bey

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[

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 \begi

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

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
sts 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 you nee

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 condi

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

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.

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

[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

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
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] \defin

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 P. Su

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
gt; > > >>> > > 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) is

[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] \definevimtyping[T

Re: [NTG-context] Modes in Lua

2017-05-31 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 : > On 5/31/2017 4:51 PM, Pablo Rodriguez wrote: >> This is the way to detect system modes, but I don’t know how to do it >> fo

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

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.modes[&#

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

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 > >

[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.c

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&nummer=4&taal=1 > ) are typeset with ConTeXt (at least it says so at > http://www.

[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&nummer=4&taal=1 ) are typeset with ConTeXt (at least it says so at http://www.nieuwarchief.nl/homeitems.php?onderwerp=2&taal=1). I get curious. Does an

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 > > \startitemize > >

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 work

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
gt; 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 and get only > the exercises. For exam

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
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

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 : Hello ConTeXist. I would like use modes alternative to change of image dimensions in

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 : > 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 &

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

2013-02-05 Thread Marco Patzer
On 2013–02–05 Jaroslav Hajtmar wrote: > 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 th

[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 is

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, ar

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

[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] \s

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
;> %\def\stopamode {\getbuffer[amode]} >> >> \starttext >> >> All modes. >> \startamode >> “A” mode. >> \stopamode >> >> \stoptext > > Thanks, it worked. One question: is there any difference between > > \def\starta{...} >

Re: [NTG-context] A problem with modes

2012-06-26 Thread Marcin Borkowski
after={\stopmode}] > > > > \starttext > > > > All modes. > > \startamode > > ``A'' mode. > > \stopamode > > > > \stoptext > > > > Can I use \startmode with \definestartstop? > > No you can’t. I was afraid

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'

Re: [NTG-context] A problem with modes

2012-06-26 Thread Aditya Mahajan
On 2012-06-26, at 10:12 PM, Marcin Borkowski wrote: > Hello, > > this doesn't work for me: > > \definestartstop[amode][before={\startmode[a]}, >after={\stopmode}] > > \starttext > > All modes. > \startamode > ``A'

[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 some

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 14:43

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% {\ifcsname\@mode@:\systemmode

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 \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsn

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 \expandafter\popmacro\csname\@mode@:\systemmodepref

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Salil Sayed
: Jaroslav Hajtmar To: Hans Hagen Cc: mailing list for ConTeXt users 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 error. My older proj

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 are

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 -

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 s

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 stan

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Jaroslav Hajtmar
\stopprojectindeed ->\popsystemmode \v!project \stoptext \signalendofinput \... l.1 \stopprojectindeed \ctxcommand ...\directlua \zerocount {commands.#1} \stopproject ->\ctxcommand {stopproject ()} \honorendofinput l.22 \stopproject ? Dne 12.11.2011 11:17, Hans Hagen napsal(a): On 12-11-2011 0

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Hans Hagen
} \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 defin

Re: [NTG-context] Project structure and modes

2011-11-11 Thread Aditya Mahajan
cking 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

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 the

[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 o

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

2011-01-14 Thread Peter Münster
Procházka Lukáš Ing. - Pontex s. r. o. 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] 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] 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 Descriptio

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. '

[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

Re: [NTG-context] modes

2010-10-14 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

  1   2   >