Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-21 Thread Aditya Mahajan
On Tue, 20 Dec 2016, Jaroslav Hajtmar wrote: very much for your Metapost example. This I certainly sufficient for the production of simple images for my ideas. \define[1]\mycircle{ \startASY import graph; draw(Circle((0,0),#1)); \stopASY } \starttext

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-20 Thread Aditya Mahajan
On Tue, 20 Dec 2016, Alan Braslau wrote: On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan <adit...@umich.edu> wrote: The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar). Hans has developed tools

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Aditya Mahajan
On Mon, 19 Dec 2016, Jaroslav Hajtmar wrote: There is a similar possibility, at least in Metapost? For simpler pictures it would probably suffice The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar). For

Re: [NTG-context] Undefined control sequence | $\shortmid$ | $\shortparallel$

2016-12-13 Thread Aditya Mahajan
On Wed, 14 Dec 2016, Richard Mahoney | Indica et Buddhica wrote: Although I've enabled this module: \usemodule[fnt-25] both of the following: $\shortmid$ $\shortparallel$ result in: tex error ... ! Undefined control sequence Does anyone know if these commands are available under in

Re: [NTG-context] question about \setupitemgroup

2016-12-08 Thread Aditya Mahajan
On Sun, 27 Nov 2016, Pablo Rodriguez wrote: I have the following sample: \setupwhitespace[5em] \startsetups[smallwspa] \setupwhitespace[small] \setupblank[small] \stopsetups \setupitemize[each][indenting=no, setups=smallwspa] The setupitemize command does not

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put let g:mp_metafun_macros = 1 into your vimrc. Ah, great! > The indent file is

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Tue, 1 Nov 2016, Nicola wrote: I have updated the Vim page at ConTeXt Garden: http://wiki.contextgarden.net/Vim It may be considered as the official documentation of the ConTeXt scripts in Vim, as the only other documentation is the source code :) Hi Nicola, I wonder if you have

Re: [NTG-context] Example of Equivalent of Beamer with \onslide

2016-10-22 Thread Aditya Mahajan
On Sat, 22 Oct 2016, B.A.Lee wrote: Sorry, I cannot help but ask for the functionalities that came with Beamer. But these are the essential ones. The ConTeXt stepping mechanism uses javascript and works only on Adobe Acrobat. For that reason, jI use some homegrown macros for stepping

Re: [NTG-context] Bug in typing linenumbering if document starts with a typing environment

2016-10-21 Thread Aditya Mahajan
Bump! On Thu, 13 Oct 2016, Aditya Mahajan wrote: Hi, This is based on a bug-report on tex.sx: http://tex.stackexchange.com/q/333987/323 If a document starts with a typing environment then line numbering is not shown. Consider \starttext \doifmode{bugfix}{Whatever} \starttyping

[NTG-context] Bug in typing linenumbering if document starts with a typing environment

2016-10-13 Thread Aditya Mahajan
Hi, This is based on a bug-report on tex.sx: http://tex.stackexchange.com/q/333987/323 If a document starts with a typing environment then line numbering is not shown. Consider \starttext \doifmode{bugfix}{Whatever} \starttyping[numbering=line] Line 1 Line 2 Line 3 Line 4

Re: [NTG-context] filter module: call function before calling the filter command?

2016-10-13 Thread Aditya Mahajan
On Wed, 12 Oct 2016, Henning Hraban Ramm wrote: Now, I’d like to overwrite "texsettings.ly", containing the setting of ConTeXt’s text width, each time before I call LilyPond, to adapt its note line width to the current text width. That would automate the line width adaption to e.g. columns.

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-13 Thread Aditya Mahajan
On Thu, 13 Oct 2016, Henning Hraban Ramm wrote: Am 2016-10-12 um 23:27 schrieb Jonas Baggett : There are ConTeXt threads on tex.stackexchange.com You are confusing Stack Overflow and Stack Exchange ;-). Actually I didn't find the ConTeXt tag there :

Re: [NTG-context] cannot update to latest beta

2016-10-12 Thread Aditya Mahajan
Hi Philipp, On Wed, 12 Oct 2016, Philipp Gesang wrote: It seems fixed now and the most recent commit does indeed have Hans as the author. FYI, I have been mirroring your repo to github: https://github.com/contextgarden/context-mirror If you want, I can give you push access to the github

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-09 Thread Aditya Mahajan
On Sun, 9 Oct 2016, Aditya Mahajan wrote: On Sun, 9 Oct 2016, Jonas Baggett wrote: The basic idea I have is a database of ConTeXt documents, where everyone can add his own documents. We have also to make it easy to find there insightful examples in ConTeXt that will help someone to achieve

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-09 Thread Aditya Mahajan
On Sun, 9 Oct 2016, Jonas Baggett wrote: The basic idea I have is a database of ConTeXt documents, where everyone can add his own documents. We have also to make it easy to find there insightful examples in ConTeXt that will help someone to achieve what he is trying to do. Then users,

Re: [NTG-context] Recommendations on presentations

2016-10-07 Thread Aditya Mahajan
On Thu, 6 Oct 2016, Jan U. Hasecke wrote: Am 05.10.2016 um 11:15 schrieb Nicola: On 2016-10-05 08:25:03 +, Otared Kavian said: Is it better to simply define the layout from scratch? For me, yes. I have found this step-by-step guide good to start with:

[NTG-context] Taking extensible math accents from fallback font

2016-09-28 Thread Aditya Mahajan
Hi, Is it possible to take particular math accents from the fallback font. In praticular, I want to use NeoEuler as the math font, but want the \widehat and \widetilde accents to be taken from Pagella. This is because the widetilde accent of neo euler does not change the the size of the

[NTG-context] Bug with nested itemize

2016-09-22 Thread Aditya Mahajan
Hi, There is a bug with nested itemize of two different groups are mixed. For example: \defineitemgroup[legal] \starttext \startlegal[n] \item Level 1 \startlegal[n] \item Level 2 \startitemize[n] \item Level 3 \stopitemize \stoplegal \stoplegal \stoptext

Re: [NTG-context] itemize columns transposed

2016-09-17 Thread Aditya Mahajan
On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote: Is there a reason why the above does not work using \item, like \startitemize[a,horizontal,three] \item $\int_0^2 1+2x\,dx$ \item $\int_0^{\ln 2} e^s\,ds$ \item $\int_0^{\ln 2} e^{2s}\,ds$ \item $\int_0^{\pi} \sin t\,dt$ \item $\int_0^{2\pi}\sin

Re: [NTG-context] Simpleslides presentation: list of topics

2016-09-15 Thread Aditya Mahajan
Actually what I wanted to do was just to put a list of my topics on one page (and this can be done easily), and then what is lacking at the moment is a link to jump to that page from any other slide. I simply put the overview page (it could be the TOC in your case) on the last page. Then

Re: [NTG-context] Simpleslides presentation: list of topics

2016-09-15 Thread Aditya Mahajan
Another question: I am not at all familiar with the code you have written for the nice visual counter used in simpleslides module. Would it be possible to add interactivity to each portion of that visual counter, in such that upon clicking on that portion one jumps to the corresponding page?

Re: [NTG-context] Simpleslides presentation: list of topics

2016-09-15 Thread Aditya Mahajan
On Thu, 15 Sep 2016, Otared Kavian wrote: Hi Thomas, Thanks for your quick answer. Actually, mistakenly, I thought you had gave up the simplesildes module, not Aditya… And I included Wolfgang because he follows everything and has insight for everything… Anyhow, thank you for sharing this

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Aditya Mahajan
On Sat, 10 Sep 2016, Otared Kavian wrote: Hi Hans, Following up the previous bug report, I tried the latest version, ConTeXt ver: 2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the problem with the placement of equation numbers on the left, when using \startalign.

Re: [NTG-context] Problem with \leqalignno

2016-09-10 Thread Aditya Mahajan
On Sun, 11 Sep 2016, Mingranina Gingranina wrote: Hello All, I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context: \starttext \placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^2 &= c^2

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Aditya Mahajan
On Sat, 10 Sep 2016, Hans Åberg wrote: On 10 Sep 2016, at 16:06, Hans Hagen wrote: On 9/10/2016 12:57 PM, Hans Åberg wrote: The STIX fonts, and XITS then, support Unicode math semantic styles. So perhaps the TeX commands should expand to these: what tex commands ... we're

Re: [NTG-context] Indentation after margin float with caption

2016-09-07 Thread Aditya Mahajan
On Tue, 6 Sep 2016, Mikael P. Sundqvist wrote: \unprotect \def\page_one_place_float_auto {\page_one_place_float_otherwise\nonoindentation} \def\page_one_place_float_bottom {\page_one_place_float_otherwise\nonoindentation} \def\page_one_place_float_margin

Re: [NTG-context] Indentation after margin float with caption

2016-09-06 Thread Aditya Mahajan
On Tue, 6 Sep 2016, Wolfgang Schuster wrote: Mikael P. Sundqvist 6. September 2016 um 21:07 Dear all, since I got no answer here I cross posted on stackexchange (see http://tex.stackexchange.com/q/328147/52406). Now, I got a solution to this from Aditya. It

Re: [NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan
On Sun, 28 Aug 2016, Aditya Mahajan wrote: Hi, This is based on a question on TeX.SE https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule All marginrules except those of level 1 stop working after \placefigure[right]. Here is a minimal example

[NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan
Hi, This is based on a question on TeX.SE https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule All marginrules except those of level 1 stop working after \placefigure[right]. Here is a minimal example:

Re: [NTG-context] \definemathcommand lowers the text

2016-08-18 Thread Aditya Mahajan
On Wed, 17 Aug 2016, Mikael P. Sundqvist wrote: Hi! look at the output of this (attached) \definemathcommand [D] [nolop] {\mfunction{D}} \starttext Compare $\D f$ with $\mfunction{D}f$. \stoptext In the \D, the D is lowered a bit. I think it should not be, or else I misuse something. If so,

Re: [NTG-context] placelocalfootnotes breaks center alignment

2016-08-15 Thread Aditya Mahajan
On Mon, 15 Aug 2016, Wolfgang Schuster wrote: Henri Menke 29. Juli 2016 um 12:48 Dear list, sometimes, one wants to place footnotes in a table which then appear right below the last row. Therefore ConTeXt ships the clever `\start...\stoplocalfootnotes`

Re: [NTG-context] Source very outdated

2016-08-02 Thread Aditya Mahajan
On Tue, 2 Aug 2016, Henri Menke wrote: Dear list, I'm quite new to ConTeXt and have worked my way through a lot of documentation. The Garden is an invaluable source as well as this mailing list. Sometimes it occurs that a feature which is announced on the mailing list is neither

Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-31 Thread Aditya Mahajan
On Sat, 30 Jul 2016, Thangalin wrote: Hi, Possible problem converting SVG to PDF. $ cat test.tex \setupexternalfigures[ order={svg,pdf,png}, location={local,default,global}, directory={images}, frameoffset=.5em, maxwidth=\makeupwidth, width=\makeupwidth, ] \starttext

Re: [NTG-context] Problem with the environment {\quotation}

2016-07-20 Thread Aditya Mahajan
On Thu, 21 Jul 2016, Fabrice Couvreur wrote: Hello, With the latest version of Standalone Context, environment {\quotation} causes a compilation error but with texlive 2016, no problem. thanks, Fabrice \mainlanguage[fr] \starttext Seuls les nombres vont servir aux calculs, le gérant peut

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Aditya Mahajan
On Tue, 12 Jul 2016, Fabrice Couvreur wrote: this is more modern (the method, not the font): How filling the number ? \starttext \startMPpage draw outlinetext.d ("Hello") (withpen pencircle scaled 0.1bp withcolor red) ysized 60pt ; \stopMPpage

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Aditya Mahajan
On Tue, 12 Jul 2016, Hans Hagen wrote: On 7/12/2016 5:07 PM, Aditya Mahajan wrote: On Tue, 12 Jul 2016, Hans Hagen wrote: On 7/12/2016 3:44 PM, Henri Menke wrote: Dear Hans, thanks for your reply. Indeed there are color definitions in `pgfutil-context.def`. However, they are commented

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Aditya Mahajan
On Tue, 12 Jul 2016, Hans Hagen wrote: On 7/12/2016 3:44 PM, Henri Menke wrote: Dear Hans, thanks for your reply. Indeed there are color definitions in `pgfutil-context.def`. However, they are commented out with the message % no need for x colors (users can load it if needed) ...

Re: [NTG-context] ConTeXt and LilyPond, another question

2016-06-30 Thread Aditya Mahajan
On Thu, 30 Jun 2016, Robert Blackstone wrote: Dear all, Inserting LilyPond scores or snippets into a ConTeXt file gives very nice results, better than inserting LilyPond pdf's as floats. So far however, using floats has the advantage that they can be given a caption, that ConTeXt gives them

Re: [NTG-context] Equivalent in ConTeXt mkiv for LaTeX's picture environment?

2016-06-25 Thread Aditya Mahajan
On Sat, 25 Jun 2016, Thomas Fehige wrote: The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements and coordinates on the go, like

Re: [NTG-context] Product-component structure

2016-06-25 Thread Aditya Mahajan
On Sat, 25 Jun 2016, Wolfgang Schuster wrote: Hans Hagen 25. Juni 2016 um 11:56 i always use one main environment (that can include others) and putting an \environment on top of a component is then not much overhead (compared to getting the content done) The problem

Re: [NTG-context] Product-component structure

2016-06-25 Thread Aditya Mahajan
On Sat, 25 Jun 2016, Wolfgang Schuster wrote: Aditya Mahajan <mailto:adit...@umich.edu> 25. Juni 2016 um 18:37 On Sat, 25 Jun 2016, Hans Hagen wrote: So, to a newcomer, one can suggest to simply use components and environments. What is the advatange of the extra structure pr

Re: [NTG-context] Product-component structure

2016-06-25 Thread Aditya Mahajan
On Sat, 25 Jun 2016, Hans Hagen wrote: So, what's the recommended alternative? One could move the \environment to the components, but that can lead to a lot of repetitions (if there are many environments). i always use one main environment (that can include others) and putting an

Re: [NTG-context] Product-component structure

2016-06-25 Thread Aditya Mahajan
On Sat, 25 Jun 2016, Wolfgang Schuster wrote: Aditya Mahajan <mailto:adit...@umich.edu> 24. Juni 2016 um 21:19 Hi, This is based on a question on tex.sx: http://tex.stackexchange.com/q/316504/323 In file-job.lua, we have: local processors = utilities.storage.allocate { ... [v_p

[NTG-context] Product-component structure

2016-06-24 Thread Aditya Mahajan
Hi, This is based on a question on tex.sx: http://tex.stackexchange.com/q/316504/323 In file-job.lua, we have: local processors = utilities.storage.allocate { ... [v_product] = { [v_text]= { "many", processfilemany }, [v_project] = { "once", processfileonce

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Aditya Mahajan
On Fri, 17 Jun 2016, Wolfgang Schuster wrote: Pavneet Arora 17. Juni 2016 um 14:22 I tried to use Aditya's suggestion (which was for Natural Tables) to keep paragraphs on the same page: \noindent{\blank[samepage]} but I don't seem to have much success with the

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
On Thu, 16 Jun 2016, Alan BRASLAU wrote: On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan <adit...@umich.edu> wrote: And some stage, it will be nice to discuss the possiblility of adding background to formulas, especially aligned formulas. something like a \setupformula [

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
On Thu, 16 Jun 2016, Hans Hagen wrote: On 6/16/2016 6:58 PM, Aditya Mahajan wrote: Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip, but now it does. it doesn't but somehow

[NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip, but now it does. Consider the following example: \showframe \setupitemize[margin=6em] \setupformula[align=flushleft] \starttext

Re: [NTG-context] environment flushright

2016-06-10 Thread Aditya Mahajan
On Fri, 10 Jun 2016, Hans Hagen wrote: On 6/10/2016 5:56 PM, Aditya Mahajan wrote: On Fri, 10 Jun 2016, Hans Hagen wrote: \leftskip\zeropoint plus \plustwo\bodyfontsize \rightskip \zeropoint plus 1fill \parfillskip \zeropoint plus -1fill \spaceskip \interwordspace \xspaceskip .5

Re: [NTG-context] environment flushright

2016-06-10 Thread Aditya Mahajan
On Fri, 10 Jun 2016, Hans Hagen wrote: \leftskip\zeropoint plus \plustwo\bodyfontsize \rightskip \zeropoint plus 1fill \parfillskip \zeropoint plus -1fill \spaceskip \interwordspace \xspaceskip .5\emwidth Would it be useful to add this (and middle align last line) as two new

Re: [NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Aditya Mahajan
On Thu, 9 Jun 2016, Pavneet Arora wrote: Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables. I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how? advTHANKSance

Re: [NTG-context] Bug with setuplanguage

2016-06-05 Thread Aditya Mahajan
On Sun, 5 Jun 2016, Wolfgang Schuster wrote: Aditya Mahajan <mailto:adit...@umich.edu> 5. Juni 2016 um 00:32 Hi, I discovered this bug while answering a question on TeX.SX. Consider: \define\cyrdash{\dontleavehmode\scale[sx=0.80]{---}} \unprotect \setuplanguage [\s!ru] [

[NTG-context] Bug with setuplanguage

2016-06-04 Thread Aditya Mahajan
Hi, I discovered this bug while answering a question on TeX.SX. Consider: \define\cyrdash{\dontleavehmode\scale[sx=0.80]{---}} \unprotect \setuplanguage [\s!ru] [ \c!midsentence=\cyrdash, \c!leftsentence=\cyrdash, \c!rightsentence=\cyrdash, ] \protect \setupbodyfont[dejavu]

[NTG-context] Incorrect math kerning

2016-05-29 Thread Aditya Mahajan
Hi, This is based on a question about latex on tex.stackexchange: http://tex.stackexchange.com/q/312098/323 but context shows the same behaviour. The subscript "i" in the following example is kerned incorrectly (it is too far away from W). Is this a bug in the font, or with the fontloader?

Re: [NTG-context] Underbar offset

2016-05-26 Thread Aditya Mahajan
On Thu, 26 May 2016, Mojca Miklavec wrote: \catcode`č=\active \defč{\buildtextaccent\textcaron c} Instead of creating an active character, does this work: \definefontfeature [default] [default] [compose=yes]

Re: [NTG-context] name current font

2016-05-22 Thread Aditya Mahajan
On Sun, 22 May 2016, Meer, Hans van der wrote: How do I get the name of the currently set font? macro \currentfont does not exist. \fontclass? Also see: http://tex.stackexchange.com/a/287123/323 Aditya ___ If

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan
On Sat, 14 May 2016, Hans Åberg wrote: On 14 May 2016, at 18:41, Aditya Mahajan <adit...@umich.edu> wrote: On Sat, 14 May 2016, Hans Åberg wrote: On 14 May 2016, at 01:25, Hans Hagen <pra...@wxs.nl> wrote: installing and running the garden distribution is quite simple (as

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan
On Sat, 14 May 2016, Hans Åberg wrote: On 14 May 2016, at 01:25, Hans Hagen wrote: installing and running the garden distribution is quite simple (as is updating) .. there are less files too (so no big burden to have it alongside tex live) With this installation, I get a

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-13 Thread Aditya Mahajan
On Fri, 13 May 2016, Hans Åberg wrote: There may not be so many symbols: the “large operators" in the Tex Book, p. 435, though Unicode have more, and some others like √ U+221A for \sqrt. If you want, you can collect such mappings in a separate module. I could not make your code working -

Re: [NTG-context] after with fixed position

2016-05-01 Thread Aditya Mahajan
On Sun, 1 May 2016, Pablo Rodriguez wrote: For future reference (and replying to myself), the solution may read: OT, but ... \define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}} you can define a new frame using: \defineframed[chapterframe][frame=off,

Re: [NTG-context] convert old dvi files

2016-04-19 Thread Aditya Mahajan
On Tue, 19 Apr 2016, Hans Hagen wrote: On 4/19/2016 10:32 PM, Meer, Hans van der wrote: it makes not much sense to add very old dvps stuff to the distribution Some of these dvips support files are needed to use the pstricks module. See

Re: [NTG-context] How to embed formatting commands into the syntax highlight code generated by scite module?

2016-04-11 Thread Aditya Mahajan
> i want to embed some formatting commands into code highlighted with scite or > vim module, but i do not find its option like "escape=yes". Is there a way to > do it? > With the vim module, `escape=yes` should work in the comment region. See the documentation:

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Aditya Mahajan
On Mon, 11 Apr 2016, Alan BRASLAU wrote: By the way, we added colo-imp-crayola having some funky, hallucinogenic names (according to Hans) as well as colo-imp-ral. (The first might be of interest to Americans and the second to Europeans ;-) These are nice colors. For anyone interested, you

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Aditya Mahajan
On Mon, 11 Apr 2016, Meer, Hans van der wrote: On 11 Apr 2016, at 16:17, Alan BRASLAU > wrote: Remember that ConTeXt colors can be accessed in MP as \MPcolor{orange} Alan However with the snippet below I see the default black with MPcolor and

Re: [NTG-context] Redirect compilation to another .pdf?

2016-04-10 Thread Aditya Mahajan
On Sun, 10 Apr 2016, Lukáš Procházka wrote: My way is to compile into a "shadow copy" which allow use to view the document even during its compilation. Once the compilation is done, I close the .pdf, I move the compiled "shadow copy" to the well-named .pdf and I open it in a viewer. So I'm

Re: [NTG-context] defining a comamnd as variable which behaves as constant

2016-04-09 Thread Aditya Mahajan
On Sun, 10 Apr 2016, Pablo Rodriguez wrote: Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}%

[NTG-context] Square pens and dash pattern

2016-04-05 Thread Aditya Mahajan
Hi, There appears to be a metapost bug with square pens and dash patterns: \starttext \startMPcode pickup pencircle scaled 1bp; drawarrow origin -- (5cm, 4cm) dashed evenly; pickup pensquare scaled 1bp; drawarrow origin -- (5cm,-4cm) dashed evenly; \stopMPcode \stoptext Note

[NTG-context] Consistent random number generation

2016-04-05 Thread Aditya Mahajan
Hi, Is it possible to generate consistent random numbers across multiple operating systems. For example, consider the following file: math.randomseed(1000) print(math.random()) print(math.random()) print(math.random()) If I process this using texlua, the output on linux and MacOS is

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aditya Mahajan
On Thu, 31 Mar 2016, Alan BRASLAU wrote: On Thu, 31 Mar 2016 17:51:07 -0400 Aditya Mahajan <adit...@umich.edu> wrote: @Hans: Does it make sense to disable \incrementcounter if \trialtypesetting is active? I was going to suggest such things... My motivation is different. If you ha

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aditya Mahajan
On Thu, 31 Mar 2016, Aidan Nichol wrote: On Wed, 30 Mar 2016, Aidan Nichol wrote: I have been looking at various options for controlling how figures are placed on a page and based on answers to similar questions in this mailing list I tried various options. The most flexible one seems to

Re: [NTG-context] Skipped figure numbers

2016-03-30 Thread Aditya Mahajan
On Wed, 30 Mar 2016, Aidan Nichol wrote: I have been looking at various options for controlling how figures are placed on a page and based on answers to similar questions in this mailing list I tried various options. The most flexible one seems to be using tables e.g.

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-23 Thread Aditya Mahajan
On Tue, 22 Mar 2016, Hans Hagen wrote: a next beta will provide three new keywords (related to n times parindent filling, fwiw) \startnarrower[left] \setupalign[four] 4>\the\parfillskip \ward \par \stopnarrower \startnarrower[left] \setupalign[three] 3>\the\parfillskip \ward \par

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

2016-03-09 Thread Aditya Mahajan
On Thu, 10 Mar 2016, Peter Rolf wrote: Am 10.03.2016 um 00:03 schrieb Aditya Mahajan: The drops module uses the primitive \pdfpxdimen in a couple of places, but that is no longer defined in the current beta. What is the equivalent command now? Examples of usage: \pdfpxdimen1in\relax\divide

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

2016-03-09 Thread Aditya Mahajan
On Wed, 9 Mar 2016, Aditya Mahajan wrote: The drops module uses the primitive \pdfpxdimen in a couple of places, but that is no longer defined in the current beta. What is the equivalent command now? Examples of usage: \pdfpxdimen1in\relax\divide\pdfpxdimen\numexpr\dropsparameter\c

[NTG-context] Undefined control sequence: \pdfpxdimen

2016-03-09 Thread Aditya Mahajan
The drops module uses the primitive \pdfpxdimen in a couple of places, but that is no longer defined in the current beta. What is the equivalent command now? Examples of usage: \pdfpxdimen1in\relax\divide\pdfpxdimen\numexpr\dropsparameter\c! resolution\relax % set actual pixel dimension

[NTG-context] context --pipe

2016-03-06 Thread Aditya Mahajan
With context 2016.02.25, context --pipe is no longer working. I get: context --pipe resolvers | trees | analyzing 'home:texmf' mtx-context | entering scrollmode, end job with \endThis is LuaTeX, Version beta-0.89.0 (TeX Live 2016/dev) system commands enabled. resolvers >

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Aditya Mahajan
On Fri, 4 Mar 2016, Jan U. Hasecke wrote: Hi all, I am working on a small documentation and today I tried all the options in \definedescription and/or \setupdescriptions to understand what is going on. I have no idea what these options are doing: closecommand titleleft titleright

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-02 19:34:00 +, Aditya Mahajan said: On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: > I'm using the latest beta, and I need syntax coloring for SQL > (PostgreSQL variant). According to the wiki, there is no SQL > syntax coloring available for

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-02 02:14:33 +, Aditya Mahajan said: I do not load the default vimrc, because that drastically slows down the module. That makes sense. So, Vim is run with something like `vim -u NONE`, I guess. Yes. And if the vimrc option is used

Re: [NTG-context] Custom syntax highlighting

2016-03-01 Thread Aditya Mahajan
On Tue, 1 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant). According to the wiki, there is no SQL syntax coloring available for MKIV yet, but I'd

Re: [NTG-context] Custom syntax highlighting

2016-03-01 Thread Aditya Mahajan
On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant). According to the wiki, there is no SQL syntax coloring available for MKIV yet, but I'd be happy to be wrong :) You can use the vim module:

[NTG-context] Math fractions

2016-02-28 Thread Aditya Mahajan
Something is wrong in the current implmentation of \tfrac. If we take away all the bells and whistles provided by \definemathfraction, * \tfrac#1#2 should be equal to {\textstyle #2 \over #1} * \dfrac#1#2 should be equal to {\displaystyle #2 \over #1} * \frac should be equal to \tfrac in

Re: [NTG-context] Vim snippets

2016-02-22 Thread Aditya Mahajan
On Mon, 22 Feb 2016, David Nebauer wrote: Newbie question: are there any vim snippets available for context? I use the attached (tuned to my writing style and this depends on latex suite for IMAP functions). This file is placed in $VIM/after/ftplugin Adityaif !exists('loaded_snippet') ||

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-17 Thread Aditya Mahajan
On Wed, 17 Feb 2016, Alan BRASLAU wrote: However, I can see situations where one might want to tighten spacing in order to fit a particular expression within a line or in a table, for example. Here, \math[options]{expression} is a reasonable syntax, yet I cannot foresee ever using the very

Re: [NTG-context] two issues with xtables

2016-02-17 Thread Aditya Mahajan
On Wed, 17 Feb 2016, Pablo Rodriguez wrote: On 02/16/2016 09:07 PM, Wolfgang Schuster wrote: Pablo Rodriguez 16. Februar 2016 um 20:59 [...] MetaPost is unknown to me. How would it be with this minimal sample? There is a second method which let you create your own argument for the leftframe,

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Aditya Mahajan
On Tue, 16 Feb 2016, Marco Patzer wrote: On Tue, 16 Feb 2016 08:21:42 -0700 Alan BRASLAU wrote: I do note that the VIM syntax highlighting routine is pretty poor and has difficulties around $, which is a symbol that I like using (unpaired) quite a lot in MetaPost

Re: [NTG-context] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Aditya Mahajan
On Mon, 15 Feb 2016, Hans Hagen wrote: On 2/10/2016 10:14 PM, Laurent d'Airsy wrote: I would like to create a dotted underbar in ConTeXt with the | \defineunderbar|mechanism. Is that possible? i uploaded a beta where you can test: test {\red\underrandoms{test me}} and \underrandom{test} or

Re: [NTG-context] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Aditya Mahajan
On Mon, 15 Feb 2016, Hans Hagen wrote: On 2/10/2016 10:14 PM, Laurent d'Airsy wrote: I would like to create a dotted underbar in ConTeXt with the | \defineunderbar|mechanism. Is that possible? i uploaded a beta where you can test: test {\red\underrandoms{test me}} and \underrandom{test} or

Re: [NTG-context] If figures are placed left, left-aligned captions are unwantedly centered

2016-01-29 Thread Aditya Mahajan
On Fri, 29 Jan 2016, Hans Hagen wrote: On 1/29/2016 9:30 PM, d_jan wrote: Hello fellow ConTeXt users, I want to place figures left so that text wraps around them if they have less width than \textwidth. The figure captions should be aligned left (flushleft). What happens: The captions

Re: [NTG-context] ConTeXt vs Beamer

2016-01-26 Thread Aditya Mahajan
On Mon, 25 Jan 2016, Saša Janiška wrote: I'm (well) aware of ConTeXt's advantage in the sense of being complete package without clashing of different packages which usually happens in LaTeX world, I wonder if someone can give some piece of advice to learn and/or switch ConTeXt for preparing

Re: [NTG-context] \quote inside \emph

2016-01-17 Thread Aditya Mahajan
On Mon, 18 Jan 2016, Wolfgang Schuster wrote: Hans Hagen 18. Januar 2016 um 00:56 we could change it (i don't care too much as i've never use them nested) up to you/wolfgang/... to decide Remove the default setting and for completeness sake add style/color settings to

Re: [NTG-context] \quote inside \emph

2016-01-16 Thread Aditya Mahajan
On Sat, 16 Jan 2016, Alan Bowen wrote: When used in inside \emph, \quote puts the words cited into roman face. Thus, \starttext \emph{The \quote{Problemata} in Medieval Times} \emph{The \quote{\emph{Problemata}} in Medieval Times} \stoptext This seems odd. Should \quote not leave the style

Re: [NTG-context] Automatic negative tracking to prevent slight overfull hbox's

2016-01-16 Thread Aditya Mahajan
On Thu, 14 Jan 2016, Alexander Dyomin wrote: Dear list, when I stumble upon a slightly overhanging line (where it's not allowed to hyphenate the hanging word and putting it on next line leaves huge whitespaces), decreasing letterspacing in that line seems like a good idea, and I manually

Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-22 Thread Aditya Mahajan
On Tue, 22 Dec 2015, Hans Hagen wrote: On 12/22/2015 5:36 PM, Aditya Mahajan wrote: On Tue, 22 Dec 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > > \starttikzpicture > %\startaxis[legend entries={Cos,Sin2,Sin},reverse legend] > \cldcommand{startaxis{[&qu

Re: [NTG-context] strange output in math display mode

2015-12-22 Thread Aditya Mahajan
On Tue, 22 Dec 2015, Alan BRASLAU wrote: Wolfgang, Can you explain to us why it should be preferable for ConTeXt users to employ \frac12 rather than the native TeX construction {1\over 2}? I understand that the macro \frac does some additional trickery but the two constructions should *always*

Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-22 Thread Aditya Mahajan
On Tue, 22 Dec 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \starttikzpicture %\startaxis[legend entries={Cos,Sin2,Sin},reverse legend] \cldcommand{startaxis{["legend entries"] = "{Cos,Sin2,Sin}", "reverse legend"}} This is not valid lua. On a lua prompt, try t = {["legend

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Aditya Mahajan
On Tue, 8 Dec 2015, Wolfgang Schuster wrote: nor in my description (is the setups key even supposed to work in \definedescription?). No, there is no setups key for description and you have to misuse the style key. Should we add one? It is a bit annoying at times that some of the

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-07 Thread Aditya Mahajan
On Mon, 7 Dec 2015, Henning Hraban Ramm wrote: Hi again, since my bibliographic setup works well, thanks again, I’d like to tighten it a bit, i.e. reduce spacing under defined circumstances. In the docs and sources I found only how to affect spacing of languages, and only "packed" or

Re: [NTG-context] Command definitions in ma-cb-en.tex

2015-11-30 Thread Aditya Mahajan
On Sun, 29 Nov 2015, Jan U. Hasecke wrote: Hi all, this is a stupid question, I fear: In "ConTeXt Mark IV an excursion" in appendix A I see many command definitions. I browsed the sources of this document but could not find the point where these list is defined. I know that in setup-en.pdf

<    3   4   5   6   7   8   9   10   11   12   >