clv3 및 hyperref 충돌 TeX 용량이 초과되었습니다. 죄송합니다.

clv3 및 hyperref 충돌 TeX 용량이 초과되었습니다. 죄송합니다.

아래 코드를 사용할 때 문제가 있습니다. 오류가 발생했습니다.

TeX 용량을 초과했습니다. 죄송합니다 [입력 스택 크기=5000]. \시작하다

검색해보니 또 다른 질문이 있더군요여기. 비슷한 문제이지만 내 문제가 해결되지 않았습니다.

암호:

\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}

아래의 경우 문제가 해결될 수 있습니다.

  1. 제거 \usepackage{hyperref}하면 링크가 작동하지 않습니다.
  2. 명령을 제거하십시오 \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}

또한 보다 일관되게 서문을 재구성했습니다.

관련 정보