ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Goerz <goerz@physik.fu-berlin.de>
To: ntg-context@ntg.nl
Subject: horizontal alignment
Date: Thu, 8 Jul 2010 19:32:00 -0400	[thread overview]
Message-ID: <AANLkTimAvzKraexKaawRlOFe-A3cz9i6s8BuaSNuebjz@mail.gmail.com> (raw)

Hi everyone,

I'm trying to do some horizontal alignment, for typesetting poetry.
There are lines that are continuations of the previous line, and should
be aligned to the end of that previous line. Currently, I'm doing this
by using \phantom text, which for some reason I also have to wrap into
an \mbox to avoid a line break. As an example:

    \startlines
    here we now see you ~~  already in grief
    as you see ~~  yourselves ~~  as the last of the lasts
    we are mirrors of your consciousness
    \mbox{\phantom{we are mirrors of your consciousness} as you see the end}
    and you see us ~~ deep in the spring of the universe
    seeing you deep ~~ in the gravity well of the heat death
    we are dying ~~ in the spring as we watch you die
    we are grieving in the spring as you begin to grieve for all
    we are talking about bone-dry at the bottom of the well of time
    we are already parched
    \mbox{\phantom{we are already parched} for time is transparent}
    and we are all rats in the glassy
    \mbox{\phantom{and we are all rats in the glassy} labyrinth of time.
    \stoplines

How would you solve this kind of problem? I've considered defining a
macro \BrokenLine[line1][line2] that does the above. But, there are
also instances where there are two or more lines as a continuation of
one previous line. Maybe there is a possibility to mark a horizontal
position temporarily, and then jump to that position later?

Thanks,
Michael
___________________________________________________________________________________
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-07-08 23:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 23:32 Michael Goerz [this message]
2010-07-09 11:13 ` Michael Murphy
2010-07-10  5:15   ` Michael Goerz
2010-07-11  7:22   ` 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=AANLkTimAvzKraexKaawRlOFe-A3cz9i6s8BuaSNuebjz@mail.gmail.com \
    --to=goerz@physik.fu-berlin.de \
    --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).