Re: [NTG-context] setuplayout vs Indesign!

2020-08-26 Thread Pablo Rodriguez
On 8/26/20 12:13 PM, jbf wrote: > [...] > Maybe, one of these days, someone with experience in both ConTeXt and > InDesign (since InDesign is used by very many commercial publishers, but > I am trying to convince one of them of the value of ConTeXt) could offer > a comparison of the layout terminol

[NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
Dear list, I have and \xmlraw command that gives some text with percent signs. ConTeXt parses them as comments (so no output). Using Lua gsub(), I need to replace something like: string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") How do I need to invoke % to get the character found? Man

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 5:30 PM, Taco Hoekwater wrote: >> [...] >> Using Lua gsub(), I need to replace something like: >> >>  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") > > Double it: %% > > See also https://www.lua.org/manual/5.3/manual.html#6.4.1 , but the > mention of %% is a bit hidden. Many t

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 6:16 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 27.08.2020 um 17:56: >> [...] >>\startxmlsetups xml:special >> \startitem >> \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", >> "\\letterpercent")}

[NTG-context] wrong 2TOPSIDE?

2020-08-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \startmode[*first] \startbuffer[abcde] \setuppapersize[A5, landscape] \setupbodyfont[100pt] \starttext \dorecurse{158}{% \startmakeup[page][style=\bf\ss, align=center, pagestatus=start] \recu

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 7:35 PM, Wolfgang Schuster wrote: > [...] > You have to replace %% with \letterpercent\letterpercent because you're > still playing with TeX rules. > > \startxmlsetups xml:special >     \startitem > \cldcontext{string.gsub("\xmlraw{#1}{.}","\letterpercent\letterpercent","\\letterpercent

[NTG-context] footnotes missing in heads

2020-09-02 Thread Pablo Rodriguez
Dear list, the following minimal sample: \starttext \chapter{Chapter\footnote{Note}} \section{Section\footnote{Note}} \stoptext Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes. I’m afraid this may be a bug. Could anyone confirm this? Many thanks for y

Re: [NTG-context] footnotes missing in heads

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 12:12 PM, Hans Hagen wrote: > On 9/3/2020 7:50 AM, Pablo Rodriguez wrote: >> Dear list, >> >> the following minimal sample: >> >> \starttext >> \chapter{Chapter\footnote{Note}} >> \section{Section\footnote{Note}} >&

[NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize[n] \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \stopitemize \startitemize[a, packed] \startitem Item\stopitem \startitem Item\stopitem

Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 8:09 PM, Hans Hagen wrote: > On 9/3/2020 4:52 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid that packed item lists are misbehaving. >> >> Could anyone confirm this? > can you check again (new lmtx) Many thanks for the new upload, Hans. Now packed

Re: [NTG-context] About font combination in ConTeXt MKIV

2020-09-09 Thread Pablo Rodriguez
On 9/9/20 6:24 PM, Charles Vejnar wrote: > Dear Manuel, > > To combine multiple fonts, I do something like this: > > \definefallbackfamily [mainface] [serif] [DejaVu > Serif][range=boxdrawing,force=yes] > \definefontfamily [mainface] [serif] [Tinos] > \setupbodyfont[mainface, 11pt] > > You migh

Re: [NTG-context] Problem with fonts in Lua

2020-09-18 Thread Pablo Rodriguez
On 9/15/20 1:15 PM, Wolfgang Schuster wrote: > \setuplanguage [es] [patterns={es,gr}] Just a minor issue, ancient Greek is "agr" (instead of "gr"). That being said, Heraklit is a good match for Palatino (both by Hermann Zapf). The digitized version is available from https://greekfontsociety-gfs.g

[NTG-context] issue with interaction=all and \insertpages

2020-09-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuplayout[page] \setupinteraction [state=start, color=, contrastcolor=, focus=standard] \enabledirectives[references.border=red] \setupexternalfigures[interaction=all, method=pdf] \setupinteractionscreen[option={portrait, paper}] \startt

Re: [NTG-context] issue with interaction=all and \insertpages

2020-09-23 Thread Pablo Rodriguez
On 9/23/20 11:59 AM, Taco Hoekwater wrote: > Hi Pablo, Hi Taco, many thanks for your extensive reply explaining the three issues reported. [...] >> 2. The local file includes internal destinations to page parts. After >> imposition, destinations to page for internal links cannot reach the >> pa

Re: [NTG-context] Postponed footnotes and pagebreaks

2020-09-30 Thread Pablo Rodriguez
On 9/30/20 5:52 PM, Denis Maier wrote: > Hi, > > postponing footnotes when using tables causes the footnote often to > appear on the next page, which may not always be wanted. Is there a way > to keep the footnote on the same page in these situations? Hi Denis, this options might help: \setupn

[NTG-context] buggy cropbox and trimbox?

2020-10-03 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteractionscreen [width=fit] \starttext \null \stoptext The first command adds cropbox and trimbox different from the media box. See PDF code: 5 0 obj [ 0 0 595.2756 841.8898 ] endobj 6 0 obj << /CropBox 7 0 R /Me

[NTG-context] wrong linebreak with latest LMTX

2020-10-05 Thread Pablo Rodriguez
Dear list, I don’t have a minimal sample, but the following images display problems in linebreaks using LMTX (LuaTeX 2.07 20200920 + ConTeXt MkIV 2020.09.20 23:02). 1. https://pdf.ousia.tk/wrong-linebreak.png. 2. https://pdf.ousia.tk/wrong-linebreak-again.png. 3. https://pdf.ousia.tk/wrong-

[NTG-context] playing with Windows drag & drop

2020-10-06 Thread Pablo Rodriguez
Dear list, I have a minimal sample file: \starttext \insertpages[\env{PDFdocument}] \stoptext I invoke it in Windows, using the following batch file: @echo off REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex I’m afraid it only works if the batch file and the PDF documen

Re: [NTG-context] playing with Windows drag & drop

2020-10-06 Thread Pablo Rodriguez
On 10/6/20 5:57 PM, Henning Hraban Ramm wrote: >> Am 06.10.2020 um 16:18 schrieb Pablo Rodriguez : >> [...] >> REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex >> >> I’m afraid it only works if the batch file and the PDF document are on >

Re: [NTG-context] xml bookmarks

2020-10-07 Thread Pablo Rodriguez
On 10/7/20 1:28 PM, Jano Kula wrote: > Hello to everybody! > > I have a similar problem as Tomas two days ago. When inserting bookmarks > from XML the reference to the node is stored in TUC file > >   ["titledata"]={ >    ["label"]="section", >    ["title"]="\\xmlatt {xml:name::4}{title}" > > and t

[NTG-context] wrong url border (LMTX only)

2020-10-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \enabledirectives[references.border] \definemakeup[slide] \define[1]\newurl{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} \starttext \startmakeup[slide]\newurl{a}\stopmakeup \stoptext LMTX (latest from L

Re: [NTG-context] xml bookmarks + chapter no. in header

2020-10-07 Thread Pablo Rodriguez
On 10/7/20 5:06 PM, Tomas Hala wrote: > Hi, > > I tried > \setuphead[section][expansion=yes] > with no effect before I wrote my question to the list here. > > With the \setuphead, the .tuc file still contains macro names instead of the > text: > ["title"]="\\expanded \\name ", > whereas without i

Re: [NTG-context] playing with Windows drag & drop

2020-10-07 Thread Pablo Rodriguez
>> >> .bat >> call lua.exe -e "os.execute('echo context --purgeall >> --arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')" >> >> >> Best regards, >> >> Lukas >> >> >> On 2

Re: [NTG-context] Hyperref-style borders around clickable links

2020-10-08 Thread Pablo Rodriguez
On 10/8/20 11:40 AM, Denis Maier wrote: > Am 08.10.2020 um 11:36 schrieb Henning Hraban Ramm: >>> Am 08.10.2020 um 10:41 schrieb Denis Maier : >>> >>> Ok, found a (partial) solution myself in Pablo's question from yesterday... >>> >>> \setupinteraction[state=start] >>> \enabledirectives[r

Re: [NTG-context] Hyperref-style borders around clickable links

2020-10-08 Thread Pablo Rodriguez
On 10/8/20 12:03 PM, Denis Maier wrote: > Am 08.10.2020 um 11:49 schrieb Henning Hraban Ramm: >> [...] >> And that this is PDF (viewer) styling, not TeX/MP, so there’s >> probably no further interface, even if it’s possible to set several >> properties of link borders in e.g. Acrobat. > > Anyplace

[NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startluacode function document.starts_with(str, start) if str:sub(1, #start) == start then context(start) end end \stopluacode \unexpanded\def\startswith[#1][#2] {\cldcontext{document.starts_w

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
On 10/9/20 4:08 PM, Wolfgang Schuster wrote: > [..] > You need a % at the end of the definition, otherwise TeX expects a space > after the second argument to end the command. > > \unexpanded\def\startswith[#1][#2]% >{...} Many thanks for your ultra-fast reply, Wolfgang. Now I see muy mistake.

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
On 10/9/20 5:10 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 09.10.2020 um 16:31: >> [...] >> Which are the improvements to the command added by \do*argument? > > You can add a space between both arguments. You version expects this > >     \startswi

[NTG-context] problem with string matching

2020-10-10 Thread Pablo Rodriguez
Dear list, I have this sample: \starttext \startluacode a = "asdfasd123" b = a:match("%d+") context(b) c = "123" context(c) if b==c then context("yes") else context("no") end function document.numbers_only(str) context(str:gsub("[%a%p]", "")) end

[NTG-context] Lua equivalent of \getvariable{}{}

2020-10-11 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \ctxlua{ context.setvariable("environment", "filename", "abc123") } \ctxlua{ c = context.getvariable("environment", "filename") or "a" } \ctxlua{ d = [[\env{filename}]] } c: \cldcontext{c}\\ \doifelse{\cldcontext{c:match(

[NTG-context] bug with hz in LMTX?

2020-10-12 Thread Pablo Rodriguez
Dear list, I have the following sample: \showframe\showgrid \setuplayout[width=middle] \definefontfamily[mainface][rm][TeX Gyre Pagella] [features={default, quality}] \setupbodyfont[mainface, 20pt] \setupalign[hanging, hz] \starttext \dorecurse{25}{\input{zapf}\input{cuomo}}

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 11:40 AM, Denis Maier wrote: > Hi, > > I have a few more question regarding interaction/PDF bookmarks and PDF > links: > > - How can you ignore Commands in bookmarks? Like when instead of "The > concept of {\em bookmarks}", I'd prefer to just have "The concept of > bookmarks". I know I

Re: [NTG-context] bug with hz in LMTX?

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 1:36 PM, Hans Hagen wrote: > On 10/12/2020 4:59 PM, Pablo Rodriguez wrote: >> [...] >> On page 36 (https://pdf.ousia.tk/wrong-font-expansion.pdf#page=36), >> lines 4, 11 and 20 are wrong. >> >> Current LMTX (LuaTeX 2.07 20200920 + ConTeXt MkIV 2020.09.

[NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \def\numbersfname {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} \ctxlua{ c = context.getvariable("environment", "fname") or "a" } \ctxlua{ d = [[\env{fname}]] } tex: \numbersfname\\ \doifelse{} {123}{yes

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:54 PM, Aditya Mahajan wrote: > On Tue, 13 Oct 2020, Pablo Rodriguez wrote: >> [...] >> Could anyone explain me what I’m missing here? Many thanks for your reply, Aditya. > I find it simpler to write macros where there is clean communicating > between tex

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 6:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 17:33: >> [...] >> 2. Is there no Lua version of \getvariable{...}{...}? > > There is no need because everything is stored in a Lua table. > [...] > local argumentlist  = d

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:33 PM, Pablo Rodriguez wrote: > [...] > \starttext > \ctxlua{ d = [[\env{fname}]] } > > d: \cldcontext{d}\\ > \doifelse{\cldcontext{d:match("\letterpercent d+")}} > {123}{yes}{no} > \stoptext > [...] > 3. I’m trying this on a Li

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 7:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 19:06: >> [...] >> In any case, I cannot compare to a number: >> >>\startluacode >> userdata = userdata or {} >> function userdata.numbersfname(name) &g

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 10:14 PM, Denis Maier wrote: > [...] > So, I just added this to my environment file: > > \appendtoks >   \def\em{\space} > \to \simplifiedcommands > > But, the \em still shows up in the PDF metadata. Is this still the > recommended way to do this? Or is there an easier way? I guess, ev

[NTG-context] help with filename containing spaces

2020-10-17 Thread Pablo Rodriguez
Dear list, I have this sample: \setupinteraction[state=start] \starttext \def\cB{file.pdf} \def\cC{file with spaces.pdf} %~ \def\PathName{\cldcontext{[[\env{completepath}]]}} \def\PathName{% \cldcontext{string.gsub([[\env{completepath}]], "", "/")}} no spac

[NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[es] \setupbodyfont[dejavu] \starttext %~ \startmode[*last] \startluacode io.write("¿Cuál es el mensaje? ") document.message = io.read() \stopluacode %~ \stopmode El mensaje es: \cldcontext{document.message} \sto

Re: [NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-28 Thread Pablo Rodriguez
On 10/27/20 9:40 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \mainlanguage[es] > \setupbodyfont[dejavu] > \starttext > > %~ \startmode[*last] > \startluacode > io.write("¿Cuál es el mensaje? ") > d

Re: [NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-28 Thread Pablo Rodriguez
On 10/28/20 5:44 PM, Aditya Mahajan wrote: > On Wed, 28 Oct 2020, Pablo Rodriguez wrote: >>> [...] >> I’d really appreciate to know how to request an extra pass in ConTeXt. > > As the manual says, "This mode is set if the last run in a session > is taking plac

Re: [NTG-context] Loading modules in Windows

2020-10-31 Thread Pablo Rodriguez
On 10/31/20 11:09 AM, Jeroen wrote: > Many thanks. Would you perhaps have the method to install third party > modules by hand in Windows. I have found a way to do it in Linux only. > Jeroen Hi Jeroen, the method shouldn‘t be different for Windows. Copy the contents of the tex/texmf-modules/ dire

[NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
Dear list, after latest from 2020.09.20, I afraid I get this error when running install.sh on Linux or install.bat on Windows (both 64bit): mtx-install | updating tex/texmf, 1541 files mtx-install | updating tex/texmf-context, 3757 files mtx-install | changed : 0 % :24110 : tex

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
On 11/4/20 4:18 PM, Otared Kavian wrote: > Hi Pablo, > > I get the same result as you. I think the reason is that Hans has not > yet issued a newer version (he said in a message a few days ago that > by mistake he might have uploaded a new version, but that we should > be careful not to update yet…

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
On 11/4/20 8:41 PM, Otared Kavian wrote: > Hi Pablo, > > For some unknown reason despite having tried to update lmtx several > times, I still have version 2020.09.20 23:02. Hi Otared, this is exactly the same version I have. > Indeed I do a backup before any update in order to be able to go > bac

Re: [NTG-context] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 11:16 AM, Sylvain Hubert wrote: > Dear List, > > according to https://wiki.contextgarden.net/Command/setuplayout , > "cutspace" and "bottomspace" are the counterparts of "backspace" and > "topspace", and "If cutspace is set to 0, it is taken to be equal to the > backspace". But in fact,

Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 11:28 AM, Sylvain Hubert wrote: > Dear List, > >     \starttext \showframe \showsetups \stoptext > > This minimal example without further configuration shows that the > default value for backspace, textwidth and paperwidth are 2.5cm, 15cm, > 21cm resp., which means that the textarea is h

Re: [NTG-context] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 4:11 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 05.11.2020 um 16:08: >> [...] >> >> \setuplayout[width=fit, cutspace=0.01cm] does the trick. > > Use "width=middle". Many thanks for your reply, Wolfgang. I found something

Re: [NTG-context] install.sh not working on Linux (Ubuntu 20.04)?

2020-11-06 Thread Pablo Rodriguez
On 11/6/20 5:14 PM, Floris van Manen wrote: > On 06/11/2020 16:49, Jairo A. del Rio wrote: >> Is anyone else having problems with recent ConTeXt updates on Linux? >> Since last month, install.sh isn't doing anything. However, when I go to >> Pragma ADE's website, I can download newer releases and t

[NTG-context] store data in the first run for later runs?

2020-11-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startmode[*first] \startluacode io.write(" What’s your name?") document.user_name = io.read() document_data = { "\\def\\UserName{" .. document.user_name .. "}" } io.savedata(tex.jobname.."_document-

Re: [NTG-context] new upload

2020-11-06 Thread Pablo Rodriguez
On 11/6/20 8:42 PM, Hans Hagen wrote: > Hi, > > Again a new lmtx upload. As these days are all about counting and > numbers ... of the 19K visible macros some 14K are now flagged. Many thanks for the new release, Hans. I’m afraid that I cannot update unless I remove tex/texmf*.tma. I’m on Linux-

[NTG-context] messages on undefined control sequences

2020-11-06 Thread Pablo Rodriguez
Hans, this is a standard eror message now: tex error > tex error on line 9 in file cont-yes.mkiv: Undefined control sequence \strc_sectioning_empty_correction \ifconditional \c_strc_sectioning_empty \penalty \plustenthousand \vskivskip -\lineheight \kern \zeropoint \prevdepth \st

Re: [NTG-context] new upload

2020-11-06 Thread Pablo Rodriguez
On 11/7/20 12:02 AM, mf wrote: > [...] > I can confirm that on my Debian 10 64bit: no update until I removed > > texmf-context.tma > texmf-linux-64.tma > texmf.tma > > in the tex subdir. I had to remove these files to update from LMTX from 2020.10.20 to version from 2020.11.05. But I had to remov

[NTG-context] expansion and protrusion working again

2020-11-06 Thread Pablo Rodriguez
Dear list, one of the features I noticed in current latest (from yesterday [2020.11.06]) is that hz and hanging are working again. Huge thanks to Hans and Wolfgang for enabling this again. Pablo -- http://www.ousia.tk __

[NTG-context] \setuparranging broken in LMTX?

2020-11-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuparranging[2TOP] \setuplayout[page] \starttext \insertpages[file.pdf] \stoptext With a simple PDF document, I cannot make \setuparranging work in LMTX. Using latest from 2020.11.06 20:34. It works perfectly fine with MkIV. Could anyone con

Re: [NTG-context] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 10:48 AM, Otared Kavian wrote: > Hi Pablo, > > I had the same issue as the one you were reporting (on MacOS 10.14.6). > I removed the three files > > texmf-context.tma > texmf-osx-64.tma > texmf.tma > > [...] and I think I will get the new version uploaded by Hans (my > internet connecti

[NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
Hans, using latest from yesterday, I get the following error: tex error > tex error on line 22 in file cont-yes.mkiv: Valid keyword expected, likely 'minus' mt xrunjit \relax \buff_verbatim_type_buffer_indeed ...rrentregime }tab{\typingparameter \c!tab }method{\p_buff_op

Re: [NTG-context] \setuparranging broken in LMTX?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 12:25 PM, Hans Hagen wrote: > On 11/7/2020 10:57 AM, Pablo Rodriguez wrote: >> [...] >> With a simple PDF document, I cannot make \setuparranging work in LMTX. >> Using latest from 2020.11.06 20:34. >> [...] > a bit too agressive checking in the engine .. i

[NTG-context] wrong /Rect in link annotations

2020-11-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \enabledirectives[references.border] %~ \definemakeup[slide] \define[1]\newurl{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} \starttext %~ \startmakeup[slide] \newurl{a} compared to \newurl{a}. %~ \stopmakeup \s

Re: [NTG-context] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 11:40 AM, Floris van Manen wrote: > Dear Hans, > > Would it be possible to have a simple text file with the latest release > version (or date) tag in it? Next to the folder containing the actual > install script files? In that case it is easy to check that version tag > by comparing with

Re: [NTG-context] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 12:53 PM, Pablo Rodriguez wrote: > [...] > I have a simpler approach that might help you: > > curl -I http://pragma-ade.com/context/latest/cont-tmf.zip Improved message: echo "" && curl -I http://pragma-ade.com/context/latest/cont-tmf.zip 2>&1 |

Re: [NTG-context] Works in ConTeXt, fails in LMTX

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 1:09 PM, n...@scorecrow.com wrote: > Some more details on the font inclusion problem I posted about the other day. Hi Bruce, I think that current LMTX has issues with Bondi12CPlus.TTF. Hans, could you have a look at it? I reproduce can the same issue. > \definefont[fontCoverTitle][na

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 1:29 PM, Hans Hagen wrote: > [...] Many thanks for your in-depth explanation, Hans. This sample triggers the error: \appendtoks \unexpanded\def\doverbatimspace{\char32\hskip\zeropoint}% \to \everyenableelements \setuptagging[state=start] \starttext \startt

[NTG-context] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize \item a\stopitem \stopitemize \stoptext With latest LMTX from today, I don’t get any item marker. Could you confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk _

Re: [NTG-context] wrong /Rect in link annotations

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 2:40 PM, Hans Hagen wrote: > On 11/7/2020 12:47 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid that with current latest rectangles for links got to the end >> of the line when nothing stops them. >> >> Could anyone confirm the issue? >>

Re: [NTG-context] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:11 PM, Alan Bowen wrote: > Hi, Pablo— > > Shouldn’t it be either  > \item a > or > \startitem a\stopitem > ? Hi Alan, of course, the sample reads: \starttext \startitemize \startitem a\stopitem \stopitemize \stoptext But the issue still happens on my LMTX install

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:06 PM, Sylvain Hubert wrote: > [...] > Could anyone help me define a {\bf}-aware version of \fakebf which can > render the "4 5 6" in the example above in latinmodern's bold? Hi Sylvain, there is an already defined font feature that fakes boldened fonts: boldened (and also boldened-1

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:32 PM, Sylvain Hubert wrote: > Dear List, > > say I have three sections in the document: > >     \section{foo} ... \section{bar} ... \section{baz} ... > > Now I would like to auto generate a heavily customized table of contents > like the following text, which cannot be done by the sto

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 6:18 PM, Sylvain Hubert wrote: > Thank you so much, Pablo. This is exactly what I needed. > > Could you also tell me where you have learnt these features? I had been > searching for this for hours but \effect was still the best of what I've > got. Indeed, googling 'context+tex+boldened'

Re: [NTG-context] Scheherazade New loading issue

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 6:58 PM, Alan Bowen wrote: > Though Scheherazade New font loads properly with the today’s LMTX, I > cannot get it to load with LMTX from 2020.09.20 (which I must stay with > for now because the latest one has its own complaints about my files). > > \definefallbackfamily[mainface][][Scheh

Re: [NTG-context] Font protrusion and expansion

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 7:54 PM, Tommaso Gordini wrote: > Hello to all. > > I am writing to you just to know if the following code, with which I > would like to activate the protrusion and expansion of characters in my > document, is correct. Is the command order okay? > > If I wanted to use another font, are t

Re: [NTG-context] Font protrusion and expansion

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 9:51 PM, Tommaso Gordini wrote: > Thanks Hans and thanks Pablo.  So, \usetypescript is not needed? Hi Tommaso, I never used (or needed) any typescript. But I think they aren’t needed anymore with \definefontfamily and \definefallbackfamily. Pablo -- http://www.ousia.tk __

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 2:58 AM, Sylvain Hubert wrote: > Dear List, > > Does anyone know how to set the footer to be "page i/n" where i=current > page number, n=total number of page? I've tried > >     \setuppagenumbering[location=footer, command=\groupedcommand{page > }{/\lastcounter[userpage]}] > > but \lastc

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 2:35 AM, Sylvain Hubert wrote: > Dear List, > > after hours of debugging, I finally found out that > \switchtobodyfont[face, 20pt] does NOT behave the same with > \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is > the correct one, while the former does nothing but

Re: [NTG-context] weird behavior of font.feature.effect

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 12:57 AM, Sylvain Hubert wrote: > Dear List, > > I'm confused by the result of the following example (see attached): > >     \definefontfamily[face1][rm][gabriola][it={features:{default}}] Hi Sylvain, this is the same as: \definefontfamily[face1][rm][gabriola] Just in case, "slante

[NTG-context] issues with fonts and font effects

2020-11-08 Thread Pablo Rodriguez
Hans, this sample comes from Sylvain’s message: %~ \definefontfeature[ef1][effect={width=1.0}] \definefontfeature[ef2][effect={width=}] \definefontfamily[face1][rm][gabriola] [features={default, ef1}] \definefontfamily[face2][rm][gabriola] [features={default, ef2}]

Re: [NTG-context] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 11:18 AM, Sylvain Hubert wrote: > Hi Pablo, > > thanks for the suggestion. Here's the minimal example which shows the > difference: > >     \definefontfamily[face][rm][dejavuserif] >     \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext > > this should warn: > >     fonts           > che

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 11:48 AM, Sylvain Hubert wrote: > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > the help!. > > Btw, do you know whether there is any difference between \lastpagenumber > and \lastuserpagenumber mentioned both by Wolfgang and by the excursion > book

Re: [NTG-context] issues with fonts and font effects

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 11:36 AM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 08.11.2020 um 11:22: >> [...] >> With all features defined, paragraph width is wrong using >> "effect={width=1.0}". > > Add auto=yes: \definefontfeature [ef1] [effect={width=1.0,auto=ye

[NTG-context] main text runs in the footnote area

2020-11-09 Thread Pablo Rodriguez
Hans, I have the following sample: \starttext \dorecurse{25}{This is a sentence\footnote{And this is a footnote}. } \startitemize[n, columns, three, packed] \dorecurse{25}{\item This is an item} \stopitemize \input{zapf}\footnote{This is a footnote} \startitemize[n, columns, two]

Re: [NTG-context] indentation of item separators

2020-11-09 Thread Pablo Rodriguez
On 11/9/20 8:09 PM, Sylvain Hubert wrote: > Dear List, > > In the following example, what is indented is the text instead of the > numbers. > [...] > Does anyone know how to indent the whole item group altogether? Hi Sylvain, margin is the option here, not indenting. You can see the difference:

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 9:55 AM, Sylvain Hubert wrote: > Dear List, > > In the following example, the section title appears at the very end of > the first page. > [...] > Does anyone know where to adjust the penalty in this case, so that the > section title can be repositioned to the next page? Hi Sylvain,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 5:23 PM, Sylvain Hubert wrote: > My mistake, but the problem survives the fix: > >     \setuphead[section][after={\blank[samepage,big]}] >     \starttext >     \showframe >     \dorecurse{50}{a } >     \startsection[title=spec] >     \startxtable Hi Sylvain, no fix is required when you

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Pablo Rodriguez
On 11/11/20 10:08 AM, n...@scorecrow.com wrote: > Sorry for this really, really basic question but... > > I have the following 3 line source file: > > \starttext > \typefile{test-listing.txt} > \stoptext Hi Bruce, a MWE that shows your problem would be: \setupbodyfont[cursor] \starttext \s

[NTG-context] problems with signature fields

2020-11-11 Thread Pablo Rodriguez
Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \definefield[x][signature] \field[x] \stopTEXpage \stoptext I can only use Acrobat to sign PDF documents with signature fields generated by ConTeXt. Other tools sign th

Re: [NTG-context] problems with signature fields

2020-11-12 Thread Pablo Rodriguez
On 11/12/20 12:24 AM, Hans Hagen wrote: > On 11/11/2020 9:46 PM, Pablo Rodriguez wrote: >> Hans, > >> Back then, I thought it was an minor improvement. Now I realized that >> this two objects for signature fiels are only valid for Acrobat. > > the other tools should

[NTG-context] non-ascii chars in cmd.exe (Windows)

2020-11-12 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startluacode io.write(' Name? ') document.name = io.read() or '' \stopluacode \cldcontext{document.name} is the name. \stoptext Running it on Linux, I can input non-ascii characters. When running in Windows, if the input chars co

Re: [NTG-context] non-ascii chars in cmd.exe (Windows)

2020-11-13 Thread Pablo Rodriguez
On 11/12/20 10:55 PM, Hans Hagen wrote: > On 11/12/2020 10:39 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have the following sample: >> >>\starttext >>\startluacode >>io.write(' Name? ') >>document.name = io.read()

Re: [NTG-context] non-ascii chars in cmd.exe (Windows)

2020-11-13 Thread Pablo Rodriguez
On 11/13/20 3:15 PM, Hans Hagen wrote: > On 11/13/2020 2:49 PM, Pablo Rodriguez wrote: >> [...] >> Since console input is UTF-16LE, I guess I may need something in Lua >> similar to 'regimes.translate(str, "utf16le")'. > > the console uses wha

[NTG-context] different outputfilename

2020-11-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \enablemode[presentation] \doifmodeelse{typesetting} {\disablemode[presentation]} {\enablemode[typesetting]} \startmode[typesetting] \environment[typeset-pages.tex] \stopmode \startmode[presentation] \environment[presentation.te

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Pablo Rodriguez
On 11/15/20 7:53 PM, Garulfo wrote: > [...] > Initial PDF document: > https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf > [...] > ConTeXt output : > https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreint

Re: [NTG-context] upload

2020-11-17 Thread Pablo Rodriguez
On 11/17/20 12:55 PM, Hans Hagen wrote: > Hi, > > I uploaded a new version of lmtx (and mkiv). We're still in the process > of migrating code from mkiv to lmtx (using new features). Hans, many thanks for the new upload. As I reported before, I’m afraid I’m not able to update LMTX unless I remove

Re: [NTG-context] Index formatting difference LMTX and MkIV redux

2020-11-17 Thread Pablo Rodriguez
On 11/17/20 9:34 PM, Rik Kabel wrote: > Bump. > > This is still a problem. Can anyone acknowledge that the problem exists > outside my own installation? If so, is there a work-around? An explanation? Hi Rik, I can reproduce your problem, but I’m afraid I don’t know the explanation for this or eve

Re: [NTG-context] upload

2020-11-18 Thread Pablo Rodriguez
On 11/17/20 3:15 PM, Hans Hagen wrote: > On 11/17/2020 2:57 PM, Pablo Rodriguez wrote: >> [...] >> What are we doing wrong that prevents the update of the installation? > I don't know. Nothing really changed in the installer. It may be something unrelated, but I don’

Re: [NTG-context] new upload

2020-11-18 Thread Pablo Rodriguez
On 11/18/20 7:42 PM, Hans Hagen wrote: > Hi, > > A new upload ... still some 150 tex files to go (from mkiv to lmtx > speak) ... after that the lua ones ... some fixes applied, maybe some > new temp issues introduced ... thanks for testing. Many thanks for the new upload, Hans. Even headings and

Re: [NTG-context] new upload

2020-11-19 Thread Pablo Rodriguez
On 11/19/20 11:35 AM, Hans Hagen wrote: > Hi, > > A new upload. Hopefully with the linux install fixed. Many thanks for the new upload, Hans. It fixes the issue in both Windows and Linux (I guess the same should apply to macOS). BTW, the message about resolver databases not found or outdated sti

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Pablo Rodriguez
On 11/19/20 11:55 AM, Marco Patzer wrote: > Hi! > [...] > What's the reason the section head stays on the previous page when > the “after” is used and how to fix this? Hi Marco, by default (according to strc-def.mkiv), \section has "after=\blank". In some cases, I had used "after={”\blank[samepa

[NTG-context] issue with links

2020-11-19 Thread Pablo Rodriguez
Dear list, this MWE shows that links may be misbehaving again: \setupindenting[yes, always, big] \setupinteraction[state=start] \enabledirectives[references.border] \unexpanded\def\MyURL#1% {\bgroup\goto{{\tt\hyphenatedurl{#1}}}[url(#1)]\egroup} \starttext \dorecurse{10}{word }

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