ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centering the last line in combination subcaptions
Date: Sat, 8 Feb 2014 07:35:14 +0100	[thread overview]
Message-ID: <D34A06EB-B1B2-423F-B8CD-110A234FF951@gmail.com> (raw)
In-Reply-To: <52f56744.c8310f0a.7ef8.ffffb680SMTPIN_ADDED_BROKEN@mx.google.com>


Am 08.02.2014 um 00:07 schrieb Jan Tosovsky <j.tosovsky@email.cz>:

> This is the improved example. The only remaining issue is an one empty line
> between the image and the label when \startnarrower command is used.
> 
> Please compare two pages w/o this option set:
> 
> 
> %\definefontfamily[palatino][rm][Palatino Linotype][features={default,
> quality}]
> %\setupbodyfont[palatino]
> \setupnarrower[middle=-2.8cm]
> 
> \starttext
> test
> \startplacefigure[location=page, number=no, title={}]
> \setupcombinations[align={last, hz, hanging}]
> {\startcombination[1*2]
>    {\externalfigure[cow]} {\startnarrower {\itx \input{tufte}}
> \stopnarrower}
>    {\externalfigure[cow]} {\startnarrower {\itx \input{lorem}}
> \stopnarrower}
> \stopcombination} 
> \stopplacefigure
> 
> \startplacefigure[location=page, number=no, title={}]
> \setupcombinations[align={last, hz, hanging}]
> {\startcombination[1*2]
>    {\externalfigure[cow]} {\itx \input{ward}}
>    {\externalfigure[cow]} {\itx \input{ward}}
> \stopcombination} 
> \stopplacefigure
> 
> \stoptext
> 
> I haven't find any better way to extend the caption width than that negative
> value for narrowed text. It works, but that empty space above looks weird

You have to force a certain width for your images because the width
of the text space depends on the width of the images. You can use
\framed (instead of loffset/roffset you can also set a fixed width) or
\simplealignedbox to set the width of the images.

\setupexternalfigures[location=default]

\defineframed[CombinationBox][frame=off,offset=none,loffset=3cm,roffset=3cm]

\starttext

\startplacefigure[location={force,none}]
  \startcombination[nx=1,ny=2,align={last,hz,hanging},style=\itx]
    % first image
    \startcontent
	  %\simplealignedbox{11cm}{middle}{\externalfigure[cow][width=5cm]}
	  \CombinationBox{\externalfigure[cow][width=5cm]}
	\stopcontent
	\startcaption
	  \input{ward}
	\stopcaption
	% second image
    \startcontent
	  %\simplealignedbox{11cm}{middle}{\externalfigure[cow][width=5cm]}
	  \CombinationBox{\externalfigure[cow][width=5cm]}
	\stopcontent
	\startcaption
	  \input{ward}
	\stopcaption
  \stopcombination
\stopplacefigure

\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
___________________________________________________________________________________


  parent reply	other threads:[~2014-02-08  6:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <008201cf0356$ccebf400$66c3dc00$@tosovsky@email.cz>
2014-02-07 21:25 ` Jan Tosovsky
     [not found] ` <016201cf244b$29d9f210$7d8dd630$@tosovsky@email.cz>
2014-02-07 23:07   ` Jan Tosovsky
     [not found]   ` <52f56744.c8310f0a.7ef8.ffffb680SMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-08  6:35     ` Wolfgang Schuster [this message]
2014-02-08 11:22       ` Jan Tosovsky
     [not found]       ` <52f613a9.09240f0a.5c33.ffff9f93SMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-08 15:27         ` Wolfgang Schuster
2013-12-27 22:55 Jan Tosovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D34A06EB-B1B2-423F-B8CD-110A234FF951@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).