From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setupinmargin, setupmargindata ; page numbers ; fonts
Date: Tue, 25 Nov 2014 17:00:37 +0100 [thread overview]
Message-ID: <5A2775C5-5B4E-4E15-A41A-6D235AF19C9C@gmail.com> (raw)
In-Reply-To: <loom.20141125T093102-950@post.gmane.org>
> Am 25.11.2014 um 10:14 schrieb Richard Sherman <rss.pdx@gmail.com>:
>
> Wolfgang Schuster <schuster.wolfgang <at> gmail.com> writes:
>
> ...
>> \setuppagenumbering[style=\ttc]
>>
>> \setuplayout[backspace=4cm]
>>
>> \showframe
>>
>> \setupmarginframed[inmargin][align=flushleft]
>> \setupmargindata [inmargin][style={\switchtobodyfont[ss,18]}]
>>
>> % Faster method to switch the font for \inmargin
>> %\definefont[InmarginStyle][Sans at 18pt]
>> %\setupmargindata[inmargin][style=InmarginStyle]
>>
>> \starttext
>>
>> \dorecurse{10}
>> {\inmargin{Ward}
>> \input ward\par
>> \inmargin[][align=flushleft]{Knuth}
>> \input knuth\par
>> \inmargin[][align=flushright]{Tufte}
>> \input tufte\par
>> \inmargin[][align=middle]{Zapf}
>> \input zapf\par}
>>
>> \stoptext
>
> ---
>
> Thank you, this is beginning to look good.
>
> Your first method, uncommented, does not work for me. I get an error at
> the first occurrence of \inmargin.
The first line is a comment which says
\definefont[InmarginStyle][Sans at 18pt]
\setupmargindata[inmargin][style=InmarginStyle]
takes less time to change the font than
\setupmargindata[inmargin][style={\switchtobodyfont[ss,18]}]
but you won’t notice the difference unless your document has thousands of pages
and even then you will notice it only will large fonts (e.g. chinese fonts).
> Using the method you commented out, I get what I want. I'm a little
> perplexed at why I can't include align=flushleft as in \setupmargindata[inmargin]
> [style=InMarginStyle, align=flushleft]. I'm unable to find any reference
> to \setupmarginframed via Google.
>
> Using \setuppagenumbering[style=\rmx, location={header, inmargin}, align=right],
> I'm able to get close to what I want, though 'align=right' has no effect.
The command has no align option but you can use the command key to use a alignment command.
\setuppagenumbering
[location={header,inmargin},
alternative=doublesided,
command={\alignedline{outer}{right}}] % command=\doalignline{outer}
\showframe
\starttext
\dorecurse{20}{\input knuth\par}
\stoptext
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2014-11-25 16:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 2:47 Richard Sherman
2014-11-25 5:35 ` Wolfgang Schuster
2014-11-25 9:14 ` Richard Sherman
2014-11-25 16:00 ` Wolfgang Schuster [this message]
2014-11-26 1:39 ` Richard Sherman
2014-11-26 6:01 ` 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=5A2775C5-5B4E-4E15-A41A-6D235AF19C9C@gmail.com \
--to=schuster.wolfgang@gmail.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).