[NTG-context] Bug in wrapped placefigure

Henri Menke henrimenke at gmail.com
Thu Mar 29 12:50:48 CEST 2018


Dear devs,

When a figure is wrapped in a paragraph and that paragraph is the first
in a section, ConTeXt adds spurious vertical space above the text
(eyeballing it, I'd say it is \topskip).  Find MWE with workaround below.

Found at https://tex.stackexchange.com/questions/423817

Cheers, Henri

---

\setupwhitespace[big]

\starttext

\startsection[title=section]

  \startmode[fix]
    % Set default whitespace
    \setupwhitespace[none]
  \stopmode

  \startplacefigure
    [location={right},
      title={just a dummy figure}]
    \externalfigure[dummy][width=.5\textwidth]
  \stopplacefigure

  \input lorem

  \startmode[fix]
    % Restore whitespace
    \setupwhitespace[big]
  \stopmode

  \input lorem

\stopsection

\stoptext


More information about the ntg-context mailing list