ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hello world title not flush left - beginner question?
Date: Thu, 3 Nov 2011 14:36:06 +0100	[thread overview]
Message-ID: <E6C8E31C-B93A-44D8-A840-7F417B536495@googlemail.com> (raw)
In-Reply-To: <C8A11338090AD943AF15E7FB26011A334312641718@SI-MBX82.de.bosch.com>


[-- Attachment #1.1: Type: text/plain, Size: 1635 bytes --]


Am 02.11.2011 um 17:38 schrieb Grant William (ST-CO/ENG3.11):

> Hi all,
>  
> I am a novice user of latex and have always wanted to have more control over how things look and are set up. Context is perfect!
>  
> But now I am stuck on a frustrating bug I can't seem to figure out. Maybe this is not a bug at all…
>  
> Nontheless, in the Hello World http://wiki.contextgarden.net/Hello_world example page, upon building my own version and looking closely, the title text is not lined up to the left edge of the text area, whereas the following line for the A. U. Thor is flushed over correctly.
>  
> The example pdf on the page is like this as well, but when I turn on \showframe and look at in on my computer, the offset is just screaming at me! I can't seem to figure out what portion of the \setuphead[title] code is causing this.
>  
> Is this a bug or what is going on here?

I can’t say without testing the code but it’s something you should try to avoid, especially
because MkIV provides a better mechanism to place material after a heading:

\def\startdictum
  {\dostartbuffer[dictum][startdictum][stopdictum]}

\setuphead
  [title]
  [insidesection=\texsetup{dictum}]

\startsetups dictum

  \doifelsebuffer{dictum}
    {\startframedtext[right][frame=off,offset=none,width=.5\textwidth,foregroundstyle=\itx]
     \getbuffer  [dictum]
     \resetbuffer[dictum]
     \stopframedtext}
    {\donothing}

\stopsetups

\starttext

\startdictum
\input ward
\stopdictum

\starttitle[title=This is a heading with a epgigraph below]

\input knuth

\stoptitle

\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 3337 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2011-11-03 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 16:38 Grant William (ST-CO/ENG3.11)
2011-11-03 13:36 ` Wolfgang Schuster [this message]
     [not found]   ` <20111103141534.GC1412@iram-ha-003840.extra.cea.fr>
2011-11-03 14:33     ` Wolfgang Schuster
2011-11-03 14:51       ` Alan Braslau
2011-11-03 15:38         ` Wolfgang Schuster

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=E6C8E31C-B93A-44D8-A840-7F417B536495@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).