Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does t

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
Il 30/04/20 17:21, Hans Hagen ha scritto: On 4/30/2020 3:15 PM, mf wrote: Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files int

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread mf
Il 19/05/20 20:50, Thangalin ha scritto: Minor correction: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export-type=pdf --export-filename="%newname%" ]], pngargument=[[ "%oldname%" --export-d

Re: [NTG-context] accessing xml element attributes in lua, how, if you do not want to use the .at scheme?

2020-06-09 Thread mf
Il 09/06/20 15:31, Gerben Wierda ha scritto: I’ve been trying to find out how I can access XML node properties/attributes in lua other than via the .at syntactic scheme but using the property/attribute name as a string. E.g., currently I do: someVar = someNode.at.someProperty but I would lik

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread mf
Il 10/06/20 17:30, Hans Hagen ha scritto: On 6/9/2020 11:04 AM, Otared Kavian wrote: Hi all, I just noticed that in lmtx, the commands \startplacefigure and \startframedtext, when used together, do not behave in the same way as they do in mkiv. I wonder whether this is a permanent change or

[NTG-context] pagecolumns: get the current column

2020-06-26 Thread mf
Hello list, I'm using a 2-columns layout and I'd like to put some information in the margin. I should put that information in the left margin when I'm in the left column, and in the right margin when I'm in the right column, to prevent the extra information overlapping the main text in the othe

[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread mf
Hello list, this is a MWE that worked right in MkIV and in LMTX versions (at least) until April 22nd, 2020. There's a macro, \wordorparagraphright, that takes one argument, makes a hbox with it and measures its width - if its width is less than \hsize, then it calls \wordright - if its widt

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread mf
Thanks Hans, this solves the problem I had with the new implementation of \wordright. It's not exactly a problem of \wordright, but the combination with \groupedcommand. Is \nextbox a new entry of latest versions? I've seen also \nextboxwd, \nextboxht, etc. So you can measure the next box to c

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
Il 03/09/20 10:17, Henning Hraban Ramm ha scritto: Hi, I’d like to have an (person) index entry like Ramm, Hraban passim i.e. without actual page number. How can I force that? I also need to be able to refer to it like \seeindex{Hraban}{Ramm, Hraban) \starttext \samplefile{ward}\index{W

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
This should be exactly what you asked for: \defineprocessor[passim][right=\quad{\it passim}] \starttext \samplefile{ward}\index{Ward, Peter} \samplefile{sapolsky}\index{Sapolsky, Robert} \seeindex{passim->Ramm, Hraban}{} \seeindex{Hraban}{Ramm, Hraban} \page \placeindex[check=yes] \page \pl

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
Useful references I consulted to find a solution: https://www.mail-archive.com/ntg-context@ntg.nl/msg88118.html https://wiki.contextgarden.net/Registers#Processors Massi ___ If your question is of interest to others

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
Il 03/09/20 11:38, Henning Hraban Ramm ha scritto: Hi Massi, thank you! Am 03.09.2020 um 11:09 schrieb mf : This should be exactly what you asked for: \defineprocessor[passim][right=\quad{\it passim}] I didn’t think to use processors. You need them to get the "passim"; if you

Re: [NTG-context] force index entries without page number

2020-09-04 Thread mf
Il 04/09/20 11:01, Henning Hraban Ramm ha scritto: Am 03.09.2020 um 13:32 schrieb mf : Use check=yes But I need check=no, because my author has several entries like Miller, Carolyne, born Princess of Sayn-Wittgenstein 123–125 Sayn-Wittgenstein, Carolyne of see Miller, Carolyne i.e

Re: [NTG-context] content of xml node (element) in lua

2020-10-16 Thread mf
(sorry, I sent it before refining it) Il 16/10/20 20:57, Jano Kula ha scritto: Hello! Processing XML I want to manipulate content of XML elements inside Lua. I can define the Lua function xml.functions.name (t), where processing happens, and use the command \xmlfun

Re: [NTG-context] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread mf
Il 05/11/20 13:26, Sylvain Hubert ha scritto: Dear List, I'm trying to put the document title at around .25\paperheight by inserting a \blank:     \setuplayout[topspace=0cm, header=0cm, height=\paperheight]     \starttext \blank[.25\paperheight] foo \stoptext \blank[.25\paperheight,force

Re: [NTG-context] new upload

2020-11-06 Thread mf
Il 06/11/20 22:03, Pablo Rodriguez ha scritto: I’m afraid that I cannot update unless I remove tex/texmf*.tma. I’m on Linux-64bit and I wonder whether I’m the only user affected by this issue. I can confirm that on my Debian 10 64bit: no update until I removed texmf-context.tma texmf-linux-64

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread mf
Il 10/11/20 09:42, Sylvain Hubert ha scritto: Dear List, Does anyone know how to indent the paragraph beneath \placefigure in the following example?     \indenting[2em]     \setupindenting[yes]     \starttext     \dorecurse{50}{a b c }     \placefigure[here,none][indentnext=yes]{}{  

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not ju

Re: [NTG-context] new upload

2020-11-19 Thread mf
Tested. It works. - download the binaries from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip - make install.sh and bin/mtxrun executable - run install.sh and you can see the upgrade progression again. Thanks Hans, Massi Il 19/11/20 11:35, Hans Hagen ha scritto: Hi, A new up

Re: [NTG-context] new upload

2020-11-19 Thread mf
Il 19/11/20 12:00, mf ha scritto: Tested. It works. - download the binaries from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip - unzip it in your context directory - make install.sh and bin/mtxrun executable - run install.sh and you can see the upgrade progression again

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
Il 20/11/20 02:06, Johann Birnick ha scritto: On Thu, 2020-11-19 at 11:25 +0100, mf wrote: Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like

Re: [NTG-context] Inkscape 1 without gui

2020-12-12 Thread mf
See here: https://www.mail-archive.com/ntg-context@ntg.nl/msg94431.html and here: https://wiki.contextgarden.net/SVG#ConTeXt_and_Inkscape Massi Il 12/12/20 12:00, Martin Hasoň ha scritto: Hi all, Inkscape version detection doesn't work for Inkscape 1 and non-gui environments (eg docker). T

Re: [NTG-context] new font trickery

2020-12-23 Thread mf
When I started using ConTeXt, font management gave me headaches because I expected fonts to be indefinitely scalable and not to be designed in advance at fixed sizes. That came from using software like Word, where fonts are scalable at any size. Since I had no background in typesetting, I took

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread mf
Il 09/02/21 10:49, jbf ha scritto: I wonder if someone can assist me with the final step in a complicated Table of Contents where all items in the ToC are centred (except page numbers which continue to be on the right). Beneath each chapter title is a list of authors (Yes, there can be up to

[NTG-context] verify if you are already postponing notes

2021-02-15 Thread mf
Dear list, I'm typesetting XHTML and there is a couple of cases (tables and math), where I use \postponenotes ... \flushnotes in both their XML setups. The problem arises when I have math inside the cell of a table, so I get those commands nested: \postponenotes % element \postponenotes %

Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread mf
Il 01/03/21 15:44, Hans Hagen ha scritto: \starttext \startuseMPgraphic{circle}     lmt_parshape [     path   = fullcircle scaled 136mm,     offset = 2mm,     bottomskip = - 1.5LineHeight,     ] ; \stopuseMPgraphic \start \startshapedparagraph[list=circle,mp=circle,rep

Re: [NTG-context] metafun / patterns

2021-03-25 Thread mf
Il 25/03/21 14:11, Hans Hagen ha scritto: \startMPpage[offset=1cm]     draw (fullcircle scaled 5cm shifted (0cm,0cm))     withpattern image (fill fullcircle scaled 1cm withcolor "darkblue" ;)     withpatternscale (1/10,1/10)     ;     draw (fullcircle scaled 5cm shifted (5cm,0cm)

Re: [NTG-context] metafun / patterns

2021-03-25 Thread mf
Sorry for the noise, my fault: Thunderbird replaced some semicolon combinations with emojis, so they were missing when I copied and pasted them in a source file. Massi Il 25/03/21 15:14, mf ha scritto: Il 25/03/21 14:11, Hans Hagen ha scritto: \startMPpage[offset=1cm] draw (fullcircle

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread mf
Try this: %\xmltexentity{nbsp}{\nobreakspace} \xmlsetentity{nbsp}{ } % U+00A0 NBSP between braces %\xmlsetentity{nbsp}{ } % U+0020 normal space between braces \startbuffer[doc] Temperature 20 °C 20 °C 20 °C 20 °C average. Altitude 6000 m 6000 m 6000 m 6000 m average.

Re: [NTG-context] clubs and widows in columns

2021-04-26 Thread mf
Il 25/04/21 22:19, Jano Kula ha scritto: Dear list, is there a way to avoid clubs and widows in columns? I don't know, how it would be implemented, if the task is splitting typeset vertical list. \setuppapersize[A7] \starttext \startcolumns[separator=rule,               align={right,nothyphe

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally to add alternatives. To make fancy, zig zag bars I defined a macro, draw_pattern_bar, th

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread mf
Il 28/04/21 17:53, Hans Hagen ha scritto: On 4/28/2021 5:27 PM, mf wrote: Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally t

Re: [NTG-context] Stack size for arguments too small in LMTX

2021-05-25 Thread mf
Il 25/05/21 17:25, Henri Menke ha scritto: Dear list, For some reason pgfplots has a \pgfkeys invocation where the argument has more than 4000 lines. This crashes LuaMetaTeX with the message tex error > tex error on line 4045 in file pgfplots.code.tex: TeX capacity exceeded, sorry [token

Re: [NTG-context] new upload

2021-05-27 Thread mf
Il 25/05/21 18:20, Hans Hagen ha scritto: Inserts are somewhat complex (and interwoven) and are also somewhat fuzzy when one wants to do checking when making progress on a page.  We already deal with that in context in a reasonable way but I get the feeling that we can do better. This and the

[NTG-context] conversion from realpage to pagenumber

2024-01-12 Thread mf
Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII', while the twenty-second is '2'. How do I get 'XII'

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread mf
Il 12/01/24 10:39, Henning Hraban Ramm ha scritto: Am 12.01.24 um 10:18 schrieb mf: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-14 Thread mf
"]=1,   ["prefixdata"]=2,   ["state"]="start",  },  {   ["block"]="bodypart",   ["number"]=2,   ["numberdata"]=1,   ["prefixdata"]=2,   ["state"]="start",  }, ... So your answer was not the sol

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread mf
Il 23/02/24 14:32, Pablo Rodriguez via ntg-context ha scritto: Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(io.loaddata(pd

[NTG-context] Re: more register questions!

2024-05-02 Thread mf
Il 02/05/24 17:01, Thomas A. Schmitz ha scritto: Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry i

[NTG-context] a different, but not zero, blank at the top of a page

2024-07-09 Thread mf
Hello, I need advice on blanks at the start of a page. Usually a blank is ignored when it's at the top of a page. You can force it with \blank[...,force], but its value is the same as in the remainder of the text. So, if the blank over a heading is 2 lines, forcing it at the top of the page

[NTG-context] Re: a different, but not zero, blank at the top of a page

2024-07-09 Thread mf
Found this solution: \ifdim \pagetotal=0pt \blank[attop,force] \else \blank[normal] \fi Il 09/07/24 15:02, mf ha scritto: Hello, I need advice on blanks at the start of a page. Usually a blank is ignored when it's at the top of a page. You can force it with \blank[...,force], bu

[NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
Hello list, I'm trying to reference a page range (think of a long quote spanning on 2 pages). I need to discriminate ranges collapsing to one page from "real" ranges (2 or more pages): "1-1" should become "1", while "1-2" should stay like that. Here's a not working snippet: \starttext Tufte quo

Re: [NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
I found a solution, but it's tricky (and there's no check on reference existence in structures.references.collected). \directlua{   function userdata.printrange(singular, plural, label) local coll_ref = structures.references.collected[""] local pagestart = coll_ref[label .. ":start"].refe

[NTG-context] annotated text: main text in narrower text, annotations on the right

2016-09-29 Thread MF
Hello list, I need a feature like the one described in http://www.pragma-ade.nl/gen eral/magazines/mag-1102-mkiv.pdf for annotated verbatim, but for normal text. Think about the main text flowing in a narrower text, with the annotations (like unnumbered sidenotes) in a widened right margin. Or th

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-09-29 Thread mf
>  Which feature from verbatim annotations do you need because style > and color > changes can be applied in normal text without problems. > > Wolfgang Thanks for the answer, Wolfgang. That's not style and color, it's a sort of two-column layout with the main text in the left column and annotat

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-10-02 Thread MF
nd example > > mf > > 30.  > > September 2016 um 00:09 > > > > > > > >    > > Thanks > >  for the answer, Wolfgang. > > > > That's not style and color, it's a  > > sort of two-column layout wi

Re: [NTG-context] Footnotes inside and outside a framed text

2016-10-02 Thread mf
You should set the footnote text before the frame, with \footnotetext[id]{text}. In case you need to set more footnotes, set them in the order they will be called in your frame (or float, like tables or formulas). In case you define your own footnotes, use  \setnotetext[yourfootnote][id]{text}. \

[NTG-context] align natural tables left and right

2016-12-29 Thread MF
Hello list, please take a look at this: \setupbackgrounds[text][frame=on] \starttext Preceding text. \startplacetable[location={none,fit,force,here,middle}] \bTABLE   \bTR  \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD   \eTR   \bTR  \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD   \eTR \eTABLE \stoppla

Re: [NTG-context] align natural tables left and right

2016-12-30 Thread MF
> On 2016-12-29 11:31, MF wrote: > > > > >   Hello list, > > please take a look at this: > > > > \setupbackgrounds[text][frame=on] > > > > \starttext > > > > Preceding text. > > > > \startplacetable[loc

[NTG-context] index(register) from an XML source

2017-01-13 Thread MF
Hello list, please see this: \startbuffer[test]   In this page there is a cat,   a dog  and a horse.     In this page there's only a fox terrier.     In this page you find a persian cat  and a horse.     Cat Dog Ho

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
Thank you, Hans. I had found a solution, then I saw your e-mail. Anyway I've learned a lot from it. My solution was something like this: function xml.functions.indexEntry(e)  local animal = animals[e.at.idref]  if animal then  --[[  context.Animal (  { animal.key

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
> > Now an alternative approach I thought, because the index I'm > > working on > > is a biographical index, I mean a index of cited people, with a > > biographical profile. So every entry is a few lines long. > > That's why I thought to index only the ids in the text and use a > > textcommand in t

[NTG-context] frac opentype feature broken by \setbreakpoints[compound]

2017-02-13 Thread MF
Hello list, I found an interference between the "frac" opentype feature and \setbreakpoints[compound], which make the former fail when you have a numerator more than 2 digit wide. I found it with Adobe Garamond Premier Pro: with \setbreakpoints[compound], when the fraction had a 3-digit (or more)

[NTG-context] get current fontstyle with lua

2017-04-07 Thread MF
.. end Thanks, best greetings MF ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : h

Re: [NTG-context] Modes in Lua

2017-05-31 Thread MF
if tex.modes['specialmode'] then context('I’m special.') end   Best greetings, Massi > Hi, this should be easy: > > How can I access ConTeXt’s modes in Lua? Is it any different with > language modes (*en)? > > e.g. > > \startluacode > > if context.modes['specialmode'] then > context('I

[NTG-context] italian index: "I" and "J" under "I", "U" and "V" under "V"

2017-06-26 Thread MF
Hello list, there's a bug in the way ConTeXt groups the items of a register when "indicator=yes" and mainlanguage is "it": - items starting with the J letter are grouped under the I letter - items starting with the V letter are grouped under the U letter This is not what one would expect from an i

Re: [NTG-context] italian index: "I" and "J" under "I", "U" and "V" under "V"

2017-06-26 Thread mf
> in sort-lan.lua you can fix the table: > > definitions["it"] = { >  entries = { > > (not sure which italian is responsible for it) > > Hans > > Thank you, Hans. Looking at the code, there's a revealing comment before the definitions for the Latin language:  -- Treating the post-classic

Re: [NTG-context] Problem with lucida fonts (again)

2017-06-29 Thread MF
> i fixed something in the next beta for these type 1 fonts (with > slightly  > weird encodings) > I'm getting some weird errors with the most recent versions of ConTeXt too. Currently I can't send you a sample to reproduce the problem but I can only describe what happens with a big XML file of

[NTG-context] a string xmlpath in Lua

2017-07-10 Thread MF
Hello list, is there a Lua function to get the XML path of an element as a string? \xmlpath typesets the path, I need a similar function for Lua, but the path should be a string to be worked on in Lua. This is the problem originating that question: i must name (give an id to) some anonymous XML e

Re: [NTG-context] a string xmlpath in Lua

2017-07-10 Thread MF
> Hello list, > is there a Lua function to get the XML path of an element as a > string? > Found. I adapted a function from lxml-tex.lua (chainpath): function xmlpath( e, nonamespace )   if e then local t = { } while e do   local tg = e.tg   local rt = e.__p__   local ns = e

[NTG-context] SciTE under GNU/Debian Linux - lpeg not loaded

2017-09-22 Thread mf
Hello list, I'm trying to use SciTE under Debian GNU/Linux stable (64 bit) to edit my ConTeXt files. I've installed scite 3.7.2 from the Debian repository. Downloaded Scintillua and copied its "lexers" folder under /usr/share/scite. Created a symbolic link from /etc/scite/lexers to that folder: /

Re: [NTG-context] SciTE under GNU/Debian Linux - lpeg not loaded

2017-09-23 Thread mf
Il giorno sab, 23/09/2017 alle 10.47 +0200, Hans Hagen ha scritto: > On 9/22/2017 10:24 PM, mf wrote: > > Hello list, > > I'm trying to use SciTE under Debian GNU/Linux stable (64 bit) to > > edit > > my ConTeXt files. > > > > I've

[NTG-context] line correction

2017-09-28 Thread MF
Hello list, I would like ConTeXt to snap normal text to grid after a quotation. This example does not work: -- \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation \stoplin

Re: [NTG-context] line correction

2017-09-28 Thread mf
at 16:21 +0200, MF wrote: > > Hello list,  > > I would like ConTeXt to snap normal text to grid after a quotation. > > This example does not work: > > > > -- > > \setupquotation[before={\switchtobodyfont[9pt]}] > > >

Re: [NTG-context] line correction

2017-09-28 Thread mf
enri ha scritto: > On Thu, 2017-09-28 at 23:30 +0200, mf wrote: > > Thank you Henri. > > > > Now consider this: > > --- > > \setuplayout[grid=both] > > \setupquotation[before={\switchtobodyfont[9pt]}] > > > > \starttext

[NTG-context] Risposta: line correction

2017-09-29 Thread MF
Il giorno gio, 28/09/2017 alle 23.19 -0400, Rik Kabel ha scritto: > Massi and list, > > There is one issue with \startlinecorrection of which you should be > aware. The text is set in a vbox. If the block quotation it encloses > (or > whatever text it encloses) does not fit on the current page,

[NTG-context] Risposta: line correction

2017-09-29 Thread MF
> > In general, I'm ok without grid snapping, because the default > > typesetting of taller formulas inside text is good enough for my > > goals. > > for a bit more complex doc with many different unpredictable > elements > snapping seldom works ... we never use it (in production it often > lead

[NTG-context] compiling the mkiv-publications manual

2017-10-04 Thread MF
Hello list, I'm trying to compile the mkiv-publications manual from the ConTeXt distribution. Running context mkiv-publications stops with the error: ... tex error > tex error on line 58 in file publications- database.tex: ! Undefined control sequence l.58 \startBTX ... 55

[NTG-context] Risposta: compiling the mkiv-publications manual

2017-10-04 Thread MF
Thanks Luigi! This works: context --mode=atpragma mkiv-publications Il giorno mer, 04/10/2017 alle 12.29 +0200, luigi scarso ha scritto: > On Wed, Oct 4, 2017 at 12:09 PM, MF wrote: > > Hello list, > > > > I'm trying to compile the mkiv-publications manual from th

[NTG-context] Risposta: installing ConTeXt on ARM linux

2017-10-06 Thread MF
Il giorno ven, 06/10/2017 alle 12.37 +0200, Floris van Manen ha scritto: > i have this snazzy little €30 quad core ARM board with 8GB eMMC. > It runs my python3 scripts at 1/3 the speed of my MacBookPro mid > 2009. > > http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2 > > To me it looks

[NTG-context] Risposta: Risposta: installing ConTeXt on ARM linux

2017-10-06 Thread MF
Il giorno ven, 06/10/2017 alle 16.06 +0200, Floris van Manen ha scritto: > > On 6 Oct 2017, at 13:42, MF wrote: > > > > Once they get to support it, you could download the texlive context > > package that comes with Debian. > > thanks for the hint. > it turns

[NTG-context] extreme tables cell spanning interference: a bug?

2017-11-25 Thread mf
Dear list, i've found that a cell spanning across multiple rows in extreme tables interferes with a cell spanning across multiple columns on a common row. Ok, if that is not so clear, try this: \starttext The first cell spans across 3 rows. The cell in the last row s

Re: [NTG-context] issue with css selector in lpath

2017-12-11 Thread mf
I think it's the "#header" without the name of an element before. Try specifying an element you find in your document (i.e. "{{header, tag#header}}"), just to see if it compiles. If it compiles, it's likely you found a bug. Best wishes, Massi Il giorno lun, 11/12/2017 alle 21.51 +0100, Pablo Rod

Re: [NTG-context] issue with css selector in lpath

2017-12-13 Thread MF
Il giorno mar, 12/12/2017 alle 22.36 +0100, Pablo Rodriguez ha scritto: > On 12/11/2017 11:51 PM, mf wrote: > > I think it's the "#header" without the name of an element before. > > Try specifying an element you find in your document (i.e. > > "{{head

[NTG-context] \blank shrinks when forced; why \blank[line,disable] and \blank[line]\blank[disable] are different?

2018-04-07 Thread mf
Hello list, i'm trying to understand the \blank command. The following example leaves a blank line between the two lines of text. \showgrid \starttext A line.\par \blank[line] Another line.\par \stoptext When you add "force" to the blank, the vertical space between the two lines shrinks. You can

Re: [NTG-context] Installing fonts in a ConTeXt Docker (texfont tool missing?)

2018-04-13 Thread MF
> After setting ConTeXt root everything works fine and as expected. > However, the texfont tool seems to be missing which means I cannot > install new fonts in my container. This seems kind of odd to me since > I thought texfont is available automatically after ConTeXt is > installed. > > I also

[NTG-context] horizontal alignment of table cells when the content is a \framed

2018-05-04 Thread MF
Hello list, i have a problem of alignment of cell tables that contain a \framed: the horizontal alignment is ignored by table cells in natural and extreme tables. Instead a \framed inside a \framed looks ok: \starttext Framed: \framed[framecolor=blue,offset=none,width=10cm,height=7cm,align={mid

[NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-09 Thread MF
Hello list, i'd like moving the page numbers in my index to the right, with a \wordright. \setupregister[index][n=1,alternative=A] \starttext \CONTEXT\index{\ConTeXt} \page \LATEX\index{\LaTeX} \page \CONTEXT\index{\ConTeXt} \page \placeindex \stoptext The index is at page 4. I want to move the

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
Thanks Wolfgang and sorry if i reply to my mail, since i've downloaded yours on another PC. I've found these macros in strc-reg.mkiv, that are called right before and after the page numbers: \unexpanded\def\startregisterpages {\begingroup \dostarttagged\t!registerpages\empty \useregisters

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
This is a more polite version, that lets you restore the original macros. \let\origstartregisterpages=\startregisterpages% \let\origstopregisterpages=\stopregisterpages% \def\setupregisterpagescommand#1{% \unexpanded\def\startregisterpages{\origstartregisterpages#1\bgroup } \unexpanded\def\sto

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
\wordright is ok until the numbers don't exceed the text width. It manages these two cases right: Index term, and some text 21, 34, 45, 72 Index term, and some text 21, 34, 45, 72, 89 When the numbers exceed the text width, it fails: Index term, and some text 21, 34, 45, 72, 89, 101, 103, 1

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
> This would be a solution: > > Index term, and some > text > 21, 34, 45, 72, 89, >101, 103, 109 > > where the rule is: when the numbers exceed the text width, close the > paragraph, then start a new, right aligned one. > > So i wrote this: > >

Re: [NTG-context] roadmap

2018-05-15 Thread MF
> > * References: see Massimiliano’s question, apparently there are > > options missing for code before/after the list of pages > > These hooks were added; adding a few more hooks is normally no big > deal > ... the main problem with such additions is that they seldom get > documented (in fact

Re: [NTG-context] \vfrac (math mode)

2018-05-22 Thread MF
Hi Alan, try this: \def\vFrac#1#2{#1 \Uskewed / #2} \starttext $\frac{2_1}{m}$ ${2_1 \Uskewed / m}$ $\vFrac{2_1}{m}$ \stoptext See "5.7 Skewed fractions", in the manual still.pdf. Hope it helps, greetings, Massi > Is there a version of the vulgarfraction that works in math mode? > > MWE: >

Re: [NTG-context] inline footnotes

2015-01-30 Thread mf
> Hi Massi, > > Could you possibly provide a small pdf sample that illustrates exactly > what you are looking for? Thanks and > > Best wishes > Idris Thanks for your reply, Idris. Here's an example: *** traditional (stacked) footnotes *** *** 1. This is th

[NTG-context] paragraph footnotes line height

2015-03-06 Thread mf
Hello, I'd like to know how I can set the line height of paragraph footnotes. They get the line height set with \setupinterlinespace, whether I use the grid or not. Here's my configuration: \setupnotation[footnote][ alternative=serried, numbercommand=, numberstopper=, numbercommand=\high,

[NTG-context] page breaks before titles

2015-03-06 Thread mf
Hello, I'm trying to typeset a book made of letters with ConTeXt. Every letter has a title a subtitle and a date, before it starts with "Dear ..." Like this: - Title subtitle where, when Dear ..., the rest of the letter ...

Re: [NTG-context] page breaks before titles

2015-03-07 Thread mf
> You can use the \testpage command where you can set how many > lines should remain on the page before a page breaks happens. > > \setuphead[LetterTitle][before={\testpage[8]\blank[2*line]}] > > If this doesn’t help you should make a *working* minimal example. > > Wolfgang Thanks Wolfgang (an

Re: [NTG-context] paragraph footnotes line height

2015-03-07 Thread mf
> > Am 07.03.2015 um 00:08 schrieb mf : > > > > Hello, > > I'd like to know how I can set the line height of paragraph footnotes. > > They get the line height set with \setupinterlinespace, whether I use > > the grid or not. > > Here'

Re: [NTG-context] paragraph footnotes line height

2015-03-10 Thread mf
Il giorno sab, 07/03/2015 alle 10.59 +0100, Wolfgang Schuster ha scritto: > > Am 07.03.2015 um 00:08 schrieb mf : > > > > Hello, > > I'd like to know how I can set the line height of paragraph footnotes. > > They get the line height set with \setupinterlinespace

[NTG-context] setup for paragraph styles

2015-03-12 Thread mf
Hello, I'd like to kwnow the commands I should use in ConTeXt to define styles for paragraphs of text that are not headers/titles nor normal text. With titles I know I must use: \definehead[MyTitle][title] \setuphead[MyTitle][...] What should I use for texts like subtitles, dates of letters, signa

[NTG-context] line break between number and footnote text in paragraph footnotes

2015-03-31 Thread mf
Hello, I have a problem with paragraph footnotes. I don't know how to prevent a line break occurring between the footnote number and the footnote text. Sometimes a thing like this happens: ... [main text] ... -- 1. text of the first footnote --- 2. text of the second one --- 3. text o

Re: [NTG-context] line break between number and footnote text in paragraph footnotes

2015-04-02 Thread mf
> Hello, > I have a problem with paragraph footnotes. I don't know how to prevent a > line break occurring between the footnote number and the footnote text. > Sometimes a thing like this happens: > > ... [main text] ... > > -- > 1. text of the first footnote --- 2. text of the second

Re: [NTG-context] line break between number and footnote text in paragraph footnotes

2015-04-02 Thread mf
Il giorno ven, 03/04/2015 alle 00.36 +0200, Hans Hagen ha scritto: > On 4/3/2015 12:31 AM, mf wrote: > >> Hello, > >> I have a problem with paragraph footnotes. I don't know how to prevent a > >> line break occurring between the footnote number and the footnot

[NTG-context] Testing the value of a number defined with \definenumber

2015-06-27 Thread mf
I'd like to test the value of a number (\definenumber). \starttext \definenumber[numero][] \setnumber[numero][42] The value of {\tt numero} is \getnumber[numero]. \doifelse{\getnumber[numero]}{42}{ Ok, the test worked. }{ Why does not it work? } \stoptext ConTeXt types "Why does not it wor

Re: [NTG-context] Testing the value of a number defined with \definenumber

2015-06-27 Thread mf
Thanks Otared, I've added this example to http://wiki.contextgarden.net/Counters Best regards, MF > Hi MF, > > You should use \rawcountervalue instead of \getnumber, as in the > following: > > \starttext > > \definenumber[numero][] > \setnumber[numero][42

[NTG-context] Counter[way=bypage] bug in latest beta?

2015-06-29 Thread mf
Hello list, consider this example, involving a number (counter) to be reset at each page: \starttext \definenumber[MyNumber][way=bypage] % MyNumber=0 \incrementnumber[MyNumber] % MyNumber=1 \incrementnumber[MyNumber] % MyNumber=2 mynumber is \rawcountervalue[MyNumber]. % prints 2 \page % MyNumber=

Re: [NTG-context] Counter[way=bypage] bug in latest beta?

2015-06-30 Thread mf
> > > BTW: The names for the counter commands are \...counter, e.g. > > \definecounter[testcounter][way=bypage] > > \define\TestCounter > {\incrementcounter[testcounter] > %\convertedcounter[testcounter] >\rawcountervalue [testcounter]} > > \starttext > \dorecurse{3}{\TestCounter\page}

[NTG-context] \footnote and \note with \setupnotation[way=bypage], but it does not work with XML processing

2015-07-02 Thread mf
\mynote{\xmlatt{#1}{idref}}{\xmlflush{#1}} \stopxmlsetups Used in XML processing, the counters "go crazy" and I get "??" instead of the right footnote numbers in the text. Any hints? Thanks in advance, MF

Re: [NTG-context] use of preceding-sibling in xmlsetsetup

2015-10-17 Thread mf
Thank you for your answer, Thomas. I tried something similar (putting a \noindentation at the end of the "incipit" paragraph, but it failed if I put a \blank after that). The sibling part In the book of the history of luatex (v 0.50) it is said that the sibling functions would not be implemented s

  1   2   3   >