I would like to use biblatex. I tried to set the language to hungarian. I've found a .bbx
file, but I get strange errors if I try to use it.
The file:
\ProvidesFile{magyar.bbx}
\DeclareLanguageMapping{magyar}{magyar}
\RequireBibliographyStyle{authoryear}
\renewcommand*{\finalnamedelim}{%
%\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibsstring{and}\space}
\newbibmacro{names:separator}{%
\ifthenelse{\value{listcount}<\value{liststop}}%
{\addcomma\addspace}%
{}%
}
\newbibmacro*{names:andothers}{%
\ifboolexpr{%
test {\ifnumequal{\value{listcount}}{\value{liststop}}}%
and%
test \ifmorenames%
}{\bibsstring{andothers}\addcomma}%
{}%
}
\def\@magyarbbx@hun{HUN}
\DeclareNameFormat{sortname}{%
\begingroup%
\edef\juniorpart{#7}%
\ifx\juniorpart\@magyarbbx@hun%
% Hungarian name
\usebibmacro{name:first-last}{#3}{#1}{#5}{\relax}%
\else%
% English name
\ifnum\value{listcount}=1\relax%
\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}%
\else%
\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
\fi%
\fi%
\endgroup%
}
%\DeclareNameFormat{sortname}{%
% \nameprint{#1}{#3}
% \usebibmacro{names:separator}%
% \usebibmacro{names:andothers}%
% }
\endinput
The error:
Illegal parameter number in definition of \blx@defformat@d
I am not an advanced latex user, and I have no idea how should I fix this issue. I was not able to find a newer version of this file on the internet
csquotes
has no Hungarian localisation (github.com/josephwright/csquotes/issues/19). See tex.stackexchange.com/q/166337/35864. You could try\DeclareQuoteAlias{magyar}{dutch}
as a very dirty quick hack. – moewe Apr 26 '18 at 22:02magyar.lbx
or have suggestions for further improvement please comment on github.com/plk/biblatex/issues/717. The thing is still work in progress, although most things should be good by now. – moewe Apr 26 '18 at 22:11