[NTG-context] Re: \starttable questions
On Thu, Jan 25, 2024 at 22:22 (+0100), Wolfgang Schuster wrote: > Jim schrieb am 25.01.2024 um 22:01: >> Hi Henning, >> On Thu, Jan 25, 2024 at 17:16 (+0100), Henning Hraban Ramm wrote: >>> Am 25.01.24 um 16:12 schrieb Jim: >>> > Hi, I was wondering if anyone here could help me with these three things: >>> > For a long time I have been using Wichura's TaBle macros (i.e., what one >>> > gets with >>> > \input table >>> > in plain TeX) and would like to use what appears to be ConTeXt's version >>> > of >>> > those (i.e., what one gets with \starttable ... \stoptable). >>> > However, https://wiki.contextgarden.net/Command/starttable says >>> > The environment \starttable ... \stoptable is and (sic) old and >>> > nearly obsolete way to handle tabular material >>> > Q1: are there plans to remove \starttable ... \endtable from ConTeXt any >>> > time "soon", or is that wiki comment gratuitously pessimistic? >>> Hans suggests to use tabulate as long as it fits. >> I just gave that a try, using the same syntax as \starttable: >> \starttable[|c|c|] >> \HL >> \VL \bf Year \VL \bf Citizens \VL\SR >> \HL >> \VL 1675 \VL ˜428 \VL\FR >> \VL 1795 \VL 1124 \VL\MR >> \VL 1880 \VL 2405 \VL\MR >> \VL 1995 \VL 7408 \VL\LR >> \HL >> \stoptable >> \starttabulate[|c|c|] >> \HL >> \VL \bf Year \VL \bf Citizens \VL\SR >> \HL >> \VL 1675 \VL ˜428 \VL\FR >> \VL 1795 \VL 1124 \VL\MR >> \VL 1880 \VL 2405 \VL\MR >> \VL 1995 \VL 7408 \VL\LR >> \HL >> \stoptabulate >> While tabulate produced a table with the above input, it needs some work to >> make the table look good. (The columns are too narrow, the vrules don't >> meet the hrules, ...). >> Perhaps these can be fixed with some tweaking, but I notice that in all of >> https://wiki.contextgarden.net/Command/starttabulate >> and >> https://wiki.contextgarden.net/Tabulate >> and >> http://www.ntg.nl/maps/22/28.pdf >> there is a conspicuous lack of examples with vrules. And the tables in the >> (at least) the starttabulate wiki page which use vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > alternative in this case are either natural tables or extreme tables. > Below is a example which uses the table like wrapper for natural tables > which makes adding rules and changing the padding around text very > simple because each table cell is a \framed block with all its options. > \starttext > \startsetups[ruledtable] > \setupTABLE [frame=off,align=middle,loffset=.5em,roffset=.5em] > \setupTABLE [column] [each] [leftframe=on,rightframe=on] > \setupTABLE [row] [first] > [topframe=on,bottomframe=on,foregroundstyle=bold] > \setupTABLE [row] [last] [bottomframe=on] > \stopsetups > \startTABLE[setups=ruledtable] > \NC Year \NC Citizens \NC\NR > \NC 1675 \NC ˜428 \NC\NR > \NC 1795 \NC 1124 \NC\NR > \NC 1880 \NC 2405 \NC\NR > \NC 1995 \NC 7408 \NC\NR > \stopTABLE > \stoptext Wolfgang, thanks for the response and the sample code. [ Note to anyone else trying out this example: there are non-breakable spaces above, and depending on your system if you copy and paste them into a file, they will cause this code to fail. ] I won't argue with you about readability of tables, but if I am typesetting something for someone and they want it a certain way, I don't want to get into an argument about it with them either. :-) The nice thing about your setup above is that it is nice and structured. But if a table calls for some row, column or cell to be treated differently, I guess I am in for some more reading. Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
Jim schrieb am 25.01.2024 um 22:01: Hi Henning, On Thu, Jan 25, 2024 at 17:16 (+0100), Henning Hraban Ramm wrote: Am 25.01.24 um 16:12 schrieb Jim: Hi, I was wondering if anyone here could help me with these three things: For a long time I have been using Wichura's TaBle macros (i.e., what one gets with \input table in plain TeX) and would like to use what appears to be ConTeXt's version of those (i.e., what one gets with \starttable ... \stoptable). However, https://wiki.contextgarden.net/Command/starttable says The environment \starttable ... \stoptable is and (sic) old and nearly obsolete way to handle tabular material Q1: are there plans to remove \starttable ... \endtable from ConTeXt any time "soon", or is that wiki comment gratuitously pessimistic? Hans suggests to use tabulate as long as it fits. I just gave that a try, using the same syntax as \starttable: \starttable[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptable \starttabulate[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptabulate While tabulate produced a table with the above input, it needs some work to make the table look good. (The columns are too narrow, the vrules don't meet the hrules, ...). Perhaps these can be fixed with some tweaking, but I notice that in all of https://wiki.contextgarden.net/Command/starttabulate and https://wiki.contextgarden.net/Tabulate and http://www.ntg.nl/maps/22/28.pdf there is a conspicuous lack of examples with vrules. And the tables in the (at least) the starttabulate wiki page which use vrules don't use tabulate to create the tables. Coincidence? I think not. :-) Table which rely on rules to make the content readable have a serious problem (read Edward Tufte books how you can improve the visual style) but the better alternative in this case are either natural tables or extreme tables. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable] \setupTABLE [frame=off,align=middle,loffset=.5em,roffset=.5em] \setupTABLE [column] [each] [leftframe=on,rightframe=on] \setupTABLE [row] [first] [topframe=on,bottomframe=on,foregroundstyle=bold] \setupTABLE [row] [last] [bottomframe=on] \stopsetups \startTABLE[setups=ruledtable] \NC Year \NC Citizens \NC\NR \NC 1675 \NC ˜428 \NC\NR \NC 1795 \NC 1124 \NC\NR \NC 1880 \NC 2405 \NC\NR \NC 1995 \NC 7408 \NC\NR \stopTABLE \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition
Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help here? I want to make commands like \foo{bla} and \foo[b]{bla} possible at the same time. Here is a minimal example (also attached): ``` \startluacode function userdata.my_command(keywords, text) commands.writestatus("test", string.format("text: %s, config: %s", text, keywords)) local cfg = utilities.parsers.settings_to_hash(keywords) if cfg['emph'] ~= nil then context("\\emph{" .. text .. "}") elseif cfg['bold'] ~= nil then context("\\bold{" .. text .. "}") else context(text) end end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargument{% \ctxlua{userdata.my_command('#1', [==[#2]==])}% }\else {% \ctxlua{userdata.my_command('', [==[#2]==])}% }\fi } \protect \starttext % all the following works \mc{foo} \mc[bold]{foo} \mc[emph]{foo} \startenu[title=Some] \stopenu % this breaks \startenu[title=Some \mc{foo}] \stopenu \stoptext ``` The compilation fails with: ``` tex error > tex error on line 41 in file ./test.tex: Use of \do_my_command doesn't match its definition ``` Best, Gerion [1] https://tex.stackexchange.com/a/55778 \startluacode function userdata.my_command(keywords, text) commands.writestatus("test", string.format("text: %s, config: %s", text, keywords)) local cfg = utilities.parsers.settings_to_hash(keywords) if cfg['emph'] ~= nil then context("\\emph{" .. text .. "}") elseif cfg['bold'] ~= nil then context("\\bold{" .. text .. "}") else context(text) end end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargument{% \ctxlua{userdata.my_command('#1', [==[#2]==])}% }\else {% \ctxlua{userdata.my_command('', [==[#2]==])}% }\fi } \protect \starttext % all the following works \mc{foo} \mc[bold]{foo} \mc[emph]{foo} \startenu[title=Some] \stopenu % this breaks \startenu[title=Some \mc{foo}] \stopenu \stoptext signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Can you please give the link from where you downloaded it? I will test it on my Windows because on Linux it is producing the PDF. On Wed, Jan 24, 2024 at 2:29 PM Ursula Hermann wrote: > Dear List, > > > > I am sorry, but once again me: I downloaded the last upload from Hans > yesterday, I downloaded context-win64, and tried the test today . > > > > Here is the test: > > \starttext > > > > \startmode[mkiv] > > > > \startluacode > > tex.sprint("hello") > > \stopluacode > > > > \startMPcode > > draw textext("hello") rotated 45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopmode > > > > \startnotmode[mkiv] > > > > \startMPcode > > draw textext("hello") rotated -45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopnotmode > > > > \stoptext > > > > After compiling in the folder: > > Is this because I am the user? > > > > Command Line: context.exe --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > startup error : no format file given, quitting > > > > Uschi > > > > > > _ > > > > ConTeXt Compilation Report (Pages: 0) > > > > Errors: 0 Warnings: 0 Bad Boxes: 0 > > > > > > > > > > > > *Von:* Ursula Hermann > *Gesendet:* Dienstag, 16. Jänner 2024 15:33 > *An:* 'mailing list for ConTeXt users' > *Betreff:* AW: [NTG-context] Re: After Compiling the Context test, there > was no PDF. > > > > Dear, Shiv Shankar Dayal, > > > > > > I have tried your example. Did not work. > > > > Uschi > > *Von:* Shiv Shankar Dayal > *Gesendet:* Dienstag, 16. Jänner 2024 13:42 > *An:* mailing list for ConTeXt users > *Betreff:* [NTG-context] Re: After Compiling the Context test, there was > no PDF. > > > > I just updated my ConTeXt distribution and it is working fine for me. > > > > Try processing the following file: > > > > \starttext > \input knuth > \stoptext > > > > On Tue, Jan 16, 2024 at 5:30 PM luigi scarso > wrote: > > > > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Please paste line no. 238 of your input file. > > > > On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < > ursula.herm...@univie.ac.at> wrote: > > Dear List, > > > > After Compiling in the Folder: > > > > This is LuaMetaTeX, Version 2.10.11 initex > > (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- > en.mkxl(context.mkxl(syst-ini.mkxl > ! Undefined control sequence. > > \immutable\defcsname\tocharacter > \tabasciicode \endcsname {\ } % \def\^^I{\ } tab > > > > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > > (I cannot update now ) > > > > -- > > luigi > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > > > > -- > > Respect, > > Shiv Shankar Dayal > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Dear List, I am sorry, but once again me: I downloaded the last upload from Hans yesterday, I downloaded context-win64, and tried the test today . Here is the test: \starttext \startmode[mkiv] \startluacode tex.sprint("hello") \stopluacode \startMPcode draw textext("hello") rotated 45 ; \stopMPcode \framed{hello} \stopmode \startnotmode[mkiv] \startMPcode draw textext("hello") rotated -45 ; \stopMPcode \framed{hello} \stopnotmode \stoptext After compiling in the folder: Is this because I am the user? Command Line: context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv startup error : no format file given, quitting Uschi _ ConTeXt Compilation Report (Pages: 0) Errors: 0 Warnings: 0 Bad Boxes: 0 Von: Ursula Hermann Gesendet: Dienstag, 16. Jänner 2024 15:33 An: 'mailing list for ConTeXt users' Betreff: AW: [NTG-context] Re: After Compiling the Context test, there was no PDF. Dear, Shiv Shankar Dayal, I have tried your example. Did not work. Uschi Von: Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> Gesendet: Dienstag, 16. Jänner 2024 13:42 An: mailing list for ConTeXt users mailto:ntg-context@ntg.nl>> Betreff: [NTG-context] Re: After Compiling the Context test, there was no PDF. I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso mailto:luigi.sca...@gmail.com>> wrote: On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann mailto:ursula.herm...@univie.ac.at>> wrote: Dear List, After Compiling in the Folder: This is LuaMetaTeX, Version 2.10.11 initex (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- en.mkxl(context.mkxl(syst-ini.mkxl ! Undefined control sequence. \immutable\defcsname\tocharacter \tabasciicode \endcsname {\ } % \def\^^I{\ } tab maybe I am wrong, but this looks like an error of syst-ini.mkxl around line 3238 (I cannot update now ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")
That's it! Many thanks to Hans, Hraban and especially Wolfgang for his solution. This environment should become part of ConTeXt! I have been a LaTeX/XeTeX/LuaLaTeX user for over 30 years and used it to write my papers during my studies and use it for almost all my writing. Now I wanted to try ConTeXt and will be glad if anyone can help me. As I said, I am only a user. Many thanks and best regards Thomas Am 22.01.24 um 20:24 schrieb Wolfgang Schuster: Thomas Meyer schrieb am 22.01.2024 um 13:04: Am 22.01.24 um 12:06 schrieb Henning Hraban Ramm: Am 22.01.24 um 11:46 schrieb Thomas Meyer: I might get a bit impatient if I have the impression that others get an answer faster. Sorry for that. It’s not unusual to get that impression. It depends on the current attention, capacity and mood of the few who can answer your questions. So the problem is still \hfill that the last paragraph is not on grid in the new and the old version (and comma). Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up. Maybe \startlinecorrection helps… (No, it doesn’t.) It also doesn’t help to add a \blank or \par after \vfill. I know it, i tried it. And I tried \snaptogrid \vbox {}, it doesn't work too. Only counting empty rows and set the number in \blank[ *big] works! You need a fixed space (multiple of the line distance) between the text blocks and \vfill is a variable space which isn't what you want here. TO get the desired space between the blocks you have to measure the height of the text at the bottom and calculate the number of lines which have to be added in the gap. Below is a simple solution which adds the required number of \blank lines. \def\PlaceAtBottom {\par \dowithnextbox {\scratchdimen\dimexpr\pagegoal-\pagetotal\relax \ifdim\nextboxht>\scratchdimen \page \getnoflines{\dimexpr\textheight-\nextboxht\relax}% \dontleavehmode\blank[\number\numexpr\noflines-2\relax*line]% \unvbox\nextbox \else \getnoflines{\dimexpr\scratchdimen-\nextboxht\relax}% \blank[\number\numexpr\noflines-1\relax*line]% \unvbox\nextbox \fi} \vbox} \let\stopPlaceAtBottom\egroup \def\startPlaceAtBottom {\PlaceAtBottom\bgroup} \mainlanguage[de] \setupbodyfont[libertinus, 12pt] \setuppagenumbering [location={footer,middle}] \setuplayout [grid=yes] \showgrid \starttext \samplefile{lorem} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \page \dorecurse{4}{\samplefile{lorem}} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")
Thomas Meyer schrieb am 22.01.2024 um 13:04: Am 22.01.24 um 12:06 schrieb Henning Hraban Ramm: Am 22.01.24 um 11:46 schrieb Thomas Meyer: I might get a bit impatient if I have the impression that others get an answer faster. Sorry for that. It’s not unusual to get that impression. It depends on the current attention, capacity and mood of the few who can answer your questions. So the problem is still \hfill that the last paragraph is not on grid in the new and the old version (and comma). Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up. Maybe \startlinecorrection helps… (No, it doesn’t.) It also doesn’t help to add a \blank or \par after \vfill. I know it, i tried it. And I tried \snaptogrid \vbox {}, it doesn't work too. Only counting empty rows and set the number in \blank[ *big] works! You need a fixed space (multiple of the line distance) between the text blocks and \vfill is a variable space which isn't what you want here. TO get the desired space between the blocks you have to measure the height of the text at the bottom and calculate the number of lines which have to be added in the gap. Below is a simple solution which adds the required number of \blank lines. \def\PlaceAtBottom {\par \dowithnextbox {\scratchdimen\dimexpr\pagegoal-\pagetotal\relax \ifdim\nextboxht>\scratchdimen \page \getnoflines{\dimexpr\textheight-\nextboxht\relax}% \dontleavehmode\blank[\number\numexpr\noflines-2\relax*line]% \unvbox\nextbox \else \getnoflines{\dimexpr\scratchdimen-\nextboxht\relax}% \blank[\number\numexpr\noflines-1\relax*line]% \unvbox\nextbox \fi} \vbox} \let\stopPlaceAtBottom\egroup \def\startPlaceAtBottom {\PlaceAtBottom\bgroup} \mainlanguage[de] \setupbodyfont[libertinus, 12pt] \setuppagenumbering [location={footer,middle}] \setuplayout [grid=yes] \showgrid \starttext \samplefile{lorem} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \page \dorecurse{4}{\samplefile{lorem}} \startPlaceAtBottom {\sl\samplefile{lorem}} \stopPlaceAtBottom \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
64-bit ConTeXt(or any other executable) won't work on 32-bit systems. On Mon, Jan 22, 2024 at 6:49 PM Ursula Hermann wrote: > Dear List, > > > > I have now another problem: > > I have downloaded context-win64. But the problem is now, that ConTeXt is > not executable on WinEdt11, which is my TextEditor. It worked well with > context-mswin. There was no problem. I found context.exe now on > context-win64\text\texmf-win64\bin\context.exe, and have Windows 32 System > at work. > > After trying to compile the test at work, I got in the Folder: > > Command Line: > C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe > --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > > > Error Launching Console Application ConTeXt ... > > Command Line: > C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe > --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > Das System kann die angegebene Datei nicht finden. > > > > What should I do? > > > > Uschi > > > > *Von:* Ursula Hermann > *Gesendet:* Dienstag, 16. Jänner 2024 15:33 > *An:* 'mailing list for ConTeXt users' > *Betreff:* AW: [NTG-context] Re: After Compiling the Context test, there > was no PDF. > > > > Dear, Shiv Shankar Dayal, > > > > > > I have tried your example. Did not work. > > > > Uschi > > *Von:* Shiv Shankar Dayal > *Gesendet:* Dienstag, 16. Jänner 2024 13:42 > *An:* mailing list for ConTeXt users > *Betreff:* [NTG-context] Re: After Compiling the Context test, there was > no PDF. > > > > I just updated my ConTeXt distribution and it is working fine for me. > > > > Try processing the following file: > > > > \starttext > \input knuth > \stoptext > > > > On Tue, Jan 16, 2024 at 5:30 PM luigi scarso > wrote: > > > > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Please paste line no. 238 of your input file. > > > > On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < > ursula.herm...@univie.ac.at> wrote: > > Dear List, > > > > After Compiling in the Folder: > > > > This is LuaMetaTeX, Version 2.10.11 initex > > (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- > en.mkxl(context.mkxl(syst-ini.mkxl > ! Undefined control sequence. > > \immutable\defcsname\tocharacter > \tabasciicode \endcsname {\ } % \def\^^I{\ } tab > > > > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > > (I cannot update now ) > > > > -- > > luigi > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > > > > -- > > Respect, > > Shiv Shankar Dayal > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Dear List, me once again. Sorry forgot to say: 64-Bit-Betriebssystem, x64-basierter Prozessor Uschi Von: Ursula Hermann Gesendet: Montag, 22. Jänner 2024 14:16 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: After Compiling the Context test, there was no PDF. Dear List, I have now another problem: I have downloaded context-win64. But the problem is now, that ConTeXt is not executable on WinEdt11, which is my TextEditor. It worked well with context-mswin. There was no problem. I found context.exe now on context-win64\text\texmf-win64\bin\context.exe, and have Windows 32 System at work. After trying to compile the test at work, I got in the Folder: Command Line: C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv Error Launching Console Application ConTeXt ... Command Line: C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv Das System kann die angegebene Datei nicht finden. What should I do? Uschi Von: Ursula Hermann Gesendet: Dienstag, 16. Jänner 2024 15:33 An: 'mailing list for ConTeXt users' mailto:ntg-context@ntg.nl>> Betreff: AW: [NTG-context] Re: After Compiling the Context test, there was no PDF. Dear, Shiv Shankar Dayal, I have tried your example. Did not work. Uschi Von: Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> Gesendet: Dienstag, 16. Jänner 2024 13:42 An: mailing list for ConTeXt users mailto:ntg-context@ntg.nl>> Betreff: [NTG-context] Re: After Compiling the Context test, there was no PDF. I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso mailto:luigi.sca...@gmail.com>> wrote: On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann mailto:ursula.herm...@univie.ac.at>> wrote: Dear List, After Compiling in the Folder: This is LuaMetaTeX, Version 2.10.11 initex (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- en.mkxl(context.mkxl(syst-ini.mkxl ! Undefined control sequence. \immutable\defcsname\tocharacter \tabasciicode \endcsname {\ } % \def\^^I{\ } tab maybe I am wrong, but this looks like an error of syst-ini.mkxl around line 3238 (I cannot update now ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Dear List, I have now another problem: I have downloaded context-win64. But the problem is now, that ConTeXt is not executable on WinEdt11, which is my TextEditor. It worked well with context-mswin. There was no problem. I found context.exe now on context-win64\text\texmf-win64\bin\context.exe, and have Windows 32 System at work. After trying to compile the test at work, I got in the Folder: Command Line: C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv Error Launching Console Application ConTeXt ... Command Line: C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv Das System kann die angegebene Datei nicht finden. What should I do? Uschi Von: Ursula Hermann Gesendet: Dienstag, 16. Jänner 2024 15:33 An: 'mailing list for ConTeXt users' Betreff: AW: [NTG-context] Re: After Compiling the Context test, there was no PDF. Dear, Shiv Shankar Dayal, I have tried your example. Did not work. Uschi Von: Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> Gesendet: Dienstag, 16. Jänner 2024 13:42 An: mailing list for ConTeXt users mailto:ntg-context@ntg.nl>> Betreff: [NTG-context] Re: After Compiling the Context test, there was no PDF. I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso mailto:luigi.sca...@gmail.com>> wrote: On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann mailto:ursula.herm...@univie.ac.at>> wrote: Dear List, After Compiling in the Folder: This is LuaMetaTeX, Version 2.10.11 initex (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- en.mkxl(context.mkxl(syst-ini.mkxl ! Undefined control sequence. \immutable\defcsname\tocharacter \tabasciicode \endcsname {\ } % \def\^^I{\ } tab maybe I am wrong, but this looks like an error of syst-ini.mkxl around line 3238 (I cannot update now ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 1:33 AM, Aditya Mahajan wrote: \starttext \dorecurse{5000}{\ReadFile{knuth}} \stoptext I'll send you the PDFs offlist. lmtx defaults to 'modern' so you need to \setupbodyfont[modern] for mkiv Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On Fri, 19 Jan 2024, Hans Hagen via ntg-context wrote: > On 1/19/2024 12:34 AM, Aditya Mahajan wrote: > > On Thu, 18 Jan 2024, Hans Hagen wrote: > > > >> Of course we'll never be as fast as (pure) plain tex (no layers added) or > >> latex (which often is advocated as faster than context). > > > > I was curious, so did a quick experiment: typeset \input knuth 500 times. > > Here are the results: > > > > pdflatex: 547 pages/sec > > lualatex: 308 pages/sec > > opentype or type 1 ? type 1. I did not change anything in the defaults. I'll try to figure out how to load opentype fonts in latex, and test lualatex. > > MKIV: 130 pages/sec > > LMTX: 147 pages/sec > > that is weird as lmtx is always faster here (we loose some 15% on the backend > compared to luatex, maybe even more, but we gain back quite a bit elsewhere > for various reasons) LMTX is faster for me as well. > > Interestingly, pdflatex, lualatex, and MkIV all generated pdf with 1112 > > pages, while LMTX generated a pdf with 1250 pages. Both MkIV and LMTX take > > the same time to run (8.5 sec) but LMTX generates more pages so it is > > faster. > > puzzling > > > Of course, this is a meaningless experiment from a practical point of view > > as a 1000 page document will be more complex than just text. > % engine=pdftex 1.2 > % engine=luatmetatex 1.6 > % engine=luatex 1.8 > % engine=xetex 2.4 > > \starttext > > \dorecurse{500} { > \input knuth \par > } > > \stoptext > > 125 pages, so how does your test file look 5000 recursions (not 500, sorry about that). \starttext \dorecurse{5000}{\ReadFile{knuth}} \stoptext I'll send you the PDFs offlist. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 12:34 AM, Aditya Mahajan wrote: On Thu, 18 Jan 2024, Hans Hagen wrote: Of course we'll never be as fast as (pure) plain tex (no layers added) or latex (which often is advocated as faster than context). I was curious, so did a quick experiment: typeset \input knuth 500 times. Here are the results: pdflatex: 547 pages/sec lualatex: 308 pages/sec opentype or type 1 ? MKIV: 130 pages/sec LMTX: 147 pages/sec that is weird as lmtx is always faster here (we loose some 15% on the backend compared to luatex, maybe even more, but we gain back quite a bit elsewhere for various reasons) Interestingly, pdflatex, lualatex, and MkIV all generated pdf with 1112 pages, while LMTX generated a pdf with 1250 pages. Both MkIV and LMTX take the same time to run (8.5 sec) but LMTX generates more pages so it is faster. puzzling Of course, this is a meaningless experiment from a practical point of view as a 1000 page document will be more complex than just text. % engine=pdftex 1.2 % engine=luatmetatex 1.6 % engine=luatex 1.8 % engine=xetex 2.4 \starttext \dorecurse{500} { \input knuth \par } \stoptext 125 pages, so how does your test file look Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] scaling tweaked fonts
Hi Hans, I have the following sample which behaves differently after latest from 2023.09.26 18:19: \definetweakedfont[wider][xscale=1075] \starttext \startTEXpage[align=center] \contextversion\\ \wider \contextversion \stopTEXpage \stoptext Up to that version, no scaling was 1000, after that one no scaling became 1. This should be the reason behind my previous issue about too large sizes in the first latest from 2024 (https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/JVB7AWJE53NW4AAE3ODUQN6GB34IBO5X/). I just want to confirm that this change was intended. Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Dear Dalyoung, dear Mikael, I installed anew the whole LMTX tree and now everything is working fine. I don’t know whether this is related or not, somehow in my previous tree I had a directory (or folder in the MacOS language) named « texmf-osx-64 » instead « texmf-osx-arm64 » and this apparently had consequences. In any case everything works fine now. Thanks to Hans, Mikael and all the people on this list! Best regards: Otared > On 18 Jan 2024, at 08:17, Jeong Dal via ntg-context > wrote: > > Dear Otared, > > I installed upload version today. > And, your example, > > \starttext > The derivative of $f$ is denoted $f'$ or $f^\prime$ or is it $f^'$\dots > \stoptext > > works well. > > I think that you will have the same good result. > > Best wishes, > > Dalyoung > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] How to Create Asymmetrical Continuous Columns in ConTeXt?
Hi all, I have a lengthy text that I wish to seamlessly incorporate using the \input{mytext} command in ConTeXt. Additionally, I aim to present it in asymmetrical continuous columns, where the text flows over several pages. I have tried paragraphs and columns, but in paragraphs, I can't flow text across several pages without manually breaking it, and in columns, I haven't found a way to implement asymmetric columns. How can I achieve this layout in ConTeXt? this is a MWE but it does not work properly: \definecolumnset[mymixedcolumn][n=2] \setupcolumnset[mymixedcolumn:1][width=4cm] \setupcolumnset[mymixedcolumn:2][width=7cm] \starttext \startcolumnset[mymixedcolumn] \dorecurse{5}{ \input{knuth} } \stopcolumnset \stoptext also is there a mechanism to automatically continue text between desired frames? For example, is there a way to write a function that, if the text reaches the end of the line and there is not enough space for another line in that frame, it continues the text in another frame that is already specified? in other word How do you make text flow to another part of a page? Thanks in advance. Best regards, Seyal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Dear Otared, I installed upload version today. And, your example, \starttext The derivative of $f$ is denoted $f'$ or $f^\prime$ or is it $f^'$\dots \stoptext works well. I think that you will have the same good result. Best wishes, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Hi Otared, On Thu, Jan 18, 2024 at 2:37 AM Otared Kavian wrote: > > Hi Hans, > > Thanks for the new upload which solves the math alignment mechanism. However > I noticed that the classic notation $f’$ for the derivative does not work > anymore, while $f^\prime$ or $f^’$ does. > > \starttext > The derivative of $f$ is denoted $f'$ or $f^\prime$ or is it $f^'$\dots > \stoptext > > Best regards: Otared There has been work in the last days on multiple sub/superscripts and/or primes. But again your example works here. Just to be sure, did you upgrade both the zip and the binary? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Math alignment issue
Hi Mikael, I installed anew the latest version and I get still the same bizarre result with math alignment. Please can someone on the list typeset the following in order to see whether the result is correct or not ? %begin 240117-1-bis.tex \definemathsimplealign[alignedcases] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes] \setupformula [location=left] \starttext \samplefile{knuthmath} \startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC = 0 \NC \mtext{bla bla bla bla} \NR \stopalignedcases \stopformula \stopplaceformula \samplefile{knuthmath} \startplaceformula \startformula \startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases] \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC = 0 \NC \NC \mtext{bla bla bla bla} \NR \stopalign \stopformula \stopplaceformula \samplefile{knuthmath} \stoptext % end 240117-1-bis.tex Thanks in advance: Otared > On 17 Jan 2024, at 12:09, Mikael Sundqvist wrote: > > Could your installation be broken? > > /Mikael > > Den ons 17 jan. 2024 11:41Otared Kavian <mailto:ota...@gmail.com>> skrev: > Hi Mikael, > > Actually it seems that the math alignment stuff has been broken even in > version 2023-09-26, since I get also something incorrect, as you can see in > the attached PDF. > > Many thanks for your help: Otared > > > >> On 17 Jan 2024, at 11:06, Mikael Sundqvist > <mailto:mic...@gmail.com>> wrote: >> >> Hi, >> >> Then there was a problem with the last update. Maybe there will be a new >> upload soon that works better for you. >> >> /Mikael >> >> Den ons 17 jan. 2024 10:37Otared Kavian > <mailto:ota...@gmail.com>> skrev: >> Hi Mikael, >> >> Thank you for your reply. When I typeset the example you sent me, that is >> >> %begin 240117-1-bis.tex >> >> \definemathsimplealign[alignedcases] >> [left={\startmathfenced[cases]}, >> right=\stopmathfenced, >> align={1:right,2:left,3:left}, >> strut=yes] >> >> \setupformula >> [location=left] >> >> \starttext >> >> \samplefile{knuthmath} >> >> \startplaceformula >> \startformula >> \startalignedcases >> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 >> \NC \mtext{bla bla bla} \NR >> \NC u(x,0) \NC = >> u_0(x) \NC \mtext{bla bla} \NR >> \NC u(t,\sigma) \NC = 0 \NC >> \mtext{bla bla bla bla} \NR >> \stopalignedcases >> \stopformula >> \stopplaceformula >> >> \samplefile{knuthmath} >> >> \startplaceformula >> \startformula >> >> \startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases] >> \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 >> \NC \NC \mtext{bla bla bla} \NR >> \NC u(x,0) \NC = >> u_0(x) \NC \NC \mtext{bla bla} \NR >> \NC u(t,\sigma) \NC = 0 \NC \NC >> \mtext{bla bla bla bla} \NR >> \stopalign >> \stopformula >> \stopplaceformula >> >> \samplefile{knuthmath} >> >> \stoptext >> % end 240117-1-bis.tex >> >> I get something different than the PDF you sent me: the formulas run into >> the text just above them, as you can see in the attached PDF. I am using >> ConTeXt LMTX version 2024.01.08 on MacOS 11.7.10. I don’t see what is wrong >> with my installation… >> >> Best regards: Otared >> >> >> >>> On 17 Jan 2024, at 09:47, Mikael Sundqvist >> <mailto:mic...@gmail.com>> wrote: >>> >>> Hi Otared, >>> >>> I'm not sure how you get that code, si
[NTG-context] Re: Math alignment issue
Hi Mikael,Thank you for your reply. When I typeset the example you sent me, that is%begin 240117-1-bis.tex\definemathsimplealign[alignedcases] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes]\setupformula [location=left]\starttext\samplefile{knuthmath}\startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC = 0 \NC \mtext{bla bla bla bla} \NR \stopalignedcases \stopformula\stopplaceformula\samplefile{knuthmath}\startplaceformula \startformula \startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases] \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC = 0 \NC \NC \mtext{bla bla bla bla} \NR \stopalign \stopformula\stopplaceformula\samplefile{knuthmath}\stoptext% end 240117-1-bis.texI get something different than the PDF you sent me: the formulas run into the text just above them, as you can see in the attached PDF. I am using ConTeXt LMTX version 2024.01.08 on MacOS 11.7.10. I don’t see what is wrong with my installation…Best regards: Otared 240117-1-bis.pdf Description: Adobe PDF document On 17 Jan 2024, at 09:47, Mikael Sundqvist <mic...@gmail.com> wrote:Hi Otared,I'm not sure how you get that code, since you do not show the source.From last upload, there is location=packed for align, so now that canbe used "inline" in formulas. See attached. I hope it helps.Best, MikaelOn Tue, Jan 16, 2024 at 9:41 PM Otared Kavian <ota...@gmail.com> wrote:Hi Mickael,I wish you a happy new year !I apologize for writing you outside the mailing list: this is du eto the fact that I am attaching two screenshots in order to show the problem I encounter, and these documents cannot go through the mailing list.In a document written a year and half ago I have the following definition:\definemathmatrix[alignedcases][align={right,left,left},distance=3pt,left={\left\{},right={\right.},style=\displaystyle]in order to typeset multi-lines formulas regrouped with a left brace. This is analogous to math-cases, but I need three columns instead of two.When the alignment in maths changed I changed the above definition to the following:\definemathsimplealign[alignedcases][left={\startmathfenced[cases]},right=\stopmathfenced,align={1:right,2:left,3:left},strut=yes]The result of the typesetting with LMTX in 2022 is shown in the attached document « math-align-2022.pdf »,But when the same documentis typeset with the latest version from 2024-01-08, it does not show the formulas correctly, as one can see in the attached screenshot « math-align-2024-01-08.pdf ».I cannot reproduce the issue on a short document, but since there have been some changes in the way the math alignment is treated now, I wonder whether you can help me how to change my definitions accordingly.In order to let th elist be informed, once the issue may be solved without the screenshots, I may post a message there.Thanks in advance, and best regards: Otared<240117-1.mkxl><240117-1.pdf> Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Looking for itemize help
On Tue, Jan 16, 2024 at 01:15 (+), Bruce Horrocks wrote: > On 15 Jan 2024, at 16:15, Jim wrote: >> I would like >> something which automagically "does the right thing". > Not pretty, but... :-) > \setupwhitespace [big] > \setuppapersize [letter] > \define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} > \starttext > This is a short paragraph. > This is a line before an itemization. > \startitemize[nowhite] > \item First item. > \item Second item. > \mystopitemize > This is a short paragraph immediately following. > This is a line before a {\bf nowhite, after} itemization. > \startitemize[nowhite] > \item First item. > \item Second item. > \mystopitemize > This is the next short paragraph, not part of the above. > \stoptext Bruce, thanks very much for that code. Given that (apparently?) there is no option to itemize to do what I want, what you have is a good choice. I just tried this: \let\originalstopitemize=\stopitemize \define[1]\stopitemize{\originalstopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} and it works with the above test, after replacing \mystopitemize with the usual \stopitemize. I'm not sure what this might break going forward, but I guess time will tell. (Or perhaps someone with more ConTeXt knowledge than me will tell me first.) Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Dear, Shiv Shankar Dayal, I have tried your example. Did not work. Uschi Von: Shiv Shankar Dayal Gesendet: Dienstag, 16. Jänner 2024 13:42 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: After Compiling the Context test, there was no PDF. I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso mailto:luigi.sca...@gmail.com>> wrote: On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann mailto:ursula.herm...@univie.ac.at>> wrote: Dear List, After Compiling in the Folder: This is LuaMetaTeX, Version 2.10.11 initex (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- en.mkxl(context.mkxl(syst-ini.mkxl ! Undefined control sequence. \immutable\defcsname\tocharacter \tabasciicode \endcsname {\ } % \def\^^I{\ } tab maybe I am wrong, but this looks like an error of syst-ini.mkxl around line 3238 (I cannot update now ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso wrote: > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > >> Please paste line no. 238 of your input file. >> >> On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < >> ursula.herm...@univie.ac.at> wrote: >> >>> Dear List, >>> >>> >>> >>> After Compiling in the Folder: >>> >>> >>> >>> This is LuaMetaTeX, Version 2.10.11 initex >>> >>> (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- >>> en.mkxl(context.mkxl(syst-ini.mkxl >>> ! Undefined control sequence. >>> >>> \immutable\defcsname\tocharacter >>> \tabasciicode \endcsname {\ } % \def\^^I{\ } tab >>> >> > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > (I cannot update now ) > > -- > luigi > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Looking for itemize help
On 15 Jan 2024, at 16:15, Jim wrote: > > I would like > something which automagically "does the right thing". Not pretty, but... :-) \setupwhitespace [big] \setuppapersize [letter] \define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} \starttext This is a short paragraph. This is a line before an itemization. \startitemize[nowhite] \item First item. \item Second item. \mystopitemize This is a short paragraph immediately following. This is a line before a {\bf nowhite, after} itemization. \startitemize[nowhite] \item First item. \item Second item. \mystopitemize This is the next short paragraph, not part of the above. \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)
Hi, Try this: On Mon, Jan 15, 2024 at 6:17 PM Pablo Rodriguez via ntg-context wrote: > > Dear list, > > I have the following sample: > > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \definefontfamily[coverface][rm][TeX Gyre Termes] \definebodyfontenvironment[16pt] > \setupbodyfont[mainface, 16pt] > \starttext > \startmakeup[standard][style=\bf] > \switchtobodyfont[coverface] > This is a cover. > \stopmakeup > > This is text. > \stoptext > > Compiling the sample with current latest (2024.01.08 11:23), LMTX puts > Latin Modern Roman (no bold) and MkIV puts Termes (no bold). > > The results with previous latest (2023.09.26 18:19), cover is in Termes > bold with LMTX and in Termes regular with MkIV. > > I guess there might be an issue here. Could anyone confirm this? > > Many thanks for your help, > > Pablo Maybe some check will be added. (On the chat with Hans...) /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Looking for itemize help
On Mon, Jan 15, 2024 at 17:39 (+0100), Wolfgang Schuster wrote: > Jim schrieb am 15.01.2024 um 01:42: >> I have >> \setupwhitespace [big] >> so that I get "a blank line" between paragraphs. >> I would like to *not* have "blank lines" before and after my items. For >> example, if there is more "paragraph text" after the last item I would like >> to see this structure: >> -- >> Some text preceding the list of items: >> a. Item one. >> b. Second item. >> This sentence is part of the same paragraph. >> The next paragraph starts here... >> -- >> and if there is no "paragraph text" after the last item, I'd like to see >> this structure: >> -- >> Some text preceding the list of items: >> a. Item one. >> b. Second item. >> The next paragraph starts here... >> -- >> Try as I might, I can't find the right options to give to \startitemize. >> The closest I have found is to start with >> \startitemize[a,nowhite] >> but that prevents the "blank line" even in the second case above, which is >> not what I want. Further, 'packed' and 'joinedup' seem to behave >> identically here, both leaving "a blank line" before the first item and >> after the last item. >> Clearly, I can force a blank line before the following paragraph with a >> \vskip, but that seems like a crude way to do it. >> Can someone either enlighten me on either >> (a) the Right ConTeXt Way to do this, or >> (b) a document that would tell me this, if I knew to read it? >> I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt: >> an excursion" with no luck. > Hi Jim, > such a feature exists only to suppress paragraph indentation but not to > ignore whitespace > between paragraphs. > \setupitemize[indentnext=auto] > \setupindenting[yes,medium] > \starttext > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa > turpis, > semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi > \unknown > \startitemize > \startitem Lorem ipsum \unknown \stopitem > \stopitemize > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa > turpis, > semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi > \unknown > \startitemize > \startitem Lorem ipsum \unknown \stopitem > \stopitemize > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa > turpis, > semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi > \unknown > \stoptext Hi Wolfgang, thanks for that information. I would have thought that what I want to do is not so unusual that ConTeXt does not have the ability to handle it, especially in light of the indentnext=auto feature which shows that (presumably) some people want to handle the text following \stopitemize differently, depending on whether or not the following text is part of the same paragraph. Perhaps I need to go and contemplate the sins of my formatting choices... :-) Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] issue with fonts in current latest (2024.01.08 11:23)
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[coverface][rm][TeX Gyre Termes] \setupbodyfont[mainface, 16pt] \starttext \startmakeup[standard][style=\bf] \switchtobodyfont[coverface] This is a cover. \stopmakeup This is text. \stoptext Compiling the sample with current latest (2024.01.08 11:23), LMTX puts Latin Modern Roman (no bold) and MkIV puts Termes (no bold). The results with previous latest (2023.09.26 18:19), cover is in Termes bold with LMTX and in Termes regular with MkIV. I guess there might be an issue here. Could anyone confirm this? Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Looking for itemize help
Jim schrieb am 15.01.2024 um 01:42: I have \setupwhitespace [big] so that I get "a blank line" between paragraphs. I would like to *not* have "blank lines" before and after my items. For example, if there is more "paragraph text" after the last item I would like to see this structure: -- Some text preceding the list of items: a. Item one. b. Second item. This sentence is part of the same paragraph. The next paragraph starts here... -- and if there is no "paragraph text" after the last item, I'd like to see this structure: -- Some text preceding the list of items: a. Item one. b. Second item. The next paragraph starts here... -- Try as I might, I can't find the right options to give to \startitemize. The closest I have found is to start with \startitemize[a,nowhite] but that prevents the "blank line" even in the second case above, which is not what I want. Further, 'packed' and 'joinedup' seem to behave identically here, both leaving "a blank line" before the first item and after the last item. Clearly, I can force a blank line before the following paragraph with a \vskip, but that seems like a crude way to do it. Can someone either enlighten me on either (a) the Right ConTeXt Way to do this, or (b) a document that would tell me this, if I knew to read it? I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt: an excursion" with no luck. Hi Jim, such a feature exists only to suppress paragraph indentation but not to ignore whitespace between paragraphs. \setupitemize[indentnext=auto] \setupindenting[yes,medium] \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi \unknown \startitemize \startitem Lorem ipsum \unknown \stopitem \stopitemize Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi \unknown \startitemize \startitem Lorem ipsum \unknown \stopitem \stopitemize Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi \unknown \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: [External] Re: Looking for itemize help
Hi Michael, thanks for getting back. But the problem is not the text in front of the items, but rather vertical whitespace that I don't want. (Or, with 'nowhite', vertical space that I might want not being there.) Cheers. Jim On Mon, Jan 15, 2024 at 15:51 (+), Rogers, Michael K wrote: > Hi Jim, > I think you want alternative “a”, if the dot instead of a letter is the > problem and not the whitespace: > %%%%%% > \starttext > This is a short paragraph. > This is a line before a {\bf packed, joinedup} itemization. > \startitemize[a,packed,joinedup] > \item First item. > \item Second item. > \stopitemize > This is a line immediately following the above itemization. > This is a short paragraph. > \stoptext > %% > Cheers, > Michael >> On Jan 15, 2024, at 6:36 AM, Jim wrote: >> Hi Hraban, >> thanks for your response. But... >> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote: >>> Am 15.01.24 um 01:42 schrieb Jim: >>>> Some text preceding the list of items: >>>> a. Item one. >>>> b. Second item. >>>> This sentence is part of the same paragraph. >>>> The next paragraph starts here... >>> \startitemize[packed,joinedup] should be the right combination. >> I won't argue about "should", but I will point out it isn't, at least on my >> computer with a recently updated context. >> Here is a non-minimal but short non-working example. >> %%% >> \setupwhitespace [big] >> \setuppapersize [letter] >> \starttext >> This is a short paragraph. >> This is a line before a {\bf packed, joinedup} itemization. >> \startitemize[packed,joinedup] >> \item First item. >> \item Second item. >> \stopitemize >> This is a line immediately following the above itemization. >> This is a short paragraph. >> This is a line before a {\bf packed, joinedup} itemization. >> \startitemize[packed,joinedup] >> \item First item. >> \item Second item. >> \stopitemize >> This is another short paragraph. >> \stoptext >> %%% >> Thoughts? >> Jim >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> maillist : ntg-context@ntg.nl / >> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net/ >> ___ > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: [External] Re: Looking for itemize help
Hi Jim, I think you want alternative “a”, if the dot instead of a letter is the problem and not the whitespace: %% \starttext This is a short paragraph. This is a line before a {\bf packed, joinedup} itemization. \startitemize[a,packed,joinedup] \item First item. \item Second item. \stopitemize This is a line immediately following the above itemization. This is a short paragraph. \stoptext %% Cheers, Michael > On Jan 15, 2024, at 6:36 AM, Jim wrote: > > Hi Hraban, > > thanks for your response. But... > > On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote: > >> Am 15.01.24 um 01:42 schrieb Jim: > >>> Some text preceding the list of items: >>> a. Item one. >>> b. Second item. >>> This sentence is part of the same paragraph. > >>> The next paragraph starts here... > >> \startitemize[packed,joinedup] should be the right combination. > > I won't argue about "should", but I will point out it isn't, at least on my > computer with a recently updated context. > > Here is a non-minimal but short non-working example. > > %%% > > \setupwhitespace [big] > > \setuppapersize [letter] > > \starttext > This is a short paragraph. > > This is a line before a {\bf packed, joinedup} itemization. > \startitemize[packed,joinedup] > \item First item. > \item Second item. > \stopitemize > This is a line immediately following the above itemization. > > This is a short paragraph. > > This is a line before a {\bf packed, joinedup} itemization. > \startitemize[packed,joinedup] > \item First item. > \item Second item. > \stopitemize > > This is another short paragraph. > > \stoptext > > %%% > > Thoughts? > >Jim > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net/ > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Looking for itemize help
Hi Hraban, thanks for your response. But... On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote: > Am 15.01.24 um 01:42 schrieb Jim: >> Some text preceding the list of items: >> a. Item one. >> b. Second item. >> This sentence is part of the same paragraph. >> The next paragraph starts here... > \startitemize[packed,joinedup] should be the right combination. I won't argue about "should", but I will point out it isn't, at least on my computer with a recently updated context. Here is a non-minimal but short non-working example. %%% \setupwhitespace [big] \setuppapersize [letter] \starttext This is a short paragraph. This is a line before a {\bf packed, joinedup} itemization. \startitemize[packed,joinedup] \item First item. \item Second item. \stopitemize This is a line immediately following the above itemization. This is a short paragraph. This is a line before a {\bf packed, joinedup} itemization. \startitemize[packed,joinedup] \item First item. \item Second item. \stopitemize This is another short paragraph. \stoptext %%% Thoughts? Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: conversion from realpage to pagenumber
Thank you Wolfgang, but my problem is getting back the page of the document starting from a "realpage" value picked from structures.registers.collected in the .tuc file. Anyway, looking at the .tuc file produced by your example, I found that structures.pages.collected has all the information I need to reconstruct the printed page number. Here's an excerpt of the .tuc file: utilitydata.structures.pages.collected={ { ["block"]="frontpart", ["number"]=1, ["numberdata"]=1, ["prefixdata"]=2, ["state"]="start", }, { ["block"]="frontpart", ["number"]=2, ["numberdata"]=1, ["prefixdata"]=2, ["state"]="start", }, ... { ["block"]="bodypart", ["number"]=1, ["numberdata"]=1, ["prefixdata"]=2, ["state"]="start", }, { ["block"]="bodypart", ["number"]=2, ["numberdata"]=1, ["prefixdata"]=2, ["state"]="start", }, ... So your answer was not the solution, but it's been the way to the solution. Thank you again, Massi Il 12/01/24 12:02, Wolfgang Schuster ha scritto: mf schrieb am 12.01.2024 um 10:18: 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' from 12 and '2' from 22? \defineconversionset [frontpart:pagenumber] [] [romannumerals] \setuppagenumber [way=byblock] % Alternative method for "way=byblock" when you have an appendix where % the pagenumber of the bodypart continues rather than being reset % % \startsectionblockenvironment[bodypart] % \resetuserpagenumber % \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{20}{\samplefile{lorem}\page} \stopfrontmatter \startbodymatter \dorecurse{20}{\samplefile{lorem}\page} \stopbodymatter \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Asking help for better way to make tickets.
On Fri, 12 Jan 2024 23:05:14 +0900 Jeong Dal via ntg-context wrote: > I’d like to make a ticket on A4 as follows: > > 1. Use all of A4(no margin, no header, no footer,…) > 2. Arange 12 tickets in the form of 3 x 4 on one page, > 3. Two rows are same, > 4. Numbers in the center of the ticket which is increasing. > > I use the following code to make it. Here's a suggestion: \definepapersize [jeong] [width=67mm, height=73mm] \setuppapersize [jeong] [A4] \setuppaper [nx=3, ny=4, dx=4.4mm, dy=1.5mm] \setuparranging [XY] \setuplayout [page] \setuppagenumbering [state=stop] \setupmakeup [standard] [align=middle] \setupblank [2*line] \showframe \starttext \dorecurse{12}{%% \startstandardmakeup Text \blank {\tfd\recurselevel} \blank Text \stopstandardmakeup \page} \stoptext That's how I'd approach it. Not sure if it meets all your requirements, though. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Asking help for better way to make tickets.
Dear all,I’d like to make a ticket on A4 as follows:1. Use all of A4(no margin, no header, no footer,…)2. Arange 12 tickets in the form of 3 x 4 on one page,3. Two rows are same,4. Numbers in the center of the ticket which is increasing.I use the following code to make it.but I think that there is a better and simpler way to do it which I don’t know.I hope that someone give me a nicer way to do it.Thank you for reading.Best regards,Dalyoung\setuppapersize[A4]%[A4]\setuplayout[ width=210mm, height=297mm, topspace=0pt, backspace=0pt, header=0mm, footer=0mm, margin=0mm, bottomspace=0mm ]\startuseMPgraphic{ticket}{i,j}path p,q;pair A,B;p := unitsquare xyscaled (67mm,73mm);A := point 0.5 of p;B := point 2.5 of p;draw p;label(textext("Text"), .25A+.75B );label(textext("\tfd " & decimal (3*\MPvar{i}-\MPvar{j})), center p);label(textext("Text"), .75A + .25B);\stopuseMPgraphic\starttext\dorecurse{4}{\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination}\page\dostepwiserecurse{5}{8}{1}{\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination}\stoptext test.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: conversion from realpage to pagenumber
mf schrieb am 12.01.2024 um 10:18: 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' from 12 and '2' from 22? \defineconversionset [frontpart:pagenumber] [] [romannumerals] \setuppagenumber [way=byblock] % Alternative method for "way=byblock" when you have an appendix where % the pagenumber of the bodypart continues rather than being reset % % \startsectionblockenvironment[bodypart] % \resetuserpagenumber % \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{20}{\samplefile{lorem}\page} \stopfrontmatter \startbodymatter \dorecurse{20}{\samplefile{lorem}\page} \stopbodymatter \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost docs
Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. On Thu, Jan 11, 2024 at 9:12 PM Gavin via ntg-context wrote: > Hi Shiv, > > I am working with MetaPost in ConTeXt. Here are the resources I use, > roughly in the order I search when trying to solve a problem. > > - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) > This is most comprehensive and helpful source. > - MetaPost Manual (http://mirrors.ctan.org/systems/doc/metapost/mpman.pdf) > This is not specific to ConTeXt, but it is very useful. > - The MetaFun page on the ConTeXt wiki ( > https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt) Other pages > in the wiki’s graphics area are also helpful. ( > https://wiki.contextgarden.net/Graphics) Searching the wiki for specific > documentation on things like chemical structures is a little hit-or-miss, > but often quite useful. > -The mailing list. I have the most luck with very specific questions that > include a minimal working example. It should include the appropriate > \starttext…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset > as-is. > > If you want to do 3D, you may want to get Lua involved for calculations. I > use > > - Programming in LuaTeX page on the wiki ( > https://wiki.contextgarden.net/Programming_in_LuaTeX) > - Programming in Lua, 4th ed. > by Roberto Ierusalimschy (https://www.amazon.com/gp/product/8590379868) > > If you provide an example of what you hope to accomplish with MetaPost, we > might have more specific recommendations. Below are two graphs that I made > in TikZ, which I hope to convert to MetaPost (actually LMTX). These are > from my chapter on elliptical orbits. > > I hope that helps you get started. > > Gavin > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: [ flowing figures ]
vm via ntg-context schrieb am 11.01.2024 um 16:15: How can I wrap an externalfigure into a box that can be placed within running text? Should I wrap the externalfigure into a start/stop buffer, then place it? There is no need any extra code because \externalfigure can be used in running text, only at the start of a paragraph you have to add \dontleavehmode. Another way is to use the \inlinefigure command which is a small wrapper around \externalfigure. \useMPlibrary[dum] \starttext \samplefile{ward} \externalfigure[dummy][location=low,height=\lineheight] \samplefile{ward} \blank \dontleavehmode\externalfigure[dummy][location=low,height=\lineheight] \samplefile{ward} \blank \samplefile{ward} \inlinefigure[dummy] \samplefile{ward} \blank \inlinefigure[dummy] \samplefile{ward} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost docs
Hi Shiv, I am working with MetaPost in ConTeXt. Here are the resources I use, roughly in the order I search when trying to solve a problem. - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) This is most comprehensive and helpful source. - MetaPost Manual (http://mirrors.ctan.org/systems/doc/metapost/mpman.pdf) This is not specific to ConTeXt, but it is very useful. - The MetaFun page on the ConTeXt wiki (https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt) Other pages in the wiki’s graphics area are also helpful. (https://wiki.contextgarden.net/Graphics) Searching the wiki for specific documentation on things like chemical structures is a little hit-or-miss, but often quite useful. -The mailing list. I have the most luck with very specific questions that include a minimal working example. It should include the appropriate \starttext…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset as-is. If you want to do 3D, you may want to get Lua involved for calculations. I use - Programming in LuaTeX page on the wiki (https://wiki.contextgarden.net/Programming_in_LuaTeX) - Programming in Lua, 4th ed. by Roberto Ierusalimschy (https://www.amazon.com/gp/product/8590379868) If you provide an example of what you hope to accomplish with MetaPost, we might have more specific recommendations. Below are two graphs that I made in TikZ, which I hope to convert to MetaPost (actually LMTX). These are from my chapter on elliptical orbits. I hope that helps you get started. Gavin chapter07-t-b-8c929184fdcc9da93d1ffe5262fc9842.pdf Description: Adobe PDF document chapter07-t-b-613fffa20a4b3581222e7b521bef3ace.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Width of captions and notes in outer margin not correct on even pages
Hi, I have observed that the widths of captions and also notes on even pages is not as I would expect them to be. Reading through the documentation I figured out that the width for captions has to be set manually when they are placed in the outer margin. I did so by setting it to width=\outermarginwidth. But it seems that for captions the width is derived from the inner margin width on even pages. The width of notes in the outer margin placed with \inouter is also off on even pages. They are too narrow and do not "fill" the available space (things seems to work for notes in inner margins though). Here is an example: \setuppapersize[A4] \setuplayout[backspace=40mm, width=100mm, leftmargindistance=5mm, leftmargin=30mm, rightmargindistance=5mm, rightmargin=50mm, topspace=10mm] \setuppagenumbering[alternative=doublesided] \setupcaptions[location={outermargin, low}, width=\outermarginwidth, headcolor=red, color=green, style={\tfx\setupinterlinespace}, align=width] \setupexternalfigures[location=default] \setupmargindata[style={\tfx}, stack=yes] \setupmargindata[inouter][color=orange] \setupmargindata[ininner][color=blue] \showframe \starttext \section{Margin Tests} \input knuth Some more stuff\inouter{Some multi-line text to be placed in the outer margin to check whether it is positioned correctly.} to read\inouter{Another multi-line text to be placed in the outer margin to check whether it is positioned correctly.}. \startplacefigure[title={A lengthy caption perfectly suited to perform some tests, which cause lines to wrap.}] {\externalfigure[cow][maxwidth=80mm]} \stopplacefigure More stuff\ininner{A1, A2, A3, A4 are well-known paper formats used in Europe and in some other places.}. \input zapf Some more stuff\inouter{Some multi-line text to be placed in the outer margin to check whether it is positioned correctly.} to read. \startplacefigure[title=A SVG test with a long caption to cause line wraps.] {\externalfigure[cow][maxwidth=70mm]} \stopplacefigure More stuff\ininner{A1, A2, A3, A4 are well-known paper formats used in Europe and in some other places.} to read. \input knuth \stoptext As a workaround the width for captions can be set to width=\rightmarginwidth, but how can I solve the issue with the notes? I am running ConteXt 2023.09.26 18:19 on Windows 10. Thanks and best regards Milan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide
Am Dienstag, 9. Januar 2024, 18:31:10 CET schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 09.01.2024 um 16:21: > > Hi, > > > > I have to come back to that topic, since it seems not to work. > > The said source code produces just the text "times" and "check" for me > > (see 1.pdf). I also tried: > > > > ``` > > \usesymbols[fontawesome] > > > > \starttext > > \showsymbolset[fontawesome-solid] > > \stoptext > > ``` > > and get a list of symbols that do not belong to fontawesome (see 2.pdf). > > > > I also tried to find the symbol file directly in the context > > distribution and found: > > tex/texmf-context/tex/context/base/mkiv/symb-imp-fontawesome.mkiv > > > > However, most parts are commented out there, one of the few remaining > > symbols is wheelchair. However, when using that, I just got the string > > _378 (3.pdf). Source code: > > > > ``` > > \usesymbols[fontawesome] > > > > \startTEXpage[offset=1pt] > > \symbol[fontawesome][wheelchair] > > \stopTEXpage > > ``` > > > > Is there a problem with my installation? > > Additional output: > > ``` > > % mtxrun --script fonts --list --all --pattern='fontawesome' > > identifier familyname fontname > > filename > > subfont instances > > > > fontawesomefontawesome fontawesome > > FontAwesome.otf > > fontawesome6brands fontawesome6brands fontawesome6brandsregular > > /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf > > fontawesome6brandsnormal fontawesome6brands fontawesome6brandsregular > > /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf > > fontawesome6freenormal fontawesome6free fontawesome6freesolid > > /usr/share/fonts/fontawesome/Font Awesome 6 Free-Solid-900.otf > > fontawesomenormal fontawesome fontawesome > > FontAwesome.otf > > fontawesomeregular fontawesome fontawesome > > FontAwesome.otf > > ``` > > The symbols expect version 5 of fontawesome but you have version 6. > > I guess it's time to switch to the new version of the fonts which can be > done by replacing 5 (file:fontawsome5...) with 6 (file:fontawsome6...) > in the following lines in symb-imp-fontawesome.mkiv > > \definefontsynonym [FontAwesomeBrands] > [file:fontawesome5brandsregular400.otf] > \definefontsynonym [FontAwesomeRegular] > [file:fontawesome5freeregular400.otf] > \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf] > > Wolfgang My system awesome font is version 6 but isn't the one bundled with ConTeXt version 5 (FontAwesome.otf)? This one: tex/texmf/fonts/data/fonticons/fontawesome/FontAwesome.otf: OpenType font data I would assume that ConTeXt is using the bundled file by default. Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide
Gerion Entrup schrieb am 09.01.2024 um 16:21: Hi, I have to come back to that topic, since it seems not to work. The said source code produces just the text "times" and "check" for me (see 1.pdf). I also tried: ``` \usesymbols[fontawesome] \starttext \showsymbolset[fontawesome-solid] \stoptext ``` and get a list of symbols that do not belong to fontawesome (see 2.pdf). I also tried to find the symbol file directly in the context distribution and found: tex/texmf-context/tex/context/base/mkiv/symb-imp-fontawesome.mkiv However, most parts are commented out there, one of the few remaining symbols is wheelchair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional output: ``` % mtxrun --script fonts --list --all --pattern='fontawesome' identifier familyname fontname filename subfont instances fontawesomefontawesome fontawesome FontAwesome.otf fontawesome6brands fontawesome6brands fontawesome6brandsregular /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf fontawesome6brandsnormal fontawesome6brands fontawesome6brandsregular /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf fontawesome6freenormal fontawesome6free fontawesome6freesolid /usr/share/fonts/fontawesome/Font Awesome 6 Free-Solid-900.otf fontawesomenormal fontawesome fontawesome FontAwesome.otf fontawesomeregular fontawesome fontawesome FontAwesome.otf ``` The symbols expect version 5 of fontawesome but you have version 6. I guess it's time to switch to the new version of the fonts which can be done by replacing 5 (file:fontawsome5...) with 6 (file:fontawsome6...) in the following lines in symb-imp-fontawesome.mkiv \definefontsynonym [FontAwesomeBrands] [file:fontawesome5brandsregular400.otf] \definefontsynonym [FontAwesomeRegular] [file:fontawesome5freeregular400.otf] \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: vim syntax highlighting bug?
Thanks for your effort! I have the same problem in Neovim and linked the pull request there: https://github.com/neovim/neovim/issues/26966 Best, Gerion Am Montag, 8. Januar 2024, 12:16:14 CET schrieb Vincent Hennebert: > I was in touch with the maintainer of the context.vim syntax file about > this. It turns out to be an issue with the lua.vim file that is included > in the context one. Lua.vim highlights trailing parentheses as errors, > but that’s done in a way that doesn’t work well when the file is > included by other syntax files. It somehow steals the syntax context and > makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m > not too savvy of the details). > > The maintainer came up with a workaround [1] to force returning to > ConTeXt mode, although the parenthesis remains highlighted as an error. > > That highlight bothers me, so my own workaround is to copy the lua.vim > file in my own .vim/syntax folder and comment out the ‘syn match > luaParenError ")"’ line (l.61 in my Vim version). > > Maybe playing with the ‘contained’ keyword (in lua.vim) could lead to a > proper solution, but I’m happy enough with my workaround that I haven’t > felt the need to investigate this issue any further. > > Hope that helps, > Vincent > > [1] https://github.com/vim/vim/pull/13778 > > On 06/01/2024 12:28, Damien Thiriet via ntg-context wrote: > > Hello, > > > > > > Happy New Year! > > > > I got into a bug in my Vim syntax highlighting version. > > Highlight stays in lua mode after ctxlua macro is closed. > > Here is a MWE, where «this should not be highlitghted as > > a comment indeed is. > > > > \starttext > > > > Hello! > > \ctxlua{context("does the parser work?")} > > > > -- this should not be highlighted as a comment > > > > \stoptext > > > > Do other Vim users come into this? > > Is my syntax file outdated? > > > > I am using this Vim version on OpenBSD 7.3 -stable: > > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) > > Included patches: 1-1876 > > > > Best regards, > > > > Damien Thiriet signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide
Hi, I have to come back to that topic, since it seems not to work. The said source code produces just the text "times" and "check" for me (see 1.pdf). I also tried: ``` \usesymbols[fontawesome] \starttext \showsymbolset[fontawesome-solid] \stoptext ``` and get a list of symbols that do not belong to fontawesome (see 2.pdf). I also tried to find the symbol file directly in the context distribution and found: tex/texmf-context/tex/context/base/mkiv/symb-imp-fontawesome.mkiv However, most parts are commented out there, one of the few remaining symbols is wheelchair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional output: ``` % mtxrun --script fonts --list --all --pattern='fontawesome' identifier familyname fontname filename subfont instances fontawesomefontawesome fontawesome FontAwesome.otf fontawesome6brands fontawesome6brands fontawesome6brandsregular /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf fontawesome6brandsnormal fontawesome6brands fontawesome6brandsregular /usr/share/fonts/fontawesome/Font Awesome 6 Brands-Regular-400.otf fontawesome6freenormal fontawesome6free fontawesome6freesolid /usr/share/fonts/fontawesome/Font Awesome 6 Free-Solid-900.otf fontawesomenormal fontawesome fontawesome FontAwesome.otf fontawesomeregular fontawesome fontawesome FontAwesome.otf ``` Best, Gerion Am Montag, 16. Oktober 2023, 15:36:34 CET schrieb Gerion Entrup: > Hans already answered my question. Thank you! > > Gerion > -- Forwarded Message -- > > Subject: Re: [NTG-context] x mark symbol and general symbol guide > Date: Freitag, 13. Oktober 2023, 18:13:42 CEST > From: Hans Hagen > To: Gerion Entrup > > On 10/13/2023 2:33 PM, Gerion Entrup wrote: > > Hi, > > > > I recently tried to typeset a table with checkmarks and x marks. > > \checkmark exists but is there a predefined x mark symbol (\xmark does > > not work)? > > > > In general: For LaTeX there exists the very helpful comprehensive LaTeX > > symbol list [1]. > > Is there a similar documentation for ConTeXt somewhere? > \usesymbols[fontawesome] > > \startTEXpage[offset=1ts] > \symbol[fontawesome-solid][times]\quad > \symbol[fontawesome-solid][check] > \stopTEXpage > > you can run symb-imp-fontawesome and get a list > > Hans > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > - > 1.pdf Description: Adobe PDF document 2.pdf Description: Adobe PDF document 3.pdf Description: Adobe PDF document signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Setuphead issue!
Am 09.01.24 um 14:43 schrieb G.C.H.M. Verhaag via ntg-context: Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}] \starttext A paragraph before calling the subject. \subject{\sc The subject} A paragrapf after the subject was called. \stoptext I use the \subject command within a columnset, could that be the problem? Yes, because text in column(sets)s is typeset on a grid. Try \showgrid to visualize. You can try to reduce the interlinespace for your headline font size like \setupbodyfontenvironment[16pt][interlinespace=12pt] That will get ugly as soon as your headlines need more than one line. Look into details.pdf for more information on working with grids. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Setuphead issue!
Hi, On Tue, Jan 9, 2024 at 2:45 PM G.C.H.M. Verhaag via ntg-context wrote: > > Hi, > The example below works as expected, but within my product it doesn't. > > % Subject example before and after! > > \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}] > > \starttext > A paragraph before calling the subject. > > \subject{\sc The subject} > > A paragrapf after the subject was called. > \stoptext > > I use the \subject command within a columnset, could that be the problem? Take the file that is not working. Comment out as much as possible, but so that you still have something that gives unexpected output. A sample file that gives correct output is not so easy to help from. /Mikael PS The \sc could go into the style= in the setup. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Setuphead issue!
Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}] \starttext A paragraph before calling the subject. \subject{\sc The subject} A paragrapf after the subject was called. \stoptext I use the \subject command within a columnset, could that be the problem? Gerard ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Links
Dear Henning, Many thanks . Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 08. Jänner 2024 16:00 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: Links Am 08.01.24 um 14:10 schrieb Ursula Hermann: > Dear List, > > Is this the right way? > > I want to use linked bibliography numbers, linked Chapter, section > subsection, linked margin numbers, in the text. > > \setupinteraction[state=start] This is essential. > > \starttext > > Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von > \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par > (Beutelspacher [\hyphenatedurl {10},S.54]). > > \stoptext \hyphenatedurl only changes the hyphenation of its content, it doesn’t create a link. In your example it makes no sense. Generally, you need an anchor (link target) to link to, e.g. \startchapter[title={My chapter},reference=chap:first] or \chapter[chap:first]{My chapter} This works the same for other structure levels. I’m not sure about bibliography, but I think you must use the bib entry code. You can also set anchors manually using \textreference and \pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why the way key-value argument is called affected the document's output?
On 1/8/2024 11:05 PM, 1114...@gmail.com wrote: Hi, I was cleaning and formatting my context file and then when I compiled it, the output I got introduced extra vertical spacings at the section headings that weren't there in the previous compilations. I had to spend enormous amount of time trying to fix it so to emulate my previous outputs. Turns out the problem was how I called one of the key-value argument in the document. I really wanna know the reason why it did influenced the output? Provided below is the minimal source code (and it is producing different outputs, meaning the vertical spacings are not same, on my device running the version released in the September and also tested with the latest release.) """ %% differences in outputs, for how "grid=yes" is called. %% Type 1. %\setuplayout[grid=yes] Here you set the grid variable to "yes". %% Type 2. %\setuplayout[ %grid=yes %] Here you set the grid variable to "yes " so a trailing space. \setuphead[section][grid=low] %% needed to observe the output difference \starttext \title{Alpha} \subsection{Beta} \input{knuth} \stoptext So this is ok: \setupfoo [a=A, b=B] \setupfoo [a=A, b=B, ] I'm not aware of funmdamental changes in the parse, apart from that in many setup commands one can now do this: \setupfoo [A=\this[works], B=\that[doestoo]] as nested brackets are handled. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Why the way key-value argument is called affected the document's output?
Hi, I was cleaning and formatting my context file and then when I compiled it, the output I got introduced extra vertical spacings at the section headings that weren't there in the previous compilations. I had to spend enormous amount of time trying to fix it so to emulate my previous outputs. Turns out the problem was how I called one of the key-value argument in the document. I really wanna know the reason why it did influenced the output? Provided below is the minimal source code (and it is producing different outputs, meaning the vertical spacings are not same, on my device running the version released in the September and also tested with the latest release.) """ %% differences in outputs, for how "grid=yes" is called. %% Type 1. %\setuplayout[grid=yes] %% Type 2. %\setuplayout[ %grid=yes %] \setuphead[section][grid=low] %% needed to observe the output difference \starttext \title{Alpha} \subsection{Beta} \input{knuth} \stoptext """ Best regards, Ali ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Links
Am 08.01.24 um 14:10 schrieb Ursula Hermann: Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] This is essential. \starttext Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [\hyphenatedurl {10},S.54]). \stoptext \hyphenatedurl only changes the hyphenation of its content, it doesn’t create a link. In your example it makes no sense. Generally, you need an anchor (link target) to link to, e.g. \startchapter[title={My chapter},reference=chap:first] or \chapter[chap:first]{My chapter} This works the same for other structure levels. I’m not sure about bibliography, but I think you must use the bib entry code. You can also set anchors manually using \textreference and \pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Links
Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] \starttext Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [\hyphenatedurl {10},S.54]). \stoptext Many thanks Uschi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: vim syntax highlighting bug?
I was in touch with the maintainer of the context.vim syntax file about this. It turns out to be an issue with the lua.vim file that is included in the context one. Lua.vim highlights trailing parentheses as errors, but that’s done in a way that doesn’t work well when the file is included by other syntax files. It somehow steals the syntax context and makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m not too savvy of the details). The maintainer came up with a workaround [1] to force returning to ConTeXt mode, although the parenthesis remains highlighted as an error. That highlight bothers me, so my own workaround is to copy the lua.vim file in my own .vim/syntax folder and comment out the ‘syn match luaParenError ")"’ line (l.61 in my Vim version). Maybe playing with the ‘contained’ keyword (in lua.vim) could lead to a proper solution, but I’m happy enough with my workaround that I haven’t felt the need to investigate this issue any further. Hope that helps, Vincent [1] https://github.com/vim/vim/pull/13778 On 06/01/2024 12:28, Damien Thiriet via ntg-context wrote: Hello, Happy New Year! I got into a bug in my Vim syntax highlighting version. Highlight stays in lua mode after ctxlua macro is closed. Here is a MWE, where «this should not be highlitghted as a comment indeed is. \starttext Hello! \ctxlua{context("does the parser work?")} -- this should not be highlighted as a comment \stoptext Do other Vim users come into this? Is my syntax file outdated? I am using this Vim version on OpenBSD 7.3 -stable: VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) Included patches: 1-1876 Best regards, Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost: draw only subpath; changing thickness of line
Hi Taco, thanks for your help. This works for me! On Jan. 5 2024, at 2:13 pm, Taco Hoekwater wrote: > Hi, > > Here is 'a' way to draw the subpath, at least. I do not have time to come up > with a nice “thicker in the middle” solution. > Best wishes, > Taco > > > \startMPcode > numeric u; u=1cm; > %equiangular spiral > numeric a, k ; > a = 2.3; %scaling factor > k = 8.61722335; > path S; > S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; > draw S; > > z1 = 8 dir -14; > path A; A = origin -- z1 scaled 0.7u ;% draw A; > pair AEndPoint; AEndPoint = point 1 of A; > pair gong[], times; numeric n; n = 0; > numeric gongtimes[]; % new > for i = 1 upto length(A): > for j = 1 upto length(S): > times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; > if xpart times > -1: > gong[incr n] = 1[point xpart times of subpath (i-1,i) of A, > point ypart times of subpath (j-1,j) of S]; > gongtimes[n] = j-1 + ypart times; % new > fi > endfor > endfor > > % new > path H; H = subpath(gongtimes[6],gongtimes[7]) of S; > lH = length(H); > for i = 1 upto 100: > draw (subpath((i-1)/100*lH, i/100* lH) of H) withcolor red withpen (pencircle > scaled(abs(abs(i-50)-50)/10)) ; > endfor; > > \stopMPcode > > > On 5 Jan 2024, at 09:56, Emanuel Han via ntg-context > > wrote: > > > > Hi all, > > > > I have this MWE. Now I want to draw only the subpath of S between gong6 and > > gong7 with a red line which is narrower at the two ends and thicker in the > > middle part. How to achieve this? > > > > Thanks! > > Emanuel > > > > \setuppapersize[A4,landscape] > > > > \starttext > > > > \startMPcode > > numeric u; u=1cm; > > %equiangular spiral > > numeric a, k ; > > a = 2.3; %scaling factor > > k = 8.61722335; > > path S; > > S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; > > draw S; > > > > z1 = 8 dir -14; > > path A; A = origin -- z1 scaled 0.7u ; draw A; > > pair AEndPoint; AEndPoint = point 1 of A; > > pair gong[], times; numeric n; n = 0; > > for i = 1 upto length(A): > > for j = 1 upto length(S): > > times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; > > if xpart times > -1: > > gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A, > > point ypart times of subpath (j-1,j) of S]; > > fi > > endfor > > endfor > > > > dotlabel.rt ("$gong6$", gong6); > > dotlabel.rt ("$gong7$", gong7); > > > > %Now I want to draw only the subpath of S between gong6 and gong7 with a > > red line which is narrower at the two ends and thicker in the middle part > > > > \stopMPcode > > > > \stoptext > > ___ > > If your question is of interest to others as well, please add an entry to > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > > archive : https://github.com/contextgarden/context > > wiki : https://wiki.contextgarden.net > > ___ > > — > Taco Hoekwater E: t...@bittext.nl > genderfluid (all pronouns) > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: multipage metapost output from ConTeXt
Hi Mikael, with the solution provided by you, I could work on my graphic which grows from page to page. So far I have already 28 pages. Now I would like to go back to the summed graphic of p1 to p21 and add the coming p29, p30 etc. to only that (that means contents of p22 to p28 should not be visible on pages 29 and forward). I don't bother you with my code which is too long. Let's use the mwe provided by you (I added it here for convenience), where we have 3 pages. How can I have the content of p2 not be added on page 3 and forward? \startuseMPgraphic{base} picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate=start] \includeMPgraphic{base} currentime := #1 ; % Just for learning : draw TheFrame withpen pencircle scaled .1in withcolor magenta ; draw textext("T="(currentime)) scaled 2 shifted(0,2in) withcolor magenta ; for k=1 upto currentime: addto currentpicture also p[k]; endfor setbounds currentpicture to TheFrame ; desiredformat := 1080;% In pixels (will be converted by default at 72dpi) currentpicture := currentpicture xysized (desiredformat ,desiredformat ); \stopMPpage } \stoptext On Dez. 2 2023, at 7:46 pm, Mikael Sundqvist wrote: > Hi, > > I don't know if \startMPinclusions \stopMPinclusions shall work with > \startMPpage and \stopMPpage. In this case, one can use a separate > graphics: > > \startuseMPgraphic{base} > picture p[]; > path TheFrame ; > TheFrame := fullsquare scaled 5in ; > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > > p1:=image( > label("Word 1", z1); > ); > > p2:=image( > label("Mot 2", z2); > ); > > p3:=image( > label("Parola 3", z3); > ); > > \stopuseMPgraphic > \starttext > \dorecurse{3}{ % Frame > \startMPpage[pagestate=start] > \includeMPgraphic{base} > currentime := #1 ; > % Just for learning : > draw TheFrame withpen pencircle scaled .1in withcolor magenta ; > draw textext("T="(currentime)) scaled 2 shifted(0,2in) > withcolor magenta ; > for k=1 upto currentime: addto currentpicture also p[k]; endfor > setbounds currentpicture to TheFrame ; > > desiredformat := 1080;% In pixels (will be converted by default at 72dpi) > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > \stopMPpage > } > > \stoptext > /Mikael > On Sat, Dec 2, 2023 at 6:14 PM Emanuel Han via ntg-context > wrote: > > > > Hi Mikael, > > > > here's a very simple mwe for the label(textext()) issue. On page 1, the > > text "Word 1" should be drawn in position z1. On page 2, the same text in > > the same position should be visible, and the text "Mot 2" in position p2 > > should be added. And so on. > > > > \startMPinclusions > > > > picture p[]; > > path TheFrame ; > > TheFrame := fullsquare scaled 5in ; > > > > z1 = (60,40); > > z2 = (40,90); > > z3 = (10,70); > > > > p1:=image( > > label(textext("Word 1"), z1); > > ); > > > > p2:=image( > > label(textext("Mot 2"), z2); > > ); > > > > p3:=image( > > label(textext("Parola 3"), z3); > > ); > > > > \stopMPinclusions > > > > \starttext > > > > \dorecurse{3}{ % Frame > > \startMPpage[pagestate=start] > > currentime := #1 ; > > % Just for learning : > > draw TheFrame withpen pencircle scaled .1in withcolor magenta ; > > draw textext("T="(currentime)) scaled 2 shifted(0,2in) withcolor > > magenta ; > > for k=1 upto currentime: draw p[k]; endfor > > setbounds currentpicture to TheFrame ; > > > > desiredformat := 1080;% In pixels (will be converted by default at 72dpi) > > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > > > > \stopMPpage > > } > > > > \stoptext > > > > On Dez. 2 2023, at 5:22 pm, Mikael Sundqvist wrote: > > > > Hi Emanuel, > > > > I am not sure I understand your question, and since you use fonts that > > i do not have, I cannot test your example as is. But, maybe, if you > > want to redraw a picture, you can do > > > > addto currentpicture also p1; > > > > where you want it. > > > > /Mikael > > > > PS For the text thing, I did not get it. Could one have a _very > > simple_ example showing only that problem and no other problem? > > > > On Sat, Dec 2, 2
[NTG-context] Re: vim syntax highlighting bug?
Hello on my installation, it's working: [image: image.png] But I'm on an old version on debian: VIM - Vi IMproved 8.2 (2019 Dec 12 kompiliert am Oct 01 2021 01:51:08) Inklusive der Patches: 1-2434 Extra Patches: 8.2.3402, 8.2.3403, 8.2.3409, 8.2.3428 Perhaps something has changed in version 9.0... Hope it helps Christian Am Sa., 6. Jan. 2024 um 13:04 Uhr schrieb Damien Thiriet via ntg-context < ntg-context@ntg.nl>: > Hello, > > > Happy New Year! > > I got into a bug in my Vim syntax highlighting version. > Highlight stays in lua mode after ctxlua macro is closed. > Here is a MWE, where «this should not be highlitghted as > a comment indeed is. > > \starttext > > Hello! > \ctxlua{context("does the parser work?")} > > -- this should not be highlighted as a comment > > \stoptext > > Do other Vim users come into this? > Is my syntax file outdated? > > I am using this Vim version on OpenBSD 7.3 -stable: > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) > Included patches: 1-1876 > > Best regards, > > Damien Thiriet > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] vim syntax highlighting bug?
Hello, Happy New Year! I got into a bug in my Vim syntax highlighting version. Highlight stays in lua mode after ctxlua macro is closed. Here is a MWE, where «this should not be highlitghted as a comment indeed is. \starttext Hello! \ctxlua{context("does the parser work?")} -- this should not be highlighted as a comment \stoptext Do other Vim users come into this? Is my syntax file outdated? I am using this Vim version on OpenBSD 7.3 -stable: VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) Included patches: 1-1876 Best regards, Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Question to a formular
Dear Aditya, Many thanks for your help. Uschi Von: Aditya Mahajan Gesendet: Freitag, 5. Jänner 2024 15:20:46 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: Question to a formular On Fri, 5 Jan 2024, Ursula Hermann wrote: > Dear list, > > > I have this formular, but no idea , how to write it in Context. This is a > formular with factorial. > > > 0! := 1 > (n + 1)! := (n + 1) n! > > Can someone help me please? \starttext \startformula \startalign \NC 0! \NC \colonequals 1 \NR \NC (n+1)! \NC \colonequals (n+1) n! \NR \stopalign \stopformula \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Question to a formular
On Fri, 5 Jan 2024, Ursula Hermann wrote: > Dear list, > > > I have this formular, but no idea , how to write it in Context. This is a > formular with factorial. > > > 0! := 1 > (n + 1)! := (n + 1) n! > > Can someone help me please? \starttext \startformula \startalign \NC 0! \NC \colonequals 1 \NR \NC (n+1)! \NC \colonequals (n+1) n! \NR \stopalign \stopformula \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost: draw only subpath; changing thickness of line
Hi, Here is 'a' way to draw the subpath, at least. I do not have time to come up with a nice “thicker in the middle” solution. Best wishes, Taco \startMPcode numeric u; u=1cm; %equiangular spiral numeric a, k ; a = 2.3; %scaling factor k = 8.61722335; path S; S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; draw S; z1 = 8 dir -14; path A; A = origin -- z1 scaled 0.7u ;% draw A; pair AEndPoint; AEndPoint = point 1 of A; pair gong[], times; numeric n; n = 0; numeric gongtimes[]; % new for i = 1 upto length(A): for j = 1 upto length(S): times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; if xpart times > -1: gong[incr n] = 1[point xpart times of subpath (i-1,i) of A, point ypart times of subpath (j-1,j) of S]; gongtimes[n] = j-1 + ypart times; % new fi endfor endfor % new path H; H = subpath(gongtimes[6],gongtimes[7]) of S; lH = length(H); for i = 1 upto 100: draw (subpath((i-1)/100*lH, i/100* lH) of H) withcolor red withpen (pencircle scaled(abs(abs(i-50)-50)/10)) ; endfor; \stopMPcode > On 5 Jan 2024, at 09:56, Emanuel Han via ntg-context > wrote: > > Hi all, > > I have this MWE. Now I want to draw only the subpath of S between gong6 and > gong7 with a red line which is narrower at the two ends and thicker in the > middle part. How to achieve this? > > Thanks! > Emanuel > > \setuppapersize[A4,landscape] > > \starttext > > \startMPcode > numeric u; u=1cm; > %equiangular spiral > numeric a, k ; > a = 2.3; %scaling factor > k = 8.61722335; > path S; > S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; > draw S; > > z1 = 8 dir -14; > path A; A = origin -- z1 scaled 0.7u ; draw A; > pair AEndPoint; AEndPoint = point 1 of A; > pair gong[], times; numeric n; n = 0; > for i = 1 upto length(A): > for j = 1 upto length(S): >times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; >if xpart times > -1: > gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A, > point ypart times of subpath (j-1,j) of S]; > fi > endfor > endfor > > dotlabel.rt ("$gong6$", gong6); > dotlabel.rt ("$gong7$", gong7); > > %Now I want to draw only the subpath of S between gong6 and gong7 with a red > line which is narrower at the two ends and thicker in the middle part > > \stopMPcode > > \stoptext > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Metapost: draw only subpath; changing thickness of line
Hi all, I have this MWE. Now I want to draw only the subpath of S between gong6 and gong7 with a red line which is narrower at the two ends and thicker in the middle part. How to achieve this? Thanks! Emanuel \setuppapersize[A4,landscape] \starttext \startMPcode numeric u; u=1cm; %equiangular spiral numeric a, k ; a = 2.3; %scaling factor k = 8.61722335; path S; S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; draw S; z1 = 8 dir -14; path A; A = origin -- z1 scaled 0.7u ; draw A; pair AEndPoint; AEndPoint = point 1 of A; pair gong[], times; numeric n; n = 0; for i = 1 upto length(A): for j = 1 upto length(S): times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; if xpart times > -1: gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A, point ypart times of subpath (j-1,j) of S]; fi endfor endfor dotlabel.rt ("$gong6$", gong6); dotlabel.rt ("$gong7$", gong7); %Now I want to draw only the subpath of S between gong6 and gong7 with a red line which is narrower at the two ends and thicker in the middle part \stopMPcode \stoptext___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Local alternative to \input
Am 04.01.24 um 18:00 schrieb Jeroen: I just would like to have a lot of mark-up for combined figures and tables etc moved out of the way, similar to this. I am loosing the general documetn flow because of all this markup. Would there be a construction similar to this: \starttext \environment foo \environment bar \startenvironment foo this is a lot of text \stopenvironment \startenvironment bar and this is another piece of text \stopenvironment \stoptext An environment is a separate file. \environment is like \input with a few more checks, e.g. it loads the file only once. e.g. -- file "env_foo.tex" -- \startenvironment env_foo % settings \stopenvironment -- -- file document.tex -- \environment env_foo \starttext % whatever \stoptext -- Instead of the call within your document, you can also call context --environment=env_foo.tex document (Usually that makes only sense in XML workflows.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Status of Asymptote
Below is how I have used Asymptote in the past with the Context filter module: download portable ghostsctipt create dir c:\context\ghostscript and install from https://portableapps.com/apps/utilities/ghostscript_portable download non-portable asymptote create dir c:\context\asymptote and install from http://asymptote.sourceforge.net/ create file c:\context\asy.bat with context ASYMPTOTE_GS=C:context/ghostscript/bin/gswin64.exe C:/context/asymptote/asy.exe %* test with: \usemodule[filter] \defineexternalfilter[ASY] [filter={/context/asy.bat -tex context -outformat pdf -outname \externalfilteroutputfile}, output=\externalfilterbasefile.pdf, cache=yes, readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext Testing if we can include an asymptote image \startplacefigure[location={here}, title={An Asymptote figure}] \startASY size(10cm); import graph; real f(real x) {return sin(x);} draw(graph(f,-3,3,300),blue); \stopASY \stopplacefigure \stoptext OR alternatively: \usemodule[filter] \defineexternalfilter[ASY] [filter={/context/asy.bat -tex context -outformat pdf -outname \externalfilteroutputfile}, output=\externalfilterbasefile.pdf, cache=yes, readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext Testing if we can include an asymptote image \startplacefigure[location={here}, title={An Asymptote figure}] \startASY unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \stopplacefigure \stoptext Op 31/12/2023 om 00:33 schreef Aditya Mahajan: On Sun, 31 Dec 2023, Shiv Shankar Dayal wrote: It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. It is possible to obtain simple integration for asymptote using the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves the content of the asymptote-preamble and the figure in a separate file, runs asymptote to generate a PDF figure and includes the figure. The results are cached so the asymptote is re-run only if the content of the figure environment changes. A drawback of this approach is that the labels are generated by asymptote. That means that the font, colors, and any macros needed for the figures need to be redefined at both context and asymptote end. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Status of Asymptote
On Sun, 31 Dec 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. Right now I > generate images separately and embed them in PDF using externalfigure command > which works but I have to maintain all the graphics separately. It is possible to obtain simple integration for asymptote using the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves the content of the asymptote-preamble and the figure in a separate file, runs asymptote to generate a PDF figure and includes the figure. The results are cached so the asymptote is re-run only if the content of the figure environment changes. A drawback of this approach is that the labels are generated by asymptote. That means that the font, colors, and any macros needed for the figures need to be redefined at both context and asymptote end. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? On Wed, Dec 27, 2023 at 6:18 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > > > A simple alternative to tikz is the usage of \framed. >> >> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >> >> Thanks a lot. It should work nicely. > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Question about drawing flowchart using chart module
Dear all, I tried to draw a flow chart using the module[chart]. Following the examples, I draw one. The problem is that the size of the chart is not changed even though I changed the numbers dx,dy, width, height, and maxwidth in the \setupFLOWcharts Please tell me how to resize the chart. Thank you. Dalyoung %% \usemodule[chart] \starttext \startFLOWchart[bigger] \setupFLOWcharts [option=test, nx=3, ny=6, dx=\bodyfontsize, dy=\bodyfontsize, width=6cm,%.5\bodyfontsize, height=10cm,%.3\bodyfontsize, maxwidth=.5\textwidth ] \startFLOWcell \name{a} \location{2,1} \shape{loop} \text{start} \connection[bt]{b} \stopFLOWcell \startFLOWcell \name{b} \location{2,2} \shape{79} \text{input $a,b$} \connection[bt]{c} \stopFLOWcell \startFLOWcell \name{c} \location{2,3} \shape{decision} \text{$a-b > 0$} \connection[lt]{d} \comment[l]{Yes} \connection[rt]{g} \comment[r]{No} \stopFLOWcell \startFLOWcell \name{d} \location{1,5} \shape{76} \text{$a$ is bigger \\ than $b$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{e} \location{2,5} \shape{76} \text{$b$ is bigger \\ than $a$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{g} \location{3,4} \shape{decision} \text{$a - b < 0$} \connection[lt]{e}\comment[l]{Yes} \connection[bt]{h}\comment[b]{No} \stopFLOWcell \startFLOWcell \name{h} \location{3,5} \shape{76} \text{$a$ is equal \\ to $b$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{f} \location{2,6} \shape{loop} \text{stop} \stopFLOWcell \stopFLOWchart \placefigure [here][fig:bigger] {Which is bigger?} {\tx\setupFLOWcharts\FLOWchart[bigger]} \stoptext___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
Hi! Not by computer, and I'm sure Hans (or Wolfgang) has already shown a way to do the old factorial with the actuarian mechanism when I'm back to the computer... /Mikael Den ons 27 dec. 2023 13:49Shiv Shankar Dayal skrev: > > > A simple alternative to tikz is the usage of \framed. >> >> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >> >> Thanks a lot. It should work nicely. > > -- > Respect, > Shiv Shankar Dayal > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work nicely. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31: What do you expect here to pass as argument to the oldfact command? I will pass something like n, 5, 10 etc. A simple alternative to tikz is the usage of \framed. \define[1]\oldfact {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} \starttext \m{\oldfact{n}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
What do you expect here to pass as argument to the oldfact command? > I will pass something like n, 5, 10 etc. > > This works here: > > \defineenumeration > [proof] > [closesymbol={\mathematics{\square}}] > > \starttext > > \startproof > \samplefile{lorem} > \stopproof > > \stoptext > Thanks. I will test this again. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:19: I use following in Latex to generate old factorial symbol: \newcommand{\oldfact}[1]{% \tikz[baseline]{\node[anchor=base,inner sep=0.3ex](mynode){\ensuremath{#1}};\draw(mynode.north west)--(mynode.south west)--(mynode.south east);\path[use as bounding box]($(mynode.south west)+(-0.3ex,-0.3ex)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);} } What do you expect here to pass as argument to the oldfact command? But I do not know how to make it work in ConTeXt as I am not very familiar with ConTeXt. If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, %this is the default closesymbol={\mathematics{\square}}, style=normal] But the closessymbol does not work. I will create a minimum working example and post it as soon as possible. This works here: \defineenumeration [proof] [closesymbol={\mathematics{\square}}] \starttext \startproof \samplefile{lorem} \stopproof \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error: Control sequence expected instead of undefined
Hello, I just copied your example code and run it on version 2023-09-26. It compiled just fine. Cheers Willi > On 25 Dec 2023, at 16:09, Jeong Dal via ntg-context > wrote: > > Hi, > > I got an error message as following: > > Control sequence expected instead of undefined > > If I comment out the “\externalfigure[][]” line, then there is no error > message. > > I don’t know what is wrong in the sample code. > Please check the code. > > Thank you for reading. > > Best regards, > > Dalyoung > > %%%* > \starttext > \in{figure}[fig:kruskal1] is my point. > > \startplacefigure[location=,reference=fig:kruskal1,title={}] > \externalfigure[cow][width=.5\makeupwidth] > \stopplacefigure > \stoptext > % > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] error: Control sequence expected instead of undefined
Hi, I got an error message as following: Control sequence expected instead of undefined If I comment out the “\externalfigure[][]” line, then there is no error message. I don’t know what is wrong in the sample code. Please check the code. Thank you for reading. Best regards, Dalyoung %%%* \starttext \in{figure}[fig:kruskal1] is my point. \startplacefigure[location=,reference=fig:kruskal1,title={}] \externalfigure[cow][width=.5\makeupwidth] \stopplacefigure \stoptext %___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \setupsynonyms textstyle=cap failing
Garulfo schrieb am 23.12.2023 um 12:41: Hi all, the following minimum working example is properly typesetted with textstyle=bold, but it fails with textstyle=cap (ConTeXt version : 2023.09.26 18:19) A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=bold] \starttext \contextversion \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} Test 1 : \NTG . Test 2 : \AbbreviationsFull{NTG}. \stoptext Any clue ? Hans made changes on the capitals mode and now the following two lines have to be added to typo-cap.mkxl on line 52 and 53. \definecapitals[\v!cap] [\v!capital] \definecapitals[\v!Cap] [\v!Capital] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \setupsynonyms textstyle=cap failing
> On 23 Dec 2023, at 11:41, Garulfo wrote: > > Hi all, > > the following minimum working example is properly typesetted with > textstyle=bold, > but it fails with textstyle=cap (ConTeXt version : 2023.09.26 18:19) > > A number should have been here; I inserted '0'. (If you can't figure out why > I > needed to see a number, look up 'weird error' in the index to The TeXbook.) > mtx-context | fatal error: return code: 1 > > It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) > > > \definesynonyms[abbreviation] [abbreviations] [\AbbreviationsFull] > \setupsynonyms [abbreviation] [textstyle=bold] > > \starttext > > \contextversion > \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} > > Test 1 : \NTG . > > Test 2 : \AbbreviationsFull{NTG}. > > \stoptext I'm not sure why textstyle=cap fails but textstyle=sc works. However textstyle=\cap (i.e. as a command) works. Also \abbreviation is already defined so you don't need to define it again. Thus your MWE becomes: %\definesynonyms[abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=\cap] \starttext \contextversion \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} Test 1 : \NTG . Test 2 : \infull{NTG} %\AbbreviationsFull{NTG}. \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] \setupsynonyms textstyle=cap failing
Hi all, the following minimum working example is properly typesetted with textstyle=bold, but it fails with textstyle=cap (ConTeXt version : 2023.09.26 18:19) A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=bold] \starttext \contextversion \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} Test 1 : \NTG . Test 2 : \AbbreviationsFull{NTG}. \stoptext Any clue ?___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
\Program Files\MiKTeX 2.9\miktex\bin\yap.exe TeX-Bin (TeX.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\tex.exe TeX-Bin (LaTeX.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\latex.exe TeX-Bin (PDFTeX.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\pdftex.exe TeX-Bin (PDFLaTeX.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\pdflatex.exe TeX-Bin (BibTeX.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\bibtex.exe TeX-Bin (dvips.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\dvips.exe TeX-Bin (ps2pdf.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\ps2pdf.exe TeX-Bin (dvipdfmx.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\dvipdfmx.exe TeX-Bin (mf.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\mf.exe TeX-Bin (mpost.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\mpost.exe MiKTeX-Bin (TeXify.exe): OK* C:\Program Files\MiKTeX 2.9\miktex\bin\texify.exe My question is: Should I put the PATH in WinEdt or in Windows? Or in ConTeXt? $TEXROOT/tex/texmf-$ARCH/bin/lib/luametatex/zint Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 20:34:15 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 17:05 schrieb Ursula Hermann: > Dear List > After compiling > \usemodule[m-zint] > \starttext > \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] > \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, > width=3cm] \stoptext > > I got , what you see in the pdf. Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? What’s your ConTeXt version, and how did you install it? (TeX live, Linux distribution, LMTX distribution?) I guess a missing EPS means you load the MkIV version of the module, probably because "m-zint". Is there an error message with \loadmodule[zint]? I can’t help with Windows; since Hans developed it on Windows, it should work (but don’t ask me how). Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear Hraban, Thank your for your mail. I have the latest ConTeXt version, and I have Texlive. Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 20:34 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 17:05 schrieb Ursula Hermann: > Dear List > After compiling > \usemodule[m-zint] > \starttext > \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] > \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, > width=3cm] \stoptext > > I got , what you see in the pdf. Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? What’s your ConTeXt version, and how did you install it? (TeX live, Linux distribution, LMTX distribution?) I guess a missing EPS means you load the MkIV version of the module, probably because "m-zint". Is there an error message with \loadmodule[zint]? I can’t help with Windows; since Hans developed it on Windows, it should work (but don’t ask me how). Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On Mon Dec 18, 2023 at 9:35 PM CET, Pablo Rodriguez via ntg-context wrote: > On 12/18/23 20:34, Henning Hraban Ramm wrote: > > [...] > > Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? > > Many thanks for your reply, Hraban. > > I understood my issue with your reply (I known, your answer is intended > to Uschi). > > It is also in the sent file: > > Creator: >LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19 > PDF Producer: >LuaMetaTeX-2.10.11 > > > I guess a missing EPS means you load the MkIV version of the module, > > probably because "m-zint". > > > > I can’t help with Windows; since Hans developed it on Windows, it should > > work (but don’t ask me how). > > I will try to explain what I understand from this (intended for Uschi). > > Given that there are two modules (m-zint and zint), there are two options: > > 1. Either you use the LMTX module (\usemodule[zint]) and you need the > Zint library (as explained in > https://wiki.contextgarden.net/Barcodes#Zint_module). > > 2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint > binary installed and CMD should be able to invoke it (already knowing > its past). > > You may have the Zint binary installed, ConTeXt may be generating the > required EPS files, but either Inkscape is not installed (or its path is > unknown to the system), or ConTeXt cannot simply find where the > converted PDF versions of the zint images are. > > If I have the following source in testing-barcodes.tex: > > \usemodule[m-zint] > \starttext > \startTEXpage[offset=1dk] > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > \stopTEXpage > \stoptext > > ConTeXt compiles it generating to extra files (when compared to the pure > zint module for LMTX only): > > zint-isbnx-fe90eda0e93cf020312eps > m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf > > (Removed some characters in strings so file names fit in a single line.) > > The first file is generated by the Zint binary itself. The second one is > the automatic conversion (through Inkscape) that ConTeXt needs to embed > EPS (and SVG) files in the final PDF document. > > If m_k_i_v_zint-*.pdf files are missing, the problem might be that > Inkscape isn’t installed (or its path is unknown to the system). > > If also zint-*.eps files are missing, you should find where Zint is > generating them. I will just add to the excellent answers above, that I very much recommend LMTX and the LMTX way of using the zint _library_. I published compiled versions of zint and couple of other libraries to the optional libraries repository: https://github.com/contextgarden/luametatex-optional-libraries https://github.com/contextgarden/luametatex-optional-libraries/releases/tag/v20230902 I tested the steps on the wiki and libzint.dll works without problems: i.e. install ConTeXt, create a few folders, move the dll and mtxrun --generate. My goto document for testing zint, that went without problems (even the hexagons!): \starttext \usemodule[zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \barcode[alternative=maxicode, text={test}, width=3cm] \stoptext Michal PS: Coincidentally zint 2.13 has been released just today. Usually every new zint release requires an update on the ConTeXt side, but older releases still work well with ConTeXt (e.g. currently ConTeXt supports 2.10, 2.11 and 2.12). The version linked above works. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 12/18/23 20:34, Henning Hraban Ramm wrote: > [...] > Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? Many thanks for your reply, Hraban. I understood my issue with your reply (I known, your answer is intended to Uschi). It is also in the sent file: Creator: LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19 PDF Producer: LuaMetaTeX-2.10.11 > I guess a missing EPS means you load the MkIV version of the module, > probably because "m-zint". > > I can’t help with Windows; since Hans developed it on Windows, it should > work (but don’t ask me how). I will try to explain what I understand from this (intended for Uschi). Given that there are two modules (m-zint and zint), there are two options: 1. Either you use the LMTX module (\usemodule[zint]) and you need the Zint library (as explained in https://wiki.contextgarden.net/Barcodes#Zint_module). 2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint binary installed and CMD should be able to invoke it (already knowing its past). You may have the Zint binary installed, ConTeXt may be generating the required EPS files, but either Inkscape is not installed (or its path is unknown to the system), or ConTeXt cannot simply find where the converted PDF versions of the zint images are. If I have the following source in testing-barcodes.tex: \usemodule[m-zint] \starttext \startTEXpage[offset=1dk] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stopTEXpage \stoptext ConTeXt compiles it generating to extra files (when compared to the pure zint module for LMTX only): zint-isbnx-fe90eda0e93cf020312eps m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf (Removed some characters in strings so file names fit in a single line.) The first file is generated by the Zint binary itself. The second one is the automatic conversion (through Inkscape) that ConTeXt needs to embed EPS (and SVG) files in the final PDF document. If m_k_i_v_zint-*.pdf files are missing, the problem might be that Inkscape isn’t installed (or its path is unknown to the system). If also zint-*.eps files are missing, you should find where Zint is generating them. Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Am 18.12.23 um 17:05 schrieb Ursula Hermann: Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? What’s your ConTeXt version, and how did you install it? (TeX live, Linux distribution, LMTX distribution?) I guess a missing EPS means you load the MkIV version of the module, probably because "m-zint". Is there an error message with \loadmodule[zint]? I can’t help with Windows; since Hans developed it on Windows, it should work (but don’t ask me how). Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 18/12/2023 17:05, Ursula Hermann wrote: After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. context 43.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. Many Thanks Uschi -Ursprüngliche Nachricht- Von: vm via ntg-context Gesendet: Montag, 18. Dezember 2023 16:15 An: ntg-context@ntg.nl Cc: vm Betreff: [NTG-context] Re: QR Code On 18/12/2023 15:13, Ursula Hermann wrote: >> Dear List >> >> I was interested how it works. >> >> So I started this example. >> >> \starttext >> >> \usemodule[m-zint] >> >> \barcode[alternative=isbnx, text=9783865419026, width=4cm] >> >> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, >> width=3cm] >> >> \stoptext >> >> Is that the right way? > just \usemodule[zint] For what it is worth, the [zint] variant does not work on my linux platform, the [m-zint] does work correctly. \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ Barcode.pdf Description: Barcode.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 18/12/2023 15:13, Ursula Hermann wrote: Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? just \usemodule[zint] For what it is worth, the [zint] variant does not work on my linux platform, the [m-zint] does work correctly. \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear Henning, I have downloaded Zint in Windows. Yes, I saw it, but I'm not sure where to write this file. I have WinEdt 11. Many thanks Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 13:26 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > width=3cm] > > \stoptext > > Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear Hraban, Many Thanks for your mail. I am sorry for asking: Where should I write this path. After the download in Windows? Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 13:26 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > width=3cm] > > \stoptext > > Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Am 18.12.23 um 13:00 schrieb Ursula Hermann: Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] QR Code
Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? Many thanks Uschi Barcode.pdf Description: Barcode.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and calculates paths. These paths are passed to MetaFun, which draws the globe. about names: how about t-luageo.lmt t-luageo.mpxl so that one knows what comes with the module (we do the same with s-* modules) and you can add the example to the end of the module \continueifinputfile{t-luageo.mkxl} \starttext exaple code \stoptext and then process the module to get the example Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with the paragraph
Dear Bruce, Thank you for your Mail It works perfect. Thank you . Uschi Hermann -Ursprüngliche Nachricht- Von: Bruce Horrocks Gesendet: Freitag, 15. Dezember 2023 14:00 An: ntg-context mailing list Betreff: [NTG-context] Re: Problem with the paragraph > On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over changing style so use \bold{this is bold} or {\bf this is bold} but not \bf{this is bold}. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \par \startitemize[n] \item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)} \item ∃f ∈ F : ∀m ∈ M : h(m, f). \stopitemize % I changed the above to use \startitemize but have a look at \placeformula as well \startGrayBackground Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.” \blank Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [10, S.54]). \stopGrayBackground \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
On Sun, 17 Dec 2023, Wolfgang Schuster wrote: > Peter Münster schrieb am 17.12.2023 um 10:09: > > On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote: > > > >> \usemodule[abbreviations-logos] > >> \defineblock [H] [before=\startcolor[blue],after=\stopcolor] > >> \keepblocks[H] > > Thanks for this solution. > > > > Is there also something for inline-mode? Example: > > > > test \beginH TEST\endH test > > You can create different versions of your environment and let context choose > one whether the mode is enabled or disabled. > > %\enablemode[H] > > \startmode [H] > \definestartstop [H] [color=blue] > \stopmode > > \startnotmode [H] > \define\startH{\ignoreupto\stopH} > \stopnotmode > > \starttext > > xxx \startH yyy \stopH zzz > > \stoptext I do something similar: \definebuffer[H] \startmode[H] \definestartstop[H][color=blue] \stopmode Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
Peter Münster schrieb am 17.12.2023 um 10:09: On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote: \usemodule[abbreviations-logos] \defineblock [H] [before=\startcolor[blue],after=\stopcolor] \keepblocks[H] Thanks for this solution. Is there also something for inline-mode? Example: test \beginH TEST\endH test You can create different versions of your environment and let context choose one whether the mode is enabled or disabled. %\enablemode[H] \startmode [H] \definestartstop [H] [color=blue] \stopmode \startnotmode [H] \define\startH{\ignoreupto\stopH} \stopnotmode \starttext xxx \startH yyy \stopH zzz \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
On 12/16/2023 9:17 AM, Peter Münster wrote: Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut here---end--->8--- How could I create such start-stop pair please? doesn't work because \stopmode is a delimiter when shipped \usemodule[abbreviations-logos] \defineblock [H] [before=\startcolor[blue],after=\stopcolor] \keepblocks[H] \starttext test \beginH TEST \endH test \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] error with definestartstop and startmode
Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut here---end--->8--- How could I create such start-stop pair please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with the paragraph
> On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over changing style so use \bold{this is bold} or {\bf this is bold} but not \bf{this is bold}. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \par \startitemize[n] \item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)} \item ∃f ∈ F : ∀m ∈ M : h(m, f). \stopitemize % I changed the above to use \startitemize but have a look at \placeformula as well \startGrayBackground Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.” \blank Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [10, S.54]). \stopGrayBackground \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with the paragraph
Ursula Hermann schrieb am 13.12.2023 um 15:22: Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper This doesn't work to use Times New Roman as main font, you can use \setupbodyfont[termes] to get a times lookalike. \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} What is the purpose of all these starttext/stoptext blocks? \starttext \bf{Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor)}. \stoptext \starttext {\it \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aus-\par sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \stoptext \par \starttext 1. Use the itemize environment to create numbered blocks. 2. Learn the correct usage of inline math mode, i.e. \m{...} 1. \m\forall m ∈M : ∃f ∈F : h(m, f).\par 2. ∃f ∈F : ∀m ∈M : h(m, f).\par \stoptext \blank \starttext \startparagraph \blank \tf Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m ∃\forall∀oder ein \m \forall∀\m∃versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.”\blank Der Wert von y = f(x) ist unabhängig von der Wahl\par von x“ ist gleichbedeutend mit ∃y : ∀x : f(x) = y \par (Beutelspacher [10, S.54]). \blank \stopparagraph \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua
Am Mittwoch, 13. Dezember 2023, 21:57:35 CET schrieb Bruce Horrocks: > > > On 13 Dec 2023, at 17:13, Gerion Entrup wrote: > > > > Is there a simple way to define a new command/environment and handle > > the keyword arguments in Lua? For example defining a frontend command > > like this: > > I don't have the answer to your other questions but I do have an example for > this one. > It's not mine - I'm fairly sure it came from this list but I can't find who > that was any more. > > \startluacode > userdata = userdata or { } > > function userdata.mycommand(keywords, keyvals, str) > keyword_options = utilities.parsers.settings_to_array(keywords) > named_values = utilities.parsers.settings_to_hash(keyvals) > > context('First option = ' .. keyword_options[1]) > context('\\par') > context('Color chosen = ' .. named_values['color']) > context('\\par') > context('Curly braces = ' .. str) > context('\\par') > end > \stopluacode > > \def\mycommand[#1][#2]#3{\ctxlua{ > userdata.mycommand('#1', '#2', [==[#3]==])}} > > \starttext > \mycommand[top, inmargin, now][color=green, roof=gabled]{Anne of Green > Gables?} > \stoptext Thank you. That helps a lot already! Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Score sums and references
Cool. It works once \startlines ... \stoplines is removed. Thank you very much! Jairo El mié, 13 dic 2023 a la(s) 3:40 a.m., Hans Hagen (j.ha...@xs4all.nl) escribió: > On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: > > Hi, dear list. Is there a proper "ConTeXt way" to do the following? > > > > \integerdef\lmao=0 > > \starttext > > Sum: \in[trick] % 10 from the result below > > > > +1\advance\lmao\plusone > > > > +2\advance\lmao\plustwo > > > > +3\advance\lmao\plusthree > > > > +4\advance\lmao\plusfour > > > > \normalexpanded{\reference[trick]{\the\lmao}} % 10 printed above > > \stoptext > > > > I want the result of a sum (either via Lua or TeX) to be printed before > > summands in text, but without the mess of reference options such as > > interaction, etc. Thank you in advance and sorry for any inconvenience. > > \integerdef\DSlmao=0 > > \starttext > > Sum: \datasetvariable{test-1}{1}{whatever} > > \startlines > +1\advance\DSlmao\plusone > +2\advance\DSlmao\plustwo > +3\advance\DSlmao\plusthree > +4\advance\DSlmao\plusfour > \stoplines > > \normalexpanded{\setdataset[test-1][whatever=\the\DSlmao]} > > \stoptext > > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua
> On 13 Dec 2023, at 17:13, Gerion Entrup wrote: > > Is there a simple way to define a new command/environment and handle > the keyword arguments in Lua? For example defining a frontend command > like this: I don't have the answer to your other questions but I do have an example for this one. It's not mine - I'm fairly sure it came from this list but I can't find who that was any more. \startluacode userdata = userdata or { } function userdata.mycommand(keywords, keyvals, str) keyword_options = utilities.parsers.settings_to_array(keywords) named_values = utilities.parsers.settings_to_hash(keyvals) context('First option = ' .. keyword_options[1]) context('\\par') context('Color chosen = ' .. named_values['color']) context('\\par') context('Curly braces = ' .. str) context('\\par') end \stopluacode \def\mycommand[#1][#2]#3{\ctxlua{ userdata.mycommand('#1', '#2', [==[#3]==])}} \starttext \mycommand[top, inmargin, now][color=green, roof=gabled]{Anne of Green Gables?} \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] About framedtext
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \definecolor[ColorA][0.8(white)] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss, toffset=\zeropoint, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[9pt]}, align={right, broad}, frame=off, corner=00, radius=0.5em, width=10cm] \definedescription [Info] [before=, after=, text=Info, title=no, width=fit, distance=0.5em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=5cm] \startInfo \input{ward} \stopInfo \stopFramedText \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Problem with the paragraph
Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} \starttext \bf{Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor)}. \stoptext \starttext {\it \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aus-\par sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \stoptext \par \starttext 1. \m\forall m ∈ M : ∃f ∈ F : h(m, f).\par 2. ∃f ∈ F : ∀m ∈ M : h(m, f).\par \stoptext \blank \starttext \startparagraph \blank \tf Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m ∃\forall∀ oder ein \m \forall∀\m∃ versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.”\blank Der Wert von y = f(x) ist unabhängig von der Wahl\par von x“ ist gleichbedeutend mit ∃y : ∀x : f(x) = y \par (Beutelspacher [10, S.54]). \blank \stopparagraph \stoptext Many thanks Uschi u.pdf Description: u.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___