Re: [NTG-context] E-books and XML.

2014-08-30 Thread Henning Hraban Ramm

Am 2014-08-29 um 18:46 schrieb Hans Hagen pra...@wxs.nl:

 Is there already a solution for \em (or \emph) and other switches? They 
 don’t show up in export.xml.
 
 use 'highlights'

Ah, of course, thanks. Forgot to copy my \definehighlight from the previous 
ebook project.

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
___


Re: [NTG-context] bug in hyphenation?

2014-08-30 Thread Hans Hagen

On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:

Dear list,

the following sample shows bad hyphenation in the first body line and in
many linenotes:

\showframe
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]
\setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[linenote][numbercommand=, width=broad,
alternative=serried, distance=1em]

\starttext
\startlinenumbering
\showhyphens{testing paragraph}
\dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
testing\linenote{nesting} sentence\linenote{table}. }
\stoplinenumbering
\stoptext

If this is not a bug, what am I missing here?

Many thanks for your help,


more a side effect of binding a reference node and such ... possible 
solution in next beta


-
  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] bug in hyphenation?

2014-08-30 Thread Pablo Rodriguez
On 08/30/2014 12:00 PM, Hans Hagen wrote:
 On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
 Dear list,

 the following sample shows bad hyphenation in the first body line and in
 many linenotes:
 [...]
 If this is not a bug, what am I missing here?
 
 more a side effect of binding a reference node and such ... possible 
 solution in next beta

Many thanks for your help, Hans.


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] Arranging not working

2014-08-30 Thread Willi Egger
Hi all,

I updated ConTeXt today (version 29-08-2014)

I need to compile a document with page impositioning. But it seems that 
arranging is not working i.e. the command is just ignored.

What to do?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arranging not working

2014-08-30 Thread Pablo Rodriguez
On 08/30/2014 02:34 PM, Willi Egger wrote:
 Hi all,
 
 I updated ConTeXt today (version 29-08-2014)
 
 I need to compile a document with page impositioning. But it seems
that arranging is not working i.e. the command is just ignored.

Hi Willy,

this works for me with beta from 2014.08.29 20:57:

\setuppapersize [A5][A4,landscape]
\setuparranging [2UP, doublesided]
\setuplayout [page]
\starttext
\insertpages[document.pdf][width=0pt]
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Chapter precis

2014-08-30 Thread Alan BRASLAU
Interesting thread.

I currently use:

\definestartstop [precis]
 [style=italic,indenting=no,indentnext=no,after={\blank}]

and then

\startchapter [title=A Chapter]

\startprecis
Short summary text.
\stoprecis

\stopchapter


and indeed it could be interesting to also include this text in the
table of contents as suggested in this thread.

I thought about adding
before={\startbuffer[precis]},
 
after={\stopbuffer\getbuffer[precis]\writetolist[chapter]{}{\getbuffer[precis]}}
to the \definestartstop
but this does not seem to work. I did not try further.
Perhaps someone has an idea on how to better achieve this?

Alan


On Thu, 28 Aug 2014 16:46:28 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 28.08.2014 um 16:17 schrieb Werner Hintze w.hin...@posteo.eu:
 
  Some old fashioned novels have a chapter précis in the table of
  contents. In Latex exists the command \chapterprecis to put the
  text at the beginning of the chapter and in the able of contents. I
  thought, I can realize this in ConTeXt with
  
  \writebetweenlist[chapter]{XYZ}
  
  or with
  
  \weitetolist[chapter]{XYZ}
  
  But both produce only a fatal error. What’s wrong here?
 
 
 Hard to tell without a example which demonstrates the error because
 the following works for me.
 
 \starttext
 
 \completecontent
 
 \chapter{This is a chapter}
 
 \writetolist[chapter]{}{This is a summary of the chapter with
 \tex{writetolist}.}
 
 \writebetweenlist[chapter][location=here]{This is a summary of the
 chapter with \tex{writebetweenlist}.}
 
 \chapter{This is another chapter}
 
 \stoptext
 
 Wolfgang


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.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] Arranging not working

2014-08-30 Thread Willi Egger
Hi Pablo, 

thank you for your reply. What I missed apparently is, that one needs to add 
‘double sided’ to the \setuprarranging command. (I must have mist this, because 
previously this was not needed….

Kind regards

Willi
On 30 aug. 2014, at 15:13, Pablo Rodriguez oi...@gmx.es wrote:

 On 08/30/2014 02:34 PM, Willi Egger wrote:
 Hi all,
 
 I updated ConTeXt today (version 29-08-2014)
 
 I need to compile a document with page impositioning. But it seems
 that arranging is not working i.e. the command is just ignored.
 
 Hi Willy,
 
 this works for me with beta from 2014.08.29 20:57:
 
\setuppapersize [A5][A4,landscape]
\setuparranging [2UP, doublesided]
\setuplayout [page]
\starttext
\insertpages[document.pdf][width=0pt]
\stoptext
 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \preventmode does not work

2014-08-30 Thread Rik

At least in MKIV. I haven't tried MKII.

The following example should demonstrate this. With no mode specified on 
the command line, this should enable mode three and prevent and disable 
the other modes. It seems that \preventmode is not only ineffective in 
what it is described as doing, but also disables the following \disablemode!


Or perhaps I am misusing this or misunderstand what it should do. 
(2014-08-29 20:57 standalone)


   \definemode[one][keep]
   \definemode[two][keep]
   \definemode[three][keep]

   \define\ModeOne{nil}
   \define\ModeTwo{nil}
   \define\ModeThree{nil}

   \startmode[one]
  \define\Mode{one}
  \define\ModeOne{set}
  \disablemode[two,three]
   \stopmode

   \startmode[two]
  \define\Mode{two}
  \define\ModeTwo{set}
  \disablemode[one,three]
  \preventmode[one]
   \stopmode

   \startnotmode[one,two]
  \define\Mode{three}
  \define\ModeThree{set}
  \enablemode[three]
  \preventmode[one,two]
  \disablemode[one,two]
   \stopnotmode

   \starttext
   Mode is \Mode.

   ModeOne is \ModeOne.

   ModeTwo is \ModeTwo.

   ModeThree is \ModeThree.

   Mode \doifmode{one}{one}\doifmode{two}{two}\doifmode{three}{three}
   is active.
   \stoptext

--
Rik Kabel


___
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] Subformula numbering problem

2014-08-30 Thread Zenlima
I created an overview about what works with the formula numbering and
what not - in the hope that Context might be usable for
formula-containing academic papers again on time. Unluckily I am not
deep enough in Context to fix it by myself.
___
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] Problem with embedding code TikZ code

2014-08-30 Thread Joshua Krämer
On 2014-08-29, 20:22, Fabrice Couvreur wrote:

 In the code below, I do not understand why the label Arbre 2 does
 not have the color you want, that is to say the same as the label
 Arbre 1. Thank you.

I do not know why it does not work, but this is how it works:

\draw [text=H1prime, font=\bf] (-2.96,4.4) node {Arbre 2};

or

\node [text=H1prime, font=\bf] at (-2.96,4.4) {Arbre 2};

Kind regards,
Joshua Krämer


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