summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/morehype/blogdot.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-23 22:25:02 +0000
committerKarl Berry <karl@freefriends.org>2011-10-23 22:25:02 +0000
commitfb89be74d746b6e35b71f8b952d60171a94703d9 (patch)
tree82accd3660cb3c0b75dea67197efda283caad47d /Master/texmf-dist/tex/latex/morehype/blogdot.sty
parent6cbc7ea970ec21c86eccb8568e3845847ecaeb26 (diff)
morehype (23oct11)
git-svn-id: svn://tug.org/texlive/trunk@24369 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/morehype/blogdot.sty')
-rw-r--r--Master/texmf-dist/tex/latex/morehype/blogdot.sty49
1 files changed, 40 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/morehype/blogdot.sty b/Master/texmf-dist/tex/latex/morehype/blogdot.sty
index 699cb64805a..900025e9d35 100644
--- a/Master/texmf-dist/tex/latex/morehype/blogdot.sty
+++ b/Master/texmf-dist/tex/latex/morehype/blogdot.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \newcommand* etc.
-\ProvidesPackage{blogdot}[2011/10/15 v0.3 HTML presentations (UL)]
+\ProvidesPackage{blogdot}[2011/10/22 v0.4 HTML presentations (UL)]
%% copyright (C) 2011 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
%% -- author-maintained in the sense of LPPL below.
@@ -64,7 +64,8 @@
%% |\CommentBlogDotWholeWidth| procuces no \HTML\ code ...
\global\let\BlogDotWholeWidth\@empty
%% ... unless calculated with |\SumBlogDotWidth|:
-\newcommand*{\SumBlogDotWidth}{{%
+\newcommand*{\SumBlogDotWidth}{%
+ \relax{% %% \relax 2011/10/22 magic ...
\count@\typeareawidth
\advance\count@ \leftpagemargin
\advance\count@\rightpagemargin
@@ -122,7 +123,7 @@
%% |\BlogDotRestart| expands.
\newcommand*{\screenbottom}[1]{%
\ifFillBlogDotTypeArea
- </p>\ancref{#1}{\BlogDotFillText}%
+ <p>\ancref{#1}{\BlogDotFillText}% %% not </p> 2011/10/22
\fi
\endTd\emptycell
\endtr
@@ -232,7 +233,9 @@
%% the type area so that the text is centered on wider screens
%% than the one the \HTML\ page was made for. The link may serve
%% as an alternative to the bottom margin link
-%% (which sometimes fails). It can be undone
+%% (which sometimes fails).
+%% `\FillBlogDotTypeArea' %% 2011/10/22
+%% can be undone
%% by |\DontFillBlogDotTypeArea|:
\newcommand*{\FillBlogDotTypeArea}{%
\let\ifFillBlogDotTypeArea\iftrue
@@ -241,8 +244,9 @@
\let\ifFillBlogDotTypeArea\iffalse}
\DontFillBlogDotTypeArea
%% |\FillBlogDotBottom| fills `\BlogDotFillText' into the
-%% center bottom cell. I tried this before `\FillBlogDotTypeArea'
-%% and I am not sure ... \ It can be undone by
+%% center bottom cell. I tried it before `\FillBlogDotTypeArea'
+%% and I am not sure ...
+%% It can be undone by
%% |\DontFillBlogDotBottom|:
\newcommand*{\FillBlogDotBottom}{%
\let\BlogDotBottomFill\BlogDotFillText}
@@ -251,14 +255,37 @@
\newcommand*{\DontFillBlogDotBottom}{\let\BlogDotBottomFill\@empty}
\DontFillBlogDotBottom
%% |\DontShowBlogDotFillText| makes `\BlogDotFillText' invisible,\\
-%% |\ShowBlogDotFillText| makes it visible:
+%% |\ShowBlogDotFillText| makes it visible.
+%% Until 2011/10/22, `\textcolor' ('blog.sty') used the
+%% \xmltagcode{font} element that is deprecated.
+%% I still use it here because it seems to suppress the
+%% `hover' \acro{CSS} indication for the link.
+%% (I might offer a choice---TODO)
\newcommand*{\DontShowBlogDotFillText}{%
- \def\BlogDotFillTextColor{\textcolor{\bodybgcolor}}}
+% \def\BlogDotFillTextColor{\textcolor{\bodybgcolor}}}
+ \def\BlogDotFillTextColor{%
+ \TagSurr{font}{color="\bodybgcolor"}}}
\newcommand*{\ShowBlogDotFillText}{%
\def\BlogDotFillTextColor{\textcolor{red}}}
\DontShowBlogDotFillText
+%% As of 2011/10/21, 'texlinks.sty' provides
+%% `\ctanfileref{<path>}{<file-name>}' that uses an online
+%% \TeX\ archive according to
+%% \[|\usemirrorctan|\quad \mbox{or}\quad |\usetugctan|.\]
+%% This is preferable for an online version of the presentation.
+%% In `dantev45.htm', this is used for example files.
+%% When, on the other hand, internet access during the presentation is
+%% bad, such example files may instead be loaded from the
+%% ``current directory." \ |\usecurrdirctan| \ modifies `\ctanfileref'
+%% for this purpose (i.e., it will ignore <path>):
+\newcommand*{\usecurrdirctan}{%
+ \renewcommand*{\ctanfileref}[2]{%
+ \hnewref{}{##2}{\filenamefmt{##2}}}}
+%% (Using a local \acro{TDS} tree would be funny, but I don't
+%% have good idea for this right now. )
+%%
%% |\TryBlogDotCFG| looks for `blogdot.cfg',
-%% |\TryBlogDotCFG[<file-name-base>]|
+%% \[|\TryBlogDotCFG[<file-name-base>]|\] %% \[...\] 2011/10/21
%% looks for `<file-name-base>.cfg'
%% (for recompiling a certain file):
\newcommand*{\TryBlogDotCFG}[1][blogdot]{%
@@ -290,3 +317,7 @@ v0.3 2011/10/11 \HVspace, \BlogDotFillText
\ifFillBlogDotTypeArea, \tablerow, messages
2011/10/14 \maybe@blogdot@frame
2011/10/15 doc. note: \HVspace useless
+ part of morehype RELEASE r0.51
+v0.4 2011/10/21 \usecurrdirctan
+ 2011/10/22 FillText with <p> instead of </p>, its color
+ uses <font>; some more reworking of doc.