ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <st.wolfrum@estfiles.de>
Subject: A bug in location=hanging ?
Date: Fri, 12 Mar 2004 12:56:46 +0100	[thread overview]
Message-ID: <a06002003bc7754843a95@[62.134.78.179]> (raw)

Hi,

Please have a look at the example below.

"\setuphanging[distance=0cm]" does not seem to have an effect at all.

If I set "margin=-0.0001cm" it is almost zero,
but if I set "margin=0cm" it jumps an undefined step to the right.

Why can't it be zero? Did I forget a "%" at the end of some line?


Thank you,

Steffen

******* Example:

\definelist[MyNoteList]

\setuphanging[distance=0cm]

\definedescription
   [WhatANote]
   [style=bold,margin=-0.0001cm,width=5cm,before=,after={\blank[5pt]},location=hanging]

\def\MyNoteList#1#2#3{\startWhatANote{#1}#2\stopWhatANote}

\setuplist
   [MyNoteList]
   [criterium=text,
    alternative=command,
    command=\MyNoteList]

\newcounter\MyNotes

\long\def\MyNote#1%
   {\ifhmode\unskip\fi
    \doglobal\increment\MyNotes\relax
    \high{\MyNotes}%
    \expanded{\writetolist[MyNoteList]{\MyNotes}}{#1}}

\starttext

Text

\dorecurse{2}{test \MyNote{Whow, {\it another} note \input tufte }\endgraf}

\page Text \placelist[MyNoteList][criterium=text]

Text

\stoptext

                 reply	other threads:[~2004-03-12 11:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='a06002003bc7754843a95@[62.134.78.179]' \
    --to=st.wolfrum@estfiles.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).