diff --git a/inst/csas-tex/res-doc-french.tex b/inst/csas-tex/res-doc-french.tex index 3accbc2..bd40368 100644 --- a/inst/csas-tex/res-doc-french.tex +++ b/inst/csas-tex/res-doc-french.tex @@ -39,8 +39,10 @@ % Title \newcommand{\rdTitle}{$title$} -\newcommand{\rdISBN}{$isbn_french$} -\newcommand{\rdCatNo}{$cat_no_french$} +% Use isbn_french and cat_no_french if they exist, if they don't use isbn and cat_no +% This preserves backwards compatibility for those without the french tags +\newcommand{\rdISBN}{\ifx&$isbn_french$& $isbn$ \else $isbn_french$ \fi} +\newcommand{\rdCatNo}{\ifx&$cat_no_french$& $cat_no$ \else $cat_no_french$ \fi} % Author names separated by commas and ', and' for the last author in the format 'M.H. Grinnell' (use \textsuperscript{n} for addresses) \newcommand{\rdAuth}{$author$} diff --git a/inst/csas-tex/sr-french.tex b/inst/csas-tex/sr-french.tex index 88ac4b5..d595a5c 100644 --- a/inst/csas-tex/sr-french.tex +++ b/inst/csas-tex/sr-french.tex @@ -58,8 +58,10 @@ % Region \newcommand{\rdRegion}{$region$} -\newcommand{\rdISBN}{$isbn$} -\newcommand{\rdCatNo}{$cat_no$} +% Use isbn_french and cat_no_french if they exist, if they don't use isbn and cat_no +% This preserves backwards compatibility for those without the french tags +\newcommand{\rdISBN}{\ifx&$isbn_french$& $isbn$ \else $isbn_french$ \fi} +\newcommand{\rdCatNo}{\ifx&$cat_no_french$& $cat_no$ \else $cat_no_french$ \fi} %%%% End of title page commands %%%%%