Re: [NTG-context] \blank[force, halfline] at top page issue

2016-09-30 Thread josephcanedo
Hi Marcus, 

Thanks for the tip, somewhat better in terms of alignment to the grid (but 
there is now larger space before exactly 1 line in excess). Unfortunately if 
the \blank[force, halfine, depth] is not first in page the vertical alignment 
is now wrong, and I do not know if a given \blank will be first or not in the 
page.

Best regards

Joseph Canedo

De : Marcus Vinicius Mesquita
Envoyé le :vendredi 30 septembre 2016 23:08
À : mailing list for ConTeXt users
Objet :Re: [NTG-context] \blank[force, halfline] at top page issue

Try

\blank[force,halfline,depth]


___
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] \blank[force, halfline] at top page issue

2016-09-30 Thread Marcus Vinicius Mesquita
Try

\blank[force,halfline,depth]
___
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] mathmatrix and grid

2016-09-30 Thread Henri Menke
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is rounded 
down for no apparent reason whereas the depth is rounded up correctly.  
Visually it appears to me that the height should be rounded up here.  In the 
MWE I added a \vrule to show that the determined height of the line definitely 
does not coincide with what one would expect.

How can I fix that?  MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
  \vrule % make lineheight and depth visible
  \startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
  \stopmathmatrix
\stopformula
\input tufte

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

Re: [NTG-context] appendices disregards page method

2016-09-30 Thread Alain Auger

Hi Henri,
try this :

---
\setuppagenumbering[alternative=doublesided]

\setupsectionblock[bodypart] [page=]
\setupsectionblock[appendix] [page=]
\definepagebreak[chapterpagebreak][yes,header,footer,right]
\setuphead[chapter][page=chapterpagebreak]

\starttext
\startbodymatter
\startchapter[title={One}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
  \dorecurse{10}{\input knuth}
\stopchapter
\stopbodymatter
\startappendices
  \startchapter[title={Four}]
\dorecurse{10}{\input knuth}
  \stopchapter

  \startchapter[title={Five}]
\dorecurse{10}{\input knuth}
  \stopchapter
\stopappendices
\stoptext

---

An adaptation from wiki : http://wiki.contextgarden.net/Titles

Alain Auger

Le 16-09-30 à 15:38, Henri Menke a écrit :

Dear list,

when I'm starting a new chapter I want it to start on a recto page and if a 
page without text has to be inserted to fulfil this requirement it should be 
completely blank (no headers of footers).  It was easy to achieve using 
\definepagebreak and setting the page method of the chapter (see MWE).  
However, when I switch to the appendix, this page method is disregarded and the 
preceding page is _not_ blank.  In my MWE below, page 12 should actually be 
completely blank, i.e. no page number.

How can this be achieved?

Cheers, Henri

---

\setuppagenumbering[alternative=doublesided]

\definepagebreak
   [chapterpagebreak]
   [yes,header,footer,right]

\setuphead
   [chapter]
   [page=chapterpagebreak]

\starttext

\startchapter[title={One}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startappendices
   \startchapter[title={Four}]
 \dorecurse{10}{\input knuth}
   \stopchapter

   \startchapter[title={Five}]
 \dorecurse{10}{\input knuth}
   \stopchapter
\stopappendices

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



--

Alain Auger
Infographiste


___
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] appendices disregards page method

2016-09-30 Thread Henri Menke
Dear list,

when I'm starting a new chapter I want it to start on a recto page and if a 
page without text has to be inserted to fulfil this requirement it should be 
completely blank (no headers of footers).  It was easy to achieve using 
\definepagebreak and setting the page method of the chapter (see MWE).  
However, when I switch to the appendix, this page method is disregarded and the 
preceding page is _not_ blank.  In my MWE below, page 12 should actually be 
completely blank, i.e. no page number.

How can this be achieved?

Cheers, Henri

---

\setuppagenumbering[alternative=doublesided]

\definepagebreak
  [chapterpagebreak]
  [yes,header,footer,right]

\setuphead
  [chapter]
  [page=chapterpagebreak]

\starttext

\startchapter[title={One}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startappendices
  \startchapter[title={Four}]
\dorecurse{10}{\input knuth}
  \stopchapter

  \startchapter[title={Five}]
\dorecurse{10}{\input knuth}
  \stopchapter
\stopappendices

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

Re: [NTG-context] Hyphenation on apostrophe and proper noun

2016-09-30 Thread Alain Auger

Bonjour Jean-Pierre,
excellent ! Votre solution corrige le problème de l'apostrophe.

Toutefois j'ai rencontré un message d'erreur avec la commande : 
\mainlanguage[fr]
Est-ce la version de ConTeXt que j'utilise ? (ConTeXt  ver: 2016.05.17 
19:20 MKIV current  fmt: 2016.8.29  int: english/english)

Mais en retirant cette commande, l'hyphenation fonctionne bien.
Si je pourrais gérer les noms propres, ce serait encore mieux.

Encore merci !

Alain Auger

-
Hi Jean-Pierre,
excellent! Your solution corrects the apostrophe problem.

However, I encountered an error message with the \mainlanguage [fr]
Is the version of ConTeXt I use? (ConTeXt worm: 2016.05.17 7:20 p.m. 
MKIV current fmt: 2016.8.29 int: English / English)

But removing this command, the hyphenation works well.
If I could manage the proper noun, it would be even better.

Thanks again !

Alain Auger


Le 16-09-30 à 12:29, Jean-Pierre Delange a écrit :

Hi Alain,

J'ai rencontré le même problème, y compris pour la ponctuation dans les notes 
et j'ai résolu le problème de la manière suivante.
I've encountered the same issue, even in footnotes, and I've solved it with 
this (note that there are other languages than French in my documents) :

\setuplanguage[fr][patterns={fr,agr}]
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

- Mail original -
De: "Alain Auger" 
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 15:45:53
Objet: [NTG-context] Hyphenation on apostrophe and proper noun


Dear list,
T here is a way to prevent hyphenation to occur on a apostrophe " L' -..." ,
and also on proper noun ?

\language[fr]
\setcharacterspacing[frenchpunctuation]
\setupalign[stretch,verytolerant]

---

L’un des critiques, Dean Farrar, écrivit : « L’-
histoire n’a jamais entendu parler d’un roi Belt-
schatsar. »
---

Thanks!

Alain Auger

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



--

Alain Auger
Infographiste


___
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] annotated text: main text in narrower text, annotations on the right

2016-09-30 Thread Jean-Pierre Delange
Hi Massi,

Why don't you try this kind of parallel paragraphs ?

% \setuppapersize[A5]
\defineparagraphs[TwoThird][n=2]
% The second paragraph width is automatically calculated, if not specified.
\setupparagraphs[TwoThird][1][width=.66\textwidth]
\starttext
\startTwoThird
quotation{...{\it pourquoi y a-t-il quelque chose plutôt que rien ?}
Parce que rien n’est plus simple et facile que quelque chose.
Plus loin, sachant que les choses existent,
on doit être en mesure d’expliquer
{\it pourquoi elles existent ainsi,}
et pas autrement.}
\nextTwoThird
G. W. Leibniz, {\it\fr Principes de la nature et de la grâce fondés en raison,} 
1714.
\stopTwoThird
\stoptext

Another solution is :

\defineparagraphs[TwoColumns][n=2,align=verytolerant]
\startsetups[TwoColumns]
\setupinterlinespace[line=5ex]
\stopsetups
\setupparagraphs[TwoColumns:2][inner=\directsetup{TwoColumns}]

\starttext
\input tufte

% here start the twocolumns
\startTwoColumns

\startlines
{\bf ontact information}
Adeimantos
3 Achaion Street
Attica
Gr - 11852 Athens
adeiman...@uc.cy

{\bf Edition}
Essays § Novels

{\bf Development}
Prototype

{\bf Year}
2016

{\bf Private funding}
\$0

\stoplines

% Starting second column
\TwoColumns
\input ward
 \blank
\input ward

\stopTwoColumns

\stoptext

- Mail original -
De: "mf" 
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 00:09:16
Objet: Re: [NTG-context] annotated text: main text in narrower text, 
annotations on the right


>  Which feature from verbatim annotations do you need because style
> and color
> changes can be applied in normal text without problems.
> 
> Wolfgang

Thanks for the answer, Wolfgang.

That's not style and color, it's a sort of two-column layout with the
main text in the left column and annotations (comments) in the right
one.
Example (it does not work):

\starttext

This is the main text\sidenote{annotation} flowing in the left
column...

\stoptext

resulting in

|This is the main text flowing   | annotation               |
|in the left column...           |                          |

You can do it with setuplayout and a wider right margin, using \inright
for annotations, but it's for the whole document or a whole page.
Is that possibile only for a section of text inside a page?

Best regards,
Massi
___
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
___

Re: [NTG-context] Hyphenation on apostrophe and proper noun

2016-09-30 Thread Jean-Pierre Delange
Hi Alain,

J'ai rencontré le même problème, y compris pour la ponctuation dans les notes 
et j'ai résolu le problème de la manière suivante.
I've encountered the same issue, even in footnotes, and I've solved it with 
this (note that there are other languages than French in my documents) :

\setuplanguage[fr][patterns={fr,agr}]
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

- Mail original -
De: "Alain Auger" 
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 15:45:53
Objet: [NTG-context] Hyphenation on apostrophe and proper noun


Dear list, 
T here is a way to prevent hyphenation to occur on a apostrophe " L' -..." , 
and also on proper noun ? 

\language[fr] 
\setcharacterspacing[frenchpunctuation] 
\setupalign[stretch,verytolerant] 

--- 

L’un des critiques, Dean Farrar, écrivit : « L’- 
histoire n’a jamais entendu parler d’un roi Belt- 
schatsar. » 
--- 

Thanks! 

Alain Auger 

___
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] Hyphenation on apostrophe and proper noun

2016-09-30 Thread Alain Auger

Dear list,
There is a way to prevent hyphenation to occur on a apostrophe "L'-...",
and also on proper noun?

\language[fr]
\setcharacterspacing[frenchpunctuation]
\setupalign[stretch,verytolerant]

---
 L’un des critiques, Dean Farrar, écrivit : « L’-
histoire n’a jamais entendu parler d’un roi Belt-
schatsar. »
---

Thanks!

Alain Auger
___
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] annotated text: main text in narrower text, annotations on the right

2016-09-30 Thread Wolfgang Schuster

mf 
30. September 2016 um 00:09

Thanks for the answer, Wolfgang.

That's not style and color, it's a sort of two-column layout with the
main text in the left column and annotations (comments) in the right
one.

This is not a real multcolumn text because in verbatim text each space
in the input appear also in the output and in the examples spaces
where used to align the code comments on the same position.

Example (it does not work):

\starttext

This is the main text\sidenote{annotation} flowing in the left
column...

\stoptext

resulting in

|This is the main text flowing   | annotation   |
|in the left column...   |  |

You can do it with setuplayout and a wider right margin, using \inright
for annotations, but it's for the whole document or a whole page.
Is that possibile only for a section of text inside a page?

You can use the narrower environment to change the margins for a certain
text area and use the paragraphs environment to create two columns
with different widths in this area.

%% begin example
\definenarrower
  [SidenotesMargin]
  [before=\blank,
   after=\blank,
   right=\rightmarginwidth,
   default=-right]

\defineparagraphs[Sidenotes]
\setupparagraphs [Sidenotes]  
[n=2,before={\startnarrow[SidenotesMargin]},after=\stopnarrow]

\setupparagraphs [Sidenotes:1][width=.6\localhsize,distance=.1\localhsize]
\setupparagraphs [Sidenotes:2][width=.3\localhsize]

\starttext

\input knuth

\startparagraphs[Sidenotes]
\startparagraphscell
\input knuth
\stopparagraphscell
\startparagraphscell
\input ward
\stopparagraphscell
\stopparagraphs

\input knuth

\stoptext
%% end example

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
___