Re: [NTG-context] Status of Asymptote
On Mon, 6 Dec 2021, Alexandre Christe via ntg-context wrote: > Dear all, > > I'd like to know what is the status of Asymptote in Context. To my > knowledge, metapost/metafun only support 2D (except with the additional > libraries from Roegel, which would have to be cleaned up a bit). Depends on the kind of support you want. It is relatively easy to define an environment \startasymptote \stopasymptote such that the content of the environment is processed by asympotote and read back as an image (using the filter module). With some effort, it is also possible to pass variables from context to asymptote. The reverse communication is more complicated but not really needed for 3D drawing. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Primes too high in New Computer Modern
Hi, list. See the following: \starttext $\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$} \stoptext Thank you in advance. Best regards, Jairo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wikfication of \commalistsentence
Andres Conrado Montoya via ntg-context schrieb am 03.12.2021 um 17:25: I talked too soon. This won't work, and I have no idea why: \setuplabeltext [en] [and-1={{, }}, and-2={{ and }}] % Should be: 1, 2 and 3 \setuplabeltext [es] [and-1={{, }}, and-2={{ y }}] % Should be: 1, 2 y 3 \setuplabeltext [de] [and-1={{, }}, and-2={{ und }}] % Should be: 1, 2 und 3 \starttext \commalistsentence[one,two,three,four] % works as expected \language[es] \commalistsentence[uno,dos,tres,cuatro] % takes [en] settings \language[de] \commalistsentence[1,2,3,4] % takes [en] settings. \stoptext %% If I change \mainlanguage, the main language is used in all three cases. ConTeXt uses labels dependent on the current mainlanguage, using the simple \language command has no effect on the label. To change the labels for a single sentence you can put a group around the command and change the mainlanguage withing the group, i.e. \start \mainlanguage[es] \commalistsentence[...] \stop Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken
Ok, so if I understand this correctly, you recommend install directly from ctan. The question is, I’m not sure how, but is it the tds arcive? If I test it under mkiv do I need a separate install? The wiki seems to indicate that the mkiv version is included in the LMTX installation, if so it doesn’t work but I give it a second try. Your commitment is truly fantastic and I thank you once again. Jan-Erik > 6 dec. 2021 kl. 18:39 skrev Aditya Mahajan via ntg-context > : > > On Mon, 6 Dec 2021, Aditya Mahajan via ntg-context wrote: >> >> Something is still not working correctly though. With the simple example >> that Hans sent, I get error messages: >> >> tex error > tex error on line 76 in file m-circuitikz.mkxl: Package >> pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed >> 'american', and I am going to ignore it. Perhaps you misspelled it >> >> which are weird because tikz is looking at keys tikz/resistor rather than >> tikz/circuittikz/resistor. But I don't understand why this is the case. > > Here is a minimal example to show the error. > > \usemodule[m][tikz] > > \tikzinputfile{pgfcirc.defines.tex} > \tikzinputfile{pgfcircbipoles.tex} > > \starttext > \bgroup > \loggingall > \ctikzset{resistor=american} > \egroup > \stoptext > > which gives the error > > tex error > tex error on line 10 in file ./t2.tex: Package pgfkeys > Error: I do not know the key '/tikz/resistor', to which you passed > 'american', and I am going to ignore it. Perhaps you misspelled it > > The file pgfcirc.defines.tex has: > > \def\circuitikzbasekey{/tikz/circuitikz} > \pgfkeys{\circuitikzbasekey/.is family} > \def\circuitikzset{\expandafter\pgfqkeys\expandafter{\circuitikzbasekey}} > \let\ctikzset\circuitikzset > > > The file pgfcircbipoles.tex has the code: > > \newif\ifpgf@circuit@europeanresistor > \ctikzset{resistor/.is choice} > \ctikzset{resistor/american/.code = \pgf@circuit@europeanresistorfalse } > \ctikzset{resistor/european/.code = \pgf@circuit@europeanresistortrue } > \tikzset{american resistors/.style = {\circuitikzbasekey/resistor = american}} > \tikzset{european resistors/.style = {\circuitikzbasekey/resistor = > european}}% > > So, the key which is defined is \circuitikzbasekey/resistor. Not sure why > pgfkeys is searching for tikz/resistor. > > @Hans, does the above code work correctly for you? If so, then we can wait > until the next upload and test again. > > Aditya > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken
On 12/6/2021 6:39 PM, Aditya Mahajan via ntg-context wrote: On Mon, 6 Dec 2021, Aditya Mahajan via ntg-context wrote: Something is still not working correctly though. With the simple example that Hans sent, I get error messages: tex error > tex error on line 76 in file m-circuitikz.mkxl: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it which are weird because tikz is looking at keys tikz/resistor rather than tikz/circuittikz/resistor. But I don't understand why this is the case. Here is a minimal example to show the error. \usemodule[m][tikz] \tikzinputfile{pgfcirc.defines.tex} \tikzinputfile{pgfcircbipoles.tex} \starttext \bgroup \loggingall \ctikzset{resistor=american} \egroup \stoptext which gives the error tex error > tex error on line 10 in file ./t2.tex: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it different error here ... i need to load more files The file pgfcirc.defines.tex has: \def\circuitikzbasekey{/tikz/circuitikz} \pgfkeys{\circuitikzbasekey/.is family} \def\circuitikzset{\expandafter\pgfqkeys\expandafter{\circuitikzbasekey}} \let\ctikzset\circuitikzset The file pgfcircbipoles.tex has the code: \newif\ifpgf@circuit@europeanresistor \ctikzset{resistor/.is choice} \ctikzset{resistor/american/.code = \pgf@circuit@europeanresistorfalse } \ctikzset{resistor/european/.code = \pgf@circuit@europeanresistortrue } \tikzset{american resistors/.style = {\circuitikzbasekey/resistor = american}} \tikzset{european resistors/.style = {\circuitikzbasekey/resistor = european}}% So, the key which is defined is \circuitikzbasekey/resistor. Not sure why pgfkeys is searching for tikz/resistor. don't worry ... i'm even less sure ... one needs a bit different mindset for that kind of tex code (all can be fixed i guess but when it's not context specific it makes more sense to let the maintainer do it) ths only difference wrt tikz between mkiv and mkxl is that we have different defaults wrt par handling (afaik both have the same catcode settings here) and i don't think tikz uses anything low level context @Hans, does the above code work correctly for you? If so, then we can wait until the next upload and test again. with the attached: \usemodule[m][circuitikz] \starttext \starttikzsettings % to be sure \ctikzset{resistor=american} \stoptikzsettings \stoptext that works (tons of files loaded) here but nothing graphic (for those whio try: make sure that the t-* variants are gone) i see it loading other t-* files so maybe we should more that code to the m-* files too ... easier to maintain that way .. and if we have a few (not too slow) test files in the test suite it's easier to see when / why something fails if it doesn't at your end we need to define 'how to install the right (circuit)tikz stuff' and 'from where' (btw, does it all work ok in mkiv? after all, that hasn't changed for a while) Hans 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 -%D \module %D [ file=m-tikz, %Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D A fixed variant of the t-tikz module distributed with tikz. For %D practical reasons per 2021 we split the module for \MKIV\ and %D \LMTX. (Maybe some day I'll optimize TIKZ a bit.) \ifdefined\pdflastxpos \else \unprotect \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax} \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax} \protect \fi \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\texcatcodes \unprotect \catcode`\@=11 \catcode`\|=12 \catcode`\!=12 \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \protect \popcatcodetable \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \tikzinputfile{t-pgf.tex} \tikzinputfile{t-pgffor.tex} \tikzinputfile{tikz.code.tex} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to
Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken
On Mon, 6 Dec 2021, Aditya Mahajan via ntg-context wrote: > > Something is still not working correctly though. With the simple example that > Hans sent, I get error messages: > > tex error > tex error on line 76 in file m-circuitikz.mkxl: Package > pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed > 'american', and I am going to ignore it. Perhaps you misspelled it > > which are weird because tikz is looking at keys tikz/resistor rather than > tikz/circuittikz/resistor. But I don't understand why this is the case. Here is a minimal example to show the error. \usemodule[m][tikz] \tikzinputfile{pgfcirc.defines.tex} \tikzinputfile{pgfcircbipoles.tex} \starttext \bgroup \loggingall \ctikzset{resistor=american} \egroup \stoptext which gives the error tex error > tex error on line 10 in file ./t2.tex: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it The file pgfcirc.defines.tex has: \def\circuitikzbasekey{/tikz/circuitikz} \pgfkeys{\circuitikzbasekey/.is family} \def\circuitikzset{\expandafter\pgfqkeys\expandafter{\circuitikzbasekey}} \let\ctikzset\circuitikzset The file pgfcircbipoles.tex has the code: \newif\ifpgf@circuit@europeanresistor \ctikzset{resistor/.is choice} \ctikzset{resistor/american/.code = \pgf@circuit@europeanresistorfalse } \ctikzset{resistor/european/.code = \pgf@circuit@europeanresistortrue } \tikzset{american resistors/.style = {\circuitikzbasekey/resistor = american}} \tikzset{european resistors/.style = {\circuitikzbasekey/resistor = european}}% So, the key which is defined is \circuitikzbasekey/resistor. Not sure why pgfkeys is searching for tikz/resistor. @Hans, does the above code work correctly for you? If so, then we can wait until the next upload and test again. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Status of Asymptote
Dear Gavin, > Le 6 déc. 2021 à 10:11, Gavin via ntg-context a écrit : > > Hi Alex, > > I don’t know the status of Asymptote. I am using TikZ and pgfplots for 3D, > with satisfactory results (example below). However, it is slow, so use the > buffer mechanism to prevent redrawing with every run. > > TIkZ/pgfplots is the best short term solution for diagrams I need right now. > I am concerned that TikZ will eventually not work with ConTeXt, so for a long > term solution I am trying to make diagrams with Metapost, using Lua to do the > heavy computational work. This is not easy, but the diagrams are super fast, > and I think they will always work. I would be very interested to see an example of a Metafun drawing made with the help of LuaTeX to speed up some calculations. Thanks ! > Hope that helps. > Gavin Fabrice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Status of moderncv with ConTeXt ?
John, It wroks for me too, thanks a lot for providing these files ! Laurent Steffan GSM 06 29 19 83 36 mailto:lmstef...@gmail.com http://fr.linkedin.com/in/laurentsteffan Le dim. 5 déc. 2021 à 17:36, John Lord via ntg-context a écrit : > > kaddour kardio via ntg-context writes: > > > it worked flawlesly dear John. > > Thank you. > > PS: how can we do to enrich the environnement and use it as a > > full-featured replacement of > > the older module? > > > > Le sam. 4 déc. 2021 à 19:45, John Lord via ntg-context > > a écrit : > > > > Laurent Steffan via ntg-context writes: > > > > > Hello, > > > > > > In the deprecated document about "Correspondence" dated 2010, > > > the chapter on résumés describes a ConTeXt > > > reimplementation of the moderncv package. Is this still > > > usable, > > > and if so, where can I get the relevant files ? > > > > > > Thanks in advance > > > Laurent Steffan > > > > > > > Hi all > > > > I am a recent convert to ConTeXt and have been enjoying the > > ride. > > I > > was also not able to get it to work. So, I created a simplified > > version which compiles on the latest LMTX version of ConTeXt. I > > am > > including a copy here in case it is of interest to anyone else. > > The > > files included are resume-style, resume-template, and > > cover-context. > > > > This is my first post so hopefully the attachments come through > > OK. > > > > Regards > > > > John Lord > > I am glad this worked without issue. Unfortunately, I am not a > programmer so producing a general purpose module is beyond my > ability at this stage. This was more of a fun exercise to > replicate my LaTeX-produced moderncv resume into a ConTeXt > version. It also gave me the opportunity to learn the ConTeXt way. > > I would be more than happy if somebody else were to take this and > improve. > > Regards > > John Lord > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Status of Asymptote
Hi Alex, I don’t know the status of Asymptote. I am using TikZ and pgfplots for 3D, with satisfactory results (example below). However, it is slow, so use the buffer mechanism to prevent redrawing with every run. TIkZ/pgfplots is the best short term solution for diagrams I need right now. I am concerned that TikZ will eventually not work with ConTeXt, so for a long term solution I am trying to make diagrams with Metapost, using Lua to do the heavy computational work. This is not easy, but the diagrams are super fast, and I think they will always work. Hope that helps. Gavin chapter07-t-b-1970d2b3267b0f295617c8a8d3f078eb.pdf Description: Adobe PDF document > On Dec 6, 2021, at 1:43 AM, Alexandre Christe via ntg-context > wrote: > > Dear all, > > I'd like to know what is the status of Asymptote in Context. To my knowledge, > metapost/metafun only support 2D (except with the additional libraries from > Roegel, which would have to be cleaned up a bit). > > Otherwise, what shall be used for 3D drawings in Context? TikZ? Something > else? > > Thanks in advance. > > Alex > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] location=outer causes bad page break in LMTX
On Tue, 30 Nov 2021 14:13:52 +0100 Marco Patzer via ntg-context wrote: > In the following example “Lorem ipsum” sits on an otherwise empty > page in LMTX. Output is as expected with MkIV. Has the interface > changed or may it be a bug in LMTX? Any ideas? Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] [DKIM] Re: upload
On 12/6/2021 5:41 AM, Jairo A. del Rio via ntg-context wrote: Hi, Hans. I've got a question. Negative steps are treated as positive: \starttext \expandedloop 10 0 -2 {\the\currentloopiterator\ } \stoptext gives 0 2 4 6 8 10 Is this expected behavior? If so, it would be fine to have something more alike to MetaPost's "for ... step ... until" loop. Thank you in advance. already fixed here but no upload for a few days 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken
On Sat, 4 Dec 2021, Jan-Erik Hägglöf via ntg-context wrote: > I did replace the attached .mkxl files now in the correct directory tree > together with the rest of all m-xyz.mkxl module files. > > The same error message appears and i’m back at square one. After a bit of digging, I think that you are not using the latest version of tikz. In particular, in your log messages, there are a bunch of messages like system > module wrapping error in 'tikz' while these errors have been fixed in the latest release on ctan. Something is still not working correctly though. With the simple example that Hans sent, I get error messages: tex error > tex error on line 76 in file m-circuitikz.mkxl: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it which are weird because tikz is looking at keys tikz/resistor rather than tikz/circuittikz/resistor. But I don't understand why this is the case. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Status of Asymptote
Dear all, I'd like to know what is the status of Asymptote in Context. To my knowledge, metapost/metafun only support 2D (except with the additional libraries from Roegel, which would have to be cleaned up a bit). Otherwise, what shall be used for 3D drawings in Context? TikZ? Something else? Thanks in advance. Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___