* what’s up with \setupdelimitedtext[method=font]?
@ 2021-01-14 9:44 Henning Hraban Ramm
2021-01-14 9:50 ` Henning Hraban Ramm
2021-01-14 13:58 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2021-01-14 9:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi again,
the following example used to work with LMTX (but not MkIV) from September.
Now I get the "narrower" indentation only if I comment the first line (in both versions) – apparently there’s a setup conflict, and I don’t know any more why I needed this setup.
Could you explain what it does (did, should do)?
Hraban
\setupdelimitedtext[quotation][method=font] % hanging quotation marks
%\setupalign[hanging]
\setupnarrower[left=2em,right=1.5em]
\definenarrower[Zitat]
\setupnarrower[Zitat]
[left=2em,
right=1.5em,
before=\dontleavehmode\hskip-0.33em\startquotation,
% fake hanging quotation mark
after=\stopquotation]
\usemodule[visual]
\starttext
\fakewords{50}{50}
\startquotation
quotation \fakewords{100}{100}
\stopquotation\footnote{about quotation}
\startZitat
Zitat \fakewords{100}{100}
\stopZitat\footnote{about Zitat}
\stoptext
___________________________________________________________________________________
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] 4+ messages in thread
* Re: what’s up with \setupdelimitedtext[method=font]?
2021-01-14 9:44 what’s up with \setupdelimitedtext[method=font]? Henning Hraban Ramm
@ 2021-01-14 9:50 ` Henning Hraban Ramm
2021-01-14 13:58 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2021-01-14 9:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 14.01.2021 um 10:44 schrieb Henning Hraban Ramm <texml@fiee.net>:
>
> Hi again,
> the following example used to work with LMTX (but not MkIV) from September.
>
> Now I get the "narrower" indentation only if I comment the first line (in both versions) – apparently there’s a setup conflict, and I don’t know any more why I needed this setup.
>
> Could you explain what it does (did, should do)?
>
> Hraban
>
>
> \setupdelimitedtext[quotation][method=font] % hanging quotation marks
> %\setupalign[hanging]
> \setupnarrower[left=2em,right=1.5em]
>
> \definenarrower[Zitat]
> \setupnarrower[Zitat]
> [left=2em,
> right=1.5em,
> before=\dontleavehmode\hskip-0.33em\startquotation,
> % fake hanging quotation mark
> after=\stopquotation]
>
> \usemodule[visual]
>
> \starttext
>
> \fakewords{50}{50}
>
> \startquotation
> quotation \fakewords{100}{100}
> \stopquotation\footnote{about quotation}
>
> \startZitat
> Zitat \fakewords{100}{100}
> \stopZitat\footnote{about Zitat}
>
> \stoptext
Ah, I recognized the problem again:
I need the footnote marker at the closing quotation mark. \setupdelimitedtext... does that, but kills the indent. Without the setup, I get the indent, but the footnote marker moves to the next line.
And there’s a problem with MkIV (--luatex): TeX stops with **, after entering \end, I get the PDF, so something’s unclosed.
Hraban
___________________________________________________________________________________
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] 4+ messages in thread
* Re: what’s up with \setupdelimitedtext[method=font]?
2021-01-14 9:44 what’s up with \setupdelimitedtext[method=font]? Henning Hraban Ramm
2021-01-14 9:50 ` Henning Hraban Ramm
@ 2021-01-14 13:58 ` Hans Hagen
2021-01-14 20:33 ` Henning Hraban Ramm
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2021-01-14 13:58 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
On 1/14/2021 10:44 AM, Henning Hraban Ramm wrote:
> Hi again,
> the following example used to work with LMTX (but not MkIV) from September.
>
> Now I get the "narrower" indentation only if I comment the first line (in both versions) – apparently there’s a setup conflict, and I don’t know any more why I needed this setup.
>
> Could you explain what it does (did, should do)?
>
> Hraban
>
>
> \setupdelimitedtext[quotation][method=font] % hanging quotation marks
> %\setupalign[hanging]
> \setupnarrower[left=2em,right=1.5em]
>
> \definenarrower[Zitat]
> \setupnarrower[Zitat]
> [left=2em,
> right=1.5em,
> before=\dontleavehmode\hskip-0.33em\startquotation,
> % fake hanging quotation mark
> after=\stopquotation]
>
> \usemodule[visual]
>
> \starttext
>
> \fakewords{50}{50}
>
> \startquotation
> quotation \fakewords{100}{100}
> \stopquotation\footnote{about quotation}
>
> \startZitat
> Zitat \fakewords{100}{100}
> \stopZitat\footnote{about Zitat}
>
> \stoptext
can you test with (in cont-new.mkxl)
\def\spac_narrower_start_apply#1%
{\narrowerparameter\c!before
\global\s_spac_narrower_left \zeropoint
\global\s_spac_narrower_right \zeropoint
\global\s_spac_narrower_middle\zeropoint
\edef\askednarrower{#1}%
\ifx\askednarrower\v!reverse
\ifconditional\s_spac_narrower_last_swap
\frozen\leftskip \s_spac_narrower_right_last
\frozen\rightskip\s_spac_narrower_left_last
\setfalse\s_spac_narrower_last_swap
\else
\frozen\leftskip \s_spac_narrower_left_last
\frozen\rightskip\s_spac_narrower_right_last
\settrue\s_spac_narrower_last_swap
\fi
\else
\normalexpanded{\processcommalistwithparameters[\askednarrower]}\spac_narrower_initialize
\frozen\advance\leftskip \dimexpr\s_spac_narrower_left
+\s_spac_narrower_middle\relax
\frozen\advance\rightskip\dimexpr\s_spac_narrower_right+\s_spac_narrower_middle\relax
\fi
\seteffectivehsize}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
* Re: what’s up with \setupdelimitedtext[method=font]?
2021-01-14 13:58 ` Hans Hagen
@ 2021-01-14 20:33 ` Henning Hraban Ramm
0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2021-01-14 20:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 14.01.2021 um 14:58 schrieb Hans Hagen <j.hagen@xs4all.nl>:
>
> can you test with (in cont-new.mkxl)
>
> \def\spac_narrower_start_apply#1%
> {\narrowerparameter\c!before
> \global\s_spac_narrower_left \zeropoint
> \global\s_spac_narrower_right \zeropoint
> \global\s_spac_narrower_middle\zeropoint
> \edef\askednarrower{#1}%
> \ifx\askednarrower\v!reverse
> \ifconditional\s_spac_narrower_last_swap
> \frozen\leftskip \s_spac_narrower_right_last
> \frozen\rightskip\s_spac_narrower_left_last
> \setfalse\s_spac_narrower_last_swap
> \else
> \frozen\leftskip \s_spac_narrower_left_last
> \frozen\rightskip\s_spac_narrower_right_last
> \settrue\s_spac_narrower_last_swap
> \fi
> \else
> \normalexpanded{\processcommalistwithparameters[\askednarrower]}\spac_narrower_initialize
> \frozen\advance\leftskip \dimexpr\s_spac_narrower_left +\s_spac_narrower_middle\relax
> \frozen\advance\rightskip\dimexpr\s_spac_narrower_right+\s_spac_narrower_middle\relax
> \fi
> \seteffectivehsize}
>
Yes, that works with LMTX, thank you!
MkIV still fails, but cont-new.mkxl is LMTX only, I guess?
Hraban
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2021-01-14 20:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 9:44 what’s up with \setupdelimitedtext[method=font]? Henning Hraban Ramm
2021-01-14 9:50 ` Henning Hraban Ramm
2021-01-14 13:58 ` Hans Hagen
2021-01-14 20:33 ` Henning Hraban Ramm
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).