[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

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

2023-08-01 Thread Hans Hagen
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 Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce

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

2023-08-01 Thread Hamid,Idris
Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce any typeset output but in lmtx it does

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Henning Hraban Ramm
Am 30.07.23 um 21:22 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuff

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Jacob Kauffmann via ntg-context
It comes from framedtext: \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext[strut=no]{\typebuffer[option=tex]} \stoptext Best, Jacob > Am 30.07.2023 um 21:14 schrieb Henning Hraban Ramm : > > Yet another issue: > > \typebuffer always starts wi

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=t

[NTG-context] empty line before typebuffer

2023-07-30 Thread Henning Hraban Ramm
Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=t

[NTG-context] caption for moved sidefloat in the margin

2023-07-30 Thread Henning Hraban Ramm
tmargindistance=-\rightmargintotal, default={inner,none,low,high}, ] \setupcaption[marginfigure][ style={\ss\tfx}, align={flushleft}, width=\leftmarginwidth, %location={innermargin,low}, ] \starttext \showframe \startplacemarginfigure[ location={inner,3*hang}, title={My caption shou

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
[MyCode] [option=tex, numbering=file] \definebuffer [MyBuffer] [category=MyCode] \setuptyping [MyBuffer] [option=TEX, numbering=file] % \setuptyping % [buffer] % [option=TEX, %numbering=file] \startMyBuffer \fakewords{10}{20} \stopMyBuffer \starttext \startMyCode

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Bruce Horrocks
"" > \usemodule[visual] > > \definetyping[MyCode] > > \setuptyping[MyCode][ > option=tex, > numbering=file, > ] > > \definebuffer[MyBuffer] > > \startMyBuffer > \fakewords{10}{20} > \stopMyBuffer > > \starttext > > \startMyCode &g

[NTG-context] combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
er \fakewords{10}{20} \stopMyBuffer \starttext \startMyCode \fakeword \stopMyCode \getMyBuffer \typeMyBuffer \stoptext """ Hraban ___ If your question is of interest to others as well, please add an

[NTG-context] Re: Par Builder Tests

2023-07-28 Thread Keith McKay
stspacingstretch  50     next     classes  \indecentparpassclasses     threshold    0.025pt     adjustspacing  3     adjustspacingstep  1     adjustspacingshrink   50     adjustspacingstretch 100     \relax \stopsetups \setupalignpas

[NTG-context] Key distance with enumeration

2023-07-27 Thread Fabrice Couvreur
=Définition, number=yes, style=italic] \defineenumeration [theorem] [text=Théorème, number=yes, style=italic] \starttext \startdefinition Un polynôme est une application de R dans R somme d'un nombre fini de monômes. \stopdefinition \starttheorem La forme réduite

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
ng, since I forgot enabling interaction in the main PDF document to generate the targets (or named destinations). \setupinteraction[state=start, focus=standard] \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext The first line was missing yesterday. After that (

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

2023-07-27 Thread denis.maier
] One Two Three \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext %% Von: denis.ma...@unibe.ch Gesendet: Montag, 24. Juli 2023 15:57 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: xml: matches always child of other element

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
reference (save it as main.tex): \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext You have the file that reads the references from main.tuc and generates the inter-document links: \setupinteraction[state=start] \starttext Links to each chapter using

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

2023-07-24 Thread denis.maier
Second 4 Third 5 6 7 \stopbuffer \starttext \xmlprocessbuffer{test

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

2023-07-24 Thread denis.maier
2 3 Second 1 Third 1 \stopbuffer \starttext \xmlprocessbuffer{test}{test

[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
age \normalexpanded {\global \beforepage \emptytoks \expand \beforepage }\inpagebodytrue \pagebodymode \plusone \page_boxes_constructed_page_body #1#2 \normalexpand ... ... \stoptext 1 >> \version[temporary] 2 3 \starttext 4 \input{tufte} 5 \stoptext 6 A number should have bee

[NTG-context] Re: Fira Math: goodies needed?

2023-07-23 Thread Leah Neukirchen
rizontal axis, >> i.e. the 0 is far away from the integral sign: >> >> >> \definefontfamily [mainface] [mm] [Fira Math] >> \setupbodyfont[mainface] >> >> \starttext >> \startformula >> \int_0^1 e^x >> \stopformula >&g

[NTG-context] Re: Fira Math: goodies needed?

2023-07-22 Thread Mikael Sundqvist
t; > > \definefontfamily [mainface] [mm] [Fira Math] > \setupbodyfont[mainface] > > \starttext > \startformula > \int_0^1 e^x > \stopformula > \stoptext > > > Meanwhile, when I use LaTeX, the 0 is moved to the left and close to > the integral sign: > >

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
If that could be what you might need, here is a sample. First you have the destination file: \setupinteraction[state=start, focus=standard, prefix=n_,] \starttext \dorecurse{50} {a\footnote{b} } \startluacode luatex.wrapup( function() os.rename(tex.jobname ..

[NTG-context] Fira Math: goodies needed?

2023-07-21 Thread Leah Neukirchen
Hi, I'm trying to use Fira Math (https://github.com/firamath/firamath). But this small example yields both limits on the same horizontal axis, i.e. the 0 is far away from the integral sign: \definefontfamily [mainface] [mm] [Fira Math] \setupbodyfont[mainface] \starttext \startformula

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Keith McKay
    adjustspacingstep  1     adjustspacingshrink   50     adjustspacingstretch 100     \relax \stopsetups \setupalignpass[test4] \starttext     ... \stoptext (work in progress so keep an eye on updates) Hans

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen via ntg-context
[test4] \starttext ... \stoptext (work in progress so keep an eye on updates) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
] %\setupalignpass[decent] %\setupalignpass[quality] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start

[NTG-context] Fwd: Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans Hagen via ntg-context
thinking that it has something to do with the percent characters... This here works just fine: \startluacode function test(s) result = string.gsub(s, 'x20', 'MATCH') context(result) end \stopluacode \define[1]\test{\ctxlua{test("#1")}} \starttext \test{asdfx20} % -> asdfMA

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start] \setcounter[userpage][1] %\showmakeup

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
ot;#1")}} \starttext \test{asdfx20} % -> asdfMATCH \stoptext But this here won't: \startluacode function test(s) result = string.gsub(s, '%%20', 'MATCH') context(result) end \stopluacode \define[1]\test{\ctxlua{test("#1")}} \starttext \test{asdf%20} % -> does not work \stoptex

[NTG-context] Re: Suppress label in captions without suppressing number

2023-07-20 Thread Hans Hagen
? \definefloat[NLfigure][figure] \setuplabeltext[en][NLfigure=] \starttext \samplefile{ward} \startplacefigure[title={oeps}] \stopplacefigure \samplefile{tufte} \startplaceNLfigure[title={oeps}] \stopplaceNLfigure \samplefile{tufte} \stoptext

[NTG-context] Link from a PDF to a reference of an embedded PDF

2023-07-20 Thread Gerion Entrup
nk to them within the main context document? In [2], I found something maybe related but it requires a tuc file. Example: inner.tex: ``` \starttext \startsection[title=References, reference=sec:ref] Some text \placeformula[eq:foo] \startformula 1 + 2 = 3 \stopformula or: \startitemize[n]

[NTG-context] Re: Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread skrantajanneman
It does not highlight e.g \starttext keyword by default. The colorscheme seems adapted to LaTeX mode so I managed to fix this now for all \start - \stop commands with this code put in ~/.emacs.d/init.el (add-hook ’ConTeXt-mode-hook (lambda () (font-lock-add-keywords nil

[NTG-context] Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread Jan-Erik Hägglöf
-lock-add-keywords nil '(("\\(starttext\\)\\>" 1 font-lock-warning-face t) ("\\(stoptext\\)\\>" 1 font-lock-warning-face t) and it seems to highlight the start-stop text keyword. So my q

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
gt; > fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; > \stopuseMPgraphic > > \defineoverlay[Waves][\useMPgraphic{Waves}] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[page][background={Waves}] > > \starttext > > \dorecurse{10}{\recur

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
= (0,10)---(70,10)...(60,0)---(10,0)...cycle; fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; \stopuseMPgraphic \defineoverlay[Waves][\useMPgraphic{Waves}] \setupbackgrounds[state=repeat] \setupbackgrounds[page][background={Waves}] \starttext \dorecurse{10}{\recurs

[NTG-context] Re: Ukrainian hyphenation?

2023-07-19 Thread Hans Hagen
=style:oblique, force=yes, rscale=1.0] \definefontfamily [archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
[archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки). Наприклад `Металургійний комбінат'.}}\\ \setuplanguage[ua

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Gerben Wierda
t;> warnings/errors? >>> you can read the text vertically: >>> >>> [tf=syle >>> >>> and when you get that it's likely that this is typeste before \starttext >>> when no font has been loaded (you then probably get some unexpected >>> whi

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Wolfgang Schuster
: [...] I' can't really see anything wrong with the result, What are these warnings/errors? you can read the text vertically: [tf=syle and when you get that it's likely that this is typeste before \starttext when no font has been loaded (you then probably get some unexpected whitespa

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Gerben Wierda
context/tex/context/base/mkiv/lpdf-pdx.xml' >> pages > flushing realpage 1, userpage 1, subpage 1 >> luatex warning > pdfe lib: lua expected >> luatex warning > pdfe lib: lua expected >> luatex warning > pdfe lib: lua expected >> luatex warn

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Hans Hagen
age 1, subpage 1 luatex warning > pdfe lib: lua expected luatex warning > pdfe lib: lua expected luatex warning > pdfe lib: lua expected luatex warning > pdfe lib: lua expected I' can't really see anything wrong with the result, What are these warnings/errors? you can read the

[NTG-context] problem with symbols in index

2023-07-17 Thread Henning Hraban Ramm
ged), so the wrong entry stuck in there, and my code changes didn’t affect it. MWE: \starttext %\index{\%} \index[ ]{\backslash} \index[ ]{\percent} \index[ ]{\tex{}} \index[ ]{\tex{}\tex{}} \index[ ]{\tex{\%}} \page \completeindex \stoptext For my command index, \index[something]{\tex{

[NTG-context] Re: Text item groups

2023-07-16 Thread Pablo Rodriguez
m getting your point right). Complete sample that worked for me: \setupindenting[yes,medium] \starttext \startitemize[a,intext] [left=(, right=), stopper=, alignsymbol=yes, indenting={yes,medium}] \startitem \input{jojomayer}\stopitem \startitem \input{jojomayer}\stopitem \startit

[NTG-context] Re: Text item groups

2023-07-16 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 15.07.2023 um 21:46: Hi, list! I want to know how to make numbers in text item groups run along with text (for instance, wrt indentation) regardless of their position in text. In the following example: \setupindenting[yes,medium] \starttext \startitemize[a,text

[NTG-context] Re: Text item groups

2023-07-16 Thread Bruce Horrocks
I'm not quite sure what you mean by "run along with text". If you mean "keep in the same paragraph" then just remove the blank lines from your example, e.g. \setupindenting[yes,medium] \starttext \startitemize[a,text][textdistance=none] \startitem \input{jojomayer}\stopit

[NTG-context] Text item groups

2023-07-15 Thread Jairo A. del Rio
Hi, list! I want to know how to make numbers in text item groups run along with text (for instance, wrt indentation) regardless of their position in text. In the following example: \setupindenting[yes,medium] \starttext \startitemize[a,text][textdistance=none] \startitem \input{jojomayer

[NTG-context] digitally sign fields with MuPDF-GL

2023-07-13 Thread Pablo Rodriguez
Dear list, having the following sample code: \setuppapersize[A4, landscape] \setuplayout[page] \setupinteraction[state=start] \starttext \setupfield[sl][horizontal] [frame=off, width=\textwidth, height=\textheight] \definefield[x][signature][sl] \field[x] I also attach

[NTG-context] Fatal error using \enabletrackers[paragraphs.passes=summary]

2023-07-11 Thread Keith McKay
ode: 1 Here is the MWE: \enabletrackers[paragraphs.passes=summary] \setupalignpass[optional1] \starttext \dorecurse{10}{ \input ward \input knuth \input darwin } \stoptext %%% Using the latest version: ConTeXt ver: 2023.07.09 19:38 LMTX fmt: 2023.7.

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
On 7/10/2023 5:51 PM, Rik Kabel wrote: The following code now fails. It works as expected under 2023.05.05 as found in the texlive.net runner.    \defineparagraphs[TwoCols][n=2]    \setupparagraphs[TwoCols][2][\width=.5\textwidth]    \starttext    \input knuth \par    \startTwoCols

[NTG-context] Re: new upload

2023-07-10 Thread Rik Kabel
The following code now fails. It works as expected under 2023.05.05 as found in the texlive.net runner. \defineparagraphs[TwoCols][n=2] \setupparagraphs[TwoCols][2][\width=.5\textwidth] \starttext \input knuth \par \startTwoCols \input knuth \par \nextTwoCols \input

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - vz.pdf Description: Adobe PDF document \starttext \startbuffer[vz-1] \starttext \showframe[text] \enabletrackers

[NTG-context] Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
text = "\bf\strut #1", %style = "bold", color = "white", ] yshifted (BodyFontSize*2/3); % TODO \stopMPcode \stoptexdefinition \starttext % this is OK \startMPcode draw lmt_outline [ text = "\bf\strut The quick brown fox jumps over the lazy dog.&

[NTG-context] Re: context-on-web broken

2023-07-08 Thread Mikael Sundqvist
context --synctex=1 --result=output %S; cp output.log > > > /compile/output.log;cp output.pdf /compile/output.pdf"; > > > $recorder=0; > > > $pdf_mode=1; > > I found back this link: > > > > https://davidcarlisle.github.io/latexcgi/testc > > > > >

[NTG-context] Re: context-on-web broken

2023-07-07 Thread Aditya Mahajan
.pdf"; > > $recorder=0; > > $pdf_mode=1; > I found back this link: > > https://davidcarlisle.github.io/latexcgi/testc > > > % !TEX mtxrun --script context > > \starttext > > \dorecurse{500}{\samplefile{tufte}\par} > > \stoptext > > Runs 113

[NTG-context] Re: text width shadow background

2023-07-06 Thread Henning Hraban Ramm
color = "white", ] yshifted (steps*rulesize); \stopMPcode \stoptexdefinition \starttext \MyCaption{Eine wunderschöne Bildunterschrift} \MyCaption{Ein ganz anderer Text} \stoptext """ Hraban

[NTG-context] text width shadow background

2023-07-06 Thread Henning Hraban Ramm
rulethickness = (step*rulesize), ]; endfor; \stopMPcode \stoptexdefinition \starttext \MyCaption{Eine wunderschöne Bildunterschrift} \stoptext """ Remaining problems: * lmt_outline doesn’t understan

[NTG-context] Re: MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm
, and for random value reasons I must load it only once. But the MWE already shows the problem.) """ \startMPcode numeric something; something := 1; \stopMPcode \starttext \chapter{Something} Anything. \stoptext """ \startMPinitializations % used by ALL MP inst

[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
.org/2000/svg;> \stopbuffer \starttext \startTEXpage \includesvgbuffer[gradient] \stopTEXpage \startMPpage fill unitsquare xyscaled (200,100) withshademethod "linear" withs

[NTG-context] Re: MPcode inserts page

2023-07-06 Thread Alan Braslau via ntg-context
. But the MWE already shows the problem.) """ \startMPcode numeric something; something := 1; \stopMPcode \starttext \chapter{Something} Anything. \stoptext """ \startMPinitializations % used by ALL MP instances % also called repeatedly \stopMPinitia

[NTG-context] MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm
t; \startMPcode numeric something; something := 1; \stopMPcode \starttext \chapter{Something} Anything. \stoptext """ Hraban ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\

2023-07-05 Thread Carlos
idaSansOblique] > [features=default] > \definefontsynonym[LucidaSansSansBold] [LucidaSansDemiBold] > [features=default] > \stoptypescript > > \starttypescript [mylucidaserif] > \definetypeface [mylucidaserif][rm] [serif] [mylucidaserif][default] > \definetyp

[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\

2023-07-05 Thread Carlos
[mylucidaserif][ss] [sans] [mylucidasans][default] \stoptypescript \setupbodyfont[mylucidaserif] %\setupbodyfont[mylucidasans] %\setupbodyfont[14pt] \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

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
After erasing the font cache and regenerating LM was doing it right again. Helvetica did not, but maybe I made a mistake in \definefontfamily [helvetica] [ss] [Helvetica] [tf=style:Regular, bf=style:Bold, it=style:Oblique, bi=style:Bold Oblique] \starttext {\rm The quick brown

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
=repeat] \setupbackgrounds[footer][text][background=Blocks] \starttext \dorecurse{10}{\recurselevel\page} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] MP setup for a progress bar

2023-07-04 Thread Henning Hraban Ramm
tsquare xysized (800 * RealPageNumber/NOfPages, 50) withcolor blue; \stopuseMPgraphic \defineoverlay[Blocks][\useMPgraphic{Blocks}] \setupbackgrounds[footer][background={Blocks}] \starttext \dorecurse{10}{\recurselevel\page} \stopt

Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Bruce Horrocks via ntg-context
> On 27 Jun 2023, at 09:56, Denis Maier via ntg-context > wrote: > > Hi, > is it possible to override the defined orienatation for a given cell ? \starttext \starttabulate[|l|c|r|] \NC this and that \NC left and right \NC here and there \NC \NR \NC such and so \NC \rotate[

[NTG-context] Problem with bibliography in apa

2023-06-27 Thread Marcelo Chaparro via ntg-context
n-existent. -- The source code is: \usebtxdataset[biblio.bib] \usebtxdefinitions[apa] \starttext \startchapter[title={A Chapter}] A text \cite[book1]. And \cite[book2] \stopchapter \startchapter[title=Bibliography] \placelistofpu

Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Ok, if you use p for the column definition you can just use \setupalign on individual cells... %%% \starttext \starttabulate[|pA{verytolerant,extremestretch}|pA{verytolerant,extremestretch}|] \NC Heading flushleft \NC \setupalign[flushright] Heading flushright \NC \NR \NC \input

[NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Hi, is it possible to override the defined orienatation for a given cell ? Take this example from the wiki: %% \starttext \starttabulate[|l|c|r|] \NC this and that \NC left and right \NC here and there \NC \NR \NC such and so \NC up and down \NC on and on \NC \NR

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Miguel Diaz via ntg-context
t; > $pdf_mode=1; > I found back this link: > > https://davidcarlisle.github.io/latexcgi/testc > > > % !TEX mtxrun --script context > > \starttext > > \dorecurse{500}{\samplefile{tufte}\par} > > \stoptext > > Runs 113 pages in 1.13 sec so

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context
="context --synctex=1 --result=output %S; cp output.log /compile/output.log;cp output.pdf /compile/output.pdf"; $recorder=0; $pdf_mode=1; I found back this link: https://davidcarlisle.github.io/latexcgi/testc % !TEX mtxrun --script context \starttext \dorecurse{500}{\samplefile{

Re: [NTG-context] Protect the lettrine

2023-06-25 Thread Thangalin via ntg-context
, but with the addition of an indenting setup: % SOT \setupinitial[n=2, continue=yes] \setupindenting[medium, yes] \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext \chapter{one} Kermit Ruffins Meet me at the second line. \chapter{two} \input knuth Meet me at the second line. \stoptext

Re: [NTG-context] new version

2023-06-23 Thread Marcus Vinicius Mesquita via ntg-context
? > No, it's an independent feature of the linebreak mechanism. You can run > this and see how it kicks in > > \starttext > > \definecolor[ttest][a=1,t=.5] > \definecolor[rtest][a=1,t=.5,r=1] > > \dostepwiserecurse{80}{120}{1}{ > \startTEXpage[of

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
On Fri, Jun 23, 2023 at 01:38:23PM +0200, Hans Hagen via ntg-context wrote: > On 6/23/2023 12:43 PM, Carlos via ntg-context wrote: > > On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context > > wrote: > > > \starttext > > > x \ri

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
On 6/23/2023 12:43 PM, Carlos via ntg-context wrote: On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context wrote: \starttext x \rightarrowfill x x \leftarrowfill x hbox to 5cm: y\hbox to5cm{\rightarrowfill}y y\hbox to5cm{\leftarrowfill}y \stoptext

Re: [NTG-context] new version

2023-06-23 Thread Hans Hagen via ntg-context
On 6/23/2023 11:54 AM, Marcus Vinicius Mesquita via ntg-context wrote: Should then \setupalign[granular] be used before defining font features? No, it's an independent feature of the linebreak mechanism. You can run this and see how it kicks in \starttext \definecolor[ttest][a=1,t=.5

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context wrote: > \starttext >x \rightarrowfill x > >x \leftarrowfill x > > hbox to 5cm: > >y\hbox to5cm{\rightarrowfill}y > >y\hbox to5cm{\leftarrowfill}y > \stoptext > &

Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans Hagen via ntg-context
On 6/22/2023 3:32 PM, Hans van der Meer via ntg-context wrote: \starttext x \rightarrowfill x x \leftarrowfill x hbox to 5cm: y\hbox to5cm{\rightarrowfill}y y\hbox to5cm{\leftarrowfill}y \stoptext But obviously not in an dimensioned \hbox, whereas Knuth's version does

Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans van der Meer via ntg-context
\starttext   x \rightarrowfill x   x \leftarrowfill xhbox to 5cm:   y\hbox to5cm{\rightarrowfill}y   y\hbox to5cm{\leftarrowfill}y\stoptextBut obviously not in an dimensioned \hbox, whereas Knuth's version does that too. On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context wrote:   x

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