* placelocalfootnotes breaks center alignment @ 2016-07-29 10:48 Henri Menke 2016-08-14 17:32 ` Henri Menke 2016-08-15 10:27 ` Wolfgang Schuster 0 siblings, 2 replies; 7+ messages in thread From: Henri Menke @ 2016-07-29 10:48 UTC (permalink / raw) To: 'mailing list for ConTeXt users' 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: placelocalfootnotes breaks center alignment 2016-07-29 10:48 placelocalfootnotes breaks center alignment Henri Menke @ 2016-08-14 17:32 ` Henri Menke 2016-08-15 10:27 ` Wolfgang Schuster 1 sibling, 0 replies; 7+ messages in thread From: Henri Menke @ 2016-08-14 17:32 UTC (permalink / raw) To: 'mailing list for ConTeXt users' 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: placelocalfootnotes breaks center alignment 2016-07-29 10:48 placelocalfootnotes breaks center alignment Henri Menke 2016-08-14 17:32 ` Henri Menke @ 2016-08-15 10:27 ` Wolfgang Schuster 2016-08-15 11:19 ` Jean-Pierre Delange ` (2 more replies) 1 sibling, 3 replies; 7+ messages in thread From: Wolfgang Schuster @ 2016-08-15 10:27 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1795 bytes --] > Henri Menke <mailto:henrimenke@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 [-- Attachment #1.2: Type: text/html, Size: 3087 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: placelocalfootnotes breaks center alignment 2016-08-15 10:27 ` Wolfgang Schuster @ 2016-08-15 11:19 ` Jean-Pierre Delange 2016-08-15 11:29 ` Wolfgang Schuster 2016-08-15 13:05 ` French hyphenation issue in tablepaired boxes Jean-Pierre Delange 2016-08-15 19:22 ` placelocalfootnotes breaks center alignment Aditya Mahajan 2 siblings, 1 reply; 7+ messages in thread From: Jean-Pierre Delange @ 2016-08-15 11:19 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1641 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 3163 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: placelocalfootnotes breaks center alignment 2016-08-15 11:19 ` Jean-Pierre Delange @ 2016-08-15 11:29 ` Wolfgang Schuster 0 siblings, 0 replies; 7+ messages in thread From: Wolfgang Schuster @ 2016-08-15 11:29 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1097 bytes --] > Jean-Pierre Delange <mailto:adeimantos@free.fr> > 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 [-- Attachment #1.2: Type: text/html, Size: 3063 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: French hyphenation issue in tablepaired boxes 2016-08-15 10:27 ` Wolfgang Schuster 2016-08-15 11:19 ` Jean-Pierre Delange @ 2016-08-15 13:05 ` Jean-Pierre Delange 2016-08-15 19:22 ` placelocalfootnotes breaks center alignment Aditya Mahajan 2 siblings, 0 replies; 7+ messages in thread From: Jean-Pierre Delange @ 2016-08-15 13:05 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 2759 bytes --] Dear List, In order to verify the mechanism with a French document, I have set the code sample given by Wolfgang for paired boxes with align footnotes through French language commands. And I have substitute 2 French texts to 'Content' (after removing previous \input tufte and \input ward), and fill the tables titles with my own. All is fine, except hyphenation which seems to be an issue here : see in the first text the word 'automatiquement'. I have added the following commands : \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \defineparagraphs[n=1, align={hz,hanging}] \setupalign[hyphenated] Thanks for your help. JP See the sample below : \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \definepairedbox [footnote] [width=\textwidth, align=middle] \defineparagraphs[n=1, align={hz,hanging}] \starttext \setupalign[hyphenated] \startplacetable[title={Manuels et Intellectuels}] \startlocalfootnotes \startplacepairedbox[footnote] \startcontent \startTABLE \NC « 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 ; les ouvriers intellectuels délaissent presque tout le travail des mains ; les ouvriers manuels délaissent presque tout travail de l’esprit, presque tout exercice de la raison. » \footnote{Charles Péguy. Ed. Gallimard, coll. La Pléiade, {\em Œuvres en prose complètes}, tome I, pp. 1390.} \NC\NR \stopTABLE \stopcontent \startcaption \placelocalfootnotes \stopcaption \stopplacepairedbox \stoplocalfootnotes \stopplacetable \startplacetable[title={La crise de l'enseignement}] \startlocalfootnotes \placepairedbox[footnote] {\startTABLE \NC « La crise de l'enseignement n'est pas une crise de l'enseignement ; il n'y a pas de crise de l'enseignement ; il n'y a jamais eu de crise de l'enseignement ; les crises de l'enseignement ne sont pas des crises de l'enseignement ; elles sont des crises de vie ; elles dénoncent, elles représentent des crises de vie et sont des crises de vie elles-mêmes ; elles sont des crises de vie partielles, éminentes, qui annoncent et accusent des crises de la vie générales ; ou si l’on veut les crises de vie générales, les crises de vie sociales s'aggravent, se ramassent, culminent en crises de l'enseignement, qui semblent particulières ou partielles, mais qui en réalité sont totales, parce qu'elles représentent le tout de la vie sociale. »\footnote{Ed. Gallimard, coll. La Pléiade, {\em Œuvres en prose complètes}, tome I, pp. 1390.} \NC\NR \stopTABLE} {\placelocalfootnotes} \stoplocalfootnotes \stopplacetable \stoptext [-- Attachment #1.2: Type: text/html, Size: 8673 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: placelocalfootnotes breaks center alignment 2016-08-15 10:27 ` Wolfgang Schuster 2016-08-15 11:19 ` Jean-Pierre Delange 2016-08-15 13:05 ` French hyphenation issue in tablepaired boxes Jean-Pierre Delange @ 2016-08-15 19:22 ` Aditya Mahajan 2 siblings, 0 replies; 7+ messages in thread From: Aditya Mahajan @ 2016-08-15 19:22 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, 15 Aug 2016, Wolfgang Schuster wrote: >> Henri Menke <mailto:henrimenke@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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-08-15 19:22 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-07-29 10:48 placelocalfootnotes breaks center alignment Henri Menke 2016-08-14 17:32 ` Henri Menke 2016-08-15 10:27 ` Wolfgang Schuster 2016-08-15 11:19 ` Jean-Pierre Delange 2016-08-15 11:29 ` Wolfgang Schuster 2016-08-15 13:05 ` French hyphenation issue in tablepaired boxes Jean-Pierre Delange 2016-08-15 19:22 ` placelocalfootnotes breaks center alignment Aditya Mahajan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).