Re: [NTG-context] newlines in return Lua string

2019-06-15 Thread Aditya Mahajan
On Sat, 15 Jun 2019, Hans van der Meer wrote: From\ctxlua{tex.print(hvdm.myluacall("\xmlatt{#1}{argument}"))} Lua returns a string containing newline characters '\n'. In ConTeXt this returned string is printed as one line, the embedded newlines are not honoured. I thought to replace with

Re: [NTG-context] pretty printers

2019-05-08 Thread Aditya Mahajan
On Wed, 8 May 2019, Tomas Hala wrote: Wed, May 08, 2019 ve 10:14:45PM +0200 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 08.05.2019 um 21:58: # >Hi all, # > # >according to our wiki, there are pretty printers in ConTeXt # >implemented only for TEX, LUA, XML and MP. # > # >I am searching

Re: [NTG-context] XML xmldoif struggle!

2019-05-02 Thread Aditya Mahajan
On Thu, 2 May 2019, Geert Verhaag wrote: Yes, I got it working! It is somewhat tricky. Trying to understanding the concepts behind all this isn't easy for me, but I'm bashing on. I also find understanding XML processing rules to be complicated. I simply convert the XML to a lua table, and

Re: [NTG-context] placetable and localfootnotes

2019-04-30 Thread Aditya Mahajan
On Tue, 30 Apr 2019, Otared Kavian wrote: Hi Hans, It seems that there is a conflict between \startplacetable and \startlocalfootnotes: in the following example when the latter command (and its \stop counterpart) is commented out the table is placed correctly in the middle, while otherwise

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
Hi, The following minimal example: \definetextbackground [EXAMPLE] [ location=paragraph, rulethickness=1pt, leftoffset=5em, rightoffset=0mm, ] \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C

Re: [NTG-context] LMTX and system fonts

2019-04-27 Thread Aditya Mahajan
On Sat, 27 Apr 2019, Pablo Rodriguez wrote: On 4/27/19 7:36 PM, Hans Hagen wrote: On 4/27/2019 6:25 PM, Pablo Rodriguez wrote: [...] It seems as if LMTX couldn’t follow symlinks for directories in Linux. On Windows, I will have to wait some days to have access to a computer with it. I

Re: [NTG-context] tikz is not found

2019-04-24 Thread Aditya Mahajan
On Wed, 24 Apr 2019, Wolfgang Schuster wrote: Gour schrieb am 24.04.2019 um 18:57: That I spotted and corrected, but I'm getting another error, I suppose: $ cat mp.tex \starttext Lorem Ipsum… \startMPcode draw ( (0,0)--(1,0)--(0,1)) with color red ; Change "with color" to "withcolor" (no

Re: [NTG-context] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan
On Wed, 24 Apr 2019, Gour wrote: Hello, I believe that using GeoGebra for drawing, exporting to TikZ is the most approachable method for me to be able to create mathematic-related material like exams for the children in the primary school, but need some info how to adjust GeoGebra's TikZ

[NTG-context] mathalign: specifying distance with glue

2019-04-23 Thread Aditya Mahajan
Hi, amsmath provides an environment `flalign` that flushes the "block" for display math. See page 6 (pdf page 27) of my article on display math in context (https://www.ntg.nl/maps/34/06.pdf) for an example. As shown in that article, I could achieve the same behavior in context mathalign by

Re: [NTG-context] Formula number misplaced

2019-04-23 Thread Aditya Mahajan
On Tue, 23 Apr 2019, Mikael P. Sundqvist wrote: Yes, but it can also appear when not using TEXpage. When I tried out lmtx on a large file (not using TEXpage), it was there. I was not able to reproduce on a smaller file, though. I could give it another try, if necessary. An example will be

Re: [NTG-context] Formula number misplaced

2019-04-23 Thread Aditya Mahajan
On Tue, 23 Apr 2019, Henri Menke wrote: Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Aditya Mahajan
On Sat, 20 Apr 2019, Gilles Waeber wrote: Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftbartext][

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Aditya Mahajan
On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: Hello, On Thu, 11 Apr 2019 14:44:39 +0200, Aditya Mahajan wrote: On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: ... Great, perfect, thank you! Lukas The wiki page also explains the details of indentation: https://www.contextgarden.net

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Aditya Mahajan
On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: ... Great, perfect, thank you! Lukas The wiki page also explains the details of indentation: https://www.contextgarden.net/Indentation Aditya___ If your question

Re: [NTG-context] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Aditya Mahajan
On Wed, 10 Apr 2019, Hans Hagen wrote: On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote: On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian wrote: Hi Hans, While testing old documents with lmtx, I noticed that with recent versions of mkiv, as well as LuaMetaTeX, there is a strange behavior in

Re: [NTG-context] Expanding text across two table cells

2019-04-08 Thread Aditya Mahajan
On Mon, 8 Apr 2019, Todd DeVries wrote: Hello, I use a progress note format which contains information that doesn't change much from session to session. Items like date, location, people attending a session. I would like to include two longer items, a diagnostic field and info about

Re: [NTG-context] name of cache used by mkiv and lmtx

2019-04-07 Thread Aditya Mahajan
On Sun, 7 Apr 2019, Hans Hagen wrote: On 4/6/2019 8:49 PM, Aditya Mahajan wrote: On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions

Re: [NTG-context] name of cache used by mkiv and lmtx

2019-04-06 Thread Aditya Mahajan
On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions, but does it make sense to to use a different hash (5fe67e...) for the two? Why do

[NTG-context] Undefined symbol lua_gettop

2019-04-06 Thread Aditya Mahajan
Hi, I am experimenting with using lua libraries with lmtx. I tried the following: 1. Download the lcomplex library (from http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/lcomplex-100.tar.gz) 2. Untar and modify the Makefile so that LUA_TOPDIR points to the right location (/usr in my

[NTG-context] name of cache used by mkiv and lmtx

2019-04-06 Thread Aditya Mahajan
Hi, I am currently using mkiv and lmtx in parallel and noticed that both use the same texmf-cache subdirectory. Running: mtxrun --script cache --list gives mtx-cache | writable path: /home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mtx-cache |

[NTG-context] Archlinux package for luametatex

2019-04-04 Thread Aditya Mahajan
Hi, I create a archlinux AUR for luametatex: https://aur.archlinux.org/packages/luametatex/ Those using archlinux can now use their favorite AUR helper to install luametatex. It installs the files in /opt/luametatex and has the following features: 1. If texlive is installed, a symlink to

Re: [NTG-context] beta

2019-04-04 Thread Aditya Mahajan
On Thu, 4 Apr 2019, Hans Hagen wrote: Hi, I uploaded a new beta (as we're now post current again). The lmtx installation is normally also updated in sync but sometimes can be a bit ahead as I myself use that as default. Is there or will there be any difference between context mkiv and

Re: [NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Aditya Mahajan
On Wed, 3 Apr 2019, Henri Menke wrote: On 3/04/19 10:19 AM, Taco Hoekwater wrote: My guess: drop the '/opt/context-lmtx/bin' from your PATH. That works, thank you. Then install.sh has to be adjusted because it told me to export

Re: [NTG-context] follow up

2019-04-02 Thread Aditya Mahajan
On Mon, 1 Apr 2019, Hans Hagen wrote: Hi, We have worked furiously all day kicking-out extra code, and are pleased to present a lean-and-mean version of luatex with your favorite ConTeXt. Same good taste but only half the calories and a new name: luametatex and ConTeXt LMTX. No more

Re: [NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Aditya Mahajan
On Wed, 27 Mar 2019, Hans Hagen wrote: On 3/27/2019 4:56 PM, Aditya Mahajan wrote: Hi, It was reported on TeX.SE[1] that there is a bug when math matrix is used inside a math align: \starttext \startformula     \startalign[n=2,align={right,left}]     \NC x     \NC = a ~ long

[NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Aditya Mahajan
Hi, It was reported on TeX.SE[1] that there is a bug when math matrix is used inside a math align: \starttext \startformula \startalign[n=2,align={right,left}] \NC x \NC = a ~ long ~ sequence ~ of ~ terms \NR \NC y \NC = ok ~ left \NR

[NTG-context] Incorrect offset when textframe is used inside TEXpage

2019-03-24 Thread Aditya Mahajan
Hi, With the latest beta, the following example: \definetextbackground [test] [ location=paragraph, ] \starttext \startTEXpage[offset=5cm] \starttest \input knuth \stoptest \stopTEXpage \stoptext gives the attached output. Note that in the output the left and right offsets

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
On Mon, 18 Mar 2019, Romain Diss wrote: Le 13/03/2019, Aditya Mahajan a �crit > Is there a simple way to split a large \startframedtext environment over > multiple pages. It doesn't work out of the box and I didn't find any > option make it work in the wiki nor in the documentati

Re: [NTG-context] Fwd: Fwd: IBM Wordcloud with the Filter Module

2019-03-14 Thread Aditya Mahajan
On Fri, 15 Mar 2019, Jeroen wrote: I have installed portable java8 in /context/java, so paths will not be needed when using absolute paths with the commands in these files. When I execute the following batch file sample2.bat with a command on a single line, it will create the sample2.png

Re: [NTG-context] Fwd: IBM Wordcloud with the Filter Module

2019-03-14 Thread Aditya Mahajan
On Thu, 14 Mar 2019, Jeroen wrote: I am able to run R, asymptote, graphviz, octave, openscad, python and freecad all on the filter module without problems. The same problem as I have with wordcloud I have with maxima and geogebra. \traceexternalfilters isnt giving me a lot. I have tried the

Re: [NTG-context] Framed text split over multiple pages

2019-03-13 Thread Aditya Mahajan
Is there a simple way to split a large \startframedtext environment over multiple pages. It doesn't work out of the box and I didn't find any option make it work in the wiki nor in the documentation I read. Use backgrounds or textbackgrounds. Aditya

Re: [NTG-context] IBM Wordcloud with the Filter Module

2019-03-12 Thread Aditya Mahajan
On Mon, 11 Mar 2019, Jeroen wrote: Yes, there is a batch file for testing purposes, and that one works fine Two things to try: 1. Add \traceexternalfilters and see if the log shows any error from the java file. 2. Are you able to run other filters? Aditya

Re: [NTG-context] IBM Wordcloud with the Filter Module

2019-03-11 Thread Aditya Mahajan
Can you run the java file from the command promt? Aditya On Mon, 11 Mar 2019, Jeroen wrote: Dear List, I am trying to get the IBM wordcloud java application working with the filter module on MS Windows. This configuration does not create the wordcloud png file. The in and out files

Re: [NTG-context] Search path for typescripts

2019-02-28 Thread Aditya Mahajan
On Thu, 28 Feb 2019, Rik Kabel wrote: List, What is the proper place to put a custom typescript file to make it accessible to multiple projects? For testing I placed copies in" 1) the local directory 2) /texmf/fonts 3) /tex/texmf-local/fonts/ A typescript file is simply a tex file, so

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Aditya Mahajan
On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Aditya Mahajan
On Fri, 22 Feb 2019, Fabrice L wrote: Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Untested. Add quotes around FileName: string FileName ;

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Aditya Mahajan
On Sun, 17 Feb 2019, Gour wrote: On Fri, 15 Feb 2019 12:34:33 -0500 (EST) Aditya Mahajan wrote: For simple documents, I use something like this (untested): It does not work - maybe I have to install stand-alone version of ConTeXt, but I got an idea. Try this: https://github.com/adityam

Re: [NTG-context] markdown module vs pandoc

2019-02-15 Thread Aditya Mahajan
On Fri, 15 Feb 2019, Gour wrote: On Fri, 15 Feb 2019 06:11:32 -0500 (EST) Aditya Mahajan wrote: For obvious reasons, the built in markdown module is faster than calling pandoc but I prefer using pandoc rather than the markdown module for two reasons. First, pandoc provides many extensions

Re: [NTG-context] markdown module vs pandoc

2019-02-15 Thread Aditya Mahajan
On Thu, 14 Feb 2019, Gour wrote: I'm interested for using markdown markup and typeset such documents via ConTeXt, but wonder whether it is recommended to use Markdown module or do markdown --> ConTeXt via Pandoc? For obvious reasons, the built in markdown module is faster than calling pandoc

Re: [NTG-context] text flowing around images

2019-02-05 Thread Aditya Mahajan
On Tue, 5 Feb 2019, Wolfgang Schuster wrote: Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm : Ahoi, in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-16 Thread Aditya Mahajan
On Tue, 15 Jan 2019, Taco Hoekwater wrote: On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni wrote: I guess it works fine for me on beta 2019.01.07 16:10. Thanks for testing. Sorry, I should have checked myself. On 15 Jan 2019, at 15:22, Hans Hagen wrote: works her ebut better is

Re: [NTG-context] tikz pgfplots library problem

2019-01-15 Thread Aditya Mahajan
On Tue, 15 Jan 2019, Susanne G. Loeber wrote: Dear Reader, I am creating an image using TikZ PGFplots. When I add \usetikzlibrary[datavisualization] I get an error. A simple example to illustrate my problem: \usemodule[pgfplots] \usemodule[tikz] \usetikzlibrary[datavisualization]

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Aditya Mahajan
On Tue, 15 Jan 2019, Taco Hoekwater wrote: Hi, Quick explanation: I am trying to implement the concept of the HTML tag, which is supposed to be like a font switch, but doing underlining. I have a bunch of french clients, and this is a requirement I cannot get around. French officials _love_

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Aditya Mahajan
On Sat, 12 Jan 2019, Jan U. Hasecke wrote: Hi all, in my document \startchapter and \starttitle starts a new chapter on the right (odd) page. So sometimes, there is a blank even page just before a new chapter. I would like to manipulate this blank even page. There are several things I would

Re: [NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Aditya Mahajan
On Fri, 11 Jan 2019, Henri Menke wrote: On 11/01/19 4:42 PM, Aditya Mahajan wrote: Hi, Is it possible to process an XML file inside a zip file without unzipping? In particular, I have a program that generates zip files which look like this: The file `filename.zip` contains: - filename.xml

[NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Aditya Mahajan
Hi, Is it possible to process an XML file inside a zip file without unzipping? In particular, I have a program that generates zip files which look like this: The file `filename.zip` contains: - filename.xml - file_hash1.png - file_hash2.png etc. Where `filename.xml` (the name matches the

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2019, Aditya Mahajan wrote: On Thu, 10 Jan 2019, Hans Hagen wrote: On 1/10/2019 10:26 PM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2019, Hans Hagen wrote: On 1/10/2019 10:26 PM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:        height="15px

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Fri, 11 Jan 2019, Henri Menke wrote: On 11/01/19 10:26 AM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:            I want to typeset

[NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows: height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/> I want to typeset the `text` attribute

Re: [NTG-context] table cell minimum heights -- help needed

2018-12-14 Thread Aditya Mahajan
On Thu, 13 Dec 2018, Taco Hoekwater wrote: I am attempting to process html tables that are styled using css, and I have problem with the ‘height’ property. CSS (or rather, the html browser) interprets ‘height’ as if it was a “minheight”, and if the content does not fit, it will just enlarge

[NTG-context] Drops Module

2018-12-10 Thread Aditya Mahajan
Hi Peter, I noticed that the drops module recently stopping running with the error: /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: bad argument #3 to 'format' (number has no integer representation) stack traceback: [C]: in function 'string.format'

Re: [NTG-context] Sources of Tutorial.text.pdf

2018-11-28 Thread Aditya Mahajan
On Wed, 28 Nov 2018, Willi Egger wrote: As being one of the authors, yes I have these file still here. — When the second author agrees I can deliver them to you. — However there is a warning to be made, that the project is 10 years old and was built in pdfTeX/ConTeXt MKII. Hi Willi, I sent

Re: [NTG-context] Sources of Tutorial.text.pdf

2018-11-28 Thread Aditya Mahajan
On Wed, 28 Nov 2018, Tommaso Gordini wrote: Hi everyone, looking here and there on the Internet, I found a very interesting document by Aditya Mahajan and Willi Egger: *Beginners Tutorial. ConTeXt *( Tutorial-text.pdf), written in 2008 for the 2nd International ConTeXt User Meeting in Bohinj

Re: [NTG-context] align=end not working

2018-11-18 Thread Aditya Mahajan
On Tue, 13 Nov 2018, Hans Hagen wrote: On 11/10/18 5:56 AM, Aditya Mahajan wrote: Hi, According to an old thread (https://mailman.ntg.nl/pipermail/ntg-context/2016/085877.html), the option `align=end` should align the last line to be flush right. However, that is not working. The example from

[NTG-context] align=end not working

2018-11-09 Thread Aditya Mahajan
Hi, According to an old thread (https://mailman.ntg.nl/pipermail/ntg-context/2016/085877.html), the option `align=end` should align the last line to be flush right. However, that is not working. The example from that thread: \starttext \showframe \showboxes \setupalign[end]

Re: [NTG-context] improving kannada script

2018-11-02 Thread Aditya Mahajan
On Fri, 2 Nov 2018, Ulrike Fischer wrote: Also if I remember correctly this requires --shell-escape and this is not really sensible for a user interface. IIRC, it is possible to 'whitelist' programs in texmf.cnf so that `--shell-escape` is not needed. I believe this is how the automatic eps

Re: [NTG-context] Table "modules"

2018-10-29 Thread Aditya Mahajan
On Mon, 29 Oct 2018, Joseph Wright wrote: Hans: Thanks for the quick reply. I'll suggest to the LaTeX team that we treat table modules as ConTeXt-specific/reserved, and will think of a different name. How about `package`? Aditya

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Aditya Mahajan
On Mon, 22 Oct 2018, Fabrice Couvreur wrote: Hi, When I use the \inframed{} command twice, they are not on the same baseline. Thank you. Fabrice \starttext Add \dontleavehmode \inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} \stoptext See

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-11 Thread Aditya Mahajan
On Tue, 9 Oct 2018, Alan Braslau wrote: On Mon, 8 Oct 2018 17:56:24 -0400 (EDT) Aditya Mahajan wrote: Here is a proof of concept implementation in Lua + MP so that you can use: \ContourPlot [ function=2*x^5 + x*y + y^5, x={0, 2}, y={-2, 0.5}, n=1000, % Number

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
On Mon, 8 Oct 2018, Aditya Mahajan wrote: On Mon, 8 Oct 2018, Alan Braslau wrote: On Mon, 8 Oct 2018 16:00:10 -0400 (EDT) Aditya Mahajan wrote: On Sun, 7 Oct 2018, Hans Hagen wrote: On 10/7/2018 7:14 PM, Alan Braslau wrote: On Sun, 7 Oct 2018 17:25:35 +0200 "Mikael P. Sundqvist&qu

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
On Mon, 8 Oct 2018, Alan Braslau wrote: On Mon, 8 Oct 2018 16:00:10 -0400 (EDT) Aditya Mahajan wrote: On Sun, 7 Oct 2018, Hans Hagen wrote: On 10/7/2018 7:14 PM, Alan Braslau wrote: On Sun, 7 Oct 2018 17:25:35 +0200 "Mikael P. Sundqvist" wrote: ContourPlot[2 x^5 + x y + y^5 =

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
On Sun, 7 Oct 2018, Hans Hagen wrote: On 10/7/2018 7:14 PM, Alan Braslau wrote: On Sun, 7 Oct 2018 17:25:35 +0200 "Mikael P. Sundqvist" wrote: ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] Brut force: [...] as this takes some time here's a cheat: \starttext

Re: [NTG-context] Font Awesome (again)

2018-10-07 Thread Aditya Mahajan
On Sun, 7 Oct 2018, Ulrike Fischer wrote: Am Sun, 7 Oct 2018 09:26:11 -0400 (EDT) schrieb Aditya Mahajan: Would it make sense to update the fonts in the distribution? I didn't quite follow the discussion and the suggested code, but from a similar discussion for latex I know that the symbols

Re: [NTG-context] Font Awesome (again)

2018-10-07 Thread Aditya Mahajan
On Sun, 7 Oct 2018, Wolfgang Schuster wrote: Aditya Mahajan schrieb am 07.10.18 um 15:26: Hi, There is a FontAwesome.otf file that is distributed with ConTeXt minimals. Does anyone know what version (4 or 5) of the font it is? I am asking because the names of the symbols used in the font do

[NTG-context] Font Awesome (again)

2018-10-07 Thread Aditya Mahajan
Hi, There is a FontAwesome.otf file that is distributed with ConTeXt minimals. Does anyone know what version (4 or 5) of the font it is? I am asking because the names of the symbols used in the font do not match those on the font-awesome website. For example, using

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
On Sat, 6 Oct 2018, Alan Braslau wrote: On Sat, 6 Oct 2018 13:06:18 -0400 (EDT) Aditya Mahajan wrote: In my opinion, a better long-term option is to write a jupyter client in lua that can be called by context. Then we can easily interface with all languages that provide a jupyter kernel

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
On Sat, 6 Oct 2018, Kelley, Claire wrote: Again thank you everyone for their incredibly helpful advice and responsiveness! The work flow I am envisioning is: 1) Use R to read in a csv file, filter according to some rules and then use propensity score matching (based on r packages) to create

Re: [NTG-context] table making ugly column sizes, how to fix?

2018-10-01 Thread Aditya Mahajan
On Mon, 1 Oct 2018, David Walther wrote: I looked at your example. I ran your example, and on my installation, it has the same problem as I described. I have included a PDF file of my original sample file, and also the PDF generated from your example. What version of ConTeXt are you

Re: [NTG-context] xtables with lua

2018-10-01 Thread Aditya Mahajan
On Mon, 1 Oct 2018, Fabrice Couvreur wrote: Hi, Thank you Aditya for the link. I knew that with natural tables, but I hoped it could be done with xtables too. Almost the same code works with xtables as well (in your example, I don't know the relationship between the columns) \starttext

Re: [NTG-context] xtables with lua

2018-09-30 Thread Aditya Mahajan
On Mon, 1 Oct 2018, Jeong Dal wrote: What do you mean “does not typeset correctly as expected”? As I said, I fixed the post. I copied and tested the last example and got the result without error. One problem is that the vertical alignment is not centered as the example of Aditya’s. Would

Re: [NTG-context] Font installation help needed!

2018-09-30 Thread Aditya Mahajan
On Sun, 30 Sep 2018, Geert Verhaag wrote: Hi, I'm currently using ConTeXt version: mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /home/verhaag/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current

Re: [NTG-context] table making ugly column sizes, how to fix?

2018-09-30 Thread Aditya Mahajan
On Sat, 29 Sep 2018, David Walther wrote: Full example at the bottom. I'm making a table. So far so good. Every so often I want to make something like a section header. Regular table rows are like this: \bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR For the section

Re: [NTG-context] xtables with lua

2018-09-30 Thread Aditya Mahajan
On Mon, 1 Oct 2018, Otared Kavian wrote: Hi Aditya, Thanks for pointing to your context-blog: one learns always some good stuff there! I wanted to make an observation about the last example in that page, which does not typeset correctly as expected, and also it does not work well if one

Re: [NTG-context] xtables with lua

2018-09-30 Thread Aditya Mahajan
On Sun, 30 Sep 2018, Fabrice Couvreur wrote: Hi, Is it possible to fill columns A, B and C using a loop with lua ? Thank you. Here is a blog post summarizing a similar question from almost a decade ago: https://adityam.github.io/context-blog/post/tex-programming/ Aditya

Re: [NTG-context] rscale with auto value

2018-09-26 Thread Aditya Mahajan
On Wed, 26 Sep 2018, Pablo Rodriguez wrote: Wolfgang, explaining the following sample to ConTeXt newbies, I have a problem: \setuppapersize[A5, landscape] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][tt][DejaVu Sans Mono][rscale=0.825]

Re: [NTG-context] The definitive guide to ConTeXt MkIV documentation

2018-09-01 Thread Aditya Mahajan
On Sun, 2 Sep 2018, Henri Menke wrote: Dear list, I have written a guide to ConTeXt documentation which summarizes the most important resources for the ConTeXt beginner, advanced user, and expert user. You can see it on GitHub:

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Aditya Mahajan
On Wed, 29 Aug 2018, Wolfgang Schuster wrote: The second question: Is there the possibility to enhance the syntax so that one can write \startMyStuff [optionalkey=value, anotherkey=value] stuff \stopMyStuff instead of \startuserdata [MyStuff] [optionalkey=value,

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-27 Thread Aditya Mahajan
On Mon, 27 Aug 2018, Jeong Dal wrote: Hi, The same thing happens after the itemization as in the following MWE. \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square},

Re: [NTG-context] Emacs + latest beta

2018-08-27 Thread Aditya Mahajan
On Mon, 27 Aug 2018, Fabrice Couvreur wrote: I just made a new standalone context install and added this to my ~/.profile : source /home/aragorn/context/tex/setuptex It finally seems to work ! export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin source

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Aditya Mahajan
On Sun, 26 Aug 2018, Wolfgang Schuster wrote: The normal alignment of figures is with the bottom of the figure on the baseline. You can control the vertical alignment with a few box commands but what you should use depends on the context, in tables I would use 2 while in running text 3 can

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Aditya Mahajan
On Tue, 21 Aug 2018, Hans Hagen wrote: On 8/21/2018 3:04 PM, Aditya Mahajan wrote: On Tue, 21 Aug 2018, Hans Hagen wrote: Anyway, a better support for "pick-in-PDF-and-go-to-source" (synctex), namely when user "tunes" the docs to their final stage, would be great. I th

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Aditya Mahajan
On Tue, 21 Aug 2018, Hans Hagen wrote: Anyway, a better support for "pick-in-PDF-and-go-to-source" (synctex), namely when user "tunes" the docs to their final stage, would be great. I think that the current approach to hard code synctex libraries into a viewer is a limitation (instead an

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-16 Thread Aditya Mahajan
On Wed, 15 Aug 2018, Rik Kabel wrote: On 8/15/2018 03:07, Hans Hagen wrote: On 8/15/2018 5:31 AM, Aditya Mahajan wrote: On Tue, 14 Aug 2018, Rik Kabel wrote: I really think, though, that a buffers.strip function would be the way to go, instead of futzing after the damage is done. In lua

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-14 Thread Aditya Mahajan
On Tue, 14 Aug 2018, Rik Kabel wrote: I really think, though, that a buffers.strip function would be the way to go, instead of futzing after the damage is done. In lua, buffers.getcontent('name') gives the contents of the buffer labelled 'name'. You can post-process this in whatever way you

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-12 Thread Aditya Mahajan
On Sun, 12 Aug 2018, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem

Re: [NTG-context] Using \dorecheckindentation inside a group

2018-08-10 Thread Aditya Mahajan
On Fri, 10 Aug 2018, Wolfgang Schuster wrote: Aditya Mahajan schrieb am 10.08.18 um 19:41: Hi, In t-filter module, I use a group inside \startfilter ... \stopfilter to keep various definitions local. However, as reported on [1], this breaks the `indentnext` option. The following minimal

[NTG-context] Using \dorecheckindentation inside a group

2018-08-10 Thread Aditya Mahajan
Hi, In t-filter module, I use a group inside \startfilter ... \stopfilter to keep various definitions local. However, as reported on [1], this breaks the `indentnext` option. The following minimal example illustrates the issue: \unprotect \definenamespace [whatever] [ name=whatever,

Re: [NTG-context] resetting footnote counter

2018-08-09 Thread Aditya Mahajan
On Thu, 9 Aug 2018, Robert Zydenbos wrote: I have tried ‘\resetcounter [footnote]’ (a suggested solution on that web page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter [footnote] [0]’ (also suggested on that web page) is rejected as an error. Can you post a minimal

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Aditya Mahajan
On Wed, 8 Aug 2018, Robert Zydenbos wrote: A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote counter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of

Re: [NTG-context] xrightarrow is not straight

2018-08-07 Thread Aditya Mahajan
On Tue, 7 Aug 2018, Alan Braslau wrote: Hello, You can also use MetaPost to render math stackers, rather than relying on TeX constructs and any particular font. For example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp] \definemathextensible [mp] [leftarrow]

Re: [NTG-context] xrightarrow is not straight

2018-08-07 Thread Aditya Mahajan
On Tue, 7 Aug 2018, Joshua Moerman wrote: Another thing I noticed is that the line is not very consistent. This might be a font issue (I am using Euler). Luckily, the inconsistent overlap is barely visible when printed. It is a viewer issue. It should also go away if you zoom the pdf. Aditya

Re: [NTG-context] Symbolsets: Font Awesome 5, Webdings, Wingdings, Symbola

2018-07-29 Thread Aditya Mahajan
On Sun, 29 Jul 2018, Henning Hraban Ramm wrote: Ahoi, I just made symbolsets for the current Font Awesome 5 fonts and published them together with some older collections: https://github.com/fiee/ConTeXt/tree/master/symbols Does this contain more symbols that those in the fontawesome

Re: [NTG-context] Set up a theorem style

2018-07-25 Thread Aditya Mahajan
On Wed, 25 Jul 2018, Fabrice Couvreur wrote: Hello, I used LaTeX for a long time before converting (with difficulty !) to ConteXt. For example, to define my new theorems, I used the amsthm package and I did this : \newtheoremstyle{theoremdd}% name of the style to be used {\topsep}% measure of

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Aditya Mahajan
On Mon, 23 Jul 2018, Lizardo M. Reyna Bowen wrote: Hi, I want to use the some symbols for phone and email (envelope) in my curriculum vitae to get it look more modern. How is the way to do it in ConTexT? Use a font that provides these symbols. One option is fontawesome.

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Aditya Mahajan
On Mon, 23 Jul 2018, Huseyin Özoguz wrote: Dear list, how can I align the text of the header in the double-page layout to the middle? I want something like that: \setupheadertexts [{\startalignment[middle] \definedfont[name:Gentium_Basic at 9pt]\getmarking[chapter] \stopalignment}][]

Re: [NTG-context] text in mathematics

2018-07-09 Thread Aditya Mahajan
On Mon, 9 Jul 2018, Hans Åberg wrote: On 8 Jul 2018, at 23:00, Otared Kavian wrote: The advantage being that if the above formula appears in an environment such as a Theorem (where the text is typeset in italic, or slanted) the text in the above \mbox will be also in italic or slanted.

Re: [NTG-context] TABLE: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-20 Thread Aditya Mahajan
On Sat, 9 Jun 2018, Procházka Lukáš Ing. wrote: Hello, I have two questions about TABLEs. Suppose having the following code: \setuplayout[page] \starttext \startalignment[middle]

Re: [NTG-context] TeXLive and ConTeXt

2018-06-07 Thread Aditya Mahajan
On Wed, 6 Jun 2018, Aditya Mahajan wrote: Hi Otared, On Wed, 6 Jun 2018, Otared Kavian wrote: I don't know to whom I should write to have ConTeXt enabled in TeXLive when one installs it: can anyone give me a hint? $context test resolvers | trees | analyzing 'home:texmf' [...] '.'/usr

  1   2   3   4   5   6   7   8   9   10   >