From: Richard Jones Date: Thu, 4 Mar 2010 17:24:52 +0000 (+0000) Subject: Documentation. X-Git-Tag: 1.0.0~15 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=ccd8fffc4ae378f86dc399ea6eefec2f7f9ad8ed;p=techtalk-pse.git Documentation. --- diff --git a/techtalk-pse.pl b/techtalk-pse.pl index 3955c7e..ae8a9c9 100755 --- a/techtalk-pse.pl +++ b/techtalk-pse.pl @@ -478,6 +478,8 @@ That just ensures that I can put common styling instructions for all my slides in a single file (C), and I have one place where I can add all Javascript, if I need to use any (C). +=head3 BACKGROUNDS, FONTS AND LOGOS + To add a common background and font size to all slides, put this in C: @@ -486,11 +488,43 @@ C: background: url(background-image.jpg) no-repeat; } +To add a logo in one corner: + + body { + background: url(logo.jpg) top right no-repeat; + } + +=head3 SCALING AND CENTERING + Scaling slide text and images so that they appear at the same proportionate size for any screen resolution can be done using Javascript. (See L). +If you want to center text horizontally, use CSS, eg: + + p.center { + text-align: center; + } + +To center text vertically, CSS3 is supposed to offer a solution some +time, but while you're waiting for that try +L. + +=head3 PREVIEWING HTML + +I find it helpful to have Firefox open to display the HTML files and +styles as I edit them. Just start firefox in the talk directory: + + firefox file://$(pwd) & + +When you edit an HTML file, click the Firefox reload button to +immediately see your changes. + +Tech Talk PSE uses Mozilla embedding to display HTML, which uses the +same Mozilla engine as Firefox, so what you should see in Firefox +should be identical to what Tech Talk PSE displays. + =head2 CREATING FIGURES Use your favorite tool to draw the figure, convert it to an image (in