[NTG-context] Changing margins mid-page?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Oct 21 10:27:12 CEST 2008


On Tue, Oct 14, 2008 at 10:28 PM, Alexandros Frantzis
<alfius at freemail.gr> wrote:
> On Tue, Oct 14, 2008 at 08:50:20AM +0200, Wolfgang Schuster wrote:
>> On Tue, Oct 14, 2008 at 7:31 AM, Rory Molinari
>> <context at quokka70.fastmail.fm> wrote:
>> > Hi,
>> >
>> > I'm sorry that the subject isn't clearer.
>> >
>> > I'm learning ConTeXt at the moment by trying to typeset a copy of my
>> > resume.
>> >
>> > I'd like the format to be something like this (view in fixed width):
>> >
>> >
>> >
>> >                                     <Address line 1>     <phone number>
>> >                                     <Address line 2>     <email
>> > address>
>> >
>> > <MY NAME IN LARGE SIZE>
>> > ---------------------------------------------------------------------------
>> >
>> > EDUCATION               <Details>
>> >                         <of Degree 1>
>> >
>> >                         <Details>
>> >                         <of Degree 2>
>> >
>> >
>> >
>> > WORK EXPERIENCE         <Details>
>> >                         <of>
>> >                         <most>
>> >                         <recent>
>> >                         <job>
>> >                         <many lines here>
>> >
>> >
>> >                         <Details>
>> >                         <of>
>> >                         <another>
>> >                         <job>
>> >
>> >
>> >                         <Yet another job>
>> >
>> >
>> >
>> > ANOTHER SECTION         <More information>
>> >                         <appropriate for this>
>> >                         <section>
>> >
>> >
>> >
>> > My first thought was to have "EDUCATION", "WORK EXPERIENCE", etc as
>> > unnumbered sections, and to arrange that section titles would appear
>> > in a (very large) left margin.  But then I couldn't work out how to
>> > have "normal" margins for the top of the page containing my contact
>> > information and name.  Margins appear to apply to the whole document.
>> >
>
> [snip]
>
>> >
>> > What is the right way to typeset this?
>>
>> Use descriptions, it's possible to set a left margin and break the text
>> across pages.
>>
>
> Hello,
>
> 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]

\settrue\concatnextitem

> \item First item (should be right next to title)
> \item Second item
> \item Third item
> \stopitemize
>
> \stopdesc
>
> \stoptext

Wolfgang


More information about the ntg-context mailing list