ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Changing margins mid-page?
Date: Thu, 16 Oct 2008 09:17:01 +0200	[thread overview]
Message-ID: <115224fb0810160017g7f750728s6bd0959ff03b1724@mail.gmail.com> (raw)
In-Reply-To: <20081014202855.GA497@skynet>

On Tue, Oct 14, 2008 at 10:28 PM, Alexandros Frantzis
<alfius@freemail.gr> wrote:
>
> I, too, am trying to create a similar CV layout. As I have already
> reported in other emails to the list, I have been having trouble when
> the first thing after the title is an enumeration. More specifically,
> the first item of the enumeration is not aligned with the title in the
> margin (it is always placed a bit below). Unfortunately, this still
> happens when using descriptions.
>
> A way around this is to use something like \setupitemize[before=\vskip -20pt].
> But this is specific to the font sizes I am using and a bit ugly. I have tried
> suppressing the whitespace around itemizations (nowhite, joinedup) and/or using
> stuff like \blank[disable] and \blank[back] but to no avail.
>
> Does anyone know of a better, more generic way of doing this or even if
> it is possible (judging from the lack of answers to my previous posts I
> am guessing this is not something trivial)?
>
> Thanks,
> Alexandros
>
> ------------------- START CODE ------------------------
> \definedescription[desc][location=inmargin,width=broad]
>
> \starttext
>
> \startdesc{Description1}
> This is the text of desc1.
> This is the text of desc1.
> This is the text of desc1.
> This is the text of desc1.
> This is the text of desc1.
> This is the text of desc1.
> This is the text of desc1.
> \stopdesc
>
> \startdesc{Description2}
>
> \startitemize[packed,nowhite,joinedup]
> \item First item (should be right next to title)
> \item Second item
> \item Third item
> \stopitemize
>
> \stopdesc

\startdesc{Description2}
%
\quad\startitemize[text,packed,nowhite,joinedup]
\item First item (should be right next to title)\par
\item Second item\par
\item Third item
\stopitemize

\stopdesc

> \stoptext
> -------------------- END CODE ------------------------

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2008-10-16  7:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14  5:31 Rory Molinari
2008-10-14  6:50 ` Wolfgang Schuster
2008-10-14 14:59   ` Rory Molinari
2008-10-14 20:28   ` Alexandros Frantzis
2008-10-15 19:13     ` Roars
2008-10-16  7:17     ` Wolfgang Schuster [this message]
2008-10-21  8:27     ` 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=115224fb0810160017g7f750728s6bd0959ff03b1724@mail.gmail.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).