diff options
author | Norbert Preining <norbert@preining.info> | 2022-07-26 03:01:16 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-07-26 03:01:16 +0000 |
commit | ae37b2329c8f0475412617b3248d58906904d54d (patch) | |
tree | 5c97b148ed9d3e15438d0786c5742b201e57b35a /support | |
parent | cee77702306334696b503b7206c8e0edea065d0b (diff) |
CTAN sync 202207260301
Diffstat (limited to 'support')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 5 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 45 |
2 files changed, 31 insertions, 19 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 7dc4ce3b8f..7c41010bb1 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,8 @@ +2022-07-25 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (biblatex.4ht): don't redefine \MakeUppercase and + \MakeLowercase in BibLaTeX. + 2022-07-24 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (babel.4ht): don't redefine \ref in Babel. diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 355df13c57..dbd0b1c60d 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1178 2022-07-24 17:04:30Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1179 2022-07-25 20:40:57Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -2215,6 +2215,31 @@ We put the hook ourselves thanks to Configure{ifthenelse}. % Biblatex 3.0 % % Hacks for biblatex + +% I don't really understand this, but language processing is broken by default +% with biblatex. It loads language file, but it executes code which should be +% executed only in the case if the language file fails, it displays an error message +% and language handling doesn't work. When we execute following code, the language +% files are loaded before checking of the success and it seems to work. + +\AtBeginDocument{% +\@ifpackageloaded{babel} + {% This is required for languages which are never explicitly selected + % It seems this code was executed also with Polyglossia, where it caused compilation error + \@ifpackageloaded{polyglossia}{}{% + \def\do#1{\blx@lbxinput{#1}{}{}}% + \ifx\@empty\bbl@loaded\else% + \expandafter\docsvlist\expandafter{\bbl@loaded}% + \fi}}{}% +} +\fi % end of version boolean +>>> + +2022/07/25: It seems that we don't need to redefine MakeUppercase and MakeLowercase, BiBLaTeX works without these +redefinitions, and on the contrary, we get compilation error with these, as they were changed in the LaTeX kernel. +So I think it is best to remove them. + +\<biblatex dont use\><<< % MakeUppercase is redefined by tex4ht, biblatex tries to redefine it as well, but it relies on original % LaTeX version: \DeclareRobustCommand{\MakeUppercase}[1]{{% @@ -2237,24 +2262,6 @@ We put the hook ourselves thanks to Configure{ifthenelse}. \blx@hook@lc\protected@edef\reserved@a{\lowercase{#1}}% \reserved@a }} - -% I don't really understand this, but language processing is broken by default -% with biblatex. It loads language file, but it executes code which should be -% executed only in the case if the language file fails, it displays an error message -% and language handling doesn't work. When we execute following code, the language -% files are loaded before checking of the success and it seems to work. - -\AtBeginDocument{% -\@ifpackageloaded{babel} - {% This is required for languages which are never explicitly selected - % It seems this code was executed also with Polyglossia, where it caused compilation error - \@ifpackageloaded{polyglossia}{}{% - \def\do#1{\blx@lbxinput{#1}{}{}}% - \ifx\@empty\bbl@loaded\else% - \expandafter\docsvlist\expandafter{\bbl@loaded}% - \fi}}{}% -} -\fi % end of version boolean >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |