Re: [NTG-context] table alignment

2010-02-27 Thread Wolfgang Werners-Lucchini
Hallo, > > But how can I get my 3cm? > > If you do not use horizontal lines > > \starttable[o(3cm)|l|] > > Aditya > Not horizontal lines, but a gray header: \starttable[o(3cm)|l|] \RL\SR \NC hmm \NC\AR \stoptable Thank you Aditya for this workaround. If there is really no solution, I wi

Re: [NTG-context] table alignment

2010-03-01 Thread Wolfgang Werners-Lucchini
Thank you Aditya and Wolfgang, I will try it both: > No page breaks possible: > > \defineframedtext[tablebox][frame=off,width=\hsize,offset=0pt,before > =,after=] > > \starttext > > vorher > > \startnarrower > > text > > \starttablebox > \starttable[s0|l|] > \NC table entry \NC\AR > \stopta

[NTG-context] Dezimalkomma

2010-03-09 Thread Wolfgang Werners-Lucchini
Hallo, if I write $0,8$ the distance between the ',' and the '8' is too big. I can write $0,\!8$ or an other kern, but I don't see how I can write a macro to avoid the extra effort. Shouldn't be this gap in german (\mainlanguage[deo]) as big as $0.8$ in US? Is there a switch I have overseen?

Re: [NTG-context] Dezimalkomma

2010-03-11 Thread Wolfgang Werners-Lucchini
Hallo, I must do something wrong. It is not working for me: \setupmathematics[autopunctuation=yes] \starttext $0,1$ \stoptext tested on the garden. Wolfgang ___ If your question is of interest to others as well, pl

[NTG-context] sometimes \rightaligned

2010-03-11 Thread Wolfgang Werners-Lucchini
Hallo, I have an other problem which was asked for years if I remember right. But I can not find it. In the following \starttext \startnarrower Und Gott der Herr machte Adam und seinem Weibe Röcke von Fellen, und kleidete sie. \RA{\tfx (Genesis 3, 21)} \stopnarrower \stoptext I want \RT a macr

[NTG-context] colored column

2010-03-13 Thread Wolfgang Werners-Lucchini
Hallo, can someone explain how to write a table column in color, please? The following example worked in 2006 but is not working anymore: \starttext \starttable[o1|\{C{red}|] \VL red \VL\SR \stoptable \stoptext Wolfgang Schuster posted last year the following example: \NewFormatKey W#1% {\Read

Re: [NTG-context] Dezimalkomma

2010-03-13 Thread Wolfgang Werners-Lucchini
> > Hallo, > > > > I must do something wrong. It is not working for me: > > > > \setupmathematics[autopunctuation=yes] > > \starttext > > $0,1$ > > \stoptext > > maybe an too old version > As I wrote, I tested on the garden. This version is current enough I thinck. Wolfgang ___

[NTG-context] mkiv and unicode

2010-03-15 Thread Wolfgang Werners-Lucchini
Hallo, I work all the time with good old mkii-context, but I have had a lot of problems last time, which could be solved easely if I switch to mkiv. So I wonder if I should change. The main argument for me to stay with mkii is the following: I have a lot of lua scripts withhin scite which are

Re: [NTG-context] mkiv and unicode

2010-03-16 Thread Wolfgang Werners-Lucchini
Hallo, > > I work all the time with good old mkii-context, but I have had a lot > > of problems last time, which could be solved easely if I switch to > > mkiv. So I wonder if I should change. The main argument for me to > > stay with mkii is the following: > > > > I have a lot of lua scripts with

[NTG-context] math error

2010-03-18 Thread Wolfgang Werners-Lucchini
Hallo, the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Bug or user error? Wolfgang __

[NTG-context] math error

2010-03-18 Thread Wolfgang Werners-Lucchini
Sorry, I found it! \starttext \startformula[] [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

[NTG-context] letter module not working

2010-03-24 Thread Wolfgang Werners-Lucchini
Hallo, I have problems compiling this with ConTeXt ver: 2010.03.20 22:59 MKIV -- % coding: utf-8 \usemodule[letter][style=dina] \mainlanguage[deo] \enableregime[utf-8] \setupletter [fromname={\tfa Wolfgang Werners-Lucchini}, subject={Blub

Re: [NTG-context] letter module not working

2010-03-25 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang, > > I have problems compiling this with > > ConTeXt ver: 2010.03.20 22:59 MKIV > > [...] > > > I can't reproduce this. Can you take a look at the end of the log > for > this information: > > correspondence : t-correspondence.tex: 2010.02.28 > correspondence : t-letter.tex:

[NTG-context] letter-module: reference

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo, I am trying to make a simple invoice with Wolfgangs letter-module and have some questions: I have the following reference in mind \setupletterstyle[reference][ alternative=d, list={invoice,taxnumber,phone,date}] 1) How can one position this horizontaly and verticaly? 2)

[NTG-context] pk-directory

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo, how should the directory be named where a 600 dpi pk-font is searched for by luatex? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@nt

Re: [NTG-context] letter-module: reference

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang, > > I am trying to make a simple invoice with Wolfgangs letter-module > and > > have some questions: > > > > I have the following reference in mind > > > > \setupletterstyle[reference][ > > alternative=d, > > list={invoice,taxnumber,phone,date}] > > > > 1) How can one posit

Re: [NTG-context] pk-directory

2010-03-26 Thread Wolfgang Werners-Lucchini
On 26 Mar 2010 at 22:09, Hartmut Henkel wrote: > On Fri, 26 Mar 2010, Hans Hagen wrote: > > On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote: > > > > > > how should the directory be named where a 600 dpi pk-font is > > > searched for by luatex? > > >

[NTG-context] letter: backaddress

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo, 'backaddress' is composed from 'fromname' and 'fromaddress', but this is to long and must be shortend. How can I overwritte 'backaddress'? Gruß, Wolfgang ___ If your question is of interest to others as well,

Re: [NTG-context] letter: backaddress

2010-03-27 Thread Wolfgang Werners-Lucchini
Hallo, > \setupletterstyle[backaddress=yes] > > it's a disabled by default but i forgot to do this also in the > default style > (most styles reset the layout and use default values before they > modify it) > > \setupletterstyle > >[backaddress] > >[alternative=auto, > > > 'auto' is n

Re: [NTG-context] pk-directory

2010-03-27 Thread Wolfgang Werners-Lucchini
On 27 Mar 2010 at 12:00, ntg-context-requ...@ntg.nl wrote: > > That being said, I realize that it means Metafont fonts can't be > > used in Mark IV, am I right? > > Dumping a ready-made pk file in the local directory worked last > time I tried it. No success! Neiter *.pk nor *.600pk and not wi

[NTG-context] color problem with columns

2010-03-27 Thread Wolfgang Werners-Lucchini
Hallo, on Vers 38 at page 2 (see example) text is green. \setupcolors[state=start] \newcounter\V \def\Vers#1{\increment\V {\color[darkgreen]\rm\bi \V} #1} \starttext \startcolumns \dorecurse{50}{\Vers{Dies ist ein Testsatz der gerad

Re: [NTG-context] color problem with columns

2010-03-28 Thread Wolfgang Werners-Lucchini
> > > > \setupcolors[state=start] > > \newcounter\V > > \def\Vers#1{\increment\V {\color[darkgreen]\rm\bi \V} #1} > > > \def\Vers#1{\increment\V \dontleavehmode{\color[darkgreen]\rm\bi \V} > #1} > > but i think this is better >

Re: [NTG-context] letter: backaddress

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang, > You're mixing different things. > > What is the difference between > > > > \setupletterstyle[option][backaddress=yes] > > > With \setupletterstyle[=yes|no] you can show or hide > elements ok! > > \setupletterstyle[backaddress][alternative=yes] > > > > In 'default.nli'

Re: [NTG-context] pk-directory

2010-03-28 Thread Wolfgang Werners-Lucchini
> > Is there a debug-switch which informs the user what and where > > luatex is searching? > > If you're working in a shell, try setting the KPATHSEA_DEBUG > environment variable to -1, you will get tons of information about > path lookups and directory searches. > > Arthur I thought lua

Re: [NTG-context] pk-directory

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo Taco, > >> Dumping a ready-made pk file in the local directory worked last > >> time I tried it. > > > > > > No success! Neiter *.pk nor *.600pk > > and not with a local subdir /dpi600 > > > > What extension have you used? > > .600pk (but that was ages ago, when I still cared about pk f

Re: [NTG-context] pk-directory

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo Hans, > > so it would be nice, if a user could see (from a log) what and > > where luatex is searching. Isn't there any switch? > > --track=resolvers.locating,resolvers.detail Hmm! luatex ignores this and luatex --help does not list an option named --track nor does it context. Wolfgang _

[NTG-context] pk-directory

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo, I have it found! In chapter 4.1.1.10 of the luatex reference one can read: The argument name is a bit special in this case. Its form is dpi/.pk Wolfgang ___ If your question is of interest to others as well,

[NTG-context] setuptex.bat

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo, I don't know if the maintainer of the minimals or Hans is the person I have to ask. Is it possible to change the line set PATH=%TEXMFOS%\bin;%PATH% to set PATH=%TEXMFLOCAL%\bin;%TEXMFOS%\bin;%PATH% or set PATH=%TEXMFPROJECT%\bin;%TEXMFOS%\bin;%PATH% in 'setuptex.bat'? Wolfgang __

Re: [NTG-context] pk-directory

2010-03-28 Thread Wolfgang Werners-Lucchini
> > I have it found! > > > > In chapter 4.1.1.10 of the luatex reference one can read: > > > > The argument name is a bit special in this case. Its form is > > > > dpi/.pk > > well, i could turn > > 600dpi/manfnt.720pk > > into > > manfnt.720pk > No, no! That makes sense this way. --

[NTG-context] font lookup

2010-04-05 Thread Wolfgang Werners-Lucchini
Hallo, how can I find the complete path of a existing font with luatex under context mkiv. I am looking for an equivalent function to kpse.lookup(fontname) Wolfgang ___ If your question is of interest to others as w

[NTG-context] randomize

2010-04-05 Thread Wolfgang Werners-Lucchini
Hallo, I get allways (10 times at least) the same result: - \starttext \startluacode math.randomseed(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} con

Re: [NTG-context] font lookup

2010-04-05 Thread Wolfgang Werners-Lucchini
Thank you Wolfgang, > > how can I find the complete path of a existing font > > with luatex under context mkiv. I am looking for an > > equivalent function to > > > > kpse.lookup(fontname) > > > Here is a solution which consults ConTeXt?s font database, no path > in the output means the font i

Re: [NTG-context] randomize

2010-04-06 Thread Wolfgang Werners-Lucchini
> Am 06.04.10 00:21, schrieb Wolfgang Werners-Lucchini: > > Hallo, > > > > I get allways (10 times at least) the same result: > > - > > \starttext > > \startluacode > > math.randomseed(os.time

Re: [NTG-context] randomize

2010-04-07 Thread Wolfgang Werners-Lucchini
> > I get allways (10 times at least) the same result: > > - > > \starttext > > \startluacode > > math.randomseed(os.time()) > > \stopluacode > > > > Encode your Name and Surname as a > > \startluacode > > local a = {'null-terminated', 'do

Re: [NTG-context] font lookup

2010-04-07 Thread Wolfgang Werners-Lucchini
> > When you know the filename, you can get the complete path like > this: > > > > \starttext > > > \ctxlua{tex.print(resolvers.find_file("texgyrepagella-regular.otf")) > } > > \stoptext > > > Your question is now answered but why do you need the complete > path? > > Wolfgang I want to modify

Re: [NTG-context] randomize

2010-04-07 Thread Wolfgang Werners-Lucchini
> >> Delete the tuc file with 'context --purgeall'. > >> > > This does not work! I get allways the same. > > > Delete > > \startluacode > math.randomseed(os.time()) > \stopluacode > > in your file. Now it works. But WHY? Wolfgang ___

Re: [NTG-context] randomize

2010-04-07 Thread Wolfgang Werners-Lucchini
> > Now it works. But WHY? > > Because that's the way random number generators works. They're > not > random at all, they generate completely predictable number > sequences > from a "seed": each time you use the same seed, you get the exact > same > sequence. In your case, you used os.time() a

Re: [NTG-context] randomize

2010-04-08 Thread Wolfgang Werners-Lucchini
> > I know this and I have triggerd this by hand. So there is a lot of > > time between. I have purged files between every run and I got the > > same result if I wait 1 second, 1 minute or 1 day. > > Well, then it probably qualifies as a bug, and, since the .tuc > file > has apparently been dism

[NTG-context] callback.register

2010-04-08 Thread Wolfgang Werners-Lucchini
Hallo, I tried the following -- \starttext \startluacode local OldPreLB function MyPreLB(head,gc) texio.write_nl("### Here I am!") OldPreLB(head,gc) end OldPreLB = callback.find('pre_linebreak_filter') callback.register('pre_linebreak_filter',MyPr

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
> > I tried the following > > > > -- > > \starttext > > \startluacode > > local OldPreLB > > > > function MyPreLB(head,gc) > > ?texio.write_nl("### Here I am!") > > ?OldPreLB(head,gc) > > end > > > > OldPreLB = callback.find('pre_linebreak_filter') > > ca

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
> Hello, > > Here a patch for luat-cbk.lua: > > function callbacks.register(name,func,freeze) > if frozen[name] then > if trace_callbacks then > frozenmessage("registering",name) > end > return nil, name .. " is frozen" > elseif freeze then > fr

Re: [NTG-context] callback.register

2010-04-09 Thread Wolfgang Werners-Lucchini
> there are two user hooks: > > tasks.appendaction("processors","before","modules.mine.whatever_a") > tasks.appendaction("processors","after","modules.mine.whatever_b") > - My example looks now \starttext \startluacode function MyPreLB(head,gc) texio.wri

[NTG-context] simplebib

2010-04-12 Thread Wolfgang Werners-Lucchini
Hallo, on the garden there is am module called 'simplebib' which has commands \bibitem and \bibsource Are these two commands meant alternativly? Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] simplebib

2010-04-12 Thread Wolfgang Werners-Lucchini
> > on the garden there is am module called 'simplebib' > > which has commands \bibitem and \bibsource > > > > Are these two commands meant alternativly? > > > Both are unrelated to each other, they are two different ways to > create a bibiliography without the bib module and a bib file. > > W

Re: [NTG-context] simplebib

2010-04-13 Thread Wolfgang Werners-Lucchini
> > Sorry, I meant the first only. > > > > There are two commands \bibitem and \bibsource which are not clear > to me. > > > When i decode the code (ugly formatting) correct this works: > > \starttext > > bla \in{book}[knuth:1] bla > > bla \bibref[knuth:2]{} bla > > bla \bibref[knuth:3]{} b

[NTG-context] table: vertical distance

2010-04-17 Thread Wolfgang Werners-Lucchini
Hallo, I have to typeset a division and have two diverent solutions but they both have problems. %- \starttext {\setuptables[rulethickness=0.05em,distance=small] \starttable[s0|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|] \NC\NC 1\NC 1\NC

Re: [NTG-context] table: vertical distance

2010-04-17 Thread Wolfgang Werners-Lucchini
> \define[1]\divisionrule > {\dontleavehmode\blap > {\vskip-\strutht > \blackrule[width=\the\dimexpr.5em*#1\relax,height=2\linewidth]}% > \vskip-\lineheight} Ahh! Yes, this helps a lot. Thank you very much! Wolfgang _

Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Wolfgang Werners-Lucchini
> Follows is an example of a document that illustrates 1, above: > > \starttext > \startfrontmatter > > \completecontent[alternative=c] > > \setuppagenumbering[state=start,alternative=doublesided,conversion=r > omannume > rals] > > \chapter{Preface} > \input knuth > > \chapter{Introduction} >

Re: [NTG-context] Pagenumbering

2010-04-20 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang! > >> \starttext > >> \startfrontmatter > >> > >> \completecontent[alternative=c] > >> > >> \setuppagenumbering[state=start,alternative=doublesided,conversion=romannumerals] > >> > >> ... > >> > >> \setuppagenumbering[state=start,alternative=doublesided,conversion=numbers] > >> \set

[NTG-context] \textvisiblespace

2010-04-22 Thread Wolfgang Werners-Lucchini
Hallo, shouldn't \textvisiblespace work in mkiv? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt

[NTG-context] ! Undefined control sequence

2010-04-23 Thread Wolfgang Werners-Lucchini
Hallo, I have a little problem which I can not solve. The following example works with the definition of \broad in position 1 and it fails in position 2. - % Position 1 % \def\broad{5*broad} \defineitemgroup[Tst] \setupitemgroup[Tst][1][n,\broad ] % Position

[NTG-context] \doifinset

2010-04-23 Thread Wolfgang Werners-Lucchini
Hallo, on the garden at http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions one can read to the command \doifinset 'If the first string expands 'empty', it is considered to be always in the set.' But \starttext \doifinset{}{A,B,C}{should go} \stoptext seams to show that this

[NTG-context] Re :! Undefined control sequence

2010-04-23 Thread Wolfgang Werners-Lucchini
Hallo Taco and Wolfgang, > > Why is this? > > Because \setupitemgroup expands its third argument. > > > And how can I make it work in position 2? > >\setupitemgroup[Tst][1][n,\noexpand\broad ] > thank you very much! > \defineitemgroup[Tst] > > \setvariables[tst][set={\setupTst[1][n,\g

Re: [NTG-context] ! Undefined control sequence

2010-04-26 Thread Wolfgang Werners-Lucchini
> > What is the following command for: > > > > > \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broa > d] > > }] > > > > This is enough, or are there any problems? > > > > \setupTst[1][n,\getvariable{tst}{broad}*broad] > > > To explain it with simpler macros > > \setvariables[

<    1   2   3