diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-16 22:25:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-16 22:25:43 +0000 |
commit | aa467adcb6fa142686fa83b549b69a1d51e49d34 (patch) | |
tree | 51cb8d6573ad4861f701f87a538e6afa8a3cddbb /Master/texmf-dist/tex/latex/morehype/blog.sty | |
parent | e37d3f4634ed187dba355c4ce6e005f86c7376f4 (diff) |
morehype (16oct11)
git-svn-id: svn://tug.org/texlive/trunk@24303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/morehype/blog.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/morehype/blog.sty | 76 |
1 files changed, 60 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/morehype/blog.sty b/Master/texmf-dist/tex/latex/morehype/blog.sty index 5ff71be95e2..bcf0bc0d0ac 100644 --- a/Master/texmf-dist/tex/latex/morehype/blog.sty +++ b/Master/texmf-dist/tex/latex/morehype/blog.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \newcommand* etc. -\ProvidesPackage{blog}[2011/10/10 v0.5 simple fast HTML (UL)] +\ProvidesPackage{blog}[2011/10/15 v0.61 simple fast HTML (UL)] %% copyright (C) 2010 2011 Uwe Lueck, %% http://www.contact-ednotes.sty.de.vu %% -- author-maintained in the sense of LPPL below. @@ -401,8 +401,11 @@ %% The indent could be increased for nested lists %% if we supported assignments with `\begin' and `\end'. %% 2011/10/04 including \xmltagcode{</li>}, -%% repairs more links in \acro{DANTE} talk: -\renewcommand*{\item}{\indenti<li>} +%% repairs more links in \acro{DANTE} talk +%% (missing again 2011/10/11!?): +\renewcommand*{\item}{% + \indenti</li>\CLBrk %% 2011/10/11 + \indenti<li>} %% \LaTeX's |{description}| environment redefines the %% label format for the optional argument of `\item'. %% Again, \emph{we} cannot do this here @@ -485,12 +488,17 @@ %% 'blog.sty' currently (even 2011/01/24) implements my style %% \emph{not} to open a new browser window or tab for \emph{local} %% files but to open a new one for \emph{remote} files, i.e., -%% when a file is addressed by a full URL. For the latter case, -%% there is \[|\httpref{<host-path[#frag]>}{<text>}|\] making <text> -%% a link to `http://<host-path[#frag]>': -% \newcommand*{\httpref}[1]{\href{http://#1}} -\newcommand*{\httpref}[1]{% %% 2010/04/11 - \TagSurr a{\@href{http://#1" target="_blank}}} +%% when a file is addressed by a full URL. +%% This may change (as with 'blogdot.sty', 2011/10/12, +%% or more generally with local non-\HTML\ files), +%% so let us have a backbone +%% |\hnewref{<prot>}{<host-path[#frag]>}{<text>}| +%% makes <text> a link to <prot><host-path[#frag]>: +\newcommand*{\hnewref}[2]{% + \TagSurr a{\@href{#1#2" target="_blank}}} +%% So \[|\httpref{<host-path[#frag]>}{<text>}|\] +%% makes <text> a link to \urlfmt{http://}<host-path[#frag]>: +\newcommand*{\httpref}{\hnewref{http://}} %% With v0.4, macros based on `\httpref' are moved to 'texlinks.sty': \RequirePackage[blog]{texlinks}[2011/02/10] %% Former |\urlref| appears as |\urlhttpref| there ... @@ -503,9 +511,7 @@ %% |\NormalHTTPref| of `\httpref': \@ifdefinable \NormalHTTPref {\let\NormalHTTPref\httpref} %% |\httpsref| is the analogue of `\httpref' for `https://': -\newcommand*{\httpsref}[1]{% %% 2011/06/27 - \TagSurr a{\@href{https://#1" target="_blank}}} -%% +\newcommand*{\httpsref}{\hnewref{https://}} %% %% == Characters/Symbols == %% `Symbols' until 2011/09/25 %% === Basic Preliminaries === @@ -824,9 +830,14 @@ \newcommand*{\@frame@groups}{\@frame{groups}} \newenvironment{allrulestable}[2] {\startTable{\@cellpadding{#1} \@width{#2} - \@frame@box rules="all"}\CLBrk - \indenti<tbody>} - {\indenti</tbody>\CLBrk\endTable} + \@frame@box\ rules="all"}\CLBrk %% \ 2011/10/12 + \indenti\tbody} %% <- tbody 2011/10/13 -> + {\indenti\endtbody\CLBrk\endTable} +%% \xmltagcode{tbody}...\xmltagcode{/tbody} seemed to be +%% better with `\HVspace' for 'blogdot.sty', %% 2011/10/13 +%% so it gets a macro: +\useHTMLelement{tbody}{tbody} +%% %% === Rows === %% I first thought it would be good for readability if %% some \HTML\ comments explain nesting or briefly describe @@ -886,6 +897,34 @@ \newcommand*{\FillRow}[2]{\indentiii\startTd{\@colspan{#1} #2}\endTd} \newcommand*{\fillrow}[1]{\FillRow{#1}{}} \newcommand*{\fillrowcolor}[2]{\FillRow{#1}{\@bgcolor{#2}}} +%% === Skipping Tricks === +%% %% 2011/10/13 +%% |\HVspace{<text>}{<width>}{<height>}| may change, +%% needed for 'blogdot.sty' but also for |\vspace{<height>}| +%% with 'texblog'. It is now here so I will be careful +%% when I want to change something. \xmltagcode{tbody} +%% improved the function of `\HVspace' constructions +%% as link text with 'blogdot.sty'. +\newcommand*{\HVspace}[3]{% + \CLBrk + \startTable{\@width{#2} \@height{#3} + \@border{0} + \@cellpadding{0} \@cellspacing{0}}% + \tbody + \CLBrk %% 2011/10/14 + \tablerow{HVspace}% %% 2011/10/13 +%% <- inserting text at top for 'blogdot' attempts---that +%% finally did not help anything (2011/10/15) -> + \simplecell{#1}% + \endtablerow %% 2011/10/13 + \CLBrk %% 2011/10/14 + \endtbody + \endTable + \CLBrk} +%% |\hvspace{<width>}{<height>}| ...: +\newcommand*{\hvspace}{\HVspace{}} +%% |\vspace{<height>}| ... (TODO: `{0}'!?): +\renewcommand*{\vspace}[1]{\hvspace{}{#1}} %% %% == Misc == %% |\comment{<comment>}| produces a one-line \HTML\ comment. @@ -1014,10 +1053,15 @@ v0.6 2011/09/08 doc. uses \HTML, \lq/\rq with ˆ, 2011/09/27 "universal" attributes completed, reworked doc. 2011/09/30 end lists with </li> 2011/10/01 \dagger, \ddagger - 2011/10/04 \item includes </li> + 2011/10/04 \item includes </li> [2011/10/11: ???] 2011/10/05 {style}; doc. \acronym -> \acro, \pagebreak, rm. \description; {center} accesses <center>, \useHTMLenvironment replaces \declareHTMLelement and \renderHTMLelement, message "generating" 2011/10/07 \emptycell 2011/10/10 doc.: page breaks, $$->\[/\] +part of MOREHYPE RELEASE r0.5 +v0.61 2011/10/11 </li> in \item again, \Provides... v wrong + 2011/10/12 \hnewref, `\ ' in allrulestable + 2011/10/14 \CLBrk's + 2011/10/15 doc. note on \HVspace/blogdot |