Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Hans Hagen
Jean Magnan de Bornier wrote:
 Hi all (especially Thomas)
 
 I have played these days with the last version of the taspresent
 presentation module, to see how it can be used as such and/or with
 emacs-muse.
 I have discovered that due to the \Maketitle macros, which did not exist
 in the first versions, it is quite easy to have a muse style and nearly
 everything works quite well.
 
 I use mkiv from minimals.
 
 I have a few concerns though:
 
 - On some of the styles, page numbering is like this: 1 of 10, 2 of 10,
   etc. Is there a way, as I have to write in french more often than not,
   to modify that in my tex file without changing the style file (which I
   prefer not to do)?

use labeltexts (grep a bit for 'chapter', 'figure' and such) since they 
adapt to the language (lang-*.tex)

 - With the greenblue style the title page is produced with its layout, but
   no text appears on that page... 

test file needed; keep in mind that some of these styles may use box 
copying tricks and in such cases attributes (like color) may not carry over

 - The embossed style doesn't compile, apparently due some missing font
   (Emblem); is it some rare font, and if not where can I find it? I have
   installed a file called Emblem Regular.ttf but that didn't change
   things; here is the error message (AucTeX):

hm, type 1 font mess (can be the name, map file, encoding ...)


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Thomas A. Schmitz

On May 18, 2008, at 4:12 PM, Jean Magnan de Bornier wrote:

 Hi all (especially Thomas)

 I have played these days with the last version of the taspresent
 presentation module, to see how it can be used as such and/or with
 emacs-muse.
 I have discovered that due to the \Maketitle macros, which did not  
 exist
 in the first versions, it is quite easy to have a muse style and  
 nearly
 everything works quite well.

Hear hear -- glad to see that you're testing the module.


 I use mkiv from minimals.

 I have a few concerns though:

 - On some of the styles, page numbering is like this: 1 of 10, 2 of  
 10,
  etc. Is there a way, as I have to write in french more often than  
 not,
  to modify that in my tex file without changing the style file  
 (which I
  prefer not to do)?

OK, Hans suggested to use labeltexts; I'll have to learn how to use  
it. The basic idea seems to be to have something like this in the  
module:

\setuplabeltext [\s!fr]   [\v!of=de]

and then use \v!of in the code, is that about right, Hans? Jean: in  
French, would you say 1 sur 10 or 1 de 10?

 - With the greenblue style the title page is produced with its  
 layout, but
  no text appears on that page...

I was going for a Zen-look... :-) Seriously: it works here, I get  
normal output for the title page - can you send a small test file?


 - The embossed style doesn't compile, apparently due some missing font
  (Emblem); is it some rare font, and if not where can I find it? I  
 have
  installed a file called Emblem Regular.ttf but that didn't change
  things; here is the error message (AucTeX):

Ah Ok, that's because luaTeX doesn't use the tfm files, so it can't  
find this font. OK, I have a problem here and may need help. Two  
solutions are possible:

1. Use the same font via afm/pfb. This would mean I have to refer to  
the font like so:


\beginLUATEX
\definefontsynonym [BigBoss] [name:NimbusSanL-Bold]
\definefont[Emblem] [BigBoss at 30pt]
\endLUATEX

However, there is a problem with this font; I get this error:

/usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
! Emergency stop.
* ./08_05_20_b.tex

fclose: Bad file descriptor
fclose: Bad file descriptor
!  == Fatal error occurred, no output PDF file produced!

Hans, Taco, any idea what's going wrong here?

2. Use an OpenType font instead; specifically the TeXGyreHeros. This  
would mean:

\beginLUATEX
\definefontsynonym [BigBoss] [name:TeXGyreHeros-Bold]
\definefont[Emblem] [BigBoss at 30pt]
\endLUATEX

Problem here: this switch messes up the spacing; with all TeXGyre  
font, the graphic doesn't respect its position on the page. I'm not  
sure if it is the font or mkiv in general or MPlib. I'll have to  
investigate that and will look into it, but I can't promise that it  
will be very soon.

Thanks for testing , all best

Thomas

___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Hans Hagen
Thomas A. Schmitz wrote:

 \setuplabeltext [\s!fr]   [\v!of=de]
 
 and then use \v!of in the code, is that about right, Hans? Jean: in  
 French, would you say 1 sur 10 or 1 de 10?

indeed; best start making a list of languages and \v!of ... so that we 
have a support for more then en/de/fr

mayeb use 'ofpage' instead (and atpage)

 \beginLUATEX
 \definefontsynonym [BigBoss] [name:NimbusSanL-Bold]
 \definefont[Emblem] [BigBoss at 30pt]
 \endLUATEX
 
 However, there is a problem with this font; I get this error:
 
 /usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
 ! Emergency stop.
 * ./08_05_20_b.tex
 
 fclose: Bad file descriptor
 fclose: Bad file descriptor
 !  == Fatal error occurred, no output PDF file produced!
 
 Hans, Taco, any idea what's going wrong here?

no .. a small test file will help us -)

 Problem here: this switch messes up the spacing; with all TeXGyre  
 font, the graphic doesn't respect its position on the page. I'm not  
 sure if it is the font or mkiv in general or MPlib. I'll have to  
 investigate that and will look into it, but I can't promise that it  
 will be very soon.

hm, puzzled

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Thomas A. Schmitz

On May 18, 2008, at 6:36 PM, Hans Hagen wrote:

 no .. a small test file will help us -)

Sure thing:

\starttext

{\font\test=name:NimbusSanL-Bold \test Hello world!}

\stoptext

Same error:
/usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
! Emergency stop.
* ./test.tex

fclose: Bad file descriptor
fclose: Bad file descriptor
!  == Fatal error occurred, no output PDF file produced!

___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Jean Magnan de Bornier
Le 18 mai à 18:09:29 Thomas A. Schmitz [EMAIL PROTECTED] écrit notamment:

| OK, Hans suggested to use labeltexts; I'll have to learn how to use  
| it. The basic idea seems to be to have something like this in the  
| module:

| \setuplabeltext [\s!fr]   [\v!of=de]

| and then use \v!of in the code, is that about right, Hans? Jean: in  
| French, would you say 1 sur 10 or 1 de 10?

Great! There is a way to do it!
1 sur 10 is definitely much better (but it is not very elegant either)
I need more thinking about that...

Here is my minimal example:
...
\usemodule[taspresent][style=greenblue,font=Pagella,size=17pt]
\setvariables [taspresent]
  [author={Jean Magnan de Bornier},
   title={Le darwinisme et ses méthodes}]
\starttext
\Maketitle
%\lecback
\Slidetitle  {J'ai faim}

Pour..

\stoptext


With %lecback, I have the text of the titlepage, but the layout is wrong
(green in the whole left middle of the page).
With lecback not commented out, no text on the titlepage.
-- 
Jean
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Thomas A. Schmitz

On May 18, 2008, at 7:11 PM, Jean Magnan de Bornier wrote:

 Great! There is a way to do it!
 1 sur 10 is definitely much better (but it is not very elegant  
 either)
 I need more thinking about that...


Of course there's a way to do it; this is ConTeXt, baby... :-)

 Here is my minimal example:
 ...
 \usemodule[taspresent][style=greenblue,font=Pagella,size=17pt]
 \setvariables [taspresent]
  [author={Jean Magnan de Bornier},
   title={Le darwinisme et ses méthodes}]
 \starttext
 \Maketitle
 %\lecback
 \Slidetitle  {J'ai faim}

 Pour..

 \stoptext

Move the \lecback after the line with \Slidetitle, and everything's  
OK. Explanation: the \picback \lecback \titback macros set the  
background for the current page, so they need to be issued AFTER a  
pagebreak (implied in the \Slidetitle macro).

All best

Thomas
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Thomas A. Schmitz

On May 18, 2008, at 7:11 PM, Jean Magnan de Bornier wrote:

 Here is my minimal example:
 ...
 \usemodule[taspresent][style=greenblue,font=Pagella,size=17pt]
 \setvariables [taspresent]
 [author={Jean Magnan de Bornier},
  title={Le darwinisme et ses méthodes}]
 \starttext
 \Maketitle
 %\lecback
 \Slidetitle  {J'ai faim}

 Pour..

 \stoptext


Oh, btw, I need to write the font definitions for luaTeX; right now,  
you don't get Pagella with this example. I will do this soonish.

Thomas
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Taco Hoekwater
Thomas A. Schmitz wrote:
 On May 18, 2008, at 6:36 PM, Hans Hagen wrote:
 
 no .. a small test file will help us -)
 
 Sure thing:
 
 \starttext
 
 {\font\test=name:NimbusSanL-Bold \test Hello world!}
 
 \stoptext
 
 Same error:
 /usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
 ! Emergency stop.
 * ./test.tex
 
 fclose: Bad file descriptor
 fclose: Bad file descriptor
 !  == Fatal error occurred, no output PDF file produced!

Works fine here, with latest trunk (#1270) and bleeding-edge private
context beta. It could be caused by the AFM problem Hans has fixed
just before the weekend. There are no valgrind warnings either, so
we will have to wait and see if the next official context beta removes
the problem for you as well.

Best wishes,
Taco
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Jean Magnan de Bornier
Le 18 mai à 19:21:59 Thomas A. Schmitz [EMAIL PROTECTED] écrit notamment:

| Move the \lecback after the line with \Slidetitle, and everything's  
| OK. Explanation: the \picback \lecback \titback macros set the  
| background for the current page, so they need to be issued AFTER a  
| pagebreak (implied in the \Slidetitle macro).

I see; but the other styles work nicely with lecback where I have put it,
don't they?

If I have to write lecback in that position, my muse styles will be more
difficult to set up :(

btw, afaik titback is implied in \Maketitle, right? Cannot \lecback be
also included in the \Slidetitle macro?

best
-- 
Jean
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Hans Hagen
Taco Hoekwater wrote:
 Thomas A. Schmitz wrote:
 On May 18, 2008, at 6:36 PM, Hans Hagen wrote:

 no .. a small test file will help us -)
 Sure thing:

 \starttext

 {\font\test=name:NimbusSanL-Bold \test Hello world!}

 \stoptext

 Same error:
 /usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
 ! Emergency stop.
 * ./test.tex

 fclose: Bad file descriptor
 fclose: Bad file descriptor
 !  == Fatal error occurred, no output PDF file produced!
 
 Works fine here, with latest trunk (#1270) and bleeding-edge private
 context beta. It could be caused by the AFM problem Hans has fixed
 just before the weekend. There are no valgrind warnings either, so
 we will have to wait and see if the next official context beta removes
 the problem for you as well.

ok, tomorrow taco and i will do some more tests with the binaries (and 
our test files) and if things run well i can do a release

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Thomas A. Schmitz

On May 18, 2008, at 8:23 PM, Jean Magnan de Bornier wrote:

 I see; but the other styles work nicely with lecback where I have  
 put it,
 don't they?

That's a coincidence, and I haven't tested it.

 If I have to write lecback in that position, my muse styles will be  
 more
 difficult to set up :(

Sorry about that, but the mechanism demands that an explicit pagebreak  
be issued before changing the background. If this makes it any easier  
for you, you could also do this:

\starttext
\Maketitle
\page
\lecback
\Slidetitle  {J'ai faim}


 btw, afaik titback is implied in \Maketitle, right? Cannot \lecback be
 also included in the \Slidetitle macro?

Well, that's one of the things where I haven't really made up my mind.  
In theory, you're right; the Slidetitle will only be typeset if we  
have the lecback background. Question to the wizards: would it hurt to  
have a background switch at every page, even if the background doesn't  
really change? I'm kinda reluctant to change the interface now, but  
maybe I should. What do you think about this setup:

\Slidetitle{blabla} = breaks page, invokes switch to normal  
background, typesets argument as title above slide

\Picturetitle{blabla} = breaks page, invokes switch to picture  
background, typesets argument opposite picture

So question is: is anyone using this (besides Jean and myself) and  
relies on the current interface?

Thomas
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Jean Magnan de Bornier
Le 18 mai à 22:11:33 Thomas A. Schmitz [EMAIL PROTECTED] écrit notamment:

| On May 18, 2008, at 8:23 PM, Jean Magnan de Bornier wrote:

|  I see; but the other styles work nicely with lecback where I have  
|  put it,
|  don't they?
| 
| That's a coincidence, and I haven't tested it.

|  If I have to write lecback in that position, my muse styles will be  
|  more
|  difficult to set up :(

| Sorry about that, but the mechanism demands that an explicit pagebreak  
| be issued before changing the background. If this makes it any easier  
| for you, you could also do this:

| \starttext
| \Maketitle
| \page
| \lecback
| \Slidetitle  {J'ai faim}

Yes, this was easy to integrate and works quite well.


| 
|  btw, afaik titback is implied in \Maketitle, right? Cannot \lecback be
|  also included in the \Slidetitle macro?
| 
| Well, that's one of the things where I haven't really made up my mind.  
| In theory, you're right; the Slidetitle will only be typeset if we  
| have the lecback background. Question to the wizards: would it hurt to  
| have a background switch at every page, even if the background doesn't  
| really change? I'm kinda reluctant to change the interface now, but  
| maybe I should. What do you think about this setup:

| \Slidetitle{blabla} = breaks page, invokes switch to normal  
| background, typesets argument as title above slide

| \Picturetitle{blabla} = breaks page, invokes switch to picture  
| background, typesets argument opposite picture

| So question is: is anyone using this (besides Jean and myself) and  
| relies on the current interface?

That is really what I had in mind; so I could have different tags to call
these different types of slides. But the first solution is already quite
good!

best,
-- 
Jean
___
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/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___