[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

[NTG-context] Testing whether an XML attribute exists

2023-10-17 Thread Michael Guravage
xmlatt{#1}{maiden_name}} \NC \xmlatt{#1}{birthday} \NC \xmlatt{#1}{email} \NC \xmlatt{#1}{mobile} \NC\NR \stopxmlsetups \starttext \xmlprocessfile{list}{stooges.xml}{} \stoptext stooges.pdf Description: Adobe PDF document

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

2023-10-15 Thread Aditya Mahajan
right and the widest > > label's left side located at the left margin. > > I tried the below code but the 3 digit labels' left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > \showframe > > \starttext > &

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

2023-10-15 Thread Wolfgang Schuster
e 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 } \stopitemize \stoptext You can use the width-key to set a value for the number, below is a example for

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

2023-10-15 Thread Pablo Rodriguez
I tried the below code but the 3 digit labels' left sides go into the > left margin. How can I fix it? Hi Csikos, width is the key, such as in: \showframe\showgrid\showstruts \starttext \startitemize[n,broad][width=.125tw, itemalign=flushright] \dorecurse{250}{\item } \s

[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
o the left margin. How can I fix it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item }\stopitemize\stoptextThe resulted pdf is attached as context-itemize-label-alignment.pdf.Thank you in advance,bcsikos context-itemize-label-alignment.pdf Description:

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
[references.border=darkblue]% \goto{#1}[url(#1)]\stop} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter[three]{Second chapter} \stoptext I see that the directive for link

[NTG-context] Gray gradient with Metapost

2023-10-05 Thread Fabrice Couvreur
Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Thanks. Fabrice \starttext \startMPcode u=1.2cm; interim ahangle := 30; z0=(0,0); z1=(3u,0

[NTG-context] How can I use a variable for a MetaPost coordinate ?

2023-10-04 Thread peter.hopcroft--- via ntg-context
on it. Is there a way of doing calculations on the coordinates for the draw using ConTexT variables like \textheight? Thank you, Peter Hopcroft -- \starttext Some text \startMPcode pickup pensquare scaled 1pt; draw (0mm,0mm)--(0mm,\textheight) withcolor red \stopMPcode More

[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
file called "three_lines.txt" to be created in the local directory containing the lines: one two three begin \setuplinenumbering[location=text,style=\small\tt] \starttext Location=text not working in main body \typefile[numbering=line]{three_lines.txt} But it does work i

[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
%% For PDF/A \setupbackend[ format={pdf/a-1b:2005}, % or pdf/a-1a:2005 profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=ISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=auto ==> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=start,metho

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200 Marco Patzer wrote: > What about: > > \unit{10 um} > \unit{10 µm} > > Can I assign µ to mean micro (prefix)? Found it: \registerunit [prefix] [µ=micro] \starttext \unit{10 micro meter} \crlf \unit{10 µm} \stoptext Should this be the d

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Wolfgang Schuster
Marco Patzer schrieb am 03.10.2023 um 12:31: Hi! I struggle using the unit Farad (unit of capacitance): The unit "farad" exists. \starttext %% prints 10 10 ft \unit{10 F} \unit{20 ft} \registerunit [F=Farad] \setupunittext [Farad=F] %% prints 10 F 20 F⋅t \unit{10 F} \

[NTG-context] Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
Hi! I struggle using the unit Farad (unit of capacitance): \starttext %% prints 10 10 ft \unit{10 F} \unit{20 ft} \registerunit [F=Farad] \setupunittext [Farad=F] %% prints 10 F 20 F⋅t \unit{10 F} \unit{20 ft} \stoptext When registering Farad as new unit it messes up feet. This looks like

[NTG-context] Frontpage and Titlepage

2023-10-02 Thread Jeroen
] \definealternativestyle [authorstyle] [\rm\tfb] [] \definealternativestyle [titlestyle] [\rm\bfd] [] \starttext \startmakeup [frontpage] \authorstyle {The Author} \blank \titlestyle {This is the Title} \stopmakeup \startmakeup [titlepage] \titlestyle {This is the Title} \stopmakeup

[NTG-context] bibliography questions

2023-10-02 Thread Henning Hraban Ramm
My example is setup as advised in the manual: """ %\mainlanguage[de] \usebtxdataset[beispiel][bib_example.bib] \setupbtx[dataset=beispiel] %\usebtxdefinitions[apa] \definebtxrendering[beispiel][apa][dataset=beispiel,group=beispiele] \starttext \placelistofpublications[b

[NTG-context] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into the footer rather than starting a new page. MWE for ConTeXt ver: 2023.09.26 18:19 LMTX :- \setuppapersize [A4] \showframe \starttext Knuth in knolumns \dorecurse{30}{\crlf} \startcolumns \input knuth \stopcolumns

[NTG-context] Re: formula alignment for mathalign

2023-09-28 Thread Mikael Sundqvist
Hi, On Thu, Sep 28, 2023 at 6:39 PM Aditya Mahajan wrote: > > Hi, > > The `align` parameter of `\setupformulas` is ignored in mathalign. Consider > the following MWE: > > \setupformulas[align=flushleft,leftmargin=2em] > > \starttext > \startformula &

[NTG-context] formula alignment for mathalign

2023-09-28 Thread Aditya Mahajan
Hi, The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the following MWE: \setupformulas[align=flushleft,leftmargin=2em] \starttext \startformula A = B \stopformula vs \startformula \startalign \NC A \NC B \NR \NC A \NC B \NR \stopalign \stopformula \stoptext

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Wolfgang Schuster
: \showframe\showgrid\showstruts \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[quarterline]}, after={\blank[quarterline]\null}] \starttext one \startblockquote \startitemize \item a

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Pablo Rodriguez
\showframe\showgrid\showstruts \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[quarterline]}, after={\blank[quarterline]\null}] \starttext one \startblockquote \startitemize \item a. \stopitemize \sto

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread gerard.degreve
] [ before={\blank[.125th]}, after={\blank[.125th]}] \starttext one \startblockquote \startitemize \item a \stopitemize \stopblockquote two \stoptext The blockquote disables the space after the list, but not before. Have I hit a bug or am I missing something? Many thanks for your help, Pablo

[NTG-context] item list inside a blockquote

2023-09-25 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[.125th]}, after={\blank[.125th]}] \starttext one \startblockquote \startitemize \item a \stopitemize

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf

[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf[before]}\endgraf}, after={\endgraf

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Hans Hagen
e/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Pablo Rodriguez
nction <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{o

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Mikael Sundqvist
ConTexT. The problem seems to occur when using mathcases > with some ConTeXt provided fonts, including pagella. This is a minimal not > working example : > > \setupbodyfont[pagella] > > \starttext > \startformula > \delta_{ij} = > \startmathcases > \NC 1 \NC \tex

[NTG-context] Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Vincent Picard
Hello, Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that won't compile with ConTexT. The problem seems to occur when using mathcases with some ConTeXt provided fonts, including pagella. This is a minimal not working example : \setupbodyfont[pagella] \star

[NTG-context] Re: Install fonts on MS Windows

2023-09-24 Thread Jean-Pierre Delange
ith the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi}   {\recursestring\input aristotle-grc\par} \ss Theano Didot: \input aris

[NTG-context] Re: Install fonts on MS Windows

2023-09-23 Thread Andres Conrado Montoya
i called the fonts with the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristotle-grc\par} \ss Theano D

[NTG-context] Re: Install fonts on MS Windows

2023-09-23 Thread Pablo Rodriguez
=*gfs* --all. I think this would do the trick. Compile the following source: \mainlanguage[agr] \definefontfamily[mainface][rm][GFS Didot] \definefontfamily[mainface][ss][Theano Didot] \setupbodyfont[mainface] \starttext \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristo

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Mikael Sundqvist
t; >> \definemathstackers[topbin][top][mathclass=\mathbinarycode] > >> > >> \definemathextensible[toprel][frownedupon]["2322] > >> \definemathextensible[topbin][frowned]["2322] > >> > >> \starttext > >> $x \frownedupon{4}

[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual they should work. Hraban \setuppapersize[A5,landscape] \useMPlibrary[dum] \definecolumnset[Two][n=2] \starttext \startcolumnset[Two] \dorecurse{5}{1\recurselevel\samplefile{lorem}\par} \startplacefigure[location=page

[NTG-context] problems with comments

2023-09-21 Thread Henning Hraban Ramm
hat doesn’t matter. "location=inmargin": the symbol is at the edge of the text, but not in the margin. Hraban \setupinteraction[ state=start, ] \setupcomment[ author=Don, location=inmargin, ] \starttext \samplefile{knuth} \comment[author=Me

[NTG-context] Re: \underbar in head

2023-09-21 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 07:01: However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Hans Hagen
;2322] \definemathextensible[topbin][frowned]["2322] \starttext $x \frownedupon{4} y + \frowned{!} z = 10$ \stoptext Interesting, but I think that the OP wanted to use \frown as an accent, \definemathaccent[topfake][top][offset=auto] \definemathtopaccent[topfake][frowned]["2322] \st

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