TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Labels
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


Defining an own Label |  Umlauts in a Label | 


Defining an own Label
If you want an own text for referring labels you can modify the variable @currentlabel. For example we have an environment which does anything and we want to refer to this one with a special text than write in preamble:
\newenvironment{myOwnEnv}{%
  \def\@currentlabel{any Text I like}%  <-- labeltext for refs to this env
}{}
In the text we have something like
[...]
\begin{myOwnEnv}
  blah ... \label{test}
  blah ...
\end{myOwnEnv}
blah ..
See: \ref{test}.
[...]
Than you'll get an output like See: any Text I like


Umlauts in a Label
If you want to use f.ex. german umlauts in a label then write in the preamble
\shorthandon{"}
\DeclareInputText{228}{"a}
% ... (see latin1.def)
\shorthandoff{"}
Now you can use a label like \label{Ă„nderung}

local time: Wed Oct 16 22:50:11 CEST 2019 ; file is: 110.046655092593 days old
contact webmaster _at_ TeXnik.de