diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-11 22:54:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-11 22:54:02 +0000 |
commit | f5d5dc04a3a9336da726ed2dcf9bcb741f8dad4b (patch) | |
tree | 7e40e516d0eaf09e1ae5e6474326a08ea152be78 /Master/texmf-dist/tex/latex/morehype/texlinks.sty | |
parent | 662cda48313c1615e5b117f827f245bd4a4fc22a (diff) |
morehype (11oct11)
git-svn-id: svn://tug.org/texlive/trunk@24269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/morehype/texlinks.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/morehype/texlinks.sty | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/morehype/texlinks.sty b/Master/texmf-dist/tex/latex/morehype/texlinks.sty index 32f3b9c2cab..9423dfef4df 100644 --- a/Master/texmf-dist/tex/latex/morehype/texlinks.sty +++ b/Master/texmf-dist/tex/latex/morehype/texlinks.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \newcommand* etc. -\ProvidesPackage{texlinks}[2011/08/27 v0.4 TeX-related links (UL)] +\ProvidesPackage{texlinks}[2011/10/10 v0.41 TeX-related links (UL)] %% copyright (C) 2011 Uwe Lueck, %% http://www.contact-ednotes.sty.de.vu %% -- author-maintained in the sense of LPPL below. @@ -64,7 +64,7 @@ %% \pagebreak %% %% moving \httpsref 2011/08/27: %% == Providing &\httpref\ and &\httpsref == -%% \kern-\baselineskip +%% %% rm. \kern-\baselineskip 2011/10/10 %% \[|\httpref{<host-path[#frag]>}{<text>}|\] %% should display <text> %% as a link to `http://<host-path[#frag]>'; @@ -244,8 +244,9 @@ %% \emph{section headings}, which typically contain blank spaces. %% This has been more difficult ... %% -%% Likewise with umlauts: text encoding suffices for \emph{lemmas.} -%% I made `\urluml' for lemmas. But umlauts in \emph{anchors} +%% Likewise with umlauts: text encoding suffices for \emph{lemmas} +%% (my `\urluml' is not needed for this purpose). +%% But umlauts in \emph{anchors} %% generated from \emph{section headings} are different. %% While umlauts in \emph{lemmas} are represented by sequences %% starting with a \emph{percent} character, the anchors @@ -294,11 +295,30 @@ %% to a \TeX~Archive directory or file <path>: \newcommand*{\tugctanref}[1]{% \httpref{tug.ctan.org/tex-archive/#1}} -%% %% corr. 2010/11/23: -%% $|\ctanpkgref{<pkg-name>}|$ +%% Alternatively, you can refer to an (automatically chosen) +%% \acro{CTAN} \emph{mirror} +%% using +%% \[|\mirrorctanref{<path>}{<text>}|:\] %% 2011/10/10 +\newcommand*{\mirrorctanref}[1]{\httpref{mirror.ctan.org/#1}} +%% You may actually want to ``open" a file <file-name> in <path> +%% on \acro{CTAN}, either by +%% \[|\tugctanfileref{<path>}{<file-name>}|\] %% 2011/10/10 +%% or (for a mirror) by +%% \[|\mirrorctanfileref{<path>}{<file-name>}|.\] %% 2011/10/10 +%% The file name format |\file{<file-name>}| +%% that is used in the definitions must be provided +%% elsewhere. %% 2011/10/06; TODO provlast +\newcommand*{\tugctanfileref}[2]{% + \tugctanref{#1/#2}{\file{#2}}} +\newcommand*{\mirrorctanfileref}[2]{% + \mirrorctanref{#1/#2}{\file{#2}}} +%% Typically, \LaTeX\ macro packages in \file{macros/latex/contrib/} +%% are discussed, so here is |\ltxcontrib| saving a few characters: +\newcommand*{\ltxcontrib}{macros/latex/contrib/} +%% |\ctanpkgref{<pkg-name>}| %% makes <text> a link to the \acro{CTAN} package info page for %% the package <pkg-name>. -%% $|\CtanPkgRef{<name>}{<Name>}|$ +%% |\CtanPkgRef{<name>}{<Name>}| %% is a variant for the cases where authors have a special idea %% <Name> using some capital letters when they describe their packages %% (ASCII versions of ``Logos" such as `BibTeX') @@ -426,3 +446,8 @@ v0.4 2011/04/27 doc. \tugbartref\ corrected 2011/08/18 doc.: \acro with UK; wikibooks 2011/08/27 doc. \acro with URL and PDF; more doc and code changes for https +uploaded with MOREHYPE r0.4 (not touched by r0.41) +v0.41 2011/09/03 doc.: more specific on \urluml/Wikipedia + 2011/10/06 \mirrorctanref, \tugctanfileref, + \mirrorctanfileref, \ltxcontrib + 2011/10/10 doc. formatting of previous |