Re: [NTG-context] placelocalfootnotes breaks center alignment

2016-08-15 Thread Aditya Mahajan

On Mon, 15 Aug 2016, Wolfgang Schuster wrote:


 Henri Menke <mailto:henrime...@gmail.com>
 29. Juli 2016 um 12:48
 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

You can use the pairedbox mechanism to place the notes under the table.

\definepairedbox
  [footnote]
  [width=\textwidth,
   align=middle]


Or, if you don't want to set the width to textwidth, simply wrap 
everything in a vbox (I use framedtext for convenience)


\starttext
\startplacetable[title={some table}]
  \startframedtext[width=fit,align=middle,frame=off]
  \startlocalfootnotes
\startTABLE
  \NC Content\footnote{Footnote} \NC\NR
\stopTABLE

    \placelocalfootnotes
  \stoplocalfootnotes
\stopframedtext
\stopplacetable
\stoptext

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] placelocalfootnotes breaks center alignment

2016-08-15 Thread Wolfgang Schuster

Jean-Pierre Delange 
15. August 2016 um 13:19

Dear Wolfgang,

Thanks a lot ! In order to verify the mechanism with a French 
document, I have set your code sample with French commands and replace 
'Content' by 2 texts of around 15 lines each (after removing \input 
tufte and \input ward previously given), and fill the tables titles 
with words of my own. All is fine, except hyphenation which doesn't 
appear here.


\mainlanguage[fr]

\setcharacterspacing[frenchpunctuation]

\defineparagraphs[n=1, align={hz,hanging}]

\setupalign[hyphenated]



You may try with this text (in place of 'Content') :
« Dans la société présente, où le jeu de la spécialisation s’est outré 
automatiquement, les fonctions intellectuelles et les fonctions 
manuelles ne sont presque jamais attribuées aux mêmes ouvriers. »

1. Create a working minimal example, not only code snippets.

2. Start a new thread [1] for your question.

[1] 
http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html


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] placelocalfootnotes breaks center alignment

2016-08-15 Thread Jean-Pierre Delange

Dear Wolfgang,

Thanks a lot ! In order to verify the mechanism with a French document, 
I have set your code sample with French commands and replace 'Content' 
by 2 texts of around 15 lines each (after removing \input tufte and 
\input ward previously given), and fill the tables titles with words of 
my own. All is fine, except hyphenation which doesn't appear here.


\mainlanguage[fr]

\setcharacterspacing[frenchpunctuation]

\defineparagraphs[n=1, align={hz,hanging}]

\setupalign[hyphenated]



You may try with this text (in place of 'Content') :
« Dans la société présente, où le jeu de la spécialisation s’est outré 
automatiquement, les fonctions intellectuelles et les fonctions 
manuelles ne sont presque jamais attribuées aux mêmes ouvriers. »


Thanks for your help.
JP

\definepairedbox
  [footnote]
  [width=\textwidth,
   align=middle]

\starttext

\startplacetable[title={some table}]
\startlocalfootnotes
\startplacepairedbox[footnote]
\startcontent
\startTABLE
\NC Content\footnote{Footnote} \NC\NR
\stopTABLE
\stopcontent
\startcaption
\placelocalfootnotes
\stopcaption
\stopplacepairedbox
\stoplocalfootnotes
\stopplacetable

\startplacetable[title={some table}]
\startlocalfootnotes
\placepairedbox[footnote]
{\startTABLE
 \NC Content\footnote{Footnote} \NC\NR
 \stopTABLE}
{\placelocalfootnotes}
\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] placelocalfootnotes breaks center alignment

2016-08-15 Thread Wolfgang Schuster

Henri Menke <mailto:henrime...@gmail.com>
29. Juli 2016 um 12:48
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

You can use the pairedbox mechanism to place the notes under the table.

\definepairedbox
  [footnote]
  [width=\textwidth,
   align=middle]

\starttext

\startplacetable[title={some table}]
\startlocalfootnotes
\startplacepairedbox[footnote]
\startcontent
\startTABLE
\NC Content\footnote{Footnote} \NC\NR
\stopTABLE
\stopcontent
\startcaption
    \placelocalfootnotes
\stopcaption
\stopplacepairedbox
\stoplocalfootnotes
\stopplacetable

\startplacetable[title={some table}]
\startlocalfootnotes
\placepairedbox[footnote]
{\startTABLE
 \NC Content\footnote{Footnote} \NC\NR
 \stopTABLE}
{\placelocalfootnotes}
\stoplocalfootnotes
\stopplacetable

\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] placelocalfootnotes breaks center alignment

2016-08-14 Thread Henri Menke
Bump

On 07/29/2016 12:48 PM, Henri Menke wrote:
> 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
___

[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] indenting and \placelocalfootnotes

2005-02-17 Thread Peter Münster
On Mon, 14 Feb 2005, Peter Münster wrote:

 Hello,
 to get the footnotes vertically aligned, a \setupindenting[none] is needed:
 
 \setupindenting[small]
 \starttext
 \startlocalfootnotes[n=0]
 bla\footnote{1. note}
 bla\footnote{2. note}
 bla\footnote{3. note}
 {\setupindenting[none]
 \placelocalfootnotes}
 \stoplocalfootnotes
 \stoptext

It seems, that this workaround is also needed with \placecontent etc.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] indenting and \placelocalfootnotes

2005-02-14 Thread Peter Münster
Hello,
to get the footnotes vertically aligned, a \setupindenting[none] is needed:

\setupindenting[small]
\starttext
\startlocalfootnotes[n=0]
bla\footnote{1. note}
bla\footnote{2. note}
bla\footnote{3. note}
{\setupindenting[none]
\placelocalfootnotes}
\stoplocalfootnotes
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context