Re: [NTG-context] Xml filtering in Lua

2022-11-17 Thread Thomas A. Schmitz via ntg-context
Hans I think this is exactly the approach I’m looking for: collecting everything in Lua tables and then retrieving and typesetting it later. I’m experimenting with it right now. I will have to define a proper lxml.command for every xml tag, I guess; otherwise, the xml gets serialized? I’ll play

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
questions :-) Anyway: If you've filtered something out like this local tree = xml.filter (t, "../chapter[@title='mytitle'") you can then apply a command to it lxml.command(lxml.id(tree), ".", "xml:chapter:command") and have to define the command as \star

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Fabrice Couvreur via ntg-context
\usetikzlibrary[matrix,decorations.pathreplacing,fit,positioning] \stopenvironment\startenvironment[premiere-macros] \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace} \protected\def\N{\doifnextcharelse{*}\MyNstarred\MyNnormal} \def\MyNstarred*{\m{\mathbb{N}^*}\autoinsertnextspace} \def\

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
=color,    backgroundcolor=darkgreen,    width=\textwidth] \define[1]\ExampleHeadCommand   {\offset[leftoffset=-2.25ex]{\ExampleHeadFrame{#1}}} \defineenumeration   [example]   [...,    headcommand=\ExampleHeadCommand,    ...] Wolfgang

Re: [NTG-context] font features

2022-11-03 Thread Hans Hagen via ntg-context
, _ in pairs(Feature_Table) do   Context_Name = "f:" .. name   Parsed_Features[name] = Context_Name   context.definefontfeature( { Context_Name }, { name="yes" } ) end COMMENTS This should produce a lua table with ConTeXt fontfeatures and define those features. The t

Re: [NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
.. name Parsed_Features[name] = Context_Name context.definefontfeature( { Context_Name }, { name="yes" } ) end COMMENTS This should produce a lua table with ConTeXt fontfeatures and define those features. The table appears to be correct: Parsed_Features={ ["aalt"]="f:

Re: [NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
On 11/3/22 12:52, Herbert Voss via ntg-context wrote: You'll get only the features with otfinfo in the terminal. For example: Thank you, I was aware of that. But that's only the first step: you still have to use this list to define ConTeXt featuresets and then typeset. I was trying to build

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
dto connections also image( draw (offset_bc, offset_br) -- (vc, vr) withcolor colour_edge withpen pencircle scaled 0.05bp; ); ); endfor; draw hexgrid scaled SCALE; draw vertices scaled SCALE; draw connections scaled SCALE; draw perceptr

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-14 Thread Hans Hagen via ntg-context
=text solves the problem with no spaces between value and unit in the math environment. That is a terrific solution that doesn’t require any messing with phys-dim.mkxl. You do not need to define a new unit. I got your result using this line: \setupunits[alternative=text] This fixed the most

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Gavin via ntg-context
roblem with no spaces > between value and unit in the math environment. That is a terrific solution that doesn’t require any messing with phys-dim.mkxl. You do not need to define a new unit. I got your result using this line: \setupunits[alternative=text] This fixed the most significant pro

Re: [NTG-context] new hash for buffer (as file)

2022-09-22 Thread Max Chernoff via ntg-context
Hi Pablo, > I mean, to get hash of the file attached to the document, I need to save > the buffer for "context(utilities.sha2.hash256(io.loaddata(buffer)))". > > But I don’t need to save the buffer to attach it to the PDF document. > > My question is how to de

[NTG-context] new hash for buffer (as file)

2022-09-22 Thread Pablo Rodriguez via ntg-context
’t need to save the buffer to attach it to the PDF document. My question is how to define \shabufferfile to avoid \savebuffer (only required to get the hash). An approach would be the following one. If I’m not totally wrong, "savebuffer" (https://github.com/contextgarden/context/blob/main/te

Re: [NTG-context] new uplaod

2022-09-22 Thread Alexandre Christe via ntg-context
... By the way, if I define in the preamble \autofences, is there a command to disable it locally? Would be very helpful to deal with the above situations. Best regards, Alex Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit : > On 9/10/2022 9:45 AM, Alexandre Ch

[NTG-context] Lato typescripts (MKIV/LMTX)

2022-09-17 Thread Adam Reviczky via ntg-context
se source> level 2, order 6, name '/usr/share/texmf/tex/context/fonts/mkiv/type-imp-lato.mkiv' fonts > defining > font with asked name 'lato-regular' is not found using lookup 'file' fonts > defining > unable to define 'lato-regular' as 'lato-12pt-ss-tf-0--0' -

[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Bruce Horrocks via ntg-context
wrap it or replace it with something that > will highlight indexed items in the text where they occur, e.g. change their > colour. > > I could do this with a global find and replace (across many files) to replace > \index with \MyIndex, say, and then define a \MyIndex that understands

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Mikael Sundqvist via ntg-context
tems in the text where they occur, e.g. change > their colour. > > I could do this with a global find and replace (across many files) to > replace \index with \MyIndex, say, and then define a \MyIndex that > understands the various parameter options but this is a hassle. Before I do &

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Richard Mahoney via ntg-context
redefine \index to wrap it or replace it with something that will highlight indexed items in the text where they occur, e.g. change their colour. I could do this with a global find and replace (across many files) to replace \index with \MyIndex, say, and then define a \MyIndex that understands

[NTG-context] Quick way to proofread / check index entries?

2022-09-03 Thread Bruce Horrocks via ntg-context
. change their colour. I could do this with a global find and replace (across many files) to replace \index with \MyIndex, say, and then define a \MyIndex that understands the various parameter options but this is a hassle. Before I do this, is there anything already pre-built? The ultimate aim

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
10:24: > > Currently, the ruby module does not seem to support cjk fonts? I have > > a preliminary implementation of furigana(pinyin in Chinese) as: > > > > ```lmtx > > % define the pinyin font > > \definefont[pinyinfont][name:ahpinying*default at 9pt] > >

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
22 um 10:24: > > Currently, the ruby module does not seem to support cjk fonts? I have > > a preliminary implementation of furigana(pinyin in Chinese) as: > > > > ```lmtx > > % define the pinyin font > > \definefont[pinyinfont][name:ahpinying*default at 9pt] > >

[NTG-context] How to reset settings in setuphead back to defaults?

2022-08-21 Thread Joel via ntg-context
I have some settings like this, which define the part, chapter, and section titles within a file that contains all of my common settings for all files. \definepagebreak[chapterpagebreak][yes, right] \setuphead[part][style=\sse, placehead=yes, expansion=yes] \setuphead[chapter][style=\sse

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Wolfgang Schuster via ntg-context
黄复雄 via ntg-context schrieb am 21.08.2022 um 10:24: Currently, the ruby module does not seem to support cjk fonts? I have a preliminary implementation of furigana(pinyin in Chinese) as: ```lmtx % define the pinyin font \definefont[pinyinfont][name:ahpinying*default at 9pt] % define the pinyin

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
Currently, the ruby module does not seem to support cjk fonts? I have a preliminary implementation of furigana(pinyin in Chinese) as: ```lmtx % define the pinyin font \definefont[pinyinfont][name:ahpinying*default at 9pt] % define the pinyin command \define[2]\pinyin{% \setbox1 = \hbox{#1

[NTG-context] Write a long chapter title in two lines

2022-08-18 Thread Jeong Dal via ntg-context
(\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick}); \stopuseMPgraphic \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4] \define[1]\outlineTitle{\useMPgraphic{outlineT}{tt="#1"}} \setuphead[chapter] [textcommand=\outlineTit

[NTG-context] Write a long chapter title in two lines

2022-08-15 Thread Jeong Dal via ntg-context
? Thanks, Best regards, Dalyoung \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick}); \stopuseMPgraphic \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4] \define[1]\outlineTitle

[NTG-context] TIL: figure combinations

2022-08-11 Thread Henning Hraban Ramm via ntg-context
You probably know about combinations to place images side by side: \startcombination[3*1] {\externalfigure[cow]}{cow} {\externalfigure[mill]}{mill} {\externalfigure[hacker]}{hacker} \stopcombination Now, the widths aren’t calculated automatically. You could define them on your own

Re: [NTG-context] How to display these characters

2022-08-05 Thread Henning Hraban Ramm via ntg-context
I guess that I could define a fallbackfont. Do anyone know the unicode range that should be covered and the font that has these characters? You need box drawing [1] characters. When you need fonts with a wide range of character the Noto [2] family is a good choice. Yes, also e.g. Segoe

Re: [NTG-context] How to display these characters

2022-08-05 Thread Wolfgang Schuster via ntg-context
characters which indicate the folder depth are not displayed. I guess that I could define a fallbackfont. Do anyone know the unicode range that should be covered and the font that has these characters? You need box drawing [1] characters. When you need fonts with a wide range of character the Noto

[NTG-context] How to display these characters

2022-08-05 Thread juh+ntg-context--- via ntg-context
ess that I could define a fallbackfont. Do anyone know the unicode range that should be covered and the font that has these characters? TIA juh ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context
/no. For the emoji fallback, I’d need to define all the necessary ranges... Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https

[NTG-context] bibliography problem

2022-07-29 Thread Henning Hraban Ramm via ntg-context
> bookmark: Introduction structure > sectioning > section @ level 3 : 1.0.1 -> Introduction fonts > defining > unable to define 'IBMPlexSansHebrew-regular' as 'dummy--5' publications> analyzing previous publication run for 'dmlig' publications

Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Taco Hoekwater via ntg-context
0.5\textwidth}] Best wishes, Taco PS \enabletrackers[context.*] > --context.framedtext( > -- {frame="on",style="\\bfd"}, > -- "{This is a test}") > context.stopplacefigure() > end > > \stopluacode &g

Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Willi Egger via ntg-context
-- "{This is a test}") context.stopplacefigure() end \stopluacode \define\Test{\ctxlua{Foto_page()}} \starttext \strut \Test \stoptext KR Willi > On 18 Jul 2022, at 20:56, Henning Hraban Ramm via ntg-context > wrote: > &g

Re: [NTG-context] If a Font Has Ligature Glyphs But No Feature?

2022-07-20 Thread Hans Hagen via ntg-context
a real font product from Linotype at enormous expense and hoping it is better equipped, is there a way to coerce ConTeXt into using the ligature glyphs for fi and fl? you can define your own ligature feature (examples in test suite and elsewhere) but personally i'd not spend money on a font

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
/www.mail-archive.com/ntg-context@ntg.nl/msg100920.html), but no one ever got back to me on it. The issues may be related. One final note: ideally, I would just define footnote citations to follow the inline style, similar to how publ-imp-chicago.mkvi defines footnote citations to follow the entry styl

Re: [NTG-context] upload

2022-07-09 Thread Hans Hagen via ntg-context
have better alternatives; and if not: just specify what you need and we will come up with something (configurable) (of course one can just define the old schoose) Hans - Hans Hagen | PRAGMA

Re: [NTG-context] Set up external figure for particular image type

2022-07-08 Thread Henning Hraban Ramm via ntg-context
Am 08.07.22 um 17:46 schrieb Thangalin via ntg-context: I'd like to change the `maxheight` option for only PNG images, such as: Define your own figure class with \definexternalfigure: https://wiki.contextgarden.net/Command/defineexternalfigure It won’t automatically chose the file format

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
t what struts, line distances, spacing, either of not adapt to current situation, delayed vs immediate inclusion, etc ... you can't have both worlds if course you can make some macro (or define a highlight) and

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
tested): See https://www.contextgarden.net/Command/setupMPinstance > > > > \setupMPinstance[metafun][textstyle=sans] > > > > Or define a new instance, which sets the textstyle to sans. > > Thank you for trying, but that doesn’t seem to have anything to do with >

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
=sans] Or define a new instance, which sets the textstyle to sans. Thank you for trying, but that doesn’t seem to have anything to do with my question. I need a different font size for different labels within one picture. Hraban

Re: [NTG-context] MetaPost label font size

2022-07-05 Thread Aditya Mahajan via ntg-context
On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle=sans] Or define a new instance, which sets the textst

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Pablo Rodriguez via ntg-context
On 6/30/22 18:10, Angel M Alganza via ntg-context wrote: > [...] > No, you aren't, and it almost does it, except when the fixed width > column is other than the first one, I'm afraid. Hi Ángel, there might be a way to get it, as long as you don’t define height directly, such as in: \

Re: [NTG-context] Multiline text in mathmode

2022-06-30 Thread Johann Birnick via ntg-context
tely I use MkIV, because of > > > other > > > math bugs in LMTX. Do you know any (can be ugly) way of doing this without > > > the > > > new stuff? > > > > You could just use a framed. > > > > \define[1]\multilinetext{\vcenter{\framed[align=middle,fra

Re: [NTG-context] Multiline text in mathmode

2022-06-29 Thread Hans Hagen via ntg-context
could just use a framed. \define[1]\multilinetext{\vcenter{\framed[align=middle,frame=off]{#1}}} \startTEXpage[offset=2mm] \startformula \left\{ \multilinetext{Quaternion algebra over $\rationals$ \\ up to isomorphisms} \right\} \stopformula \stopTEXpage indeed, the lmtx definiton

Re: [NTG-context] Multiline text in mathmode

2022-06-29 Thread Aditya Mahajan via ntg-context
On Thu, 30 Jun 2022, Johann Birnick via ntg-context wrote: > I guess you will update to LMTX..? Unfortunately I use MkIV, because of other > math bugs in LMTX. Do you know any (can be ugly) way of doing this without the > new stuff? You could just use a framed. \define[1]\mult

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
to rotate the text about its origin, which I would take to be width/2 and height/2. They define the rotation matrix as [cos(a) sin(a) -sin(a) cos(a) 0 0], where a is the angle: https://www.w3.org/TR/SVG11/coords.html#RotationDefined It appears as though LMTX is rotating around the baseline, rather

Re: [NTG-context] Graphviz and ConTeXt

2022-06-23 Thread Taco Hoekwater via ntg-context
Hi, You could just convert these separately to pdf/svg/jpg/png and then load them as \externalfigure. You could also use the filter module to be able to take them inline into the ConTeXt code: \usemodule[filter] \define[1]\ReadFigure{\externalfigure[#1]} \defineexternalfilter[graphviz

Re: [NTG-context] Why are some images rendered very tiny?

2022-06-15 Thread Henning Hraban Ramm via ntg-context
Am 15.06.22 um 18:11 schrieb Joel via ntg-context: I wrote this macro to display images in my book. It should place the image to the left, filling ~50% of \textwidth, then the caption is to the right. \setupcaption[location=right, minwidth=.5\textwidth] \define[4]\figureis{%     \placefigure

[NTG-context] Why are some images rendered very tiny?

2022-06-15 Thread Joel via ntg-context
I wrote this macro to display images in my book. It should place the image to the left, filling ~50% of \textwidth, then the caption is to the right. \setupcaption[location=right, minwidth=.5\textwidth] \define[4]\figureis{%     \placefigure{#2, Courtesy #3, photo no. #1\nocite[#4

[NTG-context] How to define a section title, after the section title appears?

2022-06-12 Thread Joel via ntg-context
l or \chaptertitleis can give the current chapter number. I tried defining chapter titles inside the macros, `\setvalue{title\recurselevel}{Cause and Effect}`, but \getvalue{title\recurselevel}` couldn't find the defined value. I tried just defining in each macro \define\thesectiontitleis{C

[NTG-context] Problem loading font in LMTX

2022-06-11 Thread Stefan Nedeljkovic via ntg-context
n-designsize (mono) fonts > 'fallback modern-designsize tt 36pt' is loaded fonts > defining > font with asked name 'unknown' is not found using lookup 'file' fonts > defining > unable to define 'unknown' as 'lidia-36pt-rm-tf--0' fonts &

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Denis Maier via ntg-context
would suppress ligatures at the suffix boundary? Maybe that's not the case. If so, then it means having to define all the *f-ing words (heh) a few times for the different suffixes (in', in’, and ing), which seems to defeat the purpose of s

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
s not the case. If so, then it means having to define all the *f-ing words (heh) a few times for the different suffixes (in', in’, and ing), which seems to defeat the purpose of separating suffixes? Help is appreciated.

Re: [NTG-context] ugly bug

2022-06-03 Thread Hans Hagen via ntg-context
that end/begin with qoutes (i.e. smaller interlineskip), see example below: on page 1 the blackrule is about 1mm higher than on page 2. In the past I then used really laborious workarounds to get these single pages in the correct way (without jumping)… manual pagebreak, re-define layout etc

Re: [NTG-context] ugly bug

2022-06-03 Thread Steffen Wolfrum via ntg-context
/begin with qoutes (i.e. >> smaller interlineskip), see example below: on page 1 the blackrule is about >> 1mm higher than on page 2. >> >> In the past I then used really laborious workarounds to get these single >> pages in the correct way (without jumping)… manual pag

Re: [NTG-context] ugly bug

2022-06-02 Thread Wolfgang Schuster via ntg-context
than on page 2. In the past I then used really laborious workarounds to get these single pages in the correct way (without jumping)… manual pagebreak, re-define layout etc. But as the pages are hard to find it would be better that the layout would be reliable consistent. How can this be solved

[NTG-context] ugly bug

2022-06-01 Thread Steffen Wolfrum via ntg-context
laborious workarounds to get these single pages in the correct way (without jumping)… manual pagebreak, re-define layout etc. But as the pages are hard to find it would be better that the layout would be reliable consistent. How can this be solved? Best wishes, Steffen === \setupbodyfont

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Wolfgang Schuster via ntg-context
{\bf Definition} \NC\NR     \HL         \input test2.tex %<here you see I have input a file inside the table  \HL \stoptabulate \stoptext File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR". I also tried defining a macro earlier in the document... \define[2

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
re you see I have input a file inside > the table >      \HL > \stoptabulate > \stoptext > > File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR". > > I also tried defining a macro earlier in the document... > > \define[2]\tablewordis{% >

Re: [NTG-context] Pull quote between two column - trial

2022-05-29 Thread Garulfo via ntg-context
these dimensions to define a item B that should be typeset before item 1 3/ typeset of item B and finally item A It is a quick and dirty solution. Please, could you help me to have a more elegant solution 1/ to replace "width=\measure{FTitleW}," by something more d

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Henning Hraban Ramm via ntg-context
macro earlier in the document... \define[2]\tablewordis{%     \NC \NC \NC\NR     \NC #1 \NC #2 \NC\NR } ...then placing that in test2.tex, e.g.: \tablewordis{my word}{my definition} I get the error: " The file ended when scanning an argument." Before the update, this code worked fine. How ca

[NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
e I have input a file inside the table     \HL \stoptabulate \stoptext File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR". I also tried defining a macro earlier in the document... \define[2]\tablewordis{%     \NC \NC \NC\NR     \NC #1 \NC #2 \NC\NR } ...then placing that in t

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
ot;1ex" * >> tex.sp"1em" .. "sp"}] >> \stoptexdefinition >> >> Demo: >> >> \starttexdefinition setxheight [#1][#2] >> \switchtobodyfont[#1, 12pt] >> \switchtobodyfont[#1, \cldcontext{tex.

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
\switchtobodyfont[#1, \cldcontext{tex.sp"#2" / tex.sp"1ex" * > tex.sp"1em" .. "sp"}] > \stoptexdefinition > > \define[1]\sample{% > \setxheight[#1][10pt] Hello% > } > > \setuppapersize[letter, landscape] > >

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Max Chernoff via ntg-context
;sp"}] \stoptexdefinition Demo: \starttexdefinition setxheight [#1][#2] \switchtobodyfont[#1, 12pt] \switchtobodyfont[#1, \cldcontext{tex.sp"#2" / tex.sp"1ex" * tex.sp"1em" .. "sp"}] \stoptexdefinition \define[1]\samp

Re: [NTG-context] Small caps as a separate font

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
t; \definefontsynonym[Sans] [name:dtldocumentasanstcaps][features=default] > > \definefontsynonym[SansItalic] > > [name:dtldocumentasanstcapsitalic][features=default] > > \stoptypescript > > > > > > How can I define dtl-documenta-sans such that I can do: > > &

Re: [NTG-context] Microtipography

2022-05-25 Thread Denis Maier via ntg-context
Just a quick addition to Henri’s answer : You can also define your own align definition, see https://www.mail-archive.com/ntg-context@ntg.nl/msg100832.html That will probably make your life a bit easier. Best, Denis Von: ntg-context Im Auftrag von Tommaso Gordini via ntg-context Gesendet

Re: [NTG-context] Small caps as a separate font

2022-05-25 Thread Henning Hraban Ramm via ntg-context
] \definefontsynonym[SansItalic] [name:dtldocumentasanstcapsitalic][features=default] \stoptypescript How can I define dtl-documenta-sans such that I can do: \setupbodyfont[dtl-documenta-sans,rm,10pt] \starttext \setff{smallcaps}{Small Caps Hamburgerfons}, \setff{smallcaps}{\it Small Caps Italic

[NTG-context] Small caps as a separate font

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
=default] \stoptypescript \starttypescript [sans] [dtl-documenta-sans-t-sc] \definefontsynonym[Sans] [name:dtldocumentasanstcaps][features=default] \definefontsynonym[SansItalic] [name:dtldocumentasanstcapsitalic][features=default] \stoptypescript How can I define dtl-documenta-sans such that I can do

Re: [NTG-context] Microtipography

2022-05-25 Thread Tommaso Gordini via ntg-context
tivate the > > microtypography functionality in a ConTeXt document. > > > > My question is: what is the most correct and clean way to do it? > > I do not claim that this is the cleanest way. Probably it's better to > define a separate font feature for microtypography rathe

Re: [NTG-context] Microtipography

2022-05-25 Thread Henri Menke via ntg-context
t and clean way to do it? I do not claim that this is the cleanest way. Probably it's better to define a separate font feature for microtypography rather than overwriting the default set, but this definitely works: \definefontfeature[default][default] [protrusion=quality,

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
22 kl. 21:59 skrev Pablo Rodriguez via ntg-context >>>> mailto:ntg-context@ntg.nl>>: >>>> >>>> On 5/23/22 13:11, Jan-Erik Hägglöf via ntg-context wrote: >>>>> HI! >>>>> >>>>> Tried to make a checklist in an i

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
ontext >>> mailto:ntg-context@ntg.nl>>: >>> >>> On 5/23/22 13:11, Jan-Erik Hägglöf via ntg-context wrote: >>>> HI! >>>> >>>> Tried to make a checklist in an interactive document. >>>> >>>> The proble

Re: [NTG-context] Issue with interactive checkboxes

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
problem seems to be that all checks/uncecks in same click, not each >>> individually. >>> >>> Is there something wrong with my code? >> >> Hi Jan-Erik, >> >> you basically put the same field twice. >> >> Add something like: >> >> \definefie

Re: [NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
> Add something like: > > \definefield [check-you] [check] [setup 3] [yes,no] [no] > > \define\chka{\field[check-you]} > > \chka > > Checks will be different then. > > I hope it helps, > > Pablo > _

Re: [NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Pablo Rodriguez via ntg-context
u basically put the same field twice. Add something like: \definefield [check-you] [check] [setup 3] [yes,no] [no] \define\chka{\field[check-you]} \chka Checks will be different then. I hope it helps, Pablo

[NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
[yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]\definesymbol [no] []\setupfield[setup 3][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]\definefield [check-me] [check] [setup 3] [yes,no] [no]\define\chk{\field[check-me]}\starttext\chk\blank[3cm]\chk

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
] [width=0.5cm, height=0.5cm, rulethickness=1pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \define\chk{\field[check-me]} \starttext \chkgfgkfgfghjl \chkdfdffdfff \stoptext > 22 maj 2022 kl. 10:47 skrev Jan-Erik Hägglöf : > >

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
} \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \setupaddress[style=italic] \defineaddress[fst][name={Name of Institute or Affiliation, City

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
t;> > > uncomment the second argument and the line after >> \the\titlefootnotes >> > > \setupnote[putjustnote][textcommand=\gobbleoneargument] >> > > \setupnotation[putjustnote][numberconversion=set 2] >> > > >>

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
gt; \setupnotation[putjustnote][numberconversion=set 2] > > > > > > > > > \newtoks\titlefootnotes > > > > > > > > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > > \titlefootnotes} > > > \def\email#1

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
\to > > \titlefootnotes} > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > \titlefootnotes} > > > > > > \appendtoks > >\setcounter[footnote][0] % this looks stupid because it has no effect > >%\setupnotati

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context
list,     parent=addr,   ] \define[1]\useaddress     {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Cou

[NTG-context] Can I just put a footnote without marking in the main text?

2022-05-17 Thread Zhichu Chen via ntg-context
sion=numerals] \to \titlefootnotes \definenamespace    [addr]    [type=module,     name=address,     command=yes,     setup=list,     parent=addr,   ] \define[1]\useaddress     {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Insti

[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.

2022-05-10 Thread Zhichu Chen via ntg-context
arent=addr,   ] \define[1]\useaddress     {\edef\currentaddress{#1}% {\setnotetext[address][#1]{\addressparameter{name}}}%     \endgraf     } \starttext \setupaddress[style=italic] \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary

Re: [NTG-context] a cross-reference query

2022-05-10 Thread jbf via ntg-context
might make sense to use \about instead of \in – \about[eta] would render as “1a età“ * I would define a few macros, e.g. for the \in where both parameters are the same and for stuff like \bullet\enspace – probably you just left these out to simplify the example. Hraban Am 10.05.22 um 04:

Re: [NTG-context] a cross-reference query

2022-05-10 Thread Henning Hraban Ramm via ntg-context
der as “1a età“ * I would define a few macros, e.g. for the \in where both parameters are the same and for stuff like \bullet\enspace – probably you just left these out to simplify the example. Hraban Am 10.05.22 um 04:03 schrieb jbf via ntg-context: Hi list, In an attempt to make a

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Taco Hoekwater via ntg-context
% > \setuppapersize[A6][A6] > \setupbodyfont[8pt] > \define[2]\MyChapterCommand{#1 #2} % does work > %\def\MyChapterCommand#1#2{#1 #2} % does not work > \setuphead[chapter][ >command=\MyChapterCommand, >] > \starttext

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Denis Maier via ntg-context
be the root of the problem. Maybe some expansion thing. Don't know, but consider this : % \setuppapersize[A6][A6] \setupbodyfont[8pt] \define[2]\MyChapterCommand{#1 #2} % does work %\def\MyChapterCommand#1#2{#1 #2} % does not work \setuphead[chapter

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
"Content" and other chapter-level titles the same vertical distance from the top? Maybe define your own chapter command and use a vbox. Look at this example from the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def\MyChapterCommand#1#2% {\vbox to 4cm\bgroup {#1\hskip.75em #2}

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
Maybe define your own chapter command and use a vbox. Look at this example from the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def\MyChapterCommand#1#2% {\vbox to 4cm\bgroup {#1\hskip.75em #2} \vss \egroup} \setuphead[chapter][header=nomarking, command=\MyChapterCommand

Re: [NTG-context] Citeproc-lua

2022-05-06 Thread Rik Kabel via ntg-context
the following number on the same line and to convert /\em/ and such to taggable macros that I define in my environment. The result is ConText source that can be further edited (if necessary) and inserted where needed/./ I have not extended it to multiple bibliographies in  a single document

Re: [NTG-context] how to choose a font variant "book" / LMTX

2022-05-04 Thread Heinrich Paeßens via ntg-context
nt (NewCM10-Book.otf vs NewCM10-Regular.otf). Trying many >> ways but the right one. >> >> please advise, >> can I define something similar like \bf for bold — maybe \bk for book? >> >> … all I get is >> >> hp@mbp16 ~ % pdffonts page1

Re: [NTG-context] how to choose a font variant "book" / LMTX

2022-05-04 Thread Mikael Sundqvist via ntg-context
lar« variant (NewCM10-Book.otf vs NewCM10-Regular.otf). Trying many ways > but the right one. > > please advise, > can I define something similar like \bf for bold — maybe \bk for book? > > … all I get is > > hp@mbp16 ~ % pdffonts page1.pdf > name

Re: [NTG-context] how to choose a font variant "book" / LMTX

2022-05-04 Thread Heinrich Paeßens via ntg-context
.otf vs NewCM10-Regular.otf). Trying many >> ways but the right one. >> please advise, >> can I define something similar like \bf for bold — maybe \bk for book? >> … all I get is >> hp@mbp16 ~ % pdffonts p

Re: [NTG-context] how to choose a font variant "book" / LMTX

2022-05-04 Thread Henning Hraban Ramm via ntg-context
dvise, can I define something similar like \bf for bold — maybe \bk for book? … all I get is hp@mbp16 ~ % pdffonts page1.pdf name                                 type              encoding emb sub uni

[NTG-context] how to choose a font variant "book" / LMTX

2022-05-04 Thread Heinrich Paeßens via ntg-context
advise, can I define something similar like \bf for bold — maybe \bk for book? … all I get is hp@mbp16 ~ % pdffonts page1.pdf name type encoding emb sub uni object ID

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
name=author, command=yes, % Create \defineauthor style=yes, % Create \useauthorstyleandcolor setup=list, % Create \setupauthor parent=documentauthor, ] \def\AuthorList{} \define[1]\useauthor {\edef\currentauthor{#1}% {\authorparameter{given-name} \space

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
} and baz. Is that possible? Can I somehow get the position of an item in the list? (My understanding is that \processcommalist and \processcommacommand apply a command to each list item, but there is no such thing as ... I hope I'm wrong here.) Or is that something where using Lua would be a better ch

  1   2   3   4   5   6   7   8   9   10   >