ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Figure not placed at margin
Date: Wed, 03 Feb 2010 19:49:40 +0100	[thread overview]
Message-ID: <4B69C544.2050604@wxs.nl> (raw)
In-Reply-To: <004301caa4fa$41164c00$c342e400$@com>

On 3-2-2010 18:56, Tom wrote:
> The following code fragment places the desired graphic at the beginning of
> the chapter but indents it to the right a quarter or 3/8 of an inch. The
> text (parameter #2, the chapter title) prints to the right of the figure but
> sometimes extends into the right margin. Other times, it wraps down to
> following lines as it should. The text begins right against the graphic (in
> a blank space) as it should, but the whole thing, graphic and text, are
> offset to the right rather than being aligned with the left margin. All
> other figures in the document are where they are supposed to be. Any ideas?
>
> \def\Myheader#1#2{
>    \setupfloats[offset=none,margin=0 in]
>    \startfiguretext
>     [left]
>     [fig:graphic]
>     {none}
>     {\externalfigure[graphic][frame=off]}
>       {\switchtobodyfont[26pt] {\ss\bf\sl #1}}
>        \godown[.5in]
>       {\ss\bf #2}
>     \stopfiguretext}

see details.pdf on how to define you own float class and configure it


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2010-02-03 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-03 17:56 Tom
2010-02-03 18:49 ` Hans Hagen [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=4B69C544.2050604@wxs.nl \
    --to=pragma@wxs.nl \
    --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).