From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Narrower paragraphs
Date: Wed, 28 Nov 2012 11:09:26 +0100 [thread overview]
Message-ID: <163F8EA5-8402-4397-9F58-6BF81B6731F4@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1211231421520.30905@ybpnyubfg.ybpnyqbznva>
Am 23.11.2012 um 20:23 schrieb Aditya Mahajan <adityam@cim.mcgill.ca>:
>> ... I probably found it (how easy!):
>>
>> ----
>> \definestartstop
>> [Rek]
>> [before={\blank\setupnarrower[left=\parindent,right=\parindent]\startnarrower},
>> after={\stopnarrower\blank},
>> style=\em,
>> ]
>> ----
>
> (Untested, as I don't know if narrower accepts indent and style keys; if not this should serve as a feature request :))
>
> \definenarrower
> [Rek]
> [left=\parindent,
> right=\parindent,
> indenting=next,
> after={\blank},
> style=em]
Requires latest version of the module (left/right margins are reversed when you set “doublesided=yes”).
\usemodule[annotation]
\defineannotationalternative
[narrow]
[ alternative=vertical,
renderingsetup=annotation:narrow]
\startsetups[annotation:narrow]
\signalrightpage
\doifelse{\annotationparameter{doublesided}}{yes}
{\doifrightpageelse\donetrue\donefalse}
\donetrue
\ifdone
\doadaptleftskip {\annotationparameter {leftmargin}}
\doadaptrightskip{\annotationparameter{rightmargin}}
\else
\doadaptrightskip{\annotationparameter {leftmargin}}
\doadaptleftskip {\annotationparameter{rightmargin}}
\fi
\placeannotationcontent
\stopsetups
\defineannotation
[textoffset]
[alternative=narrow,
%doublesided=yes,
color=red,
style=italic,
leftmargin=1cm,
rightmargin=4cm]
\setuppagenumbering[alternative=doublesided]
\starttext
\input knuth
\starttextoffset
\input ward
\stoptextoffset
\input knuth
\starttextoffset
\input ward
\stoptextoffset
\input knuth
\starttextoffset
\input ward
\stoptextoffset
\input knuth
\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
___________________________________________________________________________________
prev parent reply other threads:[~2012-11-28 10:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-23 15:00 Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-23 15:46 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-23 19:23 ` Aditya Mahajan
2012-11-25 10:30 ` Procházka Lukáš
2012-11-28 10:09 ` Wolfgang Schuster [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=163F8EA5-8402-4397-9F58-6BF81B6731F4@gmail.com \
--to=wolfgang.schuster@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).