[NTG-context] placefigure
Hi, while fixing some buglets that showed up in the test suite I ran into: \starttext test \placefigure[somewhere:alpha][whatever]{alpha}{} test \placefigure[somewhere:beta] [whatever]{beta}{} test \placefigure[somewhere:gamma][whatever]{gamma}{} test \placefigure[somewhere:delta][whatever]{delta}{} test \placefigure{}{} in \in{figure}[whatever] bla bla \placenamedfloat[figure][*l*] \placenamedfloat[figure][gamma] \placenamedfloat[figure][beta] \stoptext maybe worth wikifying (bug will be solved in beta) - 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] placefigure
On 21 March 2013 17:26, Hans Hagen pra...@wxs.nl wrote: while fixing some buglets that showed up in the test suite I ran into \placenamedfloat maybe worth wikifying (bug will be solved in beta) Wikified: http://wiki.contextgarden.net/Command/placenamedfloat Below is what I wrote; is that correct? Groetjes, Sietse == Description == If a float is placed (with \placefloat) location argument somewhere:name, it is not placed immediately. Instead, it may be manually placed elsewhere with \placenamedfloat. == Example == This example declares four figures to be placed elsewhere: alpha, beta, gamma, and delta. The first \placenamedfloat call places all figures with l in their name (i.e. alpha and delta; the next two calls place gamma and beta, respectively. ___ 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] placefigure
On 3/21/2013 11:04 PM, Sietse Brouwer wrote: On 21 March 2013 17:26, Hans Hagen pra...@wxs.nl wrote: while fixing some buglets that showed up in the test suite I ran into \placenamedfloat maybe worth wikifying (bug will be solved in beta) Wikified: http://wiki.contextgarden.net/Command/placenamedfloat Below is what I wrote; is that correct? indeed, thanks, 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 ___
[NTG-context] Placefigure without numbering
Hi there, how to deactivate numbering for the following (empty) picture? \placefigure[here][fig:demo]{My description under the picture.}{} Thanks, Huseyin P.S.: I know that for multi-line code my email-client seems to format the code with many spaces, how to control that, I am using Mozilla Thunderbird? (I can't see the spaces, but after copying them out of the send email, I see the problem, too) ___ 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] Placefigure without numbering
On 2013–02–01 H. Özoguz wrote: how to deactivate numbering for the following (empty) picture? \placefigure[here][fig:demo]{My description under the picture.}{} \startplacefigure [title=My description, reference=fig:demo, number=no] … \stopplacefigure Marco signature.asc Description: Digital signature ___ 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] Placefigure without numbering
Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl: \startplacefigure [title=My description, reference=fig:demo, number=no] ? \stopplacefigure Thanks Marco, and how to align the title at the center under the picture? (Now it is flushright) Thanks Huseyin ___ 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] Placefigure without numbering
Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl: \startplacefigure [title=My description, reference=fig:demo, number=no] ? \stopplacefigure Thanks Marco, and how to align the title at the center under the picture? (Now it is flushright) Thanks Huseyin ___ 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] Placefigure without numbering
On Fri, 1 Feb 2013 22:42:10 +0100 H. Özoguz h.oezo...@mmnetz.de wrote: Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl: \startplacefigure [title=My description, reference=fig:demo, number=no] ? \stopplacefigure Thanks Marco, and how to align the title at the center under the picture? (Now it is flushright) Untested: \setupcaption [figure] [align=middle] 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 ___
[NTG-context] \placefigure[margin] but in left margin?
Dear list, I want to have the effect I get with \placefigure[margin] but I want it _always_ in the left margin instead of the right margin where it ends up by default. I have tried several other keys but with leftmargin, inleft the figure is not put in the top of the page, independent of the text. Can I fix this with some setup? Small test file: \starttext \input tufte \placefigure[leftmargin][none]{With the key leftmargin}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[inleft][none]{With the key inleft}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=1cm]} \input tufte % This is the way I want it, but I want it in the left margin instead \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] \placefigure[margin] but in left margin?
Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com: Dear list, I want to have the effect I get with \placefigure[margin] but I want it _always_ in the left margin instead of the right margin where it ends up by default. I have tried several other keys but with leftmargin, inleft the figure is not put in the top of the page, independent of the text. Can I fix this with some setup? Small test file: \setupmarginblocks [location=left] \starttext \input tufte \placefigure[leftmargin][none]{With the key leftmargin}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[inleft][none]{With the key inleft}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=1cm]} \input tufte % This is the way I want it, but I want it in the left margin instead \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] \placefigure[margin] but in left margin?
On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com: Dear list, I want to have the effect I get with \placefigure[margin] but I want it _always_ in the left margin instead of the right margin where it ends up by default. I have tried several other keys but with leftmargin, inleft the figure is not put in the top of the page, independent of the text. Can I fix this with some setup? Small test file: \setupmarginblocks [location=left] \starttext \input tufte \placefigure[leftmargin][none]{With the key leftmargin}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[inleft][none]{With the key inleft}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=1cm]} \input tufte % This is the way I want it, but I want it in the left margin instead \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 ___ Thank you very much for your fast reply, Wolfgang. That is what I looked for. However, a new problem appeared now. The example file \setuppapersize[A5][A5] \setuplayout[ footer=0cm, header=0.6cm, headerdistance=0.2cm, footerdistance=0cm, topspace=1cm, backspace=4cm, leftmargin=3cm, rightmargin=0cm, leftmargindistance=0.5cm, height=fit, width=fit, ] \setupmarginblocks[location=left] \starttext \showlayout \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=3cm]} \input tufte \stoptext does not work as intended for me. The layout looks OK if I read the \showlayout output correctly, but the cow is not put entirely in the margin, but sticks out outside the page. I attach the output of the code above. Best regards, Mikael test.pdf Description: Adobe PDF document ___ 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] \placefigure[margin] but in left margin?
Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com: On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com: Dear list, I want to have the effect I get with \placefigure[margin] but I want it _always_ in the left margin instead of the right margin where it ends up by default. I have tried several other keys but with leftmargin, inleft the figure is not put in the top of the page, independent of the text. Can I fix this with some setup? Small test file: \setupmarginblocks [location=left] \starttext \input tufte \placefigure[leftmargin][none]{With the key leftmargin}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[inleft][none]{With the key inleft}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=1cm]} \input tufte % This is the way I want it, but I want it in the left margin instead \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 ___ Thank you very much for your fast reply, Wolfgang. That is what I looked for. However, a new problem appeared now. The example file \setuppapersize[A5][A5] \setuplayout[ footer=0cm, header=0.6cm, headerdistance=0.2cm, footerdistance=0cm, topspace=1cm, backspace=4cm, leftmargin=3cm, rightmargin=0cm, leftmargindistance=0.5cm, height=fit, width=fit, ] \setupmarginblocks[location=left] \setupmarginblocks [location=left, width=\leftmarginwidth] 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] \placefigure[margin] but in left margin?
On Thu, Jan 3, 2013 at 5:16 PM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com: On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com: Dear list, I want to have the effect I get with \placefigure[margin] but I want it _always_ in the left margin instead of the right margin where it ends up by default. I have tried several other keys but with leftmargin, inleft the figure is not put in the top of the page, independent of the text. Can I fix this with some setup? Small test file: \setupmarginblocks [location=left] \starttext \input tufte \placefigure[leftmargin][none]{With the key leftmargin}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[inleft][none]{With the key inleft}{\externalfigure[cow][width=1cm]} \input tufte \placefigure[margin][none]{With the key margin}{\externalfigure[cow][width=1cm]} \input tufte % This is the way I want it, but I want it in the left margin instead \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 ___ Thank you very much for your fast reply, Wolfgang. That is what I looked for. However, a new problem appeared now. The example file \setuppapersize[A5][A5] \setuplayout[ footer=0cm, header=0.6cm, headerdistance=0.2cm, footerdistance=0cm, topspace=1cm, backspace=4cm, leftmargin=3cm, rightmargin=0cm, leftmargindistance=0.5cm, height=fit, width=fit, ] \setupmarginblocks[location=left] \setupmarginblocks [location=left, width=\leftmarginwidth] 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 ___ Thank you very much, Wolfgang! Now it looks as it should. Mikael ___ 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 ___
Re: [NTG-context] How to put a \placefigure with no caption?
2012-11-12 Andy Thomas: I guess, I do not understand the relation completely. Please compare the following -- startcode -- \starttext % \chapter{One} \input tufte \placefigure[margin,none]{}{Let's put some text of at least two lines.} \placefigure[none,margin]{}{Let's put some text of at least two lines.} \input tufte \stoptext -- stopcode -- The first one works as intended, the second one does not. Also, I cannot figure out the equivalent new syntax. \placefigure[margin,none]{}{Let's put some text of at least two lines.} \startplacefigure [location={margin, none}] Let's put some text of at least two lines. \stopplacefigure \placefigure[none,margin]{}{Let's put some text of at least two lines.} \startplacefigure [location={none, margin}] Let's put some text of at least two lines. \stopplacefigure I tried 'caption=none' and 'location=none'. location=none works here: \startplacefigure [location=none] Let's put some text of at least two lines. \stopplacefigure But even if the latter one would work, having a caption (or not) and placing the figure on the page are two different things? The first argument of `location` determines the location of the figure, the second one the location of the caption. If only one argument is provided, it is used for both. So the following statements have the same effect. \startplacefigure [location={none, none}] Let's put some text of at least two lines. \stopplacefigure \startplacefigure [location=none] Let's put some text of at least two lines. \stopplacefigure That's the reason why the figure in your second example is not placed in the margin. Marco ___ 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] margintext and placefigure
Dear all. I am having some trouble with figure placement in the margin. If you use the following code, please try to comment out first one and then both '\input knuth'. Somehow, the figure is not placed in the margin, but the center of the page, if a page breaks occurs close by. Is there a way to avoid that and have the figure always placed in the margin? Thanks, Andy -- code starts --- \useMPlibrary[dum] % To get dummy figures \definepapersize[wissenschaft][width=170mm, height=240mm] \setuppapersize [wissenschaft] \setuplayout[topspace=40pt, header=0pt, headerdistance=0pt, height=560pt, footer=0pt, % backspace=42pt, leftmargin=0pt, width=280pt, rightmargindistance=20pt, rightmargin=100pt] \setupmargindata [margintext] [location=outer, width=100pt, stack=continue] \starttext % \chapter{One} \input tufte \input knuth \input knuth \section{Figures} % \margintext {\startplacefigure[ title={A small rectangle put in the margin.}] \externalfigure[dummy] \stopplacefigure} \input tufte \stoptext -- code ends --- background: I started working on my module (caesar) again, since the ipad is supposed to render mathml now. That means, I could try the context epub output with formulas on an actual device (cp. http://support.apple.com/kb/HT5321) ___ 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] margintext and placefigure
2012-11-11 Andy Thomas: Is there a way to avoid that and have the figure always placed in the margin? \startplacefigure [title=Foo, location=margin] \stopplacefigure Marco ___ 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] margintext and placefigure
That was my first choice as well. But it does not play nice with margintext. Try putting \margintext{bla} directly after the chapter. stack=continue is somehow ignored. Also, the figure is moved all the way up, which is strange. On Nov 11, 2012, at 8:52 PM, Marco Patzer wrote: 2012-11-11 Andy Thomas: Is there a way to avoid that and have the figure always placed in the margin? \startplacefigure [title=Foo, location=margin] \stopplacefigure Marco ___ 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] margintext and placefigure
2012-11-11 Andy Thomas: That was my first choice as well. But it does not play nice with margintext. The both use two different mechanisms AFAIK, and there's no or not much communication between them. Mixing both leads to overprinted content. Also, the figure is moved all the way up, which is strange. That's intended. The margin texts stack up from the top to the bottom. For figures this usually does makes sense since the figures are referred to by number anyway. Marco ___ 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] margintext and placefigure
On Nov 11, 2012, at 9:23 PM, Marco Patzer wrote: 2012-11-11 Andy Thomas: That was my first choice as well. But it does not play nice with margintext. The both use two different mechanisms AFAIK, and there's no or not much communication between them. Mixing both leads to overprinted content. So, can I modify the original code to work as intended? Also, the figure is moved all the way up, which is strange. That's intended. The margin texts stack up from the top to the bottom. For figures this usually does makes sense since the figures are referred to by number anyway. That would even be preferred, if all marginals stack from the top down (http://archive.contextgarden.net/message/20120529.093731.5306286a.en.html) Andy ___ 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] How to put a \placefigure with no caption?
Yes. \placefigure is the old syntax. \start…\stopplacefigure the new one. The new one uses a the key=value syntax also present in other MkIV commands. Compare: \startplacefigure [title=Lorem, reference=fig:lorem] … \stopplacefigure \startchapter [title=Lorem, reference=sec:lorem] … \stopchapter They are both supported, I personally stick to the new variant. I find the interface much more memorable. I guess, I do not understand the relation completely. Please compare the following -- startcode -- \starttext % \chapter{One} \input tufte \placefigure[margin,none]{}{Let's put some text of at least two lines.} \placefigure[none,margin]{}{Let's put some text of at least two lines.} \input tufte \stoptext -- stopcode -- The first one works as intended, the second one does not. Also, I cannot figure out the equivalent new syntax. I tried 'caption=none' and 'location=none'. But even if the latter one would work, having a caption (or not) and placing the figure on the page are two different things? Andy ___ 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] How to put a \placefigure with no caption?
Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? TIA, -- Marcin Borkowski 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] How to put a \placefigure with no caption?
Am 15.10.2012 um 23:16 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \placefigure[none,…]{}{…} 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] How to put a \placefigure with no caption?
2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Marco ___ 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] How to put a \placefigure with no caption?
Dnia 2012-10-15, o godz. 23:19:06 Wolfgang Schuster wolfgang.schus...@gmail.com napisał(a): Am 15.10.2012 um 23:16 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \placefigure[none,…]{}{…} Wolfgang Thanks a lot! Added a clarification to the wiki. Best, -- Marcin Borkowski 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] How to put a \placefigure with no caption?
Dnia 2012-10-15, o godz. 23:22:28 Marco Patzer home...@lavabit.com napisał(a): 2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{...}? Best, -- Marcin Borkowski 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] How to put a \placefigure with no caption?
Am 15.10.2012 um 23:34 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Dnia 2012-10-15, o godz. 23:22:28 Marco Patzer home...@lavabit.com napisał(a): 2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{…}? Yes. \placefigure[location][reference]{caption}{content} == \startplacefigure[location=location,reference=reference,title=title] % marking=…,bookmark=…,list=… content \stopplacefigure 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] How to put a \placefigure with no caption?
2012-10-15 Marcin Borkowski: \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{...}? Yes. \placefigure is the old syntax. \start…\stopplacefigure the new one. The new one uses a the key=value syntax also present in other MkIV commands. Compare: \startplacefigure [title=Lorem, reference=fig:lorem] … \stopplacefigure \startchapter [title=Lorem, reference=sec:lorem] … \stopchapter They are both supported, I personally stick to the new variant. I find the interface much more memorable. Marco ___ 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] Problem with placefigure in a new page with latest beta
Hi, In the latest beta (2012.04.17, and it was working in version 2012.02.21), the first figure in the following example is ignored: \starttext See in \in{Figure}[refA]. \placefigure[page][refA]{Figure legend A}{\externalfigure[]} \placefigure[here][refB]{Figure legend B}{\externalfigure[]} \stoptext Any idea why? Thanks Charles ___ 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] placefigure adds break
Hello, A follow-up on the solution \startpostponing [+0] \startplacefigure … \stopplacefigure \stoppostponing As a side effect, one then needs to be careful to surround ALL placefigures with \startpostponing[+0]\stoppostponing, even those that occur after a paragraph end (where one is not concerned about adding a paragraph break), else the floating figures may get placed out of order, e.g. figure 4 before figure 3. As this makes for somewhat sloppy tex files, should not placefigure/table/other get FIXED so as not to introduce a paragraph break? Alan On Thu Apr 5 15:38:05 CEST 2012 Alan BRASLAU wrote: On Thu, 5 Apr 2012 13:39:42 +0200 Steffen Wolfrum context at st.estfiles.de wrote: Am 05.04.2012 um 13:25 schrieb luigi scarso: On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adityam at umich.edu wrote: (Untested) \startpostponing[+1] \placefigure[top]{}{...} \stoppostponing Rest of the text Aditya \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward % \input zapf \input tufte \input ward % \input zapf HERE% \startpostponing[+1] \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} \stoppostponing% AND HERE \input tufte \input ward % \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte % \input ward \input zapf \input tufte \input ward \input zapf \stoptext seems ok indeed, a great result. (searching for this command now, I saw that it's a quite old command ... only I never knew it) thanks a lot Aditya and Luigi! I have been looking for a trick to place figures near their reference in the text, without imposing a paragraph break. This trick works (so thanks again to Aditya and Luigi): \starttext Some text is described \in{figure}[fig:reference]. \startpostponing[+0] \startplacefigure[location=here,reference=fig:reference, title={This figure gets placed somewhere near its reference.}] \externalfigure[cow][width=\textwidth] \stopplacefigure \stoppostponing The text continues here without a paragraph break. \stoptext A few comments: 1. The \startpostponing...\stoppostponing is necessary, although some other wrapper around the placefigure might also work. 2. The % at the end of the lines in the above examples is not necessary unless one seeks to kill the spacing between {HERE}{AND HERE}. 3. One should preferably be using \startplacefigure\stopplacefigure (rather than \placefigure). Besides being cleaner, as a bonus one gets to use title={},list={} for the figure caption and list of figure entry. Should placefigure be fixed somehow so as to hide its paragraph break itself? ___ 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] [***SPAM***] placefigure adds break
Hi, please have a look at thee example below: I have a long paragraph (more than 3 pages), and I want to set a float/figure at top of page 2. Thus, I need to write \placefigure *in* my paragraph, between two words. How can I do that without adding a paragraph break after the respective word (marked HERE)? Steffen --- \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf HERE \placefigure[top]{}{\vskip3pt{\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}}\input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \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] [***SPAM***] placefigure adds break
On Thu, 5 Apr 2012, Steffen Wolfrum wrote: Hi, please have a look at thee example below: I have a long paragraph (more than 3 pages), and I want to set a float/figure at top of page 2. Thus, I need to write \placefigure *in* my paragraph, between two words. How can I do that without adding a paragraph break after the respective word (marked HERE)? Steffen --- \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf HERE \placefigure[top]{}{\vskip3pt{\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}}\input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \stoptext (Untested) \startpostponing[+1] \placefigure[top]{}{...} \stoppostponing Rest of the text 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] [***SPAM***] placefigure adds break
On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adit...@umich.edu wrote: (Untested) \startpostponing[+1] \placefigure[top]{}{...} \stoppostponing Rest of the text Aditya \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward % \input zapf \input tufte \input ward % \input zapf HERE% \startpostponing[+1] \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} \stoppostponing% AND HERE \input tufte \input ward % \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte % \input ward \input zapf \input tufte \input ward \input zapf \stoptext seems ok -- luigi ___ 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] [***NOSPAM***] placefigure adds break
Am 05.04.2012 um 13:25 schrieb luigi scarso: On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adit...@umich.edu wrote: (Untested) \startpostponing[+1] \placefigure[top]{}{...} \stoppostponing Rest of the text Aditya \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward % \input zapf \input tufte \input ward % \input zapf HERE% \startpostponing[+1] \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} \stoppostponing% AND HERE \input tufte \input ward % \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte % \input ward \input zapf \input tufte \input ward \input zapf \stoptext seems ok indeed, a great result. (searching for this command now, I saw that it's a quite old command ... only I never knew it) thanks a lot Aditya and Luigi! Steffen ___ 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] [***NOSPAM***] placefigure adds break
On Thu, 5 Apr 2012 13:39:42 +0200 Steffen Wolfrum cont...@st.estfiles.de wrote: Am 05.04.2012 um 13:25 schrieb luigi scarso: On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adit...@umich.edu wrote: (Untested) \startpostponing[+1] \placefigure[top]{}{...} \stoppostponing Rest of the text Aditya \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward % \input zapf \input tufte \input ward % \input zapf HERE% \startpostponing[+1] \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} \stoppostponing% AND HERE \input tufte \input ward % \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte % \input ward \input zapf \input tufte \input ward \input zapf \stoptext seems ok indeed, a great result. (searching for this command now, I saw that it's a quite old command ... only I never knew it) thanks a lot Aditya and Luigi! I have been looking for a trick to place figures near their reference in the text, without imposing a paragraph break. This trick works (so thanks again to Aditya and Luigi): \starttext Some text is described \in{figure}[fig:reference]. \startpostponing[+0] \startplacefigure[location=here,reference=fig:reference, title={This figure gets placed somewhere near its reference.}] \externalfigure[cow][width=\textwidth] \stopplacefigure \stoppostponing The text continues here without a paragraph break. \stoptext A few comments: 1. The \startpostponing...\stoppostponing is necessary, although some other wrapper around the placefigure might also work. 2. The % at the end of the lines in the above examples is not necessary unless one seeks to kill the spacing between {HERE}{AND HERE}. 3. One should preferably be using \startplacefigure\stopplacefigure (rather than \placefigure). Besides being cleaner, as a bonus one gets to use title={},list={} for the figure caption and list of figure entry. Should placefigure be fixed somehow so as to hide its paragraph break itself? 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 ___
[NTG-context] placefigure vs grid problem
Hello, I have found that placing figures in grid mode does problems with [left,right...] parameters. The figure brokes the text flow. (It suffice to turn grid=yes.) Any solution, please? Thanks, Honza \enableregime[utf] \mainlanguage[cz] \setuppapersize[A5][A5] \setuplayout[ *grid=yes* ] \setupindenting[1em] \indenting[yes] \setupexternalfigures[] \setupfloats[spaceafter=none] \setupcaptions[location={bottom,left}] \setuptolerance[tolerant] \starttext \chapter{{Předmluva}} Za výstup projektu je také možno považovat i fakt, že ze studií vznikly a byly úspěšně obhájeny dvě diplomové práce a před dokončením jsou i dvě práce doktorské.\footnote{Jedná se o~diplomové práce K. Kukanové a M. Wagnera (na katedře právních dějin) a doktorské dizertace J. Pleskota a T. Jablonického (na katedeře právních dějin a na Ústavu právních dějin Právnické fakulty UK).} \placefigure[left]{}{\externalfigure[none][width=3.5cm]} Problematika různých forem majetkových perzekucí a zásadních změn v majetkových vztazích v historické retrospektivě je nejen čistě historicko právní otázkou, ale má i řadu přesahů do platného práva, do dalších oborů a do současných celospolečenských diskuzí. Vlastnické právo a jeho ochrana patří k základním atributům demokratického právního státu budovaného u~nás po roce 1989 a ochrana soukromoprávních vztahů v oblasti věcných práv je spojena i se šířeji pojatou svobodou jednotlivce a jejím zajištění proti zásahům státní (veřejné) moci. \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] \placefigure padding
Am 11.03.2012 um 04:12 schrieb Kip Warner: Hey list, The following minimal typesets a dummy figure. Note how there is about two lines of empty space below the figure. How do I control the amount of padding that surrounds the figure, such as the bottom? With \setupfloats [spacebefore=…, spaceafter=…] you can control the space before and after the float, accepted are all values for \blank (dimensions and keywords). 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] \placefigure padding
On Sun, 2012-03-11 at 10:01 +0100, Wolfgang Schuster wrote: \setupfloats [spacebefore=, spaceafter=] you can control the space before and after the float, accepted are all values for \blank (dimensions and keywords). That's probably the command I need, but I can't find any useful documentation for it. I found this on the wiki, but all of the different parameters aren't explained: http://wiki.contextgarden.net/Reference/en/setupfloats The User Manual PDF doesn't elaborate on the parameters either much. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] \placefigure padding
Hey list, The following minimal typesets a dummy figure. Note how there is about two lines of empty space below the figure. How do I control the amount of padding that surrounds the figure, such as the bottom? \setupexternalfigures [frame=off, corner=rectangular, rulethickness=0.5pt] \starttext \placefigure [right, 2*hang] [figure:SomeFigure] {Caption} {\externalfigure[SomeFigure.pdf][][width=.2\textwidth]} This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text. \stoptext -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] placefigure shifting up?
In my document I have a number of \placefigures, some pdf's, some jpg's etc. Mostly the figure are placed correct with respect to, the caption but sometimes for no apparent reason I can spot, the picture is shifted up. In the first illustration taken from the document this is clearly seen, picture and caption should be close together. Compare this with the other one. I do not have a minimal example at hand, the document is too big for that and as said, I could not yet force the behaviour. Both \placefigure's are exactly the same apart from their specific contents. Anyone who knows about this problem? For me it is quite a problem, because it ruins the document layout considerably. Hans van der Meer [cid:003D2B08-D3E6-491B-B30A-C6A5EA7C51A3@fritz.box] [cid:FE6C2B84-C13F-467D-A2B9-FFE45A519496@fritz.box] inline: shifted.jpginline: notshifted.jpg___ 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] placefigure shifting up?
On 11-1-2012 20:01, Meer, H. van der wrote: In my document I have a number of \placefigures, some pdf's, some jpg's etc.. Mostly the figure are placed correct with respect to, the caption but sometimes for no apparent reason I can spot, the picture is shifted up. In the first illustration taken from the document this is clearly seen, picture and caption should be close together. Compare this with the other one. I do not have a minimal example at hand, the document is too big for that and as said, I could not yet force the behaviour. Both \placefigure's are exactly the same apart from their specific contents. Anyone who knows about this problem? For me it is quite a problem, because it ruins the document layout considerably. no clue ... maybe put a frame around it to see the boundingboxes 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] placefigure shifting up?
I might add to this report the following observation: In a document with \setuppapersize [S8][S8] the shifts appear now and then, whereas these are typeset normally when the document is place on \setuppapersize [A4][A4]. It seems that the papersize and placefigure sometimes have a problem with each other. Hans van der Meer On 11 jan. 2012, at 20:01, H. van der Meer wrote: In my document I have a number of \placefigures, some pdf's, some jpg's etc. Mostly the figure are placed correct with respect to, the caption but sometimes for no apparent reason I can spot, the picture is shifted up. In the first illustration taken from the document this is clearly seen, picture and caption should be close together. Compare this with the other one. I do not have a minimal example at hand, the document is too big for that and as said, I could not yet force the behaviour. Both \placefigure's are exactly the same apart from their specific contents. Anyone who knows about this problem? For me it is quite a problem, because it ruins the document layout considerably. Hans van der Meer shifted.jpg notshifted.jpg ___ 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] placefigure shifting up?
I think I can nail the responsible one. As far as I can see the problem is tightly coupled with the following structure: \placefigure[][]{caption}{\startcombination[]{contents}{}{contents}{}\stopcombination} The other figures I have seem to placed well enough, the above structures behaving erratic. I could not completely ascertain whether empty desciptions parts in the combination-members plays a role. I really hope this will point the way to a fast solution from the gurus ;-) Hans van der Meer On 11 jan. 2012, at 20:21, Hans van der Meer wrote: I might add to this report the following observation: In a document with \setuppapersize [S8][S8] the shifts appear now and then, whereas these are typeset normally when the document is place on \setuppapersize [A4][A4]. It seems that the papersize and placefigure sometimes have a problem with each other. Hans van der Meer On 11 jan. 2012, at 20:01, H. van der Meer wrote: In my document I have a number of \placefigures, some pdf's, some jpg's etc. Mostly the figure are placed correct with respect to, the caption but sometimes for no apparent reason I can spot, the picture is shifted up. In the first illustration taken from the document this is clearly seen, picture and caption should be close together. Compare this with the other one. I do not have a minimal example at hand, the document is too big for that and as said, I could not yet force the behaviour. Both \placefigure's are exactly the same apart from their specific contents. Anyone who knows about this problem? For me it is quite a problem, because it ruins the document layout considerably. Hans van der Meer shifted.jpg notshifted.jpg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] Indent paragraph after \placefigure
Am 28.03.2011 um 00:53 schrieb Hans Hagen: On 27-3-2011 11:14, Pontus Lurcock wrote: On Sun 27 Mar 2011, Marco wrote: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. When I drop the ‘auto’ keyword it defaults to ‘here’, which does give the indentation (presumably because the figure now appears in the output at the same place as the \placefigure in the input) but it doesn't solve the problem for cases where the figure needs to be somewhere other than ‘here’. i can make that work but not now (mkiv-ing floats in later on the agenda) I can confirm the missing indent after \placetable[page] After \placetable[page] there is also the page-header empty (no \getmarking[sectionnumber] nor \getmarking[section]) Steffen ___ 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] Indent paragraph after \placefigure
Am 27.03.2011 um 00:22 schrieb Marco: On 2011-03-27 Pontus Lurcock p...@talvi.net wrote: On Sat 26 Mar 2011, Marco wrote: How to indent the paragraph after a \placefigure? http://wiki.contextgarden.net/Reference/en/setupindenting says that \setupfloats[indentnext=yes] should give the desired result. (I haven't tested it, though.) According to the manual \setupfloats[indentnext=yes] is the default behaviour. But it's not working, same result here: It works when you drop the “auto” keyword. 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] Indent paragraph after \placefigure
On 2011-03-27 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 27.03.2011 um 00:22 schrieb Marco: On 2011-03-27 Pontus Lurcock p...@talvi.net wrote: On Sat 26 Mar 2011, Marco wrote: How to indent the paragraph after a \placefigure? http://wiki.contextgarden.net/Reference/en/setupindenting says that \setupfloats[indentnext=yes] should give the desired result. (I haven't tested it, though.) According to the manual \setupfloats[indentnext=yes] is the default behaviour. But it's not working, same result here: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. Marco ___ 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] Indent paragraph after \placefigure
Am 26.03.2011 um 23:37 schrieb Marco: How to indent the paragraph after a \placefigure? Example: \setupindenting [yes, medium] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} This is not, but I'd like it to be. This line is fine. \stoptext Not sure if there are side effects but adding \nonoindentation to these two commands from strc-flt.mkiv help for the “auto” and “bottom” keywords. - \def\somebottomfloat [#1]{\someelsefloat[#1]} - \def\someautofloat [#1]{\someelsefloat[#1]} + \def\someautofloat [#1]{\someelsefloat[#1]\nonoindentation} + \def\somebottomfloat [#1]{\someelsefloat[#1]\nonoindentation} 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] Indent paragraph after \placefigure
On 2011-03-27 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Not sure if there are side effects but adding \nonoindentation to these two commands from strc-flt.mkiv help for the “auto” and “bottom” keywords. - \def\somebottomfloat [#1]{\someelsefloat[#1]} - \def\someautofloat [#1]{\someelsefloat[#1]} + \def\someautofloat [#1]{\someelsefloat[#1]\nonoindentation} + \def\somebottomfloat [#1]{\someelsefloat[#1]\nonoindentation} This works for me. Seems to be the best solution. Maye Hans can check if it causes side effects and change it in the source if it's unlikely to cause troubles. Marco ___ 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] Indent paragraph after \placefigure
On Sun 27 Mar 2011, Marco wrote: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. When I drop the ‘auto’ keyword it defaults to ‘here’, which does give the indentation (presumably because the figure now appears in the output at the same place as the \placefigure in the input) but it doesn't solve the problem for cases where the figure needs to be somewhere other than ‘here’. Pont ___ 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] Indent paragraph after \placefigure
On 2011-03-28 Pontus Lurcock p...@talvi.net wrote: On Sun 27 Mar 2011, Marco wrote: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. When I drop the ‘auto’ keyword it defaults to ‘here’, which does give the indentation (presumably because the figure now appears in the output at the same place as the \placefigure in the input) but it doesn't solve the problem for cases where the figure needs to be somewhere other than ‘here’. Same here. But if you provide »top« for instance, then it works. Wolfgang came up with a better solution, see his post in this thread. Maybe the patch will go into the core. Marco ___ 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] Indent paragraph after \placefigure
On Sun 27 Mar 2011, Marco wrote: Same here. But if you provide »top« for instance, then it works. Looking at strc-flt.mkiv, the reason appears to be that the \nonoindent which Wolfgang added to ‘bottom’ and ‘auto’ is alreday present in ‘top’ and ‘margin’. Pont ___ 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] Indent paragraph after \placefigure
On 27-3-2011 11:14, Pontus Lurcock wrote: On Sun 27 Mar 2011, Marco wrote: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. When I drop the ‘auto’ keyword it defaults to ‘here’, which does give the indentation (presumably because the figure now appears in the output at the same place as the \placefigure in the input) but it doesn't solve the problem for cases where the figure needs to be somewhere other than ‘here’. i can make that work but not now (mkiv-ing floats in later on the agenda) - 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] Indent paragraph after \placefigure
On 2011-03-28 Hans Hagen pra...@wxs.nl wrote: On 27-3-2011 11:14, Pontus Lurcock wrote: On Sun 27 Mar 2011, Marco wrote: It works when you drop the “auto” keyword. Thanks. I don't really get the reason behind, but it works. When I drop the ‘auto’ keyword it defaults to ‘here’, which does give the indentation (presumably because the figure now appears in the output at the same place as the \placefigure in the input) but it doesn't solve the problem for cases where the figure needs to be somewhere other than ‘here’. i can make that work but not now (mkiv-ing floats in later on the agenda) Better later than never :) Marco ___ 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] Indent paragraph after \placefigure
How to indent the paragraph after a \placefigure? Example: \setupindenting [yes, medium] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} This is not, but I'd like it to be. This line is fine. \stoptext Marco ___ 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] Indent paragraph after \placefigure
On Sat 26 Mar 2011, Marco wrote: How to indent the paragraph after a \placefigure? http://wiki.contextgarden.net/Reference/en/setupindenting says that \setupfloats[indentnext=yes] should give the desired result. (I haven't tested it, though.) Pont ___ 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] Indent paragraph after \placefigure
On 2011-03-27 Pontus Lurcock p...@talvi.net wrote: On Sat 26 Mar 2011, Marco wrote: How to indent the paragraph after a \placefigure? http://wiki.contextgarden.net/Reference/en/setupindenting says that \setupfloats[indentnext=yes] should give the desired result. (I haven't tested it, though.) According to the manual \setupfloats[indentnext=yes] is the default behaviour. But it's not working, same result here: \setupindenting [yes, medium] \setupfloats[indentnext=yes] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} This is not, but I'd like it to be. This line is fine. \stoptext Marco ___ 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] Indent paragraph after \placefigure
Sorry, I think I misunderstood the problem the first time (since I didn't actually run your example until now). \setupfloats[indentnext=yes] (as I understand it) controls the behaviour after the float is actually placed in the output, rather than after the \placefigure... in the source. I'd expect the blank line after the \placefigure to trigger indentation for the next paragraph, but this doesn't happen. I now remember seeing this problem while typesetting a thesis chapter. Going back to my source file, I see I worked around it in the most obvious way: \setupindenting [yes, medium] \setupfloats[indentnext=yes] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} \indentation This is indented, but only because of the explicit command. This line is fine. \stoptext Maybe there is a better solution, but I don't know it... hope this is helpful anyway. Regards, Pont On Sun 27 Mar 2011, Marco wrote: On 2011-03-27 Pontus Lurcock p...@talvi.net wrote: On Sat 26 Mar 2011, Marco wrote: How to indent the paragraph after a \placefigure? http://wiki.contextgarden.net/Reference/en/setupindenting says that \setupfloats[indentnext=yes] should give the desired result. (I haven't tested it, though.) According to the manual \setupfloats[indentnext=yes] is the default behaviour. But it's not working, same result here: \setupindenting [yes, medium] \setupfloats[indentnext=yes] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} This is not, but I'd like it to be. This line is fine. \stoptext Marco ___ 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] Indent paragraph after \placefigure
On 2011-03-27 Pontus Lurcock p...@talvi.net wrote: Sorry, I think I misunderstood the problem the first time (since I didn't actually run your example until now). \setupfloats[indentnext=yes] (as I understand it) controls the behaviour after the float is actually placed in the output, rather than after the \placefigure... in the source. I'd expect the blank line after the \placefigure to trigger indentation for the next paragraph,but this doesn't happen. Unfortunately not, no. I now remember seeing this problem while typesetting a thesis chapter. Going back to my source file, I see I worked around it in the most obvious way: \setupindenting [yes, medium] \setupfloats[indentnext=yes] \starttext This line is indented as intended. \placefigure[auto][fig:somefigure]{My graphic}{} \indentation This is indented, but only because of the explicit command. This line is fine. \stoptext Maybe there is a better solution, I hope so. Scattering the source with explicit indentation requests is not really desirable. Marco ___ 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] \placefigure and \em (again)
Am 2011-02-25 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm); \stopMPcode } This is a normal text -- it flows around the picture on the left side of the page as expected. {\em This empathized text starting a new paragraph} should not scratch the picture left. When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected. \input tufte \stoptext --- You can add a \strut in front of {\em - that’s a usual workaround for problems with non-letters starting a paragraph. Greetlings from Lake Constance! 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] \placefigure and \em (again)
Am 25.02.2011 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, sorry for repeating this topic, maybe it's not too attractive. Please, have a look to the following problem. I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the free area formed (affected) by \placefigure. --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm); \stopMPcode } This is a normal text -- it flows around the picture on the left side of the page as expected. {\em This empathized text starting a new paragraph} should not scratch the picture left. \dontleavehmode{\em …} 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] \placefigure and \em (again)
Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm: You can add a \strut in front of {\em - that’s a usual workaround for problems with non-letters starting a paragraph. The usual workaround is \dontleavehmode. 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] \placefigure and \em (again)
... Thanks for the answers. I'm familiar with using \dontleavehmode when needing to keep a figure midaligned; I had no idea that this would be a similar situation (and solution). Best regards, Lukas On Fri, 25 Feb 2011 09:37:40 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm: You can add a \strut in front of {\em - that’s a usual workaround for problems with non-letters starting a paragraph. The usual workaround is \dontleavehmode. Wolfgang -- 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 244 062 238 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] \placefigure and \em (again)
Hello, of course I do not have the solution for the underlaying problem. I found out, that you can put a \strut in front of the problematic text and then it comes out ok. Another point is, that placing the whole text-part i.e. all 4 paragraphs in your example between \bgroup \egroup results in more problems. In this case the tufte-text is also not flowing around the picture. Kind regards Willi On 25 Feb 2011, at 08:56, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, sorry for repeating this topic, maybe it's not too attractive. Please, have a look to the following problem. I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the free area formed (affected) by \placefigure. --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm); \stopMPcode } This is a normal text -- it flows around the picture on the left side of the page as expected. {\em This empathized text starting a new paragraph} should not scratch the picture left. When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected. \input tufte \stoptext --- Thank you in advance. Best regards Lukas -- 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 244 062 238 Fax: +420 244 461 038t-Hang3.mkivt-Hang3.pdf___ 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] \placefigure and \em (again)
On 25-2-2011 9:44, Procházka Lukáš Ing. - Pontex s. r. o. wrote: ... Thanks for the answers. I'm familiar with using \dontleavehmode when needing to keep a figure midaligned; I had no idea that this would be a similar situation (and solution). {\em xxx ..} the first x triggers the start of a paragraph but it happens inside a group so it has side effects \dontleavehmode{\em xxx ..} here the paragraph is started outside the group - 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 ___
[NTG-context] \placefigure and \em (again)
Hello, sorry for repeating this topic, maybe it's not too attractive. Please, have a look to the following problem. I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the free area formed (affected) by \placefigure. --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm); \stopMPcode } This is a normal text -- it flows around the picture on the left side of the page as expected. {\em This empathized text starting a new paragraph} should not scratch the picture left. When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected. \input tufte \stoptext --- Thank you in advance. Best regards Lukas -- 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 244 062 238 Fax: +420 244 461 038 t-Hang3.mkiv Description: Binary data t-Hang3.pdf Description: Adobe PDF document ___ 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] \em around \placefigure (bug?)
Hello, the \em statement being placed as the first command of a paragraph to flow around a \placefigure seems to SCRATCH the figure instead of to flow around (bug?). See the minimal example: --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm); \stopMPcode } 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789 \input tufte \stoptext --- Best regards Lukas -- 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 244 062 238 Fax: +420 244 461 038 t-Hang3.mkiv Description: Binary data t-Hang3.pdf Description: Adobe PDF document ___ 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] strange spaces after placefigure
Hi, even though I didn't manage to reproduce the problem in a minimal example, I would like to report the following problem: Using any other value than force with placefigure, like this ... \placefigure[force,no,fit,00]{...}{{\externalfigure[fig_1][frame=off,width=\dimexpr(\textwidth-00pt)]}} ... adds an extra vertical space (1.5 lines) above all section headings that come after this placefigure! (recent beta, MkIV, no grid mode) Does someone can confirm this? Sorry for the missing example, Steffen ___ 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] \footnote in \placefigure
On 10-1-2011 6:02, Hannes Riebl wrote: Dear ConTeXt users, I am using the following piece of code: \placefigure[right]{Zerfall von Pangäa\footnote{\hyphenatedurl{http://www.geologie.uni-frankfurt.de/staff/Homepages/Oschmann/Oschmann/Homepage/P21-Homepage/P21-9-Evolution.html}, zugegriffen am 3. Januar 2010}}{\externalfigure[Zerfall_von_Pangäa][width=70mm]} It works for some figures but for others it doesn't. In the second case neither the footnote nor the number in the subtitle of the picture is shown. Could anyone explain me why this happens and how to fix it? you can try \automigrateinserts but even then, a float moves around so when it moves to a next page footnotes can get messed up - 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 ___
[NTG-context] \footnote in \placefigure
Dear ConTeXt users, I am using the following piece of code: \placefigure[right]{Zerfall von Pangäa\footnote{\hyphenatedurl{http://www.geologie.uni-frankfurt.de/staff/Homepages/Oschmann/Oschmann/Homepage/P21-Homepage/P21-9-Evolution.html}, zugegriffen am 3. Januar 2010}}{\externalfigure[Zerfall_von_Pangäa][width=70mm]} It works for some figures but for others it doesn't. In the second case neither the footnote nor the number in the subtitle of the picture is shown. Could anyone explain me why this happens and how to fix it? Thanks in advance. Regards, Hannes ___ 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] indentnext after \placefigure[page]
Hello there. I'm struggling with the indentnext parameter. Please see the next minimal example: %%% start minimal \setupindenting[yes, medium, first] \setupheads[indentnext=yes] \setupfloats[indentnext=yes] \starttext \placefigure [here,nonumber]{}{\externalfigure[dummy]} test test \input knuth \placefigure [page,nonumber]{}{\externalfigure[dummy]} %%% adding \indent doesn't help {\bf test test} \input knuth \stoptext %%% stopt The first test test is indented as expected, the following, after the \placefigure[page] is not. adding \indent doesn't help. Tested both with the latest beta and the context live, with the same outcome. Am I missing something? Thanks in advance. -- Marco ___ 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] placefigure ?
Am 29.09.2010 um 19:44 schrieb R. Bastian: On Tue, 28 Sep 2010 13:39:56 +0300 Mari Voipio mari.voi...@iki.fi scribit: On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote: In Mk II, I need to place figures - with numbers and captions - but \placefigure is for floats and never places the figure [here]. Is there another way? I've found that mostly [here,force] will do the trick, but sometimes a judiciously placed \page helps, too. That is a bit of cheap and sleazy way of doing it and I only do that in the final round of layouting, but works for me. [here, force] does when it wants :-) You need only “force”. 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] placefigure ?
On Tue, 28 Sep 2010 13:39:56 +0300 Mari Voipio mari.voi...@iki.fi scribit: On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote: In Mk II, I need to place figures - with numbers and captions - but \placefigure is for floats and never places the figure [here]. Is there another way? I've found that mostly [here,force] will do the trick, but sometimes a judiciously placed \page helps, too. That is a bit of cheap and sleazy way of doing it and I only do that in the final round of layouting, but works for me. [here, force] does when it wants :-) I will reduce the size of the 3 figures, add a 4th and play with 'combinatie' (2 x 2) I think the 'real' way would be using layers, but haven't gotten as far as to teaching myself *that*. See http://wiki.contextgarden.net/Layers for more information. Layers are a graphic technique. Regards, Mari ___ René Bastian www.pythoneon.org www.musiques-rb.org ___ 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] placefigure ?
On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote: In Mk II, I need to place figures - with numbers and captions - but \placefigure is for floats and never places the figure [here]. Is there another way? I've found that mostly [here,force] will do the trick, but sometimes a judiciously placed \page helps, too. That is a bit of cheap and sleazy way of doing it and I only do that in the final round of layouting, but works for me. I think the 'real' way would be using layers, but haven't gotten as far as to teaching myself *that*. See http://wiki.contextgarden.net/Layers for more information. Regards, Mari ___ 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] Indent after \placefigure
Hello, if one uses the right-option in \placefigure the paragraph indent is omitted. Example: \setupindenting[small,yes,next] \setupfloats[indentnext=yes] % no effect \starttext \input tufte \par \placefigure [right]{caption} {\framed[width=5cm,height=3cm]{some figure}} \input tufte \par \input tufte \stoptext Best regards Andreas ___ 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] Indent after \placefigure
Hello, see here http://tracker.luatex.org/view.php?id=403 On 10 September 2010 16:15, Andreas Harder andreas.har...@rz-online.de wrote: Hello, if one uses the right-option in \placefigure the paragraph indent is omitted. Example: \setupindenting[small,yes,next] \setupfloats[indentnext=yes] % no effect \starttext \input tufte \par \placefigure [right]{caption} {\framed[width=5cm,height=3cm]{some figure}} \input tufte \par \input tufte \stoptext Best regards Andreas ___ 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] indent lost after \placefigure
Alan BRASLAU wrote: Furthermore, \setupfloats [indentnext=yes] is somewhat strange. I suppose that it might make sense not to indent a new paragraph following a section title, etc. but does it really make sense not to indent a NEW paragraph following a break such as a displayed figure, table, or formula, etc.? Definitely so: almost all of the (non-science) layout specifications I have seen in my professional work request exactly this behavior. Best wishes, Taco ___ 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] indent lost after \placefigure
On Thursday 11 February 2010 08:57:21 Alan BRASLAU wrote: On Thursday 11 February 2010 05:07:15 Wolfgang Schuster wrote: Am 11.02.10 02:14, schrieb Tom: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. \setupfloats[indentnext=yes] An opposite feature is also strange - minimal example: \setupindenting [medium,yes] \starttext A paragraph, including an itemized list: \startitemize [joinedup,packed] \item first \item second \stopitemize The following text is indented. It is not a new paragraph. \stoptext 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] indent lost after \placefigure
On Thu, Feb 11 2010, Alan BRASLAU wrote: An opposite feature is also strange - minimal example: \setupindenting [medium,yes] \starttext A paragraph, including an itemized list: \startitemize [joinedup,packed] \item first \item second \stopitemize The following text is indented. It is not a new paragraph. \stoptext \setupitemize[indentnext=auto] % should be default value everywhere IMHO Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] indent lost after \placefigure
On Thursday 11 February 2010 02:14:12 Tom wrote: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. On Thursday 11 February 2010 13:23:43 Peter Münster wrote: \setupitemize[indentnext=auto] % should be default value everywhere IMHO So here is the `bug' related to this entire thread -- minimal example: \setupindenting [medium,yes] \setupfloats [indentnext=auto] \starttext \input knuth \placefigure [here] {none} {\externalfigure [cow]} \input knuth \stoptext Doesn't work, but \setupfloats [indentnext=yes] forces knuth after the figure to be indented. Alan PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. *OK, perhaps \setupheads... PPS: Subject: What do you miss in ConTeXt? On Tuesday 09 February 2010 19:51:13 Hans Hagen wrote: \composemanual [title=The real context manual,writingstyle=knuth] Let's do it! ___ 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] indent lost after \placefigure
On Thu, 11 Feb 2010, Alan BRASLAU wrote: PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. Below is my understanding of ConTeXt's design principle (Hans or Taco should correct me if I am wrong). Content should be separate from presentation. This means that indentation should be a function of semantics, and not of how you format your source. So some text ... \startitemize \item \item \stopitemize some more text and some text \startitemize \item \item \stopitemize some more text ... should give the same result. If you want an item group that does not start a paragraph, and an item group that starts a new paragraph, then they are two different objects and you should define two different environments for them. \defineitemgroup[spitemize] %single para [indentnext=no, before=\blank, after=\blank] \defineitemgroup[mpitemize] %multi para [indentnext=yes, before={\blank[big]}, after={\blank[big]}] Then you can use \startspitemize or \startmpitemize dependening on what you want. The way you format the source does not matter. 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] indent lost after \placefigure
On Thursday 11 February 2010 18:55:01 Aditya Mahajan wrote: On Thu, 11 Feb 2010, Alan BRASLAU wrote: PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. Below is my understanding of ConTeXt's design principle (Hans or Taco should correct me if I am wrong). Content should be separate from presentation. This means that indentation should be a function of semantics, and not of how you format your source. So some text ... \startitemize \item \item \stopitemize some more text and some text \startitemize \item \item \stopitemize some more text ... should give the same result. If you want an item group that does not start a paragraph, and an item group that starts a new paragraph, then they are two different objects and you should define two different environments for them. \defineitemgroup[spitemize] %single para [indentnext=no, before=\blank, after=\blank] \defineitemgroup[mpitemize] %multi para [indentnext=yes, before={\blank[big]}, after={\blank[big]}] Then you can use \startspitemize or \startmpitemize dependening on what you want. The way you format the source does not matter. Aditya That is really ugly: different cases of itemize... If indeed the design principle that you describe is true, then I would *strongly* argue that one should get rid of a blank line separating paragraphs and *require* the use of \par I don't totally agree with this, as I think that the document source should look as simple as possible, and paragraphs separated by blank lines do a lot to make the text readable, more so than \par A new paragraph. 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] indent lost after \placefigure
On Thu, 11 Feb 2010, Alan BRASLAU wrote: On Thursday 11 February 2010 18:55:01 Aditya Mahajan wrote: On Thu, 11 Feb 2010, Alan BRASLAU wrote: PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. Below is my understanding of ConTeXt's design principle (Hans or Taco should correct me if I am wrong). Content should be separate from presentation. This means that indentation should be a function of semantics, and not of how you format your source. So some text ... \startitemize \item \item \stopitemize some more text and some text \startitemize \item \item \stopitemize some more text ... should give the same result. If you want an item group that does not start a paragraph, and an item group that starts a new paragraph, then they are two different objects and you should define two different environments for them. \defineitemgroup[spitemize] %single para [indentnext=no, before=\blank, after=\blank] \defineitemgroup[mpitemize] %multi para [indentnext=yes, before={\blank[big]}, after={\blank[big]}] Then you can use \startspitemize or \startmpitemize dependening on what you want. The way you format the source does not matter. Aditya That is really ugly: different cases of itemize... Agreed. That is a matter of personal preference. you can always add indentnext=auto to \setupitemize (I always do that for formulas) or indentnext=yes|no to individual itemize. If indeed the design principle that you describe is true, what I said was how I understand things, and I may be completely wrong here. then I would *strongly* argue that one should get rid of a blank line separating paragraphs and *require* the use of \par AFAIU, tex does not differentiate between blank lines and \par (unless you change the catcode of eol). I don't totally agree with this, as I think that the document source should look as simple as possible, and paragraphs separated by blank lines do a lot to make the text readable, more so than And I am suggesting that adding blank lines around ALL environments, without changing the output. In any case, ConTeXt is flexible to allow you to use whichever style you prefer. It just defaults to one thing. You can have a 'autoindent' module that adds indent=auto to all \setup commands. 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] indent lost after \placefigure
This works, but my problem may be self-inflicted by my code for chapter first pages. I want different a different first page format for the introduction, contents and appendices than I have for regular chapters. I suppose that \chapter can be fed parameters other than the chapter name, but can't find them described in the manual. It isn't clear to me if \setuphead can be used for these non-standard chapters. Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Alan BRASLAU Sent: Thursday, February 11, 2010 8:41 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] indent lost after \placefigure On Thursday 11 February 2010 02:14:12 Tom wrote: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. On Thursday 11 February 2010 13:23:43 Peter Münster wrote: \setupitemize[indentnext=auto] % should be default value everywhere IMHO So here is the `bug' related to this entire thread -- minimal example: \setupindenting [medium,yes] \setupfloats [indentnext=auto] \starttext \input knuth \placefigure [here] {none} {\externalfigure [cow]} \input knuth \stoptext Doesn't work, but \setupfloats [indentnext=yes] forces knuth after the figure to be indented. Alan PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. *OK, perhaps \setupheads... PPS: Subject: What do you miss in ConTeXt? On Tuesday 09 February 2010 19:51:13 Hans Hagen wrote: \composemanual [title=The real context manual,writingstyle=knuth] Let's do it! ___ 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 ___
[NTG-context] chapter headers (was: indent lost after \placefigure)
Am 11.02.10 20:50, schrieb Tom: This works, but my problem may be self-inflicted by my code for chapter first pages. I want different a different first page format for the introduction, contents and appendices than I have for regular chapters. I suppose that \chapter can be fed parameters other than the chapter name, but can't find them described in the manual. It isn't clear to me if \setuphead can be used for these non-standard chapters. you can use context’s document structure environments and change the layout for the chapter pages in the front- and backmatter \startsectionblockenvironment[frontpart] \setuphead[chapter][...] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setuphead[chapter][...] \stopsectionblockenvironment \starttext \startfrontmatter \chapterIntroduction} \complecontent \stopfrontmatter \startbodymatter % the content \stopbodymatter \startappendices \chapter{A appendix chapter} \stopappendices \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] chapter headers (was: indent lost after \placefigure)
Thanks, this is very helpful. I do have a couple of questions, though. Should I insert a section for the body of the text something like this? \startsectionblockenvironment[bodypart] \setuphead[chapter][...] \stopsectionblockenvironment \completecontent causes two blank (except for header) to be produced before the table of contents but \placecontent doesn't. It doesn't seem to me that the extra pages should be created. Could I have done something that caused this? Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Thursday, February 11, 2010 2:59 PM To: mailing list for ConTeXt users Subject: [NTG-context] chapter headers (was: indent lost after \placefigure) Am 11.02.10 20:50, schrieb Tom: This works, but my problem may be self-inflicted by my code for chapter first pages. I want different a different first page format for the introduction, contents and appendices than I have for regular chapters. I suppose that \chapter can be fed parameters other than the chapter name, but can't find them described in the manual. It isn't clear to me if \setuphead can be used for these non-standard chapters. you can use context's document structure environments and change the layout for the chapter pages in the front- and backmatter \startsectionblockenvironment[frontpart] \setuphead[chapter][...] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setuphead[chapter][...] \stopsectionblockenvironment \starttext \startfrontmatter \chapterIntroduction} \complecontent \stopfrontmatter \startbodymatter % the content \stopbodymatter \startappendices \chapter{A appendix chapter} \stopappendices \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 ___ ___ 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] indent lost after \placefigure
When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] indent lost after \placefigure
Am 11.02.10 02:14, schrieb Tom: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. \setupfloats[indentnext=yes] 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] indent lost after \placefigure
Is there something else I should do? I still have 2 instances of the paragraph immediately after a figure not indented. Both of these are on the tops of their respective pages. And I have one paragraph just before a figure that is not indented. I tried \indenting[yes] for the paragraphs in question to no avail. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Am 11.02.10 02:14, schrieb Tom: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. \setupfloats[indentnext=yes] 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] indent lost after \placefigure
On Thursday 11 February 2010 05:07:15 Wolfgang Schuster wrote: Am 11.02.10 02:14, schrieb Tom: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. \setupfloats[indentnext=yes] Can someone explain the design behind placefigure? Indeed, I would expect it to create a float that is then placed as best as possible according to certain criteria. But it appears to be oriented towards only a certain use: before or between paragraphs as it imposes a line break. I have never understood the logic of this. I would like to declare a float at any point, even in the middle of a paragraph (for example, at the first instance referring to the figure), so that the figure or table will be placed at the first instance possible following the reference. Currently, this imposes a line break (which makes sense for \placefigure [force] but not necessairly in other cases). As things stand now, I find that I must declare my floats either before or after the paragraph containing the figure or table reference. The float then may appear before or long after its text reference, in particular if the paragraph is long. Furthermore, \setupfloats [indentnext=yes] is somewhat strange. I suppose that it might make sense not to indent a new paragraph following a section title, etc. but does it really make sense not to indent a NEW paragraph following a break such as a displayed figure, table, or formula, etc.? 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] place figure without \placefigure
R. Bastian wrote: On Tue, 17 Nov 2009 13:01:11 +0100 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: \placefigure[none]{}{\externalfigure[...]} it wörks nit, but That's because the none ended up between the wrong parentheses; when you do not want captions while using \placefigure, write none in the spot where the caption would normally be: \placefigure [...] {none} %no caption {\externalfigure[...]} This works, at least in older versions of ConTeXt. I've got a few figures where it is used, this way I can be certain that the figure placement etc. is consistent all over. It works in combinations, too; in the following example I combine three figures on one row. The whole combination does have a caption, but the individual figures in the combination do not - so if you look at the final pdf, this looks like any single figure with one caption underneath. \placefigure [here] % placement [fig:nameplates] % reference {IA sensor nameplates} % caption for whole group { \startcombination[3*1] % 3 columns, 1 row {\externalfigure[sanitary ia]} {none} {\externalfigure[general ia]} {none} {\externalfigure[aggressive ia]} {none} \stopcombination } % whole combination in braces of placefigure Regards, Mari ___ 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] Adjusting the size of a figure when using placefigure
Please see the figure generated by the following minimal example. Due to the dimensions chosen in the figure, the figure is wider than the text width. Is there an option in \placefigure or another command that can help to make this figure smaller (without changing the code of the original figure)? Thank you. \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \starttext \startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue; \stopuseMPgraphic \placefigure[here]{Two figures next to each other} \startcombination[2*1] {\useMPgraphic{firstFig}}{(a)} {\useMPgraphic{secondFig}}{(b)} \stopcombination It can be seen that due to the dimensions in the figure, the figure is wider than the text. Is there a way to make the figure as wide as the text by setting some option of \placefigure. \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] Adjusting the size of a figure when using placefigure
On Wed, Nov 25, 2009 at 2:44 AM, Curiouslearn curiousle...@gmail.com wrote: Please see the figure generated by the following minimal example. Due to the dimensions chosen in the figure, the figure is wider than the text width. Is there an option in \placefigure or another command that can help to make this figure smaller (without changing the code of the original figure)? Thank you. \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \starttext \startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue; \stopuseMPgraphic \placefigure[here]{Two figures next to each other} \startcombination[2*1] {\useMPgraphic{firstFig}}{(a)} {\useMPgraphic{secondFig}}{(b)} \stopcombination It can be seen that due to the dimensions in the figure, the figure is wider than the text. Is there a way to make the figure as wide as the text by setting some option of \placefigure. \stoptext \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \definemeasure[textgap] [\dimexpr 1em\relax] \definecombination[both][distance=\measure{textgap}] \showframe \starttext \startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue; \stopuseMPgraphic \placefigure[here]{Two figures next to each other} \startcombination[both][2*1] {\scale[width=\dimexpr 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{firstFig}}}{(a)} {\scale[width=\dimexpr 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{secondFig}}}{(b)} \stopcombination It can be seen that due to the dimensions in the figure, the figure is wider than the text. Is there a way to make the figure as wide as the text by setting some option of \type{\placefigure}. \stoptext -- luigi ___ 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] Adjusting the size of a figure when using placefigure
Thanks Luigi. I did not know where exactly to put the width command. Your solution works great. On Tue, Nov 24, 2009 at 9:20 PM, luigi scarso luigi.sca...@gmail.com wrote: On Wed, Nov 25, 2009 at 2:44 AM, Curiouslearn curiousle...@gmail.com wrote: Please see the figure generated by the following minimal example. Due to the dimensions chosen in the figure, the figure is wider than the text width. Is there an option in \placefigure or another command that can help to make this figure smaller (without changing the code of the original figure)? Thank you. \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \starttext \startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue; \stopuseMPgraphic \placefigure[here]{Two figures next to each other} \startcombination[2*1] {\useMPgraphic{firstFig}}{(a)} {\useMPgraphic{secondFig}}{(b)} \stopcombination It can be seen that due to the dimensions in the figure, the figure is wider than the text. Is there a way to make the figure as wide as the text by setting some option of \placefigure. \stoptext \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \definemeasure[textgap] [\dimexpr 1em\relax] \definecombination[both][distance=\measure{textgap}] \showframe \starttext \startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue; \stopuseMPgraphic \placefigure[here]{Two figures next to each other} \startcombination[both][2*1] {\scale[width=\dimexpr 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{firstFig}}}{(a)} {\scale[width=\dimexpr 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{secondFig}}}{(b)} \stopcombination It can be seen that due to the dimensions in the figure, the figure is wider than the text. Is there a way to make the figure as wide as the text by setting some option of \type{\placefigure}. \stoptext -- luigi ___ 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] Adjusting the size of a figure when using placefigure
Luigi, Thank you for bringing to our attention the command \scale allowing the easy rescaling of MP graphics. On Wednesday 25 November 2009 03:20:09 luigi scarso wrote: \definemeasure[textgap] [\dimexpr 1em\relax] Why the \dimexpr? \definemeasure[textgap] [1em] works just fine. 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 ___
[NTG-context] place figure without \placefigure
Hello, in a german text I have to place two figures and a table. If I use \placefigure they are well centered - but with french captions: Table or Figure. I dont need the captions. Without \placefigure, the figures are not centered. Is there a way ? Thanks, -- René Bastian www.pythoneon.org www.musiques-rb.org ___ 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] place figure without \placefigure
Am 17.11.2009 um 12:26 schrieb R. Bastian: Hello, in a german text I have to place two figures and a table. If I use \placefigure they are well centered - but with french captions: Table or Figure. I dont need the captions. Without \placefigure, the figures are not centered. Is there a way ? \placefigure[none]{}{\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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] place figure without \placefigure
On Tue, 17 Nov 2009 13:01:11 +0100 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 17.11.2009 um 12:26 schrieb R. Bastian: Hello, in a german text I have to place two figures and a table. If I use \placefigure they are well centered - but with french captions: Table or Figure. I dont need the captions. Without \placefigure, the figures are not centered. Is there a way ? \placefigure[none]{}{\externalfigure[...]} it wörks nit, but \midaligned{{\externalfigure[...]}} wörks ;-) 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 ___ -- René Bastian www.pythoneon.org www.musiques-rb.org ___ 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] Indent missed after \placefigure[inner]
Am 15.11.2009 um 23:15 schrieb Vyatcheslav Yatskovsky: Hello, I've asked about this issue already, but maybe my cry for help was missed ) Your chance to get an answer will be bigger when you provide a short and working example. P.S. Is there a keyword that produces an indent? (like \makeindent) Read Adityas TuGboat article about indenting and you will know \indentation is what you want. http://www.tug.org/TUGboat/Articles/tb29-2/tb92mahajan.pdf 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] Indent missed after \placefigure[inner]
Hello Wolfgang, I've asked about this issue already, but maybe my cry for help was missed ) Your chance to get an answer will be bigger when you provide a short and working example. Sure. This is minimal example. \setupindenting[big,yes] \setupfloat[figure][indentnext=yes] \starttext \dorecurse{1}{\input knuth \par} \placefigure [inner] {} {\externalfigure[cow][width=0.5\textwidth]} \dorecurse{1}{\input knuth \par} \stoptext P.S. Is there a keyword that produces an indent? (like \makeindent) Read Adityas TuGboat article about indenting and you will know \indentation is what you want. Thanks. Actually, i tried \indent to produce indent, but it was treated as wrong keyword. Vyatcheslav \setupindenting[big,yes] \setupfloat[figure][indentnext=yes] \starttext \dorecurse{1}{\input knuth \par} \placefigure [inner] {} {\externalfigure[cow][width=0.5\textwidth]} \dorecurse{1}{\input knuth \par} \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 ___