Re: [NTG-context] Lua and module gnuplot: Manipulate Gnuplot script with Lua

2011-12-13 Thread Hans Hagen
On 12-12-2011 23:35, Paul Menzel wrote: \def\E#1{$10^{#1}$} \unexpanded\def\E \startGNUPLOTscript[name] set logscale y set format y \\E{%T} plot sin(x) t '$\sin(x) [\E{3}]$' # usually something else with logscale, but just to show the point

Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Hans Hagen
On 13-12-2011 04:45, Kip Warner wrote: On Fri, 2011-12-09 at 20:26 +0100, Hans Hagen wrote: I only see cont-en.fmt : format file, sits in the cache and stays there cont-en.lui : lua startup stub, idem handbook.tex : your file, is kept where it is Hans Then I am not sure what file it is

Re: [NTG-context] pdfselect and context command?

2011-12-13 Thread Verhaag, G.C.H.M.
On 12/12/2011 11:57 AM, Hans Hagen wrote: On 12-12-2011 11:10, Verhaag, G.C.H.M. wrote: Hi ConTeXTt User's, I was looking for the --pdfselect option in the context-command, but it doesn't seem to be available. This option is available in texexec to select certain pages from a pdf file. Can

Re: [NTG-context] xml attribute conditional

2011-12-13 Thread Hans Hagen
On 13-12-2011 00:48, Jon Crump wrote: All, I have a conditional expression that checks to see if the current node has any ancestor whose xml:id attribute matches a string \xmldoifelse{#1}{ancestor::div[@xml:id='apr_engl']} What I need is a test to see if the current node has any ancestor

Re: [NTG-context] headers: numberconversion=something or \definestructureconversionset

2011-12-13 Thread Philipp A.
2011/12/12 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 08.12.2011 um 11:21 schrieb Philipp A. hi list, i want to make an exercise sheet style. exercises are already correctly rendered as “*Exercise 1: Text*”, but sub-exercises should simply be like “*a)*”. what i tried:

[NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input knuth \writetolist[mylist]{}{Item} \stoptext % The

Re: [NTG-context] \placelist and \writetolist

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 11:41 schrieb Marco Pessotto: Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input

[NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks, having heard nice things about the KOMA script type area I wanted to use it too and tried out the example in the Wiki [1]. % Set binding correction value (mode=BCOR turns it on). \doifmodeelse{BCOR}{\def\bindingcorr{3mm}}{\def\bindingcorr{0pt}}

Re: [NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: Replace \setuplist with \definelist, before you use a list you should create it. I knew I was missing something obvious... Thanks a lot, it works. Best wishes -- Marco

[NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
For a book of fairy tales, I used (working!): \def\Initial{\DroppedCaps% {\color[red]} {Serif} {2.5\baselineskip} {3pt} {2\baselineskip} {3}} \starttext \Initial Once upon a time... \input tufte \stoptext But that gives now: to be read again \unskip \\-\ifhmode \unskip

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 13:08 schrieb Henning Hraban Ramm: For a book of fairy tales, I used (working!): \def\Initial{\DroppedCaps% {\color[red]} {Serif} {2.5\baselineskip} {3pt} {2\baselineskip} {3}} \starttext \Initial Once upon a time... \input tufte \stoptext \setupbodyfont[pagella]

[NTG-context] How to create horizontal line for signature?

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks, sometimes you need to insert a line for signature. I could not find anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not work. I ended up abusing `\framed` [3]. \starttext \startstandardmakeup[align=right] Alles rechtens. Everything

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Hans Hagen
On 13-12-2011 13:08, Henning Hraban Ramm wrote: For a book of fairy tales, I used (working!): ... So, what’s the preferred way to get dropped capitals / initials? I’d like to wikify that, since it seems nowhere documented. Initials have been rewritten (they also no longer pick up an

Re: [NTG-context] How to create horizontal line for signature?

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 13:36 schrieb Paul Menzel: Dear ConTeXt folks, sometimes you need to insert a line for signature. I could not find anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not work. I ended up abusing `\framed` [3]. \starttext

Re: [NTG-context] [solved] How to create horizontal line for signature?

2011-12-13 Thread Paul Menzel
Am Dienstag, den 13.12.2011, 13:49 +0100 schrieb Wolfgang Schuster: Am 13.12.2011 um 13:36 schrieb Paul Menzel: sometimes you need to insert a line for signature. I could not find anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not work. I ended up abusing `\framed` [3].

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
Am 2011-12-13 um 13:28 schrieb Wolfgang Schuster: \setupbodyfont[pagella] \setupinitial [color=red] \starttext \placeinitial Once upon a time... \input tufte \stoptext Grmbl, I would have sworn that didn’t work before! But it does. Thank you! Am 2011-12-13 um 13:38 schrieb Hans Hagen:

[NTG-context] Bibliography: `\setupheadtext[de][pubs=Quellen]` does not update the table of contents.

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks, the following minimal example changes the default text for the title for the publication list [1]. In the table of content there is still the default name though. \mainlanguage[de] \setupbibtex[database=sample, sort=author]

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 14:17 schrieb Henning Hraban Ramm: Am 2011-12-13 um 13:38 schrieb Hans Hagen: Initials have been rewritten (they also no longer pick up an argument which is more robust). The old macros will probably be removed (or end up in a module). \setupinitial[font=Bold at

Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Aditya Mahajan
Have you seen http://modules.contextgarden.net/typearea Aditya On Dec 13, 2011, at 6:33 AM, Paul Menzel paulepan...@users.sourceforge.net wrote: Dear ConTeXt folks, having heard nice things about the KOMA script type area I wanted to use it too and tried out the example in the Wiki [1].

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster: Ok, but how can I set the font size relative to bodyfontsize/ baselineskip? \setupinitial[font=Bold sa 4] Thank you, I feel stupid. Works for me, but not in the wiki (I can’t get colors there, too). http://wiki.contextgarden.net/Initials

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 14:42 schrieb Henning Hraban Ramm: Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster: Ok, but how can I set the font size relative to bodyfontsize/baselineskip? \setupinitial[font=Bold sa 4] Thank you, I feel stupid. Works for me, but not in the wiki (I can’t get

Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
Am Dienstag, den 13.12.2011, 08:24 -0500 schrieb Aditya Mahajan: On Dec 13, 2011, at 6:33 AM, Paul Menzel paulepan...@users.sourceforge.net wrote: having heard nice things about the KOMA script type area I wanted to use it too and tried out the example in the Wiki [1]. % Set

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 13 Dec 2011 05:38:09 -0700, Hans Hagen pra...@wxs.nl wrote: On 13-12-2011 13:08, Henning Hraban Ramm wrote: For a book of fairy tales, I used (working!): ... So, what’s the preferred way to get dropped capitals / initials? I’d like to wikify that, since it seems nowhere

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Hans Hagen
On 13-12-2011 15:15, Idris Samawi Hamid ادريس سماوي حامد wrote: Hmm, I did not realize that dropped caps were still supported in MkIV base so I've been using it is but not as pure macro but a lua hybrid which also lets you set not only dropped caps but the next couple of words or so in

[NTG-context] \definelayout

2011-12-13 Thread Andreas Harder
Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm] \definelayout[unknown][default]%[reset] % \definelayout[2]

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
Am 2011-12-13 um 14:50 schrieb Wolfgang Schuster: Works for me, but not in the wiki (I can’t get colors there, too). http://wiki.contextgarden.net/Initials The wiki use MkII and you have to enable colors first. I did enable colors, but don’t get any. Maybe the color switch is not in the

[NTG-context] beta

2011-12-13 Thread Hans Hagen
Hi, I uploaded a new beta. This one is really beta so don't update if you have a critical workflow (or make a copy). Among the changes are: - page-* : cleaned up, split and made more efficient (maybe typos) - strc-itm: cleaned up (maybe side effects, but it looks ok) - style/color

Re: [NTG-context] \definelayout

2011-12-13 Thread Wolfgang Schuster
Am 13.12.2011 um 16:26 schrieb Andreas Harder: Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm]

[NTG-context] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Paul Menzel
Dear ConTeXt folks, I want to create monochrome plots, but `option=monochrome` is ignored. \usemodule[gnuplot] \setupGNUPLOT[terminal=context,option=monochrome] \startGNUPLOTscript[pi] plot pi t '$π = \ctxlua{context(math.pi)}$'

Re: [NTG-context] \definelayout

2011-12-13 Thread Andreas Harder
On 13.12.2011, at 16:44, Wolfgang Schuster wrote: Am 13.12.2011 um 16:26 schrieb Andreas Harder: Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default]

Re: [NTG-context] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Mojca Miklavec
On Tue, Dec 13, 2011 at 18:03, Paul Menzel wrote: Dear ConTeXt folks, I want to create monochrome plots, but `option=monochrome` is ignored. (Ashamed.) Yes, you are right.        \usemodule[gnuplot]        \setupGNUPLOT[terminal=context,option=monochrome] This passes the option to

Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Kip Warner
On Tue, 2011-12-13 at 10:15 +0100, Hans Hagen wrote: it seems to run anyway maybe the file-line-error is doing something Hans I tried it already without --file-line-error and its the same console output. =( -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred

Re: [NTG-context] gnuplot module: `option=monochrome` does not work.

2011-12-13 Thread Mojca Miklavec
Dear Paul, Just a few more thoughts: - If your whole document is black-and-white (if you switch colors off globally), the plot will turn out black-and-white anyway (actually it will be different shades of gray). - You can always use something like plot pi lt 1 lc 0, 2*pi lt 2 lc 0 or lc

Re: [NTG-context] [solved] How to create horizontal line for signature?

2011-12-13 Thread Philipp A.
i always use tikz anyway, so i can as well use it for something like this: \tikz[baseline=(start)]\draw (0,0) coordinate (start) edge[label=below:Your Name here] (4cm,0); untested, tell me if it doesn’t work. it should do the following: name a coordinate “start” and draw a line horizontally 3cm

Re: [NTG-context] xml attribute conditional

2011-12-13 Thread Jon Crump
Hans et alia, Thanks for helping out with the right xpath expression. That was indeed the problem: div elements in the ancestor axis that had no xml:id attribute. Unfortunately, this doesn't solve my root problem. I have a tei/xml marked up text with English and Arabic sections. For each ref tag

Re: [NTG-context] beta

2011-12-13 Thread Otared Kavian
Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize \stoptext Best regards: OK On 13 déc. 2011, at 16:38, Hans Hagen wrote: Hi, I uploaded a new beta.

Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Hans Hagen
On 13-12-2011 19:25, Kip Warner wrote: On Tue, 2011-12-13 at 10:15 +0100, Hans Hagen wrote: it seems to run anyway maybe the file-line-error is doing something Hans I tried it already without --file-line-error and its the same console output. =( I can run the direct command here, not that

Re: [NTG-context] beta

2011-12-13 Thread Hans Hagen
On 13-12-2011 21:07, Otared Kavian wrote: Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize \stoptext Best regards: OK I'll look into it ... \startitem

Re: [NTG-context] beta

2011-12-13 Thread Hans Hagen
On 13-12-2011 21:07, Otared Kavian wrote: Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize \stoptext fixed (I had commented a counter definition because

Re: [NTG-context] xml attribute conditional

2011-12-13 Thread Hans Hagen
On 13-12-2011 20:21, Jon Crump wrote: @xml:id==string.sub('#N020-18', 2) - (ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing number, treated as zero. lua error with sub .. not sure what you want t o test here indeed an error will prevent the multipass file to be saved

Re: [NTG-context] Preserving Output Files

2011-12-13 Thread Kip Warner
On Tue, 2011-12-13 at 23:51 +0100, Hans Hagen wrote: I can run the direct command here, not that I ever do it as the context command does some housekeeping and passes commandline info via the top file. There is hardly any gain in running luatex directly. Hey Hans. I understand, but I need to

Re: [NTG-context] beta

2011-12-13 Thread Otared Kavian
On 14 déc. 2011, at 00:48, Hans Hagen wrote: On 13-12-2011 21:07, Otared Kavian wrote: Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize

[NTG-context] ConTeXt-- does it make sense for my needs?

2011-12-13 Thread Chris Lott
Many years ago I used LaTeX quite a bit for academic work, including a fair amount of Memoir class. Back then ConTeXt was quite new, so I didn't mess with it much. Now I'm back and sick of Word/etc for the documents I need to produce as print/pdf and for interaction with colleagues. What I can't