Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 7:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 19:06: >> [...] >> In any case, I cannot compare to a number: >> >>\startluacode >> userdata = userdata or {} >> function userdata.numbersfname(name) >> return string.match(name, "%d+") >

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:33 PM, Pablo Rodriguez wrote: > [...] > \starttext > \ctxlua{ d = [[\env{fname}]] } > > d: \cldcontext{d}\\ > \doifelse{\cldcontext{d:match("\letterpercent d+")}} > {123}{yes}{no} > \stoptext > [...] > 3. I’m trying this on a Linux box, but on Windows I would say that

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.10.2020 um 19:06: On 10/13/20 5:54 PM, Aditya Mahajan wrote: On Tue, 13 Oct 2020, Pablo Rodriguez wrote: [...] Could anyone explain me what I’m missing here? Many thanks for your reply, Aditya. I find it simpler to write macros where there is clean communicating

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 6:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 17:33: >> [...] >> 2. Is there no Lua version of \getvariable{...}{...}? > > There is no need because everything is stored in a Lua table. > [...] > local argumentlist  = document.arguments.arguments > loca

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:54 PM, Aditya Mahajan wrote: > On Tue, 13 Oct 2020, Pablo Rodriguez wrote: >> [...] >> Could anyone explain me what I’m missing here? Many thanks for your reply, Aditya. > I find it simpler to write macros where there is clean communicating > between tex and lua. For example: > [...

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.10.2020 um 17:33: Dear list, I have the following sample: \starttext \def\numbersfname {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} \ctxlua{ c = context.getvariable("environment", "fname") or "a" } \ctxlua{ d = [[\env{fname}]]

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Aditya Mahajan
On Tue, 13 Oct 2020, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \def\numbersfname > {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} > \ctxlua{ c = context.getvariable("environment", "fname") or "a" } > \ctxlua{ d = [[\env{f

[NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \def\numbersfname {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} \ctxlua{ c = context.getvariable("environment", "fname") or "a" } \ctxlua{ d = [[\env{fname}]] } tex: \numbersfname\\ \doifelse{} {123}{yes

Re: [NTG-context] Need help processing XML in luacode

2020-03-11 Thread Axel Kielhorn
Hello Massi, thanks for you help. > Am 10.03.2020 um 20:53 schrieb mf : > > In your tex file, try this: > > \startluacode > settings = {} > docstruktur = {} > doclistfile = "doclist.xml" > > local striplines = utilities.strings.striplines > > cropstring = function(s) > -- return striplines(

Re: [NTG-context] Need help processing XML in luacode

2020-03-10 Thread mf
In your tex file, try this: \startluacode settings = {} docstruktur = {} doclistfile = "doclist.xml" local striplines = utilities.strings.striplines local xmltext= xml.text cropstring = function(s) -- return striplines(s, "prune and collapse") return striplines(s) end doc = xml.load(do

[NTG-context] Need help processing XML in luacode

2020-03-10 Thread Axel Kielhorn
Hi, after one year I’m back at a project processing XML with ConTeXt. Here is what I want to do: I have an XML file that I want to format with ConTeXt. I got this working last year. Now I want to take some information from a second file. My idea is to read the second file, store the data into a

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
Axel Kielhorn schrieb am 05.10.18 um 18:44: Am 05.10.2018 um 17:33 schrieb Wolfgang Schuster : I took a look at your example files and there a few things which can be improved. Product file: 1. You don’t need the actual name of the current file and use * instead 2. You can use brackets a

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
> Am 05.10.2018 um 17:33 schrieb Wolfgang Schuster > : > > I took a look at your example files and there a few things which can be > improved. > > > Product file: > > 1. You don’t need the actual name of the current file and use * instead > > 2. You can use brackets as delimiters for the fi

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 04.10.18 um 09:27: Hi, On 4 Oct 2018, at 08:47, Axel Kielhorn wrote: Hello, this is my second try to start with context and I can’t even do the first step. I’m planing to convert a large but simple document to context. The document consists of 3 Parts. Each part h

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
I took a look at your example files and there a few things which can be improved. Product file: 1. You don’t need the actual name of the current file and use * instead 2. You can use brackets as delimiters for the file name instead of a space after the name 3. In products you can put all c

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Henning Hraban Ramm
Am 2018-10-05 um 08:31 schrieb Axel Kielhorn : > How about offering a skeleton project for download? I’m offering a Python script that creates projects: https://github.com/fiee/tools/blob/master/contextproject.py This avoids renaming everything. In my bigger projects I use additional shell scrip

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn
> Am 04.10.2018 um 20:59 schrieb Henning Hraban Ramm : > > Am 2018-10-04 um 10:08 schrieb Axel Kielhorn : > >> Thus having the whole file inside \start{project|product|component} \stop… >> would be a good idea and consistent. > > That’s what I do. > Since I wrote that wiki page (some years ago

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Henning Hraban Ramm
Am 2018-10-04 um 10:08 schrieb Axel Kielhorn : > Thus having the whole file inside \start{project|product|component} \stop… > would be a good idea and consistent. That’s what I do. Since I wrote that wiki page (some years ago) I’ll change it. Greetlings, Hraban --- https://www.fiee.net http://

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn
> Am 04.10.2018 um 09:27 schrieb Taco Hoekwater : > >> According to my understanding I should be able to >> context c_01 to get one chapter >> context prd_A to get one product >> context project_ecm to get the whole book. > > Any whole book should be a product, and the Parts should just be compo

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Taco Hoekwater
Hi, > On 4 Oct 2018, at 08:47, Axel Kielhorn wrote: > > Hello, > > this is my second try to start with context and I can’t even do the first > step. > > I’m planing to convert a large but simple document to context. > The document consists of 3 Parts. > Each part has several chapters. > > Th

[NTG-context] Need help with project: TeX capacity exceeded

2018-10-03 Thread Axel Kielhorn
Hello, this is my second try to start with context and I can’t even do the first step. I’m planing to convert a large but simple document to context. The document consists of 3 Parts. Each part has several chapters. Thus I started to build a project with three products, see enclosed archive. Ac

Re: [NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
Hi Wolfgang, Am 22.10.2013 um 11:31 schrieb Wolfgang Schuster : > > Am 22.10.2013 um 10:34 schrieb Keith J. Schultz : > >> HI All, >> >> I remember seeing some seeing what I want to do but I can not find it. >> >> I would like to define a command that takes an optional key-valued list and >>

Re: [NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
Hi Wolfgang, to be honest one of my design considerations was to this work using MetaPost. But, my knowledge of MetaPost is minimal and it would be involved calculating the positions of the Frames/boxes and I need to know the sizes of the formatted text, etc Another approach would be to use laye

Re: [NTG-context] Need help defining command.

2013-10-22 Thread Wolfgang Schuster
Am 22.10.2013 um 10:34 schrieb Keith J. Schultz : > HI All, > > I remember seeing some seeing what I want to do but I can not find it. > > I would like to define a command that takes an optional key-valued list and > 1 or 2 manditory ones. > > Something like > > \unexanded\def\MyCommand[#1]#2

[NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
HI All, I remember seeing some seeing what I want to do but I can not find it. I would like to define a command that takes an optional key-valued list and 1 or 2 manditory ones. Something like \unexanded\def\MyCommand[#1]#2% {% \NassiGroupFrame[#1]{#2}% }% or \unexanded\def\MyCommand[#1]#2% {

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

2012-10-16 Thread Malte Stien
15 October 2012 17:03:42 >> To: ntg-context@ntg.nl >> Subject: Re: [NTG-context] Need help with \definetabulate >> >> Marco, >> >>> \definetabulate [alpha] [|l|l|l|] >>> \setuptabulate [alpha] [bodyfont=small] >> >> This does not work f

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] Need help with \definetabulate

2012-10-14 Thread Malte Stien
Marco, > \definetabulate [alpha] [|l|l|l|] > \setuptabulate [alpha] [bodyfont=small] This does not work for me quite the way I need it to. I am really just after defining the font-size, but I would like to leave the column setup to the user (I am building an environment and that I would like e

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

2012-10-07 Thread Marco Patzer
2012-10-08 Malte Stien: Hi Malte > I am trying to define two tabulate styles as follows: > > - \setuptabulate[split=yes, bodyfont=small] > - \setuptabulate[split=yes] \definetabulate [alpha] [|l|l|l|] \setuptabulate [alpha] [bodyfont=small] \definetabulate [beta] [|l|l|] \setuptabulate [beta

[NTG-context] Need help with \definetabulate

2012-10-07 Thread Malte Stien
Hi, I am trying to define two tabulate styles as follows: - \setuptabulate[split=yes, bodyfont=small] - \setuptabulate[split=yes] ...such that I can just refer to them when I \starttabulate...\stoptabulate somewhere. I thought, the command \definetabulate would come in handy here, but I can't

Re: [NTG-context] need help with macro

2012-09-23 Thread Philipp Gesang
· > It’s a expansion problem, you can either expand the content in the definition > of \mogrify (as seen below) > or you make the \mogrify command unexpanded and you expand the content of the > \wwparameter > (i.e. \doifsomething{…}{\normalexpanded{\mogrify{…}}}) Thanks a lot, I rewrote

Re: [NTG-context] need help with macro

2012-09-23 Thread Wolfgang Schuster
Am 23.09.2012 um 15:33 schrieb Philipp Gesang : > Hi all, > > I have a macro “mogrify” that eats three tokens of a string and > treats them differently from the rest of the string. I can’t > however use it inside more complex macros. Is there a way out or > an alternative using macros? (No Lua.)

[NTG-context] need help with macro

2012-09-23 Thread Philipp Gesang
Hi all, I have a macro “mogrify” that eats three tokens of a string and treats them differently from the rest of the string. I can’t however use it inside more complex macros. Is there a way out or an alternative using macros? (No Lua.) Other formatting macros work fine in the same place. Any hel

[NTG-context] Need help

2012-07-18 Thread Shiv Shankar Dayal
Hi, Mu current chapter setup is as below: \def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=3cm,align=left]{#1}}% \tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}% \egroup} \setuphead [chapter] [color=green1, textstyle=, align=norm

[NTG-context] need help getting context to work on windows

2011-04-10 Thread vt8235
I would like some help setting context to work on my windows xp machine, I don't know if here I am supposed to ask so you'll forgive me. So, I tried edit the sample tex hello world in Scite editor and when I process it I get this: >mtxrun --autogenerate --script context --autopdf --pdf simple_doc.

Re: [NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread Marco
On 2011-04-02 Wolfgang Schuster wrote: > > Am 02.04.2011 um 13:59 schrieb Marco: > > \setuphead [chapter,section] [command=\myseccmd] > > \def\myseccmd#1#2{\hbox to .75cm{#1}#2} > > \setuphead[chapter,section][numberwidth=0.75cm] You read the source, cheater! ;) Marco _

Re: [NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread Wolfgang Schuster
Am 02.04.2011 um 13:59 schrieb Marco: > On 2011-04-02 Nicola wrote: > >> 2) I need (sub)section titles indented by .75cm, regardless of the section >> number, so that in: >> >> 1 First Section >> 1.1First Subsection >> 100Another Section Title >> 100.1 Another subsection >> >

Re: [NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread luigi scarso
On Sat, Apr 2, 2011 at 3:30 PM, Nicola wrote: > In article <20110402135950.0a07eef4@glyph>, Marco wrote: > >> On 2011-04-02 Nicola wrote: >> >> > 1) I need to shift the title 12pt below the top margin. >> > This is my command now: >> > >> > \definefont[TitleStyle][SerifBold at 14pt] >> > \setuph

Re: [NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread Nicola
In article <20110402135950.0a07eef4@glyph>, Marco wrote: > On 2011-04-02 Nicola wrote: > > > 1) I need to shift the title 12pt below the top margin. > > This is my command now: > > > > \definefont[TitleStyle][SerifBold at 14pt] > > \setuphead[title][ > >style=TitleStyle, > >align=middl

Re: [NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread Marco
On 2011-04-02 Nicola wrote: > 1) I need to shift the title 12pt below the top margin. > This is my command now: > > \definefont[TitleStyle][SerifBold at 14pt] > \setuphead[title][ >style=TitleStyle, >align=middle, >textstyle=WORD, before={\blank[12pt,force]}, >after={\blan

[NTG-context] Need help with \setuphead and spacing

2011-04-02 Thread Nicola
Hi, I still have a couple of requests from a publisher, which I do not know how to fulfill: 1) I need to shift the title 12pt below the top margin. This is my command now: \definefont[TitleStyle][SerifBold at 14pt] \setuphead[title][ style=TitleStyle, align=middle, textstyle=WORD, be

Re: [NTG-context] Need help with the table of contents

2011-03-21 Thread Julian Becker
Thank you Wolfgang for your quick response. Looks great now! 2011/3/21 Wolfgang Schuster > > Am 21.03.2011 um 18:14 schrieb Julian Becker: > > > Hello everybody, > > I have a little issue with the table of contents. The document I am > writing consists of several parts and now > > my question is

Re: [NTG-context] Need help with the table of contents

2011-03-21 Thread Wolfgang Schuster
Am 21.03.2011 um 18:14 schrieb Julian Becker: > Hello everybody, > I have a little issue with the table of contents. The document I am writing > consists of several parts and now > my question is the following: > In the table of contents, the line corresponding to the start of a new part > alwa

[NTG-context] Need help with the table of contents

2011-03-21 Thread Julian Becker
Hello everybody, I have a little issue with the table of contents. The document I am writing consists of several parts and now my question is the following: In the table of contents, the line corresponding to the start of a new part always starts like "Part 1 Name of first part". How do I get rid

Re: [NTG-context] Need help with the "letter" module

2010-04-05 Thread Wolfgang Schuster
Hi Andreas, thank you answering the question. Here is a new feature from the last version (4. April) which works only in mkiv: \usemodule[letter] \starttext \startletter \input knuth\par \ps{postscript} \cc{carbon copy} \encl{enclosure} \stopletter \startletter[postscript={postscript},copy

Re: [NTG-context] Need help with the "letter" module

2010-04-04 Thread Wolfgang Schuster
Am 04.04.10 16:56, schrieb Matija Šuklje: New problem: Using the \ps{} command results in failure to generate the PDF, claiming \ps is not defined. Is it perhaps not included in MkII (or Tex Live 2008)? The \ps, \cc etc. commands where added after the TeXLive 2008 release. Using the lates

Re: [NTG-context] Need help with the "letter" module

2010-04-04 Thread Matija Šuklje
Is it normal that an empty line in the "letter" module does *not* trigger a paragraph? Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk...@gabbler.org ___ If your question is of

Re: [NTG-context] Need help with the "letter" module

2010-04-04 Thread Matija Šuklje
New problem: Using the \ps{} command results in failure to generate the PDF, claiming \ps is not defined. Is it perhaps not included in MkII (or Tex Live 2008)? Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk...@gabbler.org __

Re: [NTG-context] Need help with the "letter" module

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 16:01:44 je Andreas Schneider napisal(a): > The following should not be a separate parameter. If you put another > \setupletter in front of it, it should work. Or just leave out the > additional [] pairs. > > --> \setupletter[opening=..., closing=..., signature=..., f

Re: [NTG-context] Need help with the "letter" module

2010-04-04 Thread Andreas Schneider
Matija Šuklje wrote: > Hullo, > > I'm trying to write a letter, but it gets all screwy. The first batch of > letter settings works OK (opening, closing, signature); but then the from* > and to* blocks fail resulting in a PDF that just quotes that code on a > separate page. > > Clearly I'm doing

[NTG-context] Need help with the "letter" module

2010-04-04 Thread Matija Šuklje
Hullo, I'm trying to write a letter, but it gets all screwy. The first batch of letter settings works OK (opening, closing, signature); but then the from* and to* blocks fail resulting in a PDF that just quotes that code on a separate page. Clearly I'm doing something wrong although I'm lookin

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Taco Hoekwater
Thomas A. Schmitz wrote: On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Thomas A. Schmitz
On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever lua script? Thomas _

Re: [NTG-context] Need help with bibliography

2009-09-21 Thread Taco Hoekwater
Thomas A. Schmitz wrote: On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote: I'll try to give a clearer explanation. First of all, when I cite a source using e.g. \cite[Smith2000], this should appear in the text as "Smith 2000". I've already managed to do this. Now, each entry in the bibliograp

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Thomas A. Schmitz
On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote: I'll try to give a clearer explanation. First of all, when I cite a source using e.g. \cite[Smith2000], this should appear in the text as "Smith 2000". I've already managed to do this. Now, each entry in the bibliography should begin with th

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Aditya Mahajan
On Sun, 20 Sep 2009, Aditya Mahajan wrote: On Mon, 21 Sep 2009, Mika Ritola wrote: 2009/9/20 Thomas A. Schmitz On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote: 1. This one's probably very simple: there's the /insertauthors macro for inserting the whole name of the author. But how do you

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Aditya Mahajan
On Mon, 21 Sep 2009, Mika Ritola wrote: 2009/9/20 Thomas A. Schmitz On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote: 1. This one's probably very simple: there's the /insertauthors macro for inserting the whole name of the author. But how do you insert just the last name of the author? I

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Mika Ritola
2009/9/20 Thomas A. Schmitz > > On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote: > > >> 1. This one's probably very simple: there's the /insertauthors macro for >> inserting the whole name of the author. But how do you insert just the last >> name of the author? >> >> > If you just want the last n

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Hans Hagen
Thomas A. Schmitz wrote: That sounds harder. You basically need three separate bibliographies, each of them sorted in some way. I'm not certain the current implementation of the bib module can do that (i.e. I'm almost certain it can't). How do you want to refer to these items in your text? Aga

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Thomas A. Schmitz
Hi, I'm not sure I can be of much help (hopefully Taco will have a look), but just a few thoughts: On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote: 1. This one's probably very simple: there's the /insertauthors macro for inserting the whole name of the author. But how do you insert just

Re: [NTG-context] Need help with bibliography

2009-09-20 Thread Hans Hagen
Mika Ritola wrote: Hello, I'm planning to write my Master's thesis in history using ConTeXt, and I've done some experimenting on it to see if it's actually suitable for my purposes. Everything seems to be quite simple except for one thing: the bibliography. The bibliography guidelines for our hi

[NTG-context] Need help with bibliography

2009-09-20 Thread Mika Ritola
Hello, I'm planning to write my Master's thesis in history using ConTeXt, and I've done some experimenting on it to see if it's actually suitable for my purposes. Everything seems to be quite simple except for one thing: the bibliography. The bibliography guidelines for our history department are

Re: [NTG-context] need help with creating a grid with context

2007-10-11 Thread Wolfgang Schuster
2007/10/10, Peter Rolf <[EMAIL PROTECTED]>: > Hi Peter, > > MASON Peter J schrieb: > > I'm trying to layout a grid of bullets. The results isn't the expected > > one. Perhaps someone could offer help here? Thanks. > > > > Here's the sort of thing I'm doing > > > > \setuplayout[leftmargin=0pt,

Re: [NTG-context] need help with creating a grid with context

2007-10-11 Thread Wolfgang Schuster
2007/10/10, Mojca Miklavec <[EMAIL PROTECTED]>: > On 10/10/07, Wolfgang Schuster wrote: > > 2007/10/10, Mojca Miklavec: > > > On 10/10/07, MASON Peter J wrote: > > > > > > > Hope to create a regular (1cm spacing) grid on page, of bullets. > > > > Ultimately > > > > over the whole page. > > > > > >

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread MASON Peter J
>You introduce "spurious spaces" (line break sometimes adds a space) in > you loops. See ... Yes, you're right. A programmer, I tend to think that white space is always good for readability. Thanks for that tip. But I DO like the \dorecurse(...) version better. I didn't know of this macro. I cou

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Mojca Miklavec
On 10/10/07, Wolfgang Schuster wrote: > 2007/10/10, Mojca Miklavec: > > On 10/10/07, MASON Peter J wrote: > > > > > Hope to create a regular (1cm spacing) grid on page, of bullets. > > > Ultimately > > > over the whole page. > > > > Why not using MetaPost? > > > > \starttext > > \startMPcode % or

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Wolfgang Schuster
2007/10/10, Mojca Miklavec <[EMAIL PROTECTED]>: > On 10/10/07, MASON Peter J wrote: > > > Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately > > over the whole page. > > Why not using MetaPost? > > \starttext > \startMPcode % or \startMPpage > for i=0 upto 10: > for j=0 u

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Mojca Miklavec
On 10/10/07, MASON Peter J wrote: > Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately > over the whole page. Why not using MetaPost? \starttext \startMPcode % or \startMPpage for i=0 upto 10: for j=0 upto 20: fill fullcircle scaled 1mm shifted ((i,j) scaled 1cm

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Peter Rolf
Hi Peter, MASON Peter J schrieb: > I'm trying to layout a grid of bullets. The results isn't the expected > one. Perhaps someone could offer help here? Thanks. > > Here's the sort of thing I'm doing > > \setuplayout[leftmargin=0pt, leftmargindistance=0pt, backspace=0pt, > rightmargin=0pt, r

Re: [NTG-context] need help with creating a grid with context

2007-10-09 Thread MASON Peter J
Perhaps I ought to tell what I'm expecting :-) ... Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately over the whole page. The context code supplied produces successive rows with an offset to the right. Have I missed something obvious? IMPORTANT NOTICE: This e-mail

[NTG-context] need help with creating a grid with context

2007-10-09 Thread MASON Peter J
I'm trying to layout a grid of bullets. The results isn't the expected one. Perhaps someone could offer help here? Thanks. Here's the sort of thing I'm doing \setuplayout[leftmargin=0pt, leftmargindistance=0pt, backspace=0pt, rightmargin=0pt, rightmargindistance=0pt, cutspace=0pt, width=mi

Re: [NTG-context] need help for the installation of luatools

2007-09-16 Thread Dalyoung Jeong
Dear Thomas, I found the folder /usr/local/Build/powerpc/TeXLive.2006. I remembered that I have tried to install TeX using the source before. When I open terminal, .luatex in not implemented yet and "texexec -- make --all --pdftex" run without any errors. % texexec --make

Re: [NTG-context] need help for the installation of luatools

2007-09-15 Thread Hans Hagen
Taco Hoekwater wrote: > Dalyoung Jeong wrote: >> Thank you, Thomas, Arthur, and Taco, >> >> I checked texmf.cnf. There are two texmf.cnf >> >> gwTeX/texmf.cnf ---> there is no code for the memory setup, it >> just describe the TDS structure. > > The problem could be that luatools only "sees

Re: [NTG-context] need help for the installation of luatools

2007-09-15 Thread Taco Hoekwater
Dalyoung Jeong wrote: > Thank you, Thomas, Arthur, and Taco, > > I checked texmf.cnf. There are two texmf.cnf > > gwTeX/texmf.cnf ---> there is no code for the memory setup, it > just describe the TDS structure. The problem could be that luatools only "sees" this one (Hans has to answer

Re: [NTG-context] need help for the installation of luatools

2007-09-15 Thread Dalyoung Jeong
Thank you, Thomas, Arthur, and Taco, I checked texmf.cnf. There are two texmf.cnf gwTeX/texmf.cnf ---> there is no code for the memory setup, it just describe the TDS structure. gwTeX/texmf/web2c/texmf.cnf ---> trie_size = 40 gwTeX/texmf.local/web2c/ no texmf.cnf Ge

Re: [NTG-context] need help for the installation of luatools

2007-09-14 Thread Taco Hoekwater
Thomas A. Schmitz wrote: > On Sep 14, 2007, at 7:49 AM, Dalyoung Jeong wrote: > >> >> Is it OK? or should I change something? > This is influenced by the variable trie_size in your texmf.cnf. In my > unmodified TeXLive 2007, this is 30; I have no idea why Gerben > changed it. You could tr

Re: [NTG-context] need help for the installation of luatools

2007-09-13 Thread Thomas A. Schmitz
On Sep 14, 2007, at 7:49 AM, Dalyoung Jeong wrote: > Dear Thomas and Arthur, > > Thank you for your detailed help. > Copying texlua and creating .luatex file make luatools run smoothly. > > Now, luatools --generate run well. > > I'd like to ask a few questions. > > 1. But, there is a warning me

Re: [NTG-context] need help for the installation of luatools

2007-09-13 Thread Dalyoung Jeong
Dear Thomas and Arthur, Thank you for your detailed help. Copying texlua and creating .luatex file make luatools run smoothly. Now, luatools --generate run well. I'd like to ask a few questions. 1. But, there is a warning message as following for "luatools -- ini ...". .. .

Re: [NTG-context] need help for the installation of luatools

2007-09-12 Thread Thomas A. Schmitz
On Sep 13, 2007, at 3:02 AM, Dalyoung Jeong wrote: > Dear Thomas, > > How careless I am! and sorry not to give you a sufficient information. > As you said, lua!=luatex. > > I downloaded and installed luatex in the folder /usr/texbin. > I also copied it as texlua. > > Now, It seems to me that lua

Re: [NTG-context] need help for the installation of luatools

2007-09-12 Thread Dalyoung Jeong
Dear Thomas, How careless I am! and sorry not to give you a sufficient information. As you said, lua!=luatex. I downloaded and installed luatex in the folder /usr/texbin. I also copied it as texlua. Now, It seems to me that luatools is working without the previous error. However, there is a p

Re: [NTG-context] need help for the installation of luatools

2007-09-12 Thread Arthur Reutenauer
> I copied lua5.1 as luatex and texlua in the folder /usr/texbin. That's not what you should do: lua5.1 is only the lua interpreter, nothing more, and cannot act as LuaTeX (the TeX engine with embedded Lua scripting). Nor can it act as TeXLua, the LuaTeX-aware Lua interpreter. Of course both lua

Re: [NTG-context] need help for the installation of luatools

2007-09-12 Thread Taco Hoekwater
Dalyoung Jeong wrote: > Hi, all, > > I have downloaded binary files(lua5_1_2_Darwin89_bin_tar). After > unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". > I copied lua5.1 as luatex and texlua in the folder /usr/texbin. > I also copied luatools.lua as luatools in the folder /usr/texbin.

Re: [NTG-context] need help for the installation of luatools

2007-09-12 Thread Thomas A. Schmitz
On Sep 12, 2007, at 6:20 AM, Dalyoung Jeong wrote: > Hi, all, > > I have downloaded binary files(lua5_1_2_Darwin89_bin_tar). What are these files? Where did you download them? > After > unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". > I copied lua5.1 as luatex and texlua in the folder

[NTG-context] need help for the installation of luatools

2007-09-11 Thread Dalyoung Jeong
Hi, all, I have downloaded binary files(lua5_1_2_Darwin89_bin_tar). After unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". I copied lua5.1 as luatex and texlua in the folder /usr/texbin. I also copied luatools.lua as luatools in the folder /usr/texbin. I updated the ConTeXt and try to i