[NTG-context] steps module

2018-03-04 Thread John Kitzmiller
Adjust shading and outline of cells and text in steps module, or not available as written? Something like \startSTEPtable[frame=off], etc. I have grabbed the code to modify for local input, but I have made a terrible mess of it!

Re: [NTG-context] vertical alignment of images in Natural Table

2017-10-28 Thread John Kitzmiller
Martin Althoff wrote: Hello, I am trying to vertically align images within a bTABLE/Natural Table cell. The result should be 4 cards on an A4 page with a simple maths exercise and a small image that illustrates the exercise. The image should be horizontally and vertically centered

[NTG-context] xtable align

2016-07-18 Thread John Kitzmiller
In the first table, the lohi of align works, but the middle does not have any effect. Putting the content in a frame gives the desired result as in the second table. This is not a problem, I just wondered if it is supposed to work in the first table. Thanks, John \useMPlibrary[dum]

Re: [NTG-context] \defineparagraphs

2016-07-09 Thread John Kitzmiller
> On 8Jul, 2016, at 09:20, Wolfgang Schuster > wrote: > >> The code below works with context2016.02.15, but fails with >> context2016.05.19. >> >> Itemize within the defined paragraph (Mypar) no longer puts the thinrule in >> the margin (see the third question.)

Re: [NTG-context] \inright

2016-06-25 Thread John Kitzmiller
> John Kitzmiller <mailto:kitz at inradius.net > <https://mailman.ntg.nl/mailman/listinfo/ntg-context>> > 25. Juni 2016 um 16:20 > The following is no longer putting the “answer blank” in the right margin. > > \define\ansblank{\inright{\getnumber[itemgroup:itemize].

[NTG-context] \inright

2016-06-25 Thread John Kitzmiller
The following is no longer putting the “answer blank” in the right margin. \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}} \setupitemgroup [itemize] [n, style=bold,right=\ansblank] \starttext \startitemize[n] \item A question. \stopitemize \showframe \stoptext When I

[NTG-context] anglestriped shifts path

2016-02-03 Thread John Kitzmiller
I expect anglestriped to work more like fill, but it shifts the path. Is it intended behavior? \startMPpage[offset=2mm] path p; p = unitsquare scaled 4cm ; filldraw p withcolor blue; draw p; draw p anglestriped(0,0,0) withcolor blue; \stopMPpage Thanks, John

Re: [NTG-context] m-graph read data and plot

2015-08-13 Thread John Kitzmiller
On Aug 9, 2015, at 8:38 AM, Alan BRASLAU alan.bras...@cea.fr wrote: One needs to think about closing the data file as ConTeXt opens a single MP instance that is run throughout the entire document AND over its multiple runs. If the file is left open, a second run will try to read on from the

Re: [NTG-context] m-graph read data and plot

2015-08-07 Thread John Kitzmiller
On Thu, 6 Aug 2015 16:48:51 -0400 John Kitzmiller k...@inradius.net mailto:k...@inradius.net wrote: On Aug 6, 2015, at 12:59 PM, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl wrote: On 8/6/2015 5:30 PM, John Kitzmiller wrote: Given a file, data.d

Re: [NTG-context] m-graph read data and plot

2015-08-06 Thread John Kitzmiller
On Aug 6, 2015, at 12:59 PM, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl wrote: On 8/6/2015 5:30 PM, John Kitzmiller wrote: Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph

[NTG-context] m-graph read data and plot

2015-08-06 Thread John Kitzmiller
Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph] \startMPpage[instance=graph,offset=3mm] draw begingraph(5cm,5cm); gdata(data.d, v, for n = 1 upto 3: a[n] =

Re: [NTG-context] Change location of local texmf

2015-07-27 Thread John Kitzmiller
The minimals use ~/texmf for the local tex folder. How to change it to ~/dropbox/texmf? My ConTeXt installation is ~/dropbox/context. One option is: ln -s ~/dropbox/texmf ~/texmf Aditya A fine option it is. Thank you

[NTG-context] Change location of local texmf

2015-07-25 Thread John Kitzmiller
The minimals use ~/texmf for the local tex folder. How to change it to ~/dropbox/texmf? My ConTeXt installation is ~/dropbox/context. I have tried directly modifying cnf files but I am missing some magic. ___ If

Re: [NTG-context] crash with new beta (2015.03.09 19:27)

2015-03-09 Thread John Kitzmiller
On Mar 9, 2015, at 5:13 PM, Hans Hagen wrote: i uploaded a new beta ... works at luigi's end (actually we tested that previous time too but the issue is only triggered in docs that use positions and tuc files remember that) Hans Now with current version: 2015.03.09 22:02 and

Re: [NTG-context] crash with new beta (2015.03.09 19:27)

2015-03-09 Thread John Kitzmiller
On Mar 9, 2015, at 4:28 PM, Hans Hagen wrote: On 3/9/2015 8:11 PM, Pablo Rodriguez wrote: Hans, I’m afraid that the following sample crashes ConTeXt: \starttext \input knuth \stoptext Error message is the following: tex errorerror on line 1 in file

Re: [NTG-context] crash with new beta (2015.03.09 19:27)

2015-03-09 Thread John Kitzmiller
On Mar 9, 2015, Aditya wrote: By any chance, is the name of your test file `knuth.tex`? Aditya Yes, 127 times yes! Sorry about that. John ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-17 Thread John Kitzmiller
On Feb 16, 2015, at 3:21 PM, Fabrice Couvreur wrote: This does not work with : labeloffset := 2mm; On Feb 09, 2015, Hans Hagen wrote: \startMPpage[offset=2pt] path p, q, r ; pair z ; p := unitsquare scaled 4cm ; z := point 3.6 of p ; q := z--urcorner p ; r := q

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-15 Thread John Kitzmiller
On Feb 15, 2015, at 6:00 AM, Fabrice couvreur.fabr...@wanadoo.fr mailto:couvreur.fabr...@wanadoo.fr wrote: Thank you for this new example. Try the mpost variable lableoffset := ? to adjust. This does not seem to workwith lableoffset := 2mm. Fabrice I spelled it wrong, sorry! It is

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-11 Thread John Kitzmiller
On Feb 10, 2015, at 3:42 PM, couvreur.fabr...@wanadoo.fr mailto:couvreur.fabr...@wanadoo.fr wrote: Is it possible to have some explanation of the parameters of the macro numberstriped(#1,#2,#3) ? How to have horizontal hatching ? (How to change the slope hatching ?) There is

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread John Kitzmiller
On Feb 9, 2015, at 1:46 PM, Fabrice couvreur.fabr...@wanadoo.fr mailto:couvreur.fabr...@wanadoo.fr wrote: Great, but I did not know the macro numberstriped. Is it a Metapost or Metafun macro? It is a MetaFun macro in mp-tool, afaik. The idea of filling a path is sometimes clipping to a

[NTG-context] 2UP Arranging

2015-02-02 Thread John Kitzmiller
Using 2UP the rightmargin on odd (recto) pages becomes the leftmargin on even (verso) pages. Is there an option for 2UP doublesided to be printed and folded where the rightmargin is always on the righthand side of each ‘page’ from the reader’s viewpoint? Or another layout scheme to get the

Re: [NTG-context] letter booklet

2015-01-31 Thread John Kitzmiller
On Jan 26, 2015, at 4:04 AM, schuster.wolfg...@gmail.com wrote: Am 25.01.2015 um 23:15 schrieb John Kitzmiller k...@inradius.net mailto:k...@inradius.net: Desired outcome: a multipage booklet on letter size paper with margins lined up when duplex printed and folded. Using

[NTG-context] letter booklet

2015-01-25 Thread John Kitzmiller
Desired outcome: a multipage booklet on letter size paper with margins lined up when duplex printed and folded. Using imposition with [letter][letter,landscape] did not work, so to start I used: \definepapersize[booklet][width=140mm,height=216mm] \setuppapersize[booklet][letter,landscape]

Re: [NTG-context] plot data from file: cld

2015-01-05 Thread John Kitzmiller
On Jan 5, 2015, at 5:51 AM, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl wrote: On 1/4/2015 6:04 AM, Akira Kakuto wrote: Dear John, How to make this a polygon? An example: \starttext \startluacode local metafun = context.metafun metafun.start() io.input(DATA) local i, j local

Re: [NTG-context] plot data from file: cld

2015-01-04 Thread John Kitzmiller
On Jan 4, 2015, at 6:00 AM, ntg-context-requ...@ntg.nl wrote: Dear John, How to make this a polygon? An example: Many thanks to you Akira. Reading the file into lua tables is good sense, and thank you for the string manipulations to pass to metafun(). From your teaching I changed this

[NTG-context] plot data from file: cld

2015-01-03 Thread John Kitzmiller
I seek how to use context-lua to draw a path from ‘points’ in an external file. Below is one way to plot points from an external file, call the file DATA with contents: 1 3 -2 2 -3 -1 3 -2 \starttext \startluacode local metafun = context.metafun metafun.start() io.input(“DATA) while true do

Re: [NTG-context] Using Euler with simplefonts

2015-01-01 Thread John Kitzmiller
On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote: I am trying to use the simplefonts approach to get Euler for math, along with TeX Gyre fonts for text. Here is setup magic from Hans and Aditya from August 2013: \usetypescriptfile[euler] \starttypescript[myfamily]

Re: [NTG-context] overlay

2014-11-24 Thread John Kitzmiller
Am 22.11.2014 um 21:32 schrieb John Kitzmiller: Given rectangles with text: \starttext Before:\\ \startMPcode draw unitsquare xscaled 2cm yscaled 1cm; \stopMPcode \\ After:\\ \startMPcode for i=0 upto 1: draw unitsquare scaled 1cm

[NTG-context] overlay

2014-11-22 Thread John Kitzmiller
Given rectangles with text: \starttext Before:\\ \startMPcode draw unitsquare xscaled 2cm yscaled 1cm; \stopMPcode \\ After:\\ \startMPcode for i=0 upto 1: draw unitsquare scaled 1cm xshifted i*cm; endfor; \stopMPcode \stoptext How can a line be drawn connecting the right edges of

Re: [NTG-context] Lua to Context Table

2014-08-02 Thread John Kitzmiller
On Aug 2, 2014, Aditya Mahajan adit...@umich.edu wrote: On Sat, 2 Aug 2014, luigi scarso wrote: On Sat, Aug 2, 2014, John Kitzmiller k...@inradius.net wrote: Here is Lua code that prints the first nine fibonacci numbers: local function fib(n) f={1,1} ...the Wiki entries, CLD, and tried

[NTG-context] Lua to Context Table

2014-08-01 Thread John Kitzmiller
Here is Lua code that prints the first nine fibonacci numbers: local function fib(n) f={1,1} for i=3,9 do f[i]=f[i-1]+f[i-2] end return(f[n]) end for n=1,9 do print(fib(n)) end Here is Context+Lua that prints 3 x 3 table of the first nine natural numbers: \starttext

[NTG-context] s-edu-01.cld

2014-07-30 Thread John Kitzmiller
Where to find s-edu-01.cld mentioned in Context Lua Documents? I use minimals, just updated, --modules=all --engine=luatex. Also tried --modules=s-edu-01.cld as well as Google. ___ If your question is of interest

Re: [NTG-context] ConTeXt minimal on chromebook

2014-02-19 Thread John Kitzmiller
On Feb 17, 2014, at 5:51 PM, ntg-context-requ...@ntg.nl wrote: On Mon, Feb 17, 2014 at 9:23 PM, John Kitzmiller wrote: I attempted to put ConTeXt minimal on Samsung chromebook and got: Error: your system Linux armv7l is not supported yet. Please report to the ConTeXt mailing-list (ntg

[NTG-context] ConTeXt minimal on chromebook

2014-02-17 Thread John Kitzmiller
I attempted to put ConTeXt minimal on Samsung chromebook and got: Error: your system Linux armv7l is not supported yet. Please report to the ConTeXt mailing-list (ntg-context@ntg.nl) This is not a request to support the armv7l (unless it is trivial) but, is it futile to attempt installing

Re: [NTG-context] ConTeXt minimal on chromebook

2014-02-17 Thread John Kitzmiller
On Feb 17, 2014, at 4:01 PM, Martin maaca Rehula wrote: I was using ConTeXt (ages ago) on my Nokia N800. There were/are pre-compiled Debian packages for arm architecture. Try looking this direction. Martin 21:23:53 CET 2014, John Kitzmiller k...@inradius.net napsal(a): I attempted

[NTG-context] nested itemize in margin

2013-10-23 Thread John Kitzmiller
To enumerate answer blanks in the right margin to match the question, thanks to Marco: \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrules[n=1]}} \setupitemgroup [itemize] [n,style=bold,right=\ansblank] I am trying to augment this to handle nested itemizations so that the

Re: [NTG-context] error when installing ConTeXt Standalone

2013-09-25 Thread John Kitzmiller
Maybe you need to specify the installation directory or issue tex/setuptex from inside the install folder? font-opt.lua should be in install folder/tex/texmf-context/tex/context/base John On 09/25/2013 12:01 AM, Mica Semrick wrote: Have you added the bin directory to your PATH? No, I

Re: [NTG-context] Math fallback

2013-07-31 Thread John Kitzmiller
On Jul 31, 2013, at 12:15 PM, ntg-context-requ...@ntg.nl wrote: Am 30.07.2013 um 18:55 schrieb Aditya Mahajan adit...@umich.edu: Is it possible to use the fallback mechanism for math fonts? For example, I am using Neo Euler for math which has a few missing glyphs. Can I use Cambria (or

Re: [NTG-context] bar graphs, m-graph, sarith

2013-07-08 Thread John Kitzmiller
= (scantokens v1, scantokens v2); augment.p(x,0); augment.p(x,y); x := x + 0.4 ; augment.p(x,y); augment.p(x,0); Alan On Sat, 6 Jul 2013 22:01:06 -0400 John Kitzmiller k...@inradius.net wrote: When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract

[NTG-context] bar graphs, m-graph, sarith

2013-07-06 Thread John Kitzmiller
When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract) seems to Sadd instead. An mwe of a bar graph: (data1 is a separate file containing 01 02 02 03) \usemodule[m-graph] \startMPpage[instance=graph] input sarith; draw begingraph(5cm,5cm);

Re: [NTG-context] mptopdf in minimals

2013-04-18 Thread John Kitzmiller
On Wed, Apr 17, 2013 at 10:51 PM, John Kitzmiller wrote: Is there something extra needed to use mptopdf with only context minimal? Does it help if you run the following command first? texexec --make mptopdf (it should or at least used to be used in past) Mojca -- Thank you Mojca

[NTG-context] mptopdf in minimals

2013-04-17 Thread John Kitzmiller
Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx:

Re: [NTG-context] mptopdf in minimals

2013-04-17 Thread John Kitzmiller
On Apr 17, 2013, at 5:00 PM, Hans Hagen wrote: On 4/17/2013 10:51 PM, John Kitzmiller wrote: Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx

[NTG-context] arc notation Lucida

2013-04-14 Thread John Kitzmiller
My primary plea for help is how to make an arc symbol over 3 letters in ConTEXt with lucidaot as body font. In pdfLaTeX I could use package fourier to get such an extensible symbol where \widearc was preferable to \widehat. Hans' new about regarding extensible glyphs is suggestive, but because

[NTG-context] enumerate fillinlne

2012-02-21 Thread John Kitzmiller
Any hints on enumerating fillinlines? Below describes the request (I hope this fomats okay on forum) the answer lines align with the top line of the question and are in a margin column: 1. Here is a question. 1. __ 2. Here is another question. If

Re: [NTG-context] enumerate fillinline

2012-02-21 Thread John Kitzmiller
From: Marco net...@lavabit.com To: ntg-context@ntg.nl Cc: Date: Tue, 21 Feb 2012 17:19:42 +0100 Subject: Re: [NTG-context] enumerate fillinlne On 2012-02-21 John Kitzmiller jki...@gmail.com wrote: Any hints on enumerating fillinlines? Below describes the request (I hope this fomats okay

Re: [NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread John Kitzmiller
It looks like you need to point Scite to /home/peter/context1220/texmf-mswin/bin (assuming you are using windows) in your PATH. On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson peter.park.nel...@gmail.com wrote: Hello, I installed and configured SciTE today to try it out. I am using the

[NTG-context] Scite Lexers

2011-12-31 Thread John Kitzmiller
This may not belong here but perhaps someone would be willing to confer with me off-list? After Scite re-install with new MkIV instructions I can not find where to change background color. (I was able to change it before under ebswift installation although syntax highlighting for *tex did not

Re: [NTG-context] MetaFUN's \setupMPpage broken?

2011-12-27 Thread John Kitzmiller
On Tue, Dec 27, 2011 at 6:00 AM, ntg-context-requ...@ntg.nl wrote: Hi ConTeXt user's, A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed the 11-12-23 version (MkIV). The \setupMPpage command in the basic example below: \setupMPpage[offset=1pt]

Re: [NTG-context] Lua script not registered

2011-12-03 Thread John Kitzmiller
---Mojca wrote: On Sat, Dec 3, 2011 at 04:56, John Kitzmiller wrote: I think I can get this setuptex.bat automated for random context runs but, for some reason(s) C:context somefile.tex will not work globally on my personal computer (Lenovo x100e) over which I have admin control (maybe I am

[NTG-context] Lua script not registered

2011-12-02 Thread John Kitzmiller
Hello. Trying to make my first doc with ConTeXt (Win7, standalone install) I get the error: context: The Lua script is not registered context: Data: context and I am taken back to the command prompt. Nothing is produced. Any ideas? What did I overlook? After `texing otherwise for years I am

[NTG-context] Lua script not registered

2011-12-02 Thread John Kitzmiller
I hope this does not open another thread with the same name, but I did not find a way to respond directly within the archive--something else I am missing or will ntg find the reference? Here it goes... Thank you for response luigi. The story: OS = Windows7 professional I also have MikTeX

[NTG-context] Lua script not registered

2011-12-02 Thread John Kitzmiller
Replying to the list in this manner--having to retype the subject--is unusual to me, and I hope it does not create problems for the list. Please help me on how to reply within the mail archive to make more efficient. Many thanks to those who have replied on the topic! Thank you, Aditya-- I had