Tengo un problema al usar el siguiente código. Recibí un error.
Se excedió la capacidad de TeX, lo siento [tamaño de la pila de entrada = 5000]. \comenzar
busque y encontre otra preguntaaquí. Es un problema similar pero no resolvió mi problema.
Código:
\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}
El problema podría solucionarse en los siguientes casos.
- Quitar
\usepackage{hyperref}
pero los enlaces no funcionarán. - Eliminar
\maketitle
comando.
Después de buscar un poco, descubrí que podría haber un conflicto porque hyperref
se redefine \maketitle
y bidi
hace lo mismo. Pero no sé cómo solucionarlo.
Respuesta1
El problema es que bidi
eso se confunde con la definición no estándar de \maketitle
.
Si no planeas usar árabe en el encabezado, puedes solucionar el problema guardando y restaurando el significado de \maketitle
(en realidad, la copia mantenida por 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}
También he reorganizado el preámbulo para que sea más coherente.