[NTG-context] Bad argument #1 to 'prehypenchar'
The following MWE gives an error with LMTX 2020.09.05 \usemodule[vim] \definevimtyping[MATLABCODE][syntax=matlab] \starttext \startMATLABCODE saveas(gcf(), "output/same-sigma.png") \stopMATLABCODE \stoptext The error message is: callback error: ...metatex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: bad argument #1 to 'prehyphenchar' (luatex.lang expected, got no value) stack traceback: [C]: in function 'lang.prehyphenchar' ...metatex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: in field 'prehyphenchar' ...metatex/texmf-context/tex/context/base/mkiv/typo-brk.lua:171: in local 'method' ...metatex/texmf-context/tex/context/base/mkiv/typo-brk.lua:392: in upvalue 'typesetters_breakpoints_handler' [string "local tonut = nodes.tonut..."]:16: in function <[string "local tonut = nodes.tonut..."]:11> (...tail calls...) ...metatex/texmf-context/tex/context/base/mkiv/node-pro.lua:88: in function <...metatex/texmf-context/tex/context/base/mkiv/node-pro.lua:79> 1 >> \SYNBOL{}saveas(gcf(), \SYN[String]{"output/same-sigma.png"})\SYNEOL{} 2 mtx-context | fatal error: return code: 256 Any idea what is going on? Thanks, Aditya ___ 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] Documentation for the database module
Hi, I want to typeset a Periodic Table of the Elements. The according data is prepared in a file with comma separated values (csv/UNIX). I found some *very* basic informations how to get file based csv-data typeset, but the result is hardly recognizable as Periodic Table of the Elements. To understand how to use the according commands I need a documentation of it. What I found was this: https://wiki.contextgarden.net/M-database which is more a summary of two examples with no explanations and starting with the warning "This may be outdated". Where can I find a good one? Thanks a lot for any help in advance! Cheers! mcc ___ 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] Footnote font size equal to main text font size
Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax \else \startfootnotetitle[title={Notas}] \placefootnotes \stopfootnotetitle \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setupfootnotedefinition[style={\switchtobodyfont[12pt]}] \setuphead[chapter][aftersection=\setups{chapter:after}] \starttext \startchapter[title={Chapter One}] Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}. \stopchapter \stoptext However, I'm concerned by \switchtobodyfont. How should I make footnote size the same as the default font size, even when an arbitrary font size is used. E.g.: \setupbodyfont[24pt] % It could be another number instead of 24 \setupfootnotedefinition[style={\switchtobodyfont[???]}] Thank you in advance. Jairo :) ___ 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] footnotes in captions in floatcombinations
Hi, I got a problem with current LMTX as well as with other versions – while I’m sure it used to work at some point: As soon as there’s a footnote in the caption of a placefigure within a floatcombination, the figure won’t get placed. There’s no problem outside of floatcombinations or with floatcombinations without footnotes. Please let there be an easy fix... Hraban \useMPlibrary[dum] \automigrateinserts \showframe \starttext \input knuth %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={Image with footnote\footnote[f:1]{foo bar baz}}] \externalfigure[001][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Another image with footnote\footnote[f:2]{Something}}] \externalfigure[002][width=.48\textwidth] \stopplacefigure %\stopfloatcombination %\stopplacefigure \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{doo be doo}}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image%\footnote[f:4]{Anything} }] \externalfigure[004][width=.48\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image}] \externalfigure[005][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image}] \externalfigure[006][width=.48\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \input tufte \stoptext ___ 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 ___