Image width in a two-column layout
It seems that there is a bug with \textwidth and \linewidth inside mixed columns. Minimum working example: % interface=en output=pdftex \definemixedcolumns[StyleColumns][ n=2, separator=rule, align=tolerant, before={\blank[big]},] \setupexternalfigures[ order={svg,pdf,png,jpg}, location=global, %wfactor=fit,] \setuphead[section][ after={\startStyleColumns}, aftersection={\stopStyleColumns},] \starttext \startbodymatter \setuppagenumbering[conversion=numbers] \setcounter[userpage][1] \startchapter[ title={Chapter}, reference=sec:chapter, ] \startsection[ title={Section}, reference=sec:chapter, ] \placefigure[]{}{% \externalfigure[sheep.jpg][ width=\textwidth, ] } \startsubsection[ title={Equipment}, reference=sec:equipment,] \input knuth \stopsubsection \stopsection \stopchapter\stopbodymatter \stoptext Actual results: the image appears as "undefined". Expected results: the image appears, stretched to fill the column. Work around 1: use wfactor. Work around 2: \defineexternalfigure[fullwidth][factor=fit] and then use \externalfigure[file.jpg][fullwidth] Kind regards.
On 9/2/2013 8:34 PM, Aditya Mahajan wrote:
On Mon, 2 Sep 2013, Thangalin wrote:
It seems that there is a bug with \textwidth and \linewidth inside mixed columns. Minimum working example:
Here is a smaller example:
\starttext \startmixedcolumns \showthe\textwidth \stopmixedcolumns \stoptext
put this in cont-new.mkiv \unexpanded\def\page_mix_command_set_hsize {\hsize\d_page_mix_column_width \textwidth\d_page_mix_column_width} or fetch the beta 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 -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Thangalin