Re: [NTG-context] [luamtetex] error reloading fonts
On 10/7/19 12:40 AM, kaddour kardio wrote: > Hi everyone! i am not sue whether this issue was addressed of not, i've > updated luametatex from the [aur] package arch x86-64 > hen reloading the font cache i got this: > mtxrun --script fonts --reload > lua error : ?:-1: variable '(temporary)' got a non-closable value > > Did i miss something? Try this command: mtxrun --script cache --erase --make (from https://mailman.ntg.nl/pipermail/ntg-context/2019/095920.html). I hope it helps, Pablo -- http://www.ousia.tk ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] [luamtetex] error reloading fonts
Hi everyone! i am not sue whether this issue was addressed of not, i've updated luametatex from the [aur] package arch x86-64 hen reloading the font cache i got this: mtxrun --script fonts --reload lua error : ?:-1: variable '(temporary)' got a non-closable value Did i miss something? -- Dr YAHYAOUI Mohamed Kaddour, cardiologue . ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unexpected behavior of subsection labels
Hi, 1. Try to make shorter example because your example contains too much stuff for a minimal example. 2. You forgot \starttext in your example. 3. Your fonts don't contain greek letters which explains the missing counter in the PDF. Did you check if the fallback fonts are loaded. \setuphead [section] [number=no] \setuphead [subsection] [number=yes, sectionsegments=subsection, conversion=g] \setupbodyfont[dejavu] \starttext \completecontent \chapter{yay} \section{wow} \subsection{Text} \stoptext Wolfgang Jairo A. del Rio schrieb am 06.10.2019 um 23:29: I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Unexpected behavior of subsection labels
I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] passing variables/data between context and lua
Rudolf Bahr schrieb am 06.10.2019 um 07:11: Hello Wolfgang, what exactly does the command "\setvariable{martin}{set}{\directsetup{martin}}"? Let's start with a simple example where I set a values with the \setvariables command. \setvariables [metadata] [author=Rudolf Bahr, date=\currentdate] \starttext \getvariable{metadata}{author}\par \getvariable{metadata}{date} \stoptext The main point of the command is that you can choose whatever name you want for the keys to store the values. Instead a using a list of values to store in a key-value-method you can also pass values to single keys with the \setvariable command, e.g. \setvariable{metatdata}{author}{Rudolf Bahr}. While it is true that you're free to choose the name for the keys there are two keys with a special meaning, these two keys are "reset" and "set". The value of the "reset" key is used before the values in \setvariables are stored while "set" is used after the values are stored. I don't understand it. Has it something to do with "Command/datasetvariable"? No, this is a different mechanism to save values between different ConTeXt runs which allows one to access values before they are set. Especially what does "\directsetup"? When you access the content of a setups-environment you can use the \setups command (with a trailing s) to pass a list of setups or the \setup command, both commands allow you to use braces or brackets as delimiters for the argument. The \directsetup skips the check for the argument form and allows only braces as delimiter. \startsetups[example-1] \startparagraph First example! \stopparagraph \stopsetups \startsetups[example-2] \startparagraph Second example! \stopparagraph \stopsetups \starttext \setups[example-1,example-2] \blank \setups{example-1,example-2} \blank \setup[example-1] \setup[example-2] \blank \setup{example-1} \setup{example-2} \blank \directsetup{example-1} \directsetup{example-2} \stoptext Wolfgang ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] issue with JavaScript in Acrobat
Dear list, I have this minimal sample: \setupinteraction[state=start] \setupinteractionscreen[option=max] \startJSpreamble {varia} used now var transitions = [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000]; var msecs = 0; function step_clock() { try { ++msecs ; if ((msecs >= (transitions[this.pageNum]/10)) && ( this.pageNum < this.numPages )) { ++this.pageNum; }; } catch (e) {} } advance = app.setInterval ("step_clock()", 1); advance.count = 0; \stopJSpreamble \starttext \dorecurse{10}{\startTEXpage[pagestate=start, offset=1em] \pagenumber \stopTEXpage} \stoptext Acrobat is required. And I have an issue with it Each slide takes a full second (1000 milliseconds). But the conditional in step_clock() needs to divide the elements from transitions array by ten. Otherwise it is ten times slower. Am I missing something here? Or why is "step_clock()" ten times slower than it should be? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new (lmtx) beta
Hello, Thanks. Fabrice Le sam. 5 oct. 2019 à 12:53, Mikael P. Sundqvist a écrit : > Den lör 5 okt. 2019 09:45Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> skrev: > >> Fabrice Couvreur schrieb am 05.10.2019 um 09:39: >> >> Hi Hans, >> Where is this documentation ? >> >> Make a update and you will find luametafun.pdf in the documentation >> ($TEXMF/tex/texmf-context/doc/context/documents/general/manuals/) folder. >> >> Wolfgang >> >> >> ___ >> 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 : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ >> > > I found it is also available at > > http://www.pragma-ade.com/general/manuals/luametafun.pdf > > in case one does not want to upgrade at the moment. > > /Mikael > >> > ___ > 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 : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ 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 : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___