[NTG-context] Re: Figure reference failing

2024-04-10 Thread Henning Hraban Ramm
Am 10.04.24 um 14:21 schrieb Hans Hagen: It fails for me as well, when "mode=columns" is used. compare with and without mode columns: \starttext     \enablemode[columns]     As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below} we can have     more than one cel

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Willi Egger
; On 4/10/2024 1:30 PM, Taco Hoekwater wrote: >>> On 10 Apr 2024, at 13:04, Willi Egger wrote: >>> >>> Hello, >>> >>> It seems, that the referencing mechanism is failing. I detected this with >>> the January version and the cur

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Hans Hagen
On 4/10/2024 1:30 PM, Taco Hoekwater wrote: On 10 Apr 2024, at 13:04, Willi Egger wrote: Hello, It seems, that the referencing mechanism is failing. I detected this with the January version and the current version: 2024.04.01 08:59. Could some one confirm this? It fails for me as well

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 09.04.2024 um 14:53: i want to produce a gradient header i tried this code but it does not produce any result: \startext \def\Mystyle#1{\startMPcode picture tt ; tt := lmt_outline [ kind = "path", text = "#1", ] ; fill

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
i want to produce a gradient header i tried this code but it does not produce any result: \startext \def\Mystyle#1{\startMPcode picture tt ; tt := lmt_outline [ kind = "path", text = "#1", ] ; fill for i within tt : pathpart i && endfor cycle

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Hans Hagen via ntg-context
On 4/7/2024 9:31 AM, Henning Hraban Ramm wrote: Am 07.04.24 um 08:06 schrieb Hans Hagen: On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it That’s not how you promote open standards. should have been an ecma

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Hans Hagen
On 4/7/2024 9:31 AM, Henning Hraban Ramm wrote: Am 07.04.24 um 08:06 schrieb Hans Hagen: On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it Oh, as usual with PDF association… That’s not how you promote open

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Henning Hraban Ramm
Am 07.04.24 um 11:17 schrieb Ulrike Fischer: Am Sun, 7 Apr 2024 09:31:30 +0200 schrieb Henning Hraban Ramm: Am 07.04.24 um 08:06 schrieb Hans Hagen: On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it Oh

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Ulrike Fischer
Am Sun, 7 Apr 2024 09:31:30 +0200 schrieb Henning Hraban Ramm: > Am 07.04.24 um 08:06 schrieb Hans Hagen: >> On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: >> >>> 1. PDF/UA-2 >>> https://pdfa.org/iso-14289-2-pdfua-2/ >> >> looks likes one

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Henning Hraban Ramm
Am 07.04.24 um 08:06 schrieb Hans Hagen: On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it Oh, as usual with PDF association… That’s not how you promote open standards. (Didn’t check, jost forwarded

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Hans Hagen
On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it 2. Well-Tagged PDF (WTPDF) https://pdfa.org/wtpdf/ well, tagging ... Hans

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
On 4/6/2024 1:38 PM, Wolfgang Schuster wrote: Henning Hraban Ramm schrieb am 06.04.2024 um 12:23: Am 06.04.24 um 11:43 schrieb madiazm.eo...@gmail.com: Hi everyone, I'm a bit puzzled because I usually don't get an em-dash when I type tree hyphens. If I use the command \emdash, no problem

[NTG-context] PDF/UA-2, WTPDF

2024-04-06 Thread Henning Hraban Ramm
explain and view them: 1. Questions and Answers about Tagged PDF from PDF association 2. Acrobat Custom File Info Panels by Peter Wyatt Last month saw the release of PDF/UA-2 and the new Well-Tagged PDF (WTPDF) standard - neither of which revokes PDF/UA-1. And none of those are the same as PDF 1.7

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
] \definecounter [alanindex] \setuphead [chapter] [insidesection={\setpagestate[alanpage]}, aftersection={\setpagestate[alanpage]}] \setuphead [title] [insidesection=, aftersection=] \define[1]\ChapterListPage {\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination

[NTG-context] Re: error with \sc

2024-04-02 Thread Mikael Sundqvist
> flushing realpage 1, userpage 1, subpage 1 > close source> level 1, order 3, name './test.tex' > backend > xmp > using file > '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' > mtx-context | fatal error: return code: 1 &g

[NTG-context] error with \sc

2024-04-02 Thread Peter Münster
Hi, With ConTeXt version 2024.04.01, the \sc command produces an error: fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded pages > flushing realpage 1, userpage 1, subpage 1 close source > level 1, o

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Wolfgang Schuster
wanted to document it, but can’t find it in the sources: The definition is in spac-ver.mkxl. $ context --find=textdisplay [...] These two documents use it and compile flawlessly. begin \definetextdisplay 1 2 3 \definetextdisplay

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Keith McKay
Shurely Shome Mishtake. It should be grauniad_sans! https://wordhistories.net/2017/06/05/origin-of-grauniad/ Keith On 01/04/2024 15:45, Henning Hraban Ramm wrote: Am 01.04.24 um 16:34 schrieb Hans Hagen via ntg-context: On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Henning Hraban Ramm
Am 01.04.24 um 16:34 schrieb Hans Hagen via ntg-context: On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth and the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Well, I found one, but it‘s

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Hans Hagen via ntg-context
On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth and the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Hans

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
ever.commands local environments = whatever.environments local result, r = { }, 0 r = r + 1 ; result[r] = "'.text.tex.context':\n" for i=1,#commands do r = r + 1 ; result[r] = format("\t'\\%s':\n",commands[i]) r =

[NTG-context] Re: upload

2024-04-01 Thread Hans Hagen
On 4/1/2024 11:34 AM, Otared Kavian wrote: Hi Hans and Mikael, Thanks for the new module math-goodriddance ! Indeed there are many mathematicians who are going to use the \goodriddancemath command, and no doubt they are going to thank you, even if they are very shy to come out. Moreover

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
in the attached output which is very useful for the blind using an audio software.Best regards: OK no-math.pdf Description: Adobe PDF document On 1 Apr 2024, at 16:31, Hans Hagen <j.ha...@xs4all.nl> wrote:Hi,There is a new lmtx upload.-- The svg inclusion via metapost has been upgraded and cleanup

[NTG-context] Re: upload

2024-04-01 Thread Mikael Sundqvist
Hi, On Mon, Apr 1, 2024 at 9:36 AM Hans Hagen wrote: > > Hi, > > There is a new lmtx upload. > > -- The svg inclusion via metapost has been upgraded and cleanup a bit, > using some more recent metapost features. There are some new (not yet > all docum

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-04-01 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] upload

2024-04-01 Thread Hans Hagen
back to the obsolete \LMTX\ mode. Like: \startbuffer \usemodule[math-goodriddance] \goodriddancemath Who wants to solve the equation \m {x + 1 = 4} or deal with the function \m {x \mapsto \root [3] {x}}, when we have AI around the corner to help us out with simple and silly things

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Hans Hagen
On 3/30/2024 12:07 PM, Bruce Horrocks wrote: On 30 Mar 2024, at 09:38, Henning Hraban Ramm wrote: Am 30.03.24 um 03:15 schrieb Joel via ntg-context: I have code like this: \placefigure[here, force]{my caption}{% \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Bruce Horrocks
> On 30 Mar 2024, at 09:38, Henning Hraban Ramm wrote: > > Am 30.03.24 um 03:15 schrieb Joel via ntg-context: >> I have code like this: >> \placefigure[here, force]{my caption}{% >> \externalfigure[#1][frame=on, maxheight=1.2\textwidth, >> maxwidth

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Henning Hraban Ramm
Am 30.03.24 um 03:15 schrieb Joel via ntg-context: I have code like this:     \placefigure[here, force]{my caption}{%         \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%     }% I need some images to appear in a book. I need them to keep their proper

[NTG-context] How to get an image to fill the maximum available space?

2024-03-29 Thread Joel via ntg-context
I have code like this:     \placefigure[here, force]{my caption}{%         \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%     }% I need some images to appear in a book. I need them to keep their proper ratios, but scale up to the maximize the available space

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
[StudyTitle][criterium=all] \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo01} \startSourceTitle[reference={\Reference}, bookmark=Source01, title={}][ title=Source01, author=Author01, authorInitials=ABC, reference={\Reference}, ] \input knuth \page \dorecurse{25}{\input ward\par

[NTG-context] (again) \xmlinlineprettyprinttext double hyphens

2024-03-24 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[demo] mtxrun --script check file \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{code}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:code \xmlprettyprinttext{#1}{none

[NTG-context] issue with \xmlinlineprettyprinttext

2024-03-20 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[demo] a --b c a --b c \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|code|inlinecode}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
As I understand, Thomas needs a layout in which the header shows something like 1. Chapter title -- 1.1. Section title (including the numbers! *This is the important bit!*) There are a couple things about this: 1. In a section (part, chapter, section, etc.) you can introduce three versions

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
ng for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the header on the right. How can I automate this with marking? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Thanks fo

[NTG-context] Re: Use of marking

2024-03-20 Thread Thomas Meyer
while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the header on the right. How can I automate this with markin

[NTG-context] Re: command line arguments

2024-03-20 Thread Hraban Ramm
the number parser ignores the flag because \setuparranging does care and \Schema fails to expand. Thank you! Well, I tried \expanded in a few places, and that didn’t work. \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}} \def\Pages{\doifelsedocumentargument

[NTG-context] Re: can we do binding correction?

2024-03-20 Thread Hraban Ramm
Hi Andrés, thank you! Am 20.03.24 um 06:07 schrieb Andres Conrado Montoya: I have found with experience that a formula to calculate the binding correction for a saddle stitch binding, not more than 4 pages in a signature (only one fold in the middle) usually is 1/2 the circumference

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
Am 20.03.24 um 08:18 schrieb Thomas Meyer: HI folks, yesterday while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Au

[NTG-context] Use of marking

2024-03-20 Thread Thomas Meyer
HI folks, yesterday while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the header on the right. How can I

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Andres Conrado Montoya
in a signature (only one fold in the middle) usually is 1/2 the circumference of a circle with radius *r*, being *r* the thickness of the paper times the amount of physical signatures. Something like: \frac{π \times t \times s}{2}. I have not tried a formula for more folds in a signature. The thing is, you

[NTG-context] Re: command line arguments

2024-03-19 Thread Wolfgang Schuster
does care and \Schema fails to expand. \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}} \def\Pages{\doifelsedocumentargument{numberofpages}{\getdocumentargument{numberofpages}}{16}} \setuparranging[\Schema] \doifelsedocumentargument{schema} {\setuparranging

[NTG-context] Re: command line arguments

2024-03-19 Thread Willi Egger
used in \dorecurse{\Pages}{…}, > but not for the imposition schema. Typesetting \Schema looks right, but > \setuparranging doesn’t work. Where's my error? > > \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}} > \def\Pages{\doifelsedocumentargument{nu

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
uestion was rised in my ConTeXt beginners workshop* at Chemnitz >>>>> Linux Days today: >>>>> >>>>> Can I configure binding correction for saddle-stitched or thread-bound >>>>> booklets, and if, does it only work with arranging (impos

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Hraban Ramm
today: Can I configure binding correction for saddle-stitched or thread-bound booklets, and if, does it only work with arranging (imposition) or can I enable it somehow for the layout (if the printshop does the imposition)? 1. \definepageshift + \setuppageshift 2. \setuplayout[horoffset

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
right, but \setuparranging doesn’t work. Where's my error? \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}} \def\Pages{\doifelsedocumentargument{numberofpages}{\getdocumentargument{numberofpages}}{16}} \setuparranging[\Schema] Find the full example attached, I call

[NTG-context] Re: Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 20:35: I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1

[NTG-context] Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Jeroen
I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1. The Third Section ... 2. The Fourth Section

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Wolfgang Schuster
ter number in the frame (inside the frame is vertically centered, the title not). Is there a way to align the chapter title with the chapter number? \starttexdefinition MyNumberChapterCommand #1     \inframed[frame=off,rightframe=on,framecolor=black,      rulethickness=1px,height=30pt]{

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
nners workshop* at Chemnitz >>> Linux Days today: >>> >>> Can I configure binding correction for saddle-stitched or thread-bound >>> booklets, and if, does it only work with arranging (imposition) or can I >>> enable it somehow for the l

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Hraban Ramm
vertically align properly with the chapter number in the frame (inside the frame is vertically centered, the title not). Is there a way to align the chapter title with the chapter number? \starttexdefinition MyNumberChapterCommand #1     \inframed[frame=off,rightframe=on,framec

[NTG-context] Adjusted Chapter Headings

2024-03-19 Thread Jeroen
vertically centered, the title not). Is there a way to align the chapter title with the chapter number? \starttexdefinition MyNumberChapterCommand #1 \inframed[frame=off,rightframe=on,framecolor=black, rulethickness=1px,height=30pt]{#1\enspace} \stoptexdefinition \setuphead[chapter][s

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
, and Hans’ manuals are also often "in progress". A visible TODO marker might help – I’m using the following in my book to keep track of incomplete sections: \defineregister[todos] \define[1]\TODO{\inouter{\tt\color[red]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[re

[NTG-context] Re: can we do binding correction?

2024-03-18 Thread Hraban Ramm
with arranging (imposition) or can I enable it somehow for the layout (if the printshop does the imposition)? 1. \definepageshift + \setuppageshift 2. \setuplayout[horoffset=] Also I recognized I'm not sure about the difference of the layout parameters backspace and cutspace. backspace

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-18 Thread Hans Hagen
On 3/18/2024 1:31 AM, Jim wrote: On Sat, Mar 16, 2024 at 15:20 (+0100), Hans Hagen wrote: On 3/16/2024 2:10 PM, Jim wrote: On Fri, Mar 15, 2024 at 01:53 (+0100), Aditya Mahajan wrote: On Thu, 14 Mar 2024, Jim wrote: Max (et al), were you hoping the ConTeXt distribution would ship its

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
for a command with a argument and buffers don't like being part of arguments. You can put the code in buffer outside of the footnote and type the content of the buffer in the footnote. begin example \starttext \def\startfoo#1\stopfoo{#1} % \startfoo % xxx % \starttyping % yyy % \stoptyping % zzz

[NTG-context] Re: can we do binding correction?

2024-03-17 Thread Wolfgang Schuster
it somehow for the layout (if the printshop does the imposition)? 1. \definepageshift + \setuppageshift 2. \setuplayout[horoffset=] Also I recognized I'm not sure about the difference of the layout parameters backspace and cutspace. backspace is the inner margin and cutspace the outer Wolfgang

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Hans Hagen
by that ... context can add profiles if configured to do so (best not to embed them) ... and why should there be a profile anyway ... crappy arguments .. especially because when i run \usemodule[tikz] \startTEXpage \definecolor [colorone] [r=0,g=0,b=0.5] \definecolor [colortwo] [c=0,m=1

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Jim
ange in? >> And, if anyone has the will to push this (or add it in to a ConTeXt >> distribution version), I'd still like the cmyk support, even if there is no >> ability to specify colour profiles: >> \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil >> { >> \pgfmath

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Jim
will to push this (or add it in to a ConTeXt >> distribution version), I'd still like the cmyk support, even if there is no >> ability to specify colour profiles: >> \def\pgfutil(a)emu@cmyk#1#2,#3,#4,#5\@nil >> { >> \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% >> \pgf

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
ted (1cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ; applyluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circular" ) ; draw luminositygroup ( fill (unitsquare scaled 2cm) shifted (4cm,1cm) with

[NTG-context] Re: Japanese

2024-03-16 Thread Wolfgang Schuster
is doing. Maybe once things are settled, Hans and Wolfgang will have a look in the Japanese part of ConTeXt so that the user can avoid to enter the setup included in the \directlua part. There is no need for these calculations because     1. you can create named layouts (e.g. \definelayout

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread seyal zavira
e xscaled 10cm yscaled 4cm) > withcolor svgcolor(0.5,0,0) > ; > > registerluminositygroup ("test") ( > fill (unitsquare scaled 2cm) shifted (1cm,1cm) > withshademethod "circular" > withsh

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread Hans Hagen via ntg-context
scaled 2cm) shifted (1cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ; applyluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circul

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-15 Thread Hans Hagen
version), I'd still like the cmyk support, even if there is no ability to specify colour profiles: \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil { \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-15 Thread Max Chernoff
ewer than I thought?), so this seemed like the right place to start. > And, if anyone has the will to push this (or add it in to a ConTeXt > distribution version), I'd still like the cmyk support, even if there is no > ability to specify colour profiles: > > \def\pgfutil(a)emu@cmyk#1#2,#3,#4

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Jim
, even if there is no ability to specify colour profiles: \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil { \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}% \expandafter\edef\csname\string\color

[NTG-context] PDF, runner, and TikZ patches

2024-03-14 Thread Max Chernoff
100644 --- a/tex/generic/pgf/utilities/pgfutil-context.def +++ b/tex/generic/pgf/utilities/pgfutil-context.def @@ -26,8 +26,17 @@ \def\pgfutil@definecolor#1#2#3{\csname pgfutil@emu@#2\endcsname{#1}#3\@nil} \def\pgfutil@emu@rgb#1#2,#3,#4\@nil{\expandafter\def\csname\string\color@#1\endcsname

[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
> > > > > 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 to c

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
. 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 to create a line when 25 could be used. Then we can develop a method > > to turn

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
are used > to create a line when 25 could be used. Then we can develop a method to turn > that mechanism off or circumvent it. > Quotation from https://www.w3.org/TR/jlreq: > In principle, when composing a line with ideographic (cl-19), hiragana > (cl-15) and katakana (cl-16) characters, no

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=3, pagenumber=yes, indicator=no] % \defineregister[learnedlong][compress=yes] \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1

[NTG-context] Re: regular online meet-up

2024-03-13 Thread Henning Hraban Ramm
Reminder: This is tonight! Am 10.03.24 um 21:51 schrieb Henning Hraban Ramm: You’re invited to our regular online meet-up, this upcoming Wednesday, March 13th, 19:00 CET (UTC+1) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of all

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
\starttexdefinition protected newintertext #1 \leftparbox [global] { \vadjust pre \bgroup \forgetall \vskip.5\strutdp % needs to be more clever in the end \dontleavehmode\vtop\bgroup #1 \egroup \egroup

[NTG-context] Creating a module for calligraphy practice templates

2024-03-12 Thread Andres Conrado Montoya
carefully and made as many tests as possible, and in general it works fine, but I have ADHD and things frequently get over my head. There are still some things that don't work as they should, and things that need improvement: 1. I use top/bottom areas to display some info. These areas are not being

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
ad[section][page=yes] \unprotect \newbox\intertext_tmp_box \newdimen\intertext_tmp_dimen \starttexdefinition protected newintertext #1 \texthere[left]{ \setbox\intertext_tmp_box=\hbox{ \startframedtext[ offset=none, width=\hsize,

[NTG-context] Re: Japanese

2024-03-11 Thread Wolfgang Schuster
for line-adjustment https://www.w3.org/TR/jlreq/#term.line-adjustment * aligning of the lines to the Kihon-hanmen (optimizing the code below in this regard) Can you make text files out of the images [1] with the spacing before/after punctuation to have short examples for testing. [1

[NTG-context] update

2024-03-11 Thread Hans Hagen
that extreme paths with control points way beyond reasonable still produce the right output (before we could get a wrong bbox due to clipping the curve in the backend). One can actually also force "always curve" with "withcurvature 1" (more variants might follow) but that is

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-03-11 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] regular online meet-up

2024-03-10 Thread Henning Hraban Ramm
You’re invited to our regular online meet-up, this upcoming Wednesday, March 13th, 19:00 CET (UTC+1) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of all levels are welcome! Do you have a subject that you’d like to talk about

[NTG-context] Re: Japanese

2024-03-10 Thread Jean-Pierre Delange
www.w3.org/TR/jlreq/#fig1_8>//)./ 1. ConTeXt has a mechanism to typeset Japanese texts. 2. There are flaws in the output it produces but this nothing which can't be fixed. 3. To fix the problems someone has to be passionate to fix them and we're willing to help here. As you can

[NTG-context] Re: Japanese

2024-03-10 Thread Emanuel Han via ntg-context
between their character frame > > (https://www.w3.org/TR/jlreq/#term.character-frame). This is called solid > > setting (see Figure 5 (https://www.w3.org/TR/jlreq/#fig1_8)). > > > 1. ConTeXt has a mechanism to typeset Japanese texts. > 2. There are flaws in the output it

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

2024-03-09 Thread Wolfgang Schuster
on contains nothing except the \event command I would remove the section titles from the document itself and place them as part of the \event command. \define[1]\Event {\startsection[title={#1}] \input{knuth} \stopsection} \starttext \Event{Neon Tetras} \Event{Detective Sto

[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: How can I do this?

2024-03-08 Thread Otared Kavian
[color=black, height=0.10ex, width=13.50cm] \reference[Regel:1]{3.1} {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) äquivalent \startitemize[n,packed,broad] \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1}, \item \m{\forall n \in \naturalnumbe

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

2024-03-08 Thread Hans Hagen
On 3/8/2024 3:38 AM, Rik Kabel wrote: Hello all, The following example produces two log entries that seem a bit odd. The log entries are: backend > bookmarks > confusing level change at level 3 around '1 body1' backend > bookmarks > confusing level cha

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
Hello all, The following example produces two log entries that seem a bit odd. The log entries are: backend > bookmarks > confusing level change at level 3 around '1 body1' backend > bookmarks > confusing level change at level 3 around 'back1' an

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

2024-03-07 Thread Wolfgang Schuster
example is just a condensed version of example 2. Many thanks for your extended explanation, Wolfgang. Here is another solution which uses \ifcase the select a different case dependent on the value of the remainder. \def\beforequadruplenumber#1% {\ifcase\numexpr#1;4\relax \the\numexpr#1+3

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:11: [...] \startxmlsetupsxml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups Use \expanded. \startxmlsetups xml:meta

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Wolfgang Schuster
works in your previous example. Many thanks for your reply, Wolfgang. Now I have the minimal sample: [...] \startxmlsetups xml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups Use

[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
Pablo Rodriguez via ntg-context schrieb am 04.03.2024 um 20:00: On 2/28/24 19:28, Wolfgang Schuster wrote: [...] \def\beforequadruplenumber#1% {\ifcase\numexpr#1+1;4\relax \number\numexpr#1+4\relax \else \number\numexpr#1+3-#1;4\relax \fi} Sorry for not having

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
whether this requires a minimal sample to be fixed. Many thanks for your help, Pablo tex error > tex error on line 0 in file : Argument of \D9>:title has an extra } \par } \prerolltostring #1->\beginlocalcontrol \setbox \b_syst_boxes \hbox {\expand \everypreroll #1

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Hans Hagen
On 3/6/2024 11:18 AM, Marco Patzer wrote: On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups So now we have

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
=13.50cm] \setupinteraction [state=start, color=blue] \reference[Regel:1]{3.1}\par {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) äquivalent \startitemize[n,packed,broad] \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},\item \m{\fo

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Henning Hraban Ramm
Am 06.03.24 um 11:18 schrieb Marco Patzer: On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups So now we have

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