Re: [NTG-context] \setupcolors and \underbar bug?
> Am 14.01.2021 um 21:48 schrieb Henning Hraban Ramm : > > > >> Am 14.01.2021 um 16:58 schrieb Alan Bowen : >> >> The mwe >> >> \starttext >> \setupcolors[state=stop] >> {\darkred Test} >> >> \underbar{Here} >> \stoptext >> >> fails: “Here” does not appear above the underbar (which has the correct >> length). >> >> When \setupcolors[state=stop] is commented out, the file runs as it should. > > It happens also if you set rgb=no, and the result in my project is even worse: Hans, the fix you sent to Alan fixes the problem for me. Thank you! 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 ___
Re: [NTG-context] \setupcolors and \underbar bug?
> Am 14.01.2021 um 16:58 schrieb Alan Bowen : > > The mwe > > \starttext > \setupcolors[state=stop] > {\darkred Test} > > \underbar{Here} > \stoptext > > fails: “Here” does not appear above the underbar (which has the correct > length). > > When \setupcolors[state=stop] is commented out, the file runs as it should. It happens also if you set rgb=no, and the result in my project is even worse: \setupcolors[rgb=no] \starttext Liszt bat den Klavierfabrikanten darum, Dankesgrüße für den \quotation{\underbar{belorbeerten} schönen Blumenstrauss} anlässlich seines Geburtstages auszurichten. \stoptext The PDF contains only: schönen Blumenstrauss“ anlässlich seines Geburtstages auszurichten. 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 ___
Re: [NTG-context] what’s up with \setupdelimitedtext[method=font]?
> Am 14.01.2021 um 14:58 schrieb Hans Hagen : > > 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 ___
[NTG-context] \setupcolors and \underbar bug?
The mwe \starttext \setupcolors[state=stop] {\darkred Test} \underbar{Here} \stoptext fails: “Here” does not appear above the underbar (which has the correct length). When \setupcolors[state=stop] is commented out, the file runs as it should. Alan ___ 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 ___
Re: [NTG-context] what’s up with \setupdelimitedtext[method=font]?
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 ___
Re: [NTG-context] what’s up with \setupdelimitedtext[method=font]?
> Am 14.01.2021 um 10:44 schrieb Henning Hraban Ramm : > > 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 ___
[NTG-context] what’s up with \setupdelimitedtext[method=font]?
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 ___
[NTG-context] LMTX problem with \input
Another LMTX/MkIV difference: In a component, I include another file with \input, that starts with \page in the first line. With LMTX I get an error: """ I can't figure out why you would want to use a tab mark here. If some right brace up above has ended a previous alignment prematurely, you're probably due for more error messages. """ It works if I insert a blank line, and it works in MkIV. Sorry, I can’t reproduce this apparent edge case in a MWE yet. 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 ___
[NTG-context] LMTX/MkIV difference in date handling
ConTeXt ver: 2021.01.11 17:27 LMTX fmt: 2021.1.11 The following works in MkIV, but not in LMTX: \def\Jahr{\currentdate[year]} \settaggedmetadata[ rights={© \Jahr{} Me} ] \starttext \strut \stoptext The error message is: 1 \def\Jahr{\currentdate[year]} 2 3 \settaggedmetadata[ 4 >> rights={© \Jahr{} Me} 5 ] 6 7 \starttext 8 \strut 9 \stoptext 10 You've closed more groups than you opened. Such booboos are generally harmless, so keep going. 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 ___