diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex')
-rw-r--r-- | macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex | 122 |
1 files changed, 105 insertions, 17 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex b/macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex index 92fa8bd246..18a49018e4 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex +++ b/macros/latex/contrib/biblatex-contrib/biblatex-iso690/biblatex-iso690.tex @@ -32,8 +32,9 @@ % but the main document language is English pagetotal=true, ]{biblatex} +\usepackage{expl3} -\addbibresource{mybib.bib} +\addbibresource{biblatex-iso690-examples.bib} % Support diacritics in Czech examples % ref.: https://stackoverflow.com/a/16084246 @@ -77,8 +78,8 @@ url={https://github.com/michal-h21/biblatex-iso690}, author={Michal Hoftich}, email={michal.h21@gmail.com}, - revision={0.4.0}, - date={\DTMDate{2020-03-25}}} + revision={0.4.1}, + date={\DTMDate{2022-03-20}}} \hypersetup{% pdftitle={ISO~690 \biblatex style}, @@ -144,13 +145,11 @@ so feel free to use the possibilities provided there for reporting issues and th A minimal working example for \t|babel| package: \begin{ltxexample} \documentclass{article} -\usepackage[utf8]{inputenc} \usepackage[english,czech]{babel} -% \usepackage[main=czech,english]{babel} \usepackage{csquotes} \usepackage[style=iso-authoryear]{biblatex} -\addbibresource{mybib.bib} +\addbibresource{biblatex-iso690-examples.bib} \begin{document} \cite{knuth1990virtual} @@ -162,14 +161,13 @@ A minimal working example for \t|babel| package: A minimal working example for \t|polyglossia| package: \begin{ltxexample} \documentclass{article} -\usepackage[utf8]{inputenc} \usepackage{polyglossia} \setmainlanguage{czech} \setotherlanguage{english} \usepackage{csquotes} \usepackage[style=iso-authoryear]{biblatex} -\addbibresource{mybib.bib} +\addbibresource{biblatex-iso690-examples.bib} \begin{document} \cite{knuth1990virtual} @@ -185,6 +183,15 @@ per-entry basis in a resource (\t|.bib|) file. In addition, all of the languages specified in these fields have to be loaded by the \t|babel| or \t|polyglossia| package respectively. +The affected fields that should be printed as they appear in the +original source (in the language of resource, using the \t|langid| +field) are, e.g. numeration information (volume, number, edition, +etc.), while availability and access information (\textit{available +from}), medium designation (\t|howpubished| field), pages range, or +the relations of subsidiary creators (\textit{translated by}, +\textit{revised by}, etc.) are examples of using the main document +language. + Note that for correct support of localization functionality, the \t|babel| or \t|polyglossia| package should be used. The main document language is: @@ -198,6 +205,50 @@ is: \cmd{setotherlanguage}) (see MWE above) \end{description} +\subsubsection{Switching multiple languages} +\label{sec:general:currentlang} + +Sometimes the main document language is selected in the document +class, and the user can only switch the active language, not the main +language. This is usually a case of journals/collections of articles +that can be prepared (in their entirety) in one main language, but +where individual articles might also be written in a different +language (e.g., this is the case with \t|csbulletin| class). Then you +can use \t|currentlang| option (see also~\ref{sec:pkg:opt:iso690}), +which allows switching to the active surrounding language, and print +\biblatex localization strings accordingly to this currently selected +language, not the main language. + +The following MWE illustrates switching the active languages (English +and German over the main Czech language) on two bibliography entries, +one with the Czech \t|langid| field and the other without specified +language. + +\begin{ltxexample} + \documentclass{article} + \usepackage[T1]{fontenc} + \usepackage[main=czech,english,ngerman]{babel} + \usepackage{csquotes} + + \usepackage[style=iso-numeric,currentlang]{biblatex} + \addbibresource{biblatex-iso690-examples.bib} + + \begin{document} + + \nocite{tex:zpravodajchlebikova91} + \nocite{tex:zpravodajchlebikova91cz} + \printbibliography + + \selectlanguage{english} + \printbibliography + + \selectlanguage{ngerman} + \printbibliography + + \end{document} +\end{ltxexample} + + \subsection{Citation systems} \label{sec:citation:systems} @@ -380,6 +431,19 @@ Enable or disable printing publication information (\t|location| and \t|false| since it is very unusual behavior and rarely used by either other citation styles or citation managers. +\boolitem[false]{currentlang} + +By default, the main document language is used for printing of bibliography +strings. Some classes load the \t|babel| package and user cannot select the main +document language easily. With this option, the currently selected language +will be used instead (see also~\ref{sec:general:currentlang}). + +\boolitem[false]{noenddot} + +Enable or disable printing an end dot at the very end of bibliography +entries. The default value is \t|false|, meaning a dot is printed at +the end. + \end{optionlist} @@ -566,12 +630,12 @@ supervisor and school (institution) can be entered into the fields \paragraph{Patent}\hfill\\ \label{sec:patent} +The dominant role as an author has the holder of a patent (\t|holder| +field). The subsidiary author is an inventor (if known) of the patent +(\t|author| field). Application date fits in the \t|origdate| field, +while date of publication in the \t|date| field. The field \t|number| is available for the patent classification or request number. -If the inventor is also known, we can use \t|editora| and \t|editoratype| -fields to specify that. Use an additionally created role \t|inventor| for the -\t|editoratype| field; it is the key that translates based on the localization -strings. For the patent type, we can use localization strings as well, e.g. \t|patenteu|. \newline @@ -579,15 +643,15 @@ For the patent type, we can use localization strings as well, e.g. \c{groll2008method} \begin{ltxexample} @patent{groll2008method, - author = {Clad Metals LLC Canonsburg, PA 15317 (US)}, + holder = {{Clad Metals LLC Canonsburg, PA 15317 (US)}}, title = {Method of making a copper core five-ply composite and cooking vessel}, - editora = {Groll, W. A.}, - editoratype = {inventor}, + author = {Groll, W. A.},% <---------- inventor publisher = {Google Patents}, number = {EP 1 094 937 B1}, type = {patenteu}, - date = {2008-07-30}, + date = {2008-07-30},% <------------ publication date + origdate = {1999-05-04},% <------------ application date url = {https://patents.google.com/patent/EP1094937B1}, } \end{ltxexample} @@ -605,7 +669,16 @@ to the \biblatex documentation. \subsubsection{Creators} The persons or organizations responsible for the cited work should be -primarily given in the \t|author| field. If it is not appropriate, +primarily given in the \t|author| field. Please note that organization +names (so-called corporate authors) need to be protected with doubled +curly braces to avoid being (mis)parsed into family/given names +(resulting in wrong order and formatting). + +\begin{ltxexample} + author = {{Dialog Information Services}}, +\end{ltxexample} + +If the \t|author| is not appropriate, other fields like \t|editor| and \t|editorX| family fields or some specific ones (e.g. \t|translator|) can be used. Note also the field \t|editortype| and \t|editortypeX| family fields which can be used @@ -765,6 +838,21 @@ see~\parencite{gosse1912garden}. \begin{changelog} +\begin{release}{0.4.1}{2022-03-20} +\item Added \t|currentlang| package option.\see{sec:pkg:opt:iso690} +\item Added mapping from \t|ngerman| to \t|german| language. +\item Added Spanish language support. +\item Removed \t|inputenc| package from examples. +\item Added \t|expl3| package in the documentation to fix compilation error. +\item Prevent capitalisation of the \t|[online]| bibliography string.\see{sec:howpublished} +\item Fix punctuation before \t|urldate| if publisher info is missing. +\item Print \t|organization| field in publisher \t|location+publisher| list. +\item Improved support for \t|@patent| entries.\see{sec:patent} +\item Improved documentation. +\item Fixed missing \t|volume| and \t|volumes| fields. +\item Added \t|noenddot| package option.\see{sec:pkg:opt:iso690} +\end{release} + \begin{release}{0.4.0}{2020-03-25} \item Fixed deprecated name handling \item Declared mapping suffix (\t|<lang>-iso.lbx|) for localization files |