以下のコードを使用するとエラーが発生しました
TeX の容量を超えました。申し訳ありません [入力スタック サイズ = 5000]。\begin
検索したら別の質問が見つかりましたここ同様の問題ですが、私の問題は解決しませんでした。
コード:
\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}
以下の場合には問題は解決できる可能性があります
- 削除します
\usepackage{hyperref}
が、リンクは機能しません。 - コマンドを削除します
\maketitle
。
hyperref
少し調べたところ、再定義され\maketitle
て同じことを行うため、競合が発生する可能性があることがわかりましたbidi
。しかし、これを修正する方法がわかりません。
答え1
問題は、 がbidi
の非標準の定義と混同されることです\maketitle
。
ヘッダーでアラビア語を使用する予定がない場合は、\maketitle
(実際には によって維持されているコピーhyperref
)の意味を保存して復元することで問題を解決できます。
\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}
また、序文も一貫性を保つために再構成しました。