[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Aditya Mahajan
ith > all the modules (with the new script from ConTeXt Garden), but nothing works. Here is what is going on: `tikzlibrarycalendar.code.tex` contains the line: \pgfutil@usemodule{pgfcalendar} In `generic/pgf/utilities/pgfutil-context.def`, \pgfutil@usemodule is defined as: \def\pgfuti

[NTG-context] (no subject)

2023-09-05 Thread Ursula Hermann
}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula \stoptext I get: Command Line: context.exe --synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format':

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
Pablo, Thanks, even though I use LMTX, only this form works: [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax] Thanks Jeroen Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez : > On 9/4/23 18:09, Jeroen wrote: > > The following MWE shows pagenumbering starting at the se

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
ldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1}attribute = \xmlatt{#1}{value}\elsecontent = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi reversed:\space\ifxmlse

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

2023-09-04 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] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:09 PM, Jeroen wrote: The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 18:09, Jeroen wrote: > The following MWE shows pagenumbering starting at the second page with > page number 1. With the totalnumberofpages we end up with one page too > many. Is there a way to reduce this with 1? Hi Jeroen, this might do the work (LMTX only): [\p

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setcounter [userpage] [0

[NTG-context] After compiling

2023-09-04 Thread Ursula Hermann
I get: Command Line: context.exe --synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./blackrule1.tex" --socket --shell-esca

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
--synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./blackrule1.tex" --socket --shell-escape --fmt=C:/Users/Hermann/Downloa

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
\xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynode node=\xmltag{#1}:\crlf ifxmlselfempty-else-fi:\space \ifxmlselfempty{#1} attribute = \xmlatt{#1}{value} \else content = \xmlflush{#1} \fi \crlf ifxmlselfempty-else-fi reversed:\space \ifxmlselfempty{#1} content = \xmlflush{#1} \else

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Wolfgang Schuster
jbf schrieb am 04.09.2023 um 08:34: I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6, Section 3  7, Section 4   8, Section 5   9

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

2023-09-03 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] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
   \xmlsetsetup{\xmldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups\xmlregistersetup{xml:mysetups}\startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1} attribute = \xmlatt{#1}{value}\else content = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
tination-doc.pdf) /NewWindow true /S /GoToR >> endobj A GoToE destination for "\attachment[file=destination-doc.pdf, method=hidden]" would read: 1 0 obj << /S /GoToE /D [ 14 /Fit ] /NewWindow true /T << /R /C

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
oR >> endobj A GoToE destination for "\attachment[file=destination-doc.pdf, method=hidden]" would read: 1 0 obj << /S /GoToE /D [ 14 /Fit ] /NewWindow true /T << /R /C /N (destination-doc.pdf) >> >> endobj With Embedde

[NTG-context] Re: Building luametatex with Lua symbols exposed

2023-09-02 Thread Michal Vlasák
p, > when an external library is loaded in Lua. Any ideas on how to solve it? Hi Jairo, you need to expose _dynamic_ symbols in your luametatex binary. If you are using Linux, just adding the following to the CMake invocation line should work: -DCMAKE_EXECUTABLE_ENABLE_EXPORTS=1 For example

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
(or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par} \stoptext Wolfgang

[NTG-context] Fwd: Kerning feature not working

2023-08-30 Thread Hans Hagen
old mechanism, maybe time for an upgrade with merged vectors) \definecharacterspacing [myspacing] \setupcharacterspacing [myspacing] ["27E8] [right=0.25,alternative=1] \setupcharacterspacing [myspacing] ["27E9] [left=0.25,alternative=1] and then \setcharacterspacing[myspacing] Hans -

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
Finally I saw the problem. Calling \xmlfilter{#1}{./node/command(demo:attribute:node)} is the right way. Sorry for the noise. dr. Hans van der Meer > On 30 Aug 2023, at 13:49, Hans van der Meer via ntg-context > wrote: > > This line of code comes from the xml documentat

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
This line of code comes from the xml documentation (page 31): \xmlfilter{#1}{./node[@type=="cleanup"]} It should select among the 's those with . However, this node is not selected in the call to \xmlfilter. Where am I wrong? MWE follows % failure to typeset attribute selected. \setu

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

2023-08-27 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] Re: XML: Correct usage of hash symbol in url / new upload

2023-08-27 Thread Hans Hagen via ntg-context
this: \def\foo#1{#1 test ##} \def\foo#1{#1 test\def\more##1{(##1)}} the internal representation of #1 is a reference to parameter 1 while the ## becomes one # (cc parameter) in the second exmaple followed by a character 1 (cc other) then, when tex serializes e.g. in tracing it duplicates the hash

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread Hans Hagen
On 8/25/2023 1:45 PM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: Hans Hagen Gesendet: Freitag, 25. August 2023 09:06 An: Maier, Denis Christian (UB) ; mailing list for ConTeXt users Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute On 8/25/2023

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
but no upload > So, that would mean that the double checking is only necessary for find, not for contains. And indeed the example below works. Is that correct or are there any unwanted side-effects? \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|elem

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
\xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startluacode function xml.finalizers.tex.url(e,a) local u = #e > 0 and

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
; > > I'm trying to check whether an attribute contains (or, actually starts > > with) a > given string. > \xmldoifelse{#1}{.[@class and contains(@class,'abc')]}{Yes}{No} > \xmldoifelse{#1}{.[@class and find(@class,"abc")]}{Yes}{No} Thanks for your help. I can u

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Hans Hagen
% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
One way would be to do the search in Lua; when you have multiple searches to perform, that may be the easiest way to go. For example: \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup

[NTG-context] xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element \xmlfilter{#1}{./find(attribute('class'), 'abc

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
context.im("a^2") > context.stopxcell() > context.startxcell{ width = "1cm" } > context.im("b") > context.stopxcell() > context.startxcell{ width = "1cm" } > context.im("2b^2

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
ext.im("2b^2")         context.stopxcell()     context.stopxrow()     for i = 0,9 do         context.startxrow()             for j = 1,4 do                 context.startxcell()                     if j == 1 then               context(i)                     elseif j == 2 then context(ma

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Otared Kavian
pxcell() context.stopxrow() for i = 0,9 do context.startxrow() for j = 1,4 do context.startxcell() if j == 1 then context(i) elseif j == 2 then cont

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
= "1cm" }     context.im("b")     context.stopxcell()     context.startxcell{ width = "1cm" }     context.im("2b^2")     context.stopxcell()     context.stopxrow()     for i = 0,9 do     context.startxrow()     for j

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

2023-08-23 Thread Hans Hagen via ntg-context
On 8/23/2023 4:12 AM, Andres Conrado Montoya wrote: I have been using the following macro to add a bunch of sections to the start of chapters in a book, it works but I think is kind of weak: %%% \define[7]\metadatos{ \startsection[title={Resumen}] #1 \stopsection

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

2023-08-22 Thread Andres Conrado Montoya
I have been using the following macro to add a bunch of sections to the start of chapters in a book, it works but I think is kind of weak: %%% \define[7]\metadatos{ \startsection[title={Resumen}] #1 \stopsection \startsection[title={Palabras clave}] #2 \stopsection \start

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

2023-08-22 Thread Fabrice Couvreur
e can do > > \starttext > > \setupframed > [mathstrikeout] > [color=darkgreen, > backgroundcolor=darkred, > frame=off] > > \startTEXpage[offset=4dk,align=flushleft] > \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} > \blank > \dm{1+\mathstrike

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
- \frac{5}{12})^2 - \frac{1}{24}} \stopitem \startitem \m{-3(x - \frac{1}{3})^2 + \frac{1}{3}} \stopitem \startitem \m{7(x + \frac{5}{14})^2 + \frac{199}{28}} \stopitem \startitem \m{-\frac{1}{2}(x + 2)^2 + \frac{9}{2}} \stopitem

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

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

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

2023-08-22 Thread Fabrice Couvreur
cture cross; > cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); > draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle > scaled .8pt ; > \stopuniqueMPgraphic > > \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] > > \define[1]\cancel{% >

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

2023-08-22 Thread Alexandre Christe
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{%  \ifmmode  \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \else%  \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \fi% } Maybe something else is available nowadays

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
{ward} \startitemize[n][style=\bf]  \startitem  \startalextable  \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem  \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem  \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem  \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
bf] > \item \godown[-\lineheight] \startitemize > [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \ite

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

2023-08-22 Thread Hans Hagen via ntg-context
: using setups which are basically macros. The #1 is the current node (but you can store it in a macro and use it later if needed). So, only references are passed around. for thomas: we now also have (in lmtx) \ifxml {id}{pattern} \else \fi \ifxmltext {id}{pattern} \else \fi

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

2023-08-22 Thread denis.maier
to provide anybody homework solutions, so > just to give you an idea to get you started: > > \startxmlsetups xml:mysetup > \xmlsetsetup{main}{document|element|mdata|tdata|name|date|num|con > tent|shortdescription|p}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:m

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

2023-08-22 Thread denis.maier
; which are basically macros. The #1 is the current node (but you can store it > in a > macro and use it later if needed). So, only references are passed around. > > for thomas: we now also have (in lmtx) > > \ifxml {id}{pattern} \else \fi > \ifxmltext {id}{pa

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
[nowhite]}]     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$   \stopitemize \stopitemize A. Christe Le 22 août 2023 à 04:08 +0200, fv leung

[NTG-context] Low res output possible?

2023-08-21 Thread Benjamin Buchmuller
SAMPLE Nothing to do: %s, %s, %s dpi, %s x %s px", oldname, newname, resolution, width, height)) return end local TEXpt = 65536 local inch = 72.27 -- MkIV: -- local image = img.scan{filename = oldname} -- LMTX: local image = figures.getinfo(oldname,1) image = image.status

[NTG-context] Re: Nested itemize

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

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
[a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitemize \stopitemize

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

2023-08-21 Thread Hans Hagen via ntg-context
and then processed. But I definitely get the "do my homework for me" vibe, so this will be all from me. in addition: you need a bit of imagination because basically (depends a bit on what you do) one big nested expansion is going on, as Thomas explained: using setups which are basically macr

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

2023-08-21 Thread Thomas A. Schmitz
xml:document \xmlflush {#1} \stopxmlsetups \startxmlsetups xml:element \xmlflush {#1} \stopxmlsetups \startxmlsetups xml:mdata \xmldoifelsetext {#1} {/date} {{\bf \xmltext {#1} {name}}\par {\it \xmltext {#1} {date}}\par} {\xmltext {#1

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

2023-08-21 Thread Michael Löscher
\xmlregistersetup{xml:mysetup} \startxmlsetups xml:mysetup:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:mysetup:element \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:mysetup:mdata \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:mysetup:tdata \xmlflush{#1} \stopxmlsetups

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

2023-08-21 Thread Thomas A. Schmitz
Have you looked at chapter 3.10 "Testing" of the manual xml-mkiv.pdf? There are a lot of commands there that should help you, such as \xmldoiftext {#1} {/mdata/date} {\bf \xmlflush {#1}} or \xmldoifelsetext. There's also \xmlfilter, which you can use to test for the conten

[NTG-context] XML processing beginner's question

2023-08-21 Thread Michael Löscher
Hello list, having the xml data at the bottom, I would like to process it so that the result is like this: --- What it is (e.g. bold formatted) date: 2023-08-01 (italic) Description (small font size) Another text (small font size) hd1 - Header 1 § 1 First (A first short description

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

2023-08-21 Thread Carlos
+0200, Wolfgang Schuster wrote: > > > > > Hi, > > > > > > > > > > 1. Learn to two provide a working minimal example which shows the > > > > > problem. > > > > > > > > > Did the minimal example I provided

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-21 Thread Keith McKay
tps://wiki.contextgarden.net/Barcodes> 1) I had to create the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint 2) I symbolic linked directly to the homebrew created libzint library $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint $ ln -s /usr/local/Cellar/zint/2.12

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

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

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

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

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-20 Thread Bruce Horrocks
2.0 works for me on an x64 Mac mini using ConTeXt ver: 2023.08.10 02:59 Following the instructions here <https://wiki.contextgarden.net/Barcodes> 1) I had to create the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint 2) I symbolic linked directly to the homebrew created libzint librar

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

2023-08-20 Thread Hans Hagen
On 8/20/2023 5:51 PM, Carlos wrote: On Sun, Aug 20, 2023 at 03:38:15PM +0200, Wolfgang Schuster wrote: Carlos schrieb am 19.08.2023 um 15:32: On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: Hi, 1. Learn to two provide a working minimal example which shows the problem

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

2023-08-20 Thread Wolfgang Schuster
Carlos schrieb am 20.08.2023 um 17:51: On Sun, Aug 20, 2023 at 03:38:15PM +0200, Wolfgang Schuster wrote: Carlos schrieb am 19.08.2023 um 15:32: On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: Hi, 1. Learn to two provide a working minimal example which shows the problem

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

2023-08-20 Thread Carlos
On Sun, Aug 20, 2023 at 03:38:15PM +0200, Wolfgang Schuster wrote: > Carlos schrieb am 19.08.2023 um 15:32: > > On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: > > > Hi, > > > > > > 1. Learn to two provide a working minimal example whi

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

2023-08-20 Thread Wolfgang Schuster
Carlos schrieb am 19.08.2023 um 15:32: On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: Hi, 1. Learn to two provide a working minimal example which shows the problem. Did the minimal example I provided earlier wasn't enough for you? Besides, You know perfectly well

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

2023-08-19 Thread Hamid,Idris
University Fort Collins, CO 80523 On Aug 19, 2023, 1:14 PM -0600, Hamid,Idris , wrote: On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps

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

2023-08-19 Thread Hamid,Idris
On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps] [\setsmallcaps] [\setsmallcaps] : \unexpanded\def\setsmallcaps{\doaddfeature{f:smallcaps

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

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

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

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

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

2023-08-19 Thread Mikael Sundqvist
Hi, On Sat, Aug 19, 2023 at 3:36 PM Carlos wrote: > > On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: > > Hi, > > > > 1. Learn to two provide a working minimal example which shows the problem. > > > > Did the minimal example I pr

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

2023-08-19 Thread Hamid,Idris
for all styles that have the smcp feature, but I don't like having to redefine a system command. So the questions are: 1) Is there a recommended\better way to get \sc to work across all styles? 2) Are there any edits you would recommend to the above typescript template? Once we're clear

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

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

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

2023-08-19 Thread Carlos
On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote: > Hi, > > 1. Learn to two provide a working minimal example which shows the problem. > Did the minimal example I provided earlier wasn't enough for you? Besides, You know perfectly well that \stoptext is not ev

[NTG-context] Re: [ export to svg ]

2023-08-19 Thread Hans Hagen via ntg-context
On 8/19/2023 1:12 PM, vm via ntg-context wrote: Is there a (simple) way to export the results of a \startMPpage ... \stopMPpage directly to a svg file? My current route is to import the pdf into inkscape, group path objects by stroke color, then save the result as svg and translate

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

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

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

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

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

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

[NTG-context] Table head/body via lua

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

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-18 Thread Andres Conrado Montoya
.do?cod_rh=0002125949 }, orcid={https://orcid.org/0009-0007-0765-4241}, gscholar={ https://scholar.google.com/citations?user=GpYTTU0J=es=1}, ] %% I want to do something like \startGetAuthor[nombre={Andrés Conrado Montoya Acosta}] \datasetentry{bio}\par email: \mailhref{\datasete

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

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

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

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

[NTG-context] Penalties and overprinting in tabulate

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

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
On 8/18/2023 1:02 PM, Wolfgang Schuster wrote: Alex Leray schrieb am 18.08.2023 um 12:19: Hello Wolfgang, Le 17/08/23 à 18:56, Wolfgang Schuster a écrit : Is it correct all your listing are HTML code and you need line breaks for the entries of the href attributes? The content is from

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Andres Conrado Montoya
Thank you Hanks, seems to work well after some tweaking. I had an issue, the patch you sent me gave an error when I ran 'context --make'. The error said: tex error > tex error on line 51 in file core-dat.mkxl: Parameters must be numbered consecutively [#1]#*[ S \perman

[NTG-context] Re: breakpoints in verbatim text

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

[NTG-context] Re: breakpoints in verbatim text

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

[NTG-context] breakpoints in verbatim text

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

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
. I'm using datasets and a recursion, kind of hacky but I can't find a better way of handling it. Specifically I would like to know: 1. Is there a way of getting the length of a filled dataset? (how many entries it contains) 2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
can't find a better way of handling it. Specifically I would like to know: 1. Is there a way of getting the length of a filled dataset? (how many entries it contains) 2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata? Is there an alternative that does not require

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

2023-08-16 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] Re: An error which is not in .log file

2023-08-16 Thread Aditya Mahajan
ite] {oli}; % ròtuls \draw (2,2) node[anchor=west] {$2/5$}; \draw (2,5.25) node[anchor=west] {$1/4$}; \stoptikzpicture \stoptext Aditya___ If your question is of interest to others as well, p

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

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

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

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

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

2023-08-15 Thread Xavier B.
63) \startexercici[reference=exercici:problemes-de-fraccions-1, title={oli}] Calculeu quina part del dipòsit queda buida, sabent que l'aigua ocupa $2/5$ del recipient i l'oli, $1/4$ (vegeu figura~\in[fig:oli-aigua-diposit]). 15 \usetikzlibrary[trees] 16 \usetikzlibrary[calc, i

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Wolfgang Schuster
vm via ntg-context schrieb am 15.08.2023 um 21:13: Placing identical images in a n x m grid shows extra space every two rows. Also the vertical and horizontal spaces are different. There is probably a reason for this to happen, but how to avoid it ? 1. You're missing the caption (even

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

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

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