[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-20 Thread Bruce Horrocks
output.log 2>&1 but that is essentially the same as the .log file that is produced by default when you run from the command line. As your book is large you could try adding \writestatus commands at suitable points so that when your messages appear in the log you know that processing reached that far in the

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
d end for k, v in next, collected.en.environments do if v ~= true then filenames[k] = v end end end for k, v in next, collected do local c = v.commands local e = v.environments for k, v in next, commoncommands do

[NTG-context] Re: How to print the book title and section title where \reference is located?

2024-02-09 Thread Bruce Horrocks
t; Taking you literally in that you want a *file* listing the occurences and not a typeset page listing the occurrences then you could try using the following in your document at the places where you currently put \requirementA etc: \writestatus{RequirementMet}{Requirement A is met in sectio

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
} { \definetypescriptprefix [b:adobesource#1##1] [-\typescriptprefix{b:as:##1}] \definetypescriptprefix [bi:adobesource#1##1] [-\typescriptprefix{b:as:##1}it] } } \starttypescript [adobesource,adobesourcedisplay,adobesourcelight,adobesourcedisplaylight] % \writestatus{Serif

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-08 Thread Hans Hagen
\def\stoptikzinput {\autoparagraphmode\plusone \popcatcodetable \popmacro\meaning \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we

Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans van der Meer via ntg-context
manual LMTX-primitives on page 21 tells me: >>>>You can explicitly freeze an unfrozen macro. >>>>... >>>>A redefinition will now give: You can't redefine a frozen macro. >>>> But is this true? The following code seems to contradict this: &

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context
. ... A redefinition will now give: You can't redefine a frozen macro. But is this true? The following code seems to contradict this: \def\HOME{myhome} \writestatus{1}{\meaning\HOME} \letfrozen\HOME \writestatus{2}{\meaning\HOME} \def\HOME{other home} \writestatus{3}{\meaning\HOME

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
edefinition will now give: You can't redefine a frozen macro. >> But is this true? The following code seems to contradict this: >> \def\HOME{myhome} >> \writestatus{1}{\meaning\HOME} >> \letfrozen\HOME >> \writestatus{2}{\meaning\HOME} >> \def\HOME{other

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context
to contradict this: \def\HOME{myhome} \writestatus{1}{\meaning\HOME} \letfrozen\HOME \writestatus{2}{\meaning\HOME} \def\HOME{other home} \writestatus{3}{\meaning\HOME}  Is this mechanism broken? It looks so useful to prevent accidental redefinition! here i run with \enabledirectives

[NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
The manual LMTX-primitives on page 21 tells me: You can explicitly freeze an unfrozen macro. ... A redefinition will now give: You can't redefine a frozen macro. But is this true? The following code seems to contradict this: \def\HOME{myhome} \writestatus{1}{\meaning\HOME

[NTG-context] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
cted\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to check what commands are % possible outside a picture. \overloadmode\zerocount \newtoks\everytikzpic

[NTG-context] cannot compile with MkIV

2023-03-06 Thread Pablo Rodriguez via ntg-context
fter a decade it is time to remove the \type 15 %D {\pdf*} ones completely. For the moment I keep them commented but even that will 16 %D go away. 17 18 \writestatus{loading}{ConTeXt Backend Macros / PDF} 19 20 \registerctxluafile{lpdf-ini}{optimize} 21 >> \registerctxlua

Re: [NTG-context] Trouble with latest...

2023-01-08 Thread Wolfgang Schuster via ntg-context
\relax \global \advanceby #1\plusone \permanent \global #3#5=#1\relax \else \writestatus {warning}{no room f \newmuskip \scratchmuskip \newmuskip \globalscratchmuskip \newmuskip \privatescratchmuskip ! Control sequence expected instead of undefined. \syst_basics_alloca

[NTG-context] Trouble with latest...

2023-01-08 Thread Thomas A. Schmitz via ntg-context
\else \writestatus {warning}{no room f \newmuskip \scratchmuskip \newmuskip \globalscratchmuskip \newmuskip \privatescratchmuskip ! Control sequence expected instead of undefined. \syst_basics_allocate_yes #1#2#3#4#5->\ifnum #1<#4\relax \global \advanceby

Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Denis Maier via ntg-context
file (\writestatus{SPLITPOINT}{\the\realpageno}) at the end of part 1, which I then wanted to process with a script (e.g., read the page number, use pdftk to split the complete PDF at this point to get PDFs for the individual volumes). However, at the end I've just had to send the PDF containing

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
dface. text {\it text {\bi text} text} text \stoptext \unprotect \def\pack_layers_positioned_box_nop {\vpack {\writestatus{WOLF}{\getboxlly\b_layers}% \writestatus{WOLF}{\getboxllx\b_layers}% \vskip-\getboxlly\b_layers \hskip-\getboxllx\b_layers \hsize-\dimexpr

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ult}] \setvariables [assignments] [set={\setups[assignments:set]}] \startsetups assignments:set \writestatus{variables}{assignments:set is being called..} \startalignment[middle] \bTABLE[frame=off] \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm] \setupTABLE[c][2][al

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
for >> %C details. >> >> %D A fixed variant of the t-tikz module distributed with tikz. For practical >> reasons >> %D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll >> optimize >> %D TIKZ a bit.) >> %D >> %D All

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jeong Dal via ntg-context
on > unix > %D tds finally adopted a case insensitive approach.) > > %D Just in case someone does a hard input ... > > \ifdefined\pgfdefined\endinput \fi > \ifdefined\pgfcoredefined\endinput \fi > > %D ... but normally we end up here: > > \startmodule[tikz] >

Re: [NTG-context] circuitikz module seems broken

2021-12-13 Thread Hans Hagen via ntg-context
sone \popcatcodetable \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So

Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-06 Thread Hans Hagen via ntg-context
z.code.tex} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to check what commands are % possible outside a picture. \overloadmode\zerocount

Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context
zinput} \tikzinputfile{t-pgf.tex} \tikzinputfile{t-pgffor.tex} \tikzinputfile{tikz.code.tex} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
=lang-rep, %Dversion=2013.04.28, %D title=\CONTEXT\ Language Macros, %D subtitle=Substitution, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||pack

Re: [NTG-context] Can't find `t-pgf.tex` and `pgflibrarypgfplots.contourlua.code.tex`

2021-06-08 Thread Hans Hagen
catcode`\!=12 \input t-pgf.tex \input t-pgffor.tex \input tikz.code.tex \popcatcodetable \popoverloadmode \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} \ifcase\contextlmtxmode \let\starttikzsettings\relax \let\stoptikzsettings \relax \

Re: [NTG-context] new page before xtable with repeated headers

2021-05-31 Thread Werner Hennrich
sorry, not true: Am 31.05.21 um 12:36 schrieb Werner Hennrich: but the patch isn't loaded any more. my \writestatus\m!system{beware: LOCAL PATCH LOADED FOR xtable} from inside the \else to \fi is indeed still in my console. case re safe update closed - thanks, Werner

Re: [NTG-context] Unnecessary loading of lm-mono

2021-05-26 Thread Henri Menke
es: lmmono10-regular.otf, >libertinusmath-bold.otf, libertinusmath-regular.otf, >libertinusserif-regular.otf Looks like something is accidentally being typeset (maybe stored in a box) before \starttext. You can reproduce this in MKIV with the following \writestatus{debug}{Before}

Re: [NTG-context] outputting components in their own PDFs

2021-03-01 Thread denis.maier
information to the log file: \writestatus{!}{SPLIT HERE: \the\realpageno} You should be then able to extract the split points from the log file and extract the components from the complete PDF. Or, if you know that you will need to split your document at certain structure elements (chapters

Re: [NTG-context] Write to tuc file

2021-02-28 Thread denis.maier
e}\page} \appendetoks \writestatus{!}{} \writestatus{!}{SPLIT HERE: \the\realpageno} \writestatus{!}{} \to \everystoptext \dorecurse{10}{\samplefile{tufte}\page} and then use this number in: context --extra=select --selection=1:4oeps.pdf --once --autopdf c

Re: [NTG-context] Write to tuc file

2021-02-27 Thread denis.maier
curse{10}{\samplefile{tufte}\page} \appendetoks \writestatus{!}{} \writestatus{!}{SPLIT HERE: \the\realpageno} \writestatus{!}{} \to \everystoptext \dorecurse{10}{\samplefile{tufte}\page} and then use this number in: context --extra=select --selection=1:4oeps.pdf --o

Re: [NTG-context] Write to tuc file

2021-02-27 Thread Hans Hagen
treat them as two individual books, but then I'd have to get the last page number of volume 1 in volume 2. On the console you see the pagenumbers right? What you need is the realpage. You could actually do something: \dorecurse{10}{\samplefile{tufte}\page} \appendetoks \writestatus

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Jean-Philippe Rey
only noticeable difference is that now I need to explicitly \usemodule[tikz] in order to use pgfplots. I checked and found the line \usemodule[t][tikz] in t-pgfplots.tex. I guess that explains it. > then you can define the \PackageError macro (I did it with some trial and > error but

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
it with some trial and error but the next seems to work: \let\PackageError\writestatus so I'll add something like that to m-tikz.mkiv after all that I get this: PGFPlots: reading {mfe-addplot.dat} pgfplots> Sorry, could not retrieve column 't' from table '\\pgfplotstableread@filename

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Hans Hagen
Hi Jano, It's not clear to me what you want to measure when but here is a weekend playground (you're locked down anyway). \def\MacroJano#1% {\writestatus{JANO}{ONE} \setbox0=\hbox\bgroup\xmlflush{#1}\egroup} \startluacode function document.FunctionJano(id

[NTG-context] context --ctx=s-mod not working?

2020-07-15 Thread Jairo A. del Rio
ait ->\begingroup \read 16 to \wait \endgroup \installsystemnamespace ...??#1\endcsname \writestatus \m!system {duplicate system namespace '#1'}\wait \else \global \advance \c_syst_helpers_n_of_names... l.4554 \installsystemnamespace{extraevery} Is it

[NTG-context] loading xml error

2020-06-23 Thread Hans van der Meer
fer "german" xml > core > load error in [buffer: german]: invalid xml file - parsed text Minimal code to explain what is done: % Loading from buffer. \def\loadvocabularyfrombuffer#1{% \writestatus{HVDM-VOC}{load vocabulary from buffer "#1"}% \X

Re: [NTG-context] About the use of command handlers

2020-05-29 Thread Hans Hagen
] \unprotect \writestatus{loading}{ConTeXt User Module / look} \installnamespace {look} \installcommandhandler \look {look} \look \appendtoks \setuevalue{\currentlook}{\do_look{\currentlook}} \to \everydefinelook \unexpanded

[NTG-context] About the use of command handlers

2020-05-28 Thread Jairo A. del Rio
Hello list! I was reading the following: https://wiki.contextgarden.net/Style_Alternatives I wanted to figure out how to make a simple module. However, there's a point in the example below which I don't understand % macros=mkvi \startmodule[look] \unprotect \writestatus{loading}{ConTeXt User

Re: [NTG-context] coloring the logfile

2019-08-29 Thread Taco Hoekwater
>> >> >> On 29/08/19 5:35 PM, Henning Hraban Ramm wrote: >>> >>>> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : >>>> >>>> Is it possible to force lines written in the log with \writestatus to >>>> have a specific

Re: [NTG-context] coloring the logfile

2019-08-29 Thread Hans van der Meer
19, at 09:39, Henri Menke wrote: > > > > On 29/08/19 5:35 PM, Henning Hraban Ramm wrote: >> >>> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : >>> >>> Is it possible to force lines written in the log with \writestatus to have >>>

Re: [NTG-context] coloring the logfile

2019-08-29 Thread Henri Menke
On 29/08/19 5:35 PM, Henning Hraban Ramm wrote: > >> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : >> >> Is it possible to force lines written in the log with \writestatus to have >> a specific color? The log can be very substantial and it would be nice to

Re: [NTG-context] coloring the logfile

2019-08-28 Thread Henning Hraban Ramm
> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : > > Is it possible to force lines written in the log with \writestatus to have a > specific color? The log can be very substantial and it would be nice to have > some lines brought to attention by a different color. As a tex

[NTG-context] coloring the logfile

2019-08-28 Thread Hans van der Meer
Is it possible to force lines written in the log with \writestatus to have a specific color? The log can be very substantial and it would be nice to have some lines brought to attention by a different color. dr. Hans van der Meer

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
t; \ifx\temp\empty\normalday \else\temp\fi > \edef\temp{\systemparameter\c!m}\scratchcountertwo > \ifx\temp\empty\normalmonth\else\temp\fi > \edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear > \else\temp\fi} > > \writestatus\m!system{beware: some pa

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
stemparameter\c!m}\scratchcountertwo \ifx\temp\empty\normalmonth\else\temp\fi \edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear \else\temp\fi} \writestatus\m!system{beware: some patches loaded from cont-new.mkiv} However I still get the wrong date with the ex

Re: [NTG-context] [tikz] pgfplotsreplacepdfmark error

2018-08-31 Thread Hans Hagen
'/texmf-modules/tex/generic/pgfplots/pgfplots.code.tex' into the file 'cont-yes.mkiv' : that one will be overwritten next update .. better use cont-loc.mkiv in texmf-local/tex/context/user/ or so and add \writestatus{}{pdfmark hack} and keep an eye on tikz fixes - \unprotect

Re: [NTG-context] \basegrid ignores color

2018-03-22 Thread Henri Menke
p; \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \writestatus{loading}{MetaPost Graphics / Grids} %D This used to be a \TEX\ method, and a rather old one too. We keep it around but %D

Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Tim Steenvoorden
d). > > What am I doing wrong that such a thing happens? > > I’m on macOS 10.13.3 with minimals beta 2018.02.09 00:04. > > Cheers, > Tim > > > –– > > \starttext > > \definemacro\see[#1:#2] > {\dosee{#1}{#2}} > > \starttexdefinition dosee #1#2 &

Re: [NTG-context] Unexpected emergency stop

2018-02-09 Thread Otared Kavian
on macOS 10.13.3 with minimals beta 2018.02.09 00:04. > > Cheers, > Tim > > > –– > > \starttext > > \definemacro\see[#1:#2] > {\dosee{#1}{#2}} > > \starttexdefinition dosee #1#2 > \doifdefinedelse{in#1} > {\getvalue{in#1}[#1:#2]} >

[NTG-context] Unexpected emergency stop

2018-02-09 Thread Tim Steenvoorden
h minimals beta 2018.02.09 00:04. Cheers, Tim –– \starttext \definemacro\see[#1:#2] {\dosee{#1}{#2}} \starttexdefinition dosee #1#2 \doifdefinedelse{in#1} {\getvalue{in#1}[#1:#2]} {\writestatus{references}{reference format in#1 not defined} \in[#1:#2]} \stoptexdefinition %

Re: [NTG-context] Problem with \definemathmatrix

2018-01-17 Thread Aditya Mahajan
author=Aditya Mahajan, %D date=\currentdate, %Dcopyright=Aditya Mahajan, %Demail=adityam ieee org, %D license=Simplified BSD License] \writestatus{loading}{Simple matrix (ver: 2014.02.18)} \startmodule[simplematrix] \unprotect \definenamespace [simplematrix] [ \c

[NTG-context] nested \xmlprocessfile calls

2017-06-13 Thread Meer, Hans van der
In a document a series of xml files is processed. The nodes processed are as usual defined in \xmlsetsetup{#1}\writestatus{}{MARKER}{node1|node2|..}{name:*}\stopxmlsetups \xmlregistersetup{name:setups} The root is called with \xmlprocessfile{root}{filename}{} and has a setup as follows

Re: [NTG-context] display current section number in \writestatus

2017-03-09 Thread Rik Kabel
On 2017-03-09 16:20, Hans Hagen wrote: On 3/9/2017 4:39 AM, Rik Kabel wrote: ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have

Re: [NTG-context] display current section number in \writestatus

2017-03-09 Thread Hans Hagen
On 3/9/2017 4:39 AM, Rik Kabel wrote: ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have tried \fullheadnumber

[NTG-context] display current section number in \writestatus

2017-03-08 Thread Rik Kabel
ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have tried \fullheadnumber and such, but cannot find something appropriate

[NTG-context] Purpose/use of loadsetup interface *.xml files

2017-02-23 Thread Stephen Gaito
levant contents of t-contests.mkiv are: %M \usemodule[contests] %M \loadsetups[t-contests.xml] \writestatus{loading}{ConTeXt User Module / ConTests} %D \subject{Implementation} \unprotect \ctxloadluafile{t-contests} %D \macros{loadSuite} %D %D \showsetup{loadSuite} \def\loadS

[NTG-context] loading and executing xml-buffer

2016-10-12 Thread Meer, Hans van der
crlf \xmlall{#1}{buffer/*} \stopxmlsetups \startxmlsetups xml:demo:b \xmlstripnolines{#1}{.} {\bf\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:demo:document \writestatus{TEST}{start document} start document "\xmldocument"\blank \xmlflush{#

Re: [NTG-context] xml input

2016-04-21 Thread Mica Semrick
es-xml}{}}\crlf >\xmlprocessbuffer{notes}{notes-xml}{} >\blank >Not ok with >\type{\xmlprocessbuffer{notes}{notes-xml}{notes:takenotes}}\crlf >\xmlprocessbuffer{notes}{notes-xml}{} >\textrule{end of test \#2} >\stoptext >\stophiding > >%\starthiding >% Test #3 >\startxmlsetup

Re: [NTG-context] xml input

2016-04-21 Thread Meer, Hans van der
er of = \xmlcount{#1}{note} \stopxmlsetups \startxmlsetups notes:include \writestatus{DEBUG}{enter notes: include file \xmlattribute{#1}{../include}{file}} \xmlinclude{#1}{../include}{file} \stopxmlsetups \starttext \type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}} will crash \xmlpro

Re: [NTG-context] xml input

2016-04-14 Thread Mica Semrick
/lxml-tex.lua:579: in >> function ><...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567> >> (...tail calls...) >> >> >> De navolgende code is toch niet fout? >> >> De main input is >> >> >> >> >>

Re: [NTG-context] xml input

2016-04-14 Thread Pablo Rodriguez
ut? > > De main input is > > > > > > > De file notes-example.xml bevat slechts > subnodes etc > omsluiten met ... doet niets anders. > > Ik doe het volgende (met loading tracker enabled > \startxmlsetups notes:takenotes > % Include files and buffers. &

Re: [NTG-context] xml input

2016-04-14 Thread luigi scarso
> > > De file notes-example.xml bevat slechts > subnodes etc > omsluiten met ... doet niets anders. > > Ik doe het volgende (met loading tracker enabled > \startxmlsetups notes:takenotes > % Include files and buffers. > \xmlfilter{#1}{/include/command(notes:include

Re: [NTG-context] xml input

2016-04-14 Thread Meer, Hans van der
% Include files and buffers. \xmlfilter{#1}{/include/command(notes:include)} \stopxmlsetups \startxmlsetups notes:include % Include from file. \doifnot{\xmlatt{#1}{file}}{\empty} {\writestatus{HVDM-NOTE-DEBUG}{..looking for file \xmlatt{#1}{file}} \xmlinclude{#1}{}{file}} \stop

[NTG-context] citations

2016-01-20 Thread Meer, Hans van der
{\processcommalist[#1]\bibentry \doifnotempty{#2}{\space#2\strut\par}}} % Disabling citations altogether. \def\Cdofootnotecite[#1][#2]{\ignorespaces}% % Citations switched on. \def\enablecitations{% \writestatus{HVDM-ONDERWIJS}{citations enabled}% \let\dofootnotecite\Adofootnotecite} % Citations

[NTG-context] file not found

2016-01-12 Thread Meer, Hans van der
be very much appreciated because I have not much time left to finish the text. Macro for calling a context run: % Call context for figures #1 = mode, #2 = fontchoice, #3 = colorchoice, #4 = file without .tex extension. \def\callcontext[#1][#2][#3]#4{% \writestatus{HVDM}{CALLING DIRECTLUA file=#4

Re: [NTG-context] xmlconcat

2015-08-23 Thread Hans Hagen
xmltest:setups \xmlsetsetup{\xmldocument}{root|test}{xmltest:*} \stopxmlsetups \xmlregistersetup{xmltest:setups} \startxmlsetups xmltest:root \writestatus{TEST}{calling xmltest:root} \xmlconcat{#1}{test}{xxx}\crlf \xmlconcat{#1}{test/command(xmltest:test)}{yyy}\crlf \stopxmlsetups \startxmlsetups

[NTG-context] xmlconcat

2015-08-22 Thread Meer, H. van der
}{xmltest:*} \stopxmlsetups \xmlregistersetup{xmltest:setups} \startxmlsetups xmltest:root \writestatus{TEST}{calling xmltest:root} \xmlconcat{#1}{test}{xxx}\crlf \xmlconcat{#1}{test/command(xmltest:test)}{yyy}\crlf \stopxmlsetups \startxmlsetups xmltest:test \xmlflush{#1} \stopxmlsetups \startbuffer

Re: [NTG-context] Windows console message from utf-8 source

2015-04-28 Thread Pablo Rodriguez
a weird issue (Win7 64bit). Here is the minimal sample: \starttext \writestatus{Español}{con acentuación} \message{En español usamos acentuación} \stoptext Text from \writestatus is displayed right as utf-8. But text from \message isn’t displayed right. Is this a bug or am I

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Hans Hagen
: Dear list, I have this minimal sample: \starttext \writestatus{apples}{oranges} \message{Have you checked this variable?} \stoptext Is there a way that I can pause the compilation proccess to show the message and that compilation would continue by pressing any key? Many thanks

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Hans Hagen
On 4/24/2015 7:37 PM, Pablo Rodriguez wrote: Dear list, I have this minimal sample: \starttext \writestatus{apples}{oranges} \message{Have you checked this variable?} \stoptext Is there a way that I can pause the compilation proccess to show the message and that compilation

[NTG-context] pausing compilation to show a message

2015-04-24 Thread Pablo Rodriguez
Dear list, I have this minimal sample: \starttext \writestatus{apples}{oranges} \message{Have you checked this variable?} \stoptext Is there a way that I can pause the compilation proccess to show the message and that compilation would continue by pressing any key? Many thanks

Re: [NTG-context] pausing compilation to show a message

2015-04-24 Thread Pablo Rodriguez
the message only in the first run? Is there any conditional based on the run number? How can I insert a new line in \message? Many thanks for your help, Pablo On 04/24/2015 07:37 PM, Pablo Rodriguez wrote: Dear list, I have this minimal sample: \starttext \writestatus{apples}{oranges

Re: [NTG-context] \executesystemcommand dont work?

2015-02-16 Thread Aditya Mahajan
don't know why the shell command does not work. Try this instead (I assume that windows comes with the echo command): \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Post only the output

Re: [NTG-context] \executesystemcommand dont work?

2015-02-16 Thread Jaroslav Hajtmar
Hi Aditya. Thanx for reply. I am sending result from output console from your example ie: \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Output is below. Regarding the call ConTeXt, I often

[NTG-context] Strange bug with overviewpage module.

2014-12-19 Thread Aditya Mahajan
Mahajan, %Demail=adityam at ieee dot org, %D license=Simplified BSD License] \writestatus{loading}{Overview Page (ver: 2013.08.31)} \startmodule [overviewpage] \unprotect \setupmodule [\c!level=] \installnamespace{overviewpage} \initializeboxstack{\overviewpage

[NTG-context] s-mod produces system error: invalid parameter ...

2014-09-21 Thread Christoph Reller
Hi, Probably this is a minor thing. When processing the following module template: %D \module[ %D file=p-Mymod, %D title=The Mymod Module, %D author=The Author, %D date=\currentdate, %D ] %M \usemodule[Mymod] %D Hello \writestatus{loading}{ConTeXt User Module / Mymod

Re: [NTG-context] s-mod produces system error: invalid parameter ...

2014-09-21 Thread Wolfgang Schuster
] %M \usemodule[Mymod] %D Hello \writestatus{loading}{ConTeXt User Module / Mymod} \unprotect \protect \endinput with: context --ctx=s-mod p-Mymod.mkiv then the console output contains: system error: invalid parent type for parametercommand, type defined

[NTG-context] problem with buffer

2014-09-15 Thread Kenny
{\dosingleempty\dostartsolution} \def\dostartsolution[#1]{ \getparameters[solution][height=1em,] % set defaults (needed in case parameters missing) \iffirstargument \writestatus{DEBUG}{--First argument: |#1|} \getparameters[solution][#1,] \fi \writestatus{DEBUG}{--\solutionheight--} \startSOLUTION

Re: [NTG-context] reading modules broken?

2014-06-07 Thread Meer, H. van der
version which demonstrates that the change in behaviour must have occurred after january second. Minimal example follows. Hans van der Meer Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test

Re: [NTG-context] reading modules broken?

2014-06-07 Thread Wolfgang Schuster
in behaviour must have occurred after january second. Minimal example follows. Hans van der Meer Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log

[NTG-context] reading modules broken?

2014-06-06 Thread Meer, H. van der
in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log. \stoptext In the log I find: This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open

Re: [NTG-context] reading modules broken?

2014-06-06 Thread Hans Hagen
example follows. Hans van der Meer Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log. \stoptext modules have names like m- x- s- p- u- and the lookup

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan
-simplematrix, %D version=2014.02.18, %Dtitle=\CONTEXT\ User Module, %D subtitle=Simple matrix, %D author=Aditya Mahajan, %D date=\currentdate, %Dcopyright=Aditya Mahajan, %Demail=adityam at ieee dot org, %D license=Simplified BSD License] \writestatus{loading

Re: [NTG-context] Get rid of LuaTeX warning on duplicate destination identifier

2013-08-29 Thread Hans Hagen
\nextbox \cleanupbox\scratchbox % remove nodes that should not be seen in the backend twice \writestatus{overview}{saving first page of \overviewsection\space\overview_current_headnumber}% \savebox{\overview}{\overview_current_headnumber}{\box\scratchbox}% \fi

Re: [NTG-context] How to update context modules; thank you, write-up, and a couple of questions

2013-08-04 Thread Marco Patzer
On 2013–08–04 Michael Ash wrote: (1) Is it possible to tell which version of a module is installed, i.e., that I am using the 2013.07.31 version of letter? (The version of context appears in the log file but not the version of the module.) Often modules contain a line like \writestatus

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
in it, the dimexpr does evaluates to 30 pt. Where am I at fault? Hans van der Meer \setuppapersize[A6][A6] \setupbodyfont[10pt] \starttext 10pt\ \begingroup\switchtobodyfont[20pt]20pt\endgroup\ 10pt\par \writestatus{==}{} 10pt\ \begingroup\switchtobodyfont[\the\dimexpr(3\bodyfontsize)] times 3

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
up the existing typescript files and sending them where they can be incorporated. But if that is not al… Hans van der Meer Minimal Tex code: \setuppapersize[A5][A5] %\usetypescriptfile[euler]\usetypescript[euler] \tracetypescriptstrue \setupbodyfont[lmodern,10pt] \starttext Before\writestatus

[NTG-context] date problem

2013-03-20 Thread H. van der Meer
There is a nasty problem when defining the \date. First approach: *** macro:-\date \def\thedate{\date}\writestatus{***}{\meaning\thedate} Alas, I get lateron a luatex error on \date: ! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\d'. Second

Re: [NTG-context] date problem

2013-03-20 Thread Meer H. van der
One step further, thanks. But why does \edef\thedate{\rawdate[]}\writestatus{***}{\meaning\thedate} result in ** macro:-unknown march 2013 instead of 20 march 2013? Hans van der Meer On 20 mrt. 2013, at 14:39, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am

Re: [NTG-context] date problem

2013-03-20 Thread Wolfgang Schuster
Am 20.03.2013 um 14:52 schrieb Meer H. van der h.vanderm...@uva.nl: One step further, thanks. But why does \edef\thedate{\rawdate[]}\writestatus{***}{\meaning\thedate} result in ** macro:-unknown march 2013 instead of 20 march 2013? Provide a *working* minimal example

Re: [NTG-context] date problem

2013-03-20 Thread Meer H. van der
I see. But this is not working too. Following your suggestion I now get: \edef\thisdate{\ctxcommand{currentdate(month, ,day, , year,\currentlanguage)}}\writestatus{***}{\meaning\thisdate} *** macro:-\labeltext {march} 20 2013 The problem is essentially the same. I am most unhappy

Re: [NTG-context] date problem

2013-03-20 Thread Wolfgang Schuster
Am 20.03.2013 um 15:29 schrieb Meer H. van der h.vanderm...@uva.nl: I see. But this is not working too. Following your suggestion I now get: \edef\thisdate{\ctxcommand{currentdate(month, ,day, , year,\currentlanguage)}}\writestatus{***}{\meaning\thisdate} *** macro:-\labeltext

[NTG-context] date handling maltreated?

2013-03-20 Thread H. van der Meer
, \day, \month, and year are established at the beginning of a job; .. /citation Now the results in ConTeXT with a minimal example, put into the log for easier copying into the mail: \starttext \writestatus{}{\meaning\date - \date} \writestatus{}{\meaning\day - \the\day} \writestatus{}{\meaning

[NTG-context] date handling maltreated?

2013-03-20 Thread H. van der Meer
, \day, \month, and year are established at the beginning of a job; .. /citation Now the results in ConTeXT with a minimal example, put into the log for easier copying into the mail: \starttext \writestatus{}{\meaning\date - \date} \writestatus{}{\meaning\day - \the\day} \writestatus{}{\meaning

Re: [NTG-context] date handling maltreated?

2013-03-20 Thread Wolfgang Schuster
by TeX itself as it runs, so it is inappropriate to initialize them: \time, \day, \month, and year are established at the beginning of a job; .. /citation Now the results in ConTeXT with a minimal example, put into the log for easier copying into the mail: \starttext \writestatus

Re: [NTG-context] Strange bug with \ in footnotes

2012-08-05 Thread Hans Hagen
Someone\footnote{Prof.\ 3 ABC} 4 \stoptext 5 Ok, the next is only for those who want to spend some time on the internals ... \starttext \def\TestA#1% {\writestatus{Test A}{#1}% \ctxlua{str = #1 print(str) context(str) io.savedata(temp.tmp,str)}} \def\TestB#1% {\writestatus{Test B}{#1

Re: [NTG-context] ntg-style error

2012-06-06 Thread Taco Hoekwater
[maps] [tt] [mono] [modern] [default] [encoding=ec,rscale=0.90] \definetypeface [maps] [ss] [sans] [modern] [default] [encoding=ec,rscale=0.95] \stoptypescript \writestatus{maps\space warning}{This, the MkII style, is OUTDATED and UNSUPPORTED!} \writestatus{maps\space warning}{Please

Re: [NTG-context] Missing math font breaks compilation

2012-05-21 Thread Hans Hagen
% {\expandafter\ifx\csname\??fontinstanceclass\fontclass-\fontbody-\s!mm-#familytag-\fontsize-1\endcsname\relax \writestatus{fonts}{math: unset for global bodyfont \fontclass\space at \fontbody}% \else \scriptscriptfont#fam\csname\??fontinstanceclass\fontclass-\fontbody-\s!mm-#familytag-\fontsize

[NTG-context] howto execute loaded xml?

2012-03-21 Thread Meer, H. van der
\xmlregistersetup{load:setups} \startxmlsetups load:myroot \writestatus{TEST-LOAD}{loading myroot} \xmlall{#1}{include} \xmlall{#1}{text} \xmlall{includes}{text} \stopxmlsetups \startxmlsetups load:text *** \xmlflush{#1} ***\par \stopxmlsetups \startxmlsetups load:include \writestatus{TEST-LOAD

[NTG-context] xml--verbatim in error?

2012-03-21 Thread Meer, H. van der
} \startxmlsetups load:myroot \writestatus{TEST}{loading myroot node = #1 = \xmlname{#1}} % \xmlverbatim{#1}{text}\par \xmldisplayverbatim{#1}{text}\par % \xmlinlineverbatim{#1}{text}\par \stopxmlsetups \startxmlsetups load:text \writestatus{TEST}{node = #1 = \xmlname{#1}} \xmlflush{#1

[NTG-context] \attributedef not working?

2012-03-14 Thread Meer, H. van der
Processing xml I get with: \writestatus{}{\xmlattributedef{#1}{.}{default}{???}} output: ??? and \writestatus{}{\xmlattribute{#1}{.}{default}} has no attribute output but with: \writestatus{}{\xmlattdef{#1}{default}{???}} output

  1   2   3   >