[NTG-context] Better option for a macro with lots of arguments

2023-08-22 Thread Andres Conrado Montoya
\stopsubsection \startsubsection[title={MLA}] #7 \stopsubsection \stopsection } \starttext % Then I call the macro like this: \metadatos{spanish abstract \input knuth}{some, comma, separated, keywords, in, spanish}{english abstract \input knuth}{same, comma, separated, keywords, in, english}{Apa

[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster
=no] \starttext \startsection[title=Section] \startsubject [title=Subject] \stopsubject \stopsection \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
ic expression, it is sometimes interesting to cross out > terms. With LaTeX, there is the \cancel command from the package cancel. Is > there an equivalent with conTeXt ? > > Thanks > > Fabrice > > I don't know what the cancel package gives, but since December 22 or > so, on

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
] [a,two] [ margin=2cm, before={\blank[overlay,-depth]}, after={\blank[nowhite]}, stopper=) ] %\showboxes \autofences \starttext \samplefile{ward} \startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}] \startitem \startalextable \startitem \m{6(x

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Mikael Sundqvist
ce I don't know what the cancel package gives, but since December 22 or so, one can do \starttext \setupframed [mathstrikeout] [color=darkgreen, backgroundcolor=darkred, frame=off] \startTEXpage[offset=4dk,align=flushleft] \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} \blank

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
Hi Mikael, That looks very attractive. However, with the following code, I end up with a large gap above the first row. \defineitemgroup[alex] \setupitemgroup  [alex]  [each]  [a,two]  [  margin=2cm,  before=\blank[overlay,-depth],  stopper=)  ] \showboxes \autofences \starttext \samplefile

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
m $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung , a écrit : > > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context
ntents, using what is recommended at https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break However, it does not work. Here's a MWE: \definelistextra[page][before=\page] \starttext \starttitle[title={Table of contents}] \placecontent[extras={2=page}] \stoptitle \startchapter[title=

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Andres Conrado Montoya
d at > https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break > > However, it does not work. Here's a MWE: > > \definelistextra[page][before=\page] > \starttext > \starttitle[title={Table of contents}] > \placecontent[extras={2=page}] > \stoptitle > \startcha

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
, a écrit : > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% >   \startitemize[a,horizontal,four][stopper=\)] >     \startitem >       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >     \stopitem >     \startitem >       $-3(x - \dfrac{1}{3})^

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is recommended at https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break However, it does not work. Here's a MWE: \definelistextra[page][before=\page] \starttext \starttitle[title={Table of contents}] \placecontent

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
I'd do it this way: \starttext \startitemize[n][style=\bf] \item\vtop{% \startitemize[a,horizontal,four][stopper=\)] \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem \startitem $7(x

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
Dear ConTeXt users, Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. Here's a MWE \starttext \startitemize[n][style=\bf] \item \godown[-\lineheight] \startitemize

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
}\par \stopxmlsetups \starttext \xmlprocessbuffer {mysetup}{xmlcontent}{} \stoptext Am 21.08.2023 um 17:45 schrieb Thomas A. Schmitz: Have you looked at chapter 3.10 "Testing" of the manual xml-mkiv.pdf? There are a lot of commands there that should help you, such as \xmldoiftext {#

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Carlos
> So I suggest you to save those keystrokes for other tasks. Not those, > > > > petty petty betty. I know it's hard to teach an ol' dog new tricks, > > > > but… it's worth to try! right? > > > > > > Please explain why this example (which is a valid ConTeXt document) work

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-21 Thread Keith McKay
.0/lib/libzint.dylib libzint.so 3) Then $ cd ~ $ mtxrun --generate 4) and the sample file \usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stoptext produced a barcode. — Bruce Horrocks Hampshi

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread Hans Hagen
\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p|] \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
t; \startsetups[mypenalties] > > \setdefaultpenalties > > \setpenalties\clubpenalties{1}{150} > > \setpenalties\widowpenalties{1}{1} > > \setpenalties\displaywidowpenalties{1}{1} > > \stopsetups > > > > \setuplayout[setups=mypenaltie

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-20 Thread Bruce Horrocks
y $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint $ ln -s /usr/local/Cellar/zint/2.12.0/lib/libzint.dylib libzint.so 3) Then $ cd ~ $ mtxrun --generate 4) and the sample file \usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm]

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen via ntg-context
Carlos, > On 8/20/2023 6:41 PM, Wolfgang Schuster wrote: And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why \starttext is necessar And watch how \startTEXpage is defined. It clearly explains why that works without. Also watch how \

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen
betty. I know it's hard to teach an ol' dog new tricks, but… it's worth to try! right? Please explain why this example (which is a valid ConTeXt document) works Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
betty. I know it's hard to teach an ol' dog new tricks, but… it's worth to try! right? Please explain why this example (which is a valid ConTeXt document) works Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Carlos
t; > > > So I suggest you to save those keystrokes for other tasks. Not those, > > petty petty betty. I know it's hard to teach an ol' dog new tricks, > > but… it's worth to try! right? > > Please explain why this example (which is a valid ConTeXt document) works >

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
this example (which is a valid ConTeXt document) works begin example \starttext \starttext \stoptext \stoptext end example but this doesn't. begin example \starttext \starttext end example Wolfgang

[NTG-context] backend not forcing 1000 width units on fonts; em size must be applied or else fails

2023-08-20 Thread Carlos
end with any font other than latin modern > > Here > > \setupbodyfont[stixtwo] > > > \setuplayout[width=16cm] > \showmakeup > > \starttext > > Thus, I came to the conclusion that the designer of a new > system must not only be the implementer and

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
styles that have the smcp feature, but I don't like having to redefine a system command. So the questions are: 1) Is there a recommended\better way to get \sc to work across all styles? \setupbodyfont[pagella] \starttext \tf Upright, \it Italic, \bf Bold and \bi Bolditalic \style[style

[NTG-context] Re: hyphenation inside quotation

2023-08-19 Thread Wolfgang Schuster
hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used. \mainlanguage [de] \setuppapersize [A6] \setupquotation[method=text] \starttext „Originalgenie“ „Originalgenie“ „Originalgenie“ \quotation

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Wolfgang Schuster
\sc{\addff{smallcaps}} This works for all styles that have the smcp feature, but I don't like having to redefine a system command. So the questions are: 1) Is there a recommended\better way to get \sc to work across all styles? \setupbodyfont[pagella] \starttext \tf Upright, \it Italic

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-19 Thread Mikael Sundqvist
th any font other than latin modern Here \setupbodyfont[stixtwo] \setuplayout[width=16cm] \showmakeup \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. \

[NTG-context] hyphenation inside quotation

2023-08-19 Thread Thomas A. Schmitz
Hi, is this a limitation or a bug? Text inside \quotation{} is not hyphenated. It appears to be like this for a couple of versions, but I'm not sure if it has always been the case. Silly example to test: \mainlanguage [de] \setuppapersize [A6] \setupbodyfont [14pt] \starttext

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
=normal, number=no, ] \starttext \startdefinition{\cite[righttext={{ p.\nbsp 1}}, alternative=theorem][burago2022course]} This is something \stopdefinition \startsubject[title={References}] \placelistofpublications \startsubject \stoptext The problem with this is that the citation

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-19 Thread Carlos
I sent prior to your message? > 2. The example below results in a correct output for \TEX. > Not in my end with any font other than latin modern > \setuplayout[width=16cm] > \showmakeup > > \starttext > > Thus, I came to the conclusion that the designer of a new >

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
the table together piece by piece with the collecting mechanism which collect parts of the table until you flush the whole collection at the end with the \stopcollecting command. \starttext \bTABLE \startcollecting \startcollect \bTABLEbody \stopcollect \startcollect \bTR \bTD Cell 1\eTD \bTD

[NTG-context] unsubscribe

2023-08-18 Thread Thomas Floeren via ntg-context
;> consistency. And this ought not to be an ‹either› ‹or› scenario. But >>> rather, an and conjunctional construct. It fails both ways. >> >> Consistency of what? Spacing? Where? Can you make a complete example? >> (You can show space amount with \showmakup[spa

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Wolfgang Schuster
Hi, 1. Learn to two provide a working minimal example which shows the problem. 2. The example below results in a correct output for \TEX. \setuplayout[width=16cm] \showmakeup \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
isplays: .SP:10.945 If rather than for example with: .SP:5.235 OnceSP:3.926 theSP:3.926 initial SP:3.926 designSP:3.926 is and :3.586 THK:-1.853 H__E X HK:-1.390 SP:3.586 sig­RH:0.000 IR:0.000 RS:0.000 LH:0.000 H__nificantlyLS:0.000BS:6.565 and here's your example: \setupl

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
commands, like \bTABLEhead, \eTABLEhead, bTABLEbody or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \eTABLE

[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \eTABLE \stoptext Can anybody suggest a workaround

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
\startsetups[mypenalties] \setdefaultpenalties \setpenalties\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
\startsetups[mypenalties] \setdefaultpenalties \setpenalties\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
\setpenalties\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p|] \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
persize[A7] \setbreakpoints[compound] \starttext \startlines[style=mono] 1. Thisisthetruth:waste-not-want-not 2. Thisisthetruth:waste/not/want/not 3. Thisisthetruth:waste+not+want+not 4. Thisisthetruth:waste(not(want(not)) 5. Thisisthetruth(waste)not)want)not \stoplines \stoptext

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
persize[A7] \setbreakpoints[compound] \starttext \startlines[style=mono] 1. Thisisthetruth:waste-not-want-not 2. Thisisthetruth:waste/not/want/not 3. Thisisthetruth:waste+not+want+not 4. Thisisthetruth:waste(not(want(not)) 5. Thisisthetruth(waste)not)want)not \stoplines \stoptext

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray
Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? Below is my test code. Thanks, Alex * * * \setuppapersize[A7] \setbreakpoints[compound] \starttext 1. This is

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-17 Thread Vincent Hennebert
s to be an inconsistency in the design size selection: \setupbodyfont[modern-designsize,12pt] \starttext This text is typeset in LMRoman12.\par {\tfa This text should be typeset in LMRoman12 but LMRoman10 is being used instead.} \stoptext If I understand the font selection

[NTG-context] Vebatim text: Preserve empty lines

2023-08-16 Thread Alex Leray
Hello, is there a way to preserve empty lines in typing env? By default it is removing them. Thanks * * * \definetyping[custom] \setuptyping[custom][ space=normal, lines=yes, tab=4, ] \starttext \startcustom Foo Bar Baz \stopcustom \stoptext

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Aditya Mahajan
re should allow optional arguments. The following works correctly for me with ver 2023.07.18: \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture[scale=0.75] % recipient \draw (0,0) -- (0,10) -- (2,10) -- (2,0) -- cycle; % aigua \filldra

[NTG-context] Re: new align option

2023-08-16 Thread Hraban Ramm
explain? Hraban Am 15.08.23 um 22:31 schrieb Hans Hagen via ntg-context: Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Xavier B.
gt; > problem to several "wrong" files. > > One was trivialy fixed because I did not close one environment, but other > > don't. Please help: > > 1. You need \starttext and \stoptext at the begin and end of your > example file. > > 2. You forgot

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 00:12: Thanks. After some work on it, following your advice, I reduce the compilation problem to several "wrong" files. One was trivialy fixed because I did not close one environment, but other don't. Please help: 1. You need \starttext and

[NTG-context] new align option

2023-08-15 Thread Hans Hagen via ntg-context
Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote: > [...] > A different approach is to use \dontleavehmode In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Hans Hagen via ntg-context
. There is probably a reason for this to happen, but how to avoid it ? .Floris [MWE] \starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx=3, ny=5] \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Pablo Rodriguez
al error: return code: 1" is a error message from the console), it might be a started command not closed, such as in: \starttext \startitemize \item a \stoptext Just in case it might help, Pablo __

[NTG-context] [ odd spacing ]

2023-08-15 Thread vm via ntg-context
Placing identical images in a n x m grid shows extra space every two rows. Also the vertical and horizontal spaces are different. There is probably a reason for this to happen, but how to avoid it ? .Floris [MWE] \starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Mikael Sundqvist
> \environment ng-entorn-minimal.conTeXt > \environment ng-entorn-taules.conTeXt > \environment ng-entorn-teoria.conTeXt > \environment ng-entorn-colors.conTeXt > > % bibliografia > \usebtxdataset[default][ng-bibliografia.bib] > \setupbtx[dataset=default] > \usebtxdef

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
[default][ng-bibliografia.bib] \setupbtx[dataset=default] \usebtxdefinitions[aps] % el text \starttext \startfrontmatter \input ng-pre-portada.conTeXt \input ng-pre-llicencia.conTeXt \input ng-pre-informacio-document.conTeXt \completecontent \stopfrontmatter \startbodymatter \startpart[title

[NTG-context] Re: Very strange error:

2023-08-14 Thread Wolfgang Schuster
Xavier B. schrieb am 15.08.2023 um 00:03: Now     - \startexercici[]{}  --> \startexercici[reference=...,title=...] with LMTX this \startitemize \sym{\in[REFERENCE]} \stopitemize does not work. You have to provide a example for the error because it works for me. \startt

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Am Montag, 14. August 2023, 13:44:44 CEST schrieb Mikael Sundqvist: > Hi, > > I do not understand what you want to have, so here is just something > weird, but probably you look for simplealign. > > \definemathsimplealign > [whatever] > > \starttext > \startformu

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Am Montag, 14. August 2023, 13:33:33 CEST schrieb Hans Hagen: > On 8/14/2023 1:16 PM, Gerion Entrup wrote: > > Hi, > > > > I try to typeset a nested align in a formula. However, the results looks > > really wrong. Here is a MWE: > > > > ``` > > \st

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Mikael Sundqvist
Hi, I do not understand what you want to have, so here is just something weird, but probably you look for simplealign. \definemathsimplealign [whatever] \starttext \startformula \startalign \NC a = \NC (b, c) \quad \mtext{with}\NR \NC \NC \startwhatever \NC b \NC = something \NR \NC c \NC

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Hans Hagen
On 8/14/2023 1:16 PM, Gerion Entrup wrote: Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign

[NTG-context] Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC

[NTG-context] side-by-side paragraphs broken?

2023-08-13 Thread Thomas A. Schmitz
] [2] [rulethickness=2mm,rulecolor=gray,rule=on,tolerance={stretch,verytolerant}] \starttext \startHalf \input ward \nextHalf \input knuth \stopHalf \stoptext ___ If your question is of interest to others as well

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Xavier B.
The font is the default: \setupbodyfont [modern, 12pt] % modern o cmr, 11pt I use Linux (arch derivative). Xavier On Fri, 11 Aug 2023 21:38:00 +0200 "Xavier B." ha escrit: > If you run > > \starttext > > Lorem ipsum dolor sit amet, consectetur adipiscing elit,

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
current}}{data-title}% \blank[big]% \setMPtext{concurrent}{\xmlatt{\getvariable{div}{concurrent}}{data-title}} \startTextConcurrentFrame}, after={\stopTextConcurrentFrame\blank[big]}, ] \starttext \xmlprocessbuffer{main}{demo}{}\stoptext % EOT If I change the following

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
current}}{data-title}} \startTextConcurrentFrame}, after={\stopTextConcurrentFrame\blank[big]}, ] \starttext \xmlprocessbuffer{main}{demo}{}\stoptext % EOT If I change the following line: legend := \MPstring{concurrent}; to: legend := "some string"; Then the title "some

[NTG-context] Re: Why overbar is so big

2023-08-11 Thread Thangalin
Looks fine to me. Current version: 2023.08.10 02:59 Running on Linux. What fonts are you using? On Fri, Aug 11, 2023 at 12:38 PM Xavier B. wrote: > If you run > > \starttext > > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt u

[NTG-context] Why overbar is so big

2023-08-11 Thread Xavier B.
If you run \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit

[NTG-context] Re: How to override parts of a typescript

2023-08-11 Thread Hans Hagen
] \definefontsynonym [SerifBoldItalic] [file:SourceSerif4-BoldIt] [features=default] \stoptypescript \setupbodyfont[source] \starttext I want this text to be typeset in Adobe Source Serif. \stoptext Then I get what I want. The question is: can I move the \start

[NTG-context] How to override parts of a typescript

2023-08-11 Thread Vincent Hennebert
-BoldIt] [features=default] \stoptypescript \setupbodyfont[source] \starttext I want this text to be typeset in Adobe Source Serif. \stoptext Then I get what I want. The question is: can I move the \start/stoptypescript code into its own typescript file that would somehow

[NTG-context] Re: upload

2023-08-11 Thread Hans Hagen
On 8/11/2023 3:31 AM, Thangalin wrote: Did arguments regress in 2023.08.10 02:59? $ cat u.tex \starttext Feisty arguments \stoptext $ context u.tex $ ls -la *.pdf -rw-r--r-- 1 username username 6279 Aug 10 18:28 u.pdf $ context --arguments=x=y u.tex | grep error tex error > tex er

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
Did arguments regress in 2023.08.10 02:59? $ cat u.tex \starttext Feisty arguments \stoptext $ context u.tex $ ls -la *.pdf -rw-r--r-- 1 username username 6279 Aug 10 18:28 u.pdf $ context --arguments=x=y u.tex | grep error tex error > tex error on line 13 in file :

[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
mlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startxmlsetups xml:index-entry-term-3 % works \expanded{\indexentry{\xmlflush{#1}}} \indexentry{\xmlflush{#1}} \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startbuffer[test] One Two Three \stopbuffer

[NTG-context] Re: upload

2023-08-10 Thread Wolfgang Schuster
Hans Hagen via ntg-context schrieb am 10.08.2023 um 16:41: On 8/10/2023 3:52 PM, Wolfgang Schuster wrote: Henning Hraban Ramm schrieb am 10.08.2023 um 15:33: I was already on the latest, and the problem persists. Here’s a MWE: """ \setupreferencing[left=,right=,] \starttext \

[NTG-context] Re: upload

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 3:52 PM, Wolfgang Schuster wrote: Henning Hraban Ramm schrieb am 10.08.2023 um 15:33: I was already on the latest, and the problem persists. Here’s a MWE: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ It's unre

[NTG-context] Re: upload

2023-08-10 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 10.08.2023 um 15:33: I was already on the latest, and the problem persists. Here’s a MWE: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ It's unrelated to \about. Using nothing as argument to t

[NTG-context] Re: upload

2023-08-10 Thread Henning Hraban Ramm
: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ tex error > tex error on line 5 in file referencetest.tex: Extra }, or forgotten \endgroup \egroup \about ...ways \let \\\space \postponenotes \referencingparameter \c!left \d

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
: \namedstartstopparameter{concurrent}{title} \blank \stopxmlsetups \definestartstop [concurrent] [before=\startsection[title={TITLE: \namedstartstopparameter{concurrent}{title}}], after=\stopsection]% \starttext \xmlprocessbuffer{main}{demo}{} \stoptext

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
}]\xmlflush{#1}\stop \stopxmlsetups \definestartstop[concurrent][    before={TITLE: \xmlatt{\getvariable {div} {concurrent} {title}}}, ] \starttext    \xmlprocessbuffer{main}{demo}{} \stoptext % EOT It doesn't look like the variables are taking, regardless of whether {title} or {data-title

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
\definestartstop[concurrent][ before={TITLE: \xmlatt{\getvariable {div} {concurrent} {title}}}, ] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext % EOT It doesn't look like the variables are taking, regardless of whether {title} or {data-title} are used. \startxmlsetups xml:div

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
{\getvariable {div} {concurrent} {title}}}, ] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext % EOT It doesn't look like the variables are taking, regardless of whether {title} or {data-title} are used. On Thu, Aug 10, 2023 at 12:44 AM Hans Hagen wrote: > On 8/10/2023 9:10 AM, Thanga

[NTG-context] Re: upload

2023-08-09 Thread Rik Kabel
are not displayed. \setuppagenumbering [alternative=doublesided,location=] \setupcaption[style=sans,headstyle=sans] \starttext \startchapter[title={Page Numbering Test}] \startplacetable[location={here,spit,force},title={Title?}] \starttabulate[|rp|lp|] \HL \NC tufte \NC \input tufte

[NTG-context] upload

2023-08-09 Thread Hans Hagen
Hi, I uploaded a new lmtx. There are some new features that wil be revealed in the future (likely after the meeting) but here is one: \starttext \defineoverlay [test] [\color [blue] {TEST \inframed [foregroundcolor=red] {xxx

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread Hans Hagen via ntg-context
k,v in ipairs(results) do io.write(v..'\n') end -- closes the open file io.close(output_file) end -- Run main(arg[1], arg[2]) Ok, a little lua lesson, if you don't mind. xxx.tex \enabletrackers[hyphenation.applied] \starttext \input tufte \stoptext xxx.tmp --

[NTG-context] Parallel columns using start/stop setups

2023-08-08 Thread Thangalin
after=\stopcolumns, ] \definestartstop[timelinea][ after=\column, ] \definestartstop[timelineb][] \starttext \startconcurrent \starttimelinea \dorecurse{5}{\input ward} \stoptimelinea \starttimelineb \dorecurse{5}{\input knuth} \stoptimelineb \stopconcur

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Marcus Vinicius Mesquita
right. > You can try this: > > \starttext > > \protected\def\ProofOfConcept#1#2% >{{#1\llap{\effect[hidden]{#2 > > test test \ProofOfConcept{föö}{foo} test > > \stoptext > > but forget about hyphenation (actualtext probably also doesn't alway

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Hans Hagen
On 8/7/2023 8:58 PM, Marcus Vinicius Mesquita wrote: @ Ulrike: This is what my client wants, and the client is always right. You can try this: \starttext \protected\def\ProofOfConcept#1#2% {{#1\llap{\effect[hidden]{#2 test test \ProofOfConcept{föö}{foo} test \stoptext but forget

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Marcus Vinicius Mesquita
passes > > okular: passes > > qpdfview: passes > > evince: passes > > Thank you for researching! I’ll include this in my viewer matrix. (But > probably not before the ConTeXt meeting.) > > > But \pdfbackendactualtext is actually just what I needed si

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Henning Hraban Ramm
for other things like: \starttext what a \pdfbackendactualtext{\hyphenatedword{wonderful}}{wonderful} text \stoptext I’m not sure but I’d guess ActualText is also suitable for alternative texts (AltText) of images? Wouldn’t it make sense to have an alttext key in \externalfigure for accessibility (PDF

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Marcus Vinicius Mesquita
: passes qpdfview: passes evince: passes But \pdfbackendactualtext is actually just what I needed since it can be used also for other things like: \starttext what a \pdfbackendactualtext{\hyphenatedword{wonderful}}{wonderful} text \stoptext Best regards Marcus Vinicius On Mon, Aug 7, 2023 at 3:13 AM

[NTG-context] Re: How to make words searchable without diacritics

2023-08-07 Thread Henning Hraban Ramm
Am 06.08.23 um 20:37 schrieb Pablo Rodriguez: Hans provides this jewel in back-imp-pdf.mkxl and back-pdf.mkiv (adapter for your needs): \starttext text \pdfbackendactualtext{whatever you want}{filia} text \stoptext In any case, the PDF viewer used to search must have ActualText

[NTG-context] Re: How to make words searchable without diacritics

2023-08-06 Thread Pablo Rodriguez
That way, you could find literally “whatever you want” (being "filia" its ActualText). Hans provides this jewel in back-imp-pdf.mkxl and back-pdf.mkiv (adapter for your needs): \starttext text \pdfbackendactualtext{whatever you want}{filia} text \stoptext That being said, I think

[NTG-context] Typing with text wrapping

2023-08-05 Thread Alex Leray
age, portrait] \definehead[poem][section] \setuphead[poem][] \definetyping[CUSTOM] \setuptyping[CUSTOM][escape={[[,]]}] \starttext \showgrid \startpoem[title={My title}][] \startCUSTOM[] \stopCUSTOM \stoppoem \stoptext ``` Tha

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem \stoptext ``` I get the following traceback: ``` tex error   > tex error on line 6 in file /home/ali/work/being_human/test.tex: ! Undefined control seque

[NTG-context] Re: \phrasetext issue with language uk. Was: Ukrainian hyphenation?

2023-08-05 Thread Gerben Wierda
yle:oblique, > force=yes, > rscale=1.0] > \definefontfamily [archimate] [ss] [Helvetica] > \setupbodyfont[archimate] > > \definelabelclass[phrase] > \setupphrasetext[en][sheettitle={ArchiMate® 3.2 Metamodel -- Core}] > \setupphrasetext[ru][sheettitle={Ядро метамодели ArchiMate® 3.2}]

[NTG-context] \phrasetext issue with language uk. Was: Ukrainian hyphenation?

2023-08-05 Thread Gerben Wierda
ArchiMate® 3.2}] \setupphrasetext[ua][sheettitle={Основні елементи метамоделі ArchiMate® 3.2}] \starttext \setuplanguage[uk][patterns={uk}]\mainlanguage[uk] \phrasetext{sheettitle} \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] \phrasetext{sheettitle} \setuplanguage[uk][patterns={uk}]\mainlanguag

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem

[NTG-context] Using

2023-08-04 Thread Alex Leray
Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-02 Thread Hamid,Idris
On Aug 1, 2023, 10:09 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/1/2023 4:18 PM, Hamid,Idris wrote: Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter

<    5   6   7   8   9   10   11   12   13   14   >