From: "Procházka Lukáš" <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Narrower paragraphs
Date: Sun, 25 Nov 2012 11:30:15 +0100 [thread overview]
Message-ID: <op.wobrgppfdk1lar@lk-2008-nbk> (raw)
In-Reply-To: <alpine.LNX.2.02.1211231421520.30905@ybpnyubfg.ybpnyqbznva>
[-- Attachment #1: Type: text/plain, Size: 981 bytes --]
On Fri, 23 Nov 2012 20:23:44 +0100, Aditya Mahajan <adityam@cim.mcgill.ca> wrote:
>> ... 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]
>
>
> Aditya
Thanks Aditya,
it works excluding the "style" key, so the font change must be performed in the "before" scope:
----
\definenarrower
[Rek]
[left=\parindent,
right=\parindent,
indenting=next,
before=\blank\bf,
after=\blank,
style=em,
]
\starttext
\input tufte
\startRek
\input knuth
\stopRek
\input tufte
\stoptext
----
Best regards,
Lukas
[-- Attachment #2: t-Nar.mkiv --]
[-- Type: application/octet-stream, Size: 248 bytes --]
\definenarrower
[Rek]
[left=\parindent,
right=\parindent,
indenting=next,
before=\blank\bf,
after=\blank,
style=em,
]
\starttext
\input tufte
\startRek
\input knuth
\stopRek
\input tufte
\stoptext
[-- Attachment #3: t-Nar.pdf --]
[-- Type: application/pdf, Size: 14967 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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:[~2012-11-25 10:30 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áš [this message]
2012-11-28 10:09 ` 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=op.wobrgppfdk1lar@lk-2008-nbk \
--to=lpr@pontex.cz \
--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).