Ich habe ein Problem. Bei der Verwendung des folgenden Codes ist eine Fehlermeldung aufgetreten.
TeX-Kapazität überschritten, tut mir leid [Eingabestapelgröße=5000]. \begin
Ich habe gesucht und eine weitere Frage gefundenHier. Es ist ein ähnliches Problem, hat mein Problem aber nicht gelöst.
Code:
\documentclass{clv3}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{mathtools}
\usepackage[dvipsnames, table]{xcolor}
\usepackage[hyphens]{url}
\usepackage{fontspec}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue}
\usepackage[font=footnotesize]{caption}
\usepackage{tipa}
\input{preamble_tikz.tex}
\input{figures/pgfplot_configurations.tex}
\let\numdef\relax%@@@Fix conflict with @polyglossia
\usepackage{forest}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\setmainfont[Scale=0.925]{heuristica}
\usepackage{bidipoem}
\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]}
\begin{document}
\author{author1}\thanks{thank1}}
\affil{aff1}
%%%
\author{author2\thanks{thank2}%
\thanks{thank3}}
\affil{aff2}
%%%
\author{author3\thanks{thank3}%
\samethanks[3]}
\affil{aff3}
%%%
\author{author4\thanks{thank4}%
\samethanks[3]}
\affil{aff4}%%%%
%%%%%%%
\author{author5\thanks{thank5}%
\samethanks[5]}
\affil{aff5}
\title{XYX}
\maketitle
\end{document}
Das Problem könnte in den folgenden Fällen behoben werden
- Entfernen
\usepackage{hyperref}
, aber die Links funktionieren nicht. - Befehl „ Entfernen“
\maketitle
.
Nach einigem Suchen habe ich herausgefunden, dass es sich um einen Konflikt handeln könnte, da es hyperref
neu definiert wurde \maketitle
und bidi
dasselbe bewirkt. Aber ich kann nicht herausfinden, wie ich das beheben kann.
Antwort1
Das Problem besteht darin, bidi
dass es mit der nicht standardmäßigen Definition von verwechselt wird \maketitle
.
Wenn Sie nicht vorhaben, Arabisch in der Kopfzeile zu verwenden, können Sie das Problem beheben, indem Sie die Bedeutung von \maketitle
(tatsächlich die von verwaltete Kopie hyperref
) speichern und wiederherstellen.
\documentclass{clv3}
%\documentclass{article}
\let\numdef\relax
\usepackage{polyglossia}
\usepackage{fontspec}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{mathtools}
\usepackage[dvipsnames, table]{xcolor}
\usepackage[hyphens]{url}
\usepackage[font=footnotesize]{caption}
\usepackage{tipa}
\usepackage{bidipoem}
\usepackage{forest}
\usepackage{hyperref}
\makeatletter
\let\clvHyOrg@maketitle\HyOrg@maketitle
\makeatother
\hypersetup{colorlinks=true,citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue}
%\input{preamble_tikz.tex}
%\input{figures/pgfplot_configurations.tex}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\setmainfont[Scale=0.925]{heuristica}
\makeatletter
\AtBeginDocument{\let\HyOrg@maketitle\clvHyOrg@maketitle}
\makeatother
\begin{document}
\title{XYZ}
\maketitle
\end{document}
Der Vollständigkeit halber habe ich auch die Präambel umgestaltet.