[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

Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans Hagen via ntg-context
-book (see the MWE attached), I still do not understand why it should be needed. \starttext x \rightarrowfill x x \leftarrowfill x \stoptext works ok here Hans - Hans Hagen

Re: [NTG-context] error in column sets

2023-06-20 Thread Henning Hraban Ramm via ntg-context
Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context: In a minimal example like this: \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns]    \dorecurse{10}{\samplefile{knuth}} \stopcolumnset \stoptext … many columns start one line too

[NTG-context] error in column sets

2023-06-19 Thread Henning Hraban Ramm via ntg-context
In a minimal example like this: \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns] \dorecurse{10}{\samplefile{knuth}} \stopcolumnset \stoptext … many columns start one line too low and overwrite their last line. An extended example (nearly

[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context
upports JS to control OCGs (\overlayrollbutton in the MWE) Hraban \setupinteraction[state=start]% needed for JS \defineviewerlayer[Gebuesch][ state=stop, ] \defineviewerlayer[Versteck] \setupviewerlayer[Versteck][ % doesn’t work state=stop, ] \starttext Hier fängt der Wald an. \startviewerlaye

[NTG-context] floatcombinations seem to not work correctly after lmtx update

2023-06-19 Thread Gerion Entrup via ntg-context
] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext test sdlkf jlsdjf lksjdf \startplacefigure[title=Test] \startfloatcombination[nx=3

Re: [NTG-context] TikZ \shade broken

2023-06-17 Thread Hans Hagen via ntg-context
the TikZ manual [pp.39-41]. The first tikzpicture is the example. The second TikZ picture is similar, but without any shading. \usemodule[tikz] \starttext \starttikzpicture \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); \shade[left color=yellow,right color=black] (3,0

[NTG-context] TikZ \shade broken

2023-06-17 Thread Gavin via ntg-context
is the example. The second TikZ picture is similar, but without any shading. \usemodule[tikz] \starttext \starttikzpicture \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1); \shadedraw[inner color=yellow,outer color

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
> version no files are listed but with the static version I had no problems to > load the font. > > \definefontfamily [archimate] [ss] [Cabin] > > \setupbodyfont [archimate] > > \starttext > {\bf The quick brown fox jumped over the lazy dog} > > \input knuth > \sto

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Wolfgang Schuster via ntg-context
Hi Gerben, can you try the static version of the fonts. When I tried the variable width version no files are listed but with the static version I had no problems to load the font. \definefontfamily [archimate] [ss] [Cabin] \setupbodyfont [archimate] \starttext {\bf The quick brown fox

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
> > \setuplanguage[en][patterns={en}]\mainlanguage[en] > > \starttext > \setupindenting[none] > \setupindenting[no] > {\bf The quick brown fox jumped over the lazy dog} > > \input knuth > \stoptext > > But when compiling I get no bold text > > I installe

[NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
mibold Italic] \setupbodyfont[archimate] \setuplanguage[en][patterns={en}]\mainlanguage[en] \starttext \setupindenting[none] \setupindenting[no] {\bf The quick brown fox jumped over the lazy dog} \input knuth \stoptext But when compiling I get no bold text I installed it in LMTX and it ha

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread Thangalin via ntg-context
/keenwrite-themes/tree/main/boschet) don't "know" anything about the source document text. That's why I stated that nothing between \starttext and \stoptext may change. In effect, we don't know if the text is going to be "Kermit Ruffins" or "Yankee Doodle Dandy" or &qu

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread linguafalsa--- via ntg-context
applying it to where not otherwise. I just don't know. \setuphead[chapter][ after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt \hbox{ermit MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet me at the second line}}}, page=no, %] \starttext \startch

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
is transformed into XHTML, a specific theme instructs ConTeXt how to typeset the XHTML. Here's a video showing how theme selection works: https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14 I hope this explains the situation more clearly about why changing the code between \starttext

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread linguafalsa--- via ntg-context
On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > Thanks Otared, > > Unfortunately, that's adding content between \starttext and \stoptext, > which isn't tenable in my situation. The user is writing in Markdown, which > is automatically converted to XH

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
wrote: > Thanks Otared, > > Unfortunately, that's adding content between \starttext and \stoptext, > which isn't tenable in my situation. The user is writing in Markdown, which > is automatically converted to XHTML then passed to ConTeXt, and so the > setups need to account

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
Thanks Otared, Unfortunately, that's adding content between \starttext and \stoptext, which isn't tenable in my situation. The user is writing in Markdown, which is automatically converted to XHTML then passed to ConTeXt, and so the setups need to account for this scenario without modifying

Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans van der Meer via ntg-context
ctives[overloadmode=warning] >>> Hans >>> >> Pity. Now I get on loading the tex file: >> "csname overload > fatal error, protection level 4, control sequence 'nbsp', >> properties 'immutable', file 't-hvdm-text.tex', line 63 >> while I had hoped that f

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Otared Kavian via ntg-context
Hi, Adding \hfill\break to the short line solves the issue, but probably there is a better way to achieve the correct result. \setupinitial[n=2] \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext \chapter{one} Kermit Ruffins \hfill\break % <--- Meet me at the second l

[NTG-context] Protect the lettrine

2023-06-12 Thread Thangalin via ntg-context
I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter wherein the first letter is a lettrine. When the first paragraph is too short, the second paragraph overlaps the lettrine. % SOT \setupinitial[n=2] \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context
e frozen-mechanism seems (yet?) unimplemented? It's okay and has been around for quite a while now. \enabledirectives[overloadmode=error] \starttext \frozen\def\HOME{} \def\HOME{!} \

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