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

Re: [NTG-context] Product-component structure

2016-06-24 Thread Hans Hagen
;, processfilemany }, } } Then, why is the product file processed multiple times? because one might want to combine products (controlled by modes giving different results) .. mostly downward compatible -

Re: [NTG-context] new features

2016-05-22 Thread Hans Hagen
time implies a \definemode for that mode. Doing so avoids another macro to remember: less clutter for my brain ;-) because one property of modes is that one doesn't have to define them, you'd be quite unhappy if you would have to define all possible modes that could be introduced in styles The idea was

Re: [NTG-context] new features

2016-05-22 Thread Meer, Hans van der
oids another macro to remember: less clutter for my brain ;-) because one property of modes is that one doesn't have to define them, you'd be quite unhappy if you would have to define all possible modes that could be introduced in styles The idea was not to have the user define the mode, but

Re: [NTG-context] new features

2016-05-22 Thread Hans Hagen
efined modes (that is, set with: \enablemode, \disablemode or \definemode) can be tested about twice as fast as undefined modes which can make a small difference I do not understand this fully: - if the mode is undefined, how can "define an undefined mode" for a mode that has already be

Re: [NTG-context] new features

2016-05-22 Thread Meer, Hans van der
> On 26 Jun 2014, at 12:08, Hans Hagen <pra...@wxs.nl> wrote: > > Another addition is that > > \definemode[something][keep] > > define an undefined mode; the keep makes sure that the already set value is > kept (another option is 'yes'). > &g

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
keys (see the documentation of filter module[1], which is used by the vim module) There are two modes: location=paragraph and location=text. In location=paragraph you get \blank[] \blank[] In location=text (which is used by \inline...) you get The behaviour that you see is because

[NTG-context] Math fractions

2016-02-28 Thread Aditya Mahajan
in both inline and display mode. The output of \tfrac is wrong in both modes. In both modes, \tfrac should equal the current output of \frac in inline mode. Although I don't completely understand the code, my guess is that there is a bug in how mathstyle=text is implemented (really, mathstyle

Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Lukáš Procházka
y a) ConTeXt and b) Lua? Something like: \mainlanguage[cz] \ifmainlanguage{cz} Do someting \fi and if context.languages.active() == "cz" then -- Do somthing end You can use the modes mechanism for this because you can use ** to check for the main language (set by \mainlanguage)

Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Wolfgang Schuster
active() == "cz" then -- Do somthing end You can use the modes mechanism for this because you can use ** to check for the main language (set by \mainlanguage) and * for the current language (set by \language). \mainlanguage[cs] %\language[en] \starttext \doifelsemode{**cs}{The main l

Re: [NTG-context] \doifnotmodeelse - undefined control sequence error?

2015-09-15 Thread Jaroslav Hajtmar
s when writing the article on modes. I'll update the wiki accordingly. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.

Re: [NTG-context] \doifnotmodeelse - undefined control sequence error?

2015-09-15 Thread Aditya Mahajan
uested mode is enabled or disabled. My bad. I thought that I had checked this when writing the article on modes. I'll update the wiki accordingly. Aditya___ If your question is of interest to others as well, plea

Re: [NTG-context] Template for handling editorial content in a large book project

2015-08-08 Thread Aditya Mahajan
be included or not. Is there a recommended design pattern that I could use for this type of work? I am not sure I completely understand your question, but have a look at modes: http://wiki.contextgarden.net/Modes Aditya

Re: [NTG-context] Template for handling editorial content in a large book project

2015-08-08 Thread Pavneet Arora
Perfect. I think that modes will work nicely. To further explain my use case: I have a manuscript, which I would like to continue to evolve with editorial comments, suggestions, ideas for further development (some generated by the author, others by reviewers). At any given time the text

[NTG-context] Mode for footnote?

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are many modes for various situations (http://wiki.contextgarden.net/Modes). Is there a mode to signal being inside a footnote? This would be handy for head definition: \definehead[paragraph][subsubsubject] \define\ShBlank{\doifnotmode{*footnote}{\blank}} \setuphead

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-28 Thread Idris Samawi Hamid ادريس سماوي حامد
}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own question. Ok, thanks Pablo; will explore this as well, especially after I start writing the journal article. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Pablo Rodriguez
in ConTeXt to setup \placefootnotes etc. in a mode so that it gets invoked only in the export. Will explore this for the article.] How about the system mode: \doifmode{*export}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Idris Samawi Hamid ????? ????? ????
}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own question. Ok, thanks Pablo; will explore this as well, especially after I start writing the journal article. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy

Re: [NTG-context] output file size with repeated image

2015-04-14 Thread Hans Hagen
}{ \dorecurse{10}{ \input zapf\par}}} \stopmode \stoptext Output file sizes with different modes are the following: --mode=repeated-image745KB --mode=single-image 303KB --mode=no-image 302KB Although the image is the same (and it is only

[NTG-context] output file size with repeated image

2015-04-14 Thread Pablo Rodriguez
\stoptext Output file sizes with different modes are the following: --mode=repeated-image745KB --mode=single-image 303KB --mode=no-image 302KB Although the image is the same (and it is only embedded once) file size with repeated image is almost two and a half times

Re: [NTG-context] shrink JPGs to some resolution (dpi) ?

2015-03-09 Thread Pablo Rodriguez
with ImageMagick with two directories (such as print-quality and screen-quality)? If you use the same image file names, you could also use modes: \enablemode[print] \startmode[print] \setupexternalfigures[location=/home/user/project/img-print/] \stopmode \startmode[screen

Re: [NTG-context] \translate and PDF bookmarks

2015-01-29 Thread Wolfgang Schuster
}} \starttext \es\mimo \en\mimo \stoptext Headings except in PDF bookmarks are fine. How can I get titles in PDF bookmarks? You can’t use the \translate command to set different texts for bookmarks because it is unexpandable. What you can do is to use language dependent modes, e.g

Re: [NTG-context] \translate and PDF bookmarks

2015-01-29 Thread Pablo Rodriguez
modes, e.g. Many thanks for your fast reply, Wolfgang. This was exactly what I needed. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add

Re: [NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger
, but still “(van Halen 1984)” and “van Halen, Edward”. It would be nice if you could switch between two modes while invoking the citation. I have not yet discovered where this order is defined. ___ If your question

[NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger
Wolfgang von” in the publications list, but still “(van Halen 1984)” and “van Halen, Edward”. It would be nice if you could switch between two modes while invoking the citation. I have not yet discovered where this order is defined. Greetings Jörg

Re: [NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Keith Schultz
would not have talked about “von Goethe” but simply “Goethe”–so in a reference it would be “(Goethe 1774)” and “Goethe, Johann Wolfgang von” in the publications list, but still “(van Halen 1984)” and “van Halen, Edward”. It would be nice if you could switch between two modes while invoking

Re: [NTG-context] Formatting bibliographic inline references and publications list

2015-01-26 Thread Jörg Weger
. For now I have an important question regarding in-text references: Is there a way to switch between the following citation modes? I have to manage: * normal reference in brackets: author space year, no comma: e.g. “(Einstein 1904)” * author is named in the text, only year in brackets: e.g

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen
. Perhaps Modes ? http://wiki.contextgarden.net/Modes \starttext \definebuffer[Slide] foo % \skipSlide \startSlide bla bla bla \startyping language C code \stoptyping bla bla bla \stopSlide bar \stoptext

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread luigi scarso
have students of different levels. The gobbleinput solution is the best solution : I can activate or not a slide according to my audience. If I use the buffer solution, I'll not be able to deactivate the whole slide containing the typing region. Perhaps Modes ? http://wiki.contextgarden.net

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
: I can activate or not a slide according to my audience. If I use the buffer solution, I'll not be able to deactivate the whole slide containing the typing region. Perhaps Modes ? http://wiki.contextgarden.net/Modes -- luigi

[NTG-context] \preventmode does not work

2014-08-30 Thread Rik
At least in MKIV. I haven't tried MKII. The following example should demonstrate this. With no mode specified on the command line, this should enable mode three and prevent and disable the other modes. It seems that \preventmode is not only ineffective in what it is described as doing

Re: [NTG-context] ToC depth (and headers) per section block

2014-07-05 Thread Hans Hagen
, is there a solution that could be keyed on system modes or on section blocks, thus moving all of the styling to the preamble (to use a LaTeX term)? I currently do that to support different header formats in the body matter and appendices, using the following method, but I suspect that there may be a more

Re: [NTG-context] ToC depth (and headers) per section block

2014-07-05 Thread Rik Kabel
\completecontent and not \placelist[chapter,section], having excluded lower-level sectioning headers via \setupcombinedlist. I am asking if there is a way to take advantage of user-defined or system modes, or section blocks, to accomplish this without requiring explicit markup (silentsection in your example

[NTG-context] ToC depth (and headers) per section block

2014-07-04 Thread Rik Kabel
matter parts and a different depth for the appendices, is there a solution that could be keyed on system modes or on section blocks, thus moving all of the styling to the preamble (to use a LaTeX term)? I currently do that to support different header formats in the body matter and appendices

[NTG-context] using environments with project structure (in MkIV)

2014-03-01 Thread Sanjoy Mahajan
the \startproduct). The first problem is that it seems some of the functionality of products, projects, and components is lost. But maybe that's a matter of taste. Another problem is that env.tex doesn't know that one is compiling a product or component---thus, the system modes *product

Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Bill Meahan
(TeX-clean t) TeX-run-function nil t :help Delete generated intermediate and output files) (Other TeX-run-command t t :help Run an arbitrary command '(TeX-default-mode (quote context-en-mode)) '(TeX-engine (quote luatex)) '(TeX-kpathsea-path-delimiter t) '(TeX-modes (quote (tex-mode

[NTG-context] bug or needs warning documentation

2013-10-12 Thread d.henman
a blank line, which doesn't stand out as a syntax error in my mind, expecially when white space is supposed to be ignored by tex/context in usual modes. Has this been noticed before? The below works successfully \starttext \placefigure [here,none] [fig: reference tag

Re: [NTG-context] copypaste from pdf bug (smallcaps, text figures)

2013-08-02 Thread Hans Hagen
] [file:Iwona-Regular.otf*withnodetwo] \starttext test 1, both modes: {\iwonanone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonantwo 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabtwo 0123456789abcdefghijklmnopqrstuvwxyz}\par % test 2, base only

Re: [NTG-context] copypaste from pdf bug (smallcaps, text figures)

2013-08-02 Thread Philipp Gesang
-Regular.otf*withnodeone] \definefont [iwonabtwo] [file:Iwona-Regular.otf*withbasetwo] \definefont [iwonantwo] [file:Iwona-Regular.otf*withnodetwo] \starttext test 1, both modes: {\iwonanone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabone 0123456789abcdefghijklmnopqrstuvwxyz}\par

Re: [NTG-context] copypaste from pdf bug (smallcaps, text figures)

2013-08-02 Thread Philipp Gesang
-Regular.otf*withnodeone] \definefont [iwonabtwo] [file:Iwona-Regular.otf*withbasetwo] \definefont [iwonantwo] [file:Iwona-Regular.otf*withnodetwo] \starttext test 1, both modes: {\iwonanone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabone 0123456789abcdefghijklmnopqrstuvwxyz}\par

Re: [NTG-context] item bullet processing / font problem

2013-06-18 Thread hwitloc
\setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Pablo Rodríguez
On 16/06/13 21:03, Wolfgang Schuster wrote: Am 16.06.2013 um 09:46 schrieb Pablo Rodríguez oi...@web.de: [...] Is there no way to avoid orphans and widows in the lines environment? 1. Don’t use * in your setups names because names starting with an asterisk are system modes. 2. To load

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Wolfgang Schuster
names starting with an asterisk are system modes. 2. To load the defaults settings you have to use \setups[*reset] which needs the asterisks because it’s a system mode. 3.The settings doesn’t help because in the lines environment each line is a separate paragraph which makes \widowpenalty

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Hans Hagen
? 1. Don’t use * in your setups names because names starting with an asterisk are system modes. 2. To load the defaults settings you have to use \setups[*reset] which needs the asterisks because it’s a system mode. 3.The settings doesn’t help because in the lines environment each line is a separate

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Wolfgang Schuster
\brokenpenalty=1 \stopsetups I'm afraid that I get widow lines in the lines environment. Is there no way to avoid orphans and widows in the lines environment? 1. Don’t use * in your setups names because names starting with an asterisk are system modes. 2. To load the defaults

[NTG-context] Last standalone version suddenly will not load user module

2013-06-05 Thread Jaroslav Hajtmar
environment file first (document styles) mtx-context | --mode=listenable given the modes (conditional processing in styles) mtx-context | --path=listalso consult the given paths when files are looked for mtx-context | --arguments=list set variables that can

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-22 Thread Hans Hagen
interface that doesn't use predefined modes, but lets you setup the decimal mark, separator mark, the input decimal mark, etc. Something like this: \setupdigits [inputdecimal={.}, % input 3.1415926535 decimal={,} separator=\space, groupsize=4, % output 3,1415 9265 45

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-22 Thread Romain Diss
, % or times=\cdot ] +1 P.s: I've been thinking I'd like to write more contexty interface that doesn't use predefined modes, but lets you setup the decimal mark, separator mark, the input decimal mark, etc. Something like this: \setupdigits [inputdecimal={.}, % input

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Sietse Brouwer
={,}, % --\setdigitorder{0} signspace=yes,% --\setdigitsign{1}; '+ 1.4', not '+1.4' times=\times, % or times=\cdot ] Cheers, Sietse --- P.s: I've been thinking I'd like to write more contexty interface that doesn't use predefined modes, but lets you setup the decimal

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Romain Diss
modes, but lets you setup the decimal mark, separator mark, the input decimal mark, etc. Something like this: \setupdigits [inputdecimal={.}, % input 3.1415926535 decimal={,} separator=\space, groupsize=4, % output 3,1415 9265 45 signspace=,] % +3.14159

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Hans Hagen
} of use modes (often more natural) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
parameter? \getdocumentargument{myargument} My first try did not work, but now it does. Properly made a silly mistake somewhere. of use modes (often more natural) In this case it is not something to use, but it is certainly something to look into. -- Cecil Westerhof

[NTG-context] Missing number, treated as zero error when using \definefont with \define'd dimension

2013-03-21 Thread Lars Huttar
(no error) if I hard-code in 13pt instead of using an intervening \largefontsize definition. But if I hard-code the point size, it would hamper the modularity of our font configuration and the use of modes in which different size fonts are used. Maybe \define is just the wrong command to use when

Re: [NTG-context] Missing number, treated as zero error when using \definefont with \define'd dimension

2013-03-21 Thread Wolfgang Schuster
\SerifL{Hello} \stoptext Note that the SerifL font definition works fine (no error) if I hard-code in 13pt instead of using an intervening \largefontsize definition. But if I hard-code the point size, it would hamper the modularity of our font configuration and the use of modes in which

[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

Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Meigen, Thomas
-use components. Other aspects are - different modes (presentation, handout, manuscript) - poster production - nice graphics/animation via pstricks or metapost - export to other formats (when writing articles many journals in my field do not accept .tex-files) - export to epub/mobi format. I

Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Khaled Hosny
background. Sure, I am using MacTeX and TeXLive now for many years. What attracted me to ConTeXt was the project-product-component structure to use and re-use components. Other aspects are - different modes (presentation, handout, manuscript) - poster production - nice graphics

Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Hans Hagen
-component structure to use and re-use components. Other aspects are - different modes (presentation, handout, manuscript) 'modes' have always been around - poster production A1 papersizes are supported as are layers (the way to make posters). - nice graphics/animation via pstricks

[NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Lars Huttar
][name:GentiumBookBasic at \XXLfontsize] \definefont[SerifXXLB][name:GentiumBookBasic-Bold at \XXLfontsize] E16settings.tex: I added these definitions: \define\XLfontsize{14pt} \define\XXLfontsize{16pt} There are modes involved, so things are a bit more complicated, but I believe that is the only effective difference

Re: [NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Hans Hagen
] \definefont[SerifXXL][name:GentiumBookBasic at \XXLfontsize] \definefont[SerifXXLB][name:GentiumBookBasic-Bold at \XXLfontsize] E16settings.tex: I added these definitions: \define\XLfontsize{14pt} \define\XXLfontsize{16pt} There are modes involved, so things are a bit more complicated, but I believe

Re: [NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Lars Huttar
} // // There are modes involved, so things are a bit more complicated, but I // believe that is the only effective difference. / and how about: \def\XLfontsize{14pt} \def\XXLfontsize{16pt} I will try that, but all our font size definitions have always used \define, and it used to work fine without

Re: [NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Wolfgang Schuster
. / // E16settings.tex: I added these definitions: // \define\XLfontsize{14pt} // \define\XXLfontsize{16pt} // // There are modes involved, so things are a bit more complicated, but I // believe that is the only effective difference. / and how about: \def\XLfontsize{14pt} \def\XXLfontsize{16pt

Re: [NTG-context] Search path for .tex files (mkiv)

2012-10-30 Thread Wolfgang Schuster
takes the name of the current file as argument, the name of the file is tired in the command \currentcomponent. In MkIV you can replace the name with “*” and context would still print the correct name with \currentcomponent. The asterisk in modes indicates that you use a system mode which

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Marco Patzer
On 2012-09-10 Ian Lawrence physics.roo...@gmail.com wrote: Hi Ian, I'd like to pass variables into context on invocation, just as you can do with setting modes So context --arguments=number=8, time=full-time --mode=trial test.tex context --number=8 --time=full-time test.tex

[NTG-context] Code in contextref-env.tex

2012-08-22 Thread john Culleton
the sequences like \v!and \c! etc. mean. Are they references to modes? -- John Culleton Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Police Procedural and Expose: Death Wore Black Create Book Covers with Scribus http://www.booklocker.com/books/4055.html

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Aditya Mahajan
!before=,\c!after=] I have no idea what the sequences like \v!and \c! etc. mean. Are they references to modes? Search for multi-lingual on this page: http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments Aditya

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Sietse Brouwer
I have no idea what the sequences like \v!and \c! etc. mean. Are they references to modes? I asked much the same question on tex.stackexchange.com two months ago, except mine was not so nice and focused. Aditya gave a very nice explanation of what the letters do; clearer than the one

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Hans Hagen
On 22-8-2012 23:02, Sietse Brouwer wrote: I have no idea what the sequences like \v!and \c! etc. mean. Are they references to modes? I asked much the same question on tex.stackexchange.com two months ago, except mine was not so nice and focused. Aditya gave a very nice explanation of what

[NTG-context] Draft version of document

2012-08-04 Thread Roger Mason
version will need to be double spaced. Obviously, I'd rather use the existing source to generate both draft and well-formatted versions, so it sounds like a job for modes. Before I start hacking, has someone done this already or is ther an alternative method of accomplishing this? Thanks, Roger

Re: [NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
ran context with --arrange Sorry, I saw the thread modes + arranging by Thomas A. Schmitz just as I pressed send. I guess the next beta will fix it, yes? Greetlings, Hraban ___ If your question is of interest

Re: [NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
ran context with --arrange Sorry, I saw Thomas’ thread modes + arranging only after pressing send. This is fixed with tonight’s beta, thank you! But the table of content is missing now... Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https

[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

[NTG-context] frame and numbering of code snippets using vim-module

2012-06-06 Thread Xenia
\setupsystem[\c!n=2,\c!m=2] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used

Re: [NTG-context] thelabel problem

2012-05-28 Thread Alfredo Catalina
options } system options \stopluacode system options % process info system options \setupsystem[inputfile=kk.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
used options % process info used options \setupsystem[inputfile=g] used options \setupsystem[\c!n=3,\c!m=1] used options \enabledirectives[system.runonce] used options % modes used options % options (not that important) used options \startsetups *runtime:options used

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-06 Thread Xenia
document.files={ used options linewrap, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=linewrap] used options \setupsystem[\c!n=2,\c!m=2] used options % modes used options % options (not that important) used

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
options document.files={ used options code, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=code] used options \setupsystem[\c!n=2,\c!m=2] used options % modes used options % options (not that important) used

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
document.arguments={ used options } used options document.files={ used options linewrap, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=linewrap] used options \setupsystem[\c!n=2,\c!m=2] used options % modes used options

Re: [NTG-context] Recommendation for including MATLAB-scripts

2012-04-22 Thread Xenia
line driven) \unprotect % feedback and basic job control % handy for special styles \startluacode document = document or { } document.arguments={ } document.files={ 2, } \stopluacode % process info \setupsystem[inputfile=2] \setupsystem[\c!n=1,\c!m=1] % modes % options (not that important

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-16 Thread Thomas A. Schmitz
to use with modes - but the answer must be an other. No, I get the result you want with my code. \startmode[booklet] \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \stopmode \starttext One \page \startmode[booklet] \null \page \stopmode Two \page Three \page Four \page Five

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Thomas A. Schmitz
the desired empty page manually. On a wild guess: if you want different versions for print and for screen, you can use modes (that's what I do for some of my stuff). in pseudo-code: \startmode[booklet] \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \stopmode \starttext First page

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Jan Heinen
With your code I get: 1 2 first page of the pdf 3 4 second 5 6 third 7 8 fourth But I want to get: 1 first page of the pdf (coverpage) 2 3 second 4 5 third 6 7 fourth 8 fifth (coverpage) I know how to use with modes - but the answer must

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Aditya Mahajan
with modes - but the answer must be an other. Maybe I have to explain it more clearly: on the first PDF-Page (A5) there should be only the cover-page (page 1) \setuppapersize[A5][A5] \setuparranging[1SIDE]%- I don't know how to write it - nothing was working On the second PDF-Page

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
\stopluacode used options % process info used options \setupsystem[inputfile=Source/Makeup/Table_of_Contents_Standalone_Product.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
=Source/Makeup/Table_of_Contents_Standalone_Product.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
% process info used options \setupsystem[inputfile=Source/Handbook.tex] used options \setupsystem[file=Avaneya Project Crew Handbook.pdf] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups

[NTG-context] Problem with external cross-references

2012-02-25 Thread Jean-Philippe Rey
[inputfile=test_crossref1.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \setuparranging[\v!disable] system

Re: [NTG-context] columnsets error in 2.08 beta

2012-02-17 Thread Philipp Gesang
options \setupsystem[inputfile=K2.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options

Re: [NTG-context] columnsets error in 2.08 beta

2012-02-16 Thread Peter Park Nelson
    } used options     \stopluacode used options     % process info used options     \setupsystem[inputfile=K2.tex] used options     \setupsystem[\c!n=1,\c!m=1] used options     % modes used options     % options (not that important) used options     \startsetups *runtime:options used options

<    1   2   3   4   5   6   7   >