presentation (simple-slides?) master-like feature?
![](https://secure.gravatar.com/avatar/1b410f6e6d037749192a51c17d2aacc7.jpg?s=120&d=mm&r=g)
I've been gravitating to a presentation system where I author presentations in markdown, and then convert them to an HTML-based system that results in examples like this: http://www.users.muohio.edu/darcusb/s6test/test.html This allows me to focus on content, but very quickly create high-quality slides. So I have a kind of default representation of a slide, but I also have a couple of CSS classes that I attach (via XSLT) to individual slides depending on the content. For example, if I have a title without any other text content, then I attach a "title" class to the slide, which renders the title larger, and vertical-centered on the page. If there's a single image, I attach a "imgbig" class, which floats the image to the background, and enlarges it to fill the slide. I would like to be able to do the same with PDF using ConTeXt, ideally using simple-slides. I know some styles have similar parameter options for things like image placement, but I'm not seeing anything equivalent for titles. Is this possible to add? Bruce
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
Bruce, very briefly: I'm very very short on time this week, so won't be able to look into this until middle of next week, but I just wanted to let you know that I find your idea great. I had been thinking of adding an xml template for simple presentations. your html-based stuff looks gorgeous, so I would like to know more about it. And let us know what exactly it is that you're missing in simple-slides. In theory, titles are typeset in layers, so everything should be there. All best Thomas On Oct 28, 2009, at 4:11 PM, Bruce wrote:
I've been gravitating to a presentation system where I author presentations in markdown, and then convert them to an HTML-based system that results in examples like this:
http://www.users.muohio.edu/darcusb/s6test/test.html
This allows me to focus on content, but very quickly create high-quality slides.
So I have a kind of default representation of a slide, but I also have a couple of CSS classes that I attach (via XSLT) to individual slides depending on the content. For example, if I have a title without any other text content, then I attach a "title" class to the slide, which renders the title larger, and vertical-centered on the page. If there's a single image, I attach a "imgbig" class, which floats the image to the background, and enlarges it to fill the slide.
I would like to be able to do the same with PDF using ConTeXt, ideally using simple-slides. I know some styles have similar parameter options for things like image placement, but I'm not seeing anything equivalent for titles. Is this possible to add?
Bruce
___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/1b410f6e6d037749192a51c17d2aacc7.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz
Bruce,
very briefly: I'm very very short on time this week, so won't be able to look into this until middle of next week,
OK; feel free to get back to me as time permits, here or off-list (I don't often check this list).
but I just wanted to let you know that I find your idea great. I had been thinking of adding an xml template for simple presentations. your html-based stuff looks gorgeous, so I would like to know more about it.
It's just a JQuery-based version of S5, called S6. My fork of it is here: http://github.com/bdarcus/s6 The background image is just a simple, very small, SVG gradient. I author in markdown, run the file through pandoc to convert to XHTML (though any markdown processor will do), and then pipe it to an XSLT that converts it into my (idiosyncratic) S6 XHTML.
And let us know what exactly it is that you're missing in simple-slides.
Am looking to be able to (easily) do something vaguely like ... \SlideTitle{Some Slide}[style=big-title] .. where 'big-title' gets me the title large and centered vertically on the page. More generally, it's just the idea to be able to adept the rendering on a per-page basis with a simple parameter (rather than me having to figure out how to write lower-level code). It is therefore conceptually analogous to the master slide feature you see in apps like Keynote or PowerPoint. Bruce
In theory, titles are typeset in layers, so everything should be there.
All best
Thomas
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 28 Oct 2009, Bruce wrote:
Am looking to be able to (easily) do something vaguely like ...
\SlideTitle{Some Slide}[style=big-title]
.. where 'big-title' gets me the title large and centered vertically on the page.
I use something similar in my presentations. For example, see pg 3 and 14 of http://pantheon.yale.edu/~am894/pub/talk/allerton-2009a.pdf In my styles, I have a macro that takes care of this. I think that adding such a macro for all styles might be useful. Aditya
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 28 Oct 2009, Thomas A. Schmitz wrote:
Bruce,
very briefly: I'm very very short on time this week, so won't be able to look into this until middle of next week, but I just wanted to let you know that I find your idea great. I had been thinking of adding an xml template for simple presentations. your html-based stuff looks gorgeous, so I would like to know more about it. And let us know what exactly it is that you're missing in simple-slides. In theory, titles are typeset in layers, so everything should be there.
I also like this idea. In fact, it will not be too difficult to map these to simple-slides. Basically <li class="slide title"> <h1>Test Slide Show</h1> </li> should be translated to \setupTitle[title="Test Slide Show",author=,date=] \placeTitle and <li class="slide"> <h1>Hello</h1> <ul> <li>one</li> <li>two</li> </ul> </li> should be translated to \SlideTitle{Hello} \startitemize \item one \item two \stopitemize we currently do not have any specific environment for blockquote (but Thomas and I have discussed adding something similar). The vanilla ConTeXt equivalent \startblockquote ... \stopblockquote doesn't do anything fancy. Finally, <li class="slide imgbig"> <h1>Container Ships</h1> <img src="filename.jpg" /> </li> should be translated to \IncludePicture[horizontal][filename.jpg]{Container Ships} I do not know what is the best way to do these translations. ConTeXt can also handle XML files, so it is just a matter of writing the translation rules in ConTeXt. Or, if you prefer, you can write an XSLT transformation. Aditya
![](https://secure.gravatar.com/avatar/1b410f6e6d037749192a51c17d2aacc7.jpg?s=120&d=mm&r=g)
On Wed, Oct 28, 2009 at 2:40 PM, Aditya Mahajan
On Wed, 28 Oct 2009, Thomas A. Schmitz wrote:
Bruce,
very briefly: I'm very very short on time this week, so won't be able to look into this until middle of next week, but I just wanted to let you know that I find your idea great. I had been thinking of adding an xml template for simple presentations. your html-based stuff looks gorgeous, so I would like to know more about it. And let us know what exactly it is that you're missing in simple-slides. In theory, titles are typeset in layers, so everything should be there.
I also like this idea. In fact, it will not be too difficult to map these to simple-slides. Basically
<li class="slide title"> <h1>Test Slide Show</h1> </li>
should be translated to
\setupTitle[title="Test Slide Show",author=,date=] \placeTitle
Well, except that I want the option to have this sort of rendering elsewhere in the presentation. I see you address that in a followup; would love to see you add that macro. BTW, I'm an academic as well, so using this for both teaching and research presentations (my immediate concern here; have a talk coming up in a few weeks I'd like to try this on).
and <li class="slide"> <h1>Hello</h1> <ul> <li>one</li> <li>two</li> </ul> </li>
should be translated to
\SlideTitle{Hello} \startitemize \item one \item two \stopitemize
we currently do not have any specific environment for blockquote (but Thomas and I have discussed adding something similar). The vanilla ConTeXt equivalent \startblockquote ... \stopblockquote doesn't do anything fancy.
Finally, <li class="slide imgbig"> <h1>Container Ships</h1> <img src="filename.jpg" /> </li>
should be translated to
\IncludePicture[horizontal][filename.jpg]{Container Ships}
I do not know what is the best way to do these translations. ConTeXt can also handle XML files, so it is just a matter of writing the translation rules in ConTeXt. Or, if you prefer, you can write an XSLT transformation.
Yeah, using XSLT is pretty straightforward for this. Bruce
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 28 Oct 2009, Bruce D'Arcus wrote:
<li class="slide title"> <h1>Test Slide Show</h1> </li>
should be translated to
\setupTitle[title="Test Slide Show",author=,date=] \placeTitle
Well, except that I want the option to have this sort of rendering elsewhere in the presentation. I see you address that in a followup; would love to see you add that macro.
This is just a modification of the Interlude macro http://randomdeterminism.wordpress.com/2009/10/21/creating-a-style-file-in-c... \def\Interlude{\dowithpargument\doInterlude} \def\doInterlude#1% {\page \null \vfill \vfill \startalignment[center] \let\\\crlf \interludefont \setupinterlinespace[big] #1 \endgraf \stopalignment \vfill \vfill \vfill \page} But this is ad-hoc. To integrate this with all styles, this macro should have its own background and the user should be able to configure the font, alignment, color, etc using a proper interface. So, that will have to wait until Thomas and I have more time (basically, the end of semester). However, as a stop-gap measure, the above should work. Just translate
<li class="slide title"> <h1>Test Slide Show</h1> </li>
to \Interlude{Test Slide Show} Aditya
![](https://secure.gravatar.com/avatar/0d7c303452b11b8403ba1754990d559c.jpg?s=120&d=mm&r=g)
Hi all! What is the benefit of the page break chosen by ConTeXt. Look at the following example: % \setupalign[line] \starttext \showframe[text] % \showgrid \chapter{Test} \input tufte \par \input knuth \par \input bryson \par \input tufte \par \section{Another head} \stoptext What's would be wrong about to place the three lines of the second page on the first page and to start the second page with the section? Greetings, Andreas
![](https://secure.gravatar.com/avatar/a0f6b595b0e3b7f3abba19eeb8261fc2.jpg?s=120&d=mm&r=g)
What's would be wrong about to place the three lines of the second page on the first page and to start the second page with the section?
It's funny that you should say this, because what you describe is exactly what I see on my computer with my ConTeXt installation (see attachment). Please send a PDF along with the log file. Arthur
![](https://secure.gravatar.com/avatar/0d7c303452b11b8403ba1754990d559c.jpg?s=120&d=mm&r=g)
Am 28.10.2009 um 23:05 schrieb Arthur Reutenauer:
What's would be wrong about to place the three lines of the second page on the first page and to start the second page with the section?
It's funny that you should say this, because what you describe is exactly what I see on my computer with my ConTeXt installation (see attachment). Please send a PDF along with the log file.
That's interesting … Andreas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 28.10.2009 um 22:53 schrieb Andreas Harder:
Hi all!
What is the benefit of the page break chosen by ConTeXt. Look at the following example:
The answer why this happens in MkIV can only give Hans (could be a side effect of the new spacing mechanism) but you can give TeX/ConTeXt hints where pagebreaks are allowed. \setuphead[section][before={\allowbreak\blank[2*big]}] Wolfgang
![](https://secure.gravatar.com/avatar/0d7c303452b11b8403ba1754990d559c.jpg?s=120&d=mm&r=g)
Am 28.10.2009 um 23:17 schrieb Wolfgang Schuster:
Am 28.10.2009 um 22:53 schrieb Andreas Harder:
Hi all!
What is the benefit of the page break chosen by ConTeXt. Look at the following example:
The answer why this happens in MkIV can only give Hans (could be a side effect of the new spacing mechanism) but you can give TeX/ConTeXt hints where pagebreaks are allowed.
\setuphead[section][before={\allowbreak\blank[2*big]}]
Thank you Wolfgang, it looks much better now! Andreas
participants (7)
-
Aditya Mahajan
-
Andreas Harder
-
Arthur Reutenauer
-
Bruce
-
Bruce D'Arcus
-
Thomas A. Schmitz
-
Wolfgang Schuster