Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
thus now can in the historical >> item itself. > > one aspect is how ligatures are made: some fonts have single shapes, > others use replacements and kerning of (then) multiple shapes I think you wrote about this somewhere else and it got me interested in physical type from my per

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Hans Hagen via ntg-context
manually put in a ligature when the physical type was a ligatured one, as best I can tell. Not every shop had the same founts and not every compositor used every available ligature in the same shop. in that case you can best access the shapes by name (which is possible in context), assuming

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
s and only manually put in a ligature when the physical type was a ligatured one, as best I can tell. Not every shop had the same founts and not every compositor used every available ligature in the same shop. My bigger technical problem is that I need to combine paragraphs of normally typeset pros

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Hans Hagen via ntg-context
a fi ligature but not as feature so you need to add it: \startluacode fonts.handlers.otf.addfeature { name = "xlig", type = "ligature", data = { [64257] = { "f", "i" }, } } \stopluacode \definefontfea

Re: [NTG-context] TEST criticus apparatus

2022-01-06 Thread Pablo Rodriguez via ntg-context
indique à ConTeXt que l'on veut ici du texte en français (ou 'en' pour l'anglais). {\em Définir un apparat critique et le mettre en page avec un traitement de texte courant est un véritable casse-tête. \type{LaTeX} et \type{ConTeXt} offrent des outils d'automatisation encore assez mal c

Re: [NTG-context] Critical Editions?

2022-01-03 Thread Jean-Pierre Delange via ntg-context
tricks to make footnotes invisible (I use folding in emacs). The following would be a single example verse (32 syllables, same size as the one quoted above), encoded in ekdosis and with lots of manuscripts: \begin{tlg}[hp16][] \tl{ \app{\lem[wit={ceteri}]{manthāna} \rdg[type=stemmaerror,wi

Re: [NTG-context] Critical Editions?

2022-01-03 Thread Jean-Pierre Delange via ntg-context
required us to identify an lemma with \edtext and then write the > variant directly into > the text. This may not matter in the case of few variants, but with many > variants the text is > quickly rendered unreadable -- even with all tricks to make footnotes > invisible (I use

Re: [NTG-context] Critical Editions?

2022-01-03 Thread hanneder--- via ntg-context
p{\lem[wit={ceteri}]{manthāna} \rdg[type=stemmaerror,wit={B2}]{\unm śrīmanthāna} % stemma error \rdg[wit={C4,L1,N5}]{manthāra} \rdg[wit={N13,Tü,V1,V22,Vu}]{manthāno\skp{-}} \rdg[wit={J2}]{mandāra}}% \app{\lem[wit={ceteri}]{bhairavo} \rdg[wit={N20}]{mairavo} \rd

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Hans Hagen via ntg-context
On 1/1/2022 11:14 AM, Ajith R wrote: Don't know how. Can you point towards a documentation? \type-imp-* Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

[NTG-context] upload

2021-12-30 Thread Hans Hagen via ntg-context
context \frules with leaders as in: test \leaders \frule height 6mm depth 3mm radius 1mm\hfill test \startuseMPgraphic{demoleader} fill unitcircle xysized (RuleWidth,RuleHeight+RuleDepth) withcolor RuleColor ; \stopuseMPgraphic test {\red \leaders \frule height 6mm depth 3mm

Re: [NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-25 Thread Thomas Savary via ntg-context
be missing something, because I can't get it to work. > > > > Here is a minimal —non working—example :-) > > (The attempted removal (“f_i” → “fi” only before “o”) is of course > > irrelevant. I chose it just for the sole purpose of this test, to > > provide a simple example

Re: [NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-25 Thread Hans Hagen via ntg-context
of this test, to provide a simple example. What I am trying to achieve is more complex, with other ligatures.) fonts.handlers.otf.addfeature{ name = "unfio", type = "chainsubstitution", lookups = { { type = "multiple",

Re: [NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-25 Thread Hans Hagen via ntg-context
of this test, to provide a simple example. What I am trying to achieve is more complex, with other ligatures.) fonts.handlers.otf.addfeature{ name = "unfio", type = "chainsubstitution", lookups = { { type = "multiple",

Re: [NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-24 Thread Bruce Horrocks via ntg-context
this test, to provide a > simple example. What I am trying to achieve is more complex, with other > ligatures.) > > fonts.handlers.otf.addfeature{ > name = "unfio", > type = "chainsubstitution", > lookups

[NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-24 Thread Thomas Savary via ntg-context
.) fonts.handlers.otf.addfeature{ name = "unfio", type = "chainsubstitution", lookups = { { type = "multiple", data = { [ "f_i" ] = { "f", "i" } } } } rules = { { after = { { "

Re: [NTG-context] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Hans Hagen via ntg-context
ther aspect of additional files is that I like to keep my system uncluttered so e.g when I install fonts we just need the open type files that I then install in texmf-fonts/fonts/data//* instead of bothering about forther structure (in fact it doesn't really m

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
>> >> Today's Topics: >> >> 1. Re: how to setup path of ConTeXtLMTX for MacVim? >> (Jan-Erik Hägglöf) >> 2. Re: circuitikz module seems broken (Hans Hagen) >> 3. Re: TeXWorks and synctex SOLVED (Bruce Horrocks) >> >> >> --

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jeong Dal via ntg-context
> > Message: 1 > Date: Tue, 14 Dec 2021 00:48:25 +0100 > From: Jan-Erik Hägglöf > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] how to setup path of ConTeXtLMTX for > MacVim? > Message-ID: <32566c08-2359-48df-

[NTG-context] Typo in m-tikz

2021-12-13 Thread Aditya Mahajan via ntg-context
source > level 2, order 68, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv' open source > level 3, order 69, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 3, order 69, name '/opt/luametatex/te

Re: [NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-10 Thread J Huisman via ntg-context
d in publ-ini.lua and publ-ini.mkiv. > Related to the previous entry, the ability to remove existing entry tags from > the "collected" or "tobesaved" lists defined in publ-ini.lua. This would > allow us to override the usual list registry rules of \cite based on the > valu

[NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-08 Thread Joey McCollum via ntg-context
d" or "tobesaved" lists defined in publ-ini.lua. This would allow us to override the usual list registry rules of \cite based on the values of, say, an entry's category, "type" field or "options" field. - General support for the useauthor, useeditor, u

Re: [NTG-context] [DKIM] Re: [DKIM] Primes too high in New Computer Modern

2021-12-07 Thread Hans Hagen via ntg-context
On 12/7/2021 9:55 AM, Mikael Sundqvist via ntg-context wrote: Hi, We changed so that newcomputermodern-book (which is bolder than newcomputermodern) uses the same lfg file as lm, which works. I attach an updated version of the type-imp-newcomputermodern.mkiv, which also adds the lfg file

Re: [NTG-context] [DKIM] Primes too high in New Computer Modern

2021-12-07 Thread Jairo A. del Rio via ntg-context
g file as lm, which works. I attach > an updated version of the type-imp-newcomputermodern.mkiv, which also > adds the lfg file to newcomputermodern. > > /Mikael > > PS If one wants to play with modernlatin, is there a simple way to > play with the boldness (for example make it just

Re: [NTG-context] [DKIM] Primes too high in New Computer Modern

2021-12-07 Thread Mikael Sundqvist via ntg-context
Hi, We changed so that newcomputermodern-book (which is bolder than newcomputermodern) uses the same lfg file as lm, which works. I attach an updated version of the type-imp-newcomputermodern.mkiv, which also adds the lfg file to newcomputermodern. /Mikael PS If one wants to play

[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
Note the presence of double-spaced blank lines in the following document and in the attached source file: \setuptyping[numbering=line] \starttext \startbuffer[javacode] try { final var num = stack.pop(); if( num != null ) { stack.push( blah ); } return true; } \stopbuffer \type

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 14:05:23 +0100 Henning Hraban Ramm via ntg-context wrote: > Maybe you could define your own float type for the cases without > caption? I've done that for other options, too, I guess no-caption-floats get a dedicated float type as well now. It's more robust than r

Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
v 2021, at 12:06, Denis Maier via ntg-context >> cont...@ntg.nl> wrote: > >>> > >>> Hi, > >>> > >>> for a current project I’ll need different variants of underbars. > >>> > >>> - A normal underbar > >>>

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context
;>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context > cont...@ntg.nl> wrote: >>> >>> Hi, >>> >>> for a current project I’ll need different variants of underbars. >>> >>> - A normal underbar >>> - A dotted underbar >

Re: [NTG-context] double underbars

2021-11-30 Thread Henning Hraban Ramm via ntg-context
Am 30.11.21 um 14:19 schrieb Taco Hoekwater via ntg-context: I would like to have this type of “complete” bar nesting as well. YES, #metoo As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations

Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
’ll need different variants of underbars. > > > > - A normal underbar > > - A dotted underbar > > - A combination of both > > > > Is there a way to combine them? I was hoping to have the dotted variant > above the normal bar. > > I would like to have

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context
hem? I was hoping to have the dotted variant above > the normal bar. I would like to have this type of “complete” bar nesting as well. As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations work.

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context
) knows a way to disable the caption without influencing the placement, I'm all ears. Now I understand your problem, and unfortunately I can’t help you. Maybe you could define your own float type for the cases without caption? Hraban

Re: [NTG-context] Typographical quotes

2021-11-27 Thread Henning Hraban Ramm via ntg-context
that this change in default will mean that almost everyone needs to add tlig in their documents. We may perhaps need a 'sensible-defaults' module :-) Nothing against such a module, but I think it’s wrong to expect automatical text replacements. If I type ' or " or -- I don’t want that replaced,

Re: [NTG-context] Typographical quotes

2021-11-27 Thread Denis Maier via ntg-context
load time 0.151 seconds mkiv lua stats > font embedding time: 0.002 seconds, 1 fonts mkiv lua stats > result saved in file: mfe-quote.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries mkiv lua stats > used platf

Re: [NTG-context] Typographical quotes

2021-11-27 Thread Denis Maier via ntg-context
lt saved in file: mfe-quote.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries mkiv lua stats > used platform: osx-64, type: unix, binary subtree: texmf-osx-64 mkiv lua stats > used engine: luametatex version:

[NTG-context] Typographical quotes

2021-11-27 Thread Jean-Philippe Rey via ntg-context
ors, 0 common hashes, load time 0.151 seconds mkiv lua stats > font embedding time: 0.002 seconds, 1 fonts mkiv lua stats > result saved in file: mfe-quote.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial

Re: [NTG-context] Math prime issues for some fonts

2021-11-27 Thread Hans Hagen via ntg-context
even if for other properties cmr fundamentally differs from open type math fonts. Anyway, in the traditional tex approach to primes, the prime symbol is taken from the script variant, where is has a different size (or not), different boundingbox (or not) and/or is already raised (or not). Also

Re: [NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
; > \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery > > Font Here } > > \setupbackgrounds[page][background=mwe] > > > > \starttext > > Normal font text goes here. \blank[4*big] > > { \switchtobodyfo

Re: [NTG-context] Math prime issues for some fonts

2021-11-26 Thread Mikael Sundqvist via ntg-context
in different fonts, and that there was not simple one-fits-all solution). We have not touched eulernova yet. In any case, if you replace euler-math.lfg and type-imp-euler.mkiv in ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/ with the attached files, I think at least the primes should look

Re: [NTG-context] font problems

2021-11-26 Thread Hans Hagen via ntg-context
that if I comment out the \type{setlayer[mwe]} in the source file, then the above will print in Chancery. \stoptext I'd like to have the layers in Chancery font and then one last text string in the body in Chancery font. But I can't get them both to be Chancery

Re: [NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Hans Hagen via ntg-context
-español] \placeRussian \stoptitle \stoptitle \stoptext Reading the manuals, I find that the publication mechanism for bibliography kinda fits my needs (using ConTeXt to sort and type data generated via external software) but, unlike registers, it doesn't seem to include options for alphabetical

[NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
Font Here } \setupbackgrounds[page][background=mwe] \starttext Normal font text goes here. \blank[4*big] { \switchtobodyfont[chancery] This should be Chancery here to. But isn't. } \blank[2*big]Note that if I comment out the \type{setlayer[mwe

[NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
for bibliography kinda fits my needs (using ConTeXt to sort and type data generated via external software) but, unlike registers, it doesn't seem to include options for alphabetical headers. Is it fine to keep using registers in this case? Is there a better mechanism for this task in ConTeXt? Thank

Re: [NTG-context] Using old fonts

2021-11-18 Thread Gérard Milmeister via ntg-context
On Thu, 2021-11-18 at 18:57 +0100, Hans Hagen wrote: > Are you talking type 1 fonts? These should just work, assuming that you > have the afm files installed. You need to define them with the right > features enabled (just like opentype fonts). Ok, yes this works (for kerning and the

Re: [NTG-context] Using old fonts

2021-11-18 Thread Hans Hagen via ntg-context
On 11/18/2021 5:36 PM, Gérard Milmeister via ntg-context wrote: Using old fonts Around 2000 I acquired a collection of fonts, mostly Type 1 and some TrueType. As it appears they are not fully usable in ConTeXt. The two main issues are: 1. Kerning and ligatures These features can be only

[NTG-context] Using old fonts

2021-11-18 Thread Gérard Milmeister via ntg-context
Using old fonts Around 2000 I acquired a collection of fonts, mostly Type 1 and some TrueType. As it appears they are not fully usable in ConTeXt. The two main issues are: 1. Kerning and ligatures These features can be only be used, if the GPOS and GSUB tables are present and adequately filled

[NTG-context] Math in LMTX and definemathcommand

2021-11-17 Thread Otared Kavian via ntg-context
{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad \limsup_{n\geq 0} x_{n}= +1. \stopformula The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave correctly in all fonts I tested: \startformula x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad

Re: [NTG-context] new upload

2021-11-16 Thread Otared Kavian via ntg-context
{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad \limsup_{n\geq 0} x_{n}= +1. \stopformula The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave correctly in all fonts I tested: \startformula x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad

Re: [NTG-context] space handling in \type

2021-11-16 Thread Hans Hagen via ntg-context
On 11/16/2021 10:53 AM, Henning Hraban Ramm via ntg-context wrote: Hi, \starttext \quotation{\type{\CONTEXT\ }} \stoptext gives “\CONTEXT \” i.e. the space moved. Why? Bug? no, side effect of catcodes ... when you use \type it will change catcodes (sort of) and when tex serializes a \cs

[NTG-context] space handling in \type

2021-11-16 Thread Henning Hraban Ramm via ntg-context
Hi, \starttext \quotation{\type{\CONTEXT\ }} \stoptext gives “\CONTEXT \” i.e. the space moved. Why? Bug? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] mwe (font proble) SOLVED

2021-11-14 Thread skyhorse--- via ntg-context
2021 12:26 AM, skyhorse--- via ntg-context wrote: > > Here is the minium not-working example which I took from the > > Wikigarden a few minutes ago. > > > > \def\T#1{% > >\startitemize[#1,joinedup] > > \item This is a bullet of type #1. > >\s

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread Wolfgang Schuster via ntg-context
This is a bullet of type #1. \stopitemize } \starttext \dorecurse{9}{\T\recurselevel} \stoptext Compiling this into a pdf file with context produces an error. I've pasted the complete context typesetting run to show the error, in hopes that it will shed some light on what's wrong with my setup

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread skyhorse--- via ntg-context
Hans Hagen via ntg-context wrote: > On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote: > > Here is the minium example which I took from the > > Wikigarden a few minutes ago. > > > > \def\T#1{% > >\startitemize[#1,joinedup] > >

Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread Hans Hagen via ntg-context
On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote: Here is the minium not-working example which I took from the Wikigarden a few minutes ago. \def\T#1{% \startitemize[#1,joinedup] \item This is a bullet of type #1. \stopitemize } \starttext \dorecurse{9}{\T

[NTG-context] minimum working example plus (output)

2021-11-13 Thread skyhorse--- via ntg-context
Here is the minium not-working example which I took from the Wikigarden a few minutes ago. \def\T#1{% \startitemize[#1,joinedup] \item This is a bullet of type #1. \stopitemize } \starttext \dorecurse{9}{\T\recurselevel} \stoptext Compiling this into a pdf file with context

Re: [NTG-context] issue importing metadata from PDF

2021-11-12 Thread Hans Hagen via ntg-context
rings, after checking that with: \startluacode function document.transfer_metadata(name) local main_doc = lpdf.epdf.load(name) context(type(main_doc.Info.ModDate)) context(type(main_doc.Info.Title)) end \stopluacode Would it be possible that LMTX can deal with these object

Re: [NTG-context] Problem with Google Font 'Vollkorn'

2021-11-12 Thread Henning Hraban Ramm via ntg-context
tem > ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2020.6.8 int: > english/english > > fonts > otf loading > loading > 'MYPATH/texmf/fonts/truetype/google/Vollkorn-Regular.ttf', hash > 'vollkorn-regular' > fonts > otf loading > loading fail

[NTG-context] issue importing metadata from PDF

2021-11-12 Thread Pablo Rodriguez via ntg-context
etadata(name) local main_doc = lpdf.epdf.load(name) context(type(main_doc.Info.ModDate)) context(type(main_doc.Info.Title)) end \stopluacode Would it be possible that LMTX can deal with these objects and import them as strings? Many thanks for your

[NTG-context] Problem with Google Font 'Vollkorn'

2021-11-12 Thread Michael Urban via ntg-context
/truetype/google/Vollkorn-Regular.ttf', hash 'vollkorn-regular' fonts > otf loading > loading failed due to read error fonts > defining > forced type 'ttf' of 'Vollkorn-Regular' not found fonts > defining > font with asked name 'Vollkorn-Regular' is no

Re: [NTG-context] Any initial thoughts on luau?

2021-11-08 Thread Ramkumar KB via ntg-context
t;>> Yesterday, Roblox announced - Luau - https://luau-lang.org/why > >>> <https://luau-lang.org/why> - mainly adding linting and > >>> type-checking features. > >>> > >>> Being compatible with Lua 5.1 is probably a bummer but nonetheless >

Re: [NTG-context] Any initial thoughts on luau?

2021-11-06 Thread Hans Hagen via ntg-context
inting and type-checking features. Being compatible with Lua 5.1 is probably a bummer but nonetheless would be interesting to hear about this from this community. for sure i need more than an email to give a real answer (and some can be read between the lines of the history documents / articles t

Re: [NTG-context] Any initial thoughts on luau?

2021-11-06 Thread Michal Vlasák via ntg-context
On Fri Nov 5, 2021 at 9:14 PM CET, Hans Hagen via ntg-context wrote: > On 11/5/2021 6:23 PM, Ramkumar KB via ntg-context wrote: > > Hello, > > > > Yesterday, Roblox announced - Luau - https://luau-lang.org/why > > <https://luau-lang.org/why> - mainly adding linti

Re: [NTG-context] Any initial thoughts on luau?

2021-11-05 Thread Hans Hagen via ntg-context
On 11/5/2021 6:23 PM, Ramkumar KB via ntg-context wrote: Hello, Yesterday, Roblox announced - Luau - https://luau-lang.org/why <https://luau-lang.org/why> - mainly adding linting and type-checking features. Being compatible with Lua 5.1 is probably a bummer but nonetheless

[NTG-context] Any initial thoughts on luau?

2021-11-05 Thread Ramkumar KB via ntg-context
Hello, Yesterday, Roblox announced - Luau - https://luau-lang.org/why - mainly adding linting and type-checking features. Being compatible with Lua 5.1 is probably a bummer but nonetheless would be interesting to hear about this from this community. Thank you. best regards, Ramkumar

Re: [NTG-context] some ConTeXt distribution's Fonts don't work

2021-10-24 Thread Wolfgang Schuster via ntg-context
to test if everything works as expected. Wolfgang %D \module %D [ file=type-imp-kurier, %Dversion=2021.10.24, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Kurier, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE

Re: [NTG-context] upload

2021-10-22 Thread Michal Vlasák via ntg-context
* (n + Cc( 0)))^-1 +*(Cg(Cc("tzsgn") * sign) +* Cg(Cc("tzh") * (n + Cc( 0))) * P(":")^-1 +* Cg(Cc("tzm") * (n + Cc( 0^-1 , rawset) function converters.totime(s) @@ -1987,7 +1992,13 @@ function converters.totime(s)

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-17 Thread Ramkumar KB via ntg-context
gt; > \stopbuffer > > > > \starttext > > > > \dorecurse > > {\randomnumber{5}{10}} > > {\getbuffer[pagenumber] > > \page} > > > > \stoptext > > As addendum ... The problem in general with macros is that one doesn't > really knows by

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Hans Hagen via ntg-context
s is that one doesn't really knows by looking at the name what actually happens when it expands, which can be a lot. Now, because \totalnumberofpages is supposed to 'return' a number and not typeset something styled (which itself involved macro expansion) you can actually do this: \startluacode

Re: [NTG-context] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

2021-10-12 Thread Rudd, Kevin via ntg-context
haven't found it yet. % \OutlinedText[glyph][outline]{text} \def\OutlinedText{\dodoubleempty\doOutlinedText} \def\doOutlinedText[#1][#2]#3% {% % \type{#1}::\type{#2}::\type{#3} \ifsecondargument \makeOutlinedText{#1}{#2}{#3}%

Re: [NTG-context] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

2021-10-08 Thread Rudd, Kevin via ntg-context
t} \def\doOutlinedText[#1][#2]#3% {% % \type{#1}::\type{#2}::\type{#3} \ifsecondargument \makeOutlinedText{#1}{#2}{#3}% \else\iffirstargument \makeOutlinedText{#1}{black}{#3}% \else \makeOutlinedText{white}{black}{#3}% \fi\fi } \def\

Re: [NTG-context] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

2021-10-08 Thread Hans Hagen via ntg-context
} \def\OutlinedText{\dodoubleempty\doOutlinedText} \def\doOutlinedText[#1][#2]#3% {%     % \type{#1}::\type{#2}::\type{#3}     \ifsecondargument         \makeOutlinedText{#1}{#2}{#3}%     \else\iffirstargument         \makeOutlinedText{#1}{black}{#3}%     \else         \makeOutlinedText

[NTG-context] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

2021-10-07 Thread Rudd, Kevin via ntg-context
\doOutlinedText[#1][#2]#3% {% % \type{#1}::\type{#2}::\type{#3} \ifsecondargument \makeOutlinedText{#1}{#2}{#3}% \else\iffirstargument \makeOutlinedText{#1}{black}{#3}% \else \makeOutlinedText{white}{black}{#3}% \fi\fi } \def\makeOutlinedText#1#2#3

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
of \abbreviation, then > it works as expected: > > ``` > \expanded{\abbreviation[\currentbtxtag]{\btxdoif{shorthand}{\doifinsetelse{\btxflush{type}}{plainttitle, > plainshorthand}{\btxflush{shorthand}}{\btxstartstyleandcolor[sbl:\s!list:title:\currentbtxcategory]\btxusecommand[sbl:\s

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
Interestingly, if I remove the contents of the btx:sbl:inline:shorthand command and paste them inline as the third argument of \abbreviation, then it works as expected: ``` \expanded{\abbreviation[\currentbtxtag]{\btxdoif{shorthand}{\doifinsetelse{\btxflush{type}}{plainttitle, plainshorthand

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
\btxdoif {shorthand} { % If the entry is of type plaintitle or plainshorthand, then do not apply formatting to its shorthand \doifinsetelse{\btxflush{type}}{plainttitle, plainshorthand} { \btxflush{shorthand} } { \btxstartstyleandcolor[sbl:\s!list:title:\currentbtxcategory

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
e:short > ... > \btxdoif {shorthand} { > \abbreviation[\currentbtxtag]{\btxflush{shorthand}}{\btxflush{title}} > } > ... > \stopsetups > ``` > > But even if I invoke \placelistofabbreviations with the "criterium=all" > option, nothing appears in

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
h the "criterium=all" option, nothing appears in the list. In some ways, this issue is related to the now-resolved issue "Which way to type greek letters in synonym list?" from 2010. The problem is that in this case, I have to use a macro even in the first input to \abbreviation

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
] \starttext {\em abc {\em def} ghi}: \type{\em} \emph{abc {\emph def} ghi}: \type{\emph} \emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]} \emIf{abc {\emIf def} ghi}: \type{\emIf \definehighlight[style=italicface]} \hairline \emIt{abc {\emIt def} ghi

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
with italic for this example \definehighlight     [emIt]     [style=italic] \definehighlight     [emIf]     [style=italicface] \definehighlight     [emEm]     [style=\em] \starttext {\em abc {\em def} ghi}: \type{\em} \emph

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
    [emIt]     [style=italic] \definehighlight     [emIf]     [style=italicface] \definehighlight     [emEm]     [style=\em] \starttext {\em abc {\em def} ghi}: \type{\em} \emph{abc {\emph def} ghi}: \type{\emph} \emEm{abc {\emEm def

[NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
    [emIf]     [style=italicface] \definehighlight     [emEm]     [style=\em] \starttext {\em abc {\em def} ghi}: \type{\em} \emph{abc {\emph def} ghi}: \type{\emph} \emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]} \emIf{abc {\emIf

Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Hans Hagen via ntg-context
formation should be specified for the current citation or subcitation \let\btxcurrentsubcitetype\empty% the type of subcitation we're invoking here \def\btxsblordinal is better, but as you're using protection, even better is \def\btx_sbl_ordinal i also wonder about the \clf_btxdirect we n

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
uot; function could populate a "combiners" array of length "max" >> > with a specific authorconversion for each author in the split; for most >> > authorconversions, all entries in this array would be the same, but for >> > authorconversions like "invertedfirst",

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
t; function could just > > reference combiners[i] instead of combiner. > > > > Joey > > > > On Fri, Sep 3, 2021 at 10:48 PM Joey McCollum > > mailto:jmccollum20140...@gmail.com>> > wrote: > > > > Hi, > > > > I mentioned t

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Hans Hagen via ntg-context
in detail. I'd like to define a new authorconversion that renders the first author in a list differently than the remaining authors in the list. Specifically, I'd like to use the "inverted" authorconversion for the first author and the "normal" authorconversion fo

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-14 Thread Joey McCollum via ntg-context
e list. Specifically, I'd like to use the > "inverted" authorconversion for the first author and the "normal" > authorconversion for the rest. > > In the newer bibl-bib.lua file, I can see what I might have to modify to > accomplish this (I added the if combiner ==

Re: [NTG-context] Axis macro in MetaFun

2021-09-11 Thread kauśika cittūr via ntg-context
> >color = "darkblue", > >close = true, > >points = {data.csv}, > >labels = {"•"}, > > > > ] > > > >}, > > > >] withpen pencircle scaled

Re: [NTG-context] Axis macro in MetaFun

2021-09-11 Thread Hans Hagen via ntg-context
points = {data.csv}, labels = {"•"}, ] }, ] withpen pencircle scaled 0.5mm; \stopMPcode It depends on how one has data in the csv, You can patch mlib-scn.lmt (line 659) if type(v) == "table" then return injectpath(v,conn

Re: [NTG-context] LuaMetaTEX as LaTeX to XHTML/ePub transpiler?

2021-09-10 Thread Hans Hagen via ntg-context
with this (context speak): \def\textbf#1{\type{}#1\type{}} so, you define all the commands that you use (normally a subset of what a macro package provides, you just ignore what doesn't make sense) then you define a very large page (say A1) that you use completely then you typeset the document in verbatim

[NTG-context] io.loaddata() or buffer.assigns()

2021-09-08 Thread Thierry Horsin via ntg-context
Hi everybody Are there any type of files that is required by io.loaddata or/and buffers.assign ? The following code works pretty well if there is no compilation problem by g++. But it fails, i.e. \typebuffer[Mybuffer], does not produce anything if g++ fails (due to some errors in the cpp) I

Re: [NTG-context] zint barcode module on LMTX/MacOS

2021-09-08 Thread Axel Kielhorn via ntg-context
avusansmono.ttf mkiv lua stats > font engine: otf 3.119, afm 1.513, tfm 1.000, 8 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.162 seconds mkiv lua stats > font embedding time: 0.001 seconds, 1 fonts mkiv lua stats > result saved in file: hw265.pdf,

[NTG-context] error: (nodes): fuzzy token cleanup in whatsit node

2021-09-07 Thread Sylvain Hubert via ntg-context
modern-designsize rm 12pt' is loaded backend > xmp > using file '/home/me/apps/texlive/2021/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2, subpage 2 ! error: (node

[NTG-context] error: (nodes): fuzzy token cleanup in whatsit node ...

2021-09-06 Thread Sylvain Hubert via ntg-context
\stopchoice \item 0 \startchoice \item 0 \item 0 \item 0 \item 0 \stopchoice \item 0 \startchoice \item 0 \item 0 \item 0 \item 0 \stopchoice \stopitemize \stoptext % ! error: (nodes): fuzzy token cleanup in whatsit node with type whatsit and subtype 29mtx-context | fatal error: return code: 256

Re: [NTG-context] zint barcode module on LMTX/MacOS

2021-09-06 Thread Henning Hraban Ramm via ntg-context
shared in backend, 3 common vectors, 0 common hashes, load time 0.228 seconds mkiv lua stats > result saved in file: /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 4 collected, 0 deltas, 0

Re: [NTG-context] getting line numbers

2021-09-04 Thread thierry horsin via ntg-context
To: mailing list for ConTeXt users Cc: Thierry Horsin Subject: Re: [NTG-context] getting line numbers Message-ID: <807e4b7c-97ae-e20e-3207-28393544c...@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed in this case, thinking a bit different is easier ... \sta

[NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-03 Thread Joey McCollum via ntg-context
(author,combiner,what,settings) if type(combiner) == "string" then combiner = authors[combiner or "normal"] or authors.normal end local split = splitauthors(author) local setting = settings[what] local etallimit, etaldisplay, etaltext = 1000, 1000, ""

[NTG-context] No formula in the pdf

2021-09-01 Thread Ursula Hermann via ntg-context
-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.111, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.208 seconds mkiv lua stats > used platform: mswin, type: windows, binary subtree: bin mkiv lua stats > us

[NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-29 Thread Benjamin Buchmuller via ntg-context
preparing a MWE, I further realized that I get the correct output when between \startTEXpage ... \stopTEXpage \starttext Embedded via \type{\externalfigure} PNG \externalfigure[drawing.png][width=72.631mm,height=21.702mm] \blank[big] PDF \externalfigure[drawing.pdf] \startTEXpage

Re: [NTG-context] Handling of negative values in the statistical-charts?

2021-08-28 Thread Ramkumar KB via ntg-context
Hi, I have added an 'advanced' type for line & bar graphs to handle the use case for -ve y-values / 4th quadrant graphs. It works similar to 'basic' but works for -ve y-values (i.e. for the 4th quadrant). PFA the amended lua file (zip file) and sample of line graph. \def\edudataone{-10,3

[NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-08-27 Thread Joey McCollum via ntg-context
) a few commands defined in publ-imp-ini.mkiv that can help conditionally render author fields according to cite parameters rather than list parameters. The first, \btxflushauthornormal{author} (where author can be replaced by another name-type field, if I understand correctly), will flush

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