\NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \newcommand* etc. \ProvidesPackage{blogdot}[2013/01/22 v0.41b HTML presentations (UL)] %% copyright (C) 2011 Uwe Lueck, %% http://www.contact-ednotes.sty.de.vu %% -- author-maintained in the sense of LPPL below. %% %% This file can be redistributed and/or modified under %% the terms of the LaTeX Project Public License; either %% version 1.3c of the License, or any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% We did our best to help you, but there is NO WARRANTY. %% %% Please report bugs, problems, and suggestions via %% %% http://www.contact-ednotes.sty.de.vu %% %% == 'blog' Required == %% 'blogdot' is an extension of 'blog' %% (but what about options? TODO): \RequirePackage{blog} %% == Size Parameters == %% \label{sec:dot-size} %% I assume that it is clear what the following %% six page dimension parameters %% \begin{quote} %% |\leftpagemargin|, |\rightpagemargin|, %% |\upperpagemargin|,\\|\lowerpagemargin|, %% |\typeareawidth|, |\typeareaheight| %% \end{quote} %% mean. %% The choices are what I thought should work best %% on my 1024$\times$600 screen (in fullscreen mode); %% but I had to optimize the left and right margins experimentally %% (with Mozilla Firefox~3.6.22 for Ubuntu canonical~-~1.0). %% It seems to be best when the horizontal parameters %% together with what the brouswer adds %% (scroll bar, probably 32px with me) %% sum up to the screen width. \newcommand*{\leftpagemargin}{176} \newcommand*{\rightpagemargin}{\leftpagemargin} %% So |\rightpagemargin| ultimately is the same as %% |\leftpagemargin| as long as you don't redefine it, %% and it suffices to `\renewcommand' `\leftpagemargin' %% in order to get a horizontically centered type area %% with user-defined margin widths.---Something analogous %% applies to |\upperpagemargin| and |\lowerpagemargin|: \newcommand*{\upperpagemargin}{80} \newcommand*{\lowerpagemargin}{\upperpagemargin} %% A difference to the ``horizontal" parameters is %% (I expect) that the position of the type area on the %% screen is affected by |\upperpagemargin| only, %% and you may choose |\lowerpagemargin| just large enough %% that the next slide won't be visible on any computer screen %% you can think of. \newcommand*{\typeareawidth}{640} \newcommand*{\typeareaheight}{440} %% Centering with respect to web page body may work better on %% different screens (2011/10/03), but it doesn't work here %% (2011/10/04). % \renewcommand*{\body}{% % \CLBrk % } %% |\CommentBlogDotWholeWidth| procuces no \HTML\ code ... \global\let\BlogDotWholeWidth\@empty %% ... unless calculated with |\SumBlogDotWidth|: \newcommand*{\SumBlogDotWidth}{% \relax{% %% \relax 2011/10/22 magic ... \count@\typeareawidth \advance\count@ \leftpagemargin \advance\count@\rightpagemargin \typeout{ * blogdot slide width = \the\count@\space*}% \xdef\CommentBlogDotWholeWidth{% \comment{ slide width = \the\count@\ }}}} %% %% == (Backbone for) Starting a ``Slide" == %% \label{sec:dot-start} %% |\startscreenpage{