[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
m] [math] [pagella] \definetypeface generates the same error message if the font size is changed: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [ss] [TeX Gyre Heros] \definetypeface [mainface] [mm] [math] [pagella] %% 8pt works \setupbodyfont [mainface, 8.5pt]

[NTG-context] Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
] \setupbodyfont [mainface] \definedescription [foo] \starttext %% works, no issues here \math{x_y} %% fails if TeX Gyre Pagella Math is used \bold{\math{x_y}} \stoptext The error is: tex error > tex error on line 14 in file /tmp/tex-xDj/xDj.mkvi: Math error: parame

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
ot;) scaled 1.2, BStartPoint); ); p4:=image(draw A; label(lmt_outline [ text = "\KoreanFont 한국어" ], AStartPoint);); p5:=image( label(textext("bāng"), BEndPoint); draw C withcolor green; ); p6:=image( draw B withcolor blue; ); \stopMPinclusions \starttext \dorecurse{6}{ %

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
nce \starttext % We can put in the inclusions the material we will use at each page, to declare things only one time. \startMPinclusions % the frame of the video ; path TheFrame ; TheFrame := fullsquare scaled 5in ; randomseed := 53 ; path TheBrownianMotion ; pair Coordinate[]; Coordinat

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
tonaskharabic] \definetypeface [notonaskharabic] [rm] [serif] [notonaskharabic] [default] \stoptypescript \usetypescript[notonaskharabic] \setupbodyfont [RomanFont] \starttext \startMPcode picture p[]; path bb; %bounding box z0 = (0,0); z1 = (60,40); z2 = (40,90); z3 = (10,70); z4 = (30,50); z5 = (90,

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
le \startxtablebody[body] \startxrow \startxcell \xmlflush{#1} \stopxcell \stopxrow \stopxtablebody \stopembeddedxtable \stopplacetable \blank \stopxmlsetups \xmlregistersetup{xml:demo} \starttext \xmlprocessbuffer{demo

[NTG-context] Re: mathalignment; alignment of columns

2023-11-24 Thread Mikael Sundqvist
t? > According to my recent tests, a mathalignment environment does not seem to > react (any more) to the values of the "align" option. > The source code hab been rendered correctly a few years ago, > > Minimal example 1: > > \starttext > \startformula > \startmath

[NTG-context] mathalignment; alignment of columns

2023-11-24 Thread wolfgangbackes--- via ntg-context
s ago, Minimal example 1: \starttext \startformula \startmathalignment[n=2,align={left, right}] \NC always aligned to the right \NC = u + at, \NR \NC d \NC = ut + \frac12 at^2. \NR \stopmathalignment \stopformula \stoptext Despite "align={left, right}", the first column is aligned to the righ

[NTG-context] Re: Compatibility Issue with TikZ/Spy Library in ConTeXt: Seeking Solutions

2023-11-24 Thread Hans Hagen
://context-on-web.eu/. The example employs the spy library within a TikZ environment. Surprisingly, the same example runs without error on my local LaTeX engine, indicating a potential compatibility issue between ConTeXt and the spy library. Here is the minimal example for your reference:

[NTG-context] Compatibility Issue with TikZ/Spy Library in ConTeXt: Seeking Solutions

2023-11-24 Thread wolfgangbackes--- via ntg-context
hin a TikZ environment. Surprisingly, the same example runs without error on my local LaTeX engine, indicating a potential compatibility issue between ConTeXt and the spy library. Here is the minimal example for your reference: \starttext \usemodule[tikz] \usetikzlibrary {spy} \starttikzpicture

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
, width=fit, distance=0.5em, alternative=serried, ] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm] \starttext \margintext {1.1.1} \starttheorem The square on the hypotenuse is equal to the sum of the squares on the

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
.10.11 > >> >> 2. What do you get in your log-file with the following example! >> >> \starttext >> \show\expandeddetokenize >> \stoptext >> >> On my system I can find the following line: &g

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
For me, it is the same: This is LuaMetaTeX, Version 2.10.11 > > 2. What do you get in your log-file with the following example! > >     \starttext >     \show\expandeddetokenize >     \stoptext > > On my system I can find the following line: > >  

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Wolfgang Schuster
Hans van der Meer schrieb am 22.11.2023 um 21:22: The problem persists. Here the new logfile. 1. What is the version of your Luametatex binary?     luametatex --version     This is LuaMetaTeX, Version 2.10.11 2. What do you get in your log-file with the following example!     \starttext

[NTG-context] externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
is as simple as can be.The filename is test.jpeg, then this runs ok:\starttext\externalfigure[test.jpeg][]\stoptextBut this crashes, see the log:\starttext\externalfigure[test.jpg][]\stoptext yours sincerelydr. Hans van der Meer showlayout.log Description: Binary data

[NTG-context] Re: marginwidths

2023-11-22 Thread Wolfgang Schuster
frame \starttext setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf abc\dotfill xyz\crlf \stoptext Alternative 1: \setuplayout   [backspace=40mm,    width=110mm] \showframe \starttext \page[empty] \stoptext Alternative 2: \setuplayout   [backspace=40mm,    cutspace=60mm,   

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
:s > \section{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} > \stopxmlsetups > > \startxmlsetups xml:ss > \subsection{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} > \stopxmlsetups > > \setuphead[chapter,section,subsection][before=,after=,] > \starttext > \xmlpr

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
, > distance=0.5em, > headstyle=bold, > titlestyle=normal, > way=bytext, > conversion=numbers] > \defineenumeration > [theorem] > [text=Theorem, > title=yes, > style=italic, > list=all, > listtext={Theorem }] > \starttext > \margintext{

[NTG-context] Re: (again) wrong destination types?

2023-11-21 Thread Bruce Horrocks
> On 20 Nov 2023, at 18:01, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > sorry for insisting, but this is important for my documents. > > I have the following sample: > > \setupinteraction[state=start, page=name, focus=standard] > \startt

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-21 Thread Fabrice Couvreur
arger in the lower rectangle). >> >> I attach the PDF created with your code. >> >> Best regards: Otared >> >> >> >> On 19 Nov 2023, at 18:56, Fabrice Couvreur >> wrote: >> >> Hi, >> I don't understand why th

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-20 Thread Fabrice L
>> >> >>> On 19 Nov 2023, at 18:56, Fabrice Couvreur >> <mailto:fabrice1.couvr...@gmail.com>> wrote: >>> >>> Hi, >>> I don't understand why the hatching of the two rectangles is not the same >>> color. >>> T

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-20 Thread Fabrice Couvreur
es is not the same > color. > Thanks for your help. > Fabrice > > \starttext > \setupbodyfont[8pt] > \startMPcode >path p, q, r, b ; > >z[0] = (2cm,0cm) ; >z[1] = (2cm,2cm) ; >z[2] = (0cm,2cm) ; > >

[NTG-context] (again) wrong destination types?

2023-11-20 Thread Pablo Rodriguez via ntg-context
Dear list, sorry for insisting, but this is important for my documents. I have the following sample: \setupinteraction[state=start, page=name, focus=standard] \starttext a\footnote{b} \stoptext If page is set to anything different than no in \setupinteractionscreen, focus=standard will

[NTG-context] Re: unwanted blank page

2023-11-20 Thread Pablo Rodriguez via ntg-context
d in the title page > (though I define sectionblocks for keeping different numbering systems > for the table of contents and the document) Section blocks are intended for that. Just a comment, if your cover (or title) page involves a one and only single page, you may use makeups, such

[NTG-context] Re: learning about the grid

2023-11-20 Thread Wolfgang Schuster
following example. \starttext \heightofstring{x} \the\exheight \stoptext To get one and a half line of interlinespace with ConTeXt you can set a fixed value with the \setupinterlinespace command. \setupinterlinespace[line=18pt] \showgrid \starttext \samplefile{lorem} \stoptext

[NTG-context] Re: learning about the grid

2023-11-20 Thread Pablo Rodriguez via ntg-context
lf line with 1.5em, such as in: \setupbodyfont[termes] \starttext \the\exheight\\ \the\dimexpr3\exheight\\ \the\emwidth \the\dimexpr1.5\emwidth\\ \stoptext Just in case it might help, Pablo ___ If your

[NTG-context] Re: It works after a few changes but ..

2023-11-20 Thread Ursula Hermann
list=all, listtext={Theorem }] \starttext \margintext{2.1.1}{\starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist \stoptheorem } \stoptext I see also in this thread that you have sad "yes" to Adity

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
cters] %%% %%% NUMERACIÓN DE PÁGINAS, SETUP % %%% \setuppagenumbering[alternative=doublesided,location={footer,inmargin}] \setupuserpagenumber[way=byblock] \starttext \startsectionblock[po

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-19 Thread Otared Kavian
document On 19 Nov 2023, at 18:56, Fabrice Couvreur <fabrice1.couvr...@gmail.com> wrote:Hi,I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help.Fabrice\starttext        \setupbodyfont[8pt]        \startMPcode           path

[NTG-context] Strange behavior with anglestriped()

2023-11-19 Thread Fabrice Couvreur
Hi, I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help. Fabrice \starttext \setupbodyfont[8pt] \startMPcode path p, q, r, b ; z[0] = (2cm,0cm) ; z[1] = (2cm,2cm) ; z[2] = (0c

[NTG-context] Re: learning about the grid

2023-11-19 Thread Pablo Rodriguez via ntg-context
ium] \starttext \input knuth \setuplayout[grid=yes]\page \input knuth \stoptext > 1. Why are the lines printed one over the other when grid=no? how do > profis then use context without grid? As said, ConTeXt is \setuplayout[grid=no] by default. As far as I can recall it, the default

[NTG-context] unwanted blank page

2023-11-19 Thread Hans van der Meer via ntg-context
sincerelydr. Hans van der Meer % test pagenumbering start-stop\setuppapersize[A5][A5]\starttext\setuppagenumbering[state=stop]\ConTeXt\space\contextversion\blankThis is page 1 without pagenumber.\crlf\page\setuppagenumbering[state=start]This should be a page with pagenumber 2.\crlfBut the pagenumber is

[NTG-context] Re: It works after a few changes but ..

2023-11-18 Thread Bruce Horrocks
em, title=yes, style=italic, list=all, listtext={Theorem }] \starttext \margintext{2.1.1}{\starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist \stoptheorem } \stoptext I see also in this thread that

[NTG-context] Problem with textstyle

2023-11-17 Thread Rik Kabel
tstyle=cap,      ] \starttext \startchapter    [title={Oops!}] \input knuth-gpt \par \stopchapter \stoptext Replacing the textstyle /cap/ by any of /bold/, /slanted/, /smallcaps/, and /italic/ results in a clean compilation but the indicated style is not applied. Usi

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
eration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em, alternative=serried, ] \starttext \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist \stoptheorem

[NTG-context] wrong destination types?

2023-11-17 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start, page=name, focus=standard] \starttext a\footnote{b} \stoptext In \setupinteraction, "focus=standard" is ignored when I use "page=name". I mean, link destinations are to the full page and they

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Aditya Mahajan
for something like this? \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em, alternative=serried, ] \starttext \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schö

[NTG-context] It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
, listtext={Theorem }] \starttext \margintext{2.1.1}{\starttheorem {The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist} \stoptheorem \stoptext Maybe someone can help me

[NTG-context] Re: Text and Remark

2023-11-17 Thread Ursula Hermann
=0.25ex, width=7cm] \starttext \margintext{2.1.1}\remark{Remark 1 Ach ist das schön, dass du da bist} \stoptext But Remark should be a number as you wrote in your example. Thank you Uschi Von: Bruce Horrocks Gesendet: Donnerstag, 16. November 2023 15:58:50

[NTG-context] Re: [ how to force hyphenation all words ]

2023-11-16 Thread Marco Patzer
On Thu, 16 Nov 2023 21:40:08 +0100 vm via ntg-context wrote: > Is there a command in context to force every word in a text to > hyphenate? e.g to typeset a text with "ge-dach-ten-streep-jes" Like this? \starttext \hyphenatedword{\samplefile{knuth}}

[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
{1}{\n}} \starttext %% dots are vertically aligned \dorecurse{6}{%% Foo \PavelFiller Bar\par} \hairline %% dots are not aligned \dorecurse{6}{%% \oneword\PavelFiller\oneword\par} \stoptext Marco LMTX 2023.09.04 19:15

[NTG-context] Text and Remark

2023-11-16 Thread Ursula Hermann
Dear List: I would like to have text next to the Remark Number \setupindenting[yes,small,first] \defineenumeration [remark] [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] \starttext \remark An enumeration (\tex{remark}, in this case

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
does nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How

[NTG-context] Re: \doifemptyelse issue?

2023-11-14 Thread Bruce Horrocks
ing an >> old document. > > because it's not empty (it's a command that you pass) > >> ---start--- >> \setdataset [DS] [a=] >> \setdataset [DS] [a=] >> \starttext >> :\datasetvariable{DS}{1}{a}: \crlf >> :\datasetvariable{DS}{2}{a}: \

[NTG-context] Re: named destinations in /GoToR

2023-11-14 Thread Pablo Rodriguez via ntg-context
ey in \setupinteraction. It works fine now, with both the options you provided (and the patch, many thanks for both). I have accidentally discovered an issue in which users may run in an uninteded ways. If many destinations have the same identifier, only the first one is generated. Using the fol

[NTG-context] Re: \doifemptyelse issue?

2023-11-14 Thread Hans Hagen
pass) ---start--- \setdataset [DS] [a=] \setdataset [DS] [a=] \starttext :\datasetvariable{DS}{1}{a}: \crlf :\datasetvariable{DS}{2}{a}: \crlf \doifemptyelse{\datasetvariable{DS}{1}{a}}{true}{false} \doifemptyelse{\datasetvariable{DS}{2}{a}}{true}{false} \stoptext ---end--- ConTeXt

[NTG-context] Re: named destinations in /GoToR

2023-11-13 Thread Michal Vlasák
Hello Pablo, On Mon Nov 13, 2023 at 5:25 PM CET, Pablo Rodriguez via ntg-context wrote: > Dear list, > > imagine I have a PDF document (named "whatever.pdf") such as the one > generated from this source: > > \setupinteraction[state=start, > focus=standard]

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
Dear list, imagine I have a PDF document (named "whatever.pdf") such as the one generated from this source: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}} \stoptext T

[NTG-context] \doifemptyelse issue?

2023-11-13 Thread Bruce Horrocks
The following MWE gives "false false" instead of "false true". I'm sure this used to work (18 months or more ago!) as I found it when re-processing an old document. ---start--- \setdataset [DS] [a=] \setdataset [DS] [a=] \starttext :\datasetvariable{DS}{1}{a}: \

[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Hans Hagen
into the option list of setupexternalfigure but could not find one whereby the location with respect to the baseline is either top, bottom or center. Maybe this is what you're looking for: \useMPlibrary [dum] \setuplayout [grid=yes] \showgrid \starttext foo \externalfigure[][][location

[NTG-context] Re: How can I use \naturalnumbers

2023-11-12 Thread Wolfgang Schuster
Ursula Hermann schrieb am 12.11.2023 um 17:54: Dear List, I would like to use the \integers.  I would like to use the commands in Text and also in Formulars. How to write in the right way? I have: \starttext \naturalnumbers {N} stoptext 1. You have to use math mode. 2. You need the

[NTG-context] How can I use \naturalnumbers

2023-11-12 Thread Ursula Hermann
Dear List, I would like to use the \integers. I would like to use the commands in Text and also in Formulars. How to write in the right way? I have: \starttext \naturalnumbers {N} stoptext Many thanka Uschi ___ If

[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Marco Patzer
to the option list of setupexternalfigure but could not > find one whereby the location with respect to the baseline is either > top, bottom or center. Maybe this is what you're looking for: \useMPlibrary [dum] \setuplayout [grid=yes] \showgrid \starttext foo \externalfigure[][][location=h

[NTG-context] Re: hard clipping in ConTeXt?

2023-11-11 Thread Hans Hagen via ntg-context
On 11/10/2023 6:17 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \setuplayout[page] \starttext \clip[hoffset=5mm, voffset=5mm, width=15mm, height=15mm] {\externalfigure[xml-mkiv.pdf]} \stopnotmode \stoptext Using PDF.js (from

[NTG-context] hard clipping in ConTeXt?

2023-11-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setuplayout[page] \starttext \clip[hoffset=5mm, voffset=5mm, width=15mm, height=15mm] {\externalfigure[xml-mkiv.pdf]} \stopnotmode \stoptext Using PDF.js (from current Firefox), xpdf, Evince, mupdf-gl, the viewer is able to find

[NTG-context] \xmlinclusion?

2023-11-09 Thread Hans van der Meer via ntg-context
\xmlinclusion\{\#1\} ===> "\xmlinclusion{#1}"\crlf \xmlflush{#1}\crlf {\bf End test}\blank\stopxmlsetups\startxmlsetups demo:test \xmlflush{#1}\stopxmlsetups\starttext\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blankThe following text is on page 52 of xml-mkiv.pdf:\crlf\type{

[NTG-context] Re: command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
iki (https://wiki.contextgarden.net/Commands_with_optional_arguments). It seems that the command has to be defined as unexpanded, such as in: \setupinteraction[state=start] \setupattachments[method=hidden] \usemodule[database] \starttext \unexpanded\def\ItemContents#1#2#3{\doiftext{#2}

[NTG-context] command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
ext{\cC}{ (also available at \cC)}.} I would like to do that with the "database" module. So far I have adapted the itemize environment, but I don't get the contents for items right: \usemodule[database] \starttext \def\ItemContents#1#2#3{\doiftext{#2} {\item {\em #

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
On 11/5/23 12:59, anton.chig...@mail.com wrote: > Wow! > This certainly is not the noobie version! > All I wanted was to put a circle around a letter > for emphasis. Anton, it works as you intend: \starttext \startusableMPgraphic{MetaCirc} draw fullcircle

[NTG-context] Re: Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
On Fri, Nov 03, 2023 at 01:16:15PM +0100, Wolfgang Schuster wrote: > > \starttext > > Hello world! > > \startformula > > X(f) = \startcases[align={right,left},distance=3pt] > > \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR > > \NC 0, \NC{} $|f|

[NTG-context] Re: Several math features broke for me in new Debian version

2023-11-03 Thread Wolfgang Schuster
+dfsg-2, several math features seem to break for me. Here is an example: \starttext Hello world! \startformula X(f) = \startcases[align={right,left},distance=3pt] \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR \stopcases \stopformula \stoptext There

[NTG-context] Re: Example is not working

2023-11-03 Thread Ursula Hermann
n help me. \starttext ... \stoptext is missing! > This litte example is from the wiki, i wanted to try \placeformula \starttext > \placeformula[formula:aformula] > \startformula > y=x^2 > \stopformula > \placeformula > \startformula > \int_0^1 x^2 dx >

[NTG-context] Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
. Here is an example: \starttext Hello world! \startformula X(f) = \startcases[align={right,left},distance=3pt] \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR \stopcases \stopformula \stoptext The above works very well in 2021.03.05.20230120+dfsg-1+deb1

[NTG-context] Re: Example is not working

2023-11-03 Thread Aditya Mahajan
On Fri, 3 Nov 2023, Ursula Hermann wrote: > Dear List, > i hope somone can help me. \starttext ... \stoptext is missing! > This litte example is from the wiki, i wanted to try \placeformula \starttext > \placeformula[formula:aformula] > \startformula > y=x^2 > \stopfo

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-02 Thread Vincent Hennebert
sabled one seems to be using the goodies file even though it’s not mentioned in the typescript. Any idea of why? For example: \usetypescriptfile[adobesource] \usebodyfont[adobesource] \setupbodyfont[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
urce] \setupbodyfont[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used. \switchtobodyfont[adobesource] This text is typeset in Regular with design sizes enabled. \stoptext What’s Next === * A harmonious-looking companion math font. *

[NTG-context] Adobe Source Typescript With Design Sizes

2023-10-31 Thread Vincent Hennebert
[adobesource] \usebodyfont[adobesource] \setupbodyfont[adobesource-nodesignsize] \starttext This text is typeset in Display when Regular should be used. \switchtobodyfont[adobesource] This text is typeset in Regular with design sizes enabled. \stoptext What’s Next === * A harmonious

[NTG-context] Re: Inline mathematics is stretched

2023-10-29 Thread Hans Hagen via ntg-context
On 10/29/2023 1:33 PM, Mia Bikey wrote: Hi, I was using \setupalign[verytolerant,stretch] so that the mono font does not go inside the right inline image but after using that command the inline math seems to spread. how about just using this \setupbodyfont[concrete] \starttext When $a, b

[NTG-context] Inline mathematics is stretched

2023-10-29 Thread Mia Bikey
should look. \\ When $a, b, c$ are given, two values of $x$ and no more can be found which shall make the function $ax^2 + bx + c$ vanish; that is, the equation always has two roots and no more. The roots may be equal or unequal, real or imaginary, according to circumstances. \\ \starttext \setupalign

[NTG-context] Re: typearea

2023-10-29 Thread Wolfgang Schuster
[width=60\averagecharwidth] \starttext \samplefile{lorem} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mail

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
upTypeArea[bcor=0mm,alphabets=3.1] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} \stoptext I got: texmf-dist/tex/context/third/typearea/t-typearea.tex' loading > Something like KOMA-TypeArea tex error   

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
Hi, I'm new to ConTeXt and try to use the module typearea (https://modules.contextgarden.net/cgi-bin/module.cgi/action=find/name=typearea). But the example doesn't work: \usemodule[typearea] \setupTypeArea[bcor=0mm,alphabets=3.1] \setuppagenumbering[alternative=doublesided]

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
t;> with right side inline images. > >> > >> Here is a Minimal Working Example: > >> > >> ConTeXt ver: 2023.09.26 18:19 LMTX > >> > >> \setupbodyfont[mono] > >> > >> \starttext > >> > >> Image on the right

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mikael Sundqvist
noticed a thin white line on the right side. > > Here is a Minimal Working Example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupbackgrounds[page][background=color,backgroundcolor=black] > \setuppagenumbering[alternative=doubles

[NTG-context] Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
] \setuppagenumbering[alternative=doublesided] \starttext a \stoptext Thisishowitlooks.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Hans Hagen
] \starttext Image on the right side gets issues. \placefigure[right]{}{\externalfigure[dummy]} \input tufte \\ Image on the left side is fine. \placefigure[left]{}{\externalfigure[dummy]} \input tufte \stoptext I fear there’s something generally wrong with mono font calculations, also affecting

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
issues > > with right side inline images. > > > > Here is a Minimal Working Example: > > > > ConTeXt ver: 2023.09.26 18:19 LMTX > > > > \setupbodyfont[mono] > > > > \starttext > > > > Image on the right side gets issues. > > \pla

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Henning Hraban Ramm
Am 28.10.23 um 14:17 schrieb Mia Bikey: Hi, I was using mono font as my default font but it appears to have issues with right side inline images. Here is a Minimal Working Example: ConTeXt  ver: 2023.09.26 18:19 LMTX \setupbodyfont[mono] \starttext Image on the right side gets issues

[NTG-context] Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
Hi, I was using mono font as my default font but it appears to have issues with right side inline images. Here is a Minimal Working Example: ConTeXt ver: 2023.09.26 18:19 LMTX \setupbodyfont[mono] \starttext Image on the right side gets issues. \placefigure[right]{}{\externalfigure[dummy

[NTG-context] Re: Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mikael Sundqvist
le: >> >> ConTeXt ver: 2023.09.26 18:19 LMTX >> >> \setupinteraction[state=start, color=black] >> >> \starttext >> >> \placeformula[eq:equation1] >> \startformula >> x >> \stopformula >> >> References are red on the first p

[NTG-context] Re: Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mia Bikey
tware issue but it is > still the same. > > Here is a minimal working example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupinteraction[state=start, color=black] > > \starttext > > \placeformula[eq:equation1] > \startformula > x > \stopformula > &g

[NTG-context] Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mia Bikey
\setupinteraction[state=start, color=black] \starttext \placeformula[eq:equation1] \startformula x \stopformula References are red on the first page \in[eq:equation1] \at{page}[eq:equation1] \input tufte \input tufte \input tufte \input tufte \input tufte Now they become black \in[eq:equation1] \at{page

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
ile},  bufferbefore=init,  output={\externalfilterbasefile.out},  readcommand=\typefile,  read=no,] \startbuffer[init] from sympy import * \stopbuffer \starttext \startluacode  local deg2rad = [[  %\startsympy  print(latex(rad(%angleVal%)))  %\stopsympy ]] local calcTrigFunct

[NTG-context] Combining python and lua

2023-10-25 Thread Alexandre Christe
cos(pi/6) = sqrt(3)/2 and display it in math mode. Here’s my current MWE, where I fail to convert the angles in radians and fail to display the result in symbolic form. \starttext \startluacode local angleList = {0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 240, 270, 300, 315, 330, 360

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
== % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zap

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Otared Kavian
rule mechanisms. > MWE: > > == > % ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupmarginrule[1][rulecolor=darkred] > > \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] > \setupsidebar[rulecolor=darkgreen] > >

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
ebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hans Hagen
ule not working Dear gang, The appears to be something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext

[NTG-context] sidebar and marginrule not working

2023-10-23 Thread Hamid,Idris
=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear at all (most attempts); or ii) the rules appear for a split-second then disappear (using sumatrapdf

[NTG-context] Re: Large unwanted white space

2023-10-22 Thread Fabrice Couvreur
i=-n upto n: > > drawdot(0,i*u) shifted(t*u,0) withcolor \MPcolor{blue}; > >endfor > >endgroup > >enddef; > > \stopMPcode > > __ %horizontal > line > > % big

[NTG-context] Re: Large unwanted white space

2023-10-21 Thread Hans Hagen
ontal line % big unwanted white space \starttext % \startex First exercise \startlinecorrection[blank] \startmidaligned \startcombination[1*2] {\startMPcode Suite(2,0); cross(1,1); Suite(4,4);

[NTG-context] Large unwanted white space

2023-10-21 Thread Fabrice Couvreur
wdot(0,i*u) shifted(t*u,0) withcolor \MPcolor{blue}; endfor endgroup enddef; \stopMPcode __ %horizontal line % big unwanted white space \starttext % \startex First exercise \startlinecorrection[blank] \start

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't work in framed environment. > > This is a short code: > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupalign[hz,hanging] > > \sho

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,loc

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Wolfgang Schuster
Csikos Bela schrieb am 20.10.2023 um 14:53: Hello: Protrusioin doesn't work in framed environment. This is a short code: \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \showframe \starttext \input tufte \blank \framed[fram

[NTG-context] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte }\

[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
tried the below code but the 3 digit labels' left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > \showframe > > \starttext > > \startitemize[n,broad][itemalign=flushright] > > \dorecurse{250}{\item } > > \sto

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