[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Wolfgang Schuster
\glyphyscale \glyphslant \glyphweight directly can have side efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant  500 test \glyphslant \numericscaled2.0

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Hans Hagen via ntg-context
efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant 500 test \glyphslant \numericscaled2.0\glyphslant test} test test {\glyphweight 100 test \glyphweight

[NTG-context] Re: How to set section title based on section content?

2024-03-09 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 09.03.2024 um 16:01: How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-09 Thread Wolfgang Schuster
n when you switch back to the upright style. \enableexperiments[fonts.compact] \definefontfamily[mainface][rm][TeX Gyre Termes] [it={style:regular, features:{default,slanted}}, sl={style:regular, features:{default,slanted}}] \setupbodyfont[mainface] \starttext \tf h\showcurrentfont[]\

[NTG-context] How to set section title based on section content?

2024-03-09 Thread Joel via ntg-context
How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth } \stopsection \stoptext The event macro runs a bunch

[NTG-context] weird character normalization in the wiki

2024-03-09 Thread Pablo Rodriguez via ntg-context
normalization on the way]): \definefontfamily[mainface][rm][EBGaramond] \setupbodyfont[mainface, 500pt] \definecolor [tred] [r=1,t=.5,a=1] \definecolor [tblue] [b=1,t=.25,a=1] \starttext \startTEXpage[offset=1ex] \startoverlay {\color[tred]{Ά}} {\color[tblue]{Ά}} \stopoverlay

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Wolfgang Schuster
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Pablo Rodriguez via ntg-context
: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d\\ \stopTEXpage \stoptext LMTX gets b, c and d in slanted form. LuaTeX gets only

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
in principle all the setups and definitions must be before the body of your document which begns with \starttext. Another point i sthat instead of using \par you can leave a blank line, which makes the document more readable. And you don’t need to break the lines by « hand », since ConTeXt does

[NTG-context] Re: Log entries about confusing level change

2024-03-08 Thread Hans Hagen
nge at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
d they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [title=front1]   \samplefil

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-07 Thread Wolfgang Schuster
a final \relax to stop the command from scanning to additional values, e.g. in the example below \testone takes value beyond the argument because \numexpr hasn't ended yet. \starttext \def\testone#1{\the\numexpr #1 + 1 } \testone{1} + 1 \def\testtwo#1{\the\numexpr #1 + 1 \relax} \testtwo{1

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
tugboat:article:start \starttext \setups{tugboat:columns:presets} \setups{tugboat:banner:setup:\getvariable{tugboat}{type}} \setupheadertexts [\setups{tugboat:banner:text:article}] [pagenumber] \setuppagenumber [number=\getvariable{tugboat}{page

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
in th elow level manual and also explain this: \starttext     \ifnum  10  = 11 wrong \else okay  \fi     \ifnum  10 != 11 okay  \else wrong \fi     \ifnum  10 !> 11 okay  \else wrong \fi     \ifnum  10 !< 11 wrong \else okay  \fi     \ifnum  10 ≤  11 okay  \else wrong \fi     \ifnum  10

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Hans Hagen
this: \starttext \ifnum 10 = 11 wrong \else okay \fi \ifnum 10 != 11 okay \else wrong \fi \ifnum 10 !> 11 okay \else wrong \fi \ifnum 10 !< 11 wrong \else okay \fi \ifnum 10 ≤ 11 okay \else wrong \fi \ifnum 10 ≥ 11 wrong \else okay \fi \ifnum 10 ≰ 1

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
e. Many thanks for your reply, Wolfgang. Now I have the minimal sample: \startbuffer[demo] author text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{\xmldocument} {(div|section)[@id='h

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
ction(n) context(n + ((n % 4 == 0) and 1 or (5 - n % 4))) end } \stopluacode \unprotect \def\beforequadruplenumber#1{\clf_beforequadruplenumber\numexpr#1\relax} \def\afterquadruplenumber #1{\clf_afterquadruplenumber \numexpr#1\relax} \protect \starttext \dorecurse{20}{\recurselevel\space = \beforequ

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par {\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aus-\par sage h(m, f) sei ”m ist

[NTG-context] Re: \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm
: 2024.02.22 18:31 LMTX fmt: 2024.2.22). Can someone try on MkIV? """ \usesymbols[nav] \starttext \showsymbolset[nav] \stoptext """ You pass the wrong name to \showsymbolset. \usesymbols[nav] \starttext \showsymbolset[navigation 1]\page \showsymbolset[navigation 2]\

[NTG-context] Re: \showsymbolset is noop

2024-03-05 Thread Wolfgang Schuster
try on MkIV? """ \usesymbols[nav] \starttext \showsymbolset[nav] \stoptext """ You pass the wrong name to \showsymbolset. \usesymbols[nav] \starttext \showsymbolset[navigation 1]\page \showsymbolset[navigation 2]\page \showsymbolset[navigatio

[NTG-context] \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm
The \showsymbolset has no output any more, apparently already for some time. I checked on COW (ConTeXt ver: 2022.12.22 22:17 LMTX fmt: 2022.12.23) and my local installation (ConTeXt ver: 2024.02.22 18:31 LMTX fmt: 2024.2.22). Can someone try on MkIV? """ \usesymbols[

[NTG-context] enhancing documentation: initials

2024-03-05 Thread Henning Hraban Ramm
; includes the mark in the initial, and it works only with a few languages, e.g. English and French, but not e.g. German or Dutch: """ \mainlanguage[de] \setuppapersize[A6] \setupinitial[n=2,color=orange,] \starttext \start \setupinitial[method=first] \placeinitial \quotation{Keine andere

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
] Re: Local alternative to \input With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment

[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread Hans Hagen via ntg-context
On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em

[NTG-context] Re: Local alternative to \input

2024-03-03 Thread Jeroen
With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment \startenvironment bbb \samplefile

[NTG-context] missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
Dear list, this issue has been bugging me for some time: \startbuffer[demo] author title text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{code|meta|text}{xml:*} \stopxmlsetups \xmlregistersetup

[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
into the margins as expected. \starttext \ruledhbox{a \ruby{x}{y} b} \stoptext In my previous mail, I wrote wrong amounts of lines. They should be 46 lines on one page, while the actual example doesn't show the 46th line. It would be important to identify the reason why only 24 characters are used

[NTG-context] issues scaling glyphs of Twemoji Mozilla

2024-03-02 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a} \scale[width=30em]{\cg } \stoptext Using current latest from both

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
, 2016 — La reproduction de ce texte est soumise à autorisation.] \defineparagraphs[TwoColumns][n=2, align={hz, hanging}] \setupparagraphs[TwoColumns][1][width=210pt, style=rm, align=left] \starttext \title{\ConTeXt, ou comment imprimer des langues non-romanes} \section {\sc Préambule} L

[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Ursula Hermann
style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1}, \st

[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Mikael Sundqvist
Hi Uschi, Your coding style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \impl

[NTG-context] Re: Japanese

2024-02-29 Thread Jeong Dal via ntg-context
mily[JapaneseFont][ss][Noto Serif JP] > >>[ it={style:regular,features:{*,slanted}}, > >>sl={style:regular,features:{*,slanted}}, > >>bi={style:bold,features:{*,slanted}},force=yes] > >> > >> \definefontfamily[JapaneseFont][tt][Noto Serif JP]

[NTG-context] Re: Structuring a magazine or booklet

2024-02-29 Thread Jean-Pierre Delange
://wiki.contextgarden.net/Imposition I'll read and test it. Hi Jean-Pierre, in its simplest form, a booklet may be: \setuppapersize[A4][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Just in case

[NTG-context] Re: \in, \at, and labletext

2024-02-29 Thread Ursula Hermann
Dear List, So I changed my sentence a little bit, now it works perfect, as I wanted it. \setupinteraction[state=start] \starttext \reference[Rule:1]{Rule (3.1)} Formulate equivalents according to rule (\goto {3.1} [Rule:1]). \stoptext Uschi Von: Ursula

[NTG-context] Re: Japanese

2024-02-28 Thread Emanuel Han via ntg-context
P] > >> [ it={style:regular,features:{*,slanted}}, > >> sl={style:regular,features:{*,slanted}}, > >> bi={style:bold,features:{*,slanted}},force=yes] > >> > >> \definefontfamily[JapaneseFont][math][Tex Gyre Termes Math] > >> %\definefont

[NTG-context] Re: Japanese

2024-02-28 Thread Jean-Pierre Delange
] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared Thanks all contributors, I added this to https://wiki.contextgarden.net/Chinese_Japanese_and_Korean I guess you also should set \mainlanguage[ja], I added it, also \mainlanguage[kr

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Wolfgang Schuster
I will try to find a trick for that, but not now. Replying to myself, this is a command to compute next numbers before and after quadruples (with application to \realpageno): \starttext \def\beforequadruplenumber#1% {\ifnum\modulonumber{4}{#1} = 1 \the\numexpr #1 + 2 \or

[NTG-context] Re: Structuring a magazine or booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Just in case it might help, Pablo ___ If your question is of int

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
that, but not now. Replying to myself, this is a command to compute next numbers before and after quadruples (with application to \realpageno): \starttext \def\beforequadruplenumber#1% {\ifnum\modulonumber{4}{#1} = 1 \the\numexpr #1 + 2 \orelse\ifnum\modulonumber{4}{#1} = 2 \the

[NTG-context] Re: Japanese

2024-02-28 Thread Henning Hraban Ramm
[JapaneseFont,12pt] \setupruby[location=top,voffset=-2ex] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared Thanks all contributors, I added this to https://wiki.contextgarden.net/Chinese_Japanese_and_Korean I guess you also should set

[NTG-context] Re: \in, \at, and labletext

2024-02-28 Thread Pablo Rodriguez via ntg-context
rem][text=Theorem, alternative=right] \starttext \starttheorem[was-noch] This theorem has one paragraph. \stoptheorem \theorem[whatever] This theorem has other paragraph. In \in{theorem}[whatever] on \at{page}[was-noch]. \stoptext

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 11:56, Bruce Horrocks wrote: > [...] > The sample works for me if you set plain A4 and doublesided, thus: > > \setuppagenumbering[alternative={doublesided}] > \starttext > \samplefile{lorem} > \page[quadruple] > page before the quadruple (must be 3, not 4)

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Bruce Horrocks
> On 27 Feb 2024, at 10:13, Pablo Rodriguez via ntg-context > wrote: > > I’m afraid I cannot make your sample work: The sample works for me if you set plain A4 and doublesided, thus: \setuppagenumbering[alternative={doublesided}] \starttext \samplefile{lorem} \page[quad

[NTG-context] Re: \mfunction does not work with the latest upload

2024-02-28 Thread fv leung
the limits to go always below, never below or below in > display, respectively. > > /Mikael > > On Wed, Feb 28, 2024 at 1:26 AM fv leung wrote: > > > > > > \starttext > > % copy from wiki > > \definemathcommand[lcd][nolop]{\mfunction{lcd}} > &g

[NTG-context] Re: Japanese

2024-02-27 Thread Otared Kavian
] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared > On 27 Feb 2024, at 13:55, Jeong Dal via ntg-context > wrote: > > Dear Otared, > > I am using Korean as main language. > I used use typescript file, but recently I use \defi

[NTG-context] Re: \mfunction does not work with the latest upload

2024-02-27 Thread Mikael Sundqvist
Hi, \definemathfunction [lcd] You can also add [mathlimits=yes] [mathlimits=no] [mathlimits=auto] if you want the limits to go always below, never below or below in display, respectively. /Mikael On Wed, Feb 28, 2024 at 1:26 AM fv leung wrote: > > > \starttext > % co

[NTG-context] \mfunction does not work with the latest upload

2024-02-27 Thread fv leung
\starttext % copy from wiki \definemathcommand[lcd][nolop]{\mfunction{lcd}} With \contextversion, the math command \tex{lcd} gives \m{\lcd} (nothing)! \stoptext ___ If your question is of interest to others as well

[NTG-context] \getdocumentfilename or document.files

2024-02-27 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (saved as "a.tex"): \starttext \getdocumentfilename{1} \cldcontext{document.files[1]} \getdocumentfilename{2} \cldcontext{document.files[2]} \getdocumentfilename{3} \cldcontext{document.files[3]} \stoptext I compile it with:

[NTG-context] Re: Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/27/24 10:10, Ursula Hermann wrote: >[...] > I have a question to my paragraphs: > > \definetextbackground[Paragaph][ > [...] >   \startparagraph Hi Uschi, if you define Paragaph, then you should use \startParagaph (and \stopParagaph). > \starttext Even if that work

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-27 Thread Pablo Rodriguez via ntg-context
a solution for this. I’m afraid I cannot make your sample work: \setuppapersize[A5][A4, landscape] \setuparranging[2UP] \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \samplefile{lorem} \page[quadruple] page before the quadruple (must be 3, not 4) \page[yes, quadru

[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \startparagraph \starttext Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
] \setupbodyfont[JapaneseFont,14pt] \setupruby[location=top,voffset=-1.6ex] \setupwhitespace[big] \starttext \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext %end simple-japanese.tex Best regards: Otared > On 26 Feb 2024, at 21:32, Emanuel Han via ntg-context >

[NTG-context] Re: Japanese

2024-02-26 Thread Emanuel Han via ntg-context
\definefontfamily [JapaneseFont] [rm] [hiraginominchopro] \setupruby[location=top,voffset=-1.6ex, ] \starttext \JapaneseFont \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext On Feb. 26 2024, at 9:08 pm, Otared Kavian wrote: > Hi all, > > Does anyone have a simple setup of fonts

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
be greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] Re: Issue with italics

2024-02-26 Thread Jean-Pierre Delange
(with italics), as well as the Greek text... Try this : \setuplanguage \mainlanguage[fr,agr] \definefontfamily [mainface] [rm] [EBGaramond] \setupbodyfont[mainface, 12pt] \setupbodyfontenvironment[default][em=italic] \starttext Socrate est descendu au Pirée et affirme sa satisfaction du culte

[NTG-context] Issue with italics

2024-02-26 Thread Jean-Pierre Delange
] [TeX Gyre Pagella] \setupbodyfont[mainface, 11pt] \setupbodyfontenvironment[default][em=italic] \starttext Socrate est descendu au Pirée et affirme sa satisfaction du culte rendu à cette nouvelle déesse par les Thraces; néanmoins, {\em il ne nous dit rien des prières} qu'il a lui-même

[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
}} \setuptyping[TEX][   option=tex,% scite sets cld   escape=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext I tried to load the module only in the section where I need it, that lead to strange errors

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-24 Thread Wolfgang Schuster
page was last updated nearly four years ago. Is anyone using updated versions of these? You can use quadruple out of the box. \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \samplefile{lorem} \page[quadruple] \samplefile{lorem} \stoptext Wolfgang

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext ___ If your question is of interest to others as well, please add

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread Bruce Horrocks
> On 23 Feb 2024, at 13:32, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > I have the following sample file: > > \starttext > whatever > > \startluacode > luatex.wrapup( > function() >local t = {} >local pdf_file_

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread mf
Il 23/02/24 14:32, Pablo Rodriguez via ntg-context ha scritto: Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(i

[NTG-context] output filename with SHA256

2024-02-23 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(io.loaddata(pdf_file_name)) local c_r = environment.currentrun

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
withdots withcolor "red";    setbounds currentpicture to OverlayBox; \stopuseMPgraphic Thank you! (I’m sure I already used that somewhere… Must document…) ok, new feature dedicated to Hraban ... who then of courese has to document it. \starttext \starttabulate \FL[1,2] % linef

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
(OverlayBox is the size of the cell). begin example \startuseMPgraphic{dottedborder}    draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
example \startuseMPgraphic{dottedborder}   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] Thank you! Since I needed only horizo

[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks
matTestQuestions()}} \define[4]\tareaAbc{\item #1 \startitemgroup[itemize][a] \item #2 \item #3 \item #4 \stopitemgroup} \starttext Here are some questions: \startTestQuestions In den Büchereien gibt es auch … … Kuchen. … Theater. … Workshops. In den Büchereien gibt es auch … … Kuchen. … Th

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Bruce Horrocks
k line) tracker = 0 the_question = {} end end end \stopluacode \def\startTestQuestions {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]} \def\stopTestQuestions {\ctxlua{userdata.formatTestQuestions()}} \starttext Here are some questions: \s

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-20 Thread Ursula Hermann
save a new "test-doc.tex" file in your desktop directory (which would be named "%USERPROFILE%\Desktop\test-doc.tex" [including its full path])? "%USERPROFILE%\Desktop\test-doc.tex" should contain: \starttext \input zapf \stoptext Please, compile it by simply i

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Hans Hagen
and for \def\foo I need four arguments so that I can correctly format the lines. How can i get the result of string.splitlines (s) separated into four arguments to pass to the macro? then \foo would be \def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4 I now use: \starttext %now I use the dirty trick

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread madiazm . eoicc
correctly format the lines. How can i get the result of string.splitlines (s) separated into four arguments to pass to the macro? then \foo would be \def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4 I now use: \starttext %now I use the dirty trick of writing an ñ at the end of line so that the macro

[NTG-context] Re: using an end of line as parameter

2024-02-19 Thread Hans Hagen
would appreciate it too...) better start thinking something: \starttext \def\foo#1{<<<#1>>>>\par} \startluacode local s = [[ line 1 line 2 line 3 line 4 ]] -- local s - io.loaddata("yourfile.txt") local lines = string.splitlines(s) f

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] \bTR \bTD Hello Table! \eTD \eTR \eTABLE \stoptext end example

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
ner}{\flushnextbox}% \else \flushnextbox \fi} \hbox} \setupfloat[table][command=\FloatTableALignment] \setupfloat[figure][default=rightmargin] \starttext \inright{Lorem ipsum \unknown}\samplefile{lorem} \startplacefigure \externalfigure[dummy][width=\rightmarginwi

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
[k] typeset on its own pdf page. And > > > > of course on each page k, only the layers which appear in the > > > > definition of the layerset[k] should be drawn on top of each other in > > > > the order as they appear in that definition. > > > > > > > &g

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Keith McKay
not change* > *anything just now.* > The MWE I used is as follows: > \starttext > \startMPpage > definecolor [ name = "MyColor3", r = uniformdeviate(1), g = > uniformdeviate(1), b = uniformdeviate(1) ] ; > definecolor [ name = "MyColor4", r = uniformdeviate(1), g = >

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-19 Thread Ursula Hermann
desktop directory (which would be named "%USERPROFILE%\Desktop\test-doc.tex" [including its full path])? "%USERPROFILE%\Desktop\test-doc.tex" should contain: \starttext \input zapf \stoptext Please, compile it by simply invoking ("cd %USEPROFILE%\Desktop\" mig

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
Pgraphic{base} > > z1 = origin ; > > z2 = (10,50) ; > > z3 = (40,30) ; > > > > picture layerA; > > layerA:=image( > > label("Word 1", z1); > > ); > > > > picture layerW; > > layerW:=image( > > label("Mot 2", z2); &

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-19 Thread Pablo Rodriguez via ntg-context
ot; file in your desktop directory (which would be named "%USERPROFILE%\Desktop\test-doc.tex" [including its full path])? "%USERPROFILE%\Desktop\test-doc.tex" should contain: \starttext \input zapf \stoptext Please, compile it by simply invoking ("cd %USEPROFILE%\De

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
picture layerY;> layerY:=image(> label("Nummer 5", z2+z3);> );>> picture layerU;> layerU:=image(> label("number 6", z2+z1);> );> \stopuseMPgraphic>> \startuseMPgraphic{Gamma}> draw layerU ;> draw layerM ;> \stopuseMPgraphic>> \startuseMPgr

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-19 Thread Gavin via ntg-context
> %&-line parsing enabled. > **context-test.tex > (./context-test.tex > LaTeX2e <2023-11-01> patch level 1 > L3 programming layer <2024-01-22> > ! Undefined control sequence. > l.1 \starttext > ? ! Emergency stop. > l.1 >End of file on th

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Fabrice L
then: > > metafun > log > That contour should have ended with '.. cycle' or '& > cycle'. So I'll not change > anything just now. > > The MWE I used is as follows: > > \starttext > \startMPpage > definecolor [ name = "MyColor3", r = uniformd

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-19 Thread Ursula Hermann
EB 2024 12:41 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **context-test.tex (./context-test.tex LaTeX2e <2023-11-01> patch level 1 L3 programming layer <2024-01-22> ! Undefined control sequence. l.1 \starttext ? ! Emergency stop. l.1 End of f

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
errors=*] %% missing font \definefontfamily [foo] [serif] [no font here really] \setupbodyfont [foo] \starttext %% missing characters 풜 \stoptext Marco ___ If your question is of interest to others a

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
tor. The characters end up in the tex file and that's what's processed by context. \starttext Ωµ±åö←§… \stoptext Methods: - custom keyboard layout (my preferred way) - compose key - symbol input tables (provided by your OS) - copy-pasting symbols from somewhere else - … > If I use the

[NTG-context] lmt_shade fails

2024-02-18 Thread Keith McKay
/anything just now./ // The MWE I used is as follows: \starttext \startMPpage definecolor [ name = "MyColor3", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformdeviate(1) ] ; definecolor [ name = "MyColor4", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformd

[NTG-context] Re: Problem with wiki example

2024-02-17 Thread Shiv Shankar Dayal
Never mind it was my idiocy. On Sun, Feb 18, 2024 at 3:29 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > I found following on Wiki to produce PDF out of standalone type( > https://wiki.contextgarden.net/Sharing_graphics): > > \starttext > \startMPpage >

[NTG-context] Problem with wiki example

2024-02-17 Thread Shiv Shankar Dayal
I found following on Wiki to produce PDF out of standalone type( https://wiki.contextgarden.net/Sharing_graphics): \starttext \startMPpage draw fullcircle scaled 10cm ; \stopMPPage \stoptext It generates a PDF but when I open it with Evince, Evince complains that no page was found and does

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
re is no way out of doing some manual work to tell what you > > want included on each page. > > > > \startuseMPgraphic{base} > > z1 = origin ; > > z2 = (10,50) ; > > z3 = (40,30) ; > > > > picture layerA; > > layerA:=image( > > label("Word 1", z1); >

[NTG-context] behaviour sy in externalfigure

2024-02-16 Thread Hans van der Meer via ntg-context
sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.yours sincerelydr. Hans van der Meer\starttext\ConTeXt\space version \contextversion\blank\type{\externalfigure[testfile.jpg]} source figure\crlf\externalfigure[testfile.jpg]\crlf\t

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
picture layerM; > layerM:=image( > label("Parola 3", z3); > ); > > picture layerC; > layerC:=image( > label("Wort 4", z3+z1); > ); > > picture layerY; > layerY:=image( > label("Nummer 5", z2+z3); > ); > > picture layerU;

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
aphic{base} > > > z1 = origin ; > > > z2 = (10,50) ; > > > z3 = (40,30) ; > > > > > > picture layerA; > > > layerA:=image( > > > label("Word 1", z1); > > > ); > > > > > > picture layerW; > > > layerW:

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
; > > layerW:=image( > > label("Mot 2", z2); > > ); > > > > picture layerM; > > layerM:=image( > > label("Parola 3", z3); > > ); > > > > picture layerC; > > layerC:=image( > > label("Wort 4", z3

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
icture layerC; > layerC:=image( > label("Wort 4", z3+z1); > ); > > picture layerY; > layerY:=image( > label("Nummer 5", z2+z3); > ); > > picture layerU; > layerU:=image( > label("number 6", z2+z1); > ); > \stopuseMPgraphic >

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
dth, align={flushleft,broad,nothyphenated}] \setupinteraction[state=start, color=darkblue] \starttext \xmlprocessfile{list}{mwe.xml}{} \stoptext % finis mwe.pdf Description: Adobe PD

[NTG-context] /AFRelationship for attachments

2024-02-15 Thread Pablo Rodriguez via ntg-context
Dear list, the new lpdf-wid.lmt contains in lines 302 and 377: local relation = specification.relation or "Unspecified" AFRelationship = pdfconstant(relation), The following sample compiled with current latest: \setupinteraction[state=start] \starttext attachment\attachm

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
rtuseMPgraphic{layerset2} \includeMPgraphic{layerset1} ; draw layerY ; \stopuseMPgraphic \startuseMPgraphic{layerset3} \includeMPgraphic{layerset2} ; \includeMPgraphic{Gamma} ; \stopuseMPgraphic \startuseMPgraphic{layerset4} \includeMPgraphic{layerset2} ; draw layerU ; \stopuseMPgraphic \startu

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Oliver Marugg
/context/base/mkxl/context.mkxl >> mtx-context | current version: 2024.01.24 22:39 >> -- >> Stripped down MWE: >> \setuppapersize[A4] [A4] >> \starttext >> \completecontent[criterium=all] >> % ToC >> \page >> \chapter{CHAP 1} >>

<    1   2   3   4   5   6   7   8   9   10   >