| 1 |
% \iffalse |
| 2 |
% |
| 3 |
% refconfig.dtx |
| 4 |
% Copyright (C) 2002--2024 Danie Els |
| 5 |
% |
| 6 |
% ------------------------------------------------------------------- |
| 7 |
% The refstyle package |
| 8 |
% for the formatting of references |
| 9 |
% ------------------------------------------------------------------- |
| 10 |
% This work may be distributed and/or modified under the conditions |
| 11 |
% of the LaTeX Project Public License, either version 1.3c of this |
| 12 |
% license or (at your option) any later version. The latest version |
| 13 |
% of this license is in |
| 14 |
% http://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008/12/01 or later. |
| 17 |
% |
| 18 |
% This work has the LPPL maintenance status 'maintained'. |
| 19 |
% |
| 20 |
% This Current Maintainer of this work is Danie Els ([email protected]) |
| 21 |
% |
| 22 |
% This package consists of the files: refstyle.dtx |
| 23 |
% refconfig.dtx |
| 24 |
% refstyle.ins |
| 25 |
% and the derived files: refstyle.sty |
| 26 |
% refstyle.cfg |
| 27 |
% ------------------------------------------------------------------- |
| 28 |
% |
| 29 |
%<*driver> |
| 30 |
\documentclass[a4paper]{ltxdoc} |
| 31 |
\EnableCrossrefs |
| 32 |
\CodelineIndex |
| 33 |
\RecordChanges |
| 34 |
\usepackage{color} |
| 35 |
\usepackage{framed} |
| 36 |
\setlength{\FrameSep}{1\fboxsep} |
| 37 |
\definecolor{shadecolor}{gray}{0.9} |
| 38 |
\newenvironment{RSframed}{\shaded}{\endshaded} |
| 39 |
\usepackage{xspace} |
| 40 |
\usepackage{varioref} |
| 41 |
\usepackage{refstyle} |
| 42 |
|
| 43 |
%-- macrocode env changes ------------------------------ |
| 44 |
|
| 45 |
\setlength{\MacroIndent}{1.5em} |
| 46 |
|
| 47 |
%-- Indented environments ------------------------------ |
| 48 |
|
| 49 |
\newlength{\tdima} |
| 50 |
\newsavebox{\tboxa} |
| 51 |
\newlength{\mytab} |
| 52 |
\setlength{\mytab}{2\parindent} |
| 53 |
|
| 54 |
\newenvironment{IndentPara}[1][1] |
| 55 |
{\list{}{\setlength{\leftmargin}{#1\mytab}% |
| 56 |
\setlength{\labelwidth}{0pt}% |
| 57 |
\setlength{\labelsep}{0pt}% |
| 58 |
\setlength{\itemindent}{\parindent}% |
| 59 |
\setlength{\listparindent}{\parindent}% |
| 60 |
}\item[]}% |
| 61 |
{\endlist} |
| 62 |
\newenvironment{Ipara}[1][\small]% |
| 63 |
{\begin{IndentPara}\noindent#1\ignorespaces}% |
| 64 |
{\end{IndentPara}} |
| 65 |
\newenvironment{Itabb}[1][\small]% |
| 66 |
{\begin{IndentPara}#1\ignorespaces\begin{tabbing}\ignorespaces}% |
| 67 |
{\end{tabbing}\end{IndentPara}} |
| 68 |
|
| 69 |
%-- Additional documenting commands -------------------- |
| 70 |
|
| 71 |
\makeatletter |
| 72 |
\def\meta@font@select{\normalfont\slshape} |
| 73 |
\makeatother |
| 74 |
|
| 75 |
\newcommand*{\file}[1]{\texttt{#1}} |
| 76 |
\newcommand*{\pkg}[1]{\textsf{#1}} |
| 77 |
\newcommand*{\env}[1]{\texttt{#1}} |
| 78 |
\newcommand*{\opt}[1]{\texttt{\slshape#1}} |
| 79 |
\newcommand*{\RS}{\pkg{refstyle}\xspace} |
| 80 |
|
| 81 |
\newcommand*{\ArTab}{\>\quad$\rightarrow$\quad} |
| 82 |
|
| 83 |
%------------------------------------------------------- |
| 84 |
|
| 85 |
\setlength\hfuzz{15pt} |
| 86 |
\hbadness=7000 |
| 87 |
\begin{document} |
| 88 |
\DocInput{refconfig.dtx} |
| 89 |
\end{document} |
| 90 |
|
| 91 |
%</driver> |
| 92 |
% \fi |
| 93 |
% |
| 94 |
% \CheckSum{1089} |
| 95 |
% |
| 96 |
% \CharacterTable |
| 97 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 98 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 99 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 100 |
% Exclamation \! Double quote \" Hash (number) \# |
| 101 |
% Dollar \$ Percent \% Ampersand \& |
| 102 |
% Acute accent \' Left paren \( Right paren \) |
| 103 |
% Asterisk \* Plus \+ Comma \, |
| 104 |
% Minus \- Point \. Solidus \/ |
| 105 |
% Colon \: Semicolon \; Less than \< |
| 106 |
% Equals \= Greater than \> Question mark \? |
| 107 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 108 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 109 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 110 |
% Right brace \} Tilde \~} |
| 111 |
% |
| 112 |
% \changes{v0.0}{2002/04/01}{Initial version} |
| 113 |
% \changes{v0.2}{2003/07/30}{Updated version} |
| 114 |
% \changes{v0.3}{2006/09/07}{Documentation update} |
| 115 |
% \changes{v0.4}{2010/10/21}{Add \cmd{\RSlsttwotxt} for lists} |
| 116 |
% \changes{v0.5}{2010/11/02}{Bug fixes} |
| 117 |
% \changes{v0.6}{2024/01/31}{robustification of AMS' \cmd{\eqref}} |
| 118 |
% \changes{v0.6b}{2024/02/01}{Bug fix} |
| 119 |
% |
| 120 |
% \DoNotIndex{ |
| 121 |
% \",\@chapapp,\@ifpackageloaded,\AtBeginDocument, |
| 122 |
% \begingroup,\def,\edef,\else,\endgroup, |
| 123 |
% \fi,\ifx, \let, \newcommand,\newref, |
| 124 |
% \providecommand,\ProvidesFile,\ref,\relax, |
| 125 |
% \renewcommand,\RS@ifundefined,\RS@tmpa,\RS@tmpb, |
| 126 |
% \S,\space,\ss,\string,\textup,\unrestored@protected@xdef} |
| 127 |
% |
| 128 |
%^^A-- Titling -------------------------------------------- |
| 129 |
% \GetFileInfo{refstyle.cfg} |
| 130 |
% \title{\vskip -2em |
| 131 |
% Configuration file for \RS\ package\thanks{ |
| 132 |
% This file has version number |
| 133 |
% \fileversion, last revised |
| 134 |
% \filedate.}} |
| 135 |
% \author{Danie Els\\[1ex] |
| 136 |
% \normalsize e-mail: \texttt{dnjels@gmail}} |
| 137 |
% \date{\filedate} |
| 138 |
% \maketitle |
| 139 |
% |
| 140 |
% \tableofcontents |
| 141 |
% \clearpage |
| 142 |
% |
| 143 |
% |
| 144 |
% \section{The \RS\ configuration file} |
| 145 |
% |
| 146 |
% \subsubsection*{Reference templates} |
| 147 |
% The default configuration file, \file{refstyle.cfg}, makes the |
| 148 |
% following reference declarations: |
| 149 |
% \begin{Ipara} |
| 150 |
% |\newref{part}{...}| \quad$\rightarrow$ Parts\\ |
| 151 |
% |\newref{chap}{...}| \quad$\rightarrow$ Chapters and Appendices\\ |
| 152 |
% |\newref{sec}{...} | \quad$\rightarrow$ Sections\\ |
| 153 |
% |\newref{eq}{...} | \quad$\rightarrow$ Equations\\ |
| 154 |
% |\newref{fig}{...} | \quad$\rightarrow$ Figures\\ |
| 155 |
% |\newref{tab}{...} | \quad$\rightarrow$ Tables\\ |
| 156 |
% |\newref{fn}{...} | \quad$\rightarrow$ Footnotes |
| 157 |
% \end{Ipara} |
| 158 |
% If there is a need for more reference types, this standard |
| 159 |
% list can be expanded. |
| 160 |
% |
| 161 |
% \subsubsection*{Language definitions} |
| 162 |
% The \RS\ package also provides the following language definitions |
| 163 |
% options for references, when loaded together with \pkg{babel}: |
| 164 |
% \begin{itemize} |
| 165 |
% \item afrikaans |
| 166 |
% \item danish |
| 167 |
% \item english, USenglish, american, canadian, UKenglish, british |
| 168 |
% \item french |
| 169 |
% \item german, ngerman, austrian, naustrian |
| 170 |
% \item italian |
| 171 |
% \item norwegian, nynorsk, norsk, bokmal\footnote{Norwegian Bokm{\aa}l |
| 172 |
% is not defined in \pkg{babel} yet.} |
| 173 |
% \item portuges, portuguese, brazilian, brazil |
| 174 |
% \item swedish |
| 175 |
% \end{itemize} |
| 176 |
% |
| 177 |
% \noindent See \secref[vref]{Thm} for an example of how to link your |
| 178 |
% own definitions to an exsiting language setup. |
| 179 |
% \StopEventually{\PrintChanges} |
| 180 |
% \clearpage |
| 181 |
% \section{Implementation} |
| 182 |
% \begin{macrocode} |
| 183 |
%<*cfg> |
| 184 |
% \end{macrocode} |
| 185 |
% \subsection{Identification} |
| 186 |
% \begin{RSframed} |
| 187 |
% \begin{macrocode} |
| 188 |
\ProvidesFile{refstyle.cfg}[2024/02/01\space |
| 189 |
v0.6b\space |
| 190 |
Configuration file for refstyle (DNJ Els)] |
| 191 |
% \end{macrocode} |
| 192 |
% \end{RSframed} |
| 193 |
% |
| 194 |
% \subsection{Language Definitions for \RS\ Package} |
| 195 |
% |
| 196 |
% \subsubsection{English} |
| 197 |
% |
| 198 |
% \begin{macro}{\RSenglish,\RSukenglish} |
| 199 |
% Support provided by the author. |
| 200 |
% \begin{RSframed} |
| 201 |
% \begin{macrocode} |
| 202 |
%%-- ENGLISH ------------------------------------ |
| 203 |
% \end{macrocode} |
| 204 |
% \begin{macrocode} |
| 205 |
\newcommand\RSukenglish{% |
| 206 |
\def\RSrngtxt{\space to~}%........... Range: figures 5 to 6 |
| 207 |
\def\RSlsttwotxt{\space and~}%....... List two: figures 5 and 6 |
| 208 |
\def\RSlsttxt{, and~}%............... List more: figures 5, 6, and 7 |
| 209 |
\def\RSparttxt{Part~}%............... Part lowercase singular |
| 210 |
\def\RSpartstxt{Parts~}%............. lowercase plural |
| 211 |
\def\RSParttxt{Part~}%............... uppercase singular (sentence start) |
| 212 |
\def\RSPartstxt{Parts~}%............. uppercase plural (sentence start) |
| 213 |
\def\RSappendixname{appendix~}%...... Appendix lowercase singular |
| 214 |
\def\RSappendicesname{appendices~}%.. lowercase plural |
| 215 |
\def\RSAppendixname{Appendix~}%...... uppercase singular (sentence start) |
| 216 |
\def\RSAppendicesname{Appendices~}%.. uppercase plural (sentence start) |
| 217 |
\def\RSchaptername{chapter~}%........ Chapter lowercase singular |
| 218 |
\def\RSchaptersname{chapters~}%...... lowercase plural |
| 219 |
\def\RSChaptername{Chapter~}%........ uppercase singular (sentence start) |
| 220 |
\def\RSChaptersname{Chapters~}%...... uppercase plural (sentence start) |
| 221 |
\def\RSsectxt{section~}%............. Section lowercase singular |
| 222 |
\def\RSsecstxt{sections~}%........... lowercase plural |
| 223 |
\def\RSSectxt{Section~}%............. uppercase singular (sentence start) |
| 224 |
\def\RSSecstxt{Sections~}%........... uppercase plural (sentence start) |
| 225 |
\def\RSeqtxt{equation~}%............. Equation lowercase singular |
| 226 |
\def\RSeqstxt{equations~}%........... lowercase plural |
| 227 |
\def\RSEqtxt{Equation~}%............. uppercase singular (sentence start) |
| 228 |
\def\RSEqstxt{Equations~}%........... uppercase plural (sentence start) |
| 229 |
\def\RSfigtxt{figure~}%.............. Figure lowercase singular |
| 230 |
\def\RSfigstxt{figures~}%............ lowercase plural |
| 231 |
\def\RSFigtxt{Figure~}%.............. uppercase singular (sentence start) |
| 232 |
\def\RSFigstxt{Figures~}%............ uppercase plural (sentence start) |
| 233 |
\def\RStabtxt{table~}%............... Table lowercase singular |
| 234 |
\def\RStabstxt{tables~}%............. lowercase plural |
| 235 |
\def\RSTabtxt{Table~}%............... uppercase singular (sentence start) |
| 236 |
\def\RSTabstxt{Tables~}%............. uppercase plural (sentence start) |
| 237 |
\def\RSfootntxt{footnote~}%.......... Footnote lowercase singular |
| 238 |
\def\RSfootnstxt{footnotes~}%........ lowercase plural |
| 239 |
\def\RSFootntxt{Footnote~}%.......... uppercase singular (sentence start) |
| 240 |
\def\RSFootnstxt{Footnotes~}%........ uppercase plural (sentence start) |
| 241 |
} |
| 242 |
% \end{macrocode} |
| 243 |
% \begin{macrocode} |
| 244 |
\newcommand\RSenglish{% |
| 245 |
\def\RSrngtxt{\space to~}% |
| 246 |
\def\RSlsttwotxt{\space and~}% |
| 247 |
\def\RSlsttxt{\space and~}% |
| 248 |
\def\RSparttxt{Part~}% |
| 249 |
\def\RSpartstxt{Parts~}% |
| 250 |
\def\RSParttxt{Part~}% |
| 251 |
\def\RSPartstxt{Parts~}% |
| 252 |
\def\RSappendixname{appendix~}% |
| 253 |
\def\RSappendicesname{appendices~}% |
| 254 |
\def\RSAppendixname{Appendix~}% |
| 255 |
\def\RSAppendicesname{Appendices~}% |
| 256 |
\def\RSchaptername{chapter~}% |
| 257 |
\def\RSchaptersname{chapters~}% |
| 258 |
\def\RSChaptername{Chapter~}% |
| 259 |
\def\RSChaptersname{Chapters~}% |
| 260 |
\def\RSsectxt{section~}% |
| 261 |
\def\RSsecstxt{sections~}% |
| 262 |
\def\RSSectxt{Section~}% |
| 263 |
\def\RSSecstxt{Sections~}% |
| 264 |
\def\RSeqtxt{equation~}% |
| 265 |
\def\RSeqstxt{equations~}% |
| 266 |
\def\RSEqtxt{Equation~}% |
| 267 |
\def\RSEqstxt{Equations~}% |
| 268 |
\def\RSfigtxt{figure~}% |
| 269 |
\def\RSfigstxt{figures~}% |
| 270 |
\def\RSFigtxt{Figure~}% |
| 271 |
\def\RSFigstxt{Figures~}% |
| 272 |
\def\RStabtxt{table~}% |
| 273 |
\def\RStabstxt{tables~}% |
| 274 |
\def\RSTabtxt{Table~}% |
| 275 |
\def\RSTabstxt{Tables~}% |
| 276 |
\def\RSfootntxt{footnote~}% |
| 277 |
\def\RSfootnstxt{footnotes~}% |
| 278 |
\def\RSFootntxt{Footnote~}% |
| 279 |
\def\RSFootnstxt{Footnotes~}% |
| 280 |
} |
| 281 |
% \end{macrocode} |
| 282 |
% \end{RSframed} |
| 283 |
% \end{macro} |
| 284 |
% |
| 285 |
% \noindent Make English the default. |
| 286 |
% \begin{RSframed} |
| 287 |
% \begin{macrocode} |
| 288 |
\RSenglish% Default |
| 289 |
% \end{macrocode} |
| 290 |
% \end{RSframed} |
| 291 |
% |
| 292 |
% \noindent Options |
| 293 |
% \begin{RSframed} |
| 294 |
% \begin{macrocode} |
| 295 |
\DeclareLangOpt{english}{\RSenglish} |
| 296 |
\DeclareLangOpt{USenglish}{\RSenglish} |
| 297 |
\DeclareLangOpt{american}{\RSenglish} |
| 298 |
\DeclareLangOpt{canadian}{\RSenglish} |
| 299 |
\DeclareLangOpt{UKenglish}{\RSukenglish} |
| 300 |
\DeclareLangOpt{british}{\RSukenglish} |
| 301 |
% \end{macrocode} |
| 302 |
% \end{RSframed} |
| 303 |
% |
| 304 |
% |
| 305 |
% \subsubsection{Afrikaans} |
| 306 |
% |
| 307 |
% \begin{macro}{\RSafrikaans} |
| 308 |
% Support provided by the author. |
| 309 |
% \begin{RSframed} |
| 310 |
% \begin{macrocode} |
| 311 |
%%-- AFRIKAANS ---------------------------------- |
| 312 |
% \end{macrocode} |
| 313 |
% \begin{macrocode} |
| 314 |
\newcommand\RSafrikaans{% |
| 315 |
\def\RSrngtxt{\space tot~}% |
| 316 |
\def\RSlsttwotxt{\space en~}% |
| 317 |
\def\RSlsttxt{\space en~}% |
| 318 |
\def\RSparttxt{Deel~}% |
| 319 |
\def\RSpartstxt{Dele~}% |
| 320 |
\def\RSParttxt{Deel~}% |
| 321 |
\def\RSPartstxt{Dele~}% |
| 322 |
\def\RSappendixname{bylae~}% |
| 323 |
\def\RSappendicesname{bylaes~}% |
| 324 |
\def\RSAppendixname{Bylae~}% |
| 325 |
\def\RSAppendicesname{Bylaes~}% |
| 326 |
\def\RSchaptername{hoofstuk~}% |
| 327 |
\def\RSchaptersname{hoofstukke~}% |
| 328 |
\def\RSChaptername{Hoofstuk~}% |
| 329 |
\def\RSChaptersname{Hoofstukke~}% |
| 330 |
\def\RSsectxt{afdeling~}% |
| 331 |
\def\RSsecstxt{afdelings~}% |
| 332 |
\def\RSSectxt{Afdeling~}% |
| 333 |
\def\RSSecstxt{Afdelings~}% |
| 334 |
\def\RSeqtxt{vergelyking~}% |
| 335 |
\def\RSeqstxt{vergelykings~}% |
| 336 |
\def\RSEqtxt{Vergelyking~}% |
| 337 |
\def\RSEqstxt{Vergelyking~}% |
| 338 |
\def\RSfigtxt{figuur~}% |
| 339 |
\def\RSfigstxt{figure~}% |
| 340 |
\def\RSFigtxt{Figuur~}% |
| 341 |
\def\RSFigstxt{Figure~}% |
| 342 |
\def\RStabtxt{tabel~}% |
| 343 |
\def\RStabstxt{tabelle~}% |
| 344 |
\def\RSTabtxt{Tabel~}% |
| 345 |
\def\RSTabstxt{Tabelle~}% |
| 346 |
\def\RSfootntxt{footnota~}% |
| 347 |
\def\RSfootnstxt{footnotas~}% |
| 348 |
\def\RSFootntxt{Footnota~}% |
| 349 |
\def\RSFootnstxt{Footnotas~}% |
| 350 |
} |
| 351 |
% \end{macrocode} |
| 352 |
% \end{RSframed} |
| 353 |
% \end{macro} |
| 354 |
% |
| 355 |
% \noindent Options |
| 356 |
% \begin{RSframed} |
| 357 |
% \begin{macrocode} |
| 358 |
\DeclareLangOpt{afrikaans}{\RSafrikaans} |
| 359 |
% \end{macrocode} |
| 360 |
% \end{RSframed} |
| 361 |
% |
| 362 |
% |
| 363 |
% \subsubsection{Danish} |
| 364 |
% |
| 365 |
% \begin{macro}{\RSdanish} |
| 366 |
% \changes{v0.2}{2003/07/30}{Add Danish language support} |
| 367 |
% Thomas Widmann: \texttt{<\,thomas.widmann AT harpercollins DOT co DOT uk>} |
| 368 |
% provided the definitions for Danish. |
| 369 |
% \begin{RSframed} |
| 370 |
% \begin{macrocode} |
| 371 |
%%-- DANISH ------------------------------------- |
| 372 |
% \end{macrocode} |
| 373 |
% \begin{macrocode} |
| 374 |
\newcommand\RSdanish{% |
| 375 |
\def\RSrngtxt{\space til~}% |
| 376 |
\def\RSlsttwotxt{\space og~}% |
| 377 |
\def\RSlsttxt{\space og~}% |
| 378 |
\def\RSparttxt{del~}% |
| 379 |
\def\RSpartstxt{del~}% |
| 380 |
\def\RSParttxt{Del~}% |
| 381 |
\def\RSPartstxt{Del~}% |
| 382 |
\def\RSappendixname{bilag~}% % 'appendiks' is also possible, |
| 383 |
\def\RSappendicesname{bilag~}% % but 'bilag' is used in Babel |
| 384 |
\def\RSAppendixname{Bilag~}% |
| 385 |
\def\RSAppendicesname{Bilag~}% |
| 386 |
\def\RSchaptername{kapitel~}% |
| 387 |
\def\RSchaptersname{kapitel~}% |
| 388 |
\def\RSChaptername{Kapitel~}% |
| 389 |
\def\RSChaptersname{Kapitel~}% |
| 390 |
\def\RSsectxt{afsnit~}% |
| 391 |
\def\RSsecstxt{afsnit~}% |
| 392 |
\def\RSSectxt{Afsnit~}% |
| 393 |
\def\RSSecstxt{Afsnit~}% |
| 394 |
\def\RSeqtxt{ligning~}% |
| 395 |
\def\RSeqstxt{ligning~}% |
| 396 |
\def\RSEqtxt{Ligning~}% |
| 397 |
\def\RSEqstxt{Ligning~}% |
| 398 |
\def\RSfigtxt{figur~}% |
| 399 |
\def\RSfigstxt{figur~}% |
| 400 |
\def\RSFigtxt{Figur~}% |
| 401 |
\def\RSFigstxt{Figur~}% |
| 402 |
\def\RStabtxt{tabel~}% |
| 403 |
\def\RStabstxt{tablel~}% |
| 404 |
\def\RSTabtxt{Tabel~}% |
| 405 |
\def\RSTabstxt{Tabel~}% |
| 406 |
\def\RSfootntxt{fodnote~}% |
| 407 |
\def\RSfootnstxt{fodnote~}% |
| 408 |
\def\RSFootntxt{Fodnote~}% |
| 409 |
\def\RSFootnstxt{Fodnote~}% |
| 410 |
} |
| 411 |
% \end{macrocode} |
| 412 |
% \end{RSframed} |
| 413 |
% \end{macro} |
| 414 |
% |
| 415 |
% \noindent Options |
| 416 |
% \begin{RSframed} |
| 417 |
% \begin{macrocode} |
| 418 |
\DeclareLangOpt{danish}{\RSdanish} |
| 419 |
% \end{macrocode} |
| 420 |
% \end{RSframed} |
| 421 |
% |
| 422 |
% |
| 423 |
% \subsubsection{French} |
| 424 |
% |
| 425 |
% \begin{macro}{\RSfrench} |
| 426 |
% \changes{v0.4}{2010/10/21}{Add French language support} |
| 427 |
% Jean-Pierre Chr\'etien \texttt{<\,jeanpierre.chretien AT free DOT fr>} |
| 428 |
% provided the definitions for French. |
| 429 |
% \begin{RSframed} |
| 430 |
% \begin{macrocode} |
| 431 |
%%-- FRENCH ------------------------------------- |
| 432 |
% \end{macrocode} |
| 433 |
% \begin{macrocode} |
| 434 |
\newcommand\RSfrench{% |
| 435 |
\def\RSrngtxt{\space \`{a}~}% |
| 436 |
\def\RSlsttwotxt{\space et~}% |
| 437 |
\def\RSlsttxt{\space et~}% |
| 438 |
\def\RSparttxt{partie~}% |
| 439 |
\def\RSpartstxt{parties~}% |
| 440 |
\def\RSParttxt{La partie~}% |
| 441 |
\def\RSPartstxt{Les parties~}% |
| 442 |
\def\RSappendixname{appendice~}% |
| 443 |
\def\RSappendicesname{appendices~}% |
| 444 |
\def\RSAppendixname{L'appendice~}% |
| 445 |
\def\RSAppendicesname{Les appendices~}% |
| 446 |
\def\RSchaptername{chapitre~}% |
| 447 |
\def\RSchaptersname{chapitres~}% |
| 448 |
\def\RSChaptername{Le chapitre~}% |
| 449 |
\def\RSChaptersname{Les chapitres~}% |
| 450 |
\def\RSsectxt{section~}% |
| 451 |
\def\RSsecstxt{sections~}% |
| 452 |
\def\RSSectxt{La section~}% |
| 453 |
\def\RSSecstxt{Les sections~}% |
| 454 |
\def\RSeqtxt{\'{e}quation~}% |
| 455 |
\def\RSeqstxt{\'{e}quations~}% |
| 456 |
\def\RSEqtxt{L'\'{e}quation~}% |
| 457 |
\def\RSEqstxt{Les \'{e}quations~}% |
| 458 |
\def\RSfigtxt{figure~}% |
| 459 |
\def\RSfigstxt{figures~}% |
| 460 |
\def\RSFigtxt{La figure~}% |
| 461 |
\def\RSFigstxt{Les figures~}% |
| 462 |
\def\RStabtxt{tableau~}% |
| 463 |
\def\RStabstxt{tableaux~}% |
| 464 |
\def\RSTabtxt{Le tableau~}% |
| 465 |
\def\RSTabstxt{Les tableaux~}% |
| 466 |
\def\RSfootntxt{note~}% |
| 467 |
\def\RSfootnstxt{notes~}% |
| 468 |
\def\RSFootntxt{La note~}% |
| 469 |
\def\RSFootnstxt{Les notes~}% |
| 470 |
} |
| 471 |
% \end{macrocode} |
| 472 |
% \end{RSframed} |
| 473 |
% \end{macro} |
| 474 |
% |
| 475 |
% \noindent Options |
| 476 |
% \begin{RSframed} |
| 477 |
% \begin{macrocode} |
| 478 |
\DeclareLangOpt{french}{\RSfrench} |
| 479 |
% \end{macrocode} |
| 480 |
% \end{RSframed} |
| 481 |
% |
| 482 |
% |
| 483 |
% |
| 484 |
% \subsubsection{German} |
| 485 |
% |
| 486 |
% \begin{macro}{\RSgerman} |
| 487 |
% \changes{v0.2}{2003/07/30}{Add German language support} |
| 488 |
% Harald Harders: \texttt{<\,h.harders AT tu-bs DOT de>} |
| 489 |
% provided the definitions for German. |
| 490 |
% \begin{RSframed} |
| 491 |
% \begin{macrocode} |
| 492 |
%%-- GERMAN ------------------------------------- |
| 493 |
% \end{macrocode} |
| 494 |
% \begin{macrocode} |
| 495 |
\newcommand\RSgerman{% |
| 496 |
\def\RSrngtxt{\space bis~}% |
| 497 |
\def\RSlsttwotxt{\space und~}% |
| 498 |
\def\RSlsttxt{\space und~}% |
| 499 |
\def\RSparttxt{Teil~}% |
| 500 |
\def\RSpartstxt{Teile~}% |
| 501 |
\def\RSParttxt{Teil~}% |
| 502 |
\def\RSPartstxt{Teile~}% |
| 503 |
\def\RSappendixname{Anhang~}% |
| 504 |
\def\RSappendicesname{Anh\"{a}nge~}% |
| 505 |
\def\RSAppendixname{Anhang~}% |
| 506 |
\def\RSAppendicesname{Anh\"{a}nge~}% |
| 507 |
\def\RSchaptername{Kapitel~}% |
| 508 |
\def\RSchaptersname{Kapitel~}% |
| 509 |
\def\RSChaptername{Kapitel~}% |
| 510 |
\def\RSChaptersname{Kapitel~}% |
| 511 |
\def\RSsectxt{Abschnitt~}% |
| 512 |
\def\RSsecstxt{Abschnitt~}% |
| 513 |
\def\RSSectxt{Abschnitt~}% |
| 514 |
\def\RSSecstxt{Abschnitt~}% |
| 515 |
\def\RSeqtxt{Gleichung~}% |
| 516 |
\def\RSeqstxt{Gleichungen~}% |
| 517 |
\def\RSEqtxt{Gleichung~}% |
| 518 |
\def\RSEqstxt{Gleichungen~}% |
| 519 |
\def\RSfigtxt{Abbildung~}% |
| 520 |
\def\RSfigstxt{Abbildung~}% |
| 521 |
\def\RSFigtxt{Abbildung~}% |
| 522 |
\def\RSFigstxt{Abbildung~}% |
| 523 |
\def\RStabtxt{Tabelle~}% |
| 524 |
\def\RStabstxt{Tabellen~}% |
| 525 |
\def\RSTabtxt{Tabelle~}% |
| 526 |
\def\RSTabstxt{Tabellen~}% |
| 527 |
\def\RSfootntxt{Fu\ss note~}% |
| 528 |
\def\RSfootnstxt{Fu\ss noten~}% |
| 529 |
\def\RSFootntxt{Fu\ss note~}% |
| 530 |
\def\RSFootnstxt{Fu\ss noten~}% |
| 531 |
} |
| 532 |
% \end{macrocode} |
| 533 |
% \end{RSframed} |
| 534 |
% \end{macro} |
| 535 |
% |
| 536 |
% \noindent Options |
| 537 |
% \begin{RSframed} |
| 538 |
% \begin{macrocode} |
| 539 |
\DeclareLangOpt{german}{\RSgerman} |
| 540 |
\DeclareLangOpt{ngerman}{\RSgerman} |
| 541 |
\DeclareLangOpt{austrian}{\RSgerman} |
| 542 |
\DeclareLangOpt{naustrian}{\RSgerman} |
| 543 |
% \end{macrocode} |
| 544 |
% \end{RSframed} |
| 545 |
% |
| 546 |
% |
| 547 |
% \subsubsection{Italian} |
| 548 |
% |
| 549 |
% \begin{macro}{\RSitalian} |
| 550 |
% \changes{v0.4}{2010/10/21}{Add Italian language support} |
| 551 |
% Nicola Lunghi: \texttt{<\,nick83ola AT gmail DOT com>} |
| 552 |
% provided the definitions for Italian. |
| 553 |
% \begin{RSframed} |
| 554 |
% \begin{macrocode} |
| 555 |
%%-- ITALIAN ------------------------------------ |
| 556 |
% \end{macrocode} |
| 557 |
% \begin{macrocode} |
| 558 |
\newcommand\RSitalian{% |
| 559 |
\def\RSrngtxt{--}% |
| 560 |
\def\RSlsttwotxt{\space e~}% |
| 561 |
\def\RSlsttxt{\space e~}% |
| 562 |
\def\RSparttxt{Parte~}% |
| 563 |
\def\RSpartstxt{Parti~}% |
| 564 |
\def\RSParttxt{Parte~}% |
| 565 |
\def\RSPartstxt{Parti~}% |
| 566 |
\def\RSappendixname{l'appendice~}% |
| 567 |
\def\RSappendicesname{le appendici~}% |
| 568 |
\def\RSAppendixname{l'Appendice~}% |
| 569 |
\def\RSAppendicesname{le Appendici~}% |
| 570 |
\def\RSchaptername{il capitolo~}% |
| 571 |
\def\RSchaptersname{i capitoli~}% |
| 572 |
\def\RSChaptername{il Capitolo~}% |
| 573 |
\def\RSChaptersname{i Capitoli~}% |
| 574 |
\def\RSsectxt{la sezione~}% |
| 575 |
\def\RSsecstxt{le sezioni~}% |
| 576 |
\def\RSSectxt{la Sezione~}% |
| 577 |
\def\RSSecstxt{la Sezioni~}% |
| 578 |
\def\RSeqtxt{l'equazione~}% |
| 579 |
\def\RSeqstxt{le equazioni~}% |
| 580 |
\def\RSEqtxt{l'Equazione~}% |
| 581 |
\def\RSEqstxt{le Equazioni~}% |
| 582 |
\def\RSfigtxt{la figura~}% |
| 583 |
\def\RSfigstxt{le figure~}% |
| 584 |
\def\RSFigtxt{la Figura~}% |
| 585 |
\def\RSFigstxt{le Figure~}% |
| 586 |
\def\RStabtxt{la tabella~}% |
| 587 |
\def\RStabstxt{le tabelle~}% |
| 588 |
\def\RSTabtxt{la Tabella~}% |
| 589 |
\def\RSTabstxt{le Tabelle~}% |
| 590 |
\def\RSfootntxt{la nota~}% |
| 591 |
\def\RSfootnstxt{le note~}% |
| 592 |
\def\RSFootntxt{la Nota~}% |
| 593 |
\def\RSFootnstxt{le Note~}% |
| 594 |
} |
| 595 |
% \end{macrocode} |
| 596 |
% \end{RSframed} |
| 597 |
% \end{macro} |
| 598 |
% |
| 599 |
% \noindent Options |
| 600 |
% \begin{RSframed} |
| 601 |
% \begin{macrocode} |
| 602 |
\DeclareLangOpt{italian}{\RSitalian} |
| 603 |
% \end{macrocode} |
| 604 |
% \end{RSframed} |
| 605 |
% |
| 606 |
% |
| 607 |
% |
| 608 |
% \subsubsection{Norwegian} |
| 609 |
% |
| 610 |
% \begin{macro}{\RSnorwegian} |
| 611 |
% \changes{v0.3}{2006/09/07}{Add Norwegian language support} |
| 612 |
% Karl Ove Hufthammer: \texttt{<\,karloh AT mi DOT uib DOT no>} |
| 613 |
% provided the definitions for Norwegian. |
| 614 |
% |
| 615 |
% Norway has two official languages Norwegian Nynorsk and |
| 616 |
% Norwegian Bokm{\aa}l (commonly 'nynorsk' and 'norsk' in LaTeX), |
| 617 |
% but the \pkg{refstyle} definitions are identically in both variants. |
| 618 |
% \begin{RSframed} |
| 619 |
% \begin{macrocode} |
| 620 |
%%-- NORWEGIAN ------------------------------------- |
| 621 |
% \end{macrocode} |
| 622 |
% \begin{macrocode} |
| 623 |
\newcommand\RSnorwegian{% |
| 624 |
\def\RSrngtxt{\space til~}% |
| 625 |
\def\RSlsttwotxt{\space og~}% |
| 626 |
\def\RSlsttxt{\space og~}% |
| 627 |
\def\RSparttxt{del~}% |
| 628 |
\def\RSpartstxt{del~}% |
| 629 |
\def\RSParttxt{Del~}% |
| 630 |
\def\RSPartstxt{Del~}% |
| 631 |
\def\RSappendixname{tillegg~}% |
| 632 |
\def\RSappendicesname{tillegg~}% |
| 633 |
\def\RSAppendixname{Tillegg~}% |
| 634 |
\def\RSAppendicesname{Tillegg~}% |
| 635 |
\def\RSchaptername{kapittel~}% |
| 636 |
\def\RSchaptersname{kapittel~}% |
| 637 |
\def\RSChaptername{Kapittel~}% |
| 638 |
\def\RSChaptersname{Kapittel~}% |
| 639 |
\def\RSsectxt{avsnitt~}% |
| 640 |
\def\RSsecstxt{avsnitt~}% |
| 641 |
\def\RSSectxt{Avsnitt~}% |
| 642 |
\def\RSSecstxt{Avsnitt~}% |
| 643 |
\def\RSeqtxt{formel~}% |
| 644 |
\def\RSeqstxt{formel~}% |
| 645 |
\def\RSEqtxt{Formel~}% |
| 646 |
\def\RSEqstxt{Formel~}% |
| 647 |
\def\RSfigtxt{figur~}% |
| 648 |
\def\RSfigstxt{figur~}% |
| 649 |
\def\RSFigtxt{Figur~}% |
| 650 |
\def\RSFigstxt{Figur~}% |
| 651 |
\def\RStabtxt{tabell~}% |
| 652 |
\def\RStabstxt{tabell~}% |
| 653 |
\def\RSTabtxt{Tabell~}% |
| 654 |
\def\RSTabstxt{Tabell~}% |
| 655 |
\def\RSfootntxt{fotnote~}% |
| 656 |
\def\RSfootnstxt{fotnote~}% |
| 657 |
\def\RSFootntxt{Fotnote~}% |
| 658 |
\def\RSFootnstxt{Fotnote~}% |
| 659 |
} |
| 660 |
% \end{macrocode} |
| 661 |
% \end{RSframed} |
| 662 |
% \end{macro} |
| 663 |
% |
| 664 |
% \noindent Options |
| 665 |
% \begin{RSframed} |
| 666 |
% \begin{macrocode} |
| 667 |
\DeclareLangOpt{norwegian}{\RSnorwegian} |
| 668 |
\DeclareLangOpt{nynorsk}{\RSnorwegian} |
| 669 |
\DeclareLangOpt{bokmal}{\RSnorwegian}% Not in babel yet |
| 670 |
\DeclareLangOpt{norsk}{\RSnorwegian} |
| 671 |
% \end{macrocode} |
| 672 |
% \end{RSframed} |
| 673 |
% |
| 674 |
% |
| 675 |
% \subsubsection{Portuguese/Brazilian} |
| 676 |
% |
| 677 |
% \begin{macro}{\RSportuguese,\RSbrazilian} |
| 678 |
% \changes{v0.4}{2010/10/21}{Add Portuguese language support} |
| 679 |
% Bernhard Enders and Flavio Costa \texttt{<\,flaviocosta AT yahoo DOT com DOT br>} |
| 680 |
% provided the definitions for Portuguese. |
| 681 |
% \begin{RSframed} |
| 682 |
% \begin{macrocode} |
| 683 |
%%-- PORTUGUESE ----------------------------------- |
| 684 |
% \end{macrocode} |
| 685 |
% \begin{macrocode} |
| 686 |
\newcommand\RSportuguese{% |
| 687 |
\def\RSrngtxt{\space a~}% |
| 688 |
\def\RSlsttwotxt{\space e~}% |
| 689 |
\def\RSlsttxt{\space e~}% |
| 690 |
\def\RSparttxt{Parte~}% |
| 691 |
\def\RSpartstxt{Partes~}% |
| 692 |
\def\RSParttxt{Parte~}% |
| 693 |
\def\RSPartstxt{Partes~}% |
| 694 |
\def\RSappendixname{ap\^{e}ndice~}% |
| 695 |
\def\RSappendicesname{ap\^{e}ndices~}% |
| 696 |
\def\RSAppendixname{Ap\^{e}ndice~}% |
| 697 |
\def\RSAppendicesname{Ap\^{e}ndices~}% |
| 698 |
\def\RSchaptername{cap\'{i}tulo~}% |
| 699 |
\def\RSchaptersname{cap\'{i}tulos~}% |
| 700 |
\def\RSChaptername{Cap\'{i}tulo~}% |
| 701 |
\def\RSChaptersname{Cap\'{i}tulos~}% |
| 702 |
\def\RSsectxt{se\c{c}\~{a}o~}% |
| 703 |
\def\RSsecstxt{se\c{c}\~{o}es~}% |
| 704 |
\def\RSSectxt{Se\c{c}\~{a}o~}% |
| 705 |
\def\RSSecstxt{Se\c{c}\~{o}es~}% |
| 706 |
\def\RSeqtxt{equa\c{c}\~{a}o~}% |
| 707 |
\def\RSeqstxt{equa\c{c}\~{o}es~}% |
| 708 |
\def\RSEqtxt{Equa\c{c}\~{a}o~}% |
| 709 |
\def\RSEqstxt{Equa\c{c}\~{o}es~}% |
| 710 |
\def\RSfigtxt{figura~}% |
| 711 |
\def\RSfigstxt{figuras~}% |
| 712 |
\def\RSFigtxt{Figura~}% |
| 713 |
\def\RSFigstxt{Figuras~}% |
| 714 |
\def\RStabtxt{tabela~}% |
| 715 |
\def\RStabstxt{tabelas~}% |
| 716 |
\def\RSTabtxt{Tabela~}% |
| 717 |
\def\RSTabstxt{Tabelas~}% |
| 718 |
\def\RSfootntxt{nota de rodap\'{e}~}% |
| 719 |
\def\RSfootnstxt{notas de rodap\'{e}~}% |
| 720 |
\def\RSFootntxt{Nota de rodap\'{e}~}% |
| 721 |
\def\RSFootnstxt{Notas de rodap\'{e}~}% |
| 722 |
} |
| 723 |
% \end{macrocode} |
| 724 |
% \begin{macrocode} |
| 725 |
\newcommand\RSbrazilian{% |
| 726 |
\def\RSrngtxt{\space a~}% |
| 727 |
\def\RSlsttwotxt{\space e~}% |
| 728 |
\def\RSlsttxt{\space e~}% |
| 729 |
\def\RSparttxt{Parte~}% |
| 730 |
\def\RSpartstxt{Partes~}% |
| 731 |
\def\RSParttxt{Parte~}% |
| 732 |
\def\RSPartstxt{Partes~}% |
| 733 |
\def\RSappendixname{ap\^{e}ndice~}% |
| 734 |
\def\RSappendicesname{ap\^{e}ndices~}% |
| 735 |
\def\RSAppendixname{Ap\^{e}ndice~}% |
| 736 |
\def\RSAppendicesname{Ap\^{e}ndices~}% |
| 737 |
\def\RSchaptername{cap\'{i}tulo~}% |
| 738 |
\def\RSchaptersname{cap\'{i}tulos~}% |
| 739 |
\def\RSChaptername{Cap\'{i}tulo~}% |
| 740 |
\def\RSChaptersname{Cap\'{i}tulos~}% |
| 741 |
\def\RSsectxt{sec\c{c}\~{a}o~}%<--------------- |
| 742 |
\def\RSsecstxt{sec\c{c}\~{o}es~}%<------------- |
| 743 |
\def\RSSectxt{Sec\c{c}\~{a}o~}%<--------------- |
| 744 |
\def\RSSecstxt{Sec\c{c}\~{o}es~}%<------------- |
| 745 |
\def\RSeqtxt{equa\c{c}\~{a}o~}% |
| 746 |
\def\RSeqstxt{equa\c{c}\~{o}es~}% |
| 747 |
\def\RSEqtxt{Equa\c{c}\~{a}o~}% |
| 748 |
\def\RSEqstxt{Equa\c{c}\~{o}es~}% |
| 749 |
\def\RSfigtxt{figura~}% |
| 750 |
\def\RSfigstxt{figuras~}% |
| 751 |
\def\RSFigtxt{Figura~}% |
| 752 |
\def\RSFigstxt{Figuras~}% |
| 753 |
\def\RStabtxt{tabela~}% |
| 754 |
\def\RStabstxt{tabelas~}% |
| 755 |
\def\RSTabtxt{Tabela~}% |
| 756 |
\def\RSTabstxt{Tabelas~}% |
| 757 |
\def\RSfootntxt{nota de rodap\'{e}~}% |
| 758 |
\def\RSfootnstxt{notas de rodap\'{e}~}% |
| 759 |
\def\RSFootntxt{Nota de rodap\'{e}~}% |
| 760 |
\def\RSFootnstxt{Notas de rodap\'{e}~}% |
| 761 |
} |
| 762 |
% \end{macrocode} |
| 763 |
% \end{RSframed} |
| 764 |
% \end{macro} |
| 765 |
% |
| 766 |
% \noindent Options |
| 767 |
% \begin{RSframed} |
| 768 |
% \begin{macrocode} |
| 769 |
\DeclareLangOpt{portuges}{\RSportuguese} |
| 770 |
\DeclareLangOpt{portuguese}{\RSportuguese} |
| 771 |
\DeclareLangOpt{brazilian}{\RSbrazilian} |
| 772 |
\DeclareLangOpt{brazil}{\RSbrazilian} |
| 773 |
% \end{macrocode} |
| 774 |
% \end{RSframed} |
| 775 |
% |
| 776 |
% |
| 777 |
% |
| 778 |
% \subsubsection{Swedish} |
| 779 |
% |
| 780 |
% \begin{macro}{\RSswedish} |
| 781 |
% \changes{v0.2}{2003/07/30}{Add Swedish language support} |
| 782 |
% Bj\"{o}rn Thors \texttt{<\,bjorn.thors AT alfvenlab DOT kth DOT se>} |
| 783 |
% provided the definitions for Swedish. |
| 784 |
% \begin{RSframed} |
| 785 |
% \begin{macrocode} |
| 786 |
%%-- SWEDISH ------------------------------------ |
| 787 |
% \end{macrocode} |
| 788 |
% \begin{macrocode} |
| 789 |
\newcommand\RSswedish{% |
| 790 |
\def\RSrngtxt{\space till~}% |
| 791 |
\def\RSlsttwotxt{\space och~}% |
| 792 |
\def\RSlsttxt{\space och~}% |
| 793 |
\def\RSparttxt{del~}% |
| 794 |
\def\RSpartstxt{del~}% |
| 795 |
\def\RSParttxt{Del~}% |
| 796 |
\def\RSPartstxt{Del~}% |
| 797 |
\def\RSappendixname{appendix~}% |
| 798 |
\def\RSappendicesname{appendix~}% |
| 799 |
\def\RSAppendixname{Appendix~}% |
| 800 |
\def\RSAppendicesname{Appendix~}% |
| 801 |
\def\RSchaptername{kapitel~}% |
| 802 |
\def\RSchaptersname{kapitel~}% |
| 803 |
\def\RSChaptername{Kapitel~}% |
| 804 |
\def\RSChaptersname{Kapitel~}% |
| 805 |
\def\RSsectxt{sektion~}% |
| 806 |
\def\RSsecstxt{sektion~}% |
| 807 |
\def\RSSectxt{Sektion~}% |
| 808 |
\def\RSSecstxt{Sektion~}% |
| 809 |
\def\RSeqtxt{ekvation~}% |
| 810 |
\def\RSeqstxt{ekvation~}% |
| 811 |
\def\RSEqtxt{Ekvation~}% |
| 812 |
\def\RSEqstxt{Ekvation~}% |
| 813 |
\def\RSfigtxt{figur~}% |
| 814 |
\def\RSfigstxt{figur~}% |
| 815 |
\def\RSFigtxt{Figur~}% |
| 816 |
\def\RSFigstxt{Figur~}% |
| 817 |
\def\RStabtxt{tabell~}% |
| 818 |
\def\RStabstxt{tabell~}% |
| 819 |
\def\RSTabtxt{Tabell~}% |
| 820 |
\def\RSTabstxt{Tabell~}% |
| 821 |
\def\RSfootntxt{fotnot~}% |
| 822 |
\def\RSfootnstxt{fotnot~}% |
| 823 |
\def\RSFootntxt{Fotnot~}% |
| 824 |
\def\RSFootnstxt{Fotnot~}% |
| 825 |
} |
| 826 |
% \end{macrocode} |
| 827 |
% \end{RSframed} |
| 828 |
% \end{macro} |
| 829 |
% \noindent Options |
| 830 |
% \begin{RSframed} |
| 831 |
% \begin{macrocode} |
| 832 |
\DeclareLangOpt{swedish}{\RSswedish} |
| 833 |
% \end{macrocode} |
| 834 |
% \end{RSframed} |
| 835 |
% |
| 836 |
% |
| 837 |
% |
| 838 |
% |
| 839 |
% \subsection{Templates for the \RS Package} |
| 840 |
% |
| 841 |
% The user can also define his or her own templates and put it |
| 842 |
% in a separate configuration file to ensure uniformity |
| 843 |
% of reference formats in your documents. |
| 844 |
% |
| 845 |
% \subsubsection{Parts} |
| 846 |
% |
| 847 |
% References to parts are usually straight forward, except that the |
| 848 |
% document division ``Part'' must be distinguished from the normal |
| 849 |
% usage of the word ``part'' in a sentence. A personal preference |
| 850 |
% is to use small caps. |
| 851 |
% |
| 852 |
% \begin{RSframed} |
| 853 |
% \begin{macrocode} |
| 854 |
%%-- TEMPLATE FOR PARTS ------------------------- |
| 855 |
% \end{macrocode} |
| 856 |
% \begin{macrocode} |
| 857 |
\newref{part}{% |
| 858 |
name = \RSparttxt, |
| 859 |
names = \RSpartstxt, |
| 860 |
Name = \RSPparttxt, |
| 861 |
Names = \RSPartstxt, |
| 862 |
rngtxt = \RSrngtxt, |
| 863 |
lsttxt = \RSlsttxt} |
| 864 |
% \end{macrocode} |
| 865 |
% \end{RSframed} |
| 866 |
% |
| 867 |
% |
| 868 |
% |
| 869 |
% \subsubsection{Chapters and Appendices} |
| 870 |
% |
| 871 |
% A major problem with a reference to a chapter is that at the time |
| 872 |
% when the reference label, |\label|\marg{chap-label}, is created, |
| 873 |
% it is unknown whether it would eventually ends up in the main |
| 874 |
% matter or the appendix part of a book or report. |
| 875 |
% |
| 876 |
% A simple solution is to use the prefix to the \meta{chapter} |
| 877 |
% counter, |\p@chapter|, to write the definition of |\@chapapp| to |
| 878 |
% the auxiliary file (|.aux|) together with information of the |
| 879 |
% label. The command |\@chapapp| expands to either |\chaptername| or |
| 880 |
% |\appendixname| depending on whether the reference label is |
| 881 |
% defined in the main matter or after the |\appendix| was called. |
| 882 |
% (Note that |\@chapapp| is not defined in the AMS book class.) |
| 883 |
% |
| 884 |
% \begin{Ipara} |
| 885 |
% |\renewcommand*{\p@chapter}{\string\chname{\@chapapp}}|\\ |
| 886 |
% |\newcommand*{\chname}[1]{}%<-make it harmless |\\ |
| 887 |
% |\newcommand*{\chapref}[1]{{\renewcommand*{\chname}[1]{##1~}\ref{#1}}}| |
| 888 |
% \end{Ipara} |
| 889 |
% |
| 890 |
% \noindent The reference to a chapter, |\chapref|\marg{chap-label}, |
| 891 |
% will then be prefixed with |\chaptername| or |\appendixname| and |
| 892 |
% it does not matter where it was defined or where it was called. |
| 893 |
% |
| 894 |
% To utilize the full functionality of the \RS package for |
| 895 |
% references to chapters and appendices, a complex form of |
| 896 |
% \cmd{\newref} needs to be implemented. |
| 897 |
% The following is a template for a book or report classes. |
| 898 |
% |
| 899 |
% |
| 900 |
% \begin{RSframed} |
| 901 |
% \begin{macrocode} |
| 902 |
%%-- TEMPLATE FOR CHAPTERS & APPENDIXES --------- |
| 903 |
% \end{macrocode} |
| 904 |
% Prevent crashes for non-book type classes. |
| 905 |
% \begin{macrocode} |
| 906 |
\providecommand*{\p@chapter}{} |
| 907 |
% \end{macrocode} |
| 908 |
% Add \cmd{\@chapapp} to \cmd{\p@chapter} for writeout to auxiliary file. |
| 909 |
% If an AMS book class is loaded, then \cmd{\chaptername} must |
| 910 |
% be used. |
| 911 |
% \begin{macrocode} |
| 912 |
\AtBeginDocument{% |
| 913 |
\RS@ifundefined{chapter}{}{% |
| 914 |
\RS@ifundefined{@chapapp}% |
| 915 |
{\renewcommand*{\p@chapter}{\string\chpname{\chaptername}}}%AMS |
| 916 |
{\renewcommand*{\p@chapter}{\string\chpname{\@chapapp}}}% Normal |
| 917 |
}% |
| 918 |
} |
| 919 |
% \end{macrocode} |
| 920 |
% Define \cmd{\chpname} to gobble its contents outside the |
| 921 |
% reference commands. |
| 922 |
% \begin{macrocode} |
| 923 |
\newcommand*{\chpname}[1]{} |
| 924 |
% \end{macrocode} |
| 925 |
% Define the \cmd{\RSchpname} to typeset all the different |
| 926 |
% perturbations of chapter and appendix names. |
| 927 |
% Use the conditionals to switch between the |
| 928 |
% different options. |
| 929 |
% |
| 930 |
% \begin{macrocode} |
| 931 |
\newcommand*{\RS@chpname}[1]{% |
| 932 |
\ifRSnameon |
| 933 |
\edef\RS@tmpa{#1}% |
| 934 |
\edef\RS@tmpb{\appendixname}% |
| 935 |
\ifx\RS@tmpa\RS@tmpb\relax% |
| 936 |
\ifRSplural |
| 937 |
\ifRScapname \RSAppendicesname \else \RSappendicesname \fi |
| 938 |
\else |
| 939 |
\ifRScapname \RSAppendixname \else \RSappendixname \fi |
| 940 |
\fi |
| 941 |
\else |
| 942 |
\ifRSplural |
| 943 |
\ifRScapname \RSChaptersname \else \RSchaptersname \fi |
| 944 |
\else |
| 945 |
\ifRScapname \RSChaptername \else \RSchaptername \fi |
| 946 |
\fi |
| 947 |
\fi |
| 948 |
\fi} |
| 949 |
% \end{macrocode} |
| 950 |
% Define the \cmd{\newref} for chapters. |
| 951 |
% \begin{macrocode} |
| 952 |
\newref{chap}{% |
| 953 |
refcmd = {{\let\chpname=\RS@chpname\ref{#1}}}, |
| 954 |
rngtxt = \RSrngtxt, |
| 955 |
lsttwotxt = \RSlsttwotxt, |
| 956 |
lsttxt = \RSlsttxt} |
| 957 |
% \end{macrocode} |
| 958 |
% \end{RSframed} |
| 959 |
% |
| 960 |
% |
| 961 |
% \subsubsection{Sections and paragraphs}\seclabel{secTempl} |
| 962 |
% |
| 963 |
% A template for references to sections is given below. References |
| 964 |
% to paragraphs are similar and is left as an exercise to the users. |
| 965 |
% |
| 966 |
% \begin{RSframed} |
| 967 |
% \begin{macrocode} |
| 968 |
%%-- TEMPLATE FOR SECTIONS ---------------------- |
| 969 |
% \end{macrocode} |
| 970 |
% \begin{macrocode} |
| 971 |
\newref{sec}{% |
| 972 |
name = \RSsectxt, |
| 973 |
names = \RSsecstxt, |
| 974 |
Name = \RSSectxt, |
| 975 |
Names = \RSSecstxt, |
| 976 |
refcmd = {\S\ref{#1}}, |
| 977 |
rngtxt = \RSrngtxt, |
| 978 |
lsttwotxt = \RSlsttwotxt, |
| 979 |
lsttxt = \RSlsttxt} |
| 980 |
% \end{macrocode} |
| 981 |
% \end{RSframed} |
| 982 |
% |
| 983 |
% \subsubsection{Equations}\seclabel{EqTempl} |
| 984 |
% |
| 985 |
% The equation number in references to equations are traditionally |
| 986 |
% written in an upright text, irrespective of the surrounding text. |
| 987 |
% |
| 988 |
% \begin{RSframed} |
| 989 |
% \begin{macrocode} |
| 990 |
%%-- TEMPLATE FOR EQUATIONS --------------------- |
| 991 |
% \end{macrocode} |
| 992 |
% The standard equation ref format if \pkg{amsmath.sty} is not loaded. |
| 993 |
% \begin{macrocode} |
| 994 |
\newcommand*{\RSeqrefform}[1]{\textup{(\ref{#1})}} |
| 995 |
% \end{macrocode} |
| 996 |
% If \pkg{amsmath.sty} is loaded, store \cmd{\eqref} |
| 997 |
% and then undefine it before the template is created. |
| 998 |
% \begin{macrocode} |
| 999 |
\AddToHook{package/amsmath/after}{% |
| 1000 |
\NewCommandCopy\AMSeqref\eqref |
| 1001 |
\DeclareCommandCopy\RSeqrefform\AMSeqref |
| 1002 |
\RS@removedef{eqref}} |
| 1003 |
% \end{macrocode} |
| 1004 |
% \begin{macrocode} |
| 1005 |
\newref{eq}{% |
| 1006 |
name = \RSeqtxt, |
| 1007 |
names = \RSeqstxt, |
| 1008 |
Name = \RSEqtxt, |
| 1009 |
Names = \RSEqstxt, |
| 1010 |
refcmd = \RSeqrefform{#1}, |
| 1011 |
rngtxt = \RSrngtxt, |
| 1012 |
lsttwotxt = \RSlsttwotxt, |
| 1013 |
lsttxt = \RSlsttxt} |
| 1014 |
% \end{macrocode} |
| 1015 |
% Make way for \pkg{amsmath.sty} definitions |
| 1016 |
% \begin{macrocode} |
| 1017 |
\NewCommandCopy\RSeqref\eqref |
| 1018 |
\RS@removedef{eqref} |
| 1019 |
% \end{macrocode} |
| 1020 |
% Some footwork to bring the AMS definition of |
| 1021 |
% \cmd{\eqref} back if \pkg{amsmath.sty} is loaded |
| 1022 |
% afterwards. |
| 1023 |
% \begin{macrocode} |
| 1024 |
\AtBeginDocument{% |
| 1025 |
\DeclareCommandCopy\eqref\RSeqref} |
| 1026 |
% \end{macrocode} |
| 1027 |
% \end{RSframed} |
| 1028 |
% |
| 1029 |
% |
| 1030 |
% \subsubsection{Figures and Tables}\seclabel{tabtemp} |
| 1031 |
% References to figures and tables are usually |
| 1032 |
% straight forward. |
| 1033 |
% \begin{RSframed} |
| 1034 |
% \begin{macrocode} |
| 1035 |
%%-- TEMPLATE FOR FIGURES ----------------------- |
| 1036 |
% \end{macrocode} |
| 1037 |
% \begin{macrocode} |
| 1038 |
\newref{fig}{% |
| 1039 |
name = \RSfigtxt, |
| 1040 |
names = \RSfigstxt, |
| 1041 |
Name = \RSFigtxt, |
| 1042 |
Names = \RSFigstxt, |
| 1043 |
rngtxt = \RSrngtxt, |
| 1044 |
lsttwotxt = \RSlsttwotxt, |
| 1045 |
lsttxt = \RSlsttxt} |
| 1046 |
% \end{macrocode} |
| 1047 |
% \end{RSframed} |
| 1048 |
% |
| 1049 |
% \begin{RSframed} |
| 1050 |
% \begin{macrocode} |
| 1051 |
%%-- TEMPLATE FOR TABLES ------------------------ |
| 1052 |
% \end{macrocode} |
| 1053 |
% \begin{macrocode} |
| 1054 |
\newref{tab}{% |
| 1055 |
name = \RStabtxt, |
| 1056 |
names = \RStabstxt, |
| 1057 |
Name = \RSTabtxt, |
| 1058 |
Names = \RSTabstxt, |
| 1059 |
rngtxt = \RSrngtxt, |
| 1060 |
lsttwotxt = \RSlsttwotxt, |
| 1061 |
lsttxt = \RSlsttxt} |
| 1062 |
% \end{macrocode} |
| 1063 |
% \end{RSframed} |
| 1064 |
% |
| 1065 |
% \pagebreak[2] |
| 1066 |
% \subsubsection{Footnotes}\seclabel{fnTempl} |
| 1067 |
% |
| 1068 |
% A reference to a footnote differs from other references in that |
| 1069 |
% it is only defined inside the footnote definition itself: |
| 1070 |
% \begin{Ipara} |
| 1071 |
% |\footnote{This is a footnote with ... \label{fn:xx}}| |
| 1072 |
% \end{Ipara} |
| 1073 |
% It can then be referred to with |\ref{fn:xx}|. |
| 1074 |
% |
| 1075 |
% A useful application of the \RS package is for references to |
| 1076 |
% footnotes, were you need a duplicate footnote mark that refers to |
| 1077 |
% a previously defined footnote.\footnote{^^A |
| 1078 |
% This is a footnote with \cmd{\fnlabel}\texttt{\{xx\}} ...\fnlabel{xx}} |
| 1079 |
% You can use the stared form of the reference |
| 1080 |
% command to format the reference as a footnote mark, while the |
| 1081 |
% reference commands without a star behave as normal. |
| 1082 |
% \begin{Itabb} |
| 1083 |
% \hspace*{2cm}\=\kill |
| 1084 |
% |\fnref*{xx}| \ArTab \fnref*{xx}\\ |
| 1085 |
% |\fnref{xx}| \ArTab \fnref{xx}\\ |
| 1086 |
% \end{Itabb} |
| 1087 |
% |
| 1088 |
% \begin{RSframed} |
| 1089 |
% \begin{macrocode} |
| 1090 |
%%-- TEMPLATE FOR FOOTNOTES --------------------- |
| 1091 |
% \end{macrocode} |
| 1092 |
% Define the \cmd{\RSfnmark} to reproduce the footnote mark. |
| 1093 |
% Use the |\ifRSstar| conditional to switch between a superscripted |
| 1094 |
% and a normal reference. |
| 1095 |
% \begin{macrocode} |
| 1096 |
\newcommand{\RSfnmark}[1]{% |
| 1097 |
\begingroup |
| 1098 |
\unrestored@protected@xdef\@thefnmark{\ref{#1}}% |
| 1099 |
\endgroup |
| 1100 |
\@footnotemark} |
| 1101 |
% \end{macrocode} |
| 1102 |
% \begin{macrocode} |
| 1103 |
\newref{fn}{% |
| 1104 |
name = \RSfootntxt, |
| 1105 |
names = \RSfootnstxt, |
| 1106 |
Name = \RSFootntxt, |
| 1107 |
Names = \RSFootnstxt, |
| 1108 |
refcmd = {\ifRSstar\RSfnmark{#1}\else(\ref{#1})\fi}, |
| 1109 |
rngtxt = \RSrngtxt, |
| 1110 |
lsttwotxt = \RSlsttwotxt, |
| 1111 |
lsttxt = \RSlsttxt} |
| 1112 |
% \end{macrocode} |
| 1113 |
% \end{RSframed} |
| 1114 |
% |
| 1115 |
% \subsubsection{Enumerated lists} |
| 1116 |
% |
| 1117 |
% A reference to an item in an enumerated list can be obtained |
| 1118 |
% by placing the labelling command after the \cmd{\item} command |
| 1119 |
% inside the list. The second level numbering of the \cmd{\ref} |
| 1120 |
% label in the standard \LaTeX{} is: 2a, 2b, etc. |
| 1121 |
% |
| 1122 |
% If you want to change the reference labels to 2(a), 2(b), |
| 1123 |
% etc., without effecting the display in the \env{enumerate} |
| 1124 |
% environment, you can make the following redefinition: |
| 1125 |
% \begin{Ipara} |
| 1126 |
% |\makeatletter|\\ |
| 1127 |
% |\renewcommand{\p@enumii}{\expandafter\p@@enumii}|\\ |
| 1128 |
% |\newcommand{\p@@enumii}[1]{\theenumi(#1)}|\\ |
| 1129 |
% |\makeatother| |
| 1130 |
% \end{Ipara} |
| 1131 |
% The contents of the \cmd{\@currentlable} is then |
| 1132 |
% \begin{Ipara} |
| 1133 |
% |{\expandafter\p@@enumii\theenumii}| ~$\rightarrow$~ |
| 1134 |
% |{\theenumi(\theenumii)}| |
| 1135 |
% \end{Ipara} |
| 1136 |
% |
| 1137 |
% Writing a template for enumerated lists is left to the user. |
| 1138 |
% |
| 1139 |
% |
| 1140 |
% \subsubsection{Theorems, lemmas, etc.}\seclabel{Thm} |
| 1141 |
% |
| 1142 |
% There exists many perturbations to the theorem environment such |
| 1143 |
% as, Theorem, Lemma, Exercise, etc., and it is left to the user as |
| 1144 |
% an exercise to construct his or her own templates. |
| 1145 |
% |
| 1146 |
% As an example to add reference for theorems to an exiting setup: |
| 1147 |
% |
| 1148 |
% \begin{Ipara} |
| 1149 |
% |\usepackage{refstyle} |\\ |
| 1150 |
% |\newref{thm}{ |\\ |
| 1151 |
% | name = {theorem~}, |\\ |
| 1152 |
% | names = {theorems~},|\\ |
| 1153 |
% | Name = {Theorem~}, |\\ |
| 1154 |
% | Names = {Theorems~},|\\ |
| 1155 |
% | rngtxt = \RSrngtxt,|\\ |
| 1156 |
% | lsttwotxt = \RSlsttxt,|\\ |
| 1157 |
% | lsttxt = \RSlsttxt}| |
| 1158 |
% \end{Ipara} |
| 1159 |
% |
| 1160 |
% If you want to add it to a specific language setup with \pkg{babel} then |
| 1161 |
% you can do the following, for example for a dual language document with |
| 1162 |
% English and Norwegian: |
| 1163 |
% \begin{Ipara} |
| 1164 |
% |\documentclass[english, norwegian]{article}% NB: Languages as global opts! |\\ |
| 1165 |
% |\usepackage{babel} %Use global languages |\\ |
| 1166 |
% |\usepackage{varioref} %Use global languages |\\ |
| 1167 |
% |\usepackage{refstyle} %Use global languages |\\ |
| 1168 |
% |\RSaddto{\RSnorwegian}{% |\\ |
| 1169 |
% | \def\RSthmtxt{teorem~}% |\\ |
| 1170 |
% | \def\RSthmstxt{teorem~}% |\\ |
| 1171 |
% | \def\RSThmtxt{Teorem~}% |\\ |
| 1172 |
% | \def\RSThmstxt{Teorem~}} |\\ |
| 1173 |
% |\RSaddto{\RSenglish}{% |\\ |
| 1174 |
% | \def\RSthmtxt{theorem~}% |\\ |
| 1175 |
% | \def\RSthmstxt{theorems~}% |\\ |
| 1176 |
% | \def\RSThmtxt{Theorem~}% |\\ |
| 1177 |
% | \def\RSThmstxt{Theorems~}} |\\ |
| 1178 |
% |\newref{thm}{ |\\ |
| 1179 |
% | name = \RSthmtxt, |\\ |
| 1180 |
% | names = \RSthmstxt, |\\ |
| 1181 |
% | Name = \RSThmtxt, |\\ |
| 1182 |
% | Names = \RSThmstxt, |\\ |
| 1183 |
% | rngtxt = \RSrngtxt, |\\ |
| 1184 |
% | lsttwotxt = \RSlsttxt, |\\ |
| 1185 |
% | lsttxt = \RSlsttwotxt} | |
| 1186 |
% \end{Ipara} |
| 1187 |
% |
| 1188 |
% \noindent All \pkg{babel} language changes will then activate |
| 1189 |
% the proper code setup. In this example the \pkg{refstyle} |
| 1190 |
% mechanism is used where the code is appended to the |\RSenglish| |
| 1191 |
% and |\RSnorwegian| container functions. These functions are added |
| 1192 |
% by the package |
| 1193 |
% to the \pkg{babel} containers |\extrasenglish| and |\extrasnorwegian|, |
| 1194 |
% that is called every time a language change occurs. |
| 1195 |
% Please see the contents of \pkg{refstyle.cfg} for the names of the |
| 1196 |
% \pkg{refstyle} containers associated with the different languages. |
| 1197 |
% |
| 1198 |
% Note that the extended definitions |
| 1199 |
% can also be added directly to the \pkg{babel} containers without using |
| 1200 |
% \pkg{refstyle}'s mechanism. |
| 1201 |
% |
| 1202 |
% \begin{macrocode} |
| 1203 |
%</cfg> |
| 1204 |
% \end{macrocode} |
| 1205 |
% |
| 1206 |
% \Finale |
| 1207 |
\endinput |