Re: [NTG-context] \setupalign (protrusion and expansion) in notes

2016-07-29 Thread Hans Hagen

On 7/29/2016 10:32 PM, Pablo Rodriguez wrote:

Hans,

I have the following sample:

\definefontfeature
[default]
[default]
[expansion=quality,
 protrusion=quality]

\setupalign
[hanging, hz]

\starttext
\input knuth\footnote{\input knuth}
\stoptext

Notes don’t inherit by default the \setupalign values.

Wouldn’t it make sense that they share the same align values than the
main text, unless other values are specified for notes?


notes really are a separate stream (and also kind of asynchronous ... 
what if you change the alignment temporary and a page break occurs in 
between


the same for headers and footers

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

[NTG-context] \setupalign (protrusion and expansion) in notes

2016-07-29 Thread Pablo Rodriguez
Hans,

I have the following sample:

\definefontfeature
[default]
[default]
[expansion=quality,
 protrusion=quality]

\setupalign
[hanging, hz]

\starttext
\input knuth\footnote{\input knuth}
\stoptext

Notes don’t inherit by default the \setupalign values.

Wouldn’t it make sense that they share the same align values than the
main text, unless other values are specified for notes?

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] Use \framedtext to write an algorithm

2016-07-29 Thread Wolfgang Schuster

Fabrice Couvreur 
29. Juli 2016 um 16:43
I know that Wolfgang wrote a module to reproduce algorithms, but it is 
in English!

Can we ensure to respect the withdrawal of the text ?

You can use the lines environment with enabled spaces (space=on).

\defineframedtext
  [algorithmframe]
  [width=fit,
   background=color,
   backgroundcolor=lightgray,
   framecolor=darkred,
   corner=round]

\definelines
  [algorithm]
  [space=on,
   before=\startalgorithmframe,
   after=\stopalgorithmframe]

\starttext

\startalgorithm
Variables \math{I} et \math{J} entiers
T tableau d'entiers
Début
Pour \math{I} allant de \math{1} à \math{3}
   Pour \math{J} allant de \math{1} à \math{3}
 Si \math{J>I}
Alors \math{T[I, J]=J-I}
Sinon \math{T[I, J]=0}
 Fin Si
   Fin Pour
Fin
\stopalgorithm

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

[NTG-context] Use \framedtext to write an algorithm

2016-07-29 Thread Fabrice Couvreur
I know that Wolfgang wrote a module to reproduce algorithms, but it is in
English !
Can we ensure to respect the withdrawal of the text ?

\starttext

\framedtext
  [align={middle,verytolerant,
   fit,nothyphenated,stretch},
   width=0.4\textwidth,
   background=color,
   backgroundcolor=lightgray,
   framecolor=darkred,
   corner=00,]


  Variables \math{I} et \math{J} entiers

  T tableau d'entiers

  Début

  Pour \math{I} allant de \math{1} à \math{3}

 Pour \math{J} allant de \math{1} à \math{3}

   Si \math{J>I}

  Alors \math{T[I, J]=J-I}

  Sinon \math{T[I, J]=0}

   Fin Si

 Fin Pour

  Fin

}


\stoptext

Thanks,
Fabrice
___
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] placelocalfootnotes breaks center alignment

2016-07-29 Thread Henri Menke
Dear list,

sometimes, one wants to place footnotes in a table which then appear right 
below the last row.  Therefore ConTeXt ships the clever 
`\start...\stoplocalfootnotes` mechanism.  Unfortunately, putting 
`\placelocalfootnotes` outside of the table breaks the centering of the table 
itself.  For illustration please see the example below.  How can I have my 
table centered while the footnotes are either left-aligned with respect to the 
left border of the table or left-aligned with respect to the page (whatever is 
easier)?

Cheers, Henri

---

\starttext

\startplacetable
  [title={some table}]
  \startlocalfootnotes
\startTABLE
  \NC Content\footnote{Footnote} \NC\NR
\stopTABLE
\placelocalfootnotes % commenting out unbreaks alignment
  \stoplocalfootnotes
\stopplacetable

\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] Something got wrong here

2016-07-29 Thread Ursula Hermann
Hello Alan and Henri!

Thanks so much fort he tipps.

Uschi

-Ursprüngliche Nachricht-
Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Alan BRASLAU
Gesendet: Donnerstag, 28. Juli 2016 22:17
An: Henri Menke
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Something got wrong here

On Thu, 28 Jul 2016 19:52:41 +0200
Henri Menke  wrote:

> \footnote{\cite[righttext={; p.~1}][Berlant2011]}

Several comments:

1. \setupbtx [default:cite:righttext] [left={; }] allows you to drop the 
semicolon+space in your righttext values, if this is what you desire; 
[left=\btxsemicolon] can also be used.

2. \footnote{\cite[alternative=entry,after={ p.~1}][Berlant2011]} allows you to 
include the full citation in the footnote, if desired.
This is the same as \footnote{\placecitation[Berlant2011]}.
(Note that this still requires the use of \placelistofcitations somewhere in 
the text.) The difference between "righttext=" and "after=" in a \cite is that 
the first one adds the page reference to the citation reference and the second 
adds the page reference to the end of the citation rendering.

3. The default style is extremely basic. One can setup the citation reference 
numbers to be placed high like footnote references, if desired.

Alan



--
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
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
___

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