From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \placefigure not centering
Date: Thu, 28 Aug 2008 14:23:25 +0200 [thread overview]
Message-ID: <48B698BD.5020705@elvenkind.com> (raw)
In-Reply-To: <20080827174634.GE4017@atos.labs.wmid.amu.edu.pl>
Marcin Borkowski wrote:
> Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisał(a):
>> Why this does not center the figure horizontally? What should I do to
>> center it?
>>
>> \placefigure{none}{
>> \starttikzpicture[scale=0.3]
>> \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
>> \stoptikzpicture
>> }
>>
>> I discovered that using combinations with "1*1" helps, but this is a
>> dirty trick;). (Also, "none" as a label does not work with combinations
>> - is it a bug or a feature?)
>
> OK, so I'm answering myself. The problem is (I guess so at least) that
> the second parameter somehow gets typeset "as a paragraph" - that is,
> with full paragraph's width (=width of the whole column). Since nothing
> is said about centering, it is flush left. This helps:
>
> \placefigure{none}{\hbox{
> \starttikzpicture[scale=0.5]
> \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
> \stoptikzpicture
> }}
>
> Maybe it's not very clean, but it seems to work. If anyone has a
> cleaner (more "ConTeXt-way-ish" solution), I'd be thankful for a hint.
You could probably use \framed[frame=off]{} instead of \hbox{}
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2008-08-28 12:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 9:14 Marcin Borkowski
2008-08-27 17:46 ` Marcin Borkowski
2008-08-27 19:58 ` Hans Hagen
2008-08-28 12:23 ` Taco Hoekwater [this message]
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=48B698BD.5020705@elvenkind.com \
--to=taco@elvenkind.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).