From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl, Giuseppe Bilotta <bourbaki@bigfoot.com>
Subject: Re: midalignment
Date: Sun, 23 Jun 2002 23:58:30 +0200 [thread overview]
Message-ID: <5.1.0.14.1.20020623235737.036c4d30@remote-1> (raw)
In-Reply-To: <87ofe4s44j.fsf@gundla.ch>
At 11:39 PM 6/21/2002 +0200, Patrick Gundlach wrote:
>Idris S Hamid <ishamid@attbi.com> writes:
>
> > Dear folks,
> >
> > In the following example, \midalign is not placing its argument in the
> center
> > of the line but rather offset to the right a bit.
>
>this is because \midalign (and other alignment macros) do not look at
>the \leftskip and the \rightskip the \startnarrow sets. If you run
>(pdf)etex you can try this code before the \midalign:
>
>
>\def\doalignline#1#2% \\ == newline
> {\bgroup
> \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
> \dowithnextbox
> {\noindent\hbox to \dimexpr(\hsize - \rightskip - \leftskip)
> {\strut#1\unhbox\nextbox#2}\egroup}
> \hbox}
>
>
>Hans should fix this. Sorry I don't have the time to put this into
>bugzilla.
better is:
\def\doalignline#1#2% \\ == newline
{\bgroup
\setlocalhsize % new
\def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
\dowithnextbox
{\noindent\hbox to \localhsize{\strut#1\unhbox\nextbox#2}\egroup}
\hbox}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
next prev parent reply other threads:[~2002-06-23 21:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-16 3:15 midalignment Idris S Hamid
2002-06-21 21:39 ` midalignment Patrick Gundlach
2002-06-23 21:58 ` Hans Hagen [this message]
2002-06-24 8:14 ` midalignment Patrick Gundlach
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=5.1.0.14.1.20020623235737.036c4d30@remote-1 \
--to=pragma@wxs.nl \
--cc=bourbaki@bigfoot.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).