Re: [NTG-context] Chemical reaction...

2016-11-10 Thread Alan BRASLAU
\startplacechemical
  \startchemicalformula
 ...
  \stopchemicalformula
\stopplacechemical


Alan

On Tue, 8 Nov 2016 20:06:27 +0100
Willi Egger  wrote:

> I am busy to edit an older article in which there are a couple of
> chemical fromulas and reactions.
> 
> However, I am stuck because the following throws me an error when
> uncommenting the line with “\chemical{2H^\oplus}{~waterstof
> (zuur)}” (something with $ inserted…)
> 
> Another aspect is, that the {DEZ} does not appear. Further the
> {zinkion} and {ethan} appear not as text under the formula but as
> text next to it.
> 
> \starttext 
> \placeformula 
>   \startformula 
> \chemical{(C_2H_5)_2Zn}{DEZ} 
> \chemical{PLUS} 
> % \chemical{2H^\oplus} {waterstof (zuur)} 
> \chemical{GIVES}
> \chemical{Zn^{2\oplus}}{zinkion} 
> \chemical{PLUS} 
> \chemical{2(C_2H_6)}{ethan} 
>   \stopformula 
> \stoptext
> 
> Thank you for hints, what I am missing here…
> 
> Kind regards
> 
> Willi

___
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] Extract only certain part of document (via modes)?

2016-11-10 Thread Wolfgang Schuster

Hans Hagen 
10. November 2016 um 17:27


search for 'blocks' ...

\defineblock
...
\hideblocks
\keepblocks
\useblocks
\processblocks
\selectblocks

This doesn’t solve the problem because he want a document which
contains *only* certain blocks and nothing else, a solution for this
is a commands (\saveblocks) which saves the content of a block
in a external file (like \savebuffer does).

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] Extract only certain part of document (via modes)?

2016-11-10 Thread Hans Hagen

On 11/6/2016 12:51 PM, Mikael P. Sundqvist wrote:

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")?


search for 'blocks' ...

\defineblock
...
\hideblocks
\keepblocks
\useblocks
\processblocks
\selectblocks

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] Creeps (binding gutter / margin correction in imposition)

2016-11-10 Thread Hans Hagen

On 11/7/2016 11:07 PM, Henning Hraban Ramm wrote:

Am 2016-11-07 um 17:44 schrieb Willi Egger :


I am not sure about what you say. The page shifting/creep correction is added 
individually per spread. If this is done correctly then the typeset area is on 
all pages the same width and has after folding and cutting  the same outer 
margin.


Exactly. But I wanted to discuss the idea to adapt the width of the text area 
(\textwidth) or maybe the width of margins (the marginals area that ConTeXt 
calls margin) to the page shift, so that the optical width of the margins (what 
ConTeXt calls edges) stays the same.
As far as I know, nobody ever did that - of course, it’s a major effort for 
little gain, and it complicates TeX’s line breaking, the engine would need to 
know about imposition while breaking lines.
But since we can have snake-justified text, I thought I could bring up the idea 
;)


The problem there is that you then need to mess with parshapes or reflow 
(not impossible) because a paragraph can cross a page boundary. As usual 
the problem is not in simple texts but in a mix.


Messing with margins might be easier (cutspace/backspace).

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