\Link[@1 @2]{@3}{@4}...\EndLink
Creates
<a href="@1#@3" name="@4" @2>...</a>
@1 is empty, TeX4ht will derive its value
automatically. The derived value will be the file name
containing the target @3.
\Link may be followed by -, if TeX4ht needs not
automatically determine (for other \link commands) the file
containing @4. In the present of such a flag, TeX4ht can
spare a definition of one macro.
[@1 @2] is optional. If omitted, @1 and @2 are
assumed to be empty.
href attribute is omitted when @1 and @3 are empty.
@4 is empty.
\Link{a}{}...\Endlink ..... \Link{}{b}...\EndLink
\Link[http://foo id="fooo"]{a}{b}...\EndLink
\Configure{Link}..............4
Configures \Link...\EndLink so that
| #1 | replaces a |
| #2 | replaces href= |
| #3 | replaces name= |
| #4 | replaces ‘#’. If empty, the older value remains in effect. |
\Configure{Link}{a}{href=}{name=}{}
\Configure{Link}{ref}{target=}{id=}{\empty}
\Configure{?Link}..............1
| #1 | insertion before broken links |
To help with debugging
\LinkCommand...................1 <= i <= 6
Creates a \Link-like command
| #1 | tag name |
| #2 | href-like attribute |
| #3 | name-like attribute |
| #4 | insertion |
| #5 | /, if empty element |
| #6 | replacement for # (ignored if absent) |
\LinkCommand\JSLink{a,\noexpand\jsref,name}
\def\jsref="#1"{href="javascript:window.open(’#1’)"}
\JSLink{a}{}xx\EndJSLink
\Link{}{a}\EndLink % or \JSLink{}{a}\EndJSLink
\Configure{XrefFile}.....................1
| #1 | names cross-references of files (appends #1 to )F and )Q entries of the .xref files). Applicable mainly implicitly within \Link commands. |
\Tag.....................................2
| #1 | label |
| #2 | content |
\Ref.....................................1 \LikeRef.................................1
| #1 | label |
\Tag and \Ref are tex4ht.sty commands introduced cross-referencing
content through .xref auxiliary files.
\LikeRef is a variant of \Ref which doesn’t verify whether the
labels exit. It is mainly used in \Link and \edef environments.
\ifTag ..................................3
| #1 | quetioned tag |
| #2 | true part |
| #3 | false part |
\LoadRef-[prefix]+{filename.ext}{pattern}
Load the named xref-type file
| .xref | optional --- .xref is assume for a default |
| + | optional --- asks \Ref and \LikeRef commands to use expanded tags filename::tag, instead of just tag |
| [prefix] | optional --- asks just for tags starting with the specified prefix. |
| - | optional --- deletes the prefixes from the loaded tags |
| {pattern} | to be included only when [prefix] or + are included. States how tags are to be addressed, with the parameter symbol ‘#1’ specifying the loaded part. |
% a.tex
\LoadRef-[to:]{b}{from:#1} \Ref{from:filename}
\LikeRef{from:filename}
% b.tex
\Tag{to:filename}{\FileName}
\LoadRef-[)F]{file}{)Ffoo##1}
\LoadRef-[)Q]{file}{)Qfoo##1}
\Configure{XrefFile}{foo} \Link...\EndLink
\LoadRef{another-file}