From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: No indentation after macro
Date: Wed, 24 Jul 2013 15:32:58 +0200 [thread overview]
Message-ID: <D7D429EA-9DE6-463D-B193-FBCDA4DFC3D3@gmail.com> (raw)
In-Reply-To: <51EFAB04.7020901@mmnetz.de>
Am 24.07.2013 um 12:23 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
> I have defined the following macro:
>
> \def\Qur[#1][#2][#3][#4]{\placeongrid{\blank[4pt]\testpage[4]
> \setupindenting[no] \startalignment[right]\setupalign[r2l]\setupinterlinespace[line=3.7ex]\amiri #1 \stopalignment
> \blank[4pt]
> {\bf #2} \wordright{\tfx (Heiliger Qur'an #3:#4)}
> \blank[3pt]}
> }
>
> How can I setup, that paragraphs after this above block will not be indented?
You can add \noindentation at the end of your code. You can also use the annotation
environment to create a new command for your text where you can set text with keys.
\usemodule[annotation]
\defineannotation
[Qur]
[alternative=Qur,
spacebefore=3pt,
paragraph=yes,
align=r2l,
%before={\testpage[4]},
indentnext=no,
%style=amari,
interlinespace=3.7ex]
\defineannotationalternative[Qur][renderingsetup=annotation:Qur,alternative=vertical]
\startsetups[annotation:Qur]
\currentannotationcontent
\blank[4pt]
{\bf\annotationparameter{one}}\wordright{\tfx (Heiliger Qur'an \annotationparameter{two}:\annotationparameter{three})}
\stopsetups
\setupindenting[yes,medium]
\starttext
\input knuth
\startQur[one=A,two=B,three=C]
\input knuth
\stopQur
\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:[~2013-07-24 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 10:23 "H. Özoguz"
2013-07-24 13:32 ` 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=D7D429EA-9DE6-463D-B193-FBCDA4DFC3D3@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).