[NTG-context] How to use fonts without typescripts?
Hi, Defining typescripts to use a font is very painful. How can I use a font without using a typescript? -- 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] Best way to input UTF-8
Hi all, What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 characters then do not come out in text with Modern font. -- 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: Problem with wiki example
Never mind it was my idiocy. On Sun, Feb 18, 2024 at 3:29 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > I found following on Wiki to produce PDF out of standalone type( > https://wiki.contextgarden.net/Sharing_graphics): > > \starttext > \startMPpage > draw fullcircle scaled 10cm ; > \stopMPPage > \stoptext > > It generates a PDF but when I open it with Evince, Evince complains that > no page was found > and does not show anything. Any help would be much appreciated. > > -- > 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] Problem with wiki example
I found following on Wiki to produce PDF out of standalone type( https://wiki.contextgarden.net/Sharing_graphics): \starttext \startMPpage draw fullcircle scaled 10cm ; \stopMPPage \stoptext It generates a PDF but when I open it with Evince, Evince complains that no page was found and does not show anything. Any help would be much appreciated. -- 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: Memory consumption in new upload
I assume you would have created typescripts for those fonts. Can you please add them to ConTeXt distribution, at least for the popular fonts? On Sun, Feb 18, 2024 at 3:12 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > The only change I made was that I started using a 9pt modern font than a > 10 pt modern font. > > My document decreased from 580+ pages to 500 pages after that. > > About your document, I assume you had a lot of Graphics because text only > 180MB is too high. > I have only few diagrams and my file size is only 3MB. > > On Sun, Feb 18, 2024 at 2:13 AM Hans Hagen wrote: > >> On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: >> > Thanks for new upload. I see that memory consumption is much less than >> > previous version. So >> > once again, thanks a lot. >> > >> > I am curious about what has changed in recent upload, that memory >> > consumption is about 60% of earlier versions. >> it's hard to tell what exact consumpiton is becaue for instance when lua >> creates tables, they grow by factors two when then have to (maybe 5.5 is >> a bit less consuming) >> >> on the one hand luametatex is more efficient than luatex due to all kind >> of ímprovements' but some nodes are larger so that takes more memory, >> which is only noticed when one has lots of text on a page (or keeps >> boxes stuff around) >> >> anyway, not that much changed since the previous upload, so maybe you >> just stay below a threshold >> >> I recently generated a 180MB document with 2500 fonts + metapost >> outlines of them and that could bump mem usage (with empty cache) to 30 >> GB (less after fonts were cached) but normally we stay around 125 MB for >> a document. Anyway, tex mem consumption can often be neglected compared >> to other applications. >> >> 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 >> >> ___ >> > > > -- > 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] Re: Memory consumption in new upload
The only change I made was that I started using a 9pt modern font than a 10 pt modern font. My document decreased from 580+ pages to 500 pages after that. About your document, I assume you had a lot of Graphics because text only 180MB is too high. I have only few diagrams and my file size is only 3MB. On Sun, Feb 18, 2024 at 2:13 AM Hans Hagen wrote: > On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: > > Thanks for new upload. I see that memory consumption is much less than > > previous version. So > > once again, thanks a lot. > > > > I am curious about what has changed in recent upload, that memory > > consumption is about 60% of earlier versions. > it's hard to tell what exact consumpiton is becaue for instance when lua > creates tables, they grow by factors two when then have to (maybe 5.5 is > a bit less consuming) > > on the one hand luametatex is more efficient than luatex due to all kind > of ímprovements' but some nodes are larger so that takes more memory, > which is only noticed when one has lots of text on a page (or keeps > boxes stuff around) > > anyway, not that much changed since the previous upload, so maybe you > just stay below a threshold > > I recently generated a 180MB document with 2500 fonts + metapost > outlines of them and that could bump mem usage (with empty cache) to 30 > GB (less after fonts were cached) but normally we stay around 125 MB for > a document. Anyway, tex mem consumption can often be neglected compared > to other applications. > > 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 > > ___ > -- 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] Memory consumption in new upload
Thanks for new upload. I see that memory consumption is much less than previous version. So once again, thanks a lot. I am curious about what has changed in recent upload, that memory consumption is about 60% of earlier versions. -- 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: An announcement of my new book.
Please write one. More documentation is needed. On Wed, Feb 14, 2024 at 3:55 AM Sir Coleman via ntg-context < ntg-context@ntg.nl> wrote: > I'm glad to know there's a demand for this book. > > Hopefully soon I'll upload a draft of it to GitLab, so if there's anything > that you learned that you would like to contribute to this book, you would > be able to do so. I personally would be very happy if someone would give me > examples of things a user would like to do, because my own use cases can > only go that far. > > I'll make sure to make finding information in this book as direct as > possible. If you find that some information in this book isn't clear or > easy to learn from (or locate in the first place), then I'll expect a > complaint about it. > > I'll post here a link to the GitLab repository when part of the book has > been written and ready for feedback. Should take some time, but not too > long. > > ___ > 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: Caching Metafun images and VIM Syntax highlighted code
Dear Hans, Aditya, Thanks for clarifying. In any case, I will process chapter-by-chapter, so runtime should be manageable. On Wed, Jan 24, 2024 at 10:32 PM Hans Hagen wrote: > On 1/24/2024 5:50 PM, Aditya Mahajan wrote: > > On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: > > > >> Perhaps Aditya Mahajan can tell me how can I cache code snippets. > Invoking > >> VIM will have heavy penalty on highlighting the code otherwise. > > > > Have you tried the vim module: > > > > https://github.com/adityam/filter/blob/dev/vim-README.md > > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for caching metafun images in MkII, but I don't > know if that is really needed in LMTX. In most cases, metapost processing > does not have a significant processing delay. > if images are the same one can use the reuseMPgraphic or uniqueMPgraphic > features .. plenty of examples can be found, but as Aditya poined out mp > is quite fast (but reuse saves on file size) > > 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 > > ___ > -- 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: Using plain TeX commands in ConTeXt
Yes. On Wed, Jan 24, 2024 at 10:08 PM luigi scarso wrote: > > > On Wed, 24 Jan 2024 at 16:55, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > >> Thanks for correcting me, Wolfgang. I meant only TeX commands not plan >> TeX macros. >> >> > TeX primitives ? > > -- > 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] Caching Metafun images and VIM Syntax highlighted code
I am writing two books. One is on Rust programming and another is on geometry, so I have syntax highlighted code and in second has lost of diagrams. Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have heavy penalty on highlighting the code otherwise. Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file. -- 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: Using plain TeX commands in ConTeXt
Thanks for correcting me, Wolfgang. I meant only TeX commands not plan TeX macros. On Wed, Jan 24, 2024 at 9:20 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Shiv Shankar Dayal schrieb am 24.01.2024 um 16:37: > > For example: \kern, \parindent and so on. Rephrasing the question, can > > LuaMetaTeX/ConTeXt compile > > plain TeX files. If yes, how can I do that? > > You mix up two different things here. > > 1. Plain TeX is a collection of TeX macros like ConTeXt or LaTeX. > > 2. LuaMetaTeX is a program like pdfTeX or LuaTeX which provides commands > which are used by above mentioned collections to create macros. > > Even though ConTeXt provides some commands which available in plain TeX > not all of the are supported which means you can't process plain TeX > documents. > > On the other hand commands which are provided by the engine like > \parindent can be used in a ConTeXt document but higher level mechanism > like \setupindenting are the better choice. > > Wolfgang > > -- 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: Using plain TeX commands in ConTeXt
For example: \kern, \parindent and so on. Rephrasing the question, can LuaMetaTeX/ConTeXt compile plain TeX files. If yes, how can I do that? On Wed, Jan 24, 2024 at 9:02 PM Hans Hagen wrote: > On 1/24/2024 2:55 PM, Shiv Shankar Dayal wrote: > > Dear List, > > > > Can we use plain TeX commands which are available in LuaMetaTeX in an > > arbitrary manner or are there any restrictions? > what do you mean with arbitrary plain tex commands > > - >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 > > ___________ > -- 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] Using plain TeX commands in ConTeXt
Dear List, Can we use plain TeX commands which are available in LuaMetaTeX in an arbitrary manner or are there any restrictions? -- 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.
On Wed, Jan 24, 2024 at 2:47 PM Ursula Hermann wrote: > Yes, > > I always go to: > > > > pragma-ade.nl/install.htm > > > > I have Windows 10. > Dear Ursula, I just downloaded and compiled the same file on Windows 11 64-bit and it works. I got the PDF output. I am not sure why it is not working for you. -- 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.
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.
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: LuaMetaTeX code
Dear Taco, I will send new messages to dev mailing lists. Let me join it first. On Fri, Jan 19, 2024 at 2:11 PM Taco Hoekwater wrote: > > Hi Shiv, > > Can you move this discussion to the dev-context list, please? > https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/ > > Best wishes, > Taco > > > > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > > > I see code like > > > > # define luametatex_version 210 > > # define luametatex_revision 10 > > # define luametatex_release 10 > > # define luametatex_version_string "2.10.10" > > > > starting with C99 these become unnecessary. Rather they should be like > const int luametatex_version=210; const char* > luametatex_version_string="2.10.10"; > > > > These ensure type-safety in the code and are good coding practice. > > > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Dear Hans, > > > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good coding practice. These potions of code which have goto should be > refactored. > > > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help with refactoring of code to make is more > efficient/easier. > > > > -- > > 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 > > > ___ > > — > 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 > > ___ > -- 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: LuaMetaTeX code
I see code like # define luametatex_version 210 # define luametatex_revision 10 # define luametatex_release 10 # define luametatex_version_string "2.10.10" starting with C99 these become unnecessary. Rather they should be like const int luametatex_version=210; const char* luametatex_version_string="2.10.10"; These ensure type-safety in the code and are good coding practice. On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good > coding practice. These potions of code which have goto should be refactored. > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help with refactoring of code to make is more > efficient/easier. > > -- > 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] LuaMetaTeX code
Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX for the Impatient), I can help with refactoring of code to make is more efficient/easier. -- 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?
In comparison to LaTeX with LuaHBTeX, ConTeXt with LuaMetaTeX is > lightning fast. > > pdfTeX is 8bit, and Knuth’s plain TeX is very low level – for a fairer > comparison, try the TeXbook on LuaMetaTeX (I don’t know if “plain” works > though). > I understand that why it is slow, but the problem is that the difference is too high. My book has lots of math, so perhaps that is the reason. -- 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] Why LuaMetaTex is so slow?
I can process TeXBook in almost an instant using PDFTeX which is about 450+ pages but my math book takes around 30 seconds averaging ~40 pages/second. Why LuaMetaTeX is so slow? How can I speed it up? -- 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: After Compiling the Context test, there was no PDF.
Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann 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 > > > ! Missing \endcsname inserted. > > > > > I wanted also do a new installation of ConTeXt LMTX, but if I want to do > it, the is a report, that the page cannot be found. > > > > 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 > > ___ > -- 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: Linebreak in formual
Thanks a lot, Aditya. On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan wrote: > On Mon, 15 Jan 2024, Mikael Sundqvist wrote: > > > Hi, > > > > you can try something like > > > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > > > but it will not be too pretty with such a large sub-index to the sum. > > There is also > > \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack} > > which imitates the \substack command from latex. > > OT but it is better to use one of \mod, \pmod, \bmod, rather than explicit > \mtext{mod }. > > 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 > > ___ > -- 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: Linebreak in formual
It works nicely. You are a lifesaver. Thanks a lot. On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to the sum. > > /Mikael > > On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal > wrote: > > > > I have following formula > > \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not > break the line below Sigma. How can I achieve this because AFAIK it will > work in LaTeX? > > > > -- > > 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 > > ___ > -- 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] Linebreak in formual
I have following formula \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break the line below Sigma. How can I achieve this because AFAIK it will work in LaTeX? -- 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: Spacing problem in formula
Thanks a lot Mikael. On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist wrote: > Hi, > > ConTeXt supports prescripts: > > \startTEXpage[offset=1DK] > > \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } > > \m{1 - C_2^^n \tan^2\theta + C_4^^n } > > \stopTEXpage > > If you want them below, use double _. > > /Mikael > > On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal > wrote: > > > > Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta + {}^nC_4 > then it appears as if n is power of - and +. The same formula in LaTeX > comes out nicely. Is there something I need to change? > > > > -- > > 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 > > ___ > -- 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] Spacing problem in formula
Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta + {}^nC_4 then it appears as if n is power of - and +. The same formula in LaTeX comes out nicely. Is there something I need to change? -- 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: Do we have a geometry library for Metafun?
Can we please add https://github.com/jemmybutton/byrne-euclid/blob/master/byrne.mp to Wiki because files have a tendency to disappear? Similarly, can we please add https://github.com/thruston/Drawing-with-Metapost/blob/main/Drawing-with-Metapost.pdf file to Wiki? -- 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: Do we have a geometry library for Metafun?
The fiziko library by the same author is also very interesting: > https://github.com/jemmybutton/fiziko > Since it has some pseudo-3D features, maybe you can learn from it. > Thanks for all this info. I will look into this and perhaps come up with a Metapost file, and then we can possibly add that in Wiki. I do not know Lua, and I am too old to learn another programming language. These days, I program only in Rust/Javascript. -- 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: Do we have a geometry library for Metafun?
> No library that I know of, but drawing tangents (and therefore, > perpendiculars) is straight-forward: > >https://tex.stackexchange.com/a/108060/323 > > Circumcircle, orthocenter, etc... are you thinking of triangles or general > polynomails? > Triangles. I understand that most of it is very easy, but still a library will help new users. Tikz has Tikz-Euclide and Asymptote has a Geometry package. A similar library for Metafun will be very useful. -- 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: Do we have a geometry library for Metafun?
Dear Gavin, I have managed to create an implementation for these operations which I think I can convert into functions and put in startMPinclusions and then use them from. there. On Fri, Jan 12, 2024 at 9:42 PM Gavin via ntg-context wrote: > Hi Shiv, > > > Do we have a geometry library for common operations like finding > tangents, perpendiculars, circumcircle, orthocenters and such? > > I don’t think we have anything like that specifically in the MetaFun > world, but if there is a MetaPost package you like, you can use it with > MetaFun. For example, the TeX Live installation includes both ConTeXt and > 3dgeom.mp, so you should be able to use the 3dgeom package in MetaFun > simply with "input 3dgeom" in your MetaPost code. (I did a quick check, > successfully drawing a drawing a cube with 3dgeom. I have not tested it > beyond than that.) > > If there isn’t a MetaPost package for what you want, Lua may be useful for > doing the calculations. > > 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] Do we have a geometry library for Metafun?
Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such? -- 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: 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] Metapost docs
I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. -- 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: Status of Asymptote
Hi all, 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. Respect, Shiv ___ 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: Equivalent for hdots and hdotsfor
Never mind, I found the solution on list that we can use \dotfill and \multispan{n}{\dotfill} as a substitute for what I have asked for. On Sat, Dec 30, 2023 at 2:11 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > In LaTeX, I can use \hdots for horizontal dots and \hdotsfor{n} to fill > for several columns in a determinant. But these do not work in ConTeXt. > What is the equivalent for these in ConTeXt? > > -- > 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] Equivalent for hdots and hdotsfor
In LaTeX, I can use \hdots for horizontal dots and \hdotsfor{n} to fill for several columns in a determinant. But these do not work in ConTeXt. What is the equivalent for these in ConTeXt? -- 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
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] 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
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
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)$);} } 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. On Wed, Dec 27, 2023 at 5:44 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Shiv Shankar Dayal schrieb am 27.12.2023 um 13:01: > > Hi, > > > > How can I typeset old style factorial symbol and theorems in ConTeXt. > > I found https://www.ntg.nl/maps/36/09.pdf but it does not work. What > > adaptation should I do for it to work? > > Can you be more precise what you have tried and doesn't work, a complete > minimal example would be perfect. > > Wolfgang > > -- 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] old style factorial symbol and theorems
Hi, How can I typeset old style factorial symbol and theorems in ConTeXt. I found https://www.ntg.nl/maps/36/09.pdf but it does not work. What adaptation should I do for it to work? -- 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] Need help
Hi, Mu current chapter setup is as below: \def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=3cm,align=left]{#1}}% \tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}% \egroup} \setuphead [chapter] [color=green1, textstyle=, align=normal, continue=no, page=right, style=\tfc, before={\blank[2*big]}, after={\blank[2*big]}, command=\HeadTitle] I want a local TOC after each chapter title. If I manually put \placelist[section][criterium=chapter] immediately after \chapter command then it does not work. Please help. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] context vs texinfo
Hi, I was using context and I had to wait for 16 seconds for one run approximately. I switched to texinfo and it barely takes 2 seconds. Can you please explain the diffrence? I know context is complex but still? -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] underscore in index entry
Hi, I tried to put _ in index entry and am unable to do it. I tried following 1. \index{_shiv} 2. \index{\type{_shiv}} 3. \index{\textunderscore{} shiv} Please help. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Lua and metapost
Hi all, Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it is possible to write Lua code which can generate Metapost code for graphics. MetaLua can also help here. However, I do not know how to develop a Lua library which can be integrated with ConTeXt but then again I have not looked in this matter. As you people may be knowing Prof. John Hobby has written a Haskell frontend for Metapost which generates Metapost code. Having a Lua version of same will help a lot. My only concern is using MetaLua with ConTeXt. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lua and metapost
Hi, Please discard previous mail as I did not know about MPlib. On Fri, May 21, 2010 at 12:48 AM, Shiv Shankar Dayal shivshankar.da...@gmail.com wrote: Hi all, Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it is possible to write Lua code which can generate Metapost code for graphics. MetaLua can also help here. However, I do not know how to develop a Lua library which can be integrated with ConTeXt but then again I have not looked in this matter. As you people may be knowing Prof. John Hobby has written a Haskell frontend for Metapost which generates Metapost code. Having a Lua version of same will help a lot. My only concern is using MetaLua with ConTeXt. -- Best regards, Shiv Shankar Dayal -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] POV-Ray
Hi, I have needs of graphics which is very heavy and I am using metapost, metaobj and metauml. However, as you may know the problems which I have reported I think that it would be better if I use POV-Ray for images. Sure the file size is going to be blown up by a margin but I think metapost can not beat POV-Ray in terms of power. Please advice. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] installing metauml in context
Hi all, Thanks a lot for this help. I tried again with modifications and it is working with wrong alignment. I am tried using simplefonts like \usemodule[simplefonts,vim,mathml] \setmainfont[LucidaStd] \setmonofont[CourierNew] If I add the above code then it overrides Hanss' suggestion but still the alignment is wrong. I am going to try more fonts to get the alignment right. \startMPinclusions string metauml_defaultFont ; metauml_defaultFont := \truefontname{Serif} ; string metauml_defaultFontOblique ; metauml_defaultFontOblique := \truefontname{SerifItalic} ; string metauml_defaultFontBold ; metauml_defaultFontBold := \truefontname{SerifBold} ; string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldOblique := \truefontname{SerifBoldItalic} ; input metauml; \stopMPinclusions At least prevents the error but alignment is weird. Some pseudo typesetting is going on and the quality is suboptimal then (after all mp just pastes glyphs then). Take this: Class.A (Point) (+x: int, +y: int) (); It's probably no big deal for the author to support pictures instead of strings Class.A (Point) (btex +x: int etex, +y: int) (); Class.A (Point) (textext(+x: int), +y: int) (); It's probabaly already possible somehow but i have no time to look into the code in detail now. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] metaobj problem
Hi, I was trying to run following code from its manual i.e. metaobj's manual. newCircle.a(btex A etex); newCircle.b(btex B etex); newCircle.c(btex C etex); newCircle.d(btex D etex); newCircle.e(btex E etex); verbatimtex \small etex; newMatrix.mat(3,3)(nb,a,nb,b,e,c,nb,d,nb) hsep(2cm), vsep(2cm); mcline.mat(2,2,2,3) name(a); ObjLabel.mat(btex a etex) labpathname(a),labpos(0.75), labdir(top); mcline.mat(2,2,2,1) name(b); ObjLabel.mat(btex b etex) labpathname(b),labdir(bot); mcline.mat(3,2,2,1) name(c); ObjLabel.mat(btex c etex) labpathname(c),labdir(llft); mcarc.mat(3,2,1,2) arcangleA(-40),arcangleB(-40), border(3pt), name(d); ObjLabel.mat(btex d etex) labpathname(d),labdir(lrt), labpos(0.3); ObjLabel.mat(btex e etex) labpathname(d),labdir(llft), labpos(0.7); mcarc.mat(1,2,2,1) arcangleA(12),arcangleB(12), name(f); ObjLabel.mat(btex f etex) labpathname(f),labdir(lrt); mcarc.mat(2,1,1,2) arcangleA(12),arcangleB(12), name(g); ObjLabel.mat(btex g etex) labpathname(g),labdir(ulft); mat.c=origin; drawObj(mat); The problem is that the computer kind of stops processing. I mean it is taking too long. My pool_size is 100MB. I have increased it. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] installing metauml in context
Hi, I am running ConTeXt mark IV. I need to use metauml for my work. However, I could not get it installed. Please help. The install file which comes with it does not work for context. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] installing metauml in context
Hi, I am running ConTeXt mark IV. I need to use metauml for my work. However, I could not get it installed. Please help. The install file which comes with it does not work for context. more info needed .. test file and so Hans Sorry about this. Following is from a file for which I took the code from mailing list itself. \chapter{Diameter Finite State Machine} The state machine of the diameter base protocol implementation will observer following state machine. \startMPinclusions input metauml; \stopMPinclusions \startuseMPgraphic{xx} save A; save B; Class.A(Point) (+x: int, +y: int) (); Class.B(Circle) (radius: int) (+getRadius(): int, +setRadius(r: int):void); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); \stopuseMPgraphic \placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}} This is included in starttext block. For verbosity I am also giving you some errors. Isolated expression. to be read again ( * save A; save B; Class.A( Point) (+x: int, +y: int) (); Class.B(Ci... ! Extra tokens will be flushed. to be read again ( * save A; save B; Class.A( Point) (+x: int, +y: int) (); Class.B(Ci... Class.B ! Isolated expression. Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] installing metauml in context
Hi, I am running ConTeXt mark IV. I need to use metauml for my work. However, I could not get it installed. Please help. The install file which comes with it does not work for context. more info needed .. test file and so Hans Sorry about this. Following is from a file for which I took the code from mailing list itself. Sorry to bother you people. It is a pain to waste time like this. Since metaobj works with context I will extend and use it to draw UML diagrams. I just thought that since it is mentioned as a package at contextgarden I was hoping that it will work out of the box. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] compiling cont-eni
Hi, I have sources of context cont-eni.pdf. When I try to compile them I get lots of errors. I am using Mark IV. However, I am successfully able to compile Metafun manual using texexec. Any clues? -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] compiling cont-eni
I got another interesting point. Adobe Reader reports that the application which generated original cont-eni.pdf is TeX. But for my compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is different? what about $ pdfinfo cont-eni.pdf ? For the original file it says ConTeXt/www.pragma-ade.com/cont-en.tex as creator. I wonder how is that possible. :) Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] compiling cont-eni
Hi, Thanks for being so patient and helping me. But we should not get diverted from the original problem. What do you think is the reason for that error? Also, I am getting tex size exceeded[parameter stack size=6000] with MarkIV. In mailing list there is a thread which mentions about tex.ch but I cant find it. I have installed using rsync. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] compiling cont-eni
I do not remember exactly when I got the source but I remember it was through some link of wiki.contextgarden.net. If you recall Aditya we had a discussion regarding vim syntax highlighting. It is of that time. Also, I have a fresh setup of context and I found that you t-vim.tex has a line source kpse:2context.vim which I had to modify to source kpsewhich:2context.vim. Hi, I have sources of context cont-eni.pdf. When I try to compile them I get lots of errors. I am using Mark IV. However, I am successfully able to compile Metafun manual using texexec. Any clues? cont-eni was written in 2001. It will not compile with MKIV. There has been many changes in the internals since 2001, so it is not surprising that it does not compile even with MKII. Usually, such errors can be corrected with a few changes. Where did you get the source files that you are testing on? Aditya ___ Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Finally some success. I get product-name-vimsyntax.tmp when I run context. It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. I kill the compilation and run the command for vim manually which generates product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I get pretty printing. I am somewhat happy but I do not know why this is happening. Do you have write18 enabled? see http://wiki.contextgarden.net/write18 Aditya Yes. write18 is enabled. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, Finally some success. I get product-name-vimsyntax.tmp when I run context. It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. I kill the compilation and run the command for vim manually which generates product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I get pretty printing. I am somewhat happy but I do not know why this is happening. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I am running MarkIV and luatools t-vim.tex shows me the path of t-vim.tex. The version does say version=2008.07.15. I tried to execute the same command which t-vim.tex executes for vim but it says that command line is not correct. I switched on the logging and then I read the log and it says tabstop=8 is a new file. I doubt that something may be wrong with the command line for vim. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I updated context and grepped mtxrun for noquotes and the output is same as yours. I have a query. Line 270 of t-vim says \runvimsyntax{#2} Line275: \input #2-vimsyntax.tmp\relax where #2 is product_name-vimsyntax.tmp. This means that if the product name is xyz then \runvimsyntax{#2} which is basically a run of vim over #2 and it generates the #2-vimsyntax.tmp. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] syntax highlighting problem with vim module
Hi, If I have a product name xyz and I have following things set up. \usemodule[vim] \setuptyping[option=color] \definevimtyping [C] [syntax=c] then I have following .. \startC #include iostream using namespace std; \stopC . I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp temmfstart bin:vim starts vim. vim is in the path. I am using Windows Vista with Texlive 2008. I would also like to know the syntax for C++. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I tried on both windows as well as on linux but I fail with the new module as well. The error being the same. I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'. One thing I noticed that there is t-vim.tpm file. Where to put it? I have installed texlive 2008 in C\texlive on Windows and /usr/local/texlive/ on Linux. -- Best regards, 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___