From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: character width
Date: Mon, 30 Oct 2006 19:56:32 +0100 [thread overview]
Message-ID: <20061030195632.e3219183.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <5563F339-1A68-487E-83B3-3AC43EB8076B@st.estfiles.de>
On Wed, 25 Oct 2006 11:02:15 +0200
Steffen Wolfrum <context@st.estfiles.de> wrote:
> " \hphantom " ! What a promising word for exactly what I needed!
> Again and again I am surprised how many (strange) commands there
> exist. Where does \hphantom come frome? Where is it documented?
>
> Thank you for your replies! But it could be even better:
>
> As I need, finally, a construct like ...
> \writetolist[Test]{}{{\hphantom{999}}{\hfill}\bf{Nicely centers TOC
> entry}{\hfill}\it 999}
> ... I would like to make sure that both manually entered numbers are
> the same (I don't want to risk a typo!).
>
> So I'd like to use something like \def\FakePageNumber{999}, using
> \FakePageNumber at the beginning and the end of the above line.
>
> The following worked ...
> \expanded{\writetolist[Test]{}{\hfill {\bf Nicely centers TOC entry}
> \hfill \FakePageNumber}}
> ... but not in combination with \MySpace or \hphantom anymore:
> \expanded{\writetolist[Test]{}{???\hfill {\bf Nicely centers TOC
> entry} \hfill \FakePageNumber}}
>
> Could someone please help me over this "expanded/argument/
> whateveristheproblem" gap?
>
>
> Thank you very much,
> Steffen
>
>
>
>
> Am 24.10.2006 um 21:31 schrieb Peter Münster:
>
> > On Tue, 24 Oct 2006, Wolfgang Schuster wrote:
> >
> >> \def\MySpace
> >> {\dosingleempty\doMySpace}
> >>
> >> \def\doMySpace[#1]%
> >> {\setbox\scratchbox=\hbox{#1}%
> >> \unskip\hskip \the\wd \scratchbox}
> >
> > Or perhaps just:
> >
> > \starttext
> > Text\hphantom{999}Text
> > \stoptext
> >
> > ?
> >
> > Cheers, Peter
> >
Hi Steffen,
I presnt you a few solution to your problem, I don't how it
should look to you.
<example>
\def\FakePageNumber{999}
\starttext
\placecontent
\section{Knuth}
\input knuth
% your solution
\expanded{\writetolist[section]{}{\hfill{\bf Nicely centers TOC entry}
\hfill\FakePageNumber}}
% solution 1
\writetolist[section]{}{\hfill {\bf Nicely centers TOC entry} \hfill \llap{\FakePageNumber}}
% solution 2
\writetolist[section]{}{\hfilll bla \hfilll \llap{\FakePageNumber}}
% solution 3
\writebetweenlist[section]{\hfilll bla \hfilll \llap{\FakePageNumber}}
\section{Knuth}
\input knuth
\stoptext
</example>
Wolfgang
prev parent reply other threads:[~2006-10-30 18:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-24 11:31 Steffen Wolfrum
2006-10-24 12:55 ` Taco Hoekwater
2006-10-24 16:39 ` Steffen Wolfrum
2006-10-24 18:45 ` Wolfgang Schuster
2006-10-24 19:31 ` Peter Münster
2006-10-24 20:01 ` Wolfgang Schuster
2006-10-25 20:38 ` Hans Hagen
2006-10-25 9:02 ` Steffen Wolfrum
2006-10-30 18:56 ` Wolfgang Schuster [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=20061030195632.e3219183.schuster.wolfgang@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).