diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-23 22:25:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-23 22:25:02 +0000 |
commit | fb89be74d746b6e35b71f8b952d60171a94703d9 (patch) | |
tree | 82accd3660cb3c0b75dea67197efda283caad47d /Master/texmf-dist/tex/latex/morehype/blog.sty | |
parent | 6cbc7ea970ec21c86eccb8568e3845847ecaeb26 (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/blog.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/morehype/blog.sty | 53 |
1 files changed, 36 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/morehype/blog.sty b/Master/texmf-dist/tex/latex/morehype/blog.sty index bcf0bc0d0ac..947ebabfe96 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/15 v0.61 simple fast HTML (UL)] +\ProvidesPackage{blog}[2011/10/22 v0.62 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. @@ -48,8 +48,10 @@ \ProcessOptions \MakeOther\< \MakeOther\> %% TODO ... \newcommand*{\BlogCopyFile}[2][]{% - \typeout{^^J\screenqtd{blog.sty} generating %% 2011/10/05 - \screenqtd{\htmljob\htmakeext}}% +% \typeout{^^J\screenqtd{blog.sty} generating %% 2011/10/05 +% \screenqtd{\htmljob\htmakeext}}% +%% <- 2011/10/22: such a message should be in driver file +%% when it is clear how many source files the target file has. \ProcessFileWith[\BlogCodes \let\ProvidesFile\BlogProvidesFile %% 2011/02/24 \let\protect\@empty %% 2011/03/24 @@ -301,13 +303,17 @@ %% etc. for |\textbf|, |\texttt| ...: \renewcommand*{\textbf}{\SimpleTagSurr b} \renewcommand*{\texttt}{\SimpleTagSurr{tt}} %% 2010/06/07 -%% |\textsf{<text>}| TODO (see some `makehtml.tex') %% 2011/05/11 -%% +%% |\textsf{<text>}| chooses some sans-serif: %% 2011/10/20 +\renewcommand*{\textsf}{% + \TagSurr{span}{\@style{font-family:sans-serif}}} %% |\textcolor| is from \LaTeX's 'color' package %% that we won't load for generating \HTML, %% so it is ``new" here, it is just natural to use it -%% for colored text (2010/05/15): -\newcommand*{\textcolor}[1]{\TagSurr{font}{color="#1"}} +%% for colored text. %% (2010/05/15): +%% \xmltagcode{font} is deprecated, use %% 2011/10/20 +%% \xmltagcode{span} instead: +% \newcommand*{\textcolor}[1]{\TagSurr{font}{color="#1"}} +\newcommand*{\textcolor}[1]{\TagSurr{span}{\@style{color:#1}}} %% %% == Logical Markup == %% |\code{<text>}| marks <text> as ``code," @@ -419,24 +425,32 @@ %% %% == Links == %% === Basic Link Macros === -%% |\hanc{<id>}{<text>}| makes <text> an anchor with -%% \HTML\ label <id> (like 'hyperref''s `\hypertarget'): +%% %% doc. fixes + hyperref 2011/10/16: +%% |\hanc{<name>}{<text>}| makes <text> an anchor with +%% \HTML\ label <name> like \ctanpkgref{hyperref}'s +%% |\hypertarget{<name>}{<text>}| +%% (that we actually provide as well, +%% towards printing from the same source): \newcommand*{\hanc}[1]{\TagSurr a{\@name{#1}}} -%% |\hancref{<id>}{<url>}{<text>}| makes <text> an anchor with -%% \HTML\ label <id> and at the same time a link to <url>: +\@ifdefinable\hypertarget{\let\hypertarget\hanc} +%% |\hancref{<name>}{<target>}{<text>}| makes <text> an anchor with +%% \HTML\ label <name> and at the same time a link to <target>: \newcommand*{\hancref}[2]{\TagSurr a{\@name{#1} \@href{#2}}} -%% |\href{<id>}{<text>}| makes <text> a link to <url>: +%% |\href{<name>}{<text>}| makes <text> a link to <name> +%% (as with 'hyperref'): \newcommand*{\href}[1]{\TagSurr a{\@href{#1}}} %% %% === Special cases of Basic Link Macros === %% |\autanc{<text>}| creates an anchor where <text> is %% the text and the internal label at the same time: \newcommand*{\autanc}[1]{\hanc{#1}{#1}} %% 2010/07/04 -%% |\ancref{<id>}{<text>}| makes <text> a link to -%% an anchor <id> on the same web page. +%% |\ancref{<name>}{<text>}| makes <text> a link to +%% an anchor <name> on the same web page. %% This is especially useful for a ``table of contents"---a %% list of links to sections of the page. +%% It is just like 'hyperref''s |\hyperlink{<name>}{<text>}|: \newcommand*{\ancref}[1]{\href{\##1}} +\@ifdefinable\hyperlink{\let\hyperlink\ancref} %% |\autref{<text>}| makes <text> a link to an anchor %% named <text> itself: \newcommand*{\autref}[1]{\ancref{#1}{#1}} %% 2010/07/04 @@ -493,6 +507,7 @@ %% or more generally with local non-\HTML\ files), %% so let us have a backbone %% |\hnewref{<prot>}{<host-path[#frag]>}{<text>}| +%% that %% 2011/10/21 %% makes <text> a link to <prot><host-path[#frag]>: \newcommand*{\hnewref}[2]{% \TagSurr a{\@href{#1#2" target="_blank}}} @@ -503,9 +518,7 @@ \RequirePackage[blog]{texlinks}[2011/02/10] %% Former |\urlref| appears as |\urlhttpref| there ... \newcommand \urlref {} \let\urlref\urlhttpref -%% ... and |\ctanref| has been replaced by `\tugctanref'. -%% Let's go on playing with the difference ... -\newcommand*{\ctanref}[1]{\httpref{ctan.org/tex-archive/#1}} +%% ... and `\ctanref' has changed its meaning there as of 2011/10/21. %% %% 2011/02/07: %% 'texlinks' sometimes uses a ``permanent alias" %% |\NormalHTTPref| of `\httpref': @@ -1065,3 +1078,9 @@ 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 +part of MOREHYPE RELEASE r0.51 +v0.62 2011/10/16 \hyperlink, \hypertarget; doc. fixes there + 2011/10/20 \textcolor by <span>, \textsf + 2011/10/21 \ctanref now in texlinks.sty; + doc.: grammar with `that' + 2011/10/22 \BlogCopyFile message removed |