Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Aditya Mahajan
On Fri, 25 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 24.09.2020 um 23:48: > > On Thu, 24 Sep 2020, Alan Bowen wrote: > > > Any suggestions or pointers will be most welcome. > > > > See if this gives you any ideas > > > > h

Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Aditya Mahajan
On Thu, 24 Sep 2020, Alan Bowen wrote: > I need to include several documents in a single paginated file. Treating > the source file (.tex) of each document as a component file in a .prd file > is one way to go. But I was wondering if it might be possible to do get the > same result using the .pdf

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
On Tue, 22 Sep 2020, Peter Münster wrote: > On Tue, Sep 22 2020, Aditya Mahajan wrote: > > > The same effect is rather easy to achieve when using natural tables as > > well. > > But it fails, when there is only one data-row... :( Then don't create tables with only on

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
On Tue, 22 Sep 2020, Denis Maier wrote: > Also, how do you easiest define booktabs style tables? I mean: can you > define tables such that the last row end with thicker lines without > having to make this explicit? Is there a mechanism for this? You can get this behavior using any of table

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 21.09.2020 um 16:35: > > On Mon, 21 Sep 2020, Jeong Dal wrote: > > > > > Hi, > > > > > > I tried to make a table using \dorecurse or \doloop as in the example. > > > T

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Jeong Dal wrote: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the first > example and only two rows are created with the \recurselevel 0 and 2 only in > the second

Re: [NTG-context] Bad argument #1 to 'prehypenchar'

2020-09-15 Thread Aditya Mahajan
On Tue, 15 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 15.09.2020 um 21:19: > > On Tue, 15 Sep 2020, Wolfgang Schuster wrote: > > > > > You have to add \resetbreakpoints to the vim/filter module. > > > > Thanks. I had: >

Re: [NTG-context] Bad argument #1 to 'prehypenchar'

2020-09-15 Thread Aditya Mahajan
On Tue, 15 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 15.09.2020 um 05:30: > > The following MWE gives an error with LMTX 2020.09.05 > > > > > > \usemodule[vim] > > \definevimtyping[MATLABCODE][syntax=matlab] > > > > \sta

[NTG-context] Bad argument #1 to 'prehypenchar'

2020-09-14 Thread Aditya Mahajan
The following MWE gives an error with LMTX 2020.09.05 \usemodule[vim] \definevimtyping[MATLABCODE][syntax=matlab] \starttext \startMATLABCODE saveas(gcf(), "output/same-sigma.png") \stopMATLABCODE \stoptext The error message is: callback error:

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
On Thu, 10 Sep 2020, Wolfgang Schuster wrote: > >>> Any idea on what is going on and how to debug. > >> I can't reproduce your Libertinus problem but the sans serif and monospaced > >> fonts just use the wrong names. > > In by defense, it used to work for the last 5 years :-) > > Are you mixing

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
On Thu, 10 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 10.09.2020 um 05:16: > > Did something change with regard to \definefontfamily recently. > > > > I have an old document where I use: > > > > \starttypescript[mainface] > >\de

[NTG-context] \definefontfamily not finding fonts

2020-09-09 Thread Aditya Mahajan
Did something change with regard to \definefontfamily recently. I have an old document where I use: \starttypescript[mainface] \definefontfamily[mainface][rm][Libertinus Serif][features=default] \definefontfamily[mainface][ss] [heros] [features=default] \definefontfamily[mainface][tt]

Re: [NTG-context] defining font family for several options

2020-09-03 Thread Aditya Mahajan
On Fri, 4 Sep 2020, jbf wrote: > Thanks Otared. That clears up that little item :-) > > BTW I know how to reduce font size in the headers (chapter titles) that > appear on the recto pages, which I can do with something like > \setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't

Re: [NTG-context] defining font family for several options

2020-09-01 Thread Aditya Mahajan
On Tue, 1 Sep 2020, jbf wrote: > Perhaps someone can assist me with the following query. I have a > situation where I need to use more than one sans serif fonts (especially > within complicated chapter heads). I currently have the following: > > \definefontfamily [mainface] [rm] [alegreya] >

Re: [NTG-context] Tagged PDFs from Context

2020-08-28 Thread Aditya Mahajan
On Thu, 27 Aug 2020, Karl Pettersson wrote: > See this discussion. > https://github.com/jgm/pandoc/issues/5409#issuecomment-678781349 > > Would it be possible to generate PDFs with headings tagged like H1, H2, > H3, H4..., instead of using the H tag for all levels, which seems to be > required

Re: [NTG-context] odd behaviour with \definefontfamily

2020-08-25 Thread Aditya Mahajan
On Wed, 26 Aug 2020, jbf wrote: > I intend to use it! So, yes, I had not used it at this point, and your > explanation now makes sense. > > In the test example I have, I have now placed a line:  \ss My text, and I see > that it now loads the sans serif font. But can you explain why it loads the

Re: [NTG-context] odd behaviour with \definefontfamily

2020-08-25 Thread Aditya Mahajan
On Wed, 26 Aug 2020, jbf wrote: > Can someone tell me why, when I define my typefaces as follows below, I get: > > mkiv lua stats  > loaded fonts: 2 files: baskervaldadfstd.otf, > texgyrepagella-math.otf > > when in fact my font definitions are: > > \definefontfamily [mainface] [rm]

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Aditya Mahajan
On Mon, 24 Aug 2020, Taco Hoekwater wrote: > > > > On 24 Aug 2020, at 19:59, Wolfgang Schuster > > wrote: > >> \setcounter[figure][5] % next figure is no.6 > > For this subfigure stuff, perhaps this is useful? > > [...] > > I could not find a safe way to increment the subfigure number

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread Aditya Mahajan
On Mon, 17 Aug 2020, jbf wrote: > Am completely new to using Metafun, which I presume I would need to use > to achieve a Hansen Memoir-style Chapter heading (chapter title > overlayed on a large lightgray number). Of course, I am assuming I would > need to use Metafun to create this... > > So

Re: [NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2020, Jairo A. del Rio wrote: > Hi, list! I have two questions concerning MetaFun: > > 1st: > > What is the correct way to pass a ConTeXt named color (e.g. xwi's "maroon") > to MetaFun. Using (with \usecolors[xwi] loaded in the preamble): > > withcolor maroon > > does not work.

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 13.08.2020 um 04:53: > > On Thu, 13 Aug 2020, jbf wrote: > > > > > Where running heads (headers) are concerned, if I use \chapter I have no > > > problems, nor should I expect any. B

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
On Thu, 13 Aug 2020, jbf wrote: > Almost as perfect as Shakespeare's Juliet! Is there any reason why the header > for the Introduction, done using your approach (it is in frontmatter), does > not produce the header on the last recto page? This intro consists of 8 pages. > Page 7 does not produce

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
On Thu, 13 Aug 2020, jbf wrote: > Where running heads (headers) are concerned, if I use \chapter I have no > problems, nor should I expect any. But because I am also using \title, > given that I need some unnumbered chapters interspersed  among them, I > run into difficulties with headers.

Re: [NTG-context] \title with extra content in toc

2020-08-11 Thread Aditya Mahajan
On Wed, 12 Aug 2020, jbf wrote: Still dealing with \title, but am creating a separate thread because the question is different. As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using it in

Re: [NTG-context] How to set pdfminorversion in LMTX?

2020-08-10 Thread Aditya Mahajan
On Mon, 10 Aug 2020, Henri Menke wrote: On 10/08/20, 01:20, Aditya Mahajan wrote: Hi, How do I set pdfminorversion in LTMX. Both \pdfminorversion and \pdfvariable minorversion fail with undefined control sequence. Does lpdf.setversion(major, minor) work in LMTX? It does not give an error

[NTG-context] How to set pdfminorversion in LMTX?

2020-08-09 Thread Aditya Mahajan
Hi, How do I set pdfminorversion in LTMX. Both \pdfminorversion and \pdfvariable minorversion fail with undefined control sequence. Thanks, Aditya ___ If your question is of interest to others as well, please add

Re: [NTG-context] lmtx update

2020-08-01 Thread Aditya Mahajan
On Fri, 31 Jul 2020, Hans Hagen wrote: Thanks for the update. Other work in progress is: better columns in itemize, esp proper footnote support (not that I ever need that but I know users do so ...), experiments work ok, but I need to check spacing. In general, footnotes (will) behave a bit

Re: [NTG-context] Unknown script 'fonts.lua' or 'mtx-fonts.lua'

2020-07-30 Thread Aditya Mahajan
On Thu, 30 Jul 2020, Marcus Vinicius Mesquita wrote: Hi, Hans I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file: ~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua Am I missing something? Refresh the database: luatools --generate Aditya

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Aditya Mahajan
On Wed, 29 Jul 2020, Mike Cooper wrote: I would normally use tab stops and line breaks to achieve the following in a numbered list: 1. DC = 3.20 bbl = 420 ft HWDP = 3.90 bbl = 450 ft DP = 34.63 bbl = 2,037 ft Totals = 41.73 bbl = 2,907 ft 2. [next step …] This is

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Aditya Mahajan
On Sun, 19 Jul 2020, Garulfo wrote: Thanks a lot !! I'm beginning to be able to typeset some simple example without any struggle. https://wiki.contextgarden.net/File:modele_bonjour_le_monde.pdf The input file is attached in this mail. Thanks for all the hard work. Some minor comments on

Re: [NTG-context] help with confusion re chapter number

2020-07-09 Thread Aditya Mahajan
On Fri, 10 Jul 2020, jbf wrote: Hi, I wonder if someone could lead me out of my current confusion. In a test example with MWE as follows, I get exactly what I want: \setuplabeltext [en] [chapter=~] \define[2]\MyChapter   {\framed[frame=off,width=broad,align=middle]{#1\blank[1cm]#2}}

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Aditya Mahajan
On Wed, 8 Jul 2020, Gerben Wierda wrote: I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. So, does the following work: \startMPpage[instance=doublefun, offset=2pt] draw (0,0)--(100,0)

Re: [NTG-context] overfull message

2020-07-03 Thread Aditya Mahajan
On Fri, 3 Jul 2020, Taco Hoekwater wrote: \hbadness affects reports on stretched/shrunk box glue, but not overfull boxes. You need \hfuzz for that \hfuzz = 12pt Or, for something more drastic: \dontcomplain Aditya

Re: [NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Aditya Mahajan
On Mon, 29 Jun 2020, Alasdair McAndrew wrote: (For matrices and arrays I still prefer the neat LaTeX implementation, but maybe that's simply my general unfamiliarity with ConTeXt.) Thanks again! Matrices can also be entered using MATLAB syntax (you need to specify a `simplecommand` for

Re: [NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Aditya Mahajan
On Sun, 28 Jun 2020, Alasdair McAndrew wrote: I tried ConTeXt a few years ago, then gave up on it because of its wordiness and verbosity. The 2006 article on creating AMSTeX output in ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the LaTeX commands are small and neat;

Re: [NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-25 Thread Aditya Mahajan
On Thu, 25 Jun 2020, Jairo A. del Rio wrote: Hi, list! I've seen the following in Stack Exchange: https://tex.stackexchange.com/questions/503208/define-macro-that-scans-ahead-for-super-and-or-subscript-absorbs-them-and-mo The answer is:

Re: [NTG-context] error running wiki example with labels

2020-06-24 Thread Aditya Mahajan
On Wed, 24 Jun 2020, Jan-Erik Hägglöf wrote: Hello All! In the page https://wiki.contextgarden.net/Labels I’ve tried with no success to run those examples given at the page. The error complaint as the log shows below Works okay here with both MkIV

Re: [NTG-context] Checking for singlesided/doublesided at run-time

2020-06-24 Thread Aditya Mahajan
On Wed, 24 Jun 2020, Henning Hraban Ramm wrote: I wanted to refer to the mmodes manual, but it’s gone. Was it accidentally removed, or are modes now explained in some other manual? I didn’t find it. http://www.pragma-ade.com/general/manuals/mmodes.pdf and my tugboat article wikified at:

Re: [NTG-context] Undefined control sequence: \pdfpxdimen

2020-06-22 Thread Aditya Mahajan
On Mon, 22 Jun 2020, Aditya Mahajan wrote: Replying to an old thread ... but drops module does not work with lmtx because \pxdimen is not defined. On Thu, 10 Mar 2016, Hans Hagen wrote: On 3/10/2016 12:03 AM, Aditya Mahajan wrote: The drops module uses the primitive \pdfpxdimen

Re: [NTG-context] Undefined control sequence: \pdfpxdimen

2020-06-22 Thread Aditya Mahajan
Replying to an old thread ... but drops module does not work with lmtx because \pxdimen is not defined. On Thu, 10 Mar 2016, Hans Hagen wrote: On 3/10/2016 12:03 AM, Aditya Mahajan wrote: The drops module uses the primitive \pdfpxdimen in a couple of places, but that is no longer defined

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
On Tue, 16 Jun 2020, Pablo Rodriguez wrote: On 6/16/20 4:58 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 16.06.2020 um 16:31: [...] I’m afraid that you get the same result, so there may be a bug there. There is no bug. When you take a look at my pagenumber example you see a few

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
On Mon, 15 Jun 2020, Fabrice L wrote: Dear Aditya, Le 15 juin 2020 à 01:45, Aditya Mahajan a écrit : This is an adapted version of the code that I use for my course where I use the vim module to do the typesetting: \usemodule[filter] \usemodule[vim] \definecolor [darkblue] [r=0.1, g

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
On Mon, 15 Jun 2020, Aditya Mahajan wrote: On Mon, 15 Jun 2020, Aditya Mahajan wrote: On Sun, 14 Jun 2020, Fabrice L wrote: Hi, Following a question about the broken R module (R the statistical software), Aditya suggested me the filter module (thanks to him). I’m about to distribute

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
On Mon, 15 Jun 2020, Aditya Mahajan wrote: On Sun, 14 Jun 2020, Fabrice L wrote: Hi, Following a question about the broken R module (R the statistical software), Aditya suggested me the filter module (thanks to him). I’m about to distribute a set of course notes to colleagues, and I need

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
On Sun, 14 Jun 2020, Fabrice L wrote: Hi, Following a question about the broken R module (R the statistical software), Aditya suggested me the filter module (thanks to him). I’m about to distribute a set of course notes to colleagues, and I need to deal with details now. I have one problem

Re: [NTG-context] wiki update - status

2020-06-08 Thread Aditya Mahajan
On Mon, 8 Jun 2020, Garulfo wrote: - Remove former "manually made links bar" at the top of the pages current structure should be enough now have an easier understanding of the wiki structure. Along that line, we should also considering fixing the getting started navbox or removing it

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-07 Thread Aditya Mahajan
On Sun, 7 Jun 2020, Fabrice L wrote: Dear List, I would like to insert a page using (ideally) start/stop instructions. The problem is that this page should be inserted only in a certain mode. Consulting the mailing list, I thought the following code was working, but it’s not ! The code is

Re: [NTG-context] use parentheses in itemize

2020-06-02 Thread Aditya Mahajan
On Wed, 3 Jun 2020, Tomas Hala wrote: Hi Mike, use this: \setupitemize[left=(,stopper=)] \startitemize[a] \item 415,668 lb \item 415,668 lb \stopitemize For symmetry, I prefer \setupitemize[left=(, right=), stopper=] Aditya

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
On Fri, 29 May 2020, Henning Hraban Ramm wrote: In a similar setup I wanted to start every chapter with image and short vita the author and came up with the following (of course not without help from our wizards): \doifelse{\structureuservariable{image}}{}{% if image empty }{% ... }

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
On Fri, 29 May 2020, Jan U. Hasecke wrote: One and a half question. Why did you set \ChapterCounter explizitly and why is \ChapterCounter part of the datasetvariable? \dataset... is a high level interface for collecting two-pass data in ConTeXt. Here is a simple example:

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-23 Thread Aditya Mahajan
On Sat, 23 May 2020, Garulfo wrote: 1/ Concerning the Manuals Page    - As proposed, "obsolete banners" are added to thumbnails  of the oldest manuals. Looks good. A few minor comments: I haven't tested it, but the natural tables in context examples (in Sec 3.6) should still work with

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-22 Thread Aditya Mahajan
On Fri, 22 May 2020, Garulfo wrote: Hi all, thanks for your encouraging feedbacks. 1/ Concerning the Manuals Page - As proposed, "obsolete banners" are added to thumbnails of the oldest manuals. Looks good. A few minor comments: I haven't tested it, but the natural tables in

Re: [NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, Hans Hagen wrote: On 5/21/2020 10:43 AM, Aditya Mahajan wrote: On Thu, 21 May 2020, Aditya Mahajan wrote: Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have

Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, cont...@vivaldi.net wrote: Hello, at least a short reaction would be appreciated - is it possible to get the desired with ConTeXt? - I need to typeset a column-shaped document with a colofon in the bottom of the page, so my interest is not academical but very

Re: [NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, Aditya Mahajan wrote: Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have thought that `context --purgeall filename` will delete all files with the name `\jobname

[NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have thought that `context --purgeall filename` will delete all files with the name `\jobname-temp-*` but it does not. Is there a way to

Re: [NTG-context] metapost boxes error

2020-05-20 Thread Aditya Mahajan
On Wed, 20 May 2020, jk...@inradius.net wrote: Is there a different approach to use boxes.mp? MNWE: \startMPpage input boxes.mp; boxit.bl("left"); boxit.br("right"); br.sw - bl.ne = (20,0); drawboxed(bl,br); \stopMPpage Move `input boxes` outside the `\startMPpage`.

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-19 Thread Aditya Mahajan
On Tue, 19 May 2020, Aditya Mahajan wrote: On Mon, 18 May 2020, Aditya Mahajan wrote: Thanks! This also helped me find the documentation in hybrid.pdf. Also epub-mkiv.pdf. Not sure why I didn't think of looking there. How do I pass options so that the export is ... (or some variant

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
On Mon, 18 May 2020, Aditya Mahajan wrote: Thanks! This also helped me find the documentation in hybrid.pdf. Also epub-mkiv.pdf. Not sure why I didn't think of looking there. How do I pass options so that the export is ... (or some variant of that). I thought that \startelement[mycommand

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
On Mon, 18 May 2020, Aditya Mahajan wrote: On Mon, 18 May 2020, Hans Hagen wrote: On 5/18/2020 9:09 AM, Aditya Mahajan wrote: Hi, What is needed to enable export of user defined macros? Consider the following example: What am I missing in order to pass user-defined macros to the exporter

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
On Mon, 18 May 2020, Hans Hagen wrote: On 5/18/2020 9:09 AM, Aditya Mahajan wrote: Hi, What is needed to enable export of user defined macros? Consider the following example: What am I missing in order to pass user-defined macros to the exporter? you're probably missing documentation

[NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
Hi, What is needed to enable export of user defined macros? Consider the following example: ``` \def\startmycommand{\dostarttagged{mycommand}\empty} \def\stopmycommand {\dostoptagged} \setupbackend[export=xml, level=0] \starttext \startsection[title={Sample document}] \startparagraph

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
On Sun, 17 May 2020, Nicola wrote: 2. The wiki has no mention of \startcolorscheme... \stopcolorscheme or \setups. An example of two would be very welcome! Added documentation: https://github.com/adityam/filter/blob/dev/vim-README.md Aditya

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
On Sun, 17 May 2020, Nicola wrote: On 2020-05-17, Aditya Mahajan wrote: Since I already map the minor groups to preferred groups in `t-vim`, I think that a good compromise is to enable the minor groups by default. I can do that by adding statements similar to those above in `2context.vim

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
Since I already map the minor groups to preferred groups in `t-vim`, I think that a good compromise is to enable the minor groups by default. I can do that by adding statements similar to those above in `2context.vim`. This will not have any visual impact on any existing code, but will allow

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
On Sat, 16 May 2020, Aditya Mahajan wrote: On Sat, 16 May 2020, Nicola wrote: On 2020-05-16, Aditya Mahajan wrote: On Sat, 16 May 2020, Aditya Mahajan wrote: Moreover, if you comment line line 126 of `2context.vim` "let s:id = synIDtrans (s:id) [If you make a local

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Nicola wrote: On 2020-05-16, Aditya Mahajan wrote: On Sat, 16 May 2020, Aditya Mahajan wrote: Moreover, if you comment line line 126 of `2context.vim` "let s:id = synIDtrans (s:id) [If you make a local copy of 2context.vim, then you need to run the

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Aditya Mahajan wrote: On Sat, 16 May 2020, Nicola wrote: On 2020-05-14, Aditya Mahajan wrote: On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? It is supposed to work. If it doesn't

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Nicola wrote: On 2020-05-14, Aditya Mahajan wrote: On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? It is supposed to work. If it doesn't, then it is a bug. Could you provide a complete MWE

Re: [NTG-context] Custom color schemes in t-vim

2020-05-14 Thread Aditya Mahajan
On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? In a template I wrote long time ago to typeset code, I have: \usemodule[vim] \unprotect \startcolorscheme[oceansunset]

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Aditya Mahajan
On Thu, 7 May 2020, Fabrice Couvreur wrote: Hi, Here is part of a project that is starting to be heavy ; when i add a chapter i do context seconde.tex How do I compile only the chapter I just added ? Thank you. Fabrice \startproduct Seconde \environment modules \environment specialite-style

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Fabrice Couvreur wrote: Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. I don't know the answer, but here is a simpler example without pgfplot which fails (different calligraphic C's):

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, cont...@vivaldi.net wrote: Hello Aditya, On 2020-05-04 10:42, Aditya Mahajan wrote: On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3

Re: [NTG-context] Vertical lines in matrices

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Weber, Matthias wrote: I was aware of this. While there is no solution that adds vertical lines into matrices, It should not be too difficult to support "proper" vertical and horizontal lines. It should be possible to just add solid lines relatively easily. With dashed

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3" is placed naturally by ConTeXt and

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
If you or anyone else is going to play around with generating mazes, definitely take a look at http://www.mazesforprogrammers.com/ and the live demos here: https://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap A nice overview of the relationship with spanning tress (by the

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Sat, 2 May 2020, Hans Hagen wrote: On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file

Re: [NTG-context] .so libraries not working with LMTX

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Jairo A. del Rio wrote: I've tried using some C libraries for Lua in LuaTeX: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following message appears (an example with MAPM): token call, execute:

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Aditya Mahajan
On Sun, 19 Apr 2020, Jeong Dal wrote: Dear all, I am trying to make an animation using the animation module. But it draws 10 figures instead of creating animation. Is there anything I have to do more? Or, is there a better way to do this? Thank you for reading. Best regards, Dalyoung

Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-19 Thread Aditya Mahajan
On Sun, 19 Apr 2020, Jairo A. del Rio wrote: I've seen the following solution in Stack Exchange to add referenceable enumeration labels to a framed enumeration environment: https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay It

Re: [NTG-context] Using two versions of ConTeXt

2020-04-17 Thread Aditya Mahajan
On Fri, 17 Apr 2020, Jairo A. del Rio wrote: Hi everyone! I'm using the ConTeXt version packaged with TeX Live 2020 and recently I have downloaded LMTX. Both of them work, but when I call "context" from terminal, I compile with the TeX Live version, whereas I have to use a fully specified path

Re: [NTG-context] [LMTX] error updating luametatex

2020-04-17 Thread Aditya Mahajan
On Thu, 16 Apr 2020, kaddour kardio wrote: Pablo yes I meant 'mtxrun'. Hans by googling about my issue I found a commentary by Aditya of the issue on the git repos. Which git repo? I maintain the luametatex AUR for archlinux. So, if the install script asked you to run `mtx-run --generate`

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-13 Thread Aditya Mahajan
On Mon, 13 Apr 2020, Fabrice Couvreur wrote: Hi, Sorry to restart the discussion, but I have updated my entire system and the problem remains. I used the example of Aditya. Thank you. Fabrice \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Aditya Mahajan
On Fri, 10 Apr 2020, kaddour kardio wrote: Hi, if there any changes in the interface for using symbols? I tried today the example from Aditya's Blog but it shows no symbols: \definetypeface[mainfont][rm][specserif][Linux Libertine O][default] \definetypeface[mainfont][mm][math] [TeX Gyre

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
On Wed, 8 Apr 2020, Aditya Mahajan wrote: Simpler example: Sorry, pasted the wrong thing: \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent LMTX (same error

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
Simpler example: \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent

Re: [NTG-context] "Remember picture" does not work (again)

2020-04-06 Thread Aditya Mahajan
On Mon, 6 Apr 2020, Jairo A. del Rio wrote: A Metapost alternative would be fine, too. See Chapter 5 of the metafun manual, which describes how anchors and position graphics. Aditya ___ If your question is of

Re: [NTG-context] Fwd: Using Lua files in project structure

2020-04-06 Thread Aditya Mahajan
On Mon, 6 Apr 2020, Jairo A. del Rio wrote: Well, I'll be more specific. I attach a zip file showing a minimal example of what I achieved so far and its output (labelled "Works") and what I actually want, but does not work (labelled "Doesnotwork"). I've tried different commands and

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Aditya Mahajan
On Sun, 5 Apr 2020, Jairo A. del Rio wrote: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

Re: [NTG-context] Lua/TeX/METAPOST/textext string issue/puzzle

2020-04-01 Thread Aditya Mahajan
On Wed, 1 Apr 2020, Gerben Wierda wrote: My route is probably to complex anyway, but what can I do for the curly braces to be actually typeset? MkII had a feature called \sometxt http://dl.contextgarden.net/myway/sometxt.pdf I wonder if that still works in MkIV. Aditya

Re: [NTG-context] Box of certain width (and height?) containing a paragraph of text?

2020-03-30 Thread Aditya Mahajan
Does ConTeXt have a command to create a (non framed) box from a line of text, where the text is typeset as a paragraph inside a box of certain size? You can always fall back to plain tex, but I think that the \framed... interface is nicer: \starttext \vbox{\hsize 3cm \input ward\relax}

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Aditya Mahajan
On Tue, 24 Mar 2020, Rudolf Bahr wrote: On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: Rudolf Bahr schrieb am 24.03.2020 um 12:19: > Hello dear All, > > the following MWE works best: > > > \definelayer[LAY] > \starttext > > \setlayerframed[LAY] >[x=0pt,y=20pt] >

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Aditya Mahajan
On Thu, 19 Mar 2020, mf wrote: Il 19/03/20 11:20, Fabrice Couvreur ha scritto: Hi, this file did not pose any problems but today yes. Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998",

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Aditya Mahajan
On Mon, 16 Mar 2020, Gerben Wierda wrote: This worked when I was just doing METAPOST. Now, I am using my lua code to produce the METAPOST code that produces the pictures. And the picture itself is put in a file for METAPOST as follows: File test4-mplib-run-001.mp: % begin graphic: n=0 ;

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Aditya Mahajan
On Fri, 13 Mar 2020, Taco Hoekwater wrote: Hi, On 13 Mar 2020, at 12:53, Gerben Wierda wrote: Suppose I have this code: Can I reuse that varied across follow-up MPPages? Sure, put the vardef inside \startMPinclusions: or \startMPdefinitions ... \stopMPdefinitions (don't remember

Re: [NTG-context] Second derivative ''

2020-03-05 Thread Aditya Mahajan
On Thu, 5 Mar 2020, Hans Hagen wrote: On 3/4/2020 11:44 PM, Weber, Matthias wrote: Dear List, \starttext \startformula \left(f\right)'' = f'' \stopformula \stoptext has the second apostrophe set too low. This is in MKIV on ConTeXt live as well as in my slightly older version. What is the

Re: [NTG-context] Space between heading and paragraph in a description

2020-02-18 Thread Aditya Mahajan
On Tue, 18 Feb 2020, Kevin Kenan wrote: On Feb 18, 2020, at 11:50 AM, Wolfgang Schuster wrote: You can always try the list archive, e.g. the same problems was asked last year. https://mailman.ntg.nl/pipermail/ntg-context/2019/094735.html

Re: [NTG-context] mtxrun

2020-02-15 Thread Aditya Mahajan
On Sat, 15 Feb 2020, Floris van Manen wrote: On 15-02-2020 06:40, Rudolf Bahr wrote: I hope this helps you! At least in the case you're using linux. it appears as that many of the files in the two path are sort of identical: ~/data/context $ md5sum bin/mtxrun

Re: [NTG-context] mtxrun

2020-02-14 Thread Aditya Mahajan
On Fri, 14 Feb 2020, Luca Donetti wrote: So I run explicitly the second one: ~/context-lmtx/bin/mtxrun --generate but I got the same error. This is the wrong binary. As Hans said (and also what I wrote in my message) is that you have to run the one in ~/context-lmtx/tex/texmf-linux-64/bin/

  1   2   3   4   5   6   7   8   9   10   >