summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/cleveref
diff options
context:
space:
mode:
authorDr. Clea F. Rees <cfrees@imapmail.org>2009-08-07 00:40:57 +0000
committerDr. Clea F. Rees <cfrees@imapmail.org>2009-08-07 00:40:57 +0000
commitf24e7fb5ffb0d7a1d2430b3a3db056c3aad44837 (patch)
treef018055fddf543f6ecb102903dff9eb5ff997de5 /Master/texmf-dist/source/latex/cleveref
parent3135d55ca633dbcd230b7104cc5753ef537d8446 (diff)
cleveref new version
git-svn-id: svn://tug.org/texlive/trunk@14557 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/cleveref')
-rw-r--r--Master/texmf-dist/source/latex/cleveref/cleveref.dtx840
1 files changed, 614 insertions, 226 deletions
diff --git a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
index 1d1df6c1f0e..72c253be7de 100644
--- a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
+++ b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
@@ -21,13 +21,14 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{cleveref}
-%<package> [2009/07/01 v0.13.1 Intelligent cross-referencing]
+%<package> [2009/07/26 v0.13.2 Intelligent cross-referencing]
%
%<*driver>
-%\documentclass{ltxdoc}
-\documentclass[draft]{ltxdoc}
+\documentclass{ltxdoc}
+%\documentclass[draft]{ltxdoc}
\usepackage{url}
-%\usepackage{hyperref} % breaks index
+\usepackage{pifont} % FIXME: find nicer line-continuation symbol than \ding{229}
+% \usepackage{hyperref} % breaks index
\usepackage{cleveref}
\DisableCrossrefs
\CodelineIndex
@@ -61,7 +62,7 @@
%</driver>
% \fi
%
-% \CheckSum{6793}
+% \CheckSum{7236}
%% \CharacterTable
%% {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
%% 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,26 +100,31 @@
% components, unless overridden using the old format definition
% commands.}
% \changes{v0.10}{2007/10/30}%
-% {Allow optional argument to \textbackslash label to override
+% {Allow optional argument to \textbackslash{}label to override
% reference type. Removed hyperref and ntheorem options; support for
% these and amsmath is enabled automatically if those packages are
% loaded.}
% \changes{v0.11}{2007/11/21}{Made referencing aware of appendices.}
% \changes{v0.11.1}{2007/11/29}{Bug fixes.}
-% \changes{v0.12}{2009/02/11}{Restore working \textbackslash ref* when
+% \changes{v0.12}{2009/02/11}{Restore working \textbackslash{}ref* when
% hyperref is loaded -- first release mirrored on www.dr-qubit.org}
% \changes{v0.13}{2009/04/17}{Finally implemented sort and compress
-% package options. Support amsmath \textbackslash tag command. Added
+% package options. Support amsmath \textbackslash{}tag command. Added
% babel support for English, German and French. Added varioref
% support.}
-% \changes{v0.13.1}{2009/07/01}{Bug fix to \textbackslash cref@get*
+% \changes{v0.13.1}{2009/07/01}{Bug fix to \textbackslash{}cref@get*
% commands to allow fragile and non-expandable commands in label tags.}
+% \changes{v0.13.2}{2009/07/26}{Added\newline
+% \textbackslash{}crefrangepreconjunction and
+% \textbackslash{}crefrangepostconjunction commands, needed by some
+% languages (such as Italian). Added babel support for Spanish and
+% Italian. Added notes about memoir (in)compatibility.}
%
%
% \GetFileInfo{cleveref.sty}
%
-% \def\fileversion{0.13.1}
-% \def\filedate{01/07/2009}
+% \def\fileversion{0.13.2}
+% \def\filedate{26/07/2009}
%
% \title{The \package{cleveref} package\thanks{This document
% corresponds to \textsf{cleveref}~\fileversion, dated
@@ -411,8 +417,8 @@
% took place in a pub just around the corner from Hadrian's wall\dots a
% few years before the Romans pulled out of Britain. \package{cleveref}
% might have ``clever'' in its name, but even that doesn't make it
-% pretentious enough to use ``lemmata''.}, and support for German and
-% French is provided via package options (see
+% pretentious enough to use ``lemmata''.}, and support for German,
+% French, Spanish and Italian is provided via package options (see
% \cref{sec:language_babel}). But if you don't like the defaults, or are
% writing in a different language\footnote{Any contributions of
% translations for missing languages are very welcome! See
@@ -470,8 +476,10 @@
%
% Note that the default format for equation cross-references already
% overrides \cmd{\crefdefaultlabelformat} in order to surround the label
-% by brackets, so the label format for equations must be customised
-% individually (see \cref{sec:individual_customisation}).
+% by brackets, so the redefining |\crefdefaultlabelformat| will have no
+% effect on equations. The label format for equations must be customised
+% separately if you want to change it (see
+% \cref{sec:individual_customisation}).
%
% \DescribeMacro\crefrangeconjunction
% The conjunction used in a reference range can be customised by
@@ -496,7 +504,27 @@
% \begin{quote}
% |\newcommand{\crefrangeconjunction}{--}|
% \end{quote}
-% probably does not.
+% does not.
+%
+% \DescribeMacro\crefrangepreconjunction
+% \DescribeMacro\crefrangepostconjunction
+% There are two other ``conjunction'' commands available for customizing
+% the formatn for reference ranges. These are |\crefrangepreconjunction|
+% and |\crefrangepostconjunction|, which insert text before the first
+% label defining the range, and after the second label, respectively. For
+% example, when these commands are defined, |\crefrange{thm1}{thm2}| is
+% type-set as
+% \begin{quote}
+% |theorems~\crefrangepreconjunction\ref{thm1}|\\
+% | |\ding{229} |\crefrangeconjunction\ref{thm2}\crefrangepostconjunction|
+% \end{quote}
+% These commands are not used in the default English format definitions,
+% but they are needed in some languages to correctly express a range. For
+% example, the Italian format defines |\crefrangepreconjunction| to be
+% ``da'', so that |\crefrange{thm1}{thm2}| produces
+% \begin{quote}
+% |teorema da~\ref{thm1} a~\ref{thm2}|
+% \end{quote}
%
% \DescribeMacro\crefpairconjunction
% \DescribeMacro\crefmiddleconjunction
@@ -832,13 +860,13 @@
% \package{cleveref} supports different languages via package options, in
% the usual way, though not all languages are supported
% yet\footnote{Currently, only \option{english}, \option{german},
-% \option{ngerman} and \option{french} are supported. Contributions of
-% translations for missing languages are very welcome! See
-% \cref{sec:code:babel} for information on how to contribute
-% translations.}. The \package{babel} package is also supported when it
-% is loaded, allowing you to change language using the \package{babel}
-% language switching commands such as \cmd{\selectlanguage} and
-% \cmd{\foreignlanguage}.
+% \option{ngerman}, \option{french}, \option{spanish} and
+% \option{italian} are supported. Contributions of translations for
+% missing languages are very welcome! See \cref{sec:code:babel} for
+% information on how to contribute translations.}. The \package{babel}
+% package is also supported when it is loaded, allowing you to change
+% language using the \package{babel} language switching commands such as
+% \cmd{\selectlanguage} and \cmd{\foreignlanguage}.
%
% The \package{babel} support works by redefining the cross-reference
% names and conjunctions for the default cross-reference types. Any
@@ -1025,13 +1053,14 @@
%
% Since \package{cleveref} redefines many internal commands involved in
% \LaTeX{}'s cross-referencing system, it can interact badly with other
-% packages that do the same. The \package{varioref} package's enhanced
-% referencing features (the ones you make use of by via the
-% |\labelformat| command), the \package{fancyref} package, and
-% \package{ntheorem}'s \option{thref} option are incompatible with
-% \package{cleveref}. However, since \package{cleveref} implements a
-% significantly enhanced version of these packages' features, this is not
-% really a problem.
+% packages that do the same. The \package{fancyref} package,
+% \package{ntheorem}'s \option{thref} option, and \package{varioref}'s
+% |\labelformat| command, are incompatible with \package{cleveref}. (Note
+% that \package{varioref} \emph{is} fully supported by
+% \package{cleveref}, just that \package{cleveref}'s features supersede
+% \package{varioref}'s |\labelformat| feature.) However, since
+% \package{cleveref} implements a significantly enhanced version of these
+% packages' features, this is not really a problem.
%
% \DescribeMacro{\thref}
% \DescribeMacro{\vref}
@@ -1084,7 +1113,9 @@
% to work properly with \package{cleveref}. (For example, although
% \package{cleveref} fully supports the \package{hyperref} package's
% hyper-link features, the \option{backref} option is not currently
-% supported.) See \cref{sec:known_bugs} for additional information.
+% supported. Similarly, \package{cleveref} is currently incompatible with
+% the \package{memoir} class, though some versions are reported to
+% partially work.) See \cref{sec:known_bugs} for additional information.
%
%
%
@@ -1109,14 +1140,18 @@
% properly with \package{cleveref}. (See
% \url{http://www.tug.org/pracjourn/2006-4/madsen/}).
% \item \package{cleveref} currently only provides language support for
-% German and French. Please contribute translations for missing
-% languages!\footnote{See \cref{sec:code:babel} for information on how
-% to contribute translations.}
+% English, German, French, Spanish and Italian. Please contribute
+% translations for missing languages!\footnote{See
+% \cref{sec:code:babel} for information on how to contribute
+% translations.}
% \item \package{cleveref} can't cope with active characters being
-% present in cross-reference label names. For example, if French babel
-% support is loaded, the commonly used ``:'' in label names will often
-% fail, spewing the usual random selection of mysterious TeX errors
-% that accompany such deep-seated errors.
+% present in cross-reference label names. For example, if French
+% \package{babel} support is loaded, the commonly used ``:'' in label
+% names will often fail, spewing the usual random selection of
+% mysterious TeX errors that accompany such deep-seated errors. The
+% solution is to avoid using active characters in label names. (You may
+% need to consult e.g.\ the \package{babel} documentation to discover
+% which active characters are defined in your language.)
% \item \package{cleveref} assumes that counters are only ever reset by
% the standard sectioning commands (|\chapter|, |\section|, etc.). If
% this is not the case, the automatic compression of consecutive
@@ -1124,12 +1159,19 @@
% more flexible would be a simple task, but so far there doesn't seem
% to be much need for it.
% \item \package{cleveref} breaks \package{hyperref}'s \option{backref}
-% option, and probably also the \package{backref} package when used by
-% itself. (This should be fixed in a future version.)
+% option, and probably also the \package{backref} package when used as
+% a stand-alone package. (This should be fixed in a future version.)
% \item \package{cleveref} is almost certainly incompatible with
% \package{titleref}, \package{byname}, \package{nameref} and the
% like. This shouldn't be difficult to fix, and if you want this
% feature, then\dots patches are always welcome!
+% \item Given all the above, it's not surprising that \package{cleveref}
+% is incompatible with the \package{memoir} class, which incorporates
+% many of the above packages. There are some reports of some versions
+% of \package{cleveref} partially working with \package{memoir}, but
+% this should not be considered reliable. Compatibility with
+% \package{memoir} will become a realistic possibility once
+% compatibility with the other packages (listed above) is added.
% \item \package{cleveref} doesn't know about the \package{subfloat}
% package, so you have to revert to using \cmd{\ref} for
% cross-references to sub-figures. (This should be fixed in a future
@@ -1138,9 +1180,10 @@
% \package{cleveref} hyper-link formatting you might have defined, and
% does not reproduce the original spacing around the \cmd{\vref}
% command when \package{varioref} is used with the
-% \option{legacyvarioref} option. This is not a bug; it is
-% intentional. The philosophy behind the \option{poorman} option is to
-% replace \package{cleveref}'s enhanced cross-referencing with standard
+% \option{legacyvarioref} option. This is not a bug; it is a
+% side-effect of the intended purpose of the \option{poorman}
+% option. The philosophy behind \option{poorman} is to replace
+% \package{cleveref}'s enhanced cross-referencing with standard
% \LaTeX{} cross-reference commands that are guaranteed to work with
% any standard \LaTeX{} installation. Although it would be simple to
% fix these ``bugs'', it's almost certainly impossible without using
@@ -1157,7 +1200,7 @@
% of scripting language rather than just |sed| (e.g.\ |awk|, |perl|,
% \dots?), but these are unlikely to be much better for those apt to
% complain about the use of |sed|. The portable option would be to
-% output a \TeX{} ``script'', but this would be a \emph{much} more
+% output a \TeX{} ``script'', but this would be \emph{much} more
% work\footnote{\LaTeX{} \emph{really} isn't suited to that kind of
% pattern matching task -- just take a look at the code for escaping
% regexp special characters in this package!} than I'm prepared to
@@ -2623,8 +2666,8 @@
% components have been defined, and therefore need constructing at
% \cmd{\begindocument} (see below).
%
-% FIXME: we don't check if the label type is already in the list, so some
-% formats may needlessly be redefined identically, multiple times.
+% FIXME: we don't check if the label type is already in the list, so
+% some formats may needlessly be redefined identically, multiple times.
%
% \begin{macrocode}
\cref@stack@init{\cref@label@types}
@@ -2785,18 +2828,12 @@
\@tmplabel{####2}{####5}{####6}}%
\toksdef\@toksa=0%
\@toksa={\def\@tmprangelabel##1##2##3##4##5##6}%
- % \expandafter\expandafter\expandafter\expandafter%
- % \expandafter\expandafter\expandafter\the%
- % \expandafter\expandafter\expandafter\expandafter%
- % \expandafter\expandafter\expandafter\@toksa%
- % \expandafter\expandafter\expandafter\expandafter%
- % \expandafter\expandafter\expandafter{%
- % \expandafter\expandafter\expandafter\@tmpa%
- % \expandafter\crefrangeconjunction\@tmpb}%
\expandafter\expandafter\expandafter\the%
\expandafter\expandafter\expandafter\@toksa%
\expandafter\expandafter\expandafter{%
- \expandafter\@tmpa\expandafter\crefrangeconjunction\@tmpb}%
+ \expandafter\expandafter\expandafter\crefrangepreconjunction%
+ \expandafter\@tmpa\expandafter\crefrangeconjunction\@tmpb%
+ \crefrangepostconjunction}%
}{%
\expandafter\let\expandafter\@tmprangelabel%
\csname cref@#1@rangelabel\endcsname%
@@ -3692,7 +3729,8 @@
\else%
\cref@getlabel{#1}{\@result}%
\fi%
- \expandafter\real@setref\csname r@#1\endcsname{\cref@reflabel}{#1}}%
+ \expandafter\real@setref\csname r@#1\endcsname{%
+ \cref@reflabel}{#1}}%
}
}{}% end of \@ifpackageloaded{hyperref}
% \end{macrocode}
@@ -4036,6 +4074,16 @@
\expandafter{\@address}{\string\crefrangeconjunction}}
\expandafter\cref@writescript\@tmpa%
\expandafter\def\expandafter\cref@poorman@text\expandafter{%
+ \crefrangepreconjunction}%
+ \expandafter\def\expandafter\@tmpa\expandafter{%
+ \expandafter{\@address}{\string\crefrangepreconjunction}}
+ \expandafter\cref@writescript\@tmpa%
+ \expandafter\def\expandafter\cref@poorman@text\expandafter{%
+ \crefrangepostconjunction}%
+ \expandafter\def\expandafter\@tmpa\expandafter{%
+ \expandafter{\@address}{\string\crefrangepostconjunction}}
+ \expandafter\cref@writescript\@tmpa%
+ \expandafter\def\expandafter\cref@poorman@text\expandafter{%
\crefpairconjunction}%
\expandafter\def\expandafter\@tmpa\expandafter{%
\expandafter{\@address}{\string\crefpairconjunction}}
@@ -4770,45 +4818,53 @@
% define the formats created by the document preamble.
% \begin{macrocode}
\AtBeginDocument{%
- \def\crefrangeconjunction@preamble{ to~}
- \def\crefpairconjunction@preamble{ and~}
- \def\crefmiddleconjunction@preamble{, }
- \def\creflastconjunction@preamble{ and~}
+ \def\crefrangeconjunction@preamble{ to~}%
+ \def\crefrangepreconjunction@preamble{}%
+ \def\crefrangepostconjunction@preamble{}%
+ \def\crefpairconjunction@preamble{ and~}%
+ \def\crefmiddleconjunction@preamble{, }%
+ \def\creflastconjunction@preamble{ and~}%
% \end{macrocode}
% We have to define the group conjunctions explicitly here, rather than
% relying on fall-back definitions in terms of the above conjunctions
% (see \cref{sec:code:default_formats}), in case any other language
% option defines them explicitly and we need to override those.
% \begin{macrocode}
- \def\crefpairgroupconjunction@preamble{ and~}
- \def\crefmiddlegroupconjunction@preamble{, }
- \def\creflastgroupconjunction@preamble{, and~}
- \crefname@preamble{equation}{eq.}{eqs.}
- \Crefname@preamble{equation}{Equation}{Equations}
- \crefname@preamble{chapter}{chapter}{chapters}
- \Crefname@preamble{chapter}{Chapter}{Chapters}
- \crefname@preamble{section}{section}{sections}
- \Crefname@preamble{section}{Section}{Sections}
- \crefname@preamble{appendix}{appendix}{appendices}
- \Crefname@preamble{appendix}{Appendix}{Appendices}
- \crefname@preamble{figure}{fig.}{figs.}
- \Crefname@preamble{figure}{Figure}{Figures}
- \crefname@preamble{table}{table}{tables}
- \Crefname@preamble{table}{Table}{Tables}
- \crefname@preamble{theorem}{theorem}{theorems}
- \Crefname@preamble{theorem}{Theorem}{Theorems}
- \crefname@preamble{enumi}{item}{items}
- \Crefname@preamble{enumi}{Item}{Items}
- \crefname@preamble{lemma}{lemma}{lemmas}
- \Crefname@preamble{lemma}{Lemma}{Lemmas}
- \crefname@preamble{corollary}{corollary}{corollaries}
- \Crefname@preamble{corollary}{Corollary}{Corollaries}
- \crefname@preamble{proposition}{proposition}{propositions}
- \Crefname@preamble{proposition}{Proposition}{Propositions}
- \crefname@preamble{definition}{definition}{definitions}
- \Crefname@preamble{definition}{Definition}{Definitions}
- \crefname@preamble{result}{result}{results}
- \Crefname@preamble{result}{Result}{Results}
+ \def\crefpairgroupconjunction@preamble{ and~}%
+ \def\crefmiddlegroupconjunction@preamble{, }%
+ \def\creflastgroupconjunction@preamble{, and~}%
+ \crefname@preamble{equation}{eq.}{eqs.}%
+ \Crefname@preamble{equation}{Equation}{Equations}%
+ \crefname@preamble{chapter}{chapter}{chapters}%
+ \Crefname@preamble{chapter}{Chapter}{Chapters}%
+ \crefname@preamble{section}{section}{sections}%
+ \Crefname@preamble{section}{Section}{Sections}%
+ \crefname@preamble{appendix}{appendix}{appendices}%
+ \Crefname@preamble{appendix}{Appendix}{Appendices}%
+ \crefname@preamble{figure}{fig.}{figs.}%
+ \Crefname@preamble{figure}{Figure}{Figures}%
+ \crefname@preamble{table}{table}{tables}%
+ \Crefname@preamble{table}{Table}{Tables}%
+ \crefname@preamble{theorem}{theorem}{theorems}%
+ \Crefname@preamble{theorem}{Theorem}{Theorems}%
+ \crefname@preamble{enumi}{item}{items}%
+ \Crefname@preamble{enumi}{Item}{Items}%
+ \crefname@preamble{lemma}{lemma}{lemmas}%
+ \Crefname@preamble{lemma}{Lemma}{Lemmas}%
+ \crefname@preamble{corollary}{corollary}{corollaries}%
+ \Crefname@preamble{corollary}{Corollary}{Corollaries}%
+ \crefname@preamble{proposition}{proposition}{propositions}%
+ \Crefname@preamble{proposition}{Proposition}{Propositions}%
+ \crefname@preamble{definition}{definition}{definitions}%
+ \Crefname@preamble{definition}{Definition}{Definitions}%
+ \crefname@preamble{result}{result}{results}%
+ \Crefname@preamble{result}{Result}{Results}%
+ \crefname@preamble{example}{example}{examples}%
+ \Crefname@preamble{example}{Example}{Examples}%
+ \crefname@preamble{remark}{remark}{remarks}%
+ \Crefname@preamble{remark}{Remark}{Remarks}%
+ \crefname@preamble{note}{note}{notes}%
+ \Crefname@preamble{note}{Note}{Notes}%
\def\cref@language{english}%
% \end{macrocode}
%
@@ -4817,61 +4873,69 @@
% appropriately.
% \begin{macrocode}
\cref@addto\extrasenglish{%
- \renewcommand{\crefrangeconjunction}{ to~}
- \renewcommand{\crefpairconjunction}{ and~}
- \renewcommand{\crefmiddleconjunction}{, }
- \renewcommand{\creflastconjunction}{ and~}
- \renewcommand{\crefpairgroupconjunction}{ and~}
- \renewcommand{\crefmiddlegroupconjunction}{, }
- \renewcommand{\creflastgroupconjunction}{, and~}
- \crefname{equation}{eq.}{eqs.}
- \Crefname{equation}{Equation}{Equations}
- \crefname{chapter}{chapter}{chapters}
- \Crefname{chapter}{Chapter}{Chapters}
- \crefname{section}{section}{sections}
- \Crefname{section}{Section}{Sections}
- \crefname{subsection}{section}{sections}
- \Crefname{subsection}{Section}{Sections}
- \crefname{subsubsection}{section}{sections}
- \Crefname{subsubsection}{Section}{Sections}
- \crefname{appendix}{appendix}{appendices}
- \Crefname{appendix}{Appendix}{Appendices}
- \crefname{subappendix}{appendix}{appendices}
- \Crefname{subappendix}{Appendix}{Appendices}
- \crefname{subsubappendix}{appendix}{appendices}
- \Crefname{subsubappendix}{Appendix}{Appendices}
- \crefname{subsubsubappendix}{appendix}{appendices}
- \Crefname{subsubsubappendix}{Appendix}{Appendices}
- \crefname{figure}{fig.}{figs.}
- \Crefname{figure}{Figure}{Figures}
- \crefname{subfigure}{fig.}{figs.}
- \Crefname{subfigure}{Figure}{Figures}
- \crefname{table}{table}{tables}
- \Crefname{table}{Table}{Tables}
- \crefname{subtable}{table}{tables}
- \Crefname{subtable}{Table}{Tables}
- \crefname{theorem}{theorem}{theorems}
- \Crefname{theorem}{Theorem}{Theorems}
- \crefname{enumi}{item}{items}
- \Crefname{enumi}{Item}{Items}
- \crefname{enumii}{item}{items}
- \Crefname{enumii}{Item}{Items}
- \crefname{enumiii}{item}{items}
- \Crefname{enumiii}{Item}{Items}
- \crefname{enumiv}{item}{items}
- \Crefname{enumiv}{Item}{Items}
- \crefname{enumv}{item}{items}
- \Crefname{enumv}{Item}{Items}
- \crefname{lemma}{lemma}{lemmas}
- \Crefname{lemma}{Lemma}{Lemmas}
- \crefname{corollary}{corollary}{corollaries}
- \Crefname{corollary}{Corollary}{Corollaries}
- \crefname{proposition}{proposition}{propositions}
- \Crefname{proposition}{Proposition}{Propositions}
- \crefname{definition}{definition}{definitions}
- \Crefname{definition}{Definition}{Definitions}
- \crefname{result}{result}{results}
+ \renewcommand{\crefrangeconjunction}{ to~}%
+ \renewcommand\crefrangepreconjunction{}%
+ \renewcommand\crefrangepostconjunction{}%
+ \renewcommand{\crefpairconjunction}{ and~}%
+ \renewcommand{\crefmiddleconjunction}{, }%
+ \renewcommand{\creflastconjunction}{ and~}%
+ \renewcommand{\crefpairgroupconjunction}{ and~}%
+ \renewcommand{\crefmiddlegroupconjunction}{, }%
+ \renewcommand{\creflastgroupconjunction}{, and~}%
+ \crefname{equation}{eq.}{eqs.}%
+ \Crefname{equation}{Equation}{Equations}%
+ \crefname{chapter}{chapter}{chapters}%
+ \Crefname{chapter}{Chapter}{Chapters}%
+ \crefname{section}{section}{sections}%
+ \Crefname{section}{Section}{Sections}%
+ \crefname{subsection}{section}{sections}%
+ \Crefname{subsection}{Section}{Sections}%
+ \crefname{subsubsection}{section}{sections}%
+ \Crefname{subsubsection}{Section}{Sections}%
+ \crefname{appendix}{appendix}{appendices}%
+ \Crefname{appendix}{Appendix}{Appendices}%
+ \crefname{subappendix}{appendix}{appendices}%
+ \Crefname{subappendix}{Appendix}{Appendices}%
+ \crefname{subsubappendix}{appendix}{appendices}%
+ \Crefname{subsubappendix}{Appendix}{Appendices}%
+ \crefname{subsubsubappendix}{appendix}{appendices}%
+ \Crefname{subsubsubappendix}{Appendix}{Appendices}%
+ \crefname{figure}{fig.}{figs.}%
+ \Crefname{figure}{Figure}{Figures}%
+ \crefname{subfigure}{fig.}{figs.}%
+ \Crefname{subfigure}{Figure}{Figures}%
+ \crefname{table}{table}{tables}%
+ \Crefname{table}{Table}{Tables}%
+ \crefname{subtable}{table}{tables}%
+ \Crefname{subtable}{Table}{Tables}%
+ \crefname{theorem}{theorem}{theorems}%
+ \Crefname{theorem}{Theorem}{Theorems}%
+ \crefname{enumi}{item}{items}%
+ \Crefname{enumi}{Item}{Items}%
+ \crefname{enumii}{item}{items}%
+ \Crefname{enumii}{Item}{Items}%
+ \crefname{enumiii}{item}{items}%
+ \Crefname{enumiii}{Item}{Items}%
+ \crefname{enumiv}{item}{items}%
+ \Crefname{enumiv}{Item}{Items}%
+ \crefname{enumv}{item}{items}%
+ \Crefname{enumv}{Item}{Items}%
+ \crefname{lemma}{lemma}{lemmas}%
+ \Crefname{lemma}{Lemma}{Lemmas}%
+ \crefname{corollary}{corollary}{corollaries}%
+ \Crefname{corollary}{Corollary}{Corollaries}%
+ \crefname{proposition}{proposition}{propositions}%
+ \Crefname{proposition}{Proposition}{Propositions}%
+ \crefname{definition}{definition}{definitions}%
+ \Crefname{definition}{Definition}{Definitions}%
+ \crefname{result}{result}{results}%
\Crefname{result}{Result}{Results}%
+ \crefname{example}{example}{examples}%
+ \Crefname{example}{Example}{Examples}%
+ \crefname{remark}{remark}{remarks}%
+ \Crefname{remark}{Remark}{Remarks}%
+ \crefname{note}{note}{notes}%
+ \Crefname{note}{Note}{Notes}%
}}}
% \end{macrocode}
%
@@ -4888,10 +4952,12 @@
% define the formats created by the document preamble.
% \begin{macrocode}
\AtBeginDocument{%
- \def\crefrangeconjunction@preamble{ bis~}
- \def\crefpairconjunction@preamble{ und~}
- \def\crefmiddleconjunction@preamble{, }
- \def\creflastconjunction@preamble{ und~}
+ \def\crefrangeconjunction@preamble{ bis~}%
+ \def\crefrangepreconjunction@preamble{}%
+ \def\crefrangepostconjunction@preamble{}%
+ \def\crefpairconjunction@preamble{ und~}%
+ \def\crefmiddleconjunction@preamble{, }%
+ \def\creflastconjunction@preamble{ und~}%
% \end{macrocode}
% We don't want the extra comma before ``und'' that would be added by the
% default fall-back definitions in terms of the above conjunctions, so we
@@ -4900,35 +4966,41 @@
% other language option defines them explicitly and we need to override
% them .
% \begin{macrocode}
- \def\crefpairgroupconjunction@preamble{ und~}
- \def\crefmiddlegroupconjunction@preamble{, }
- \def\creflastgroupconjunction@preamble{ und~}
- \crefname@preamble{equation}{Gleichung}{Gleichungen}
- \Crefname@preamble{equation}{Gleichung}{Gleichungen}
- \crefname@preamble{chapter}{Kapitel}{Kapitel}
- \Crefname@preamble{chapter}{Kapitel}{Kapitel}
- \crefname@preamble{section}{Abschnitt}{Abschnitte}
- \Crefname@preamble{section}{Abschnitt}{Abschnitte}
- \crefname@preamble{appendix}{Anhang}{Anh\"ange}
- \Crefname@preamble{appendix}{Anhang}{Anh\"ange}
- \crefname@preamble{figure}{Abbildung}{Abbildungen}
- \Crefname@preamble{figure}{Abbildung}{Abbildungen}
- \crefname@preamble{table}{Tabelle}{Tabellen}
- \Crefname@preamble{table}{Tabelle}{Tabellen}
- \crefname@preamble{theorem}{Theorem}{Theoremen}
- \Crefname@preamble{theorem}{Theorem}{Theoremen}
- \crefname@preamble{enumi}{Punkt}{Punkte}
- \Crefname@preamble{enumi}{Punkt}{Punkte}
- \crefname@preamble{lemma}{Lemma}{Lemmata}
- \Crefname@preamble{lemma}{Lemma}{Lemmata}
- \crefname@preamble{corollary}{Korollar}{Korollaren}
- \Crefname@preamble{corollary}{Korollar}{Korollaren}
- \crefname@preamble{proposition}{Satz}{S\"atze}
- \Crefname@preamble{proposition}{Satz}{S\"atze}
- \crefname@preamble{definition}{Definition}{Definitionen}
- \Crefname@preamble{definition}{Definition}{Definitionen}
- \crefname@preamble{result}{Ergebnis}{Ergebnisse}
+ \def\crefpairgroupconjunction@preamble{ und~}%
+ \def\crefmiddlegroupconjunction@preamble{, }%
+ \def\creflastgroupconjunction@preamble{ und~}%
+ \crefname@preamble{equation}{Gleichung}{Gleichungen}%
+ \Crefname@preamble{equation}{Gleichung}{Gleichungen}%
+ \crefname@preamble{chapter}{Kapitel}{Kapitel}%
+ \Crefname@preamble{chapter}{Kapitel}{Kapitel}%
+ \crefname@preamble{section}{Abschnitt}{Abschnitte}%
+ \Crefname@preamble{section}{Abschnitt}{Abschnitte}%
+ \crefname@preamble{appendix}{Anhang}{Anh\"ange}%
+ \Crefname@preamble{appendix}{Anhang}{Anh\"ange}%
+ \crefname@preamble{figure}{Abbildung}{Abbildungen}%
+ \Crefname@preamble{figure}{Abbildung}{Abbildungen}%
+ \crefname@preamble{table}{Tabelle}{Tabellen}%
+ \Crefname@preamble{table}{Tabelle}{Tabellen}%
+ \crefname@preamble{theorem}{Theorem}{Theoremen}%
+ \Crefname@preamble{theorem}{Theorem}{Theoremen}%
+ \crefname@preamble{enumi}{Punkt}{Punkte}%
+ \Crefname@preamble{enumi}{Punkt}{Punkte}%
+ \crefname@preamble{lemma}{Lemma}{Lemmata}%
+ \Crefname@preamble{lemma}{Lemma}{Lemmata}%
+ \crefname@preamble{corollary}{Korollar}{Korollaren}%
+ \Crefname@preamble{corollary}{Korollar}{Korollaren}%
+ \crefname@preamble{proposition}{Satz}{S\"atze}%
+ \Crefname@preamble{proposition}{Satz}{S\"atze}%
+ \crefname@preamble{definition}{Definition}{Definitionen}%
+ \Crefname@preamble{definition}{Definition}{Definitionen}%
+ \crefname@preamble{result}{Ergebnis}{Ergebnisse}%
\Crefname@preamble{result}{Ergebnis}{Ergebnisse}%
+ \Crefname@preamble{example}{Beispiel}{Beispiele}%
+ \Crefname@preamble{example}{Beispiel}{Beispiele}%
+ \crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
+ \Crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
+ \crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \Crefname@preamble{note}{Anmerkung}{Anmerkungen}%
\def\cref@language{german}%
% \end{macrocode}
%
@@ -4938,6 +5010,8 @@
% \begin{macrocode}
\cref@addto\extrasgerman{%
\renewcommand{\crefrangeconjunction}{ bis~}%
+ \renewcommand\crefrangepreconjunction{}%
+ \renewcommand\crefrangepostconjunction{}%
\renewcommand{\crefpairconjunction}{ und~}%
\renewcommand{\crefmiddleconjunction}{, }%
\renewcommand{\creflastconjunction}{ und~}%
@@ -4956,12 +5030,12 @@
\Crefname{subsubsection}{Abschnitt}{Abschnitte}%
\crefname{appendix}{Anhang}{Anh\"ange}%
\Crefname{appendix}{Anhang}{Anh\"ange}%
- \crefname{subappendix}{Anhang}{Anh\"ange}
- \Crefname{subappendix}{Anhang}{Anh\"ange}
- \crefname{subsubappendix}{Anhang}{Anh\"ange}
- \Crefname{subsubappendix}{Anhang}{Anh\"ange}
- \crefname{subsubsubappendix}{Anhang}{Anh\"ange}
- \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}
+ \crefname{subappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subappendix}{Anhang}{Anh\"ange}%
+ \crefname{subsubappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subsubappendix}{Anhang}{Anh\"ange}%
+ \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
\crefname{figure}{Abbildung}{Abbildungen}%
\Crefname{figure}{Abbildung}{Abbildungen}%
\crefname{subfigure}{Abbildung}{Abbildungen}%
@@ -4992,6 +5066,12 @@
\Crefname{definition}{Definition}{Definitionen}%
\crefname{result}{Ergebnis}{Ergebnisse}%
\Crefname{result}{Ergebnis}{Ergebnisse}%
+ \crefname{example}{Beispiel}{Beispiele}%
+ \Crefname{example}{Beispiel}{Beispiele}%
+ \crefname{remark}{Bemerkung}{Bemerkungen}%
+ \Crefname{remark}{Bemerkung}{Bemerkungen}%
+ \crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{note}{Anmerkung}{Anmerkungen}%
}}}
% \end{macrocode}
%
@@ -5011,6 +5091,8 @@
\AtBeginDocument{%
\cref@addto\extrasngerman{%
\renewcommand{\crefrangeconjunction}{ bis~}%
+ \renewcommand\crefrangepreconjunction{}%
+ \renewcommand\crefrangepostconjunction{}%
\renewcommand{\crefpairconjunction}{ und~}%
\renewcommand{\crefmiddleconjunction}{, }%
\renewcommand{\creflastconjunction}{ und~}%
@@ -5029,12 +5111,12 @@
\Crefname{subsubsection}{Abschnitt}{Abschnitte}%
\crefname{appendix}{Anhang}{Anh\"ange}%
\Crefname{appendix}{Anhang}{Anh\"ange}%
- \crefname{subappendix}{Anhang}{Anh\"ange}
- \Crefname{subappendix}{Anhang}{Anh\"ange}
- \crefname{subsubappendix}{Anhang}{Anh\"ange}
- \Crefname{subsubappendix}{Anhang}{Anh\"ange}
- \crefname{subsubsubappendix}{Anhang}{Anh\"ange}
- \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}
+ \crefname{subappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subappendix}{Anhang}{Anh\"ange}%
+ \crefname{subsubappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subsubappendix}{Anhang}{Anh\"ange}%
+ \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
+ \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
\crefname{figure}{Abbildung}{Abbildungen}%
\Crefname{figure}{Abbildung}{Abbildungen}%
\crefname{subfigure}{Abbildung}{Abbildungen}%
@@ -5065,6 +5147,12 @@
\Crefname{definition}{Definition}{Definitionen}%
\crefname{result}{Ergebnis}{Ergebnisse}%
\Crefname{result}{Ergebnis}{Ergebnisse}%
+ \crefname{example}{Beispiel}{Beispiele}%
+ \Crefname{example}{Beispiel}{Beispiele}%
+ \crefname{remark}{Bemerkung}{Bemerkungen}%
+ \Crefname{remark}{Bemerkung}{Bemerkungen}%
+ \crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{note}{Anmerkung}{Anmerkungen}%
}}}
% \end{macrocode}
%
@@ -5081,44 +5169,52 @@
% define the formats created by the document preamble.
% \begin{macrocode}
\AtBeginDocument{%
- \def\crefrangeconjunction@preamble{ \`a~}
- \def\crefpairconjunction@preamble{ et~}
- \def\crefmiddleconjunction@preamble{, }
- \def\creflastconjunction@preamble{ et~}
+ \def\crefrangeconjunction@preamble{ \`a~}%
+ \def\crefrangepreconjunction@preamble{}%
+ \def\crefrangepostconjunction@preamble{}%
+ \def\crefpairconjunction@preamble{ et~}%
+ \def\crefmiddleconjunction@preamble{, }%
+ \def\creflastconjunction@preamble{ et~}%
% \end{macrocode}
% Erring on the side of caution, I've left off the extra comma before
% ``et'' between groups, pending more knowledgeable input on punctuation
% rules from a native Franch speaker.
% \begin{macrocode}
- \def\crefpairgroupconjunction@preamble{ et~}
- \def\crefmiddlegroupconjunction@preamble{, }
- \def\creflastgroupconjunction@preamble{, et~}
- \crefname@preamble{equation}{{\'e}quation}{{\'e}quations}
- \Crefname@preamble{equation}{{\'E}quation}{{\'E}quations}
- \crefname@preamble{chapter}{chapitre}{chapitres}
- \Crefname@preamble{chapter}{Chapitre}{Chapitres}
- \crefname@preamble{section}{section}{sections}
- \Crefname@preamble{section}{Section}{Sections}
- \crefname@preamble{appendix}{appendice}{appendices}
- \Crefname@preamble{appendix}{Appendice}{Appendices}
- \crefname@preamble{figure}{figure}{figures}
- \Crefname@preamble{figure}{Figure}{Figures}
- \crefname@preamble{table}{tableau}{tableaux}
- \Crefname@preamble{table}{Tableau}{Tableaux}
- \crefname@preamble{theorem}{th\'eor\`eme}{th\'eor\`emes}
- \Crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}
- \crefname@preamble{enumi}{point}{points}
- \Crefname@preamble{enumi}{Point}{Points}
- \crefname@preamble{lemma}{lemme}{lemmes}
- \Crefname@preamble{lemma}{Lemme}{Lemmes}
- \crefname@preamble{corollary}{corollaire}{corollaires}
- \Crefname@preamble{corollary}{Corollaire}{Corollaires}
- \crefname@preamble{proposition}{proposition}{propositions}
- \Crefname@preamble{proposition}{Proposition}{Propositions}
- \crefname@preamble{definition}{d\'efinition}{d\'efinitions}
- \Crefname@preamble{definition}{D\'efinition}{D\'efinitions}
- \crefname@preamble{result}{r\'esultat}{r\'esultats}
- \Crefname@preamble{result}{R\'esultat}{R\'esultats}
+ \def\crefpairgroupconjunction@preamble{ et~}%
+ \def\crefmiddlegroupconjunction@preamble{, }%
+ \def\creflastgroupconjunction@preamble{, et~}%
+ \crefname@preamble{equation}{{\'e}quation}{{\'e}quations}%
+ \Crefname@preamble{equation}{{\'E}quation}{{\'E}quations}%
+ \crefname@preamble{chapter}{chapitre}{chapitres}%
+ \Crefname@preamble{chapter}{Chapitre}{Chapitres}%
+ \crefname@preamble{section}{section}{sections}%
+ \Crefname@preamble{section}{Section}{Sections}%
+ \crefname@preamble{appendix}{appendice}{appendices}%
+ \Crefname@preamble{appendix}{Appendice}{Appendices}%
+ \crefname@preamble{figure}{figure}{figures}%
+ \Crefname@preamble{figure}{Figure}{Figures}%
+ \crefname@preamble{table}{tableau}{tableaux}%
+ \Crefname@preamble{table}{Tableau}{Tableaux}%
+ \crefname@preamble{theorem}{th\'eor\`eme}{th\'eor\`emes}%
+ \Crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}%
+ \crefname@preamble{enumi}{point}{points}%
+ \Crefname@preamble{enumi}{Point}{Points}%
+ \crefname@preamble{lemma}{lemme}{lemmes}%
+ \Crefname@preamble{lemma}{Lemme}{Lemmes}%
+ \crefname@preamble{corollary}{corollaire}{corollaires}%
+ \Crefname@preamble{corollary}{Corollaire}{Corollaires}%
+ \crefname@preamble{proposition}{proposition}{propositions}%
+ \Crefname@preamble{proposition}{Proposition}{Propositions}%
+ \crefname@preamble{definition}{d\'efinition}{d\'efinitions}%
+ \Crefname@preamble{definition}{D\'efinition}{D\'efinitions}%
+ \crefname@preamble{result}{r\'esultat}{r\'esultats}%
+ \Crefname@preamble{result}{R\'esultat}{R\'esultats}%
+ \crefname@preamble{example}{exemple}{exemples}%
+ \Crefname@preamble{example}{Exemple}{Exemples}%
+ \crefname@preamble{remark}{remarque}{remarques}%
+ \Crefname@preamble{remark}{Remarque}{Remarques}%
+ \crefname@preamble{note}{commentaire}{commentaires}%
+ \Crefname@preamble{note}{Commentaire}{Commentaires}%
\def\cref@language{french}%
% \end{macrocode}
%
@@ -5128,6 +5224,8 @@
% \begin{macrocode}
\cref@addto\extrasfrench{%
\renewcommand{\crefrangeconjunction}{ \`a~}%
+ \renewcommand\crefrangepreconjunction{}%
+ \renewcommand\crefrangepostconjunction{}%
\renewcommand{\crefpairconjunction}{ et~}%
\renewcommand{\crefmiddleconjunction}{, }%
\renewcommand{\creflastconjunction}{ et~}%
@@ -5146,12 +5244,12 @@
\Crefname{subsubsection}{Section}{Sections}%
\crefname{appendix}{appendice}{appendices}%
\Crefname{appendix}{Appendice}{Appendices}%
- \crefname{subappendix}{appendice}{appendices}
- \Crefname{subappendix}{Appendice}{Appendices}
- \crefname{subsubappendix}{appendice}{appendices}
- \Crefname{subsubappendix}{Appendice}{Appendices}
- \crefname{subsubsubappendix}{appendice}{appendices}
- \Crefname{subsubsubappendix}{Appendice}{Appendices}
+ \crefname{subappendix}{appendice}{appendices}%
+ \Crefname{subappendix}{Appendice}{Appendices}%
+ \crefname{subsubappendix}{appendice}{appendices}%
+ \Crefname{subsubappendix}{Appendice}{Appendices}%
+ \crefname{subsubsubappendix}{appendice}{appendices}%
+ \Crefname{subsubsubappendix}{Appendice}{Appendices}%
\crefname{figure}{figure}{figures}%
\Crefname{figure}{Figure}{Figures}%
\crefname{subfigure}{figure}{figures}%
@@ -5182,6 +5280,276 @@
\Crefname{definition}{D\'efinition}{D\'efinitions}%
\crefname{result}{r\'esultat}{r\'esultats}%
\Crefname{result}{R\'esultat}{R\'esultats}%
+ \crefname{example}{exemple}{exemples}%
+ \Crefname{example}{Exemple}{Exemples}%
+ \crefname{remark}{remarque}{remarques}%
+ \Crefname{remark}{Remarque}{Remarques}%
+ \crefname{note}{commentaire}{commentaires}%
+ \Crefname{note}{Commentaire}{Commentaires}%
+ }}}
+% \end{macrocode}
+%
+%
+% \begin{macro}{spanish}
+% Spanish translations generously contributed by Gonzalo Medina.
+% \end{macro}
+% \begin{macrocode}
+\DeclareOption{spanish}{%
+ \PackageInfo{cleveref}{loaded `spanish' language definitions}
+% \end{macrocode}
+% First, we set up the definitions used at the beginning of the document to
+% define the formats created by the document preamble.
+% \begin{macrocode}
+ \AtBeginDocument{%
+ \def\crefrangeconjunction@preamble{ a~}%
+ \def\crefrangepreconjunction@preamble{}%
+ \def\crefrangepostconjunction@preamble{}%
+ \def\crefpairconjunction@preamble{ y~}%
+ \def\crefmiddleconjunction@preamble{, }%
+ \def\creflastconjunction@preamble{ y~}%
+% \end{macrocode}
+% \begin{macrocode}
+ \def\crefpairgroupconjunction@preamble{ y~}%
+ \def\crefmiddlegroupconjunction@preamble{, }%
+ \def\creflastgroupconjunction@preamble{ y~}%
+ \crefname@preamble{equation}{ecuaci\'on}{ecuaciones}%
+ \Crefname@preamble{equation}{Ecuaci\'on}{Ecuaciones}%
+ \crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}%
+ \Crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}%
+ \crefname@preamble{section}{secci\'on}{secciones}%
+ \Crefname@preamble{section}{Secci\'on}{Secciones}%
+ \crefname@preamble{appendix}{ap\'endice}{ap\'endices}%
+ \Crefname@preamble{appendix}{Ap\'endice}{Ap\'endices}%
+ \crefname@preamble{figure}{figura}{figuras}%
+ \Crefname@preamble{figure}{Figura}{Figuras}%
+ \crefname@preamble{table}{cuadro}{cuadros}%
+ \Crefname@preamble{table}{Cuadro}{Cuadros}%
+ \crefname@preamble{theorem}{teorema}{teoremas}%
+ \Crefname@preamble{theorem}{Teorema}{Teoremas}%
+ \crefname@preamble{enumi}{punto}{puntos}%
+ \Crefname@preamble{enumi}{Punto}{Puntos}%
+ \crefname@preamble{lemma}{lema}{lemas}%
+ \Crefname@preamble{lemma}{Lema}{Lemas}%
+ \crefname@preamble{corollary}{corolario}{corolarios}%
+ \Crefname@preamble{corollary}{Corolario}{Corolarios}%
+ \crefname@preamble{proposition}{proposici\'on}{proposiciones}%
+ \Crefname@preamble{proposition}{Proposici\'on}{Proposiciones}%
+ \crefname@preamble{definition}{definici\'on}{definiciones}%
+ \Crefname@preamble{definition}{Definici\'on}{Definiciones}%
+ \crefname@preamble{result}{resultado}{resultados}%
+ \Crefname@preamble{result}{Resultado}{Resultados}%
+ \crefname@preamble{example}{ejemplo}{ejemplos}%
+ \Crefname@preamble{example}{Ejemplo}{Ejemplos}%
+ \crefname@preamble{remark}{observaci\'on}{observaciones}%
+ \Crefname@preamble{remark}{Observaci\'on}{Observaciones}%
+ \crefname@preamble{note}{nota}{notas}%
+ \Crefname@preamble{note}{Nota}{Notas}%
+ \def\cref@language{spanish}%
+% \end{macrocode}
+%
+% Next, we add the definitions to \cmd{\extras}\dots so that
+% \package{babel}'s \cmd{\selectlanguage} command will change the format
+% appropriately.
+% \begin{macrocode}
+ \cref@addto\extrasspanish{%
+ \renewcommand{\crefrangeconjunction}{ a~}%
+ \renewcommand{\crefrangepreconjunction}{}%
+ \renewcommand{\crefrangepostconjunction}{}%
+ \renewcommand{\crefpairconjunction}{ y~}%
+ \renewcommand{\crefmiddleconjunction}{, }%
+ \renewcommand{\creflastconjunction}{ y~}%
+ \renewcommand{\crefpairgroupconjunction}{ y~}%
+ \renewcommand{\crefmiddlegroupconjunction}{, }%
+ \renewcommand{\creflastgroupconjunction}{ y~}%
+ \crefname{equation}{ecuaci\'on}{ecuaciones}%
+ \Crefname{equation}{Ecuaci\'on}{Ecuaciones}%
+ \crefname{chapter}{cap\'itulo}{cap\'itulos}%
+ \Crefname{chapter}{Cap\'itulo}{Cap\'itulos}%
+ \crefname{section}{secci\'on}{secciones}%
+ \Crefname{section}{Secci\'on}{Secciones}%
+ \crefname{subsection}{secci\'on}{secciones}%
+ \Crefname{subsection}{Secci\'on}{Secciones}%
+ \crefname{subsubsection}{secci\'on}{secciones}%
+ \Crefname{subsubsection}{Secci\'on}{Secciones}%
+ \crefname{appendix}{ap\'endice}{ap\'endices}%
+ \Crefname{appendix}{Ap\'endice}{Ap\'endices}%
+ \crefname{subappendix}{ap\'endice}{ap\'endices}%
+ \Crefname{subappendix}{Ap\'endice}{Ap\'endices}%
+ \crefname{subsubappendix}{ap\'endice}{ap\'endices}%
+ \Crefname{subsubappendix}{Ap\'endice}{Ap\'endices}%
+ \crefname{subsubsubappendix}{ap\'endice}{ap\'endices}%
+ \Crefname{subsubsubappendix}{Ap\'endice}{Ap\'endices}%
+ \crefname{figure}{figura}{figuras}%
+ \Crefname{figure}{Figura}{Figuras}%
+ \crefname{subfigure}{figura}{figuras}%
+ \Crefname{subfigure}{Figura}{Figuras}%
+ \crefname{table}{cuadro}{cuadros}%
+ \Crefname{table}{Cuadro}{Cuadros}%
+ \crefname{subtable}{cuadro}{cuadros}%
+ \Crefname{subtable}{Cuadro}{Cuadros}%
+ \crefname{theorem}{teorema}{teoremas}%
+ \Crefname{theorem}{Teorema}{Teoremas}%
+ \crefname{enumi}{punto}{puntos}%
+ \Crefname{enumi}{Punto}{Puntos}%
+ \crefname{enumii}{punto}{puntos}%
+ \Crefname{enumii}{Punto}{Puntos}%
+ \crefname{enumiii}{punto}{puntos}%
+ \Crefname{enumiii}{Punto}{Puntos}%
+ \crefname{enumiv}{punto}{puntos}%
+ \Crefname{enumiv}{Punto}{Puntos}%
+ \crefname{enumv}{punto}{puntos}%
+ \Crefname{enumv}{Punto}{Puntos}%
+ \crefname{lemma}{lema}{lemas}%
+ \Crefname{lemma}{Lema}{Lemas}%
+ \crefname{corollary}{corolario}{corolarios}%
+ \Crefname{corollary}{Corolario}{Corolarios}%
+ \crefname{proposition}{proposici\'on}{proposiciones}%
+ \Crefname{proposition}{Proposici\'on}{Proposiciones}%
+ \crefname{definition}{definici\'on}{definiciones}%
+ \Crefname{definition}{Definici\'on}{Definiciones}%
+ \crefname{result}{resultado}{resultados}%
+ \Crefname{result}{Resultado}{Resultados}%
+ \crefname{example}{ejemplo}{ejemplos}%
+ \Crefname{example}{Ejemplo}{Ejemplos}%
+ \crefname{remark}{observaci\'on}{observaci\'ones}%
+ \Crefname{remark}{Observaci\'on}{Observaci\'on}%
+ \crefname{note}{nota}{notas}%
+ \Crefname{note}{Nota}{Notas}%
+ }}}
+% \end{macrocode}
+%
+%
+%
+% \begin{macro}{italian}
+% Italian translations kindly contributed by Massimo Redaelli.
+% \end{macro}
+% \begin{macrocode}
+\DeclareOption{italian}{%
+ \PackageInfo{cleveref}{loaded `italian' language definitions}
+% \end{macrocode}
+% First, we set up the definitions used at the beginning of the document to
+% define the formats created by the document preamble. (Note that Italian
+% makes use of |\crefrangepreconjunction|.)
+% \begin{macrocode}
+ \AtBeginDocument{%
+ \def\crefrangeconjunction@preamble{ a~}%
+ \def\crefrangepreconjunction@preamble{da~}%
+ \def\crefrangepostconjunction@preamble{}%
+ \def\crefpairconjunction@preamble{ e~}%
+ \def\crefmiddleconjunction@preamble{, }%
+ \def\creflastconjunction@preamble{ e~}%
+% \end{macrocode}
+% We have to define the group conjunctions explicitly here, rather than
+% relying on fall-back definitions in terms of the above conjunctions
+% (see \cref{sec:code:default_formats}), in case any other language
+% option defines them explicitly and we need to override those.
+% \begin{macrocode}
+ \def\crefpairgroupconjunction@preamble{ e~}%
+ \def\crefmiddlegroupconjunction@preamble{, }%
+ \def\creflastgroupconjunction@preamble{ e~}%
+ \crefname@preamble{equation}{eq.}{eq.}%
+ \Crefname@preamble{equation}{Equazione}{Equazioni}%
+ \crefname@preamble{chapter}{capitolo}{capitoli}%
+ \Crefname@preamble{chapter}{Capitolo}{Capitoli}%
+ \crefname@preamble{section}{sezione}{sezioni}%
+ \Crefname@preamble{section}{Sezione}{Sezioni}%
+ \crefname@preamble{appendix}{appendice}{appendici}%
+ \Crefname@preamble{appendix}{Appendice}{Appendici}%
+ \crefname@preamble{figure}{fig.}{fig.}%
+ \Crefname@preamble{figure}{Figura}{Figure}%
+ \crefname@preamble{table}{tabella}{tabelle}%
+ \Crefname@preamble{table}{Tabella}{Tabelle}%
+ \crefname@preamble{theorem}{teorema}{teoremi}%
+ \Crefname@preamble{theorem}{Teorema}{Teoremi}%
+ \crefname@preamble{enumi}{voce}{voci}%
+ \Crefname@preamble{enumi}{Voce}{Voci}%
+ \crefname@preamble{lemma}{lemma}{lemmi}%
+ \Crefname@preamble{lemma}{Lemma}{Lemmi}%
+ \crefname@preamble{corollary}{corollario}{corollari}%
+ \Crefname@preamble{corollary}{Corollario}{Corollari}%
+ \crefname@preamble{proposition}{proposizione}{proposizioni}%
+ \Crefname@preamble{proposition}{Proposizione}{Proposizioni}%
+ \crefname@preamble{definition}{definizione}{definizioni}%
+ \Crefname@preamble{definition}{Definizioni}{Definizioni}%
+ \crefname@preamble{result}{risultato}{risultati}%
+ \Crefname@preamble{result}{Risultato}{Risultati}%
+ \crefname@preamble{example}{esempio}{esempi}%
+ \Crefname@preamble{example}{esempio}{esempi}%
+ \crefname@preamble{remark}{osservazione}{osservazioni}%
+ \Crefname@preamble{remark}{Osservazione}{Osservazioni}%
+ \crefname@preamble{note}{nota}{note}%
+ \Crefname@preamble{note}{Nota}{Note}%
+ \def\cref@language{italiano}%
+% \end{macrocode}
+%
+% Next, we add the definitions to \cmd{\extras}\dots so that
+% \package{babel}'s \cmd{\selectlanguage} command will change the format
+% appropriately.
+% \begin{macrocode}
+ \cref@addto\extrasenglish{%
+ \renewcommand{\crefrangeconjunction}{ a~}%
+ \renewcommand\crefrangepreconjunction{da~}%
+ \renewcommand\crefrangepostconjunction{}%
+ \renewcommand{\crefpairconjunction}{ e~}%
+ \renewcommand{\crefmiddleconjunction}{, }%
+ \renewcommand{\creflastconjunction}{ e~}%
+ \renewcommand{\crefpairgroupconjunction}{ e~}%
+ \renewcommand{\crefmiddlegroupconjunction}{, }%
+ \renewcommand{\creflastgroupconjunction}{ e~}%
+ \crefname{equation}{eq.}{eq.}%
+ \Crefname{equation}{Equazione}{Equazioni}%
+ \crefname{chapter}{capitolo}{capitoli}%
+ \Crefname{chapter}{Capitolo}{Capitoli}%
+ \crefname{section}{sezione}{sezioni}%
+ \Crefname{section}{Sezione}{Sezioni}%
+ \crefname{subsection}{sezione}{sezioni}%
+ \Crefname{subsection}{Sezione}{Sezioni}%
+ \crefname{subsubsection}{sezione}{sezioni}%
+ \Crefname{subsubsection}{Sezione}{Sezioni}%
+ \crefname{appendix}{appendice}{appendici}%
+ \Crefname{appendix}{Appendice}{Appendici}%
+ \crefname{subappendix}{appendice}{appendici}%
+ \Crefname{subappendix}{Appendice}{Appendici}%
+ \crefname{subsubappendix}{appendice}{appendici}%
+ \Crefname{subsubappendix}{Appendice}{Appendici}%
+ \crefname{subsubsubappendix}{appendice}{appendici}%
+ \Crefname{subsubsubappendix}{Appendice}{Appendici}%
+ \crefname{figure}{fig.}{fig.}%
+ \Crefname{figure}{Figura}{Figure}%
+ \crefname{subfigure}{fig.}{fig.}%
+ \Crefname{subfigure}{Figura}{Figure}%
+ \crefname{table}{tabella}{tabelle}%
+ \Crefname{table}{Tabella}{Tabelle}%
+ \crefname{subtable}{tabella}{tabelle}%
+ \Crefname{subtable}{Tabella}{Tabelle}%
+ \crefname{theorem}{teorema}{teoremi}%
+ \Crefname{theorem}{Teorema}{Teoremi}%
+ \crefname{enumi}{voce}{voci}%
+ \Crefname{enumi}{Voce}{Voci}%
+ \crefname{enumii}{voce}{voci}%
+ \Crefname{enumii}{Voce}{Voci}%
+ \crefname{enumiii}{voce}{voci}%
+ \Crefname{enumiii}{Voce}{Voci}%
+ \crefname{enumiv}{voce}{voci}%
+ \Crefname{enumiv}{Voce}{Voci}%
+ \crefname{enumv}{voce}{voci}%
+ \Crefname{enumv}{Voce}{Voci}%
+ \crefname{lemma}{lemma}{lemmi}%
+ \Crefname{lemma}{Lemma}{Lemmi}%
+ \crefname{corollary}{corollario}{corollari}%
+ \Crefname{corollary}{Corollario}{Corollari}%
+ \crefname{proposition}{proposizione}{proposizioni}%
+ \Crefname{proposition}{Proposizione}{Proposizioni}%
+ \crefname{definition}{definizione}{definizione}%
+ \Crefname{definition}{Definizione}{Definizione}%
+ \crefname{result}{risultato}{risultati}%
+ \Crefname{result}{Risultato}{Risultati}%
+ \crefname{example}{esempio}{esempi}%
+ \Crefname{example}{esempio}{esempi}%
+ \crefname{remark}{osservazione}{osservazioni}%
+ \Crefname{remark}{Osservazione}{Osservazioni}%
+ \crefname{note}{nota}{note}%
+ \Crefname{note}{Nota}{Note}%
}}}
% \end{macrocode}
%
@@ -5216,6 +5584,26 @@
\expandafter\expandafter\expandafter\cref@addto%
\expandafter\@tmpa\expandafter{\@tmpb}%
}%
+ \@ifundefined{crefrangepreconjunction}{%
+ \let\crefrangepreconjunction\crefrangepreconjunction@preamble%
+ }{%
+ \expandafter\def\expandafter\@tmpb\expandafter{%
+ \expandafter\renewcommand\expandafter%
+ {\expandafter\crefrangepreconjunction\expandafter}%
+ \expandafter{\crefrangepreconjunction}}%
+ \expandafter\expandafter\expandafter\cref@addto%
+ \expandafter\@tmpa\expandafter{\@tmpb}%
+ }%
+ \@ifundefined{crefrangepostconjunction}{%
+ \let\crefrangepostconjunction\crefrangepostconjunction@preamble%
+ }{%
+ \expandafter\def\expandafter\@tmpb\expandafter{%
+ \expandafter\renewcommand\expandafter%
+ {\expandafter\crefrangepostconjunction\expandafter}%
+ \expandafter{\crefrangepostconjunction}}%
+ \expandafter\expandafter\expandafter\cref@addto%
+ \expandafter\@tmpa\expandafter{\@tmpb}%
+ }%
\@ifundefined{crefpairconjunction}{%
\let\crefpairconjunction\crefpairconjunction@preamble%
}{%