Re: [NTG-context] ConTeXt unofficial test suite stub

2012-10-16 Thread luigi scarso
On Wed, Oct 17, 2012 at 8:44 AM, Marco Pessotto wrote: > Aditya Mahajan writes: > > > It may be worthwhile to merge the two repos. > > I'm on my way. I'll keep you posted. > > > Can you use graphicsmagick ? -- luigi _

Re: [NTG-context] making tables with lua

2012-10-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my experience is that the best way is to create the table first, then to call Lua function to typeset the table. You may choose whether the table will be typeset with 'tabulate' family functions or 'TABLE' family; I may recommend you the latter as it gives you much more control of the

Re: [NTG-context] ConTeXt unofficial test suite stub

2012-10-16 Thread Marco Pessotto
Aditya Mahajan writes: > It may be worthwhile to merge the two repos. I'm on my way. I'll keep you posted. -- Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! mailli

Re: [NTG-context] Need help with \definetabulate

2012-10-16 Thread Malte Stien
Thank you. Yes, that helps. Regards, Malte. On 16/10/2012, at 20:21, Malte Stien wrote: > Any pointers anyone? I need to get this working and am running out of ideas. > > Thank you, > Malte. > > > Begin forwarded message: > >> From: Malte Stien >> Date: 15 October 2012 17:03:42 >> To: ntg-c

Re: [NTG-context] pgfplots example compile error

2012-10-16 Thread Aditya Mahajan
On Wed, 17 Oct 2012, LeeJason wrote: Dear all, When I compile the following simple pgfplots example \usemodule[pgfplots] [...] LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found: [...] I use the latest beta version of ConTeXt minimals. I don't know if this is a bug. This is

[NTG-context] pgfplots example compile error

2012-10-16 Thread LeeJason
Dear all, When I compile the following simple pgfplots example \usemodule[pgfplots] \pgfplotsset{compat=1.3} \starttext Using Con{\TeX}t. \starttikzpicture \startloglogaxis \addplot coordinates { (1,1) (16,16) (32,64) };

[NTG-context] making tables with lua

2012-10-16 Thread Jeong Dal
Dear all, I used code which generates the table as following: \startluacode local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL context.starttabulate { "|c|c|c|c|c|c|c|c|c|c|" } HL() for i=1, 6, 1 do for j=1,10 ,1 do k= i % 3 if k==1 then

Re: [NTG-context] ConTeXt unofficial test suite stub

2012-10-16 Thread Aditya Mahajan
On Sun, 7 Oct 2012, Marco Pessotto wrote: Hello there! TL;DR: https://github.com/melmothx/context-unofficial-test-suite A week ago I had a conversation with mpfusion and another user over IRC about the ConTeXt test suite. mpfusion had a tarball with some test and an elaborate machinery to see

Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan
On Tue, 16 Oct 2012, Hans Hagen wrote: On 16-10-2012 23:33, Aditya Mahajan wrote: I actually use these abstractions, but with the default value also set. That's the whole point of having the defaults, right? So, my current solution is: \setupexternalfigures[scale=750, factor=max, maxwidth=\te

Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen
On 16-10-2012 23:33, Aditya Mahajan wrote: I actually use these abstractions, but with the default value also set. That's the whole point of having the defaults, right? So, my current solution is: \setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth, maxheight=\textheight] \definee

Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan
On Tue, 16 Oct 2012, Hans Hagen wrote: On 16-10-2012 23:08, Aditya Mahajan wrote: Hi, If scale option for a figure is set, \externalfigure does not honor the width and the height parameters. For example \externalfigure[cow][width=1cm, height=3cm, scale=750] gives a figure which has the usual

Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen
On 16-10-2012 23:08, Aditya Mahajan wrote: Hi, If scale option for a figure is set, \externalfigure does not honor the width and the height parameters. For example \externalfigure[cow][width=1cm, height=3cm, scale=750] gives a figure which has the usual aspect ratio. I know that settings scal

[NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan
Hi, If scale option for a figure is set, \externalfigure does not honor the width and the height parameters. For example \externalfigure[cow][width=1cm, height=3cm, scale=750] gives a figure which has the usual aspect ratio. I know that settings scale=... along with width and height does not

Re: [NTG-context] Total Number of Pages

2012-10-16 Thread Philipp Gesang
· > I've not tested this, but suspect that there may be a difference > between the below two commands > \lastpage and > \totalnumberofpages These are actually synonyms ;-) But it’s true, there is the difference between counting the real pages (the number of sheets you need to

Re: [NTG-context] Subscript Depth

2012-10-16 Thread Hans Hagen
On 16-10-2012 22:05, Nicholas Ulle wrote: Thanks for the tip. I assume adjusting the depth of all subscripts in the document would require a somewhat extensive knowledge of TeX font handling? (that is, ConTeXt doesn't provide macros for it, I should learn more TeX if I want to know how to do that

Re: [NTG-context] Total Number of Pages

2012-10-16 Thread Hrothgar Boyce
I've not tested this, but suspect that there may be a difference between the below two commands \lastpage and \totalnumberofpages possibly depending on whether title pages or preambles are counted. On Tue, Oct 16, 2012 at 1:12 PM, Marco Patzer wrote: > 2012-10-16 Nicholas Ulle: > >

Re: [NTG-context] Total Number of Pages

2012-10-16 Thread Marco Patzer
2012-10-16 Nicholas Ulle: Hi Nicholas > How would I go about inserting the total number of pages in my document? \lastpage Marco ___ If your question is of interest to others as well, please add an entry to the W

Re: [NTG-context] Subscript Depth

2012-10-16 Thread Nicholas Ulle
Thanks for the tip. I assume adjusting the depth of all subscripts in the document would require a somewhat extensive knowledge of TeX font handling? (that is, ConTeXt doesn't provide macros for it, I should learn more TeX if I want to know how to do that?) Nick On Mon, Oct 15, 2012 at 10:07 AM,

[NTG-context] Total Number of Pages

2012-10-16 Thread Nicholas Ulle
Hi, How would I go about inserting the total number of pages in my document? I assume this would require two passes of texec or context. I've tried Googling and checking ConTeXt garden, but couldn't find anything regarding this. Thanks again, Nick _

Re: [NTG-context] New module: pararef

2012-10-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the job. Would you kindly add a Czech alternative: \setupparareftext[cz][braketOpen={(}] % Should be "bracketOpen" \setupparareftext[cz][braketClose={)}] % Should be "bracketClose" \setupparareftext[cz][atpageLeft={ na stran\ecaron\ }] \setupparareftext[cz][atpageRight={}

Re: [NTG-context] [dev-context] Error while updating to new beta

2012-10-16 Thread Aditya Mahajan
On 2012-10-16, at 5:37 AM, Hans Hagen wrote: > On 16-10-2012 00:14, Aditya Mahajan wrote: > >> Same error. But if I comment the definition of >> resolvers.prefixes.toppath, the error goes away. > > fixed (tested on opensuse and ubuntu) > Thanks. The format is made cleanly now. Aditya

Re: [NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Hans Hagen
On 16-10-2012 13:23, Wolfgang Schuster wrote: Am 16.10.2012 um 13:08 schrieb Hans Hagen : On 16-10-2012 12:52, Sietse Brouwer wrote: The problem is that \starttabulate does not accept a format parameter. Cheap solution (only figured it out now, or I'd have replied before): use \setuptabulat

Re: [NTG-context] RFC: path relative to current file.

2012-10-16 Thread Andre Caldas
1. check for "stack underflow"; and/or >>> >>> such things are dealt with >> >> By assert, I mean: >> assert(inputstack[#inputstack], "Input stack should never be empty >> when toppath() is called.") > > normally > > if inputstack[#inputstack] == nil then > assume path "." > end > > is

Re: [NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Wolfgang Schuster
Am 16.10.2012 um 13:08 schrieb Hans Hagen : > On 16-10-2012 12:52, Sietse Brouwer wrote: >> The problem is that \starttabulate does not accept a format parameter. >> >> Cheap solution (only figured it out now, or I'd have replied before): use >> >> \setuptabulate[alpha][format={}] >> >> be

Re: [NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Hans Hagen
On 16-10-2012 12:52, Sietse Brouwer wrote: The problem is that \starttabulate does not accept a format parameter. Cheap solution (only figured it out now, or I'd have replied before): use \setuptabulate[alpha][format={}] before every \startalpha call. It's not very contexty syntax, but on

Re: [NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Sietse Brouwer
The problem is that \starttabulate does not accept a format parameter. Cheap solution (only figured it out now, or I'd have replied before): use \setuptabulate[alpha][format={}] before every \startalpha call. It's not very contexty syntax, but on the other hand it requires no new definitions

Re: [NTG-context] [dev-context] Error while updating to new beta

2012-10-16 Thread luigi scarso
On Tue, Oct 16, 2012 at 11:37 AM, Hans Hagen wrote: > On 16-10-2012 00:14, Aditya Mahajan wrote: > > Same error. But if I comment the definition of >> resolvers.prefixes.toppath, the error goes away. >> > > fixed (tested on opensuse and ubuntu) > > > Hans > confirmed -- luigi __

Re: [NTG-context] Need help with \definetabulate

2012-10-16 Thread Wolfgang Schuster
Am 16.10.2012 um 11:21 schrieb Malte Stien : > Any pointers anyone? I need to get this working and am running out of ideas. \def\startalpha {\dosingleempty\dostartalpha} \def\dostartalpha[#1]#2\stopalpha {\iffirstargument \starttabulate [#1]#2\stoptabulate \else \starttabulat

Re: [NTG-context] [dev-context] Error while updating to new beta

2012-10-16 Thread Hans Hagen
On 16-10-2012 00:14, Aditya Mahajan wrote: Same error. But if I comment the definition of resolvers.prefixes.toppath, the error goes away. fixed (tested on opensuse and ubuntu) Hans - Ha

[NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Malte Stien
Any pointers anyone? I need to get this working and am running out of ideas. Thank you, Malte. Begin forwarded message: > From: Malte Stien > Date: 15 October 2012 17:03:42 > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Need help with \definetabulate > > Marco, > >> \definetabulate [a

Re: [NTG-context] Vertical positioning of floats within itemize

2012-10-16 Thread Hans Hagen
On 16-10-2012 10:05, Marcin Borkowski wrote: Well, I meant the bullet and item text on the left and image on the right. Is it possible? maybe if you put \placefigure[right]{}{} before the \item -

Re: [NTG-context] Vertical positioning of floats within itemize

2012-10-16 Thread Marcin Borkowski
Dnia 2012-10-16, o godz. 09:41:23 Hans Hagen napisał(a): > On 16-10-2012 00:45, Marcin Borkowski wrote: > > It's me again! > > > > This doesn't quite work as expected (at least by me, that is;)): > > > > \starttext > > > > \startitemize > >\startitem > > \placefigure[right,high,none]{}{\

Re: [NTG-context] ConTeXt inputs files from TEXMF/doc

2012-10-16 Thread Mojca Miklavec
On Tue, Oct 16, 2012 at 9:39 AM, Hans Hagen wrote: > On 15-10-2012 23:33, Mojca Miklavec wrote: >> >> Hello, >> >> I used \externalfigure[background] in a document (and I forgot to >> compile the local file background.tex) and ended up with a pleasant >> surprise: the command included >> >> /usr/lo

Re: [NTG-context] Vertical positioning of floats within itemize

2012-10-16 Thread Hans Hagen
On 16-10-2012 00:45, Marcin Borkowski wrote: It's me again! This doesn't quite work as expected (at least by me, that is;)): \starttext \startitemize \startitem \placefigure[right,high,none]{}{\framed[width=3cm,height=2cm]{!}} \input knuth \stopitem \stopitemize \stoptext (Na

Re: [NTG-context] ConTeXt inputs files from TEXMF/doc

2012-10-16 Thread Hans Hagen
On 15-10-2012 23:33, Mojca Miklavec wrote: Hello, I used \externalfigure[background] in a document (and I forgot to compile the local file background.tex) and ended up with a pleasant surprise: the command included /usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf inste

Re: [NTG-context] RFC: path relative to current file.

2012-10-16 Thread Hans Hagen
On 16-10-2012 00:26, Andre Caldas wrote: 1. check for "stack underflow"; and/or such things are dealt with By assert, I mean: assert(inputstack[#inputstack], "Input stack should never be empty when toppath() is called.") normally if inputstack[#inputstack] == nil then assume path "