[NTG-context] [OT] List of Open Source Software

2010-12-23 Thread luigi scarso
There are more than seven hundreds of titles http://itmanagement.earthweb.com/osrc/article.php/12068_3918051_13/Ultimate-List-of-Open-Source-Software.htm -- luigi ___ If your question is of interest to others as well,

[NTG-context] problems with \hbox inside lua

2010-12-23 Thread Mojca Miklavec
Dear list, I cannot figure out what I am doing wrong here. If I remove \hbox, it works fine, but I would like to draw a table. \starttext \startluacode function draw_table(unicode_start,n_columns) for i=0,0xF do tex.print('\\dontleavehmode\\definedfont[Serif at 20pt]\\kern0pt') for j=0,

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 1:57 PM, Mojca Miklavec wrote: > Dear list, > > I cannot figure out what I am doing wrong here. If I remove \hbox, it > works fine, but I would like to draw a table. > > \starttext > \startluacode > function draw_table(unicode_start,n_columns) >  for i=0,0xF do >    tex.pri

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread Peter Münster
On Thu, Dec 23 2010, Mojca Miklavec wrote: > tex.print('\\hbox to 1.5em{\\hss %s \\hss}', tex.print() does not handle the %s. context() does. So just replace tex.print() by context(). Peter -- Contact information: http://pmrb.free.fr/contact/ __

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 2:09 PM, Peter Münster wrote: > On Thu, Dec 23 2010, Mojca Miklavec wrote: > >>       tex.print('\\hbox to 1.5em{\\hss %s \\hss}', > > tex.print() does not handle the %s.   context() does. > > So just replace tex.print() by context(). Right, this also works \starttext \sta

[NTG-context] bib problem

2010-12-23 Thread Emanuele Sacco
Hi all with this code %-- \usemodule[bib] \setupbibtex[database=biblio] \setuppublications[alternative=ams,criterium=cite,numbering=yes] \setuppublicationlist[finalnamesep={ and }] \starttext \startbodymatter \part{First Part} \chapter{First Chapter} Look at this \cite[heinsch] \part{Seco

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread Hans Hagen
On 23-12-2010 2:36, luigi scarso wrote: On Thu, Dec 23, 2010 at 2:09 PM, Peter Münster wrote: On Thu, Dec 23 2010, Mojca Miklavec wrote: tex.print('\\hbox to 1.5em{\\hss %s \\hss}', tex.print() does not handle the %s. context() does. So just replace tex.print() by context(). Righ

[NTG-context] Table resolution too low

2010-12-23 Thread Tom
I just created a PDF of a bookblock by using MKII to produce the .ps file and Adobe Acrobat to create the PDF from it. When preflighting the PDF, all the photos were found to be 300dpi or greater but the table created by the following code was flagged at being only 150ppi. I don't see this as a pr

Re: [NTG-context] Table resolution too low

2010-12-23 Thread Henning Hraban Ramm
Am 2010-12-23 um 16:11 schrieb Tom: I just created a PDF of a bookblock by using MKII to produce the .ps file and Adobe Acrobat to create the PDF from it. Why do you make the detour via PS at all? When preflighting the PDF, all the photos were found to be 300dpi or greater but the table c

[NTG-context] another cld question!

2010-12-23 Thread Thomas A. Schmitz
Since y'all are playing with cld, here's my little question: how can I write me a language test? Here is what I've been playing with: \mainlanguage[fr] \starttext \startluacode function doit(s) if tex.language == 2 then context("ENGLISH: ") context.currentmainlanguage() context(s) else

Re: [NTG-context] Table resolution too low

2010-12-23 Thread Tom
Am 2010-12-23 um 16:11 schrieb Tom: > I just created a PDF of a bookblock by using MKII to produce > the .ps file > and Adobe Acrobat to create the PDF from it. Why do you make the detour via PS at all? > When preflighting the PDF, all > the photos were found to be 300dpi or greater but

Re: [NTG-context] Table resolution too low

2010-12-23 Thread Henning Hraban Ramm
Am 2010-12-23 um 16:42 schrieb Tom: Using Tex-Live MKII, I created the .ps with >texexec --dvi TableExample But WHY do you need DVI/PS instead of just PDF? Needing a PDF/X-1a:2001 file, I created the PDF from the .ps file using Adobe Acrobat Distiller 9 No need to go via PS to get PDF/X

Re: [NTG-context] another cld question!

2010-12-23 Thread Hans Hagen
On 23-12-2010 4:37, Thomas A. Schmitz wrote: Since y'all are playing with cld, here's my little question: how can I write me a language test? Here is what I've been playing with: \mainlanguage[fr] \starttext \startluacode function doit(s) if tex.language == 2 then if languages.current(

Re: [NTG-context] Table resolution too low

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 4:42 PM, Tom wrote: > Here is an example: > > \starttext > \placetable[here,force]{none} > {\starttable[|l|l|l|] > \HL > \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR > \HL > \VL Albert Exendine \VL End \VL 1970 \VL\SR > \HL > \VL Joe Guyon \VL Halfback/Tack

Re: [NTG-context] another cld question!

2010-12-23 Thread Thomas A. Schmitz
On Dec 23, 2010, at 4:56 PM, Hans Hagen wrote: > if languages.current() == "en" then Thanks Hans, but it still doesn't work properly: \starttext \startluacode function doit(s) if languages.current == "en" then context("ENGLISH: ") context(s) else context("NOT ENGLISH:") context(

Re: [NTG-context] another cld question!

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 5:12 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 4:56 PM, Hans Hagen wrote: > >> if languages.current() == "en" then > > Thanks Hans, but it still doesn't work properly: > > > \starttext > > \startluacode > function doit(s) >  if languages.current == "en" then perh

Re: [NTG-context] another cld question!

2010-12-23 Thread Taco Hoekwater
On 12/23/2010 05:12 PM, Thomas A. Schmitz wrote: On Dec 23, 2010, at 4:56 PM, Hans Hagen wrote: Compare: if languages.current() == "en" then and if languages.current == "en" then The first is testing the result of a function call, the second is testing the function variable itself.

Re: [NTG-context] another cld question!

2010-12-23 Thread Thomas A. Schmitz
On Dec 23, 2010, at 5:19 PM, Taco Hoekwater wrote: > On 12/23/2010 05:12 PM, Thomas A. Schmitz wrote: >> >> On Dec 23, 2010, at 4:56 PM, Hans Hagen wrote: > > Compare: > >>> if languages.current() == "en" then > > and > >> if languages.current == "en" then > > The first is testing the res

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread Mojca Miklavec
On Thu, Dec 23, 2010 at 15:52, Hans Hagen wrote: > > cleaner: > > function draw_table(unicode_start,n_columns) >    context.start() >    context.definedfont { "Serif at 20pt" } >    context.starttabulate { string.format("*{%s}{|w(1.5em)}|",n_columns+1) } Great, thanks! (I wanted to create a proper

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread Mojca Miklavec
On Thu, Dec 23, 2010 at 18:06, Mojca Miklavec wrote: > > But then I have another question: how can I use \HL and \VL? The > following code doesn't create any line at all: I'm sorry. I was compiling the wrong file. Mojca

Re: [NTG-context] bib problem

2010-12-23 Thread Emanuele Sacco
I'm using MKII. 2010/12/23 Emanuele Sacco : > Hi all > > with this code > > %-- > > \usemodule[bib] > \setupbibtex[database=biblio] > \setuppublications[alternative=ams,criterium=cite,numbering=yes] > \setuppublicationlist[finalnamesep={ and }] > > > \starttext > \startbodymatter > \part{First

[NTG-context] how to ask lua if glyph nr. x exists in current font

2010-12-23 Thread Mojca Miklavec
Hello, I'm trying to decrypt the LuaTeX reference manual. I find it easy enough to read data about different fonts when using fontA = fontloader.open('a.otf') and then glyphs = fontloader.to_table(fontA).glyphs but I'm not able to figure out how to aks the same question about the font that i

[NTG-context] using font from a specified location

2010-12-23 Thread Mojca Miklavec
Dear list, I have a bunch of fonts at some location (../myfonts/) relative to TeX files (for example ../myfonts/myfontA.otf). What is the best way to access them in MKIV? The best option might be to specify something equivalent to "export TEXINPUTS=../myfonts", but I don't know what exactly I ha

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 6:06 PM, Mojca Miklavec wrote: > PS: I still don't know the reason why my example fails catcode , I suppose -- luigi ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] how to ask lua if glyph nr. x exists in current font

2010-12-23 Thread Hans Hagen
On 23-12-2010 7:26, Mojca Miklavec wrote: Hello, I'm trying to decrypt the LuaTeX reference manual. I find it easy enough to read data about different fonts when using fontA = fontloader.open('a.otf') and then glyphs = fontloader.to_table(fontA).glyphs but I'm not able to figure out how

Re: [NTG-context] MikTeX and ConTeXt

2010-12-23 Thread Mojca Miklavec
On Sat, Dec 18, 2010 at 21:09, Jonas Stein wrote: > http://wiki.contextgarden.net/MikTeX > "ConTeXt is currently broken (possible to do some tweaking to make it work)" > > this was from 2008 so i suppose its outdated. > Is that already fixed? In fact approximately everything written on that page s

Re: [NTG-context] Table resolution too low

2010-12-23 Thread Tom
On Thu, Dec 23, 2010 at 4:42 PM, Tom wrote: > Here is an example: > > \starttext > \placetable[here,force]{none} > {\starttable[|l|l|l|] > \HL > \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR > \HL > \VL Albert Exendine \VL End \VL 1970 \VL\SR > \HL > \VL Joe Guyon \VL Halfback/Tack

Re: [NTG-context] Table resolution too low

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 8:36 PM, Tom wrote: > On Thu, Dec 23, 2010 at 4:42 PM, Tom wrote: >> Here is an example: >> >> \starttext >> \placetable[here,force]{none} >> {\starttable[|l|l|l|] >> \HL >> \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR >> \HL >> \VL Albert Exendine \VL End

[NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
All, Something elementary, I'm sure, that I'm not understanding. I'm trying to achieve parallel footnotes in arab/english texts, ie. each footnote in the Arabic text has a corresponding footnote in the English text. Both should point to the same footnote text. Like this:

Re: [NTG-context] problems with \hbox inside lua

2010-12-23 Thread Peter Münster
On Thu, Dec 23 2010, luigi scarso wrote: > > PS: I still don't know the reason why my example fails > catcode , I suppose Indeed. The %-sign starts a comment in TeX. \starttext \startluacode tex.print("\\hbox{ %s }", "a string") \stopluacode \stoptext is nearly the same as \starttext \hbox{ %

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Yury G. Kudryashov
Jon Crump wrote: > All, > > I thought to use TeX's \note[ref], but the following doesn't seem to work. > > \startxmlsetups xml:ref > \define\thisRefName{\xmlatt{#1}{target}} > \xmldoifelse{#1}{parent::d...@type='arText']} > {\footnote[\thisRefName]{\xmlfirst{#1} {root::/body/text

Re: [NTG-context] Table resolution too low

2010-12-23 Thread Tom
On Thu, Dec 23, 2010 at 8:36 PM, Tom wrote: > On Thu, Dec 23, 2010 at 4:42 PM, Tom wrote: >> Here is an example: >> >> \starttext >> \placetable[here,force]{none} >> {\starttable[|l|l|l|] >> \HL >> \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR >> \HL >> \VL Albert Exendine \VL En

[NTG-context] Augmented Matrix

2010-12-23 Thread Paul Dostert
I'm trying to make a simple Augmented matrix using \startmathmatrix and cannot seem to get \VL working correctly. I'd assume to do an augmented matrix I'd do: \startformula \left[ \startmathmatrix[n=4] 1 \NC 1 \NC 1 \VL 1\NR 0 \NC 1 \NC -1 \VL 2\NR 0 \NC 0 \NC 2 \VL 8 \stopmathmatrix \right] \stop

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 12:36 PM, Yury G. Kudryashov wrote: > I'm not sure about expansion order. Probably \thisRefName is not expanded in > one of the commands above. Could you please attach either a minimal working > example (test.xml and test.tex that one can save and run context test), or > l

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Thomas A. Schmitz
On Dec 23, 2010, at 9:47 PM, Jon Crump wrote: > Attached is a minimal working example, along with the pdf output I got > running: > context --environment=doublefoot.tex doublefoot.xml Why do you use the intermediate step of creating a macro? I think this does what you want: \startxmlsetups x

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 12:58 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 9:47 PM, Jon Crump wrote: > >> Attached is a minimal working example, along with the pdf output I got >> running: >> context --environment=doublefoot.tex doublefoot.xml > > Why do you use the intermediate step of c

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Thomas A. Schmitz
On Dec 23, 2010, at 10:17 PM, Jon Crump wrote: > My thought, ill-informed perhaps, was simply for clarity: to make it > clear that I'm using the same value in both \note[] and \footnote[]. > In any case, sadly, using what you suggest still gets me the same > result. I get correct output here. Tr

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:20 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 10:17 PM, Jon Crump wrote: > >> My thought, ill-informed perhaps, was simply for clarity: to make it >> clear that I'm using the same value in both \note[] and \footnote[]. >> In any case, sadly, using what you sugge

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Thomas A. Schmitz
On Dec 23, 2010, at 10:34 PM, Jon Crump wrote: > mysterious: I tried that and got the same output; both for your version and > mine Here's mine. Are you using the same version? ConTeXt ver: 2010.12.22 20:18 MKIV fmt: 2010.12.23 int: english/english doublefoot.pdf Description: Adobe PDF

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
even more minimal, I tried running context on this: \starttext some text with footnote\footnote[f]{footnote text} \\ some text with reference\note[f] \stoptext and got the same phenomenon: some text with footnote 1 some text with reference ?? Something about the \note[] mechanism I'm not get

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:41 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 10:34 PM, Jon Crump wrote: > >> mysterious: I tried that and got the same output; both for your version and >> mine > > Here's mine. Are you using the same version? > > ConTeXt  ver: 2010.12.22 20:18 MKIV  fmt: 2010

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:47 PM, Jon Crump wrote: > On Thu, Dec 23, 2010 at 1:41 PM, Thomas A. Schmitz > wrote: >> >> On Dec 23, 2010, at 10:34 PM, Jon Crump wrote: >> >>> mysterious: I tried that and got the same output; both for your version and >>> mine >> >> Here's mine. Are you using the sa

Re: [NTG-context] ConTeXt beta in MikTeX

2010-12-23 Thread Martin Schröder
2010/12/23 Mojca Miklavec : > from what I understand WinEdt kind-of-works with Unicode (as long as > all the characters belong to a single codepade, it is able to save and > read the file as UTF-8). It's 2010, not 1995. Forget about editors that don't do Unicode. Especially if they cost money. Be

Re: [NTG-context] using font from a specified location

2010-12-23 Thread Vladimir Lomov
** Mojca Miklavec [2010-12-23 19:53:14 +0100]: > Dear list, > I have a bunch of fonts at some location (../myfonts/) relative to TeX > files (for example ../myfonts/myfontA.otf). > What is the best way to access them in MKIV? > The best option might be to specify something equivalent to "export

Re: [NTG-context] bib problem

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 3:33 PM, Emanuele Sacco wrote: > Hi all > > with this code > > %-- > > \usemodule[bib] > \setupbibtex[database=biblio] > \setuppublications[alternative=ams,criterium=cite,numbering=yes] > \setuppublicationlist[finalnamesep={ and }] > > > \starttext > \startbodymatter >