Re: [NTG-context] placelocalfootnotes breaks center alignment
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] French hyphenation issue in tablepaired boxes
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 ___ 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
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
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 ___
[NTG-context] about animation problem
Dear all, First, Happy new year to all! Here is the sample code in the wiki. %%% \usemodule[animation] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle,width=\textwidth] \starttext \startanimation[menu=yes] {\placeanimationtext{The letter a}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation \stoptext %%% There is no error message during the compilation, but no output except the menu symbol. When I click the play or forward button, there is no action at all. Is there something more I have to do? Thank you. Best regards, Dalyoung * Here is the version of ConTeXt in my Macbook. This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) system commands enabled. ConTeXt ver: 2015.12.21 12:16 MKIV beta fmt: 2015.12.21 int: english/english ___ 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] Animation captions (was: error in animation)
Am 08.10.2014 um 05:19 schrieb Jeong Dal hak...@me.com: Dear Woldgang, I searched \definepairedbox and found several discussions as following: http://www.ntg.nl/pipermail/ntg-context/2005/014315.html https://www.mail-archive.com/ntg-context@ntg.nl/msg71401.html In the above examples, it took a long sentences as a caption while my example don’t allow multiple lines. I inserted \crlf but it is not working. The difference is that “side by side”(example above) and “top and bottom”(example below). Is there a way of allowing multiple lines? I mixed up the order of arguments, the text goes into the second argument and the figure etc. is put into the first argument, e.g. \useMPlibrary[dum] \starttext \placelegend{\externalfigure[dummy][width=8cm]}{\input ward } \blank \placelegend[width=\textwidth]{\externalfigure[dummy][width=8cm]}{\input ward } \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] Animation captions (was: error in animation)
Dear Wolfgang, After changing the order, it works fine. Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working too. Thank you for your help. Best regards, Dalyoung \useMPlibrary[dum] \usemodule[animation] \setupinteraction[state=start] \starttext \definepairedbox [mylegend] [location={bottom}] % width=10cm \startanimation {\startplacemylegend \startcontent {\externalfigure[dummy][]} \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend} {\startplacemylegend {\externalfigure[dummy][]} { caption caption} \stopplacemylegend} {\startplacemylegend \startcontent {\externalfigure[dummy][]} \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend} \stopanimation \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] Animation captions (was: error in animation)
Dear Wolfgang, After changing the order, it works fine. Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working too. Thank you for your help. Best regards, Dalyoung \useMPlibrary[dum] \usemodule[animation] \setupinteraction[state=start] \starttext \definepairedbox [mylegend] [location={bottom}] % width=10cm \startanimation {\startplacemylegend \startcontent {\externalfigure[dummy][]} \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend} {\startplacemylegend {\externalfigure[dummy][]} { caption caption} \stopplacemylegend} {\startplacemylegend \startcontent {\externalfigure[dummy][]} \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend} \stopanimation \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] Animation captions (was: error in animation)
Dear Woldgang, I searched \definepairedbox and found several discussions as following: http://www.ntg.nl/pipermail/ntg-context/2005/014315.html https://www.mail-archive.com/ntg-context@ntg.nl/msg71401.html In the above examples, it took a long sentences as a caption while my example don’t allow multiple lines. I inserted \crlf but it is not working. The difference is that “side by side”(example above) and “top and bottom”(example below). Is there a way of allowing multiple lines? Thank you. Best regards, Dalyoung \usemodule[animation] \useMPlibrary[dum] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{A long long long long long long long long long \crlf long long long long long long long long long long long long long long long long long long long long long caption}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation \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] Win fonts lookup: ** (was: Animation captions (was: error in animation))
Hello, when trying Jeong's example, Ctx prints: fontsnames globbing path 'c:/windows/fonts/**.otf' fontsnames identifying system font files with suffix 'OTF' fontsnames globbing path 'c:/windows/fonts/**.OTF' fontsnames 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.094 seconds fontsnames identifying system font files with suffix 'ttf' fontsnames globbing path 'c:/windows/fonts/**.ttf' fontsnames identifying system font files with suffix 'TTF' fontsnames globbing path 'c:/windows/fonts/**.TTF' fontsnames 453 system files identified, 2 skipped, 2 duplicates, 451 hash entries added, runtime 6.719 seconds fontsnames identifying system font files with suffix 'ttc' fontsnames globbing path 'c:/windows/fonts/**.ttc' fontsnames identifying system font files with suffix 'TTC' fontsnames globbing path 'c:/windows/fonts/**.TTC' fontsnames 3 system files identified, 0 skipped, 0 duplicates, 3 hash entries added, runtime 0.094 seconds fontsnames identifying system font files with suffix 'dfont' fontsnames globbing path 'c:/windows/fonts/**.dfont' fontsnames identifying system font files with suffix 'DFONT' fontsnames globbing path 'c:/windows/fonts/**.DFONT' fontsnames 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.047 seconds fontsnames identifying system font files with suffix 'afm' fontsnames globbing path 'c:/windows/fonts/**.afm' fontsnames identifying system font files with suffix 'AFM' fontsnames globbing path 'c:/windows/fonts/**.AFM' So just to point there are two asterisks ** in the file name masks (c:/windows/fonts/**.otf, ... c:/windows/fonts/**.AFM), which probably produces no error, but it may have been intended to have just one asterisk, like c:/windows/fonts/*.otf etc. Best regards, Lukas On Mon, 06 Oct 2014 04:33:28 +0200, Jeong Dal hak...@me.com wrote: \usemodule[animation] \useMPlibrary[dum] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{The letter a}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___ 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] Animation captions (was: error in animation)
Am 2014-10-06 um 08:33 schrieb Jeong Dal hak...@me.com: \usemodule[animation] \useMPlibrary[dum] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{The letter a}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation \stoptext I wikified that, but didn’t test: http://wiki.contextgarden.net/Animation 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] Animation captions (was: error in animation)
Indeed a very nice feature in ConTeXt. I tested Wolfgang’s example with math formulas and the result is very good: however it seems that one has to fix the width of the caption by saying \definepairedbox[animationtext][location=top,align=middle,width=\textwidth] Otherwise the formulas are cut. Here is the example: \usemodule[animation] \setuppapersize[S6][S6] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle,width=\textwidth] \starttext \startanimation {\placeanimationtext{Sine norm, and}{\startformula \int_{0}^{2\pi}\sin^2(x)dx = \stopformula}} {\placeanimationtext{Cosine norm}{\startformula\int_{0}^{2\pi}\cos^2(x)dx = \stopformula}} {\placeanimationtext{are equal}{\startformula = \pi. \stopformula}} \stopanimation \stoptext Best regards: OK On 06 Oct 2014, at 04:33, Jeong Dal hak...@me.com wrote: Dear Wolfgang, I tested after inserting figures instead of letters in your sample code and it also works fine. It is so nice to know the way of using caption in the animation module. Thank you for your help. Best regards, Dalyoung % \usemodule[animation] \useMPlibrary[dum] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{The letter a}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation \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 ___ ___ 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] Animation captions (was: error in animation)
Deat Hraban and Otared, I wikified that, but didn’t test: http://wiki.contextgarden.net/Animation I read the wiki page and it is explained well about the animation. Also, thank you for introducing cites for making movies. It looks very nice but it would be a painful job, I think. Indeed a very nice feature in ConTeXt. I tested Wolfgang’s example with math formulas and the result is very good: however it seems that one has to fix the width of the caption by saying \definepairedbox[animationtext][location=top,align=middle,width=\textwidth] Otherwise the formulas are cut. Thank you for mentioning the option \textwidth also. For graphic animation, it is good to resize the width according to the width of the figure so that the caption is located within the width of the figure. Thank Wolfgang and Hans for this nice feature and ConTeXt! It makes my class materials fancy. Best regards, Dalyoung ___ 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] Animation captions (was: error in animation)
Am 05.10.2014 um 14:06 schrieb Jeong Dal hak...@me.com: Dear Wolfgang, I am using animation feature frequently for the class materials. It is very convenient to use \startanimation … \stopaimation. It reduces many steps which I have to define. Thank you for a nice module. I’d like to ask you to add caption feature like \startcombination. When I show the figures one by one, it is better to put a caption sometimes. If you think that it is not too bad, would you please concern to add the feature? You can use the pairedbox mechanism to add a caption to each frame. \usemodule[animation] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{The letter a}{\ttd A}} {\placeanimationtext{The letter b}{\ttd B}} {\placeanimationtext{The letter c}{\ttd C}} {\placeanimationtext{The letter d}{\ttd D}} \stopanimation \stoptext BTW: Start a new thread when you have a separate question next time. 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] Animation captions (was: error in animation)
Dear Wolfgang, I tested after inserting figures instead of letters in your sample code and it also works fine. It is so nice to know the way of using caption in the animation module. Thank you for your help. Best regards, Dalyoung % \usemodule[animation] \useMPlibrary[dum] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle] \starttext \startanimation {\placeanimationtext{The letter a}{\externalfigure[dummy]}} {\placeanimationtext{The letter b}{\externalfigure[dummy]}} {\placeanimationtext{The letter c}{\externalfigure[dummy]}} {\placeanimationtext{The letter d}{\externalfigure[dummy]}} \stopanimation \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] \startfloattext ... \stopfloattext
On 9/9/2013 2:38 PM, Christian Prim wrote: What is the context way to place text near a table (or another float) in an enumeration-environment? I just want to have the text just this right to the table. The second item 2) should be below the table. In the (not so) MWE all is fine, but the table is not indented. When I use \placetable the text is indented, but the second item is placed near the table on the right. (I could insert a \blank[xycm] but I don't think it's the way to solve my problem.) Thanks for all comments Christian \starttext \startitemize[n,packed,joinedup][stopper=)] \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,none]{}{ %\placetable[left,high,none]{}{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \stoptable} Just this text near the table! \stoptabletext \item second item ... \stoptext one of the solution is to use paired boxes: \starttext \definepairedbox [mylegend] [location={right,top}] % width=10cm \startitemize[n,packed,joinedup][stopper=)] \startitem some introduction text \blank and some more \blank \startplacemylegend \startcontent \starttable[|l|l|] \HL \VL foo \VL bar \VL \NR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \stoptable \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend \stopitem \startitem and even more \stopitem \stopitemize \stoptext I patched the beta a bit so that for a horizontal variant the hsize is calculated automatically. Hans - 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] \startfloattext ... \stopfloattext
Thanks, Hans that was exactly what I needed. Christian 2013/9/9 Hans Hagen pra...@wxs.nl On 9/9/2013 2:38 PM, Christian Prim wrote: What is the context way to place text near a table (or another float) in an enumeration-environment? I just want to have the text just this right to the table. The second item 2) should be below the table. In the (not so) MWE all is fine, but the table is not indented. When I use \placetable the text is indented, but the second item is placed near the table on the right. (I could insert a \blank[xycm] but I don't think it's the way to solve my problem.) Thanks for all comments Christian \starttext \startitemize[n,packed,**joinedup][stopper=)] \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,**none]{}{ %\placetable[left,high,none]{}**{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \stoptable} Just this text near the table! \stoptabletext \item second item ... \stoptext one of the solution is to use paired boxes: \starttext \definepairedbox [mylegend] [location={right,top}] % width=10cm \startitemize[n,packed,**joinedup][stopper=)] \startitem some introduction text \blank and some more \blank \startplacemylegend \startcontent \starttable[|l|l|] \HL \VL foo \VL bar \VL \NR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \stoptable \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend \stopitem \startitem and even more \stopitem \stopitemize \stoptext I patched the beta a bit so that for a horizontal variant the hsize is calculated automatically. Hans --**--**- 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 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/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] combination with an additional line centered in a placefigure?
2007/11/16, Peter Schorsch [EMAIL PROTECTED]: Hi, as soon I enter the cbox-line the combination is not longer centered. I tried to embed the combination in a cbox, but that had no effect. Has anyone a hint how to center the combination successfullly? \starttext \placefigure [force][fig:xy] {captiontext} {\startcombination[2*1] {\externalfigure[xxx][]}{} {\externalfigure[yyy][]}{} \stopcombination \cbox{\tfx Quelle: XY} } \stoptext Thanks, P. \setuplegend [align=middle, bodyfont=small] \starttext \placefigure [force][fig:xy] {captiontext} {\placelegend {\startcombination[2*1] {\externalfigure[xxx]}{} {\externalfigure[yyy]}{} \stopcombination} {Quelle: XY}} \stoptext You can define legend commands with \definepairedbox (see core-mis.tex) and you can skip the second pair of brackets after \externalfigure. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two framed texts on the same line
Giuseppe Bilotta wrote: Hello, I would like to achieve this kind of typographical effect: two text blocks, one of them aligned to the left margin, the other with left-aligned text but with the right margin at the right margin of the page. I can obtain each of them with for example the following: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] Now, I want them to be at the same height. However, using things like placesidebyside or even just \startlepi ... \stoplepi \startrepi ... \stoprepi doesn't work. Any suggestions? depends a bit on the usage; the following shows you a few tricks \defineframedtext [gb] [align=raggedright, width=.5\textwidth, offset=0pt, frame=off, before=, after=] \startbuffer[left] \startgb[none] \input tufte \stopgb \stopbuffer \startbuffer[right] \startgb[none] \input zapf \stopgb \stopbuffer \starttext \input tufte \definepairedbox[gb][location={right,top}] \startbaselinecorrection \placepairedbox[gb] {\getbuffer[left]} {\getbuffer[right]} \stopbaselinecorrection \input zapf \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Two framed texts on the same line
Friday, November 25, 2005 Hans Hagen wrote: depends a bit on the usage; the following shows you a few tricks \defineframedtext [gb] [align=raggedright, width=.5\textwidth, offset=0pt, frame=off, before=, after=] \startbuffer[left] \startgb[none] \input tufte \stopgb \stopbuffer \startbuffer[right] \startgb[none] \input zapf \stopgb \stopbuffer \starttext \input tufte \definepairedbox[gb][location={right,top}] \startbaselinecorrection \placepairedbox[gb] {\getbuffer[left]} {\getbuffer[right]} \stopbaselinecorrection \input zapf \stoptext Oh, interesting this pairedbox thing (it's undocumented, though). I was hoping to be able to do it like this: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] \definepairedbox[epi][location={right,top}] \placepairedbox[epi] {\startlepi {\bf Coordinatore}\par prof. F.~Nicolosi \stoplepi} {\startrepi {\bf Tutor}\par prof. G.~Russo \stoprepi} But it won't work because the second box (repi) gets placed with its LEFT margin on the right margin of the page, whereas I needed to be with its right margin at the right margin of the page. I think the problem is that, from what I get by reading the source, in paired boxes are not treated equally. Basically, the rpbolem seems to be that the width of the lepi framed text is not the 'natural width' of the text, despite the width=fit command ... why is this so? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two framed texts on the same line
Giuseppe Bilotta wrote: Friday, November 25, 2005 Hans Hagen wrote: depends a bit on the usage; the following shows you a few tricks \defineframedtext [gb] [align=raggedright, width=.5\textwidth, offset=0pt, frame=off, before=, after=] \startbuffer[left] \startgb[none] \input tufte \stopgb \stopbuffer \startbuffer[right] \startgb[none] \input zapf \stopgb \stopbuffer \starttext \input tufte \definepairedbox[gb][location={right,top}] \startbaselinecorrection \placepairedbox[gb] {\getbuffer[left]} {\getbuffer[right]} \stopbaselinecorrection \input zapf \stoptext Oh, interesting this pairedbox thing (it's undocumented, though). I was hoping to be able to do it like this: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] \definepairedbox[epi][location={right,top}] \placepairedbox[epi] {\startlepi {\bf Coordinatore}\par prof. F.~Nicolosi \stoplepi} {\startrepi {\bf Tutor}\par prof. G.~Russo \stoprepi} But it won't work because the second box (repi) gets placed with its LEFT margin on the right margin of the page, whereas I needed to be with its right margin at the right margin of the page. I think the problem is that, from what I get by reading the source, in paired boxes are not treated equally. no, you need to bypass the location handling in framed texts so, replacing left and right by none should do the trick, however, i found out that this demands an extra line of code in core-rul.tex (see 'newer' below) \def\dodostopframedtext#1#2% % no \baselinecorrection, see faq docs {\endgraf \removelastskip \doifvalue{\??kd#1\c!depthcorrection}\v!on % local and global {\forgetall \vskip-\struttotal \verticalstrut \egroup \forgetall \vskip-\lineheight % will be an option, not default % \setbaselinecorrections % \donegbotbaselinecorrection \verticalstrut} \stopboxedcontent \stopcolor \egroup \doif{#2}\v!none\insidefloattrue % new \doif{\framedtextparameter{#1}\c!location}\v!none\insidefloattrue % newer \ifinsidefloat \box\framebox \else \doplacement[\??kd#1][\c!depthcorrection=\v!off]{\box\framebox}% \fi \egroup} Basically, the rpbolem seems to be that the width of the lepi framed text is not the 'natural width' of the text, despite the width=fit command ... why is this so? see \doplacement in the previous code, you need to have the then branch; placement is for placemen tin the running text (and looks at the text width) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two framed texts on the same line
For what it's worth, I'm now using the following: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=none] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=none] \definepairedbox[lrepi][location={right,top}] \noindent \startlepi[none] \obeylines {\bf Coordinatore} prof. F.~Nicolosi \stoplepi\hfill\startrepi[none] \obeylines {\bf Tutor} prof. G.~Russo \stoprepi The [none] spec is required until the location=none specification is fixed :) TeX does complain about underfull boxes, but the output is just what I need. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two framed texts on the same line
Giuseppe Bilotta wrote: For what it's worth, I'm now using the following: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=none] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=none] \definepairedbox[lrepi][location={right,top}] \noindent \startlepi[none] \obeylines {\bf Coordinatore} prof. F.~Nicolosi \stoplepi\hfill\startrepi[none] \obeylines {\bf Tutor} prof. G.~Russo \stoprepi The [none] spec is required until the location=none specification is fixed :) TeX does complain about underfull boxes, but the output is just what I need. ok. to get rid of messages, say \dontcomplain Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context