ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Switching to righttoleft without changing margins of delimited text
@ 2021-12-13 16:25 Denis Maier via ntg-context
  2021-12-13 16:42 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 9+ messages in thread
From: Denis Maier via ntg-context @ 2021-12-13 16:25 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier


[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]

Hi,

I have the following example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupdelimitedtext[blockquote]
                [leftmargin=1.5em,rightmargin=0em,]

\starttext

\input knuth

\startblockquote
\input knuth
\stopblockquote

\startblockquote
\righttoleft
\input knuth
\stopblockquote

\input knuth

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\righttext seems to change the locations of the margins, i.e. leftmargin becomes rightmargin and vice-versa. That may be nice in some situations, but I need to keep the margins where they are. Is there a way to do this? (Maybe \righttoleft is the wrong command?) I thought I could define a new rtlblockquote with appropriate settings, like so:

\definedelimitedtext[rtlblockquote]
\setupdelimitedtext[rtlblockquote]
                [leftmargin=0em,rightmargin=1.5em,before={\righttoleft}]

But maybe there's a better way. Any hints?

Denis





[-- Attachment #1.2: Type: text/html, Size: 4345 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-14 13:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 16:25 Switching to righttoleft without changing margins of delimited text Denis Maier via ntg-context
2021-12-13 16:42 ` Hans Hagen via ntg-context
2021-12-13 17:19   ` Denis Maier via ntg-context
2021-12-13 19:06     ` Hans Hagen via ntg-context
2021-12-13 19:27       ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-12-13 21:58         ` Hans Hagen via ntg-context
2021-12-14  9:57   ` Denis Maier via ntg-context
2021-12-14 13:09     ` Hans Hagen via ntg-context
2021-12-14 13:21       ` Denis Maier via ntg-context

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).