Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Hans Hagen

On 17-10-2010 11:02, Aditya Mahajan wrote:

On Sun, 17 Oct 2010, Hans Hagen wrote:


On 17-10-2010 8:54, Aditya Mahajan wrote:


Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv
is a normal mode or a system mode.


IIRC, system modes cannot be reset using \(enable|disable)mode.


there is nothing special about system modes: they just have a * in
front so you can enable and disable them (but of course deep down they
can be set as well)


OK. So the * is just so that they are not accidently overwritten.

But I do not like the different treatment for MkII:

cont-new.mkii

\enablemode[mkii]

cont-env.mkiv

\enablemode[mkiv] \newsystemmode{mkiv} \setsystemmode{mkiv}

One more minor difference to remember.


Ah, ok, I can add that to mkii of course (actuallym, it shoul dnot be in 
cont-new any longer) ... I just had forgotten that there was a mkii mode 
at all.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] 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
\NC Gamma\NC \gamma\NC Self weight \NC\NR
  \stoptabulate

  And I'd rather get:

  \starttabulate[|l|c|p|]
\NC Code \NC Symbol\NC Description \NC\NR
\HL
\NC \tt Gamma\NC $\gamma$  \NC Self weight \NC\NR
  \stoptabulate

  But simply -- I'm looking for something like (code bellow causes errors):

  \starttabulate[|lT|mc|p|]
\NC {\normalfont Code} \NC {\nomath Symbol} \NC Description \NC\NR
\HL
\NC Gamma  \NC \gamma   \NC Self weight \NC\NR
  \stoptabulate
\stoptext

---

Kind regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Tab5.mkiv
Description: Binary data


t-Tab5.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Slides and notes

2003-11-03 Thread Hans Hagen
At 13:44 03/11/2003, you wrote:

 I use the modes mechanism (\startmode, \stopmode and friends) and I am
 lacking imagination as to want more.
Something like :

\startslide

\stopslide

\startnote

\stopnote

together with modes screen and handout that would either generate
only slides or print them like this :

| --   |
| ||   notes   |
| ||   notes   |
| ||   |
| ||   |
| --   |
|  |
| --   |
| ||   notes   |
| ||   notes   |
| ||   |
| ||   |
| --   |

you can try the following:

 annotate.tex

% output=pdftex interface=en

% beware, page comments are buffers !

\setupcolors[state=start]

\setupbackgrounds[page][background=color,backgroundcolor=gray]

\setuppapersize[S6][S6]

\starttext

\startbuffer

\input tufte

\startpagecomment
  \input knuth
\stoppagecomment
\page

\input knuth

\startpagecomment
  \input tufte
\stoppagecomment
\page

\input douglas

\startpagecomment
  \input douglas
\stoppagecomment
\page

\input ward

\startpagecomment
  \input ward
\stoppagecomment
\page

\stopbuffer

\setuppagecomment[state=start,location=right]   \getbuffer
\setuppagecomment[state=start,location=bottom]  \getbuffer
\setuppagecomment[state=start,location=left]\getbuffer
\setuppagecomment[state=start,location=top] \getbuffer
\stoptext

% present.tex

\setuppapersize
  [A4][A4] % [A4,landscape][A4,landscape]
\setuplayout
  [header=0pt, footer=1cm,
   backspace=1cm, topspace=1cm,
   width=middle, height=middle]
\setupfootertexts
  [presentation\space---\space
   \currentdate\space---\space
   \pagenumber]
\starttext

  \combinepages[annotate][nx=2,ny=3,frame=on]

\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Where to put a module?

2010-03-07 Thread Thomas A. Schmitz

On Mar 7, 2010, at 11:54 AM, Philipp Gesang wrote:

 Dear listmates,
 
 
 a while ago I made some lua tables to aid myself in transliteration of
 various scripts.  I thought this could be of general interest so I built
 a module from it and threw in some source documentation and a tiny
 manual, too.
 
 Right now it contains modes for Cyrillic, Glagolitic and Greek scripts,
 older variants included, full ISO 9 support, and two transcription modes
 as well.  (There's a showcase of examples in the manual.)  It allows
 global setups and local adjustments.
 
 It splendidly works for me, but maybe somebody wants to review it before
 I post it on the list, so whom should I send it to? 

Just one thought on your transliterator: a couple of years ago, Hans set up 
something a bit similar for Greek. It is based on lpeg, though, not gsub and so 
should be somewhat faster. If you look at
context/tex/texmf-context/scripts/context/lua/mtx-babel.lua
you'll see what he did. In theory, this mechanism is general, and all sorts of 
transliteration schemes could be hooked into it. Might give you some ideas or 
not...

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
I can not define a mode for each of my slide neither I can express a list of 
activated slides.


On 06 Nov 2014, at 14:12, luigi scarso luigi.sca...@gmail.com wrote:

 
 
 On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François Bonnefoi bonne...@unilim.fr 
 wrote:
 Hello Wolfgang and Luigi,
 
 My example lines are too small to fully understand the purpose of using the 
 gobbleinput instruction :
 I have made some slides for my students that I can choose or not ton include 
 in the final presentation :
 
 \skipSlide
 \startSlide
   bla bla bla
   \startyping
   language C code
   \stoptyping
   bla bla bla
 \stopSlide
 
 I've made some macros to include or not a slide according to its number given 
 into a list or by just putting before the macro \skipSlide.
 This is very useful as I 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/Modes
 
 
 
 -- 
 luigi
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr 
http://libpfb.so/
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
123 av Albert Thomas|  Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE| The Avengers.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen

On 11/6/2014 2:29 PM, Pierre-François Bonnefoi wrote:

I can not define a mode for each of my slide neither I can express a
list of activated slides.


On 06 Nov 2014, at 14:12, luigi scarso luigi.sca...@gmail.com
mailto:luigi.sca...@gmail.com wrote:




On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François
Bonnefoibonne...@unilim.fr mailto:bonne...@unilim.frwrote:

Hello Wolfgang and Luigi,

My example lines are too small to fully understand the purpose of
using the gobbleinput instruction :
I have made some slides for my students that I can choose or not
ton include in the final presentation :

\skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide

I've made some macros to include or not a slide according to its
number given into a list or by just putting before the macro
\skipSlide.
This is very useful as I 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/Modes


\starttext

\definebuffer[Slide]

foo

% \skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide

bar

\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] 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').
> 
> Using defined 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 been given a value with either \enablemode or \disablemode keep a 
value? Must not \enablemode, \disablemode do some sort of 'defining' in order 
to facilitate testing? Does "define" here implements some other mechanism than 
the 'defining' done by \enablemod, \disablemode?

Is this what happens:
- if \enablemode or \disablemode has been used before to set a value for the 
mode, than \definemode[themode][keep] stashes some special definition of that 
mode and does not change c.q. transfers its value;
- \definemode[themode][yes] and \definemode[themode][no] always set that value 
for the mode in case, regardless of what has been done by a preceding 
\enablemode or \disablemode.

Is that the correct interpretation? Just to make sure I understand.

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)

Hans van der Meer




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2016-11-06 Thread Wolfgang Schuster

Mikael P. Sundqvist <mailto:mic...@gmail.com>
6. November 2016 um 12:51
Dear list, and in particular Hans,

I asked the same question on stackexchange before today
(http://tex.stackexchange.com/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 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 "in one mode")?
You can put each exercise in a block and ask Hans to add a \saveblocks 
commands
which writes the content of all exercise blocks to a external file (like 
\savebuffer lets

you save the content of a buffer in a external file).


\defineblock[exercise]
\keepblocks [exercise]

\defineenumeration[exercise][text=Exercise]

%\doifmode{exercises}{\saveblocks[exercise][exercises.tex]}

\starttext

\beginexercise
\startexercise
This is the first exercise.
\stopexercise
\endexercise

\beginexercise
\startexercise
This is the second exercise.
\stopexercise
\endexercise

\stoptext


The content of this saved file can then be read by another file
to get a document which contains only the exercises.


\defineenumeration[exercise][text=Exercise]

\starttext

\doiffileelse{exercise}
  {\input{exercises}}
  {{\tttf Exercise file doesn’t exist.}}

\stoptext


Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-02 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 02.12.2019 um 16:18:

Dear list,

I have the following sample:

 \def\ThisOption{ab}
 \def\ThatOption{ábc}
 \starttext
 \executesystemcommand{contextjit --purgeall
--arguments="OptionThis={\ThisOption},OptionThat={\ThatOption}" second.tex}


Limited alternative (no rerun when second.pdf exists and by default the 
resulting PDF is loaded as image).


\typesetfile[second.tex][--arguments="OptionThis={\ThisOption},OptionThat={\ThatOption}"][object=no]


 \contextversion
 \stoptext

The contents of second.tex read:

 \starttext
 \enablemode[\env{OptionThis}]
 \enablemode[\env{OptionThat}]
 This: \doifmodeelse{ab}{enabled}{disabled}.\par
 That: \doifmodeelse{ábc}{enabled}{disabled}.
 \stoptext

I use --arguments to pass modes to documents compiled via
\executesystemcommand.

Everything worked fine. This morning I updated ConTeXt at work (with
Win7) and modes with non-ASCII chars aren’t recognized.

Could anyone confirm the issue I’m describing in Windows?


I get the same results with MkIV but LMTX works.


Is there any ConTeXt command (or Lua function) that translates non-ASCII
chars to their ASCII values?


Lua: characters.shaped(...)

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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 16:08 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد⁩ 
> <⁨idris.ha...@colostate.edu⁩>:
> 
>> That looks to me like flawed logic – why should content for the unabridged 
>> version appear within the abridged version?
> 
> TeX comments will illustrate:
> 
> ==
> This text goes into the abridged version.
> 
> % This text will appear in the unabridged version.
> 
> And this text goes into the abridged version.
> 
> % And this text goes into the unabridged version.
> 
> And this additional text goes into the abridged version.
> 
> % And this additional text goes into the unabridged version.
> ==
> 
> An abridged run will ignore the commented text, and an unabridged run will 
> include it.

Ok, it it’s about such small snippets, consider 
\doifmode{mode1,mode2}{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 comprised of % mode=variantthree
> some variants.
> 
> Here is some more text that
>   features % mode=variantone
>   exhibits % mode=varianttwo
>   illustrates % mode=variantthree
> some variants.
> ===
> 
> This example is to be processed to produce exactly three distinct results. 
> So, e.g., "contains" and "features" belong to variantone. Etc. So like XML.

How about:

Here is some text that
\startmodeset
[variantone] {contains}
[varianttwo] {includes}
[variantthree]   {is comprised of}
[default]{doesn’t contain}
\stopmodeset
some variants.


>> 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, it looks like you’ll need a lot of markup anyway.

HTH
Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[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 content + translation
d) unabridged content + translation
[:]

One can author and organize this in XML - pre-ConteXt - but perhaps one  
prefers to write in ConTeXt (take advantage of shortcuts etc.). So maybe


\defineparagraphs[unabridged]
\defineparagraphs[abridged]
\defineparagraphs[translation]

Then one authors the complete work in a single project, but you can  
produce a variety of versions, depending on the mode chosen:


\definemode[unabridged]
etc.

Can one do this in context? If so, does anyone have some working example  
of how to do it? Might even be worth a MyWay if not too unwieldy.. Thank  
you in advance!


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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., we may have


a) abridged content
b) unabridged content - includes a)
c) abridged content + translation
d) unabridged content + translation
[:]

One can author and organize this in XML - pre-ConteXt - but perhaps one 
prefers to write in ConTeXt (take advantage of shortcuts etc.). So maybe


\defineparagraphs[unabridged]
\defineparagraphs[abridged]
\defineparagraphs[translation]

Then one authors the complete work in a single project, but you can 
produce a variety of versions, depending on the mode chosen:


\definemode[unabridged]
etc.

Can one do this in context? If so, does anyone have some working example 
of how to do it? Might even be worth a MyWay if not too unwieldy.. Thank 
you in advance!
see tests files in blocks path of test suite ... one of the oldest 
mechanisms in context (as we needed it for on source multiple output in 
educational documents)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and natural tables

2018-09-24 Thread Jan Willem Flamma
Thank you, also for the follow up in reporting the bug.

I have playing around with \item at various positions but hadn’t considered 
using \itemtag.

As a more general question:
My understanding is that in a tabulate environment \NI is short for \NC 
\itemtag \NC
Is that the case as well in a TABLE environment. E.g., \NI is short for \bTD 
\itemtag \eTD?




> On 23 Sep 2018, at 19:09, Wolfgang Schuster 
>  wrote:
> 
> You would use the \itemtag command in the same way as you would do it with 
> tabulate
> 
> \starttext
> 
> \startitemize[n]
> \bTABLE
> \bTR
> \bTD (\itemtag) Item 1 \eTD
> \eTR
> \eTABLE
> \stopitemize
> 
> \stoptext
> 
> but there is a bug which prevents the item counter to appear in the output 
> (which I will report in a different thread).
> 
> Wolfgang
> 
> 
> Jan Willem Flamma schrieb am 23.09.18 um 17:33:
>> Dear list members,
>> 
>> I’m able to combine itemize and tabulate as per:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html 
>> <https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html>
>> 
>> Also, based on this discussion, I understand that combining modes and 
>> tabulate is not possible. Instead modes must be comined with natural tables.
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html 
>> <https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html>
>> 
>> A logical follow up questions is if itemize can be combined with natural 
>> tables that include modes like in the MWE below.
>> 
>> MWE:
>> 
>> \startsetups [table]
>> \setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
>> \setupTABLE [column] [1] [width=4cm,align=flushleft]
>> \setupTABLE [row][1] [toffset=5pt]
>> \setupTABLE [column] [2] [width=4cm,align=flushleft]
>> \stopsetups
>> 
>> \enablemode[test]
>> 
>> \starttext
>> 
>> \bTABLE [setups=table]
>> \bTR\bTC Item 1 \eTC\bTC Column 1 \eTC   \startmode[test] \bTC 
>> Column 2 \eTC \stopmode \eTR
>> \bTR\bTC Item 2 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 
>> 2 \eTC \stopmode \eTR
>> \eTABLE
>> 
>> \stoptext
>> 
>> Kind regards,
>> Jan Wilem Flamma
>> 
>> 
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> ___
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] using modeset

2020-06-11 Thread Wolfgang Schuster

Jan Willem Flamma schrieb am 11.06.2020 um 10:41:

Dear list members,

I write training manuals and use the Modes mechanism a lot to create 
documents at various competency levels using a single set of source 
files. So far the manuals have been written in English but now a 
separate Dutch translation has to be created.


It is important that the two manuals are setup similarly so the 
section/subsection numbers and question numbers are the same in the 
English manual and the Dutch manual. Note: I do not intend to create a 
manual that has the English and Dutch text at opposite sides (as can be 
done using streams)


I’m keen to continue using a single set of source files and thought it 
would be best to simply type the translated sections and subsections 
just below the original English sections and subsections using modeset. 
This gives me the option of creating an English case and a Dutch case. 
Within this two cases I would still apply all sorts of other modes using 
\startmode and \doifmode.


Duplication is unavoidable but it would make sense to try and re-use the 
existing structural elements such as \startsection \startsubsection 
\placefigure etc as much as possible. After all, only the title and 
caption text needs to be translated.


I tried doing this but in the case of \startchapter using a \doifmode 
but the PDF bookmarks text is not correctly generated.


You need

\enabledirectives[references.bookmarks.preroll]

in your setup files to get the correct text in the bookmarks.

I also tried placing a figure in between 2 modeset cases but this does 
not work.


See attached .tex file.


A alternative to modes is the selector mechanism to choose between 
different arguments.


\setupinteraction[state=start]

\placebookmarks

\enabledirectives[references.bookmarks.preroll]

\defineselector [language] [max=2,n=1]

\startmode[en]
\setupselector[language][n=1]
\stopmode

\startmode[nl]
\setupselector[language][n=2]
\stopmode

\starttext

\placecontent

\section{\select{language}{English section title}{Dutch section title}}

\startplacefigure[title=\select{language}{English float title}{Dutch 
float title}]

\externalfigure[dummy]
\stopplacefigure

\stoptext

Finally in the attached PDF below, I noticed that a double space appears 
depending on the position of the text and curly bracket. Is this intended?


Yes because you add spaces between the braces and the text which appear 
in the output.


\startmodeset
[...] {
...
}
[...] {
...
}
\stopmodeset


Questions:

  * Is the modeset mechanism indeed the best way forward or are there
better ways to achieve the desired outcome?
  * How can I re-use the existing ConTeXt code as much as possible and
still have the correct English and Dutch title and caption text for
all the structural elements and floats.


There are different ways with pros and contras:

  - But the english and dutch texts for each section in separate files
  - Use buffers for each paragraph and load the one you need
  - Store the texts in variables and flush the ones you need
  - Use XML as input and tags your texts which you can filter
  - ...

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] bug in modes

2008-03-29 Thread Hans van der Meer
The following works mirabile dictu:

\enablemode[b,c]
\startallmodes[b,c]
\type{\startallmodes[b,c]} done
\stopallmodes
\startnotallmodes[c]
\type{\startallmodes[b,c]} not done
\stopallmodes %  

But the following gives an error:

\enablemode[b,c]
\startallmodes[b,c]
\type{\startallmodes[b,c]} done
\stopallmodes
\startnotallmodes[c]
\type{\startallmodes[b,c]} not done
\stopnotallmodes %  
Runaway argument?
  \type {\startallmodes [b,c]} not done \stopnotallmodes \blank \par  
\stoptext
! File ended while scanning use of \dostopallmodes.
inserted text
 \par
* testmodes.tex
   \emergencyend

I guess the pairing of \startnotallmodes with \stopnotallmodes is at  
fault.
In core-var.tex 234-235 I see:
\long\def\dostartnotallmodes[#1]%
   {\docheckforallmodes\dostopallmodes\donothing{#1}}
should be:
\long\def\dostartnotallmodes[#1]%
   {\docheckforallmodes\dostopnotallmodes\donothing{#1}}

I checked this patch: ConTeXt  ver: 2008.03.24 23:24 MKII  fmt:  
2008.3.29  int: english/english


Hans van der Meer




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about mplib/mkiv

2008-04-25 Thread Thomas Schmitz
On Thu, 24 Apr 2008 08:38:51 +0200
  Taco Hoekwater [EMAIL PROTECTED] wrote:

 
 That error indeed comes from mplib, but from the 
overflow test in
 realloc(), not the memory array overflow function. You 
get this
 error when you attempt to allocate more than 2^31 bytes. 
Since that
 clearly should not happen, there is a bug somewhere in 
MPlib. But
 I'll need your source to dig it out. (likely you do 
something we
 have never tested yet).
 

Thanks Taco. I will try to produce a minimal example this 
afternoon/evening. The problem occurs with one of my 
presentation modes, but I have other documents with the 
same module which don't trigger the error, so I'll have to 
spend some time debugging.

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Luatex (actually Aleph) and Bidi_Mirrored chars in RTL mode

2008-06-18 Thread Idris Samawi Hamid
Hi Arthur,

On Wed, 18 Jun 2008 02:29:00 -0600, Arthur Reutenauer  
[EMAIL PROTECTED] wrote:

   Thanks for the answer (I should have known the results depended on the
 actual configuration :-)

Get SC unipad and type identical logical input in Arabic and Farsi modes.  
The makers of Unipad are Iranian and they implement both Arabic and Farsi  
rules correctly, have keyboards etc.  AFAIK, no other editor implements  
the bidi alg as well.

I'll forward you something in this regard.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] table of contents and bookmarks issue

2008-07-07 Thread Alan Stone
Hi,

When compiling the same source but with different compiler options...

(1) compiled with texmfstart texexec --autopdf --pdf test.tex

(2) compiled with texmfstart texexec --xtx test.tex or
texmfstart texexec --xetex test.tex

All hyperlinks ( table of contents and bookmarks ) jump to the
correct position for (1).

For (2), in all other view modes, single or a combined, other than
single page view, like for ex. single page continuous + fit width
mode, the hyperlinks jump to the incorrect position, mostly the
page before or after the one whereto it should jump to. Any idea how
to prevent this behavior when compiling with xetex ?

Thanks,
Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Getting arguments by Lua

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

when I run context by e.g.:

context.exe Source.mkiv --result=Result.pdf --mode=Mode

is it possible to access the command line arguments from Lua?

I'm aware that modes are accessible by 'tex.modes' ('tex.modes.Mode' gives 
'true' in this case);

but I'd need to get also the source file name (Source.mkiv) and the option (--result 
- Result.pdf).

Is it possible anyhow?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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 standalone ConTeXt?


best keep a 'old' copy on your machine .. it' sno big deal having a few 
standalones in parallel


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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 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 standalone ConTeXt?


best keep a 'old' copy on your machine .. it' sno big deal having a 
few standalones in parallel


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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@:\systemmodeprefix#1\endcsname
 \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname
 
\csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax
   \fi}

to

\def\popsystemmode#1%
  {\ifcsname\@mode@:\systemmodeprefix#1\endcsname
 \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname
 
\csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax
   \fi}

and regenerated the format (context --make) it compiles fine.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug or feature?

2011-12-21 Thread Andreas Harder

On 21.12.2011, at 12:33, Wolfgang Schuster wrote:

 
 Am 21.12.2011 um 12:04 schrieb Andreas Harder:
 
 Hi,
 
 with the latest beta there is always a line break after a \blackrule … bug 
 or feature?
 
 \starttext
 % \dontleavehmode%
 \blackrule[width=3cm] unwanted line break!
 \stoptext
 
 It’s neither a bug nor a feature, just a result of TeX’s horizontal and 
 vertical modes, the same happens when you use \framed in vertical mode.
 
 \starttext
 \framed{line 1}
 \framed{line 2}
 \stoptext

Yes, you are right. My example was too minimal. I used \defineheadplacement and 
since yesterdays beta the line break is introduced.

\starttext

\defineheadplacement[MyPlacement][vertical]
  {\vbox{\localheadsetup\begstrut\blackrule[width=3cm] #2}}

\setuphead[subject][alternative=MyPlacement]

\subject{test Äg}

\stoptext


Andreas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] convert color to black and white documents

2012-01-12 Thread Hans Hagen

On 12-1-2012 14:31, Matthias Weber wrote:

Dear all,

  I am working on a text with plenty of figures, using  modes to create both a 
screen and a print version. For the print version,
which will be printed in black and white, I'd like to have all colors 
(including those of the figures) to be converted to grayscale
so that I can softproof the document. Is there a way to do that in ConTeXt? I 
realize that these are multiple problems, addressing
the conversion of the figures as well as the conversion of colored texts and 
other decorations that are done within ConTeXt.


Two methods:

(1) disable context color mechanism and use a different path for 
graphics (bw vs color)


(2) postprocess the file with acrobat or ghostscript into bw

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Passing variable values on invoking context

2012-02-15 Thread Aditya Mahajan

On Wed, 15 Feb 2012, Wolfgang Schuster wrote:



Am 15.02.2012 um 11:17 schrieb Ian Lawrence:


A bit of help, please.

I currently have a chunk at the start of a text file, like this

\setvariables
 [Path]
 [Thread={Ee_01_PN},

 .

  Mode=full]
\stopbuffer

I invoke the file with

context  filename.tex

Is there a way to pass the value of the variable to context on invocation?

So the top of the header might read:


\setvariables
 [Path]
 [Thread={Ee_01_PN},

 .

  ]
\stopbuffer

And the invocation:

context  filename.tex (bit of magic) Mode=full

If so, I could use this a few times...it's not a big deal but would
mean I could prepare some fixed command files, rather than a search
and replace for Mode=full to Mode=light through al the text files
called by this kind of invocation.


• http://archive.contextgarden.net/message/20060810.215454.54ccd77e.en.html
• http://archive.contextgarden.net/message/20110105.204113.93286322.en.html


Also see

http://wiki.contextgarden.net/Modes

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Willi Egger
Hi,

Humble, I would start in the preamble to sau \setupoutput[dvi]

Willi

luigi scarso wrote:
 On 9/11/06, John R. Culleton [EMAIL PROTECTED] wrote:
   
 For one recurring task I first produce a booklet version 5.5. x
 8.5in, then a straight pdf 8.5 x 11in, all controlled by modes. The
 third format is plain text. Others recommend dvi2tty for this
 conversion. But how do I get Context to produce a dvi file? The
 Context manual does not make this clear.

 I am on a Linux system.
 
 hmm, on my (one year old) system
 $ texexec file.tex
 make file.dvi
 and
 $ texexec --pdf file.tex
 make file.pdf


 luigi
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texexec --mode=xxx --mode=yyy

2007-01-16 Thread Hans Hagen
� wrote:
 On Tue, 16 Jan 2007, Hans Hagen wrote:

   
 the question is, if you could modify texexec to behave the same way, when
 used with these 2 command-lines:
 1.) texexec --mode=xxx --mode=yyy file
 2.) texexec --mode=xxx,yyy file
   
   
 this will not happen soon since i dislike multiple same-name - options
 

 All right. I've just seen, that texexec --modes=xxx --mode=yyy works as I
 want. Can I rely on it for the future?
   
no (not that i change somethign but one never knows what side effects 
take place)

Hans

 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fixme module?

2007-03-31 Thread Arthur Reutenauer
 did any of the attendees of the ConTeXt user meeting finish the fixme
 module?

  This is the exact reproduction of what I typed that evening:

lermontov 2:51 ~/TeX/Epen/day1 R cat p-fixme.tex 
%D \module
%D   [   file=p-fixme,
%Dversion=2007.03.23
%D  title=\CONTEXT\ FIXme module,
%D   subtitle=FIXme Notes
%D author=Arthur Reutenauer,
%D   date=\currentdate,
%D  copyright=Public Domain]
%D
%C Donated to the public domain.


%D This is an (attempt to) reproduce the FIXme package for LaTeX, by Didier
%D Verna ([EMAIL PROTECTED]), as a ConTeXt module.
%D Tutorial by Taco Hoekwater at the first international ConTeXt meeting.

%D The document can be typeset in two different modes: final and draft.
%D Depending on this mode, the fixme notes can have different effects during
%D compilation.

%D \startitemize
%D   \item \type{\fixme} takes one mandatory arguments: it inserts a note with
%D this argument, and stops compilation in final mode.
%D \stopitemize
\unprotect

\protect \endinput
lermontov 2:51 ~/TeX/Epen/day1 R 

  :-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] framed getbuffer

2007-04-11 Thread Aditya Mahajan
On Wed, 11 Apr 2007, Wolfgang Schuster wrote:

 2007/4/11, Aditya Mahajan [EMAIL PROTECTED]:
 
 On Thu, 22 Mar 2007, Taco Hoekwater wrote:
 
  Wolfgang Werners-Lucchini wrote:
  Hallo!
 
  The following simple example doesn't compile
  (ConTeXt ver. 2007.01.02 and Live ConTeXt).
 
  What am I doing wrong?
 
  Diagnostics:
 
  The problem is not caused by the \framed, but by the (lack of)
  parsing done by the buffering routines.
  Because the \startformula is not expanded, TeX does not realise
  you are in math mode, so it objects to the ^ character.
 
 
  This is 'not right' but I suspect it is not all that simple
  to fix the context core to do this properly (I would love to be
  proved wrong).
 
 This is a serious bug. Even a simple example fails with the same
 error.
 
 \starttext
 \framed{
 \startformula
 x^2 = x\cdot x
 \stopformula}
 \stoptext
 
 A quick workaround is to use frametext instead of framed, but I am
 pretty sure that the above example used to work at some stage.
 
 Aditya


 Hi Aditya,

 it is more a problem related to horizontal and vertical modes/boxes, you can
 test it by placing \startformula .. \startformula into a hbox/vbox and only
 the
 vbox solution works.

Ah! Thanks for the explanation.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] i18n in BibTeX

2005-09-25 Thread Adam Duck
Mojca Miklavec [EMAIL PROTECTED] writes:

 Adam Duck wrote:

 So, I've stumbled across a problem: if you have only two authors in a
 BibTeX entry, cont-au.bst sets AuthorA and AuthorB which is -- IMHO
 -- unaccaptable for a german document.  I had to manually edit
 cont-au.bst and change a line in
 /.../
 from and to und.  Is there a cleaner way?  If I typeset an english
 document now, I'll get an und...

 Take a look at bibl-apa.tex and bibl-aps.tex.

 Depending on what kind of citing you use, you may say something like
   \setupcite[authoryear][lastpubsep={ und }]
 and for all the other citing modes the same.

 38 lines deleted by Adam Duck 

Yes, this I've done and it works.  But that's not the problem I was
referring to.  `lastpubsep' is used if you have more than one paper to
refer to in the same \cite-command (\cite[paperA,paperB]) but it is
_not_ used if a paper has only two authors (\cite[paperC]).

I've seen some language specific functions in geralpha.bst.  Perhaps I
should dive into it a bit...  But I don't really understand bst-syntax
:).

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] beta

2006-03-30 Thread Hans Hagen
Taco Hoekwater wrote:
 Hans Hagen wrote:
   
 *  \usemodule[...p=...][modulename] % from Thomas and me
  
   
 can you explain a bit
 

 We would like the possibility to have options while loading
 modules, and the cleanest way of doing that is to have an
 optional argument to \usemodule, so we can have, e.g.:

\usemodule[font=GreekTimes,scale=1100][greek]

 And in the module:

\processaction[\moduleparameter\v!font]
   [=]

 etcetera. just like a 'normal' parameter.

 I know this effect can partially be implemented using modes,
 but sometimes a  key=value syntax is much cleaner. This:

 \enablemode[GreekTimes1100]
 \usemodule[greek]

 is not nearly as flexible.
   
ok, i'll add such a feature (btw, usemodule takes two args currently:

\usemodule[x][newmml]

so effectively we will have:

\usemodule[newmml]
\usemodule[newmml][a=b]
\usemodule[x][newmml]
\usemodule[x][newmml][a=b]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

\stopmode

\setuppagenumbering[state=stop]

\starttext

\dorecurse{8}{\null\vfill\centerline\recurselevel\vfill\null\page}

\stoptext

When I process this with

context --mode=arranged test

I get the expected output. When I process it with

context --mode=arranged --arrange test

the pages are NOT arranged. I need the --arrange switch for my data, and 
I don't understand what's going wrong here. Behavior is the same with 
current beta and a slightly older version (06.30).


Thanks

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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

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

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm

Am 2012-07-09 um 19:06 schrieb Henning Hraban Ramm:

With at least today’s and yesterday’s beta I can’t get no  
satisfaction WRT imposition.


Before, only 2UP was broken, and I got a workaround. Now, every  
schema that I tried doesn’t do anything.

Was there another syntax change?
Of course I 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://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Draft version of document

2012-08-04 Thread Roger Mason

Hello all,

Having used MkII to make a nicely formatted version of a document, I now 
need to make a draft version document in order to submit it to a 
journal.  They want the figure captions as a list at the end of the 
document and the figures collected on pages at the end too.  The draft 
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

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2012-08-22 Thread john Culleton
In the file contextref-env.tex I find code like the following:

\setupsectionblock[\v!frontpart] [\c!page=\v!yes]
\setupsectionblock[\v!bodypart]  [\c!page=\v!yes]
\setupsectionblock[\v!appendix]  [\c!page=\v!yes]
\setupsectionblock[\v!frontpart] [\c!before=,\c!after=]

I have no idea what 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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

 \starttext
 
 Hello world
 
 % This is \getvariables{arguments}{number} it. % this does not work - what do 
 I need here to write out the next line?
 
 This is 8.
 
 % This is \getvariables{arguments}{time} it. % Nor does this - what do I need 
 here to write out the next line?
 
 This is full-time.
 
 \stoptext

\starttext

This is \doifdocumentargument{number}{\getdocumentargument{number}} it.

This is \doifdocumentargument{time}{\getdocumentargument{time}} it.

\stoptext


Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl:
 On 4/26/2013 2:35 PM, Cecil Westerhof wrote:

 2013/4/26 Cecil Westerhof cldwester...@gmail.com:

 I have the following code:
 \setvariables[meta][type=cecil]


 This variable is hard coded. Is it possible to set it with a value I
 send as a command line 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2013-05-21 Thread Romain Diss
 We've already got \setdigitmode, \setdigitorder, and \setdigitspace;
 it might make sense to create a \setupdigits to consolidate these
 setups into one interface. Something like this:
 
 \setupdigits
[mode=4,   % --\setdigitmode{4}
   % (decimal period, thinspace between groups)
 inputdecimalmark={,}, % --\setdigitorder{0}
 signspace=yes,% --\setdigitsign{1}; '+ 1.4', not '+1.4'
 times=\times, % 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  3.1415926535
 decimal={,}
 separator=\space,
 groupsize=4,   % output 3,1415 9265 45
 signspace=,]   % +3.14159...
 
 That could even tie into \setuplanguage to allow setting
 language-specific defaults. Would anyone be interested in this?

+1 again!

-- 
Romain Diss
romain.d...@yahoo.fr
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2013-06-16 Thread Wolfgang Schuster

Am 16.06.2013 um 09:46 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 I have a document that contains a long poem and although it contains the
 following code:
 
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\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 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 useless here.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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 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 useless here.

Thanks for your reply, Wolfgang.

So, according to 3, there is no way to prevent widow or orphan lines in
a line environment, isn't it?

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \choose problems in new math fonts

2009-04-16 Thread Taco Hoekwater


Tomas Kisela wrote:
 
 Binomial coefficients: 
 The brackets stay small (usual size like in plain text), here's my code:
 \starttext
 \startformula
 {a\choose b}
 \stopformula
 \stoptext

This is currently an issue with opentype math fonts: luatex doesn't know
what the values of \Umathfractiondelsize should be.

For a workaround: explicitly setting

 \Umathfractiondelsize\textstyle = 12.12pt
 \Umathfractiondelsize\displaystyle = 28.68pt

will set up values that closely mimic cmsy10 at 12pt

Ulrik Vieth (who is in CC) proposes to use DelimitedSubFormulaMinHeight
in non-display modes, but the DelimitedSubFormulaMinHeight in Cambria
Math is 3000/2048 * atsize == 17.58pt, which also doesn't seem right.

Since Hans converts everything to OpenType MathConstants format,
perhaps I should just add two more named entries to be parsed
in the MathConstants table?

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Which Table Layout Mode

2009-04-21 Thread Design Department
I'm having great difficulty finding a table mode that accomplishes
everything I need:

Multi-page: no problem
Repeating headers: no problem
Repeating footers: don't actually need columns in footers, just a
table-wide block containing diagrams and abbreviation footnotes. Must
appear on every page, though. 'tables' or 'tabulate' mode works OK.
lintetables?
Horizontal lines: no problem (except linetables?)
Alternate row shading: natural tables work fine, don't see how to do
this with 'tables'  or 'tabulate' mode. linetables?
Forced page break at arbitrary rows: [after=\page] doesn't seem to
work in natural tables, don't see how to do this with 'tables' or
'tabulate' mode. linetables?

I've tried all the table modes, including linetables and can't find a
mode that gives me all required features.
Is this combination of tabular features not possible?

-- 
david
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] docs

2009-05-14 Thread Wolfgang Schuster


Am 14.05.2009 um 17:12 schrieb R. Bastian:


Thanks, but I will write the source in the following manner:

\german

Was meinst Du?

\bavarian

Woas moanst?

\french
Que veux-tu dire ?


When you want you complete document in one language you can write

\startmode[de]
Was meinst du?
\stopmode

\startmode[fr]
Que veux-tu dire ?
\stopmode

and call context with context --modes=de filename for the german  
version.


For a version with the text for two languages on facing pages you can  
use

your example code as it is with the streams module.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] alpha release

2009-07-15 Thread Hans Hagen

Thomas A. Schmitz wrote:

fix:

\def\setcurrentlanguage#1#2% sets modes: **id (currentmain) *id (current)
  {\edef\xaskedlanguage{#1}% otherwise clash with \askedlanguage
   \ifx\xaskedlanguage\empty \else

\ifx\currentmainlanguage\empty\else\resetsystemmode{\systemmodeprefix\currentmainlanguage}\fi
 \let\currentmainlanguage\xaskedlanguage
 \setsystemmode{\systemmodeprefix\currentmainlanguage}%
   \fi
   \edef\xaskedlanguage{#2}%
   \ifx\xaskedlanguage\empty \else
 \ifx\currentlanguage\empty\else\resetsystemmode\currentlanguage\fi
 \let\currentlanguage\xaskedlanguage
 \setsystemmode\currentlanguage
   \fi}

i'll make a new alpha later today

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ctx Lua: determination of the language being used

2010-11-25 Thread Taco Hoekwater

On 11/25/2010 02:43 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

... And using this in a separate file is also what I'd need. So do I
have to do something like:


Something like that, yes. But it depends a little on what you
want to do: because \currentmainlanguage expands, you will
get the value that is active during the first scan of the
lua code block, which may not be what you want, but it is hard
to judge without the actual use case.


(Suggestion: Wouldn't be nice to have function(s) or variable(s) like
e.g. 'context.environment[currentmainlanguage]' or something like this?)


Yes, agreed, something like that would be useful. The same applies to
some other things, like color and active modes. Some of these are
probably there already, but it would be nice if they were documented.


Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ConTeXt beta in MikTeX

2010-12-22 Thread barndog1946

Mojca, Hans, Wolfgang and all other users:

1. Get minimals, I used context-setup-mswin
2. Follow setup install for windows.
3. Using Winedt:
a. go to options, execution modes
b. in full executeables...enter full path where you installed minimals
c. Now in TeX\MikTeX\Options...Add a search root to minimals
d. UPIDATE file name database

et voila you now have Context latest beta running under MikTeX via  
Winedt!


Thanks to ALL who gave hints and tips on this so forcing me to get it DONE!

barney
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt beta in MikTeX

2010-12-22 Thread Hans Hagen

On 22-12-2010 12:22, barndog1...@gmail.com wrote:

Mojca, Hans, Wolfgang and all other users:

1. Get minimals, I used context-setup-mswin
2. Follow setup install for windows.
3. Using Winedt:
a. go to options, execution modes
b. in full executeables...enter full path where you installed minimals
c. Now in TeX\MikTeX\Options...Add a search root to minimals
d. UPIDATE file name database

et voila you now have Context latest beta running under MikTeX via
Winedt!

Thanks to ALL who gave hints and tips on this so forcing me to get it DONE!


did you wikify it?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Layer(s)

2011-01-24 Thread Ian Lawrence
Morning,

I am completely defeated by layers...from a more or less complete beginner.. So 
please be gentle.

I think you ought to be able to have multiple layers and so to switch them on 
and off, using modes.

However I can only find examples and documentation for single layers in use at 
any one time.

If this is true then I can also see that there ought to a parameter that sets 
the stacking order of the layer...

So I think I need to know about \setuplayer (just guessing)

But:

http://wiki.contextgarden.net/Command_Syntax/Missing#layer_commands


So if any one of you kind people can help with the missing syntax, or a 
**simple example** of a multiple layered document, I'd be grateful.

Thanks

Ian___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layer(s)

2011-01-24 Thread luigi scarso
On Mon, Jan 24, 2011 at 1:46 PM, Ian Lawrence
physics.wande...@gmail.com wrote:
 Morning,

 I am completely defeated by layers...from a more or less complete beginner..
 So please be gentle.

 I think you ought to be able to have multiple layers and so to switch them
 on and off, using modes.

 However I can only find examples and documentation for single layers in use
 at any one time.

 If this is true then I can also see that there ought to a parameter that
 sets the stacking order of the layer...

 So I think I need to know about \setuplayer (just guessing)

 But:

 http://wiki.contextgarden.net/Command_Syntax/Missing#layer_commands


 So if any one of you kind people can help with the missing syntax, or a
 **simple example** of a multiple layered document, I'd be grateful.
http://wiki.contextgarden.net/Layers

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] +tlig fails sometimes in mkiv

2011-03-05 Thread Ulrike Fischer

On c.t.t. there was a discussion about the TeX-ligatures -- and ---
for endash and emdash. It seems that the luaotfload/context code
fails for some font/mode combination: For some fonts +tlig works
with both modes, some works only with mode=base, and there was also
a report of font which doesn't work at all (Frutiger LT 55 Roman).

E.g. on my PC +tlig works for Arial (c:/windows/fonts/Arial.ttf)
tested with a current context minimals only with mode=base.  

\font\test=Arial:mode=node;+tlig

\font\testb=Arial:mode=base;+tlig

\starttext

\test -- --- abc %fails

\testb -- --- abc %works

\stoptext \bye




-- 
Ulrike Fischer 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] differences of table modes

2003-06-17 Thread Hans Hagen
At 22:53 16/06/2003 +0200, you wrote:

Am Sonntag, 15.06.03, um 20:01 Uhr (Europe/Zurich) schrieb Hans Hagen:
\starttabulatehead
  \NC left \NC right \NC \NR
\stoptabulatehead
It gives the following error
is this a matter of stach size or do others have the same problem?
I got the same (or something similar), and I run the latest beta,
that's why I wrote it wouldn't work.
hm. looks like i have to post an updat eone of these days

Hans

-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Error with XML and JS

2004-02-16 Thread Gilles Pérez-Lambert
Hello,

Continuing the ConTeXt exploration with Hans's help:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01784.html

I'm trying to combine Hans's JS programming with XML processing but an error pops up:


%%%
javascript : loading script set fld
(/Users/gpl/texmf/tex/context/base/java-fld.tex
! Missing \endcsname inserted.
to be read again 
   \unhbox 
\leavevmode -\unhbox 
  [EMAIL PROTECTED] 
\fakeunderscore -\leavevmode 
  \hbox {\setbox \scratchbox \hbox {(}\scratchdi...

\_...fmmode \mathunderscore \else \textunderscore 
  \fi 
\XML:ent:tex-underscore ...tterunderscore \else \_
  \fi 
\ascii -Sanitized\getXMLentity {tex-underscore}
TeX\getXMLentity {tex-unders...
...
l.115 \stopJSpreamble
%%%


with the attached TeX file. There's some kind of interaction between the two modes. 
Without \start(stop)XMLdata, it works.

Thanks for your time,

Gilles, preparing the next demo of ConTeXt in June (Paris). :-)



xml-js.tex
Description: TeX document


Re: [NTG-context] \presentationstep

2004-11-01 Thread Henning Hraban Ramm
Am 02.11.2004 um 07:04 schrieb David Munger:
Could someone tell me if I'm doing something bad here, please?
File test.tex
---
\usemodule[pre-original]
\starttext
\Subject{Test}
step 1
\presentationstep
step 2
\stoptext
---
texexec --mode=step --output=pdf test.tex
This gives me a white page instead of the text I get without
`--mode=step'.
You doesn't define a step mode, so there's no output.
Completely logical. What's the matter?
You can use --mode=something switch only for environments like
\startmode[something]
\stopmode[something]
\startnotmode[something]
\stopnotmode[something]
See the wiki:
http://contextgarden.net/Modes
But probably you're looking for:
http://contextgarden.net/Presentation_effects
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-02 Thread Hans Hagen
Henning Hraban Ramm wrote:
Am 02.11.2004 um 07:04 schrieb David Munger:
Could someone tell me if I'm doing something bad here, please?
File test.tex
---
\usemodule[pre-original]
\starttext
\Subject{Test}
step 1
\presentationstep
step 2
\stoptext
---
texexec --mode=step --output=pdf test.tex
This gives me a white page instead of the text I get without
`--mode=step'.

You doesn't define a step mode, so there's no output.
Completely logical. What's the matter?
You can use --mode=something switch only for environments like
\startmode[something]
\stopmode[something]
\startnotmode[something]
\stopnotmode[something]
See the wiki:
http://contextgarden.net/Modes
But probably you're looking for:
http://contextgarden.net/Presentation_effects
another option is to use s-pre-60
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Typesetting products and components

2005-02-14 Thread Randall Skelton
Is it possible to determine if texexec is being run on a product or a
component and have optional processing similar to different modes?

I have a large project comprising quarterly reports and technical
notes.  Essentially, I have the following structure:

project = MyProject
  |- product = Reports
 |- component1 = year2005, chapters 1-n
 |- component1 = year2006, chapters 1-n
 ...
  |- product = TechNotes
 |- component1 = note1, sections 1-n
 |- component1 = note2, sections 1-n
 ...
  ...

I would like to be able to typeset a component differently depending
on whether it is passed directly to texexec or whether I am processing
the complete product.  For instance, in each technical note, I would
like a title page, table of contents, list of abreviations, and list
of references generated if I typeset the component separately. 
Conversely, when processing the product TechNotes I want a master
table of contents, list of abbreviations and list of references
generated for the set of components.  Is it appropriate to want to do
this or have I misunderstood the role of projects, products and
components entirely.

Cheers,
Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Adam Lindsay
VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100:

I dont know how to organize it : is there simple structure
if-then-else ? could I use ConTeXt's mode or environment for
this goal ?

These are all possibilities.
It depends on how you want to change them. Modes sound promising if you
want to change them from the command line. Taking the time to set up
typescripts/typefaces so that you can change one line/word won't hurt, in
any case...

So what kind of interface were you imagining?

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
On Sun, 20 Feb 2005 18:09:47 +, Adam Lindsay [EMAIL PROTECTED] wrote:
 VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100:
 
 I dont know how to organize it : is there simple structure
 if-then-else ? could I use ConTeXt's mode or environment for
 this goal ?
 
 These are all possibilities.
 It depends on how you want to change them. Modes sound promising if you
 want to change them from the command line. Taking the time to set up
 typescripts/typefaces so that you can change one line/word won't hurt, in
 any case...
 
 So what kind of interface were you imagining?
 

Thank you for your reply.
I would like to use command line. Could you give me a simple example please.

For example I would like to make 3 PDF:

The 1st:
\usetypescript[berry][t5]
\usetypescript[palatino][t5]
\setupbodyfont[palatino,12pt]

The 2nd with:
\usetypescript[berry][t5]
\usetypescript[postscript][t5]
\setupbodyfont[postscript,12pt]

The 3rd with my typescript


Thank you,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Willi Egger
If you have the modes defined in a layout.tex you can say in the main file:
\enablemode[times]
%\enablemode[palatino]
%\enablemode[..]
\environment layout.
So by adding the appropriate \enablemode you even do not need to run the 
commandline ...

Willi
Adam Lindsay wrote:
VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100:

I'm preparing a document and I would like to product several versions
PDF with different fonts.

I would like to use command line. Could you give me a simple example please.

% I've adapted this for gwTeX default encodings.
% Convert back to t5 as appropriate!
\doifmode{palatino}
  {\usetypescript[adobekb][8r]
   \usetypescript[palatino][8r]
   \setupbodyfont[palatino,12pt]}
\doifmode{times}
  {\usetypescript[adobekb][8r]
   \usetypescript[postscript][8r]
   \setupbodyfont[postscript,12pt]}
\starttext
\input knuth
\showfontstrip
\stoptext
...and run with:
texexec --pdf --mode=palatino filename
texexec --pdf --mode=timesfilename
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt equivalent for \ensuremath?

2005-03-11 Thread Adam Lindsay
Gerben Wierda said this at Fri, 11 Mar 2005 16:54:38 +0100:

But my way also doesn't work. I get empty output as a result of the 
\bit{b}{off} command.

Help?

This is probably not satisfying, because you probably want to get new
mathematics commands working, but if this is to be used solely in text,
you could use (or expand to):
 b\low{off}

\low (and \hi and \lohi) look like they work robustly in both math and
text modes.

I'm a bit confused by you using \newcommand in your (ConTeXt?) examples,
though...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt equivalent for \ensuremath?

2005-03-11 Thread Gerben Wierda
On Mar 11, 2005, at 18:20, Adam Lindsay wrote:
Gerben Wierda said this at Fri, 11 Mar 2005 16:54:38 +0100:
But my way also doesn't work. I get empty output as a result of the
\bit{b}{off} command.
Help?
This is probably not satisfying, because you probably want to get new
mathematics commands working, but if this is to be used solely in text,
you could use (or expand to):
 b\low{off}
\low (and \hi and \lohi) look like they work robustly in both math and
text modes.
I'll see. I wonder if it will look the same. Especially in terms of 
font. Do I get the same font in both sides? Do I get the same kerning?

I'm a bit confused by you using \newcommand in your (ConTeXt?) 
examples,
though...
Yes, strange, isn't it? It just works. I copied one accidentally over 
and it worked. So I kept using it.

G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] setting variable on cmd-line

2009-09-18 Thread Peter Münster
Hello,

I've a little feature request:
It would be nice, to have a command line option like --setvalue x=y or
similar for the context command to define a variable for the job.

Modes are already very nice, but often I need just one value for
conditional compiling a document instead of many binary switches.

Perhaps the context --arguments option is what I'm looking for, but I
didn't find how to use it.

Another option would be, to make the name of the result-file
(context --result=...) available, for example as \resultname.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread luigi scarso
On Sun, Sep 20, 2009 at 9:46 PM, Peter Münster pmli...@free.fr wrote:
 On Fri, 18 Sep 2009, Peter Münster wrote:

 I've a little feature request:
 It would be nice, to have a command line option like --setvalue x=y or
 similar for the context command to define a variable for the job.

 Modes are already very nice, but often I need just one value for
 conditional compiling a document instead of many binary switches.

 Perhaps the context --arguments option is what I'm looking for, but I
 didn't find how to use it.

 Hello,

 After reading a bit in mtx-context.lua, I've found out how to use
 --arguments:

 test-file:

 \starttext
 Value of myVar: \ctxlua{tex.print(document.arguments[arguments=myVar])}
 \stoptext

 cmd-line:

 context --arguments=myVar=myValue test

 But this syntax is very strange!
Does
 context --arguments=myVar=myValue test
work too ?
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] doifmode with a buffer following this command

2010-02-21 Thread Hans Hagen

On 21-2-2010 17:59, Willi Egger wrote:

Hi,

If I use multiple modes I need to use also \doifmode{}{}.
Now it appears that it is nomore possible to have \start/stopbuffer
inside the second pair of braces of \doifmode. This results in an error
in MKIV and in no output in MKII

Runaway argument?
\bfc Text \stopbuffer \getbuffer [Test] \stoptext
! File ended while scanning use of \dododowithbuffer.
inserted text
\par

Please refer to the attached minimal test file.


best use

\startmode[definedwithin]
\startbuffer[Test]
\bfc Text
\stopbuffer
\getbuffer[Test]
\stopmode

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Where to put a module?

2010-03-07 Thread Philipp Gesang
On 2010-03-07 13:02:40, Mojca Miklavec wrote:
 On Sun, Mar 7, 2010 at 11:54, Philipp Gesang wrote:
 
  Right now it contains modes for Cyrillic, Glagolitic and Greek scripts,
  older variants included, full ISO 9 support
 
 Doesn't ISO 9 (ISO-8859-9) support already work?
Normally I don't post wp links but as you'd have to pay for the
standard, here's an exception: http://en.wikipedia.org/wiki/ISO_9
No encoding issue involved here ...

Philipp

 
 Mojca
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpHRUJhCIZQH.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] wrong heights in TABLE

2010-03-10 Thread Peter Münster
On Wed, Mar 10 2010, Taco Hoekwater wrote:

 This second example is a broken table specifier when no modes
 are enabled: it produces and empty row, which is a no-no.

Ok, here an even better and smaller example-test-file:

\starttext
Problem:\blank
\bTABLE
\bTR \bTH 1. col\eTH \bTH 2. col \eTH  \eTR
\bTR \bTD 1 row in 1. col   \eTD \bTD[nr=2] 2 rows in 2. col \eTD  \eTR
\bTR \bTD[nr=2] 2 rows in 1. col\eTD   \eTR
\bTR \bTD[nr=3] 3 rows in 2. col \eTD  \eTR
\bTR \bTD 1 row in 1. col   \eTD   \eTR
\bTR \bTD 1 row in 1. col   \eTD   \eTR
\eTABLE
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] wrong heights in TABLE

2010-03-10 Thread Hans Hagen

On 10-3-2010 9:05, Taco Hoekwater wrote:

Peter Münster wrote:


TIA for any hint!
Cheers, Peter


This second example is a broken table specifier when no modes
are enabled: it produces and empty row, which is a no-no.


indeed, i played with catching it but it's too much work so that has to 
wait till i reimplement this mechanism for mkiv


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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 I do, only when).
 As shown in the minimal example below, invoking the macro that does 
something, a little extra space is added.
I don't know why, it is probably something very TeX-basic I am 
ignorant of. So: How do I get rid of the extra space?
The problem occurs both in mk2 and mk4, I would prefer a solution that 
also works in mk2.


Thanks!


Matthias



\def\mma{
\startmode[mma]
{}
\stopmode
}


\def\mma
  {\startmode[mma]% not sure here
   ...%
   \stopmode}

or use setups

\startsetups[mma]
\startmode[mma]
...
\stopmode
\stopsetups

\startexample
\setups[mma]
\stopexample

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2015-01-27 Thread Jörg Weger
The default way to diplay (inverted) names with “von” and “van” is “von 
Goethe” and “van Halen” in in-text references and “von Goethe, Johann 
Wolfgang” and “van Halen, Edward”. The problem with this is that while 
AFAIK the Dutch “van Halen” means that one of his ancestors came ”from” 
a place/city called “Halen” in German names the “von” is always a sign 
of nobility. Even long before monarchy and nobility was abolished in 
Germany by the revolution of 1919 you 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 the citation. I have 
not yet discovered where this order is defined.


Greetings Jörg
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2015-01-29 Thread Wolfgang Schuster

 Am 29.01.2015 um 20:28 schrieb Pablo Rodriguez oi...@gmx.es:
 
 Dear list,
 
 I have the following sample:
 
 \setupinteraction[state=start]
 \placebookmarks[section][criterium=all]
 \def\FootnotesHeading{\translate[en=English Notes, es=Notas en español]}
 \def\mimo{\section{\FootnotesHeading}}
 \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.

\startmode[*en]
English notes.
\stopmode

\startmode[*es]
Notas en español.
\stopmode

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2015-04-25 Thread Idris Samawi Hamid ????? ????? ????

On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote:


[Aside: I wonder if there is a way 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 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
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2015-04-28 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote:


[Aside: I wonder if there is a way 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 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
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] output file size with repeated image

2015-04-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupexternalfigure[location=default]
\starttext
\startmode[repeated-image]
\dorecurse{10}{
\dorecurse{10}{
\dorecurse{10}{
\externalfigure[cow]\input zapf\par}}}
\stopmode
\startmode[single-image]
\externalfigure[cow]
\dorecurse{10}{
\dorecurse{10}{
\dorecurse{10}{
\input zapf\par}}}
\stopmode
\startmode[no-image]
\dorecurse{10}{
\dorecurse{10}{
\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 embedded once) file size
with repeated image is almost two and a half times that the version with
a single image.

Is this right or am I missing something?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2015-09-15 Thread Aditya Mahajan

On Tue, 15 Sep 2015, Wolfgang Schuster wrote:


Jaroslav Hajtmar <mailto:hajt...@gyza.cz>
15. September 2015 11:31
Hello ConTeXist.

I do not know if I'm not mistake somewhere, but it seems to me that the 
macro \doifnotmodeelse does not work. Can anyone verify this?
There is no command with this name because there is no need for it and it 
won’t be different from \doifmodeelse with the exception that the second 
and third arguments are switched. Below is a short summary of the available 
mode tests.


The \doifmode{}{} command is used when you want to show/enable something 
when the requested mode is enabled.


The \doifnotmode{}{} command is used when you to show/enable something when 
the requested mode is disable or not set.


With the \doifelsemode{}{}{} (you can also use the alternative name 
\doifmodeelse) you can show/enable different things dependent whether the 
requested 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, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2015-12-31 Thread Wolfgang Schuster

Lukáš Procházka <mailto:l...@pontex.cz>
31. Dezember 2015 um 11:07
Hello,

how to detect which language set by \mainlanguage[xy] is active?
How to detect it by 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) and * for the 
current language (set by \language).


\mainlanguage[cs]
%\language[en]

\starttext

\doifelsemode{**cs}{The main language is Czech.}{The main language is 
“\currentmainlanguage”.}


\startluacode
if tex.modes["**cs"] then
context("The main language is Czech.")
else
context("The main language is “\\currentmainlanguage”.")
end
\stopluacode

\blank

\doifelsemode{*cs}{The current language is Czech.}{The current language 
is “\currentlanguage”.}


\startluacode
if tex.modes["*cs"] then
context("The current language is Czech.")
else
context("The current language is “\\currentlanguage”.")
end
\stopluacode

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Product-component structure

2016-06-24 Thread Hans Hagen

On 6/24/2016 9:19 PM, Aditya Mahajan wrote:

Hi,

This is based on a question on tex.sx:
http://tex.stackexchange.com/q/316504/323

In file-job.lua, we have:

local processors = utilities.storage.allocate {
...
[v_product] = {
[v_text]= { "many", processfilemany },
[v_project] = { "once", processfileonce },
[v_environment] = { "once", processfileonce },
[v_product] = { "many", processfilemany },
[v_component]   = { "many", processfilemany },
},
[v_component] = {
[v_text]= { "many", processfilemany },
[v_project] = { "once", processfileonce },
[v_environment] = { "once", processfileonce },
[v_product] = { "none", processfilenone },
[v_component]   = { "many", 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


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] 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 works
\item Two B
\stopitemize
  \stopmode
\stopitemize
\stoptext

Note that both modeA and modeB are not defined and hence not enabled.
When compiled with the latest version of ConTeXt MkIV, I get: Missing
number, treated as zero.
However, If I use the inline version \doifmode instead of the environment
version \startmode \stopmode, then the example compiles without problem.

I am afraid but this may be a bug.

Cheers,
Christoph
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[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 what column mode (i.e.
\startcolumn \stopcolumn, \startmixedcolumn\stopmixedcolumn,
columnsets or even the new module newcolumnsets?) they use, and how
they get mathematics to play with it without breaking the grid?

Also, if I start to write a new document with two columns today (it
will contain lots of images and lots of formulas and enumerations),
which column mode is the preferred one? Is there any documentation
(except the source) for the newcolumnsets? I want to be able to have
images span both columns and it would be nice if it played well with
sections as well.

Best regards, Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Modern CV like cover letter example

2017-04-18 Thread Henri Menke
Better use the language aware labeltexts

\setuplabeltext [language] [labellabel=text,labellabel=text,...]

rather than setting some macros based on self-defined modes.

On 04/18/2017 12:34 AM, Jonas Baggett wrote:
> Hello everyone,
> 
> As suggested by Wolfgang Schuster here : 
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087113.html , I have added 
> on the wiki an example of a cover letter that has a similar style to Modern 
> CV. You will find it here : 
> http://wiki.contextgarden.net/Letter_style#Modern_CV_like_cover_letter .
> 
> I hope it can help.
> 
> Cheers,
> Jonas Baggett
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] \doifmode error with question blocks

2017-05-18 Thread Jan Willem Flamma
Dear list members

If using modes to show or hide certain part of the text.

In the MWE below the part between the startmode[test] .. stopmode works jus 
fine. When using the \doifmode construction an error is produced on the 
position of the closing curly bracket.
I prefer to use \doifmode constructions because they can be nested. The 
question block must play a role here but I don’t know why.

Am I overlooking something here?

Kind regards,
Jan Willem Flamma



\enablemode[test]

\defineblock[question]
\defineblock[answer]

\starttext

\doifmode{test}{

\input knuth

\beginquestion
\startquestion
Question
\stopquestion
\endquestion
\beginanswer
\startanswer
Answer
\stopanswer
\endanswer

}


\startmode[test]

\input knuth

\beginquestion
\startquestion
Question
\stopquestion
\endquestion
\beginanswer
\startanswer
Answer
\stopanswer
\endanswer

\stopmode

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] problems with XML export

2017-11-12 Thread Pablo Rodriguez
On 11/12/2017 05:06 PM, Alan Braslau wrote:
> [...]> Whereas I might want to export systematically, Hans suggests that one
> should export in a separate run using modes for example. This is not a
> bad idea, but I would NOT want to have to then make a third run to fix
> the "broken" PDF. This would be a nightmare in bookkeeping and prone to
> errors.

Hi Alan,

another approach would be to enable a --purgeall option (in mxtrun
--script epub) that also removes both the PDF document and the *-epub
and *-export subdirectories.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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]
\usemodule[t-vim]
\definevimtyping[TEX][syntax=context]
\inlineTEX{%}
\stopmode
‽
\stoptext

Is there any work-around to prevent this, other than avoiding it completely?

% \enablemode[test]

\starttext

\startbuffer[test]
\type{%}
\stopbuffer

\startmode[test]
\getbuffer[test]
\stopmode
\startnotmode[test]
!
\stopnotmode

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] removing and reinstating xmlsetup's

2018-08-30 Thread Hans van der Meer

> On 30 Aug 2018, at 00:53, Hans Hagen  wrote:
> 
> On 8/29/2018 5:54 PM, Hans van der Meer wrote:
>> Doing: \xmlremovesetup{SETUP}
>> does not seems to have an effect.
>> Is it possible to deactivate a xml setup and reinstate at at a later point 
>> in time?
> normally one uses modes for that (inside the setup)
> 
> ir you can decide for explicit filtering (\xmlfilter)
> 

I cannot imagine how to accomplish it that way, given my intentions.

Solved it with a global if (not so happy with global code, but could not think 
of a neater, local solution).
All other solutions I tried typeset multiple copies of 








\startxmlsetups process:topnode  (structures the output, collects all 
s here)
\global\topleveltrue
\xmlall{#1}{subsubnode}
\global\toplevelfalse
\stopxmlsetups
\startxmlsetups process:subsubnode
\iftoplevel
…
\fi
\stopxmlsetups

dr. Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-08 Thread Alan Braslau
On Sat, 8 Dec 2018 12:43:34 -0500
Rik Kabel  wrote:

> It is also quite 
> useful in earlier stages of larger projects where it is important to 
> document sources (for circulation copies) but one is not ready to tackle 
> the design and generation of more formal backmatter.

In my incremental development, I place a bibliography at the end of a chapter, 
part, or even section - there is no need for this to be backmatter. Using 
modes, these then can remain or not be rendered as design advances.

Again, what is the point of pulling references if they do not refer to 
anything? In the Latex/bibtex workflow, the list is generated by bibtex, and 
this can, and does, lead to de-synchronization in a partial development process 
as you describe. Here, the list is generated and exists in lua, and we take 
great pains to insure that it remains synchronized.

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:05:27 +0100
Wolfgang Schuster  wrote:

> > But even your solution doesn't work here. Did you try it in the
> > example project file?  
> 
> \startenvironment [*]
> 
> \startsetups [itemgroup:en]
>    \setupitemgroup [itemize] [i]
> \stopsetups
> 
> \startsetups [itemgroup:sv]
>    \setupitemgroup [itemize] [a]
> \stopsetups
> 
> \setuplanguage
>    [en]
>    [setups=itemgroup:en]
> 
> \setuplanguage
>    [sv]
>    [setups=itemgroup:sv]
> 
> \appendtoks
> \doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}
> \to \everysetupdocument
> 
> \stopenvironment

That works, thanks.

One more question: I used to use modes, since I could just

  \startmode[*en]
…
  \stopmode

any number of times. There are many language dependent settings in
the environment files.

With named setups I need to specify a name for each occurrence and
gather them at the end. This is not as clean. Is it possible e.g. to
add something to an already existing setup instead of creating a new
one every time?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Check for parity of pair tags on source file to be closed

2020-01-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 10.01.2020 um 21:32:

On 1/10/20 1:46 PM, cont...@vivaldi.net wrote:

Hello Pablo,

thanks for your suggestion.

The "check" detected "\startitemize" which stayed open on the end of the
file, but did not detect "\if++" without correspondng "\fi".

Hi Lukas,

I don’t know whether checking for \if...\fi pairs is even implemented.


It shoudn't even be needed in a normal document because we have modes 
and \bgroup/\egroup can be replaced with \start/\stop.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] output file name query

2020-05-22 Thread Wolfgang Schuster

Alan Bowen schrieb am 22.05.2020 um 14:33:
In my project, I process a single product file by enabling various 
modes. What I would like to do is to vary the name of the output PDF 
file in each instance.


So, in processing a file, how does one go directly from prd_filename.tex 
to myfilename.pdf rather than to prd_filename.pdf—assuming that it is 
possible?


Any tips or pointers to what I should be reading will be 
greatly appreciated.


1. Drop the weird (sorry Hraban) naming system and use myfilename for 
your product.


2. Use the result option on the command line, e.g. "context 
--result=myfilename prd_filename.tex".


3. Ask Hans to add the result option to the first line of the document 
which is read by the context script before it creates the PDF.


% result="myfilename"
\starttext
...
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Pablo Rodriguez
On 12/3/20 9:23 PM, Hans Åberg wrote:
>> [...]
>> Again, formulas are totally foreign to my work with ConTeXt.
>
> When you do not use \text in math mode, it means implicit
multiplication, which has special spacing. Operator names use text
kerning. For example $sin x$ is implicit multiplication, and $\sin x$
the function "sin" applied to the variable x.

Many thanks for your explanation, Hans.

Now it’s clear to me that math and text modes are different in practice.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing VSCode extension?

2020-12-17 Thread Mikael Sundqvist
On Thu, Dec 17, 2020 at 10:40 AM Saša Janiška  wrote:

> On Thu, 17 Dec 2020 07:51:34 +0100
> Mikael Sundqvist  wrote:
>
> > To set the color theme, click the blue button "Set color theme".
>
> So, this is the only thing which can be configured?
>
>
> Sincerely,
> Gour
>
> --
> Everyone is forced to act helplessly according to the qualities
> he has acquired from the modes of material nature; therefore no
> one can refrain from doing something, not even for a moment.
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>

It is the only way I know of but maybe someone else knows more?

Best regards, Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] no leavevmode

2021-05-27 Thread Hans van der Meer
Why is there not implemented in \subsection a \leavevmode at the end of it? 
Here a minimal example showing that starting with the first word in an \hbox 
encounters vertical mode. Thus requiring a \leavevmode to put it on line with 
the following text. Whereas not starting with an \hbox does an implicite switch 
to horizontal mode.
I can imagine that this behaviour could be confusing for users not well versed 
in the different behaviour of the horizontal and vertical modes.
Therefore my question: Wouldn't it be wise to implement that \leavevmode?

\startsubsection[title=TEST]
\hbox{abc} def\crlf
ghi jkl xyz
\stopsubsection


dr. Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-20 Thread juh
Am Fri, Feb 19, 2021 at 01:17:15PM +0100 schrieb Hans Hagen:
> On 2/19/2021 11:46 AM, juh wrote:
> > Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen:
> > > The question is: what happens in that file with modes?
> > 
> > Nothing too fancy. I attached the files with mode definitions
> works here so you need to make a mwe

Maybe it was the option --arrange. When I unset it, lmtx compiles without
problems and the result seems to be ok.

I believe that I needed the options earlier because I position three pages on a 
a4 paper to get
a folded flyer. The option seems to be obsolete now.

Ciao!
Jan Ulrich Hasecke


-- 
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen

On 2/19/2021 10:21 AM, juh wrote:

Hi,

I can't yet provide a mwe as the project is quite complex and includes color
profiles and bleed.

I can process it with context.

When I process it using lmtx but without colorprofiles and bleed, it works.

When I process it using lmtx with colorprofiles and bleed, it get this error:

tex error   > tex error on line 1 in file 
./prod-poster-motiv-souveraenitaet.tex: You can't use 'integer 340' in internal 
vertical mode

The question is: what happens in that file with modes?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen

On 2/19/2021 11:46 AM, juh wrote:

Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen:

The question is: what happens in that file with modes?


Nothing too fancy. I attached the files with mode definitions

works here so you need to make a mwe

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] improve bad habits deduplicate redundant defined values

2021-09-18 Thread Hans Hagen via ntg-context

On 9/18/2021 2:57 PM, Denis Maier via ntg-context wrote:


Ok. So in general you deal with diverging demands by creating new environments 
that you can load selectively?
I currently struggle with a similar question: In one project I typeset articles 
for a journal from XML sources with ConTeXt. Obviously, these articles should 
rely on the same environment files. But how would you deal with those cases 
where you'd need a slightly different table layout in one article?


one can always use 'modes' (andf run with --mode)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Henning Hraban Ramm via ntg-context

Am 28.11.21 um 19:39 schrieb Fabrice L via ntg-context:
I have an error when I try to insert a block inside a conditional mode 
(but there is two nested conditional mode.. is this the problem ?).


You can’t nest modes in \startmode ... \stopmode.
I don’t know what are the limitations of \doifmode.

Maybe it helps to use additional grouping with {}, \bgroup .. \egroup or 
\start .. \stop.


In my courses notes, I insert some blocks (named «  Complement » in the 
minimal exemple below) when in « Professor » mode. This works fine, as 
shown in the first «  \beginComplement … \endComplement  » of my example 
below.


Maybe you can work with buffers or (ConTeXt) blocks (the latter were 
recently discussed here, it’s a quite unknown mechanism).



Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Gerben Wierda via ntg-context
I have this:

\definemode[EN,FR,RU,PT][keep]
\doifmodeelse{EN}
  {
\disablemode[FR]
\disablemode[RU]
\disablemode[PT]
  }
  {
\doifmodeelse{FR}
{
  \disablemode[EN]
  \disablemode[RU]
  \disablemode[PT]
}
{
  \doifmodeelse{RU}
  {
\disablemode[EN]
\disablemode[FR]
\disablemode[PT]
  }
  {
\doifmodeelse{PT}
{
  \disablemode[EN]
  \disablemode[FR]
  \disablemode[RU]
}
{
  \enablemode[EN]
}
  }
}
  }

But for every language added this becomes more and more complex. I was 
wondering what would be a good approach to simplify it. 

I want to make sure that one and only one of these modes is active and that if 
no mode is entered on the command line the mode is EN.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Gerben Wierda via ntg-context

> On 11 May 2022, at 08:59, Taco Hoekwater  wrote:
> 
> 
> 
>> On 10 May 2022, at 23:40, Gerben Wierda via ntg-context  
>> wrote:
>> 
>> Fix
> 
>>> I was wondering if this can be simplified, e.g. by setting language on the 
>>> command line instead, enable a mode derived from a language set on the 
>>> command line, 
> 
> The language settings trigger a system mode, see
> 
> https://wiki.contextgarden.net/Modes#System_modes

Thanks, but how do I influence this from the command line? Does it work the 
other way around, so with “—mode=en”?

Yours,

G

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Pablo Rodriguez via ntg-context
On 5/11/22 09:40, Gerben Wierda via ntg-context wrote:
>> On 11 May 2022, at 08:59, Taco Hoekwater  wrote:
>> [...]
>> The language settings trigger a system mode, see
>>
>> https://wiki.contextgarden.net/Modes#System_modes
>
> Thanks, but how do I influence this from the command line? Does it
> work the other way around, so with “—mode=en”?
Hi Gerben,

I think this may do the trick:

  \doiftext{\env{ml}}
{\mainlanguage[\env{ml}]}
  \starttext
   Document main language:
\startmodeset
[**en] {English}
[**es] {Spanish}
[**de] {German}
[**nl] {Dutch}
[**ru] {Russian}
\stopmodeset%
   .
  \stoptext

Of course, "--arguments=ml=nl" would be the right option to pass the
language from the command line.

AfaIk, there is not "--language" option from the command line. (This
also makes sense to me.)

Just in case it might help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:40, Ali Ali wrote:
> Thanks, those seems close to what I wanted but not exactly.
>
> The ASCII graphic (better in typewriter font) may explain what I desired,
> ```
> text width
>  |<>|
>
> ##.   SECTION TITLE paragraph
>   ...
>   .
>
> |<-->|
> margin
> ```
> I wanted paragraph to begin on the same line the section title lies.

Hi Ali,

from what I understand, you need both alternative=inmargin (or margin)
and alternative=text.

I’m afraid they are mutually exclusive alternative modes.

Just in case it might help,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: learning about the grid

2023-11-19 Thread Henning Hraban Ramm

Am 19.11.23 um 13:27 schrieb Miguel Diaz:
1. Why are the lines printed one over the other when grid=no? how do 
profis then use context without grid?


That usually only happens in one of the column modes that requires the 
grid. It doesn’t happen in usual one-column typesetting. There must be 
something wrong in your setup.


Please make a minimal example (MWE).

2. Is there a document where I can read how the grid is conceived to 
work for the many options in a simple way?


AFAIK, the details manual is the only documentation for it.

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


<    1   2   3   4   5   6   7   >