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

2024-05-17 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: Why is only the first frame protruding into the margin?

2024-05-17 Thread Pablo Rodriguez via ntg-context
t work, but > being a bit surprised by the margins I printed a copy of the page > and still worse... Hi Miguel, this should work (also in the sense of a minimal sample): \showframe\showgrid \defineframedtext[FunnyText] [frame=on, align=flushright,location=right] \def\FrameTi

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Wolfgang Schuster
}] \defineframedtext[FunnyText][width=.85\textwidth, height=20mm, frame=off, background=FunnyFrame, align=flushright,location=right, after={\blank[2*big]}]%foregroundsytel amplía la palabra Apartado \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado

[NTG-context] Why is only the first frame protruding into the margin?

2024-05-16 Thread madiazm . eoicc
=flushright,location=right, after={\blank[2*big]}]%foregroundsytel amplía la palabra Apartado \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado #1}\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \define[2]\firstHeadings

[NTG-context] expansion question

2024-05-15 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start] \setupattachments[method=hidden] \protected\def\PDFfile[#1]% {\cldcontext{file.addsuffix("#1", "pdf")}} \starttext \doifelsefile{\PDFfile[xml-mkiv]} {yes}{no}

[NTG-context] Re: what am I missing in the typescript?

2024-05-15 Thread Wolfgang Schuster
? (just trying to learn) Below is a snippet from font-unk.mkxl where you can see which names are mapped to a certain font alternative, e.g. \tf (the normal upright style) expect a fontsynonym with the name Serif. \definebodyfont [default] [rm]   [\s!tf=Serif    sa 1,    \s!bf

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
}] %== \starttext %== {\sc\bfd Version A, without sectionning, pages 1\ampersand 2} \startshapetext[mp1, mp1, mp1, mp1, mp1, mp1] \setupalign[hz,hanging,verytolerant

[NTG-context] index sort order (de)

2024-05-14 Thread Henning Hraban Ramm
Hi, I checked the German index sorting rules, and as far as I can tell, all of them are somewhat wrong. – de, default, or no setting (just mainlanguage de) – Duden - DIN 5007-1(:2005) - DIN 5007-2(:1996) - de-AT IMO, "Duden" is obsolete, should be the same as default; it makes

[NTG-context] [installation] "unzipping" gives 0K files on windows

2024-05-14 Thread yashpalgoyal1304+ntgcontext
ragma-ade.com/install-lmtx//texmf.zip'" and "fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip'" was performed repeatedly * this consumes lots of time, will & internet bandwidth & takes away the focus from other important part of installation So, 1. ca

[NTG-context] Re: applying style to frame content

2024-05-14 Thread Wolfgang Schuster
] \starttexdefinition spaces protected Mystyle #1 \startMPcode picture tt ; tt:= lmt_outline [ kind = "path", text = "\Myframe{#1}", ]; fill for i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirect

[NTG-context] applying style to frame content

2024-05-14 Thread seyal . zavira
Hi all, what is the better way to apply a metapost effect to a piece of any structure text for example when defining footnotes, frames , etc. i use this method for frames: this is my MWE: \defineframed[Myframe][frame=off] \starttexdefinition spaces protected Mystyle #1 \startMPcode

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

2024-05-13 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: Metapost limitation ?

2024-05-12 Thread Mikael Sundqvist
0.3 local ymin = 0.4 local function f(x,y) local x = xstep*x - xmin local y = ystep*y - ymin local z = x + exp(-60*x) - y if z > 0 then return '1' else return '0' end end potrace.setbitmap("mybitmap", potrace.contourplot(N,N,f)) \stoplua

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
for x=xmin+xinc step xinc until xmax: > > .. (x,f(x)) > >endfor) > >enddef; > > > > > >for i = 1 upto 4: > > > >vardef f(expr x) =x+exp(-i*x) enddef; > > > >path c

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Hans Hagen
step xinc until xmax:                    .. (x,f(x))               endfor)           enddef;           for i = 1 upto 4:           vardef f(expr x) =x+exp(-i*x) enddef;           path curve;           curve = compute_curve(f,-0.4,1.4,0.0001) scaled u;           draw curve

[NTG-context] Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
)) endfor) enddef; for i = 1 upto 4: vardef f(expr x) =x+exp(-i*x) enddef; path curve; curve = compute_curve(f,-0.4,1.4,0.0001) scaled u; draw curve; endfor; vardef f(expr x) =x+exp(-6*x) enddef; path

[NTG-context] Re: outlinetext broken?

2024-05-11 Thread Hans Hagen
- outlines-003.pdf Description: Adobe PDF document \continuewhenlmtxmode \starttext \startMPpage[offset=10pt] draw lmt_outline [ text = "\mathematics{\sqrt{2}-1}" ] ; draw lmt_outline [ text = "\mathema

[NTG-context] Re: outlinetext broken?

2024-05-11 Thread Jairo A. del Rio
quot;\mathematics{\sqrt{2}-1}")(withcolor black withpen > currentpen) scaled 1; > \stopMPpage > > fails (radicals are not drawn at all). As for context --version, > > mtx-context | ConTeXt Process Management 1.06 > mtx-context | > mtx-context | main contex

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

2024-05-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] Is there a way to consolidate index reference numbers by book?

2024-05-10 Thread Joel via ntg-context
\useregister[workbookA][03_workbook][learnedlong][WB~1:~] \useregister[workbookB][04_workbook][learnedlong][WB~2:~] \useregister[workbookC][05_workbook][learnedlong][WB~3:~] \useregister[workbookD][06_workbook][learnedlong][WB~4:~]    \startchapter[title=Standards

[NTG-context] How to place text, but make it completely hidden from viewers?

2024-05-09 Thread Joel via ntg-context
it appears, but its making the double-spaced break everywhere. Is there either (1) something can enter before this code that essentially has the effect of "backup to the previous paragraph" or (2) some other method of hiding text that makes it present on the page, but just not visi

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-09 Thread Pablo Rodriguez via ntg-context
nsistency? > > You can make \typeinlinebuffer behave like \type by adding a second > initializer which besides other things prevents hyphen collapsing. > > buff-ver.mkxl: > > \protected\def\buff_verbatim_type_buffer_indeed_inline#1#2% >{\cdef\curren

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-09 Thread Wolfgang Schuster
-ver.mkxl: \protected\def\buff_verbatim_type_buffer_indeed_inline#1#2% {\cdef\currenttype{#1}% \buff_verbatim_initialize_type_one + \buff_verbatim_initialize_type_two \dostarttaggedchained\t!verbatim\currenttype\??type \clf_typebuffer name {#2}% strip {\v!yes}% regime

[NTG-context] wiki Command/MPdrawingdonetrue => NO COMMAND FOUND

2024-05-08 Thread garulfo
Is there something to do to make the wiki aware of the existence of \MPdrawingdonetrue ? https://wiki.contextgarden.net/index.php?title=Command/MPdrawingdonetrue=edit=1 ___ If your question is of interest to others

[NTG-context] Re: more register questions!

2024-05-07 Thread Rik Kabel
te counter with the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem

[NTG-context] Re: transparent color

2024-05-06 Thread Wolfgang Schuster
Bruce Horrocks schrieb am 06.05.2024 um 15:30: On 6 May 2024, at 09:41, Hans van der Meer via ntg-context wrote: I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2

[NTG-context] Re: transparent color

2024-05-06 Thread Henning Hraban Ramm
Am 06.05.24 um 16:01 schrieb Jacob Kauffmann via ntg-context: Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context : I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r

[NTG-context] Re: transparent color

2024-05-06 Thread Jacob Kauffmann via ntg-context
> Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context > : > > I would like to use a transparent version of an existing color. Thus > \definecolor[transparentcolor][color,t=0.2,a=1] > instead of > \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] &g

[NTG-context] Re: transparent color

2024-05-06 Thread Bruce Horrocks
> On 6 May 2024, at 09:41, Hans van der Meer via ntg-context > wrote: > > I would like to use a transparent version of an existing color. Thus > \definecolor[transparentcolor][color,t=0.2,a=1] > instead of > \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] &g

[NTG-context] Re: transparent color

2024-05-06 Thread Henning Hraban Ramm
Am 06.05.24 um 10:41 schrieb Hans van der Meer via ntg-context: I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] because I do not know the rgb values

[NTG-context] transparent color

2024-05-06 Thread Hans van der Meer via ntg-context
I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] because I do not know the rgb values of the color that must be made transparent, only its name

[NTG-context] outlinetext broken?

2024-05-04 Thread Jairo A. del Rio
Hi, list \startMPpage draw outlinetext.d("\mathematics{\sqrt{2}-1}")(withcolor black withpen currentpen) scaled 1; \stopMPpage fails (radicals are not drawn at all). As for context --version, mtx-context | ConTeXt Process Management 1.06 mtx-context | mtx-context | ma

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
] Dummy text.Dummy footnote. Dummy text.Dummy footnote. \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|chapter|p|footnote|indexentry|index}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:document \xmlflush

[NTG-context] Re: more register questions!

2024-05-03 Thread Henning Hraban Ramm
Am 03.05.24 um 22:24 schrieb Thomas A. Schmitz: Hi Massi, yes, that was a very good idea! I can detect if the element occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
Hi Massi, yes, that was a very good idea! I can detect if the element occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being. Thanks and all best Thomas On 5/2/24 17:55, mf

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem}\expanded{\setreg

[NTG-context] Re: more register questions!

2024-05-02 Thread mf
In this case I'm adding a smaller "n" to the right of the page number of the occurrence. Adding the \high style is not difficult: \defineprocessor[NoteProcessor][right=\high{n}] but replacing a fixed "n" with the footnote number is quite challenging. The second argument

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Wolfgang Schuster
with works without \startlines because you already mark up each individual line in the poem which make it possible to add a linebreak in the output. With \blank options (samepage) you can avoid pagebreaks between stanzas. \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
=middle, footerdistance=0pt, footer=\lineheight, bottomspace=.3in] \definelayout[1][first] \definelayout[2][rest] \setupmarginblock [location=left, width=\leftmarginwidth, align=flushright] \usecolors[svg] \definehead[contacts][title] \setuphead [contacts] [ align

[NTG-context] Re: \par and \startlines

2024-04-30 Thread Denis Maier via ntg-context
> Below is a different solution to your problem with works without \startlines > because you already mark up each individual line in the poem which make it > possible to add a linebreak in the output. > > With \blank options (samepage) you can avoid pagebreaks between stanzas. > &

[NTG-context] Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread denis.maier
} \subject{Apparently the default font. Why?} And in the default font, just as expected. \stoptext % % % Adapted MWE % \define[1]\mytitleformat{% \switchtobodyfont[chorus

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
RTL support and all of them show the text in the same way as TeXShop. Support for RTL in Visual Studio Code seems to be limited because the editor doesn't use the Unicode Bidi Algorithm [1]. [1] https://wiki.archlinux.org/title/Bidirectional_text#Editors Wolfgang

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-29 Thread Wolfgang Schuster
,outer,none] 1. You can't pass assignments and keywords to the same argument. 2. The \setupfloat command accepts only assignments as arguments, this means "outer" and "none" are ignored. To set a default location for the float use \setupfloat[...][default={outer,none}]

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
macro = document.test, } \stopluacode \meaningfull\testing \def\test#1{#1} \meaningfull\test \stoptext Which is the right way to use "interfaces.definecommand" to get a simple command as in standard TeX? I mean, no a non \permanent or non \protected command

[NTG-context] unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
\def\test#1{#1} \meaningfull\test \stoptext Which is the right way to use "interfaces.definecommand" to get a simple command as in standard TeX? I mean, no a non \permanent or non \protected command. Many thanks f

[NTG-context] Re: QR Code

2024-04-29 Thread Henning Hraban Ramm
(to Sonoma) and my homebrew cellar (to zint 2.13.0) while keeping a ConTeXt version from 2022 which compiled the barcodes perfectly fine before these updates. This being said, the newer ConTeXt version doesn't resolve the issue. Observations: 1) Zint (and Inkscape) is in my PATH and correctly sym

[NTG-context] Re: QR Code

2024-04-28 Thread Benjamin Buchmuller
. Observations: 1) Zint (and Inkscape) is in my PATH and correctly sym-linked as specified in the wiki (~/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so <http://libzint.so/>). However, the library was (still) not fount after mtxrun --generate [This seems an odd, but unrelated problem] 2)

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
Thank you! --Joel On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 27.04.2024 um 19:16: > \starttext >  test\high{1}test\footnote{some text} > \stoptext > > How can I create a superscript number that has e

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 27.04.2024 um 19:16: \starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way

[NTG-context] How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
\starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way to superscript text, but if you compile this, you can see

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
\xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|poem|stanza|line}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:poem \blank[line] \xmlflush{#1} \blank[back,line] \stopxmlsetups \startxmlsetups xml:stanza

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
> On 25 Apr 2024, at 09:24, ai2472206...@yeah.net wrote: > > But what I don't know is how to get it to inherit the options of other > commands and perform these features correctly. Your example didn't work for me - none of the Chinese|Japanese[1] characters showed. AFAIK the

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
the number of > argument passed. Many thanks for explaining this too. >> But what are these "#_" (which don’t seem to come from TeX)? > > Hans added many additions to command parameters in Luametatex and #_ > means the argument to a commands has to be enclosed in braces

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
e here. BTW: ConTeXt has a module for poems which can be loaded with \usemodule[format]. Wolfgang Ok. I'll have a look at this module. Just two questions: 1. so did this behavior change?  2. What is inbetween ref

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
where you use \or to set a case for the number of argument passed. \protected\tolerant\def\MyCommand#_#,#_#,#_#,#_% {\ifarguments % no arguments are passed \or #1% one argument is passed \or #2% two arguments are passed \or #3% three arguments are passed

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
nce here. BTW: ConTeXt has a module for poems which can be loaded with \usemodule[format]. Wolfgang Ok. I'll have a look at this module. Just two questions: 1. so did this behavior change? 2. What is inbetween referring to then? If each line is a paragraph, what's this group of paragraph

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
loaded with \usemodule[format]. Wolfgang Ok. I'll have a look at this module. Just two questions: 1. so did this behavior change?  2. What is inbetween referring to then? If each line is a paragraph, what's this group of paragraphs then? Can you ma

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
{#3} {#2}}} \MyCommand{}{second}{third}{fourth},\\ \MyCommand{}{second}{third}{fourth} e,\\ \MyCommand{}{second}{third},\\ \MyCommand{}{second}{third} e,\\ \MyCommand{}{second},\\ \MyCommand{}{second} e,\\ \stoptext BTW, this is the first time I see #_ instead of #1. Ther

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else

[NTG-context] wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else #2% \fi} \MyCommand{}{second}{third}{fourth},\\ \MyCommand

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
no effect here. How can this be done? Best, Denis %%% \setuplines[before={\blank},after={\blank},inbetween={ARE WE INBETWEEN?\blank}] % XML Nodes auswählen \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
Hi, Here is the code that interferes with the graph from the last chapter but why ? \startMPcode pickup pencircle xscaled 1; defaultfont := "texgyrepagella-regular*default" ; defaultscale := 0.8 ; path circle, p, q, b;

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
or your short tag-based citation style? > > > > biblatex implements this with the "alphabetic" style. I'm not aware of > > a specification, though. Does the "short" form in ConTeXt exist for a > > specific reason? :) > > > &

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
> > > \startcomponent[chapter-14] > > \startMPpage > > ... > > \stopMPpage > > \stopcomponent > > > > But if I compile my project, it disappears !! > > > > \startproduct[terminale-manual] > > \startbodymatter > > \com

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Taco Hoekwater
.. > \stopMPpage > \stopcomponent > > But if I compile my project, it disappears !! > > \startproduct[terminale-manual] > \startbodymatter > \component[chapter-1] > \component[chapter-2] > \component[chapter-3] > \component[cha

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Hans Hagen
project, it disappears !! \startproduct[terminale-manual]  \startbodymatter       \component[chapter-1]       \component[chapter-2]       \component[chapter-3]       \component[chapter-4]       \component[chapter-5]       \component[chapter-6]       \component[chapter-7]       \component

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
[terminale-manual] \startbodymatter \component[chapter-1] \component[chapter-2] \component[chapter-3] \component[chapter-4] \component[chapter-5] \component[chapter-6] \component[chapter-7] \component[chapter-8] \component[chapter-9] \component

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Taco Hoekwater
(xmin, 0) -- (xmax, 0) enddef > ; >vardef yaxis (expr ymin, ymax) = (0, ymin) -- (0, ymax) enddef > ; > > >xmin:=-pi/2; xmax := 3*pi/2; >ymin := -1.5; ymax := 5; > > >vardef f(expr x)= e

[NTG-context] The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
(x)+sin(x)+1) enddef; vardef g(expr x)=-exp(-x)*cos(x) enddef; path C_f, C_g; C_f = graph_of_function(f,xmin, xmax, .1); C_g = graph_of_function(g, xmin, xmax, .1); a := xpart(C_f intersectionpoint C_g); b

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
=\outermarginwidth] \setupmargindata [SidenoteContent][stack=yes,style=\it] \def\sidenotemark{\rawcountervalue[SidenoteMarkNumber]} \def\convertsidenotemark#1{\high{\convertnumber{#1}{\sidenotemark}}} \def\sidenote{\dosingleempty\dosidenote} \def\dosidenote[#1]#2{% \getparameters[SMsidenote

[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
} numeric n ; n := \number\realpageno ; numeric m ; m := \number\lastpageno ; numeric h ; h := \overlayheight ; numeric w ; w := \overlaywidth ; numeric e ; e := 3mm; numeric r ; r := (((n-1)/(m-1))*w); fill fullsquare xscaled w yscaled e shifted (w/2, h/2) withcolor darkblue ; fill

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-23 Thread Joel via ntg-context
where I need to reduce page count. So I thought an alternative route: (1) have a code that checks "what is current footnote number?" that sets that as a variable \def\currentfoodnote{\somevariableincontextthatgetsfoodnotenumber} (2) adjust my placefigure macro such that the footnote

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
mat in a bibliography. Currently, > > > I'm using the aps style which fits so far, except of the plain number > > > as reference. In concrete, I want to change the following: > > > - Use the first letter of the last name and the year as reference > > > (this should

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark1989, author

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
this: 1 ... A section A subject rather than 1 ... A section .. A subject Thank you! I added it in the wiki. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like this: 1 ... A section A subject rather than 1

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
? Here is a minimum working example: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Joel via ntg-context
of the > footnote messages at the bottom of the page. The actual footnote number > within the body is rendered, but no number is listed in at the bottom of > the page. So I might see a list of footnotes, for instance, on page 1, I > only get footnotes 1, 2, 3, 5, and 6, but 4 was mysterious

[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
%%% \setupexternalfigures [location={local,global,default}] \setupfloats[compress=no] \setupfloat[figure][default=top] \starttext \input knuth \placefigure{Cow 1}{\externalfigure[cow][ width=.5\textwidth, ]} \placefigure{Cow 2}{\externalfigure[cow

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Hans Hagen via ntg-context
number within the body is rendered, but no number is listed in at the bottom of the page. So I might see a list of footnotes, for instance, on page 1, I only get footnotes 1, 2, 3, 5, and 6, but 4 was mysteriously skipped. --- 1 message 2 message 3 message 5 message 6 message After

[NTG-context] Why don't footnotes appear in floats or figures?

2024-04-21 Thread Joel via ntg-context
is listed in at the bottom of the page. So I might see a list of footnotes, for instance, on page 1, I only get footnotes 1, 2, 3, 5, and 6, but 4 was mysteriously skipped. ---1 message2 message3 message5 message6 message After a lot of trial-and-error and checking logs and checking my

[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
:= \number\lastpageno ; numeric h ; h := \overlayheight ; numeric w ; w := \overlaywidth ; numeric e ; e := 3mm; numeric r ; r := (((n-1)/(m-1))*w); fill fullsquare xscaled w yscaled e shifted (w/2, h/2) withcolor darkblue ; fill fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-20 Thread Bruce Horrocks
> On 18 Apr 2024, at 01:09, Joel via ntg-context wrote: ... > Or maybe to use > to send the errors to another file for careful study? > (using Linux if that matters) You can run the job from the command line and redirect to a file: $ context file.tex >

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-19 Thread Hans Hagen
will still compile, even if something isn't displayed on screen as it should: (1) I tried placing a table inside a startitemize environment, as instead of it not compiling, it left a message in the document warning that wasn't supported. (2) In another case, I had an image that ConTeXt couldn't find

[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-18 Thread Henning Hraban Ramm
on screen as it should: (1) I tried placing a table inside a startitemize environment, as instead of it not compiling, it left a message in the document warning that wasn't supported. (2) In another case, I had an image that ConTeXt couldn't find, as I mispelled the filenmame, and it fully

[NTG-context] How to isolate serious errors from warnings?

2024-04-17 Thread Joel via ntg-context
I'm about to have a lengthy (2,000+ page) document published. Normally if it compiles and looks okay, I regard that as meaning no errors appeared, but I've noticed that sometimes ConTeXt will still compile, even if something isn't displayed on screen as it should: (1) I tried placing a table

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
a bibliography. Currently, > > I'm using the aps style which fits so far, except of the plain number > > as reference. In concrete, I want to change the following: > > - Use the first letter of the last name and the year as reference > > (this should be exactly the short

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
year as reference > (this should be exactly the short form). It is more less also > described here [1]. > - Highlight publications of a certain author with an extra char (e.g. > '>') > > Here is a minimal example (lets assume, every occurrence of Knuth > should be highlig

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
the short form). It is more less also described here [1]. - Highlight publications of a certain author with an extra char (e.g. '>') Here is a minimal example (lets assume, every occurrence of Knuth should be highlighted): ``` \setupinteraction[state=start] \startbuffer[testdata] @Book{knu

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-15 Thread Jim
gt;>> /usr/local/context/tex/texmf-linux-64/bin/context --once --texutil >>>> --synctex=1 --nonstop file.tex >>>> does not create a .synctex file (and deletes it, if it is there), whereas >>>> the TeXlive version >>>> /usr/loca

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-15 Thread Jim
ne the function in some hook) to replace --synctex=1 with --synctex=repeat I have submitted a bug report to auctex about (b) and another item, but I have no idea if/when the fixes will make it into a new release of auct

[NTG-context] [ using horizontal table lines ]

2024-04-15 Thread vm via ntg-context
\NC 0.00 \NC 0.000 \NC 12.50\NC 13.75\NC 15.00\NC 12.25\NC A\ \NC 27.20\NC 24.73\NC 22.67\NC 27.76\AR \NC 1 \NC 0.08 \NC 0.115 \NC 13.94\NC 15.34\NC 16.73\NC 13.66\NC A\#\NC 24.38\NC 22.17\NC 20.32\NC 24.88\AR \NC 2 \NC 0.17 \NC 0.222 \NC 15.28\NC 16.81\NC18.34\NC14.97\NC B\ \NC 22.25\NC

[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
for me. (I'm afraid that \getmarking[xxx][top] was intended for that and it is not feasible at all.) At page 1 the header should read "secA", at page 2 again "secA" (because the very first text belongs to "secA"), and at page 3 "secC" (because the very f

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-13 Thread Mikael Sundqvist
ibution on my > >> system. > > >> Recently, the stand-alone ConTeXt distribution seems to not create a > >> synctex file any more. Specifically, > > >> /usr/local/context/tex/texmf-linux-64/bin/context --once --texutil > >> --synctex=1 --nons

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-13 Thread Jim
ibution seems to not create a >> synctex file any more. Specifically, >> /usr/local/context/tex/texmf-linux-64/bin/context --once --texutil >> --synctex=1 --nonstop file.tex >> does not create a .synctex file (and deletes it, if it is there), whereas >> the TeXlive

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-13 Thread Hans Hagen
--texutil --synctex=1 --nonstop file.tex does not create a .synctex file (and deletes it, if it is there), whereas the TeXlive version /usr/local/texlive/2024/bin/x86_64-linux/context --once --texutil --synctex=1 --nonstop nwg_newsletter_2024_04.tex does create the .synctex file. The ConTeXt

[NTG-context] Most recent context doesn't like synctex?

2024-04-12 Thread Jim
Hi, I have both TeXlive 2024 and the stand-alone ConTeXt distribution on my system. Recently, the stand-alone ConTeXt distribution seems to not create a synctex file any more. Specifically, /usr/local/context/tex/texmf-linux-64/bin/context --once --texutil --synctex=1 --nonstop file.tex

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-10 Thread Hans Hagen via ntg-context
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{% \ctxlua{document.print_the_thing

[NTG-context] \luaescapestring in proper Lua

2024-04-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{% \ctxlua{document.print_the_thing([[\luaescapestring{#1}]])}} \PrintTheThing{a \em b {c}} \stoptext I

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