ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: d_jan <d_jan@ymail.com>
To: ntg-context@ntg.nl
Subject: If figures are placed left, left-aligned captions are unwantedly centered
Date: Fri, 29 Jan 2016 21:30:58 +0100	[thread overview]
Message-ID: <56ABCC02.8070306@ymail.com> (raw)

Hello fellow ConTeXt users,


I want to place figures left so that text wraps around them if they have
less width than \textwidth. The figure captions should be aligned left
(flushleft).

What happens: The captions are all centered.

Details:
--------
If I use default={here,nonumber} instead of default={left,nonumber}
in\setupfloat[figure][default=..., the captions are aligned left, just
like they should.

It does not matter if the text warps around the captioned image, the
centered is present for all figure-captions, regardless of their width.


Code demonstrating the behaviour:
---------------------------------

   \setupfloat[figure][default={left,nonumber}]

   \setupcaption[figure][align=flushleft] %prefix: section-wis 3

   \starttext

   %here is some text...
   Lorem Ipsum....

   \placefigure{my figure caption}{\externalfigure[images/image1.jpg]}


   %here is some text
   Lorem Ipsum....
   \placefigure{my figure caption}{\externalfigure[images/image1.jpg]}


Is there any way to left-place figures and have the captions flushleft
aligned? (Ideally while keeping the content after starttext the same)

addition: I tried with an comes-with-Ubuntu-14.04 and a LiveTex2015
Version of ConTeXt, no difference in behavior.

Kind Regards,
 Jan

PS.: Previously posted this on tex.stackexchange too
(http://tex.stackexchange.com/questions/289752/if-figures-are-placed-left-left-aligned-captions-are-unwantedly-centered-conte),
but without answers so far.
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2016-01-29 20:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 20:30 d_jan [this message]
2016-01-29 21:39 ` Hans Hagen
2016-01-29 23:26   ` Aditya Mahajan
2016-01-29 23:37     ` Hans Hagen

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=56ABCC02.8070306@ymail.com \
    --to=d_jan@ymail.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).