From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84061 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Image width in a two-column layout Date: Mon, 2 Sep 2013 11:29:52 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0963191736==" X-Trace: ger.gmane.org 1378146595 27456 80.91.229.3 (2 Sep 2013 18:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 18:29:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 02 20:29:59 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGYsx-0008T1-FO for gctc-ntg-context-518@m.gmane.org; Mon, 02 Sep 2013 20:29:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C4AB1020B; Mon, 2 Sep 2013 20:28:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UT5jttSoky4D; Mon, 2 Sep 2013 20:28:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 022DE1020C; Mon, 2 Sep 2013 20:28:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B6F761020C for ; Mon, 2 Sep 2013 20:28:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NDytegFdFD6d for ; Mon, 2 Sep 2013 20:28:27 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id F22F81020B for ; Mon, 2 Sep 2013 20:28:26 +0200 (CEST) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r82ITrQe006039 for ; Mon, 2 Sep 2013 20:29:53 +0200 Original-Received: by mail-ie0-f180.google.com with SMTP id x14so8491353ief.39 for ; Mon, 02 Sep 2013 11:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lo0K4ok81hB5lLUvajOiDjesk/5teVQU/RCSPj88f24=; b=bfktS/hfCmkXoEB/2g5RpW9g4uD5u3QJ90SEZ+vLtrA0v4N+ZOGELaOLJ26cHRS1pg RNkyxfWk4ysqcQya9vZLSmm7bIV3IfVpD7qc4m/U4LaLrefwRxGOd4322aKN5VEpr+Yy d2Y+rdvemgWmWxYrvb48Sf6l8lGLs2c1gcPyCUqH2ig6R3vUw0p8NeNhVlQqVNmTNMQ/ RhHQ9PCjgv8iy8caF1FEdcX/sjvIfnqEZ1Veg5sBxliUZGG+rNV5yeNYuBSyiknBSFKJ U8wkrDgt39dLfhIFD4zFkeqDYdEGHPlU0DD/WCbsBs84bzRdN1coOjPLEaoXxVcGDwwx gDmw== X-Received: by 10.50.25.39 with SMTP id z7mr12768383igf.59.1378146592504; Mon, 02 Sep 2013 11:29:52 -0700 (PDT) Original-Received: by 10.42.6.203 with HTTP; Mon, 2 Sep 2013 11:29:52 -0700 (PDT) X-Bayes-Prob: 0.0003 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KkitRoN - c079259d336a - 20130902 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84061 Archived-At: --===============0963191736== Content-Type: multipart/alternative; boundary=047d7bd7689818418304e56ac2f5 --047d7bd7689818418304e56ac2f5 Content-Type: text/plain; charset=ISO-8859-1 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. --047d7bd7689818418304e56ac2f5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It seems that there is a bug wi= th \textwidth and \linewidth inside mixed columns= . Minimum working example:
% interface=3Den output=3Dpdftex

\definemixedcolumns[=
StyleColumns][
  n=3D2,=20
  separator=3Drule,
  align=3Dtolerant,
  before=3D{\blank[big]},
]

\setupexternalfigures[
  order=3D{svg,pdf,png,jpg<=
/span>},
  location=3Dglobal,
  %wfactor=3Dfit,
]

\setuphead[section][
  after=3D{\startStyleColum=
ns},
  aftersection=3D{\stopStyl=
eColumns},
]

\starttext

\startbodymatter
  \setuppagenumbering[conversion=3Dnumbers]
  \setcounter[userpage][1]

  \startchapter[
    title=3D{Chapter=
},
    reference=3Dsec:chapter=
,
  ]

  \startsection[
    title=3D{Section=
},
    reference=3Dsec:chapter=
,
  ]

  \placefigure[]{}{<=
span class=3D"">%
    \externalfigure[=
sheep.jpg][
        width=3D\textwidth<=
/span>,
      ]
  }

  \startsubsection[<=
span class=3D"">
    title=3D{Equipment},
    reference=3Dsec:equipme=
nt,]
    \input knuth
  \stopsubsection

  \stopsection
  \stopchapter
\stopbodymatter

\stoptext
Actual results: the im= age appears as "undefined".
Expected results: the image = appears, stretched to fill the column.
Work around 1: use wfa= ctor.
Work around 2: \defineexternalfigure[full= width][factor=3Dfit] and then use \externalfigure[file.jpg][fu= llwidth]

Kind regards.
--047d7bd7689818418304e56ac2f5-- --===============0963191736== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0963191736==--