[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Jean-Pierre Delange
t a écrit : Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \unprotect \inst

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread ai2472206007
and ,I've found that along with the language, there is also a 'mode', and when I define a new language, does I also define such a new mode, like 'startmode[*en]stopmode'? ___ If your question is of interest to others

[NTG-context] How to Define a New Language

2024-05-24 Thread ai2472206007
Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \unprotect

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

2024-05-23 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 23.05.2024 um 18:59: Thanks so much but what should a person do if he wants to define an equivalent of \eTD? for example it can be useful for RTL language such as: \def\پسل{\eTD} and as you said this code will not work. You can create your own replacement

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

2024-05-23 Thread seyal . zavira
Thanks so much but what should a person do if he wants to define an equivalent of \eTD? for example it can be useful for RTL language such as: \def\پسل{\eTD} and as you said this code will not work. ___ If your

[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
; build_parshape(p,0,0,0,\baselinedistance,\strutheight,\strutdepth,\topskip) ; fill p withcolor \MPcolor{tan}; \stopuseMPgraphic \defineoverlay[myoverlay][\useMPgraphic{mymetafunpath}] %-- \define[2]\MySubSectionCommand

[NTG-context] Re: defining hashtag simulator

2024-05-19 Thread Hans Hagen
On 5/19/2024 5:40 AM, seyal.zav...@gmail.com wrote: Hi all, I want to define a command that simulate hashtag behavior in social networks, In other words, this command should put the hashtag sign at the beginning of it, replace spaces with dashes and also it should be a clickable link

[NTG-context] defining hashtag simulator

2024-05-18 Thread seyal . zavira
Hi all, I want to define a command that simulate hashtag behavior in social networks, In other words, this command should put the hashtag sign at the beginning of it, replace spaces with dashes and also it should be a clickable link and unbreakable world. I mean like this, for example

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

2024-05-18 Thread Pablo Rodriguez via ntg-context
ontfamily[cormora][rm][Cormorant] \setupbodyfont[cormora] \starttext \input zapf\par \switchtobodyfont[libertin] \doloopoverlist{\rm,\ss,\tt} {\recursestring\input zapf\par} \stoptext You may define font families (which are actually typeface families). I think they may be easier to use than t

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

2024-05-17 Thread Pablo Rodriguez via ntg-context
tle#1% {\setMPtext{FunnyFrame} {\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado #1}\hss}}} \define[2]\firstHeadings{% \dontleavehmode \switchtobodyfont[miCorm]% \FrameTitle#1% \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText} \setuphead [s

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

2024-05-17 Thread Wolfgang Schuster
#1}\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \define[2]\firstHeadings{% \dontleavehmode \switchtobodyfont[miCorm] \FrameTitle#1% \dontleavehmode \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText } \setuphead [section] [color=blue, command

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

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

[NTG-context] expansion question

2024-05-15 Thread Pablo Rodriguez via ntg-context
\attachment[file={\PDFfile[xml-mkiv]}] \stoptext I need the \PDFfile definition to be \protected for only one case (that I cannot reproduce in my sample). Is there any way to define an unprotected command and invoke it as protected only for a particular case? Many thanks f

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

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

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

2024-05-09 Thread Joel via ntg-context
I have found a few situations is confusing/breaking ConTeXt: - Footnotes inside tables, figures, frames, margins (won't render the cited item). - Custom index items inside those items (displays "entry not flushed"). My workaround has been to define a size 0 font \tfz, then put it in a b

[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-07 Thread Garulfo
yout isn't as complex as a newspaper, but a lot can be done (at the cost of some investment, but really, it's not that hard). LuaMetaTeX is definitely fun and pretty. Thanks devs and community. => One question <= Would it be possible to define several shapetex like \startshapetex[NAME1]

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

2024-04-30 Thread denis.maier
? Best, Denis % % Original MWE \define[2]\mytitle{% \switchtobodyfont[chorus]% #2 } \define[2]\mysubject{% \switchtobodyfont[chorus]% #2 } \setuphead[title][command=\mytitle] \setuphead[subject][command=\mysubject] \starttext \title{In Zapf Chancery

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

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the code you provided -- Muyik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

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

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option

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

2024-04-26 Thread ai2472206007
Thanks for your reply. The kanji part requires a specific font and typescript file, which I defined on my own computer but forgot to add to this example. This is something I didn't take into account. It's true, I need to think about what exactly my command needs, not build an all-powerful

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

2024-04-26 Thread Bruce Horrocks
tupcounter to each use of \setupcounter, pass on the ones that apply to setupframed to each use of \setupframed and so on. Thsi is releatively easy in Lua where you could define a list of all possible commands and which macro they apply to then loop through it looking to see if that option had been

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

2024-04-25 Thread ai2472206007
hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setupcounter]. I've defined the following sidenote command

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

2024-04-23 Thread Joel via ntg-context
is outside the placefigure, but color it white so its invisible: \define\showafigure{ \cite[author2019]<--somehow hide this invisible \placefigure{Caption\superscript{\currentfootnote}}}{\externalfigure[cow][width=\textwidth]} <--this places a superscript number inside the caption, but i

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-18 Thread Henning Hraban Ramm
rden.net/Command/*** and moving the "how-to" examples to a separate page (or pages). I agree. Let’s accept this as a rule for further wiki editing. Also, explain parameters with top priority in Command/setup* pages (keeping them in Command/define* pages etc. doesn’t hurt, but at least exp

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-14 Thread Peter Hopcroft via ntg-context
enough where a subject/tutorial page would make more > sense than examples spread over several single command pages. > > We could also define if the “main” reference page (with examples) is > \definestuff, \setupstuff, or \stuff – IMO \setupstuff makes the most sense, > si

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-14 Thread Henning Hraban Ramm
. tutorials! Often examples make sense in the reference pages, so the distinction is a bit fuzzy, but there are enough where a subject/tutorial page would make more sense than examples spread over several single command pages. We could also define if the “main” reference page (with examples

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
] \definecounter [alanindex] \setuphead [chapter] [insidesection={\setpagestate[alanpage]}, aftersection={\setpagestate[alanpage]}] \setuphead [title] [insidesection=, aftersection=] \define[1]\ChapterListPage {\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]–% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages

[NTG-context] Re: Unknown units es and dk

2024-03-23 Thread Wolfgang Schuster
't work with sizes bigger than about 19 feet (45 Theodores as of 2023), 575 centimeters, Toves, 230 Ediths or 16383 points. Continue and I'll use the largest value I can. You should also take a look at the lowlevel register manual (lowlevel-registers.pdf) which explains how you can define

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
bodyfont[modern, 12.50pt] If these lines are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but you

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
ve imposition to the printshop and they don't do binding >>> correction in their workflow, I'd need to set horoffset differently for >>> every single page (i.e. first, second, second-to-last and last the same; >>> 3th, 4th and from back the same etc.). Or is pageshift applied

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Hraban Ramm
value (paper thickness) should be enough in combination with an imposition schema. I.e. if I define a paper thickness and the number of pages that are in one booklet (as a single booklet or part of a "proper" book), then the page shift should work automatically. Well, for a sing

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Wolfgang Schuster
#1\enspace} \stoptexdefinition \setuphead[chapter][style={\bfc},numbercommand=\MyNumberChapterCommand,     page=no] \define[2]\MyNumberChapterCommand {#1\space\blackrule[width=1pt,height=22pt,depth=8pt]\space#2} \setuphead [chapter] [ page=no, command=\MyNumberChapterCommand, style=\bfc]

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
second-to-last and last the same; 3th, 4th > and from back the same etc.). Or is pageshift applied independently from > arranging? > > And then, it makes no sense to add the same value all the time. I don’t know > if BCOR works this way in LaTeX, but one value (paper thickness)

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
, and Hans’ manuals are also often "in progress". A visible TODO marker might help – I’m using the following in my book to keep track of incomplete sections: \defineregister[todos] \define[1]\TODO{\inouter{\tt\color[red]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[re

[NTG-context] Re: can we do binding correction?

2024-03-18 Thread Hraban Ramm
the same etc.). Or is pageshift applied independently from arranging? And then, it makes no sense to add the same value all the time. I don’t know if BCOR works this way in LaTeX, but one value (paper thickness) should be enough in combination with an imposition schema. I.e. if I define a paper

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-17 Thread Hraban Ramm
Am 16.03.24 um 22:28 schrieb Marco Patzer: On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] I’d have guessed

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: > How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] Marco

[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context
on the top and page numbers in the bottom corners. But somehow when I define this code, its also adding the page number not just to the bottom of the page, but to the top of the page as well. How do I remove the page number from the header texts? --Joel

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata  [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but your sample makes no use of it. S

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=3, pagenumber=yes, indicator=no] % \defineregister[learnedlong][compress=yes] \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1

[NTG-context] update

2024-03-11 Thread Hans Hagen
more or us to have a test option. Curvature detection is mostly a pdf efficiency feature and normally users should rely on the default to work okay. Other new mp features are relative and absolute points which makes it possible to define paths in a turtle graphics way (a bit like hlineto and

[NTG-context] Re: How to set section title based on section content?

2024-03-09 Thread Wolfgang Schuster
specific, giving titles that match the content inside. I could move the section titles inside the \event macro, but it means rewriting ~200 other macros. In other words, how do I define a section title by defining it somewhere in the content of the \event macro? \starttext \startsection

[NTG-context] How to set section title based on section content?

2024-03-09 Thread Joel via ntg-context
. I could move the section titles inside the \event macro, but it means rewriting ~200 other macros. In other words, how do I define a section title by defining it somewhere in the content of the \event macro? \starttext \startsection[\whatistitle] %<-- would display "Neon Tetras&

[NTG-context] Re: additional font faces

2024-03-08 Thread Henning Hraban Ramm
Am 08.03.24 um 18:02 schrieb Hans Hagen: On 3/8/2024 5:55 PM, Henning Hraban Ramm wrote: Hi, if I need an additional pair of upright and italic font faces, e.g. a Medium or Light version, would it make sense to define them like this: I'd just define a new typeface / bodyfont, using fo

[NTG-context] Re: additional font faces

2024-03-08 Thread Hans Hagen
On 3/8/2024 5:55 PM, Henning Hraban Ramm wrote: Hi, if I need an additional pair of upright and italic font faces, e.g. a Medium or Light version, would it make sense to define them like this: I'd just define a new typeface / bodyfont, using fo rinstance \starttypescript [sans

[NTG-context] additional font faces

2024-03-08 Thread Henning Hraban Ramm
Hi, if I need an additional pair of upright and italic font faces, e.g. a Medium or Light version, would it make sense to define them like this: % adapted from font-pre.mkxl \definefontalternative[md] \definefontalternative[mi] \definefontalternative[ms] \definealternativestyle [medium

[NTG-context] Re: Japanese

2024-03-01 Thread Emanuel Han via ntg-context
/TR/jlreq/ ) > > If they're in the last position of the line, they stay where they are. The > > correct behaviour can be seen in LibreOffice Writer in action. > > > > Rules 4, 5, ...: > > Combinations of inseparable characters... (see > > https://www.w3.org/TR/jlreq/#

[NTG-context] Re: Japanese

2024-02-29 Thread luigi scarso
re in the last position of the line, they stay where they are. The > correct behaviour can be seen in LibreOffice Writer in action. > > Rules 4, 5, ...: > > Combinations of inseparable characters... (see > https://www.w3.org/TR/jlreq/#possibilities_for_linebreaking_between_character >

[NTG-context] Re: Japanese

2024-02-29 Thread Jeong Dal via ntg-context
ere they are. The > correct behaviour can be seen in LibreOffice Writer in action. > > Rules 4, 5, ...: > > Combinations of inseparable characters... (see > https://www.w3.org/TR/jlreq/#possibilities_for_linebreaking_between_character > ) and eventually more, which I didn't test. > > It migh

[NTG-context] Re: Japanese

2024-02-28 Thread Wolfgang Schuster
nd enabled with paragraph alignment. Rules 4, 5, ...: Combinations of inseparable characters... (see https://www.w3.org/TR/jlreq/#possibilities_for_linebreaking_between_character ) and eventually more, which I didn't test. It might be useful to define three scripts nihongo_loose, niho

[NTG-context] Re: Japanese

2024-02-28 Thread Emanuel Han via ntg-context
stay where they are. The correct behaviour can be seen in LibreOffice Writer in action. Rules 4, 5, ...: Combinations of inseparable characters... (see https://www.w3.org/TR/jlreq/#possibilities_for_linebreaking_between_character ) and eventually more, which I didn't test. It might be useful to define thr

[NTG-context] Re: Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/27/24 10:10, Ursula Hermann wrote: >[...] > I have a question to my paragraphs: > > \definetextbackground[Paragaph][ > [...] >   \startparagraph Hi Uschi, if you define Paragaph, then you should use \startParagaph (and \stopParagaph). > \starttext Even if that work

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
there is no need to add \enableregime[utf] because ConTeXt is working with Unicode any way. I added also a line to define a math font, since I have read here on the mailing list that a math font should be set… Maybe someone among the experts can tell us if I am right, or if one has to set

[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
Am 24.02.24 um 13:53 schrieb Henning Hraban Ramm: Hi, I’m trying to use escaping in a typing environment. It works until I load the scite module. I need that only for btx highlighting, but I can’t limit it to that. What should I do? \usemodule[scite] \define[1]\SAY{\hfill{\rm #1

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
Hi, I’m trying to use escaping in a typing environment. It works until I load the scite module. I need that only for btx highlighting, but I can’t limit it to that. What should I do? \usemodule[scite] \define[1]\SAY{\hfill{\rm #1}} \setuptyping[TEX][ option=tex,% scite sets cld escape

[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks
Reset for the next question (in case no blank line) tracker = 0 the_question = {} end end end \stopluacode \def\startTestQuestions {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]} \def\stopTestQuestions {\ctxlua{userdata.for

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
t; I need another approach, one which works with layer sets. > > > > > > > > I would stop using p as an array, because with the layer sets approach > > > > we don't have a fixed order of the layers. > > > > > > > > So the definition of the layer

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
ition of the layers would be something like > > > > > > picture layerA; > > > layerA:=image( > > > label("Word 1", z1); > > > ); > > > > > > picture layerW; > > > layerW:=image( > > > label("

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
t;> > picture layerW;> > layerW:=image(> > label("Mot 2", z2);> > );> >> > picture layerM;> > layerM:=image(> > label("Parola 3", z3);> > );> >> > picture layerC;> > layerC:=image(> > label("Wort 4&q

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
layer sets approach we > > > don't have a fixed order of the layers. > > > > > > So the definition of the layers would be something like > > > > > > picture layerA; > > > layerA:=image( > > > label("Word 1", z1); > > > ); >

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
> layerW:=image( > > label("Mot 2", z2); > > ); > > > > picture layerM; > > layerM:=image( > > label("Parola 3", z3); > > ); > > > > picture layerC; > > layerC:=image( > > label("Wort 4", z3+z1); &

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
> > > picture layerA; > > > > layerA:=image( > > > > label("Word 1", z1); > > > > ); > > > > > > > > picture layerW; > > > > layerW:=image( > > > > label("Mot 2", z2); > &

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
> > > layerW:=image( > > > label("Mot 2", z2); > > > ); > > > > > > picture layerM; > > > layerM:=image( > > > label("Parola 3", z3); > > > ); > > > > > > picture layerC; > > > lay

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
> picture layerM; > > layerM:=image( > > label("Parola 3", z3); > > ); > > > > picture layerC; > > layerC:=image( > > label("Wort 4", z3+z1); > > ); > > > > picture layerY; > > layerY:=image( > > label(

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
label("Parola 3", z3); > ); > > picture layerC; > layerC:=image( > label("Wort 4", z3+z1); > ); > > picture layerY; > layerY:=image( > label("Nummer 5", z2+z3); > ); > > picture layerU; > layerU:=image

[NTG-context] Working with layer sets with Metapost

2024-02-14 Thread Emanuel Han via ntg-context
ayerM; layerM:=image( label("Parola 3", z3); ); picture layerC; layerC:=image( label("Wort 4", z3+z1); ); picture layerY; layerY:=image( label("Nummer 5", z2+z3); ); picture layerU; layerU:=image( label("number 6", z2+z1); ); After that, I would defi

[NTG-context] How to print the book title and section title where \reference is located?

2024-02-06 Thread Joel via ntg-context
on p. 11. To mark the pages, I'm simply dropping in macros called "\requirementA" "\requirementB" on whichever page of whichever book demonstrates it meets the requirement, then the file will aquatically list the book, section, and page number by searching for that macr

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-28 Thread Wolfgang Schuster
|<>| ##. SECTION TITLE paragraph ... . |<-->| margin ``` I wanted paragraph to begin on the same line the section title lies. \define[1]\SectionNumberCommand   {\margindata[inmargin]

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Hans Hagen
On 1/19/2024 9:31 AM, Shiv Shankar Dayal wrote: I see code like # define luametatex_version          210 # define luametatex_revision         10 # define luametatex_release          10 # define luametatex_version_string   "2.10.10" starting with C99 these become unnecessary. Rather t

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
> > Best wishes, > Taco > > > > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > > > I see code like > > > > # define luametatex_version 210 > > # define luametatex_revision 10 > &g

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Taco Hoekwater
Hi Shiv, Can you move this discussion to the dev-context list, please? https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/ Best wishes, Taco > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal > wrote: > > I see code like > > # define luametatex_version

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
I see code like # define luametatex_version 210 # define luametatex_revision 10 # define luametatex_release 10 # define luametatex_version_string "2.10.10" starting with C99 these become unnecessary. Rather they should be like const int luametatex_version=

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-18 Thread Gerion Entrup
with font versions and changing names so > > we depend on users to signal that. Also, with fonts you never know what > > updated fonts will break. > > > > In a next upload we'll define a list of names [5-9] so that we're more > > future proof. > > Thanks. >

[NTG-context] Re: Looking for itemize help

2024-01-16 Thread Jim
On Tue, Jan 16, 2024 at 01:15 (+), Bruce Horrocks wrote: > On 15 Jan 2024, at 16:15, Jim wrote: >> I would like >> something which automagically "does the right thing". > Not pretty, but... :-) > \setupwhitespace [big] > \setuppapersize [letter] >

[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Bruce Horrocks
On 15 Jan 2024, at 16:15, Jim wrote: > > I would like > something which automagically "does the right thing". Not pretty, but... :-) \setupwhitespace [big] \setuppapersize [letter] \define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} \startt

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-11 Thread Gerion Entrup
dated fonts will break. > > In a next upload we'll define a list of names [5-9] so that we're more > future proof. Thanks. Sure, it was my interest to understand, if the error lays in my installation or is due to the predefined files. Especially, since I did not manage to display a sing

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Hans Hagen
by default. It's not our hobby to keep up with font versions and changing names so we depend on users to signal that. Also, with fonts you never know what updated fonts will break. In a next upload we'll define a list of names [5-9] so that we're more future proof. Hans

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
    -outname \externalfilteroutputfile},     output=\externalfilterbasefile.pdf,     cache=yes,     readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext    Testing if we can include an asymptote image    \startplacefigure[location={here}, title={An Asymptote figure}] \startASY

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
to obtain simple integration for asymptote using the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves th

[NTG-context] Re: old style factorial symbol and theorems

2023-12-30 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 30.12.2023 um 09:40: I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? Replace the \inmframed command with \mcframed. \define[1]\oldfact   {\mcframed[frame=off,strut=no,leftframe=on,bottomframe

[NTG-context] Re: old style factorial symbol and theorems

2023-12-30 Thread Shiv Shankar Dayal
I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? On Wed, Dec 27, 2023 at 6:18 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > > > A simple alternative to tikz is the usage of \framed. >>

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Mikael Sundqvist
f \framed. >> >> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >&g

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work n

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31: What do you expect here to pass as argument to the oldfact command? I will pass something like n, 5, 10 etc. A simple alternative to tikz is the usage of \framed. \define[1]\oldfact   {\inmframed[frame=off,strut=no,leftframe

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-23 Thread Bruce Horrocks
; > \stoptext I'm not sure why textstyle=cap fails but textstyle=sc works. However textstyle=\cap (i.e. as a command) works. Also \abbreviation is already defined so you don't need to define it again. Thus your MWE becomes: %\definesynonyms[abbreviation] [abbreviations] [\AbbreviationsFull] \setup

[NTG-context] Re: QR Code

2023-12-21 Thread Ursula Hermann
y. After consulting MiKTeX's help, you decide that you want to accomplish this by defining the appropriate environment variables TEXINPUTS and BIBINPUTS (even though this is not a recommended method as it can slow down the compilation). In this page define and enable the variables: BIBINPUTS

[NTG-context] Re: error with definestartstop and startmode

2023-12-18 Thread Aditya Mahajan
led or disabled. > > %\enablemode[H] > > \startmode [H] >   \definestartstop [H] [color=blue] > \stopmode > > \startnotmode [H] >   \define\startH{\ignoreupto\stopH} > \stopnotmode > > \starttext > > xxx \startH yyy \sto

[NTG-context] Re: error with definestartstop and startmode

2023-12-17 Thread Wolfgang Schuster
\beginH TEST\endH test You can create different versions of your environment and let context choose one whether the mode is enabled or disabled. %\enablemode[H] \startmode [H]   \definestartstop [H] [color=blue] \stopmode \startnotmode [H]   \define\startH{\ignoreupto\stopH} \stopnotmode

[NTG-context] Re: APA 7 and https

2023-12-17 Thread Oliver Marugg
doi.org/__doi__}, > > Not all editors want the complete url for the doi, but some do. > The current scheme lets the user define url= and doi= as they wish (and > even both) and does not impose a particular format. > > Alan > > > > On Fri, 15 Dec 2023 22:07:25 - &g

[NTG-context] Re: How to input first n lines from file?

2023-12-16 Thread Henning Hraban Ramm
the rest of the lines. With \typebuffer you can define a "range", see https://wiki.contextgarden.net/Command/typebuffer But I guess you should write a Lua function that suits your use case. Hraban ___ If you

[NTG-context] Re: APA 7 and https

2023-12-16 Thread Alan Braslau via ntg-context
A "better" solution is to put doi = {https://doi.org/__doi__}, in your bibtex database but I would actually use url = {https://doi.org/__doi__}, Not all editors want the complete url for the doi, but some do. The current scheme lets the user define url= and doi= as they wish (and

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-14 Thread Gerion Entrup
Am Mittwoch, 13. Dezember 2023, 21:57:35 CET schrieb Bruce Horrocks: > > > On 13 Dec 2023, at 17:13, Gerion Entrup wrote: > > > > Is there a simple way to define a new command/environment and handle > > the keyword arguments in Lua? For example defining a frontend co

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-13 Thread Bruce Horrocks
> On 13 Dec 2023, at 17:13, Gerion Entrup wrote: > > Is there a simple way to define a new command/environment and handle > the keyword arguments in Lua? For example defining a frontend command > like this: I don't have the answer to your other questions but I do have an exampl

[NTG-context] LMTX: Command handling, Interface between TeX and Lua

2023-12-13 Thread Gerion Entrup
[itemize:1][symbol=3,itemalign=middle]`: How are the arguments handled and is this a generic process or specific to each command? Is there a simple way to define a new command/environment and handle the keyword arguments in Lua? For example defining a frontend command like this: \startsomething

[NTG-context] Re: Fractions

2023-12-10 Thread Gavin via ntg-context
ng font features for this, but I haven’t learned how to do that. Any advice is welcome. Example code below uses the Libertinus font, which has these superior and inferior numbers, to produce sample paragraph demonstrating a few options for fractions in text. Gavin \usetypescriptfile[libertinus] \se

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

2023-11-27 Thread Fabrice L
> described here: > https://tex.stackexchange.com/questions/471662/mptopdf-is-multipage-output-pdf-possible > But I'll need to achieve this with Metapost inside ConTeXt because I use > labels in Metapost which print text in Japanese, Korean , Arabic and Roman > script: Thanks

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
://tex.stackexchange.com/questions/471662/mptopdf-is-multipage-output-pdf-possible But I'll need to achieve this with Metapost inside ConTeXt because I use labels in Metapost which print text in Japanese, Korean , Arabic and Roman script: Thanks to ConTeXt, I can define appropriate fonts for each

  1   2   3   4   5   6   7   8   9   10   >