[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread seyal zavira
Also you can use this: assuming that you have a fixed size figure such as a pdf page: \definesymbol[Bsymbol][{\scale[width=1.6ex]{\externalfigure[myfile.pdf][page=1]}}] \define\mysym{\kern 0.2em \symbol[Bsymbol] \kern 0.3em} \starttext this is a sample\mysym text. \tfa{this is a sample\mysym

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Hans Hagen
; commands but they define a dimension and are not for doing measurements on rendered text. Is there a simple way to get the height a char as a dimension? MWE: ``` \starttext % Is it possible to replace 1cm with a common expression? This is the letter M. \scale[height=1cm]{a} should have the exact same

[NTG-context] Scale content to height of the font, measure font height

2024-06-10 Thread Gerion Entrup
for doing measurements on rendered text. Is there a simple way to get the height a char as a dimension? MWE: ``` \starttext % Is it possible to replace 1cm with a common expression? This is the letter M. \scale[height=1cm]{a} should have the exact same size as M. This should also be true {\tfc wit

[NTG-context] Re: Bibliography: separating different kinds of literature OR Sectioning bibliography by type

2024-06-09 Thread Ben Moon via ntg-context
] \definebtxrendering[bibrendering][mybib, aps][dataset=main] \starttext \cite[herbariumathome] \cite[zooniverse_logo] \section{Quellen: Bilder} %\placelistofpublications[bibrendering] \flushbtxrendering [bibrendering] [method=dataset, sorttype=index, filter=match(category:imagelink)] \section{Quellen: Webseiten

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Wolfgang Schuster
},     ] \definefont[highfont][name:ibmplexsansbold*default at 10pt] \definehighlight[newhigh][color=darkblue,style=highfont] \starttext \input{knuth} \Mynote{refrence} \startitemize \item \newhigh{\input{knuth}\Mynote{refrenceTwo}} \stopitemize \placenotes[Mynote] \stoptext as you can see the note number

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread seyal zavira
at 10pt] \definehighlight[newhigh][color=darkblue,style=highfont] \starttext \input{knuth} \Mynote{refrence} \startitemize \item \newhigh{\input{knuth}\Mynote{refrenceTwo}} \stopitemize \placenotes[Mynote] \stoptext as you can see the note number has same style all over the document. but i want

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread vm via ntg-context
On 08/06/2024 13:16, seyal.zav...@gmail.com wrote: \definenote[Mynote][location=text,before={},] \setupnote[Mynote] [location=left, textcommand= \scale [height=0.7ex] \raise 0.2ex\hbox, ] \starttext hello \Mynote{refrence} \placenotes[Mynote] \stoptext add {} this works

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 13:16, seyal.zav...@gmail.com wrote: > Hi all, > > There's a problem when I want to define the note so that it's > displayed according to the size and font of the text: Not sure I’m getting your point. But this should show a difference in font size: \definenote[Mynote]

[NTG-context] Scale notation base on current font

2024-06-08 Thread seyal . zavira
, ] \starttext hello \Mynote{refrence} \placenotes[Mynote] \stoptext but i cannot set it for \tfxx. also it's relative to my main body font, and my current font and color doesn't apply to text. for example if my current text has color red with another font the note doesn't change according

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Pablo Rodriguez via ntg-context
rlook formatting errors with commands (or simple errors with commands directly). The most basic sample may read (wrong spacing after command): \starttext \ConTeXt is awesome! \stoptext This is one in a bunch of errors that may be unnoticed. Just in case it might help, Pablo

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Wolfgang Schuster
\starttext \startlines «quoted text» « quoted text » \stoplines \setcharacterspacing[frenchpunctuation] \startlines «quoted text» « quoted text » \stoplines \stoptext end example 2. When you use the quotation command or environment ConTeXt adds a space between the quotation marks

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Alan Braslau via ntg-context
: > Peter Münster schrieb am 07.06.2024 um 13:31: > > On Thu, May 30 2024, Peter Münster wrote: > > > >> \mainlanguage[fr] > >> \setcharacterspacing[frenchpunctuation] > >> \starttext > >> bla \quotation{OK} bla\\ > >> bla «OK»

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Wolfgang Schuster
Peter Münster schrieb am 07.06.2024 um 13:31: On Thu, May 30 2024, Peter Münster wrote: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Not Ok: a space is missing \stopquotation \stoptext It seems

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Peter Münster
On Thu, May 30 2024, Peter Münster wrote: > \mainlanguage[fr] > \setcharacterspacing[frenchpunctuation] > \starttext > bla \quotation{OK} bla\\ > bla «OK» bla > \startquotation > Not Ok: a space is missing > \stopquotation > \stoptext It seems, that this wo

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
gt; \setupdelimitedtext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
ext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
={\setupindenting[next]},     after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster
[1ex] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded within the blockquote. I would like it to use like

[NTG-context] background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
] [ location=paragraph, background=background:test, frame=off, ] \defineframedtext [testC] [ background=background:test, frame=off, width=broad, ] \starttext \starttestA \input tufte \stoptestA \starttestB \input tufte

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded within the blockquote. I would like it to use like

[NTG-context] Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded within the blockquote. I would like it to use like this: ``` \definedelimitedtext[extract][blockquote

[NTG-context] Re: Kerning in Noto Serif

2024-06-06 Thread Lutz Haseloff
t; Hi all, >> I can't get Kerning working with Noto Serif. >> My minimal file is: >> >> \definefontfeature[oldstylenumber][onum=yes] >> \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] >> \starttext >> Line 1: {VAVAVAVAVAVA 12345}\par >&g

[NTG-context] Re: Kerning in Noto Serif

2024-06-06 Thread Henning Hraban Ramm
Am 06.06.24 um 09:41 schrieb Lutz Haseloff: Hi all, I can't get Kerning working with Noto Serif. My minimal file is: \definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff

[NTG-context] Kerning in Noto Serif

2024-06-06 Thread Lutz Haseloff
Hi all, I can't get Kerning working with Noto Serif. My minimal file is: \definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 3: {\addff

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Hans Hagen
\stopxmlsetups \setuppapersize[A1] \setupbodyfont[dejavu,ss,1pt] \setuplayout[tight] \setupalign[verytolerant,flushleft,nothyphenated] \starttext \xmlprocessbuffer{main}{test}{} \stoptext and then run >context oeps >mutool draw -F txt oeps.pdf and get \StartSomething \StartWhat test \St

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
t > could be corrected directly from the proofreader in this file2.tex file, > but won't do that in the xml file. I don’t mean the proofreader personally, but TeX code may not be inherenlty more readable that XML code. Compile the following: \starttext \startXML St.Martin A comprehen

[NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread Henning Hraban Ramm
Am 05.06.24 um 16:03 schrieb ai2472206...@yeah.net: As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} \starttext \placecontent% if i dont place toc command , ConText can render it. \chapter{anything else} \section{\cmdi

[NTG-context] After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread ai2472206007
As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} \starttext \placecontent% if i dont place toc command , ConText can render it. \chapter{anything else} \section{\cmdi{with command} section} \section{\cmdii{with command} section

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands which then looks something like this: \starttext \startchapter[title=St. Martin]\stopchapter \startsection[title=The medieval part of the church

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
uch as in this case. (If nothing else, it might mislead a n00b >>>> > into thinking that you should get output for text preceding \starttext.) >>> Here is the documentation for the tag extension: >>> https://wiki.contextgarden.net/Help:Context >> Hi Taco,

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Wolfgang Schuster
?) cases. But I'd argue that it is not always a good thing, such as in this case. (If nothing else, it might mislead a n00b into thinking that you should get output for text preceding \starttext.) Here is the documentation for the tag extension: https://wiki.contextgarden.net/Help:Context Hi

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
n many (most?) cases. But I'd argue that it is not always a good >>> thing, such as in this case. (If nothing else, it might mislead a n00b >>> into thinking that you should get output for text preceding \starttext.) > Here is the documentation for the tag extension: > https:

[NTG-context] Re: Vanishing floats with location=split and \start ... \stopsplittext within

2024-06-04 Thread Kirill Davidov
mounts of > text a float may end up being split in two on a single page, however I > could not replicate it. Replicated it: \definefloat[codelisting][codelistings] \setupcaption[codelisting][location=top] \setuplabeltext[english][codelisting=Listing ] \showboxes \starttext %\dorecurse{37}{line\cr

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
such as in this case. (If nothing else, it might mislead a n00b >> into thinking that you should get output for text preceding \starttext.) > The reason why you get no text isn't that you wrote it before \starttext but > that no font was loaded yet. By default ConTeXt postpones the loa

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Taco Hoekwater
;> thing, such as in this case. (If nothing else, it might mislead a n00b >> into thinking that you should get output for text preceding \starttext.) Here is the documentation for the tag extension: https://wiki.cont

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Wolfgang Schuster
output for text preceding \starttext.) The reason why you get no text isn't that you wrote it before \starttext but that no font was loaded yet. By default ConTeXt postpones the loading of the default fonts until \starttext because when you use a different font on your document this is normally

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
On Tue, Jun 4, 2024 at 19:30 (+0200), Wolfgang Schuster wrote: > Jim schrieb am 04.06.2024 um 18:01: >> Hi, >> When I run Example 1 given there, I get three bullet symbols, but no >> "column N ..." >> text. >> Note that the >>

[NTG-context] Re: https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Wolfgang Schuster
Jim schrieb am 04.06.2024 um 18:01: Hi, When I run Example 1 given there, I get three bullet symbols, but no "column N ..." text. Note that the \starttext is *after* the \startitemize ... \stopitemize Q1: Is my ConTeXt installation broken, or is the wiki page show

[NTG-context] https://wiki.contextgarden.net/Command/blank

2024-06-04 Thread Jim
Hi, When I run Example 1 given there, I get three bullet symbols, but no "column N ..." text. Note that the \starttext is *after* the \startitemize ... \stopitemize Q1: Is my ConTeXt installation broken, or is the wiki page showing output that does not

[NTG-context] Re: Vanishing floats with location=split and \start ... \stopsplittext within

2024-06-04 Thread Hans Hagen via ntg-context
[codelisting][codelistings] \setupcaption[codelisting][location=top] \setuplabeltext[english][codelisting=Listing ] %\showboxes \starttext \input knuth \input knuth \input knuth \input knuth % Filler. Filler. Filler. Filler. % uncomment to push out a full page. the float will appear

[NTG-context] Vanishing floats with location=split and \start ... \stopsplittext within

2024-06-04 Thread Давыдов , Кирилл Александрович
] \setuplabeltext[english][codelisting=Listing ] %\showboxes \starttext \input knuth \input knuth \input knuth \input knuth % Filler. Filler. Filler. Filler. % uncomment to push out a full page. the float will appear \startplacecodelisting[ title=My great C program on display!, location

[NTG-context] issue with signing

2024-06-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred

[NTG-context] Re: setuphead in connection with the command argument

2024-06-03 Thread Gerion Entrup
because it isn't needed to choose a layout > for the heading, all the parameter does is to change the font/style > which is independent of the layout. > Thank you. I think that I understand command vs alternative now. With try and error, I experienced, that the font/style of the `

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread ai2472206007
frame=off] \setuptext [style={\ss}] \setuptexttexts [margin] [] [\marginframe{\hbox orientation 1 {DRAFT}}] [\marginframe{\hbox orientation 1 {DRAFT}}] [] \starttext \chapter{C:Some Word} \dorecurse{5}{ \section{S:Some Wo

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Hans Hagen
,ss,10pt] \starttext Hello \startformula \Gamma_1 \stopformula \stoptext Add     features=math\mathsizesuffix to \definefontfamily when you set the math font. By default all font (including monospace and math) get "features=default".

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Alex
t LMTX with my custom font > > definition: Math error: parameter 'subshiftdown' with id 49 in style 0 > > is not set > > > > \usetypescriptfile[alegreya_libertinus] > > \setupbodyfont[alegreya-light,ss,10pt] > > > > \starttext > > > >

[NTG-context] Re: Issue with latest in math mode

2024-06-02 Thread Wolfgang Schuster
Alex schrieb am 02.06.2024 um 14:08: Hi everyone, I’m facing an error with the latest LMTX with my custom font definition: Math error: parameter 'subshiftdown' with id 49 in style 0 is not set \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \starttext Hello

[NTG-context] Issue with latest in math mode

2024-06-02 Thread Alex
Hi everyone, I’m facing an error with the latest LMTX with my custom font definition: Math error: parameter 'subshiftdown' with id 49 in style 0 is not set \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \starttext Hello \startformula \Gamma_1 \stopformula

[NTG-context] Specify separator within setupbtx for custom bibliography rendering

2024-06-01 Thread Gerion Entrup
tor:4={sfd}, ] \startsetups btx:aps:cite:special % just a dummy \btxcitereference \currentbtxtag \stopsetups \setupbtx[aps:cite][ alternative=special, ] \starttext Both said something~\cite[knuth1, someother]. \placelistofpublications[bibrendering] \stoptext ```

[NTG-context] Re: setuphead in connection with the command argument

2024-06-01 Thread Wolfgang Schuster
e "alternative=text" you need \defineheadalternative because it allows you to set a few flags which are needed here. The biggest difference between both is that command uses arguments to place the number (#1) and title (#2) while headalternative use the two macros \headnumbercontent and \headtext

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
setups >> >> \definehead [MyChapter] [chapter] >> \setuphead [MyChapter] >>[ style={...}, % heading style >> after={\setup{PlaceSubTitleAndIntro}}, >>] >> >> \starttext >> \startMyChapter[title={Foo}] >>[ subtitle={Ba

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
font[SerifBold sa 1.5] > \color[darkred]{\structureuservariable{subtitle}} >\stopfont > \stopframed >\stoplocalheadsetup > \stopsetups > > \defineheadalternative >[christian_dietrich] >[renderingsetup=christian_dietrich] > > \setuphead

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
> \structureuservariable(subtitle) > > % Set font and style etc for the intro text here > \structureuservariable(intro) > \stopsetups > > \definehead [MyChapter] [chapter] > \setuphead [MyChapter] > [ style={...}, % heading style >

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
context"1\\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

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Rik Kabel
of the main language. begin example \starttext \startplacefigure[title=\quotation{English quotes}] \midaligned{\blackrule[width=6cm,height=2cm,color=red]} \stopplacefigure \start \mainlanguage[nl] \startplacefigure[title=\quotation{Dutch quotes}] \midaligned{\blackrule[width=6cm,height=2cm,color

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Peter Münster
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)\\ Dates: \date[

[NTG-context] Re: Number in a circle

2024-05-30 Thread Kip Warner
x00300-0x003FF,0x02100-0x02800,0x1F000-0x2] % look up the right Unicode ranges! [check=no,force=no] \definetypeface[circle_typeface][rm][serif][times][default][fallbacks=SymbolFB] \starttext Some text in default font before temporarily switching just for this

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
Peter Münster schrieb am 30.05.2024 um 13:59: Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Wolfgang Schuster
] [alternative=christian_dietrich, header=empty, style=] \starttext \startchapter[title=Chapter title][subtitle=Chapter subtitle] \samplefile{lorem} \stopchapter \stoptext end example Wolfgang ___ If your

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Wolfgang Schuster
. As you can see in the following example \mainlanguage change the float label and the quotation marks but \language changes only the quotation marks and uses the label of the main language. begin example \starttext \startplacefigure[title=\quotation{English quotes}] \midaligned{\blackrule[width

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Rik Kabel
documents, there is a missing space: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Not Ok: a space is missing \stopquotation \stoptext Is this a bug or a feature? How could I get a space before "»" please? T

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
definehead [MyChapter] [chapter] \setuphead [MyChapter] [ style={...}, % heading style after={\setup{PlaceSubTitleAndIntro}}, ] \starttext \startMyChapter[title={Foo}] [ subtitle={Bar}, intro={Some explanation}, ] The text of the chapter \stopMyChapter \stopt

[NTG-context] missing space with French quotation

2024-05-30 Thread Peter Münster
Hi, When using \start/stopquotation in French documents, there is a missing space: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Not Ok: a space is missing \stopquotation \stoptext Is this a bug or a feature? How

[NTG-context] Re: Number in a circle

2024-05-30 Thread Henning Hraban Ramm
] \starttext \utfchar{0x02460} \stoptext The above just prints the vanilla character '1'. That might be because the online editor doesn't have access to the font. So I tried compiling the above locally with the Symbola.otf file in the same directory and same problem. My example

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
zes for title, subtitle and the intro. > > I chose to use the "command=" argument in setuphead for that. > > However, I'm not quite sure about it's internals. > > > > Let's begin with a minimal example: > > ``` > > \define[2]\MyChapter{% > > #1

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt] > > \starttext > \startchapter[title=foo][subtitle=bar, intro={some explanation}] > some text > \stopchapter > \stop

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ot quite sure about it's internals. > > Let's begin with a minimal example: > ``` > \define[2]\MyChapter{% > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
; argument in setuphead for that. However, I'm not quite sure about it's internals. Let's begin with a minimal example: ``` \define[2]\MyChapter{% #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) } \setuphead[title, chapter][command=\MyChapter] \setupbodyfont[11pt]

[NTG-context] self defined conversion in \date

2024-05-30 Thread Peter Münster
Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self defined conversion in date: \date[d=1][day:mytest

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/28/24 20:06, Hans Hagen wrote: > On 5/28/2024 6:25 PM, Tomáš Hála wrote: >> Hi Pablo, >> >> unfortunately, that it is not possible: >> >> http://lua-users.org/wiki/PatternsTutorial, section Limitations. > > \starttext > \startTEXpage[pagestate=s

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 29.05.2024 um 14:05: I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset

[NTG-context] lua error in `back-exp.lmt`

2024-05-29 Thread Sylvain Hubert
ConTeXt LMTX version: 2024.05.27 18:16 Sample tex file: \setupbackend[export=yes] \starttext x \startsectionlevel \startitemize \item \startitemize \item \startitemize \item \stopitemize \stopitemize \stopitemize \stopsectionlevel \stoptext Error log: tex error > tex error on lin

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Taco Hoekwater
> On 29 May 2024, at 14:05, ai2472206...@yeah.net wrote: > > I'm defining a command to generate options for multiple choice questions, > but at the moment I'm stuck at this step. > I want to get a number and assign a value to the counter, but why can't I get > it? >

[NTG-context] Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset] \setdataset[myset] [foo=1,boo=4] \newcount\tempa

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Henning Hraban Ramm
Am 28.05.24 um 20:06 schrieb Hans Hagen: On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em]     \startluacode

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
t; > > \definesectionlevels > > [default] > > [section, subsection, subsubsection, subsubsubsection, > subsubsubsubsection] > > > > \starttext > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > &

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
ote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > > > > \definesectionlevels > > [default] > > [section, subsection, subsubsection, subsubsubsection, > subsubsubsubsection] > > > > \starttext > >

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
>   [textcircled] >   [width=1.4em, >    height=1.4em, >    frame=off, >    background=textcircle, >    framecolor=colour_text, >    location=low, >    offset=none] >    >    \starttext >    Here are the numbers \textcircled{1}, \textcircle

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
hat uses as its background % the above overlay... \defineframed [textcircled] [width=1.4em, height=1.4em, frame=off, background=textcircle, framecolor=colour_text, location=low, offset=none] \starttext Here are the numbers

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
x2] % look up the right Unicode ranges! [check=no,force=no] \definetypeface [myfonts] [rm] [serif] [times] [default] [fallbacks=SymbolFB] \starttext \utfchar{0x02460} \stoptext The above just prints the vanilla character '1'. That might be because the online editor doesn'

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Hans Hagen
On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local pat = (lpeg.Cmt(lpeg.P

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Tomáš Hála
Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. The best, Tomáš On Tue, May 28, 2024 at 06:12:51PM +0200, Pablo Rodriguez via ntg-context wrote: > Dear list, > > I have the following sample: > >

[NTG-context] regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local str = "this is that" context(str:match("(this|these)")) \stopluacode \stopTEXpage

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
=textcircle,   location=low,     offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you is how to set the colour of the circle to match the other text on my page

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-28 Thread Denis Maier via ntg-context
Well, you define less levels than you need. Try this : % \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext

[NTG-context] lua error in `strc-lev.lua`

2024-05-28 Thread Sylvain Hubert
ConTeXt LMTX version: 2024.05.27 18:16 Reproducible example: \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
, > frame=off, >     background=textcircle, >   location=low, >     offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you i

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
erlayWidth,     y      = OverlayHeight/2,  ] ; \stopuniqueMPgraphic \defineoverlay   [svgback]   [\useMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext Hello Seyal, This does work but

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
us=.5fw, >   radius=\dimexpr\framedwidth/2\relax, >   offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you kindly, Wolfgang. That worked perfectly. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.theverti

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
,   radius=.5fw,   offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it failed: Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, dk, or54sp; but yours

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
>     y      = OverlayHeight/2,  ] ; > \stopuniqueMPgraphic > > \defineoverlay >   [svgback] >   [\useMPgraphic{centered_svg}] > > \defineframed[Sback][location=low,background=svgback,frame=off,offset > =8pt] > > \starttext > this is a sample \Sback{1} text >

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
   radius=.5fw, >   offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it failed: Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, dk

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
these commands. Any help appreciated. I can't provide a circle but I can give you a box with rounded corners. \defineframed [textcircled] [ width=1.5em, height=1.5em, location=low, corner=round, radius=.5fw, offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1

[NTG-context] Re: Number in a circle

2024-05-27 Thread seyal zavira
eMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext On Mon, May 27, 2024 at 12:38 AM Kip Warner wrote: > Hello list, > > I would like to typeset a number in a circle. Nothing fancy. N

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-26 Thread Wolfgang Schuster
] \starttext \startTEXpage[pagestate=start, offset=1em] \rm a\ss a\\ {\rm a\ssd a}\\ {\rm a\ssx a}\\ {\rm a\ssxx a} \stopTEXpage \stoptext Scaled \ssx and \ssxx are wrong in LMTX (not scaled at all). All font sizes are scaled fine in MkIV. In both

[NTG-context] Re: page number

2024-05-26 Thread Wolfgang Schuster
in \setuphead. begin example \setuppagenumbering [location=, alternative=doublesided] \setupheadertexts [chapter] [pagenumber] [pagenumber] [chapter] \definetext [chapterheader] [header] [pagenumber] \setuphead [chapter] [header=chapterheader] \starttext \dorecurse{10

[NTG-context] wrong font scaling in LMTX?

2024-05-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][ss][TeX Gyre Heros] [scale=0.125] \setupbodyfont[mainface] \starttext \startTEXpage[pagestate=start, offset=1em

[NTG-context] Re: simplify side by side Poems

2024-05-25 Thread seyal . zavira
Thanks so much i also could define poem structure like this: Using table method: \protected\def\PoemStart#1\PoemStop {\bTABLE[setups=tablepoem]#1\eTABLE} \protected\def\Beyt#1 {\bTR #1 \eTR} \protected\def\Misra#1 {\bTD #1 \eTD} \starttext \PoemStart \Beyt{\Misra{the first sentence

[NTG-context] Re: Problem with PNG images in the latest standalone version

2024-05-24 Thread Hajtmar Jaroslav
in different ways. Thanx Jaroslav \setupinteraction[state=start] \starttext JPG URL: \externalfigure[https://hajtmar.cz/temp-ntg/gyzalogo-new.jpg][height=3.5cm] \par JPG local: \externalfigure[gyzalogo-new.jpg][height=3.5cm] \par PNG URL: \externalfigure[https://hajtmar.cz/temp-ntg/gyzalogo

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