Re: [NTG-context] \startplacefigure and \startframedtext in lmtx
Il 10/06/20 17:30, Hans Hagen ha scritto: On 6/9/2020 11:04 AM, Otared Kavian wrote: Hi all, I just noticed that in lmtx, the commands \startplacefigure and \startframedtext, when used together, do not behave in the same way as they do in mkiv. I wonder whether this is a permanent change or rather a buglet. I found a fix around the issue, but since in my document I have a certain number of cases where such combinations are used, I woul dlike to be sure to not make a mistake by changing all the instances… Here is an example: %% begin figure-framedtext.tex \useMPlibrary[dum] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end figure-framedtext.tex In the above example the fix is to add \dontleavehmode between the figue and the framedtext. If one comments out that line then the issue can be seen. Thanks in advance for any help: Otared K. can others confirm this This is LuaMetaTeX, Version 2.06.07 system > ConTeXt ver: 2020.06.10 Seems OK to me. I get the same result with LuaTeX+MkIV 2020-05-08 and LMTX 2020-06-10, even commenting out \dontleavehmode. The only difference is the figure color: blue for LMTX, yellow for MkIV. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startplacefigure and \startframedtext in lmtx
Hans Hagen schrieb am 10.06.2020 um 17:30: On 6/9/2020 11:04 AM, Otared Kavian wrote: Hi all, I just noticed that in lmtx, the commands \startplacefigure and \startframedtext, when used together, do not behave in the same way as they do in mkiv. I wonder whether this is a permanent change or rather a buglet. I found a fix around the issue, but since in my document I have a certain number of cases where such combinations are used, I woul dlike to be sure to not make a mistake by changing all the instances… Here is an example: %% begin figure-framedtext.tex \useMPlibrary[dum] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end figure-framedtext.tex In the above example the fix is to add \dontleavehmode between the figue and the framedtext. If one comments out that line then the issue can be seen. Thanks in advance for any help: Otared K. can others confirm this This is LuaMetaTeX, Version 2.06.07 system > ConTeXt ver: 2020.06.10 No problem here (but the version from May a problem). mtx-context | current version: 2020.06.10 12:26 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startplacefigure and \startframedtext in lmtx
On 6/9/2020 11:04 AM, Otared Kavian wrote: Hi all, I just noticed that in lmtx, the commands \startplacefigure and \startframedtext, when used together, do not behave in the same way as they do in mkiv. I wonder whether this is a permanent change or rather a buglet. I found a fix around the issue, but since in my document I have a certain number of cases where such combinations are used, I woul dlike to be sure to not make a mistake by changing all the instances… Here is an example: %% begin figure-framedtext.tex \useMPlibrary[dum] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end figure-framedtext.tex In the above example the fix is to add \dontleavehmode between the figue and the framedtext. If one comments out that line then the issue can be seen. Thanks in advance for any help: Otared K. can others confirm this This is LuaMetaTeX, Version 2.06.07 system > ConTeXt ver: 2020.06.10 - 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startplacefigure and \startframedtext in lmtx
Hi, I tried today's new version 2020.06.09, to see whether the issue I was reporting below is fixed. Unfortunately it is not, and my fix with \dontleavehmode does not work anymore. Is there a way to fix the problem ? Thanks in advance: Otared > On 9 Jun 2020, at 11:04, Otared Kavian wrote: > > Hi all, > > I just noticed that in lmtx, the commands \startplacefigure and > \startframedtext, when used together, do not behave in the same way as they > do in mkiv. > I wonder whether this is a permanent change or rather a buglet. > > I found a fix around the issue, but since in my document I have a certain > number of cases where such combinations are used, I woul dlike to be sure to > not make a mistake by changing all the instances… Here is an example: > > %% begin figure-framedtext.tex > \useMPlibrary[dum] > \defineexternalfigure[dummy] > > \starttext > \startplacefigure[location=left,number=no,title={}] > \externalfigure[dummy][width=.45\textwidth] > \stopplacefigure > \dontleavehmode % if this is commented out then the text and the figure are > placed on top of each other > \startframedtext[frame=off] > \input ward.tex > \stopframedtext > \stoptext > %% end figure-framedtext.tex > > In the above example the fix is to add \dontleavehmode between the figue and > the framedtext. If one comments out that line then the issue can be seen. > > Thanks in advance for any help: Otared K. > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \startplacefigure and \startframedtext in lmtx
Hi all, I just noticed that in lmtx, the commands \startplacefigure and \startframedtext, when used together, do not behave in the same way as they do in mkiv. I wonder whether this is a permanent change or rather a buglet. I found a fix around the issue, but since in my document I have a certain number of cases where such combinations are used, I woul dlike to be sure to not make a mistake by changing all the instances… Here is an example: %% begin figure-framedtext.tex \useMPlibrary[dum] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end figure-framedtext.tex In the above example the fix is to add \dontleavehmode between the figue and the framedtext. If one comments out that line then the issue can be seen. Thanks in advance for any help: Otared K. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)
Sun, Mar 29, 2020 ve 08:24:53PM +0200 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 29.03.2020 um 19:55: # >Hi all, # > # >I noticed the difference in behaviour of textcommand which depends # >on the location: for top, bottom and page the \crlf (see MWE) is applied # >while for the left and right not even if other values (\red, any-text) # >are used as expecterd. # > # >How could I activate the textcommand=\crlf for location=right? # >(The line break appears only the width of the figure becomes too small.) # > # >Tested with TL2019 and with version from Mar 6, 2020. # # 1. The cow figure is a PDF file. Typo during cleaning the MWE, sorry. # 2. Use the "spaceinbetween" key to add a break after the label + counter. Unfortunately, spaceinbetween does not work with "right", too, I tried it before. # 3. Captions use "width=fit" as default setting which produces a # horizontal box for your side float which ignores the \crlf command, # when you change the setting to "width=max" in combination with # "align=middle" the title start on a new line. Thank you for the explanation, now it is clear. And for the piece of code, too. Best wishes, Tomáš # # \setupexternalfigures # [location=default] # # \setupcaption # [figure] # [spaceinbetween=none, # width=max, # align=middle] # # \starttext # # \startplacefigure[location=top,title=Cow] # \externalfigure[cow][height=4cm] # \stopplacefigure # \samplefile{knuth} # # \startplacefigure[location=right,title=Cow] # \externalfigure[cow][height=4cm] # \stopplacefigure # \samplefile{knuth} # # \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)
Tomas Hala schrieb am 29.03.2020 um 19:55: Hi all, I noticed the difference in behaviour of textcommand which depends on the location: for top, bottom and page the \crlf (see MWE) is applied while for the left and right not even if other values (\red, any-text) are used as expecterd. How could I activate the textcommand=\crlf for location=right? (The line break appears only the width of the figure becomes too small.) Tested with TL2019 and with version from Mar 6, 2020. 1. The cow figure is a PDF file. 2. Use the "spaceinbetween" key to add a break after the label + counter. 3. Captions use "width=fit" as default setting which produces a horizontal box for your side float which ignores the \crlf command, when you change the setting to "width=max" in combination with "align=middle" the title start on a new line. \setupexternalfigures [location=default] \setupcaption [figure] [spaceinbetween=none, width=max, align=middle] \starttext \startplacefigure[location=top,title=Cow] \externalfigure[cow][height=4cm] \stopplacefigure \samplefile{knuth} \startplacefigure[location=right,title=Cow] \externalfigure[cow][height=4cm] \stopplacefigure \samplefile{knuth} \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)
Hi all, I noticed the difference in behaviour of textcommand which depends on the location: for top, bottom and page the \crlf (see MWE) is applied while for the left and right not even if other values (\red, any-text) are used as expecterd. How could I activate the textcommand=\crlf for location=right? (The line break appears only the width of the figure becomes too small.) Tested with TL2019 and with version from Mar 6, 2020. Best wishes, Tomáš %% MWE: \starttext \setupcaption[figure][textcommand=\crlf] \startplacefigure[location=top,title=Cow] \externalfigure[cow.jpg][height=4cm] \stopplacefigure \input knuth \setupcaption[figure][textcommand=\crlf] \startplacefigure[location=right,title=Cow] \externalfigure[cow.jpg][height=4cm] \stopplacefigure \input knuth \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] flushleft and startplacefigure
\startplacefigure inherits a lot of location settings but among these flushleft and flushright are missing. Thus the \setupfloat in the example cannot be omitted. Wouldn't it be a logical step to make possible also: \startplacefigure[location=flushleft] dito for flushright? \starttext % example to extend figure into the left margin (Hans Hagen, 2014-07-25) \setupfloat[figure][location=flushleft] \startplacefigure \framed[width=1.1\textwidth]{location=flushleft} \stopplacefigure \stoptext Hans van der Meer ___ 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] Caption location with vertical \startplacefigure
On 2015-04-16 23:12, Rik Kabel wrote: How can I get the caption for the vertical figures (figures 2 and 4 in the example) aligned below the figures with the caption width limited to the figure width? Sorry for the noise -- I am sure I am missing something simple, but I cannot find it at this point. (Running current beta and earlier versions, so it does not appear to be a regression.) Nevermind. A night's sleep and coffee in the AM, and all is well. -- Rik ___ 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] Caption location with vertical \startplacefigure
How can I get the caption for the vertical figures (figures 2 and 4 in the example) aligned below the figures with the caption width limited to the figure width? Sorry for the noise -- I am sure I am missing something simple, but I cannot find it at this point. (Running current beta and earlier versions, so it does not appear to be a regression.) \showframe \setuppapersize[A4][A3,landscape] \useMPlibrary[dum] %% Enable the first set of three for wider picture margins, %% and the second set of three for standard picture margins \def\FullWidth{\the\dimexpr(\textwidth+2\margindistance)} \def\PicWidth{\the\dimexpr((\FullWidth-2em)/3)} \def\RPicMaxWidth{\the\dimexpr(\PicWidth-\margindistance)} %\def\FullWidth{\textwidth} %\def\PicWidth{\the\dimexpr((\FullWidth-2em)/3)} %\def\RPicMaxWidth{\the\dimexpr(\PicWidth)} \setupcombinations[width=\FullWidth] \definefloat [rightFigure][rightFigures] [figure] \setupfloat [rightFigure] [ location=right, % this does nothing! maxwidth=\RPicMaxWidth, ] \setupcaption[rightFigure] [ width=\PicWidth, location=bottom, align=middle, ] \definefloat [leftFigure][leftFigures] [figure] \setupfloat [leftFigure] [ location=left, % this does nothing! maxwidth=\textwidth, ] \setupcaption[leftFigure] [ width=\PicWidth, location=bottom, align=middle, ] \define\testtext{\dorecurse{5}{This is some text to fill up the space. }This is some text to fill up the space.\par} \starttext \testtext \startplacefigure[title={You see this caption!}] \startcombination[3*1] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf c.} Subfigure \stopcaption \stopcombination \stopplacefigure {\em\testtext} \startplacerightFigure[title={Can you see this one?}, location=right, ] \startcombination[1*2] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \stopcombination \stopplacerightFigure \dorecurse{5}{\testtext} \page \testtext \startplacefigure[title={You see this caption!}] \startcombination[3*1] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf c.} Subfigure \stopcaption \stopcombination \stopplacefigure {\em\testtext} \startplaceleftFigure[title={Can you see this one?}, location=left, ] \startcombination[1*2] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \stopcombination \stopplaceleftFigure \dorecurse{5}{\testtext} \stoptext -- Rik ___ 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] Command for the caption location inside \startplacefigure
Hello, What is the option to specify the CAPTION location in \startplacefigure (I already now that you can do it from \setupcaption)? I thought the first argument of 'location' was for the FIGURE location, and the second one for the CAPTION location, but the second one has no effect: \startplacefigure[location={left, top}, title=A cow] \externalfigure[cow] \stopplacefigure Best regards. ___ 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] \startplacefigure breaking paragraph flow
Hi all, when I issue a \startplacefigure, it breaks the flow of the paragraph. Normally, it is not a problem (I can use 2*hang anyway), but I have a one-paragraph enumeration (made by \defineenumeration), and if I give the figure at its beginning, the label is on a line by its own; the problem is, I want the enumeration typeset by a block, and that's why I don't want to give the figure *before* the block. Here's a MWE: \defineenumeration[question][ text={\llap{$\blacktriangleright$~}Question}, right={.}, before={\blank[small]}, after={}, distance=0.5em, alternative=serried, width=fit, ] \defineblock[question] \defineblock[answer] \keepblocks[question] \hideblocks[answer] \setupblock[question][before=\startquestion,after=\stopquestion] \setupblock[answer][before=\startanswer,after=\stopanswer] \def\noanswer{\incrementnumber[answer]} \starttext \beginquestion This looks good. \input knuth \endquestion \beginquestion \startplacefigure[location={none,right,2*hang}] \framed{\tfd My figure} \stopplacefigure This looks bad. \input knuth \endquestion \stoptext Any suggestions? -- Marcin Borkowski room B3-46, phone no +48 61 829 5375 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] \startplacefigure breaking paragraph flow
On Sat, 9 Feb 2013 04:15:34 +0100 Marcin Borkowski mb...@amu.edu.pl wrote: when I issue a \startplacefigure, it breaks the flow of the paragraph. I systematically use \startpostponing [+0] \startplacefigure ... \stopplacefigure \stoppostponing to prevent the paragraph break of \startplacefigure Alan ___ 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] \startplacefigure equivalent of \placefigure
Am 18.11.2012 um 21:58 schrieb Romain Diss romain.d...@yahoo.fr: Hi all, I did not find the \startplacefigure equivalent of: \placefigure [high,low] % - here are the options I need {test} {\externalfigure[pic-test]} I checked in the sources but found nothing about these 'high', 'low' options. \startplacefigure[location={high,low},title=test] \externalfigure[pic-test] \stopplacefigure See also http://www.ntg.nl/pipermail/ntg-context/2012/069414.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] \startplacefigure equivalent of \placefigure
Le dimanche 18 novembre 2012, Wolfgang Schuster a écrit : Am 18.11.2012 um 21:58 schrieb Romain Diss romain.d...@yahoo.fr: I did not find the \startplacefigure equivalent of: \placefigure [high,low] % - here are the options I need {test} {\externalfigure[pic-test]} \startplacefigure[location={high,low},title=test] \externalfigure[pic-test] \stopplacefigure Thank you. Like most of the time, the answer seems obvious afterwards. See also http://www.ntg.nl/pipermail/ntg-context/2012/069414.html The wiki also mentions this. I took a look on it before posting but it didn't help me because I only used location= to place the caption. -- Romain Diss romain.d...@yahoo.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 ___