Some questions about the taspresent module
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)? - With the greenblue style the title page is produced with its layout, but no text appears on that page... - 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): .................................. ERROR: Font \**Emblem**:=uhvb8r at 30pt not loadable: metric data not found or bad. --- TeX said --- <to be read again> \relax \dododefinefont ...ontspec {#2}\rawfontidentifier \let \localrelativefontsiz... l.1 ...t,top=\vss ,bottom=\vss ,frame=off]{\Emblem \color [c]{Made with C\CM... --- HELP --- You requested a family/series/shape/size combination that is totally unknown. There are two cases in which this error can occur: 1) You used the \size macro to select a size that is not available. 2) If you did not do that, go to your local `wizard' and complain fiercely that the font selection tables are corrupted! .................................. I will soon update the muse page on the wiki, but I wish these problems could be solved before :-) best -- Jean
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 -----------------------------------------------------------------
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: ./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
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:
./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 -----------------------------------------------------------------
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: ./test.tex fclose: Bad file descriptor fclose: Bad file descriptor ! ==> Fatal error occurred, no output PDF file produced!
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: ./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
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: ./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 -----------------------------------------------------------------
Le 18 mai à 18:09:29 "Thomas A. Schmitz"
| \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
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
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
Le 18 mai à 19:21:59 "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
Le 18 mai à 22:11:33 "Thomas A. Schmitz"
| > 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
participants (4)
-
Hans Hagen
-
Jean Magnan de Bornier
-
Taco Hoekwater
-
Thomas A. Schmitz