From: Alexandros Frantzis <alfius@freemail.gr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Enumeration after section heading in margin
Date: Mon, 13 Oct 2008 17:29:26 +0300 [thread overview]
Message-ID: <20081013142926.GA4749@skynet> (raw)
In-Reply-To: <20081010074130.GA5005@skynet>
> Hello,
> I am trying to use ConTeXt to create my CV. I have succesfully placed the
> subject headings in the margin by using:
>
> \setuphead
> [subject]
> [alternative=text,distance=0pt,command=\MyHead]
>
> \def\MyHead#1#2{\inmargin{#1 #2}}
>
> When the text that follows the heading is a simple paragraph everything
> works as expected:
>
> Subject Text Text...
> Text Text...
>
> However when the first thing after the heading is an enumeration (or a
> table, for that matter) the enumeration is not aligned with the heading
> (it's lower than the heading):
>
> Subject
> * Item1
> * Item2
>
>
> I have tried to remove whitespace around the enumeration with the
> 'nowhite,joinedup' options but it is still not aligned.
>
> Is there a way to align the enumeration (and other non-inline objects)
> with the heading?
Any thoughts on this? I have tried examining the source to find why the
extra vertical space exists and how I can suppress it but I am still stuck...
A minimal example that shows the issue is:
------------START CODE-----------------
\def\mysubject#1#2{\inmargin{#1#2}}
\setuphead[subject][alternative=text,
after=,
command=\mysubject,
distance=0pt,
textstyle=\ss]
\starttext
\subject{Subject1}
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
\subject{Subject2}
\startitemize[packed,nowhite,joinedup]
\item First item
\item Second item
\item Third item
\stopitemize
\stoptext
--------------END CODE----------------
Thanks,
Alexandros
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2008-10-13 14:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 7:41 Alexandros Frantzis
2008-10-13 14:23 ` Alexandros Frantzis
2008-10-13 14:29 ` Alexandros Frantzis [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=20081013142926.GA4749@skynet \
--to=alfius@freemail.gr \
--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).