Re: [NTG-context] flushing the last hbox of a paragraph to the right

2015-11-16 Thread mf
Thank you Rik, \wordright is exactly what I was looking for. Best regards, Massi Il giorno lun, 16/11/2015 alle 09.34 -0500, Rik Kabel ha scritto: > On 2015-11-16 07:40, mass...@fastwebnet.it wrote: > > Sorry, there was a typo in my previous email. > > The last example should look like this: > >  

Re: [NTG-context] Garamond Premier Pro font goodies file

2016-05-03 Thread mf
al-sizes-ws.pdf Description: Adobe PDF document %D \module %D [ file=type-imp-ebgaramond, %Dversion=2016.05.02, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Garamond Premier Pro, %D author=MF, %D date=\currentdate, %D copyright={PRAGMA ADE \&

Re: [NTG-context] beta

2018-06-22 Thread MF
Tested with my setup, which -- you know -- is quite complex. This is the only error: lua error > lua error on line 6 in file /home/massi/context/latest/tex/texmf- context/tex/context/base/mkiv/cont-yes.mkiv: ...est/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:1398: image.ownerpasswo

Re: [NTG-context] beta

2018-06-22 Thread MF
> > > Do you get the same error message with the following minimal example: > > \starttext > \externalfigure[figure] > \stoptext > Yes, of course, same error; BTW, the pdf i'm using is not password protected. ___

[NTG-context] CSS selector for elements strictly preceded by other elements

2018-08-02 Thread MF
Hello list, please consider these XML snippets: some text some textblah blahsome other text now apply these CSS selectors to them: e ~ f matches all e + f matches the first and the third There's no CSS selector to match ONLY the third. But i have a use case for that: sometimes i have endno

Re: [NTG-context] CSS selector for elements strictly preceded by other elements

2018-08-03 Thread MF
> make a (real) minimal example and we'll see what can be done > Here it is: \startbuffer[test] In this paragraphfirst footnoteendnote strictly following a footnote (no other XML nodes between them) a footnote marker and an endnote marker are at the same point in the text; in the XML

Re: [NTG-context] parent of xml-node

2018-08-28 Thread mf
> With \xmltag{#1} one can find the identity of the current node. But > how can I find the tag of the parent node? > > dr. Hans van der Meer > \xmltext{#1}{../tag()} ___ If your question is of interest to others as

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread mf
My 2 cents: local xmlflush = lxml.flush local function text_or_xml(...) for i,v in ipairs(arg) do if "table" == type(v) then xmlflush(v) else context(v) end end end function xml.functions.heading(t) text_or_xml( "\\section{" , t , "}" ) end Massimiliano Il giorno

[NTG-context] startpar and startparagraph

2018-09-27 Thread mf
What is the difference between \startpar and \startparagraph? Are these two equivalent? Blah blah blah.\par \startpar Blah blah blah.\stoppar Is \startpar ... \stoppar only more XML-like and TaggedPDF oriented? Thanks in advance, Massimiliano __

[NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread mf
Hello list, i'm trying to add a smallcaps variant to the MyriadPro font, since it does not implement the smcp opentype feature. My strategy: - "transplant" the uppercase letters of the MyriadPro-Regular into the lowercase letters of the same font with a font fallback that scales down the gly

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread mf
Il 03/10/18 16:02, Hans Hagen ha scritto: ok, even nicer:     \definefontfallback[FakeSansCaps]   [SansEmboldened] [0x-0x] [rscale=.8,method=uppercase] which will remap all lowercase in the font so that you also get accented characters Yes, for this case it makes more sense us

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread mf
\starttypescriptcollection [myriadpro] \definefontfeature[emboldened][effect={width=0.18,delta=0.4,factor=0.3}] \starttypescript [sans] [myriadpro] \definefontsynonym [Sans] [file:MyriadPro-Regular.otf] [features=default] \definefontsynonym [SansItalic] [file:MyriadPro-

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-04 Thread mf
Il 04/10/18 14:11, Hans Hagen ha scritto: On 10/4/2018 1:44 PM, Taco Hoekwater wrote: Hi, ok, even nicer:     \definefontfallback[FakeSansCaps]   [SansEmboldened] [0x-0x] [rscale=.8,method=uppercase] which will remap all lowercase in the font so that you also get accented char

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-04 Thread mf
In Debian, evince has the same problem (ugly preview); instead qpdfview preview is OK. maybe some aliasing option? evince (ugly) uses cairo, qpdfview (good) uses qt. Zooming out the preview becomes uglier, but - evince emboldens too much - qpdfview shifts the emboldened glyphs downward _

[NTG-context] moving the first line of a page to the previous page

2018-10-09 Thread mf
Hello list, sometimes ConTeXt moves the (would-be) last line of a page to the next page, even when there's room for it at the bottom of a page, before the footnotes. Sometimes i understand why it does so: when the line contains a footnote that would increase the footnotes' height, for example

[NTG-context] ConTeXt git mirror

2018-10-10 Thread mf
Hello list, the ConTeXt git mirror at https://github.com/contextgarden/context-mirror is out of sync. Does anybody know why? Thanks in advance, best wishes, Massimiliano ___ If your question is of interest to ot

Re: [NTG-context] ConTeXt git mirror

2018-10-11 Thread mf
The git mirror is now synchronized again. Many thanks to the people who fixed it. Massimiliano ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] latest beta (october 18th): likely bug in \mirror

2018-11-23 Thread mf
Hello list, the effect of \mirror in latest beta looks extended to the following content in the page. It seems a bug in the \mirror macro or another bug that is reflected in \mirror (forgive the pun). Massimiliano % (the following brace is a modified version of one posted by Wolfgang) \start

Re: [NTG-context] latest beta (october 18th): likely bug in \mirror

2018-11-23 Thread mf
A much simpler example: \starttext \ConTeXt\ version: \contextversion. A paragraph with a mirrored \mirror{word} inside. Another paragraph. \stoptext mirror-not-ok.pdf Description: Adobe PDF document mirror-ok.pdf Description: Adobe PDF document ___

Re: [NTG-context] latest beta (November 18th): likely bug in \mirror

2018-11-23 Thread mf
Sorry for the mistake in the subject: the bug is in the latest beta of November, 18th. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://w

[NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread mf
In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames] \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames] \xmlflush{#1} \stopnotmode I noticed t

[NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-05 Thread mf
Hello list, i always use the "Commands" manual a lot to retrieve information about the parameters and options of ConTeXt commands. The manual is built from the .xml files in the tex/texmf-context/tex/context/interface directory. Since those files are organized by topic, is it possible to gen

[NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
Hello list, i noticed that setting a different kerning breaks some features of opentype fonts; that is true, for example, for ligatures and fractions (frac feature). It looks like a modified kerning inserts something between two adjacent character, making them no more adjacent. That way the

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
An example of local correction, but it's not automatic: \definecharacterkerning[narrow][factor=-.02] \definecharacterkerning[wide][factor=.02] \definefontfeature[frac][frac=yes] \def\Narrow#1{\bgroup\setcharacterkerning[narrow]#1\egroup} \def\Wide#1{\bgroup\setcharacterkerning[wide]#1\egroup} \

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
character kerning is bad anyway ... I'm using it to get a paragraph one line shorter or longer, or to tune what in TeX is set with \parfillskip. I'm using ConTeXt with a mindset developed on other typesetting softwares. That's not right, i know, but for now i'm finding easier to work with c

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread mf
But i should consider all the text parts with a modified kerning and disable kerning around character sequences like "ff", "ffi", "fl" and so on. Luckily, the XHTML markup "knows" where the kerning is modified: A paragraph with a modified kerning should become A paragraph with a modified ke

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread mf
did you play with \definefontfeature[whatever][keepligatures=auto] \definecharacterkerning [extrakerning] [factor=0.125,features=whatever] \starttext     \setcharacterkerning[extrakerning]     effe fietsen \stoptext Great! Thanks! This now works: \definefontfeature[frac][frac=yes] \defin

Re: [NTG-context] New logo proposal

2019-01-30 Thread mf
I agree with Willi. Kind regards, Massimiliano Il 30/01/19 13:50, Willi Egger ha scritto: Hi, here my humble personal thoughts: I would say, that the multicolor version is dissecting the word ConTeXT to unidentifiable crumbles. It is to my taste to less connected to typesetting, herewith a

[NTG-context] current values of \lefthyphenmin and \righthyphenmin

2019-02-11 Thread mf
Dear list, how can i read the current values of \lefthyphenmin and \righthyphenmin? TIA, Massimiliano ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] externalfigure broken with 20190222 beta

2019-02-23 Thread mf
BTW \startsidebar ... \stopsidebar stopped working too. Massimiliano Il 23/02/19 21:58, Hans Hagen ha scritto: On 2/23/2019 5:10 PM, Rik Kabel wrote: With the following example, I get: ...eXt/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:238: attempt to call upvalue 'imgwrap' (a nil v

[NTG-context] registers: setting pageleft parameter by index term

2019-04-29 Thread mf
Hello list, please consider this MWE: \definenumber[p] \setnumber[p][1] \def\PageLeft{ p.~} \def\TextCommand#1{\getnumber[p] #1\doif{\rawcountervalue[p]}{2}{\def\PageLeft{ P.~}}\incrementnumber[p]} \setupindex[n=1,pageleft=\PageLeft,pageright=,textcommand=\TextCommand] \starttext Foo\index{foo}

[NTG-context] vertical justification of mixedcolumns

2019-04-30 Thread mf
Hello list, in this MWE the columns are not aligned at the bottom, and they are not at the bottom of the page: \definevspacingamount[myBlank][5pt plus 5pt minus 2pt][5pt plus 5pt minus 2pt] \starttext \showgrid \startmixedcolumns[n=2,balance=yes] \dorecurse{2}{\input knuth \blank[myBlank]} An

[NTG-context] context standalone installation broken

2019-05-14 Thread mf
./first-setup.sh --engine=luatex --modules=all downloads ok, but then .../tex/setuptex gives this error: "/home/massi/context/latest/tex" is not a valid TEXROOT path. (There is no file "/home/massi/context/latest/tex/texmf/tex/plain/base/plain.tex") provide a proper tex root (like '. setuptex

Re: [NTG-context] context standalone installation broken

2019-05-14 Thread mf
find tex -name plain.tex finds nothing; there's no "plain" dir under ./tex/texmf/tex/ Massimiliano Il 14/05/19 11:39, Henning Hraban Ramm ha scritto: Am 2019-05-14 um 11:34 schrieb mf : ./first-setup.sh --engine=luatex --modules=all downloads ok, but then .../tex/setuptex g

Re: [NTG-context] context standalone installation broken

2019-05-14 Thread mf
Now it works again. Thanks! Massimiliano Il 14/05/19 12:29, Mojca Miklavec ha scritto: Something broke with svn updates of TeX Live. I'm looking into it. Mojca ___ If your question is of interest to others as well,

[NTG-context] interfaces.definecommand fails with brackets inside string arguments

2019-07-08 Thread mf
Hello list, i've played a bit with interfaces.definecommand, that lets you define TeX macros from lua (see the "ConTeXt Lua Documents", 7.3 User interfacing). I found that the commands defined by interfaces.definecommand fail when you pass string arguments that contain brackets. I think cldf

[NTG-context] an object representation of the node list of a paragraph: a lua table or a JSON

2019-07-10 Thread mf
Hello list, i'd like having an object representation of a typeset paragraph or even a page, preferably as a JSON object, but a Lua table is equally good. My reference is section "4.4 Node lists" of the CLD manual. Before writing an iterator over the list of nodes of a paragraph, figuring out

Re: [NTG-context] standardmakeup and pages

2019-08-29 Thread mf
Il 29/08/19 16:33, Henning Hraban Ramm ha scritto: \setuppagenumbering[ alternative=doublesided, ] \starttext \startstandardmakeup[align=center] bastard title \stopstandardmakeup \startstandardmakeup[page=left] \vfill imprint \stopstandardmakeup \stoptext \setuppagenumbering[ alter

Re: [NTG-context] standardmakeup and pages

2019-08-29 Thread mf
\setuppagenumbering[ alternative=doublesided, ] % use pagestate=start on both makeups only if you want the title page % to be the page 1 of the book \definemakeup[title-page][align=middle,doublesided=no] \definemakeup[imprint][align=top,page=no] \starttext \startmakeup[title-page] bastard t

Re: [NTG-context] passing variables/data between context and lua

2019-09-27 Thread mf
\starttext \define\question{44} \startluacode -- see "ConTeXt Lua Documents" manual, §7.4 Looking inside local question = tokens.getters.macro("question") -- it's up to you to verify that \question contains a number -- better using the userdata table for your data userdata.points = tonumber( que

Re: [NTG-context] Access current element in xmlsetsetup via xml.expressions

2019-10-02 Thread mf
The answer is in lxml-lpt.lua, where built-in expressions are defined. You need a good knowledge of LPEG that i miss. Some built-in expressions get the current element as first argument, like count() or child() (lines 1300-1307 of lxml-lpt.lua): expressions.child = function(e,pattern) retu

[NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-07 Thread mf
Hello, i'm using XML and i find useful specifying a fraction made of text this way: text for numerator/text for denominator With some lua, i can transform it into \frac{\text{text for numerator}}{\text{text for denominator}} which typesets something like this: text for numerator

Re: [NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-08 Thread mf
l:b {\bf \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:fraction \xmlfunction{#1}{textfraction} \stopxmlsetups \starttext \xmlprocessbuffer{main}{text}{} \stoptext Il 07/10/19 18:26, mf ha scritto: Hello, i'm using XML and i find useful specifying a fraction made of text this way: text

[NTG-context] place single entry of a register, or filtering the terms of a register

2019-10-25 Thread mf
Hello list, is there a way to place only one single entry of a register, or a selection of entries? I looked into strc-reg.mkiv and strc-reg.lua and i would answer "no, it's not possible". I could hack strc-reg.lua and define a command to do that, but maybe a better solution is already there.

[NTG-context] interlaced overbrace and underbrace

2019-10-25 Thread mf
Hello list, is there a better way to interlace overbraces and underbraces like this? \starttext These are the expressions to combine: $$\overbrace{a+b+c}+d \quad a+\underbrace{b+c+d}$$ This is the desired result: $$\overbrace{a+b+c}+d \kern-16mm\underbrace{\hbox to 15mm{ }}$$ \blank {\tfx(the

Re: [NTG-context] ConTeXt as a service

2019-11-23 Thread mf
Il 23/11/19 14:18, Henning Hraban Ramm ha scritto: Am 2019-11-23 um 13:18 schrieb luigi scarso : another link: https://coko.foundation/ https://coko.foundation/product-suite/ or merely https://pubsweet.coko.foundation Thank you for the hint, sounds interesting and like the thing I always wa

Re: [NTG-context] ConTeXt as a service

2019-11-23 Thread mf
Il 23/11/19 13:02, Henning Hraban Ramm ha scritto: Am 2019-11-23 um 08:12 schrieb Mojca Miklavec : Then you can use one of the online JS editors like CKeditor.\ Only if you spend an enormous amount of effort making sure that the code is properly cleaned up rather than containing a gazillion

Re: [NTG-context] ConTeXt as a service

2019-11-23 Thread mf
Il 22/11/19 08:43, Jan U. Hasecke ha scritto: Am 20.11.19 um 18:10 schrieb Henning Hraban Ramm: Hi! I’m running ConTeXt on my web server e.g. to generate shipping forms for a customer. As Hans said, it makes sense to use an asynchronous setup; in my case it’s celery/RabbitMQ behind Django.

[NTG-context] changing alignment inside a paragraph

2019-12-10 Thread mf
Hello list, is there a way to achieve this? \def\FlushRightFromNextLine{\relax} \setupnarrower[left=0cm,right=11cm] \setupalign[stretch] \starttext This is what I'd like to type in my source:\par \blank \type{This is the text of an index term, that is normally justified, but I'd like the page num

Re: [NTG-context] changing alignment inside a paragraph

2019-12-11 Thread mf
This is a good-enough solution to my problem: \setupalign[stretch] \starttext \def\Text{This is the text of an index term, that is normally justified, but I'd like the page numbers to be flushed to the right from their second line} \def\Pages{34, 57, 101-104, 276, 345, 401, 403, 512.} \type{\

Re: [NTG-context] changing alignment inside a paragraph

2019-12-12 Thread mf
Il 11/12/19 21:25, Wolfgang Schuster ha scritto: \starttext \startbuffer This is the text of an index term, that is normally justified, but I'd like the page numbers to be flushed to the right from their second line\par \startalignment[flushright] \ifdim\dimexpr\hsize-\lastlinewidth\relax>2\emwi

[NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
Hello list, \setuplayout[marking=on] typesets crop marks that are in grayscale black. Can I change their color, in particular into a CMYK black (0,0,0,1.0)? Thanks, Massi ___ If your question is of interest to other

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
Il 19/12/19 18:07, Henning Hraban Ramm ha scritto: Am 2019-12-19 um 16:41 schrieb mf : Hello list, \setuplayout[marking=on] typesets crop marks that are in grayscale black. Can I change their color, in particular into a CMYK black (0,0,0,1.0)? There’s no parameter, and I don’t understand

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
There is no option to change the color for the rules and the only option you have is to use color conversion. \setupcolors[cmyk=yes,rgb=no] I do have this setup, but it produces grayscale crop marks. I was told by two different printshops that grayscale raises problems with recent versions

Re: [NTG-context] setting the color of cropmarks

2019-12-20 Thread mf
This is a dirty hack to change the color of the crop marks and the page number at the corner of a page when \setuplayout[marking=on]. Edit the file: tex/texmf-context/metapost/context/base/mpiv/mp-crop.mpiv in the distribution, changing two lines: - (here i'm reproducing only the last par

Re: [NTG-context] blank[\lineheight] works with LMTX, fails with MkIV

2019-12-21 Thread mf
Il 20/12/19 20:04, Rik Kabel ha scritto: MkIV fails with tex error > tex error on line 3 in file c://Users/micro/Desktop/fail.tex: ! Missing \endcsname inserted given the following mwe: \starttext a \blank[\lineheight] z \stoptext Not critical as there are lots

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread mf
Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to the preceding characters and I would rather not insert a thinspace before each. (Inserting a thinspace is suffici

Re: [NTG-context] upload

2020-02-13 Thread mf
Il 11/02/20 17:00, Hans Hagen ha scritto: Hi, I uploaded a fresh lmtx. There is some new stuff in there: I'm a little bit confused about versions. 1) GIT MIRROR The last commit in the branch "beta" is 2020-01-26 18:37:00. I've seen no update since your "upload" message (the one i'm replyin

Re: [NTG-context] upload

2020-02-17 Thread mf
if you fetch from the web site you need to use /latest as we no longer have lpha, beta current ... maybe somthing got messed up in the git sync, i don't know The git mirror is in sync again. Thanks to anybody working on it. Best wishes, Massi __

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb ; red_rgb := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor p ; draw p shifted ( bbwidth(p) + 5mm, 0) ; \stopM

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode     draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename = "sample.

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread mf
Is there not a simple place to get all the up-to-date documentation? If you install ConTeXt from http://www.pragma-ade.nl/install.htm in the installation tree you'll find docs under tex/texmf-context/doc/context/documents/ There you'll always find the docs at their last revision. Massi __

Re: [NTG-context] Need help processing XML in luacode

2020-03-10 Thread mf
In your tex file, try this: \startluacode settings = {} docstruktur = {} doclistfile = "doclist.xml" local striplines = utilities.strings.striplines local xmltext= xml.text cropstring = function(s) -- return striplines(s, "prune and collapse") return striplines(s) end doc = xml.load(do

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread mf
Il 17/03/20 15:51, Jan-Erik Hägglöf ha scritto: Hi All! When I invoke this command \startMPcode picture p ; p := lmt_svg [ filename ="pil.svg" ]; draw p; \stopMPcode I get weird results, the arrowhead points in wrong direction and is very tiny compared to the size it was meant to have. Ke

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread mf
Il 19/03/20 11:20, Fabrice Couvreur ha scritto: Hi, this file did not pose any problems but today yes. Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "200

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread mf
Il 05/04/20 15:00, Jairo A. del Rio ha scritto: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this: \s

[NTG-context] offset for background overlay

2020-04-11 Thread mf
Hello list, this MWE is a simplified version of a real case: \startuseMPgraphic{cell:triangle} path p ; p := unittriangle rotated 90 xscaled 2.5 OverlayWidth yscaled 2.5 OverlayHeight ; draw p withcolor red ; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}] \sta

Re: [NTG-context] offset for background overlay

2020-04-11 Thread mf
NSION (an offset that is both horizontal and vertical) - a "frame": what does it mean? (I looked into pack-rul.mkiv, with no results) Massi Il 11/04/20 20:11, Wolfgang Schuster ha scritto: Hans Hagen schrieb am 11.04.2020 um 19:41: On 4/11/2020 4:15 PM, mf wrote: Hello list

Re: [NTG-context] offset for background overlay

2020-04-13 Thread mf
Or maybe a method in MP to set the bounding box of the resulting overlay? setbounds in combination with leftenlarged, topenlarged etc. Thanks Wolfgang, this is the kind of solution I was looking for: \startuseMPgraphic{cell:triangle} path p ; p := unittriangle rotated 90 xscaled 2.5 Overlay

[NTG-context] suitable macros for Pandoc custom styles for paragraphs, spans and tables

2024-09-23 Thread mf
Hello list, I started a topic in Pandoc discussions (see https://github.com/jgm/pandoc/discussions/10208) about custom styles in pandoc tables. This is the framework: - in Pandoc, some textual elements have a "custom-style" attribute, whose value becomes the name of a paragraph or characte

Re: [NTG-context] Addition of authortitle sorttype for bibliographies

2021-10-05 Thread mf via ntg-context
probably got lost when my mail address was in transition I sent you some mails during that period that were not answered. I thought it was a retaliation for not presenting anything at the meeting :) Anyway I'll prepare an article on running ConTeXt inside a container that could eventually end

Re: [NTG-context] undefined command in current latest

2021-10-11 Thread mf via ntg-context
It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \starttext \dorecurse{10}{\samplefile{knuth}\marking[myheader]{\it knuth}\

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib.

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Here it's wrong. See attachment. Massimiliano Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG pro

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp

Re: [NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread mf via ntg-context
\definepapersize[a4-portrait][A4][A4] \setuppapersize[a4-portrait] \setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle] \starttext \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax] {\framed[frame=on,offset=none,align=flushleft] {% per

[NTG-context] shrink inter-line space

2021-12-17 Thread mf via ntg-context
Hello list, here's a MWE to shrink the distance between two lines: \starttext \samplefile{ward}\par \blank \bgroup \baselineskip=0pt \samplefile{ward}\par \egroup \stoptext How can I get lines closer, even overlapping? Massi __

Re: [NTG-context] shrink inter-line space

2021-12-18 Thread mf via ntg-context
Il 17/12/21 20:17, Wolfgang Schuster ha scritto:> \starttext > > \samplefile{ward}\par > > \blank > > \start \setupinterlinespace[line=12pt] > \samplefile{ward}\par > \stop > > \stoptext Yes, but you can't say \setupinterlinespace[line=6pt] and make lines overlap. At a certain point baselines don

Re: [NTG-context] definedfont vs switchtobodyfont (was "shrink inter-line space")

2021-12-20 Thread mf via ntg-context
Il 18/12/21 13:00, Wolfgang Schuster ha scritto: \definefontfeature [tightlines] [dimensions={*,0,0}] \starttext \samplefile{ward}\par \blank \start     \setupinterlinespace[line=5pt]     \definedfont[Normal*default,tightlines]     \samplefile{ward}\par \stop \stoptext Thanks Wolfgang.

[NTG-context] redefining xmlsetups inside a XML document

2022-03-10 Thread mf via ntg-context
Hello, I'm trying to add new templates (xmlsetups) from the XML document itself. See the attached MWE. - the XML document is a simple XHTML file - in the "head" element there's a "script" element with the "type" attribute set to "text/vnd.context", whose contents are then passed to \xmlcontex

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
e style="margin: 0em;"> \xmlsetsetup{\xmlfirst{\xmldocument}{body}}{p|i}{myHtml:*} </pre><tt>but it doesn't work, since \xmldocument seems to be the actual document </tt><tt>instead of an id pointing to its root element. </tt><pre style=&q

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
I prefer this one: -- \startxmlsetups myHtml:i {\it\blue\xmlflush{#1}}\relax \stopxmlsetups -- You need to end the line with a macro eating up all the trailing spaces (newlines included). Massi Il 22/03/22 15:23, m

Re: [NTG-context] embedding tex and lua code in

2022-03-24 Thread mf via ntg-context
run by ConTeXt - redefine xmlsetups from the HTML document itself Massi Il 22/03/22 17:07, mf via ntg-context ha scritto: </pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> I've added a &l

[NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Hello list, I need to modify the kern between two glyphs. This is a MWE where the problem is solved manually: -- \mainlanguage[it] \starttext Default: «Questo è successo nel ’48». Desired: «Questo è successo nel ’\kern-.1em 48». \stoptext -

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Il 05/04/22 13:15, Thomas A. Schmitz via ntg-context ha scritto: On 5. Apr 2022, at 13:02, mf via ntg-context wrote: Is it possible to solve it globally and only for a single font? Thanks, Massi Have you looked at chapter 5.4 “Goodies” of fonts-mkiv.pdf? That should get you started

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Il 05/04/22 13:54, Hans Hagen via ntg-context ha scritto: On 4/5/2022 1:45 PM, mf via ntg-context wrote: It's defined in typo-fkr.lua, but I can't understand what parameters to pass and whether it's the right macro. It looks like it's not. look at the extension examples in

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
There's a problem with oldstyle glyphs, because they have different codes inside a font. I used fontforge to find the "four.oldstyle" glyph, whose code is 0xf734. But then I discovered that the 'four.oldstyle' key works the same in the lua table. This is the updated MWE, suitable for oldstyle

[NTG-context] Wiki update: create a .vsix extension package for VisualStudio Code (or VSCodium)

2022-05-05 Thread mf via ntg-context
Hello list, I just added some instructions to the WIKI to build an extension file for VSCode, starting from the code you find in the LMTX installation at tex/texmf-context/context/data/vscode/extensions/context You find them at https://wiki.contextgarden.net/VSCode Massi ___

Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context
I'm downloading it and I see a lot of mkii files and even some Ruby files. It looks like some old material got into the update. Is everything right? Massi Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto: Hi, I uploaded a new version of lmtx (also because some users have to test some

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread mf via ntg-context
See HTML-tidy, https://www.html-tidy.org/ it could help you pre-processing your HTML files. Massi Il 16/05/22 17:08, Pablo Rodriguez via ntg-context ha scritto: Dear list, I would like to feed https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as XML input for ConTeXt. Th

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

2022-05-18 Thread mf via ntg-context
Is this what you mean? \starttext Hello\footnotetext{Footnote without mark}. \stoptext Kind regards, Massi Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column env

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread mf via ntg-context
Il 16/11/22 18:33, Thomas A. Schmitz via ntg-context ha scritto: \startbuffer[test] This is the first test 22/11/16 This is the second test 22/11/17 This will be the content of the first chapter.

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread mf via ntg-context
This works: local metadata = xml.filter (t, '../../topics/topic[@t:id=="' .. ch_id .. '"]') also this: local lpath = string.format('../../topics/topic[@t:id=="%s"]', ch_id) local metadata = xml.filter (t, lpath) It looks like xml.filter supports only 2 arguments (see lxml-tex.lua), and so

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
latest ConTeXt 2022.12.15 18:12: mkiv lua stats  > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 107 found files, scanned paths: mkiv lua stats  > stored bytecode data: 507 modules (0.346 sec), 106 tables (0.023 sec), 613 chunks (0.369 sec)

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
The old version is 2020.04.26 19:53, not 2020-04-22 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-con

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
Il 18/12/22 14:49, Hans Hagen via ntg-context ha scritto: On 12/18/2022 2:14 PM, mf via ntg-context wrote: > ... So we gained a lot in the meantime. mkiv lua stats  > loaded fonts: 27 files: lmmono10-regular.otf, texgyrepagella-math.otf, dejavusansmono.ttf, gfsneohellenic.otf, fi

Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread mf via ntg-context
\setupitemgroup [fooditems] [each] [none,text] [textseparator={,}] Comma is used to separate options; if you don't use braces, it means that the textseparator is set to the empty string. Massi Il 27/02/23 12:33, Jan-Erik Hägglöf via ntg-context ha scritto: I tested the code a

Re: [NTG-context] \setupparagraphs - can they run over two pages?

2023-02-27 Thread mf via ntg-context
I would try \setuptabulate, \starttabulate ... \stoptabulate. It has some limitations (though Hans added some features recently), but it should work. Massi Il 24/02/23 06:41, jbf via ntg-context ha scritto: I have the following setup for side-by-side paras. \defineparagraphs[Two][n=2] \set

Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-14 Thread mf via ntg-context
Hello, the github repo at https://github.com/contextgarden/context-mirror is not updated since March 20th. I don't know whether it's related to the server update, but maybe you know. BTW thank you Taco, Jules and Robbert for your work. Massi Il 11/04/23 22:42, Taco Hoekwater via ntg-context h

[NTG-context] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context
Hello, here's the error I get: lua error : function call: ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad argument #2 to 'lpegmatch' (string expected, got nil) BTW I was trying to compile lowlevel-expansion.tex in tex/texmf-context/doc/context/sources/general/manuals/lo

<    1   2   3   >