Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Hans Hagen
Mojca Miklavec wrote: Hello, Here's a tiny question. The following command complains about undefined control sequence. \starttext \startluacode print('a\tb') print('a\\tb') \stopluacode hello \stoptext -

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Mojca Miklavec
On Wed, Nov 26, 2008 at 8:28 PM, Wolfgang Schuster wrote: Am 26.11.2008 um 20:07 schrieb Mojca Miklavec: Hello, Here's a tiny question. The following command complains about undefined control sequence. \starttext \startluacode print('a\tb') print('a\t b') But then I get some unwanted

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
OK, I will use external files next time. In this quick-and-dirty approach I just added string.format since it was easier than restructuring everything. I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence, but

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Wolfgang Schuster
On Thu, Nov 27, 2008 at 9:29 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Wed, Nov 26, 2008 at 8:28 PM, Wolfgang Schuster wrote: Am 26.11.2008 um 20:07 schrieb Mojca Miklavec: Hello, Here's a tiny question. The following command complains about undefined control sequence. \starttext

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Wolfgang Schuster
On Thu, Nov 27, 2008 at 9:42 AM, luigi scarso [EMAIL PROTECTED] wrote: OK, I will use external files next time. In this quick-and-dirty approach I just added string.format since it was easier than restructuring everything. I thought that \startluacode should be behaving the same way as

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
On Thu, Nov 27, 2008 at 10:02 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Thu, Nov 27, 2008 at 9:42 AM, luigi scarso [EMAIL PROTECTED] wrote: OK, I will use external files next time. In this quick-and-dirty approach I just added string.format since it was easier than

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Taco Hoekwater
Bart C. Wise wrote: Hans, What's the chances on getting this fixed? This is the bug: --- syst-lua.lua.orig 2008-11-27 10:39:58.396303891 +0100 +++ syst-lua.lua2008-11-27 10:40:02.063303374 +0100 @@ -46,8 +46,8 @@ function commands.doifcommonelse(a,b) local ha = h[a]

[NTG-context] Apa-fr

2008-11-27 Thread Jean Magnan de Bornier
Hi all (mostly Taco), Using bibl-apa-fr.tex for bibliography, I encountered a chapter on line 111 which should (I think) be changed to Chapitre (I did that on a file at home and it works well); my context is TL2008 so if the file has been modified since september I have not seen that yet.

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Hans Hagen
luigi scarso wrote: Correction: -- works as comments in luacode % is used to format strings It's a bit different: code below is ok, and TeX comment is seen before lua comment . Only Hello! is print on pdf %% \def\Foo{% \startluacode -- this is a

Re: [NTG-context] Centering the page

2008-11-27 Thread Mohamed Bana
anyone? Mohamed Bana wrote: %%% Document %%% % engine=luatex \enableregime [utf-8] \mainlanguage[uk] \language[uk] \setuppapersize [A4] [A4] \showframe %\showlayout %\setuplayout[width=middle] \setupwhitespace [medium] \starttext \input knuth \input zapf

Re: [NTG-context] Centering the page

2008-11-27 Thread Mohamed Bana
Thanks, but that's not what I had in mind. Look at the right edge of the pdf (http://filebin.ca/rzjruz/test.pdf or http://filebin.ca/rzjruz) there's a gap - about 1/2 a centimetres - which isn't on the left side. It doesn't look uniform. Wolfgang Schuster wrote: On Thu, Nov 27, 2008 at

Re: [NTG-context] Centering the page

2008-11-27 Thread Wolfgang Schuster
On Thu, Nov 27, 2008 at 1:46 PM, Mohamed Bana [EMAIL PROTECTED] wrote: Thanks, but that's not what I had in mind. Look at the right edge of the pdf (http://filebin.ca/rzjruz/test.pdf or http://filebin.ca/rzjruz) there's a gap - about 1/2 a centimetres - which isn't on the left side. It

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
On Thu, Nov 27, 2008 at 1:03 PM, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: Correction: -- works as comments in luacode % is used to format strings It's a bit different: code below is ok, and TeX comment is seen before lua comment . Only Hello! is

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
Correction: -- works as comments in luacode % is used to format strings It's a bit different: code below is ok, and TeX comment is seen before lua comment . Only Hello! is print on pdf %% \def\Foo{% \startluacode -- this is a lua comment %% this is a TeX comment

Re: [NTG-context] difference between TeX behavior and ConTeXt

2008-11-27 Thread Taco Hoekwater
Lars Huttar wrote: something like this: switch to a serif style (if that's what \rm means in ConTeXt -- I still don't know for sure). \rm in ConTeXT means: switch to the internal style group named rm (and likewise for \ss - ss etc.) Whether rm points to a group of fonts that

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Hans Hagen
Taco Hoekwater wrote: Bart C. Wise wrote: Hans, What's the chances on getting this fixed? This is the bug: --- syst-lua.lua.orig 2008-11-27 10:39:58.396303891 +0100 +++ syst-lua.lua2008-11-27 10:40:02.063303374 +0100 @@ -46,8 +46,8 @@ function

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Hans Hagen
Mojca Miklavec wrote: I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence, but apparently I was wrong. no, more like MPcode where one can mix things if the luacode would not expand macros, then we'd need

Re: [NTG-context] Centering the page

2008-11-27 Thread Wolfgang Schuster
On Thu, Nov 27, 2008 at 1:17 PM, Mohamed Bana [EMAIL PROTECTED] wrote: anyone? \setuplayout [backspace=8cm, width=middle] Wolfgang Mohamed Bana wrote: %%% Document %%% % engine=luatex \enableregime [utf-8] \mainlanguage[uk] \language[uk] \setuppapersize [A4] [A4]

Re: [NTG-context] Apa-fr

2008-11-27 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Le 27 novembre à 13:34:11 Taco Hoekwater [EMAIL PROTECTED] écrit notamment: | Jean Magnan de Bornier wrote: | Hi all (mostly Taco), | | Using bibl-apa-fr.tex for bibliography, I encountered a chapter on line 111 | which should (I think) be changed to

[NTG-context] can not include movie

2008-11-27 Thread Michail Vidiassov
Dear All, ConTeXt user manual says movies are just like figures, but when I process \starttext \placefigure[here]{none}{\externalfigure[demo.mov][width=0.7\textwidth, height=.7\textwidth, label=demo, preview=yes]} \stoptext with context filename.tex using the latest minimals without any

Re: [NTG-context] bug in mkii xetex: mp figure is not in the right position

2008-11-27 Thread Aditya Mahajan
Not in a mood to be involved in a latex-context flame today, but emacs-vim flame is another story :-) On Wed, 26 Nov 2008, Marcin Borkowski wrote: Marcin Borkowski (http://mbork.pl) Emacs: Escape-Meta-Alt-Control-Shift. true . ** entirely true **. Glad you like it. (Personally, I use

Re: [NTG-context] Apa-fr

2008-11-27 Thread Jean Magnan de Bornier
Le 27 novembre à 15:45:13 Taco Hoekwater [EMAIL PROTECTED] écrit notamment: | Jean Magnan de Bornier wrote: | Le 27 novembre à 13:34:11 Taco Hoekwater [EMAIL PROTECTED] écrit notamment: | | | Jean Magnan de Bornier wrote: | | Hi all (mostly Taco), | | | | Using bibl-apa-fr.tex for

Re: [NTG-context] bug in mkii xetex: mp figure is not in the right position

2008-11-27 Thread luigi scarso
On Thu, Nov 27, 2008 at 5:17 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Not in a mood to be involved in a latex-context flame today, but emacs-vim flame is another story :-) On Wed, 26 Nov 2008, Marcin Borkowski wrote: Marcin Borkowski (http://mbork.pl) Emacs:

Re: [NTG-context] bug in mkii xetex: mp figure is not in the right position

2008-11-27 Thread Aditya Mahajan
On Wed, 26 Nov 2008, [EMAIL PROTECTED] wrote: I am on the wrong list because I just said ``LaTeX rocks''? There was a smiley at the end of that comment! I would like to apologise you and anyone else from the bottom of my heart if I have offended you and others, but honestly I did not mean

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Bart C. Wise
Hans, I tried the changes, but now footnotes do not appear at all! Here's a copy of the code that I used (combining both Hans' and Taco's changes -- although I tried several variants). local s = lpeg.Ct(lpeg.splitat(,)) local h = { } function commands.doifcommonelse(a,b) local ha =

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Wolfgang Schuster
Am 27.11.2008 um 20:44 schrieb Bart C. Wise: Hans, I tried the changes, but now footnotes do not appear at all! Here's a copy of the code that I used (combining both Hans' and Taco's changes -- although I tried several variants). local s = lpeg.Ct(lpeg.splitat(,)) local h = { }

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Bart C. Wise
Thanks Wolfgang. I looked at Taco's diff file and changed the routines in syst-lua.lua. However, I followed you're lead and changed core-job.lua and it works! Yes the footnotes come out. New problem (also happens on MkII), if there are a lot of end notes, instead of going to the next page

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Wolfgang Schuster
Am 27.11.2008 um 21:43 schrieb Bart C. Wise: Thanks Wolfgang. I looked at Taco's diff file and changed the routines in syst-lua.lua. However, I followed you're lead and changed core-job.lua and it works! Yes the footnotes come out. New problem (also happens on MkII), if there are a

Re: [NTG-context] End Notes and Minimals

2008-11-27 Thread Bart C. Wise
On Thursday 27 November 2008 14:00, Wolfgang Schuster wrote: Am 27.11.2008 um 21:43 schrieb Bart C. Wise: Thanks Wolfgang. I looked at Taco's diff file and changed the routines in syst-lua.lua. However, I followed you're lead and changed core-job.lua and it works! Yes the footnotes