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
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
On 2011-03-27 Pontus Lurcock
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
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
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
On 2011-03-27 Pontus Lurcock
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
Am 27.03.2011 um 00:22 schrieb Marco:
On 2011-03-27 Pontus Lurcock
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
On 2011-03-27 Wolfgang Schuster
Am 27.03.2011 um 00:22 schrieb Marco:
On 2011-03-27 Pontus Lurcock
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
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
On 2011-03-28 Pontus Lurcock
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
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 -----------------------------------------------------------------
On 2011-03-28 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)
Better later than never :) Marco
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
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
On 2011-03-27 Wolfgang Schuster
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
participants (5)
-
Hans Hagen
-
Marco
-
Pontus Lurcock
-
Steffen Wolfrum
-
Wolfgang Schuster