내가 무엇을 하든 TeX 용량을 초과했다는 오류가 발생합니다. 죄송합니다 [입력 스택 크기=5000]. 도와주세요

내가 무엇을 하든 TeX 용량을 초과했다는 오류가 발생합니다. 죄송합니다 [입력 스택 크기=5000]. 도와주세요
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{answers}
\usepackage{amsmath}
\usepackage{attachfile}
\usepackage{todo}
\usepackage{hyper}
\Newassociation{sol}{Solution}{ans}
\newtheorem{ex}{Exercise}
\title{Packages in LATEX}
\author{anandajiththarol }
\date{November 2020}

\begin{document}

\maketitle

\section{answers}
Answers  is package used to create question and answer sheet using latex very easily.This  package  is  a  modification  of  the   previous  style  option answers,which  has  been  in  use  for  a  few  years,  and  was  based  upon  the  TEXbook  idea of binding solutions to exercises.
\newline
\textbf{\textit{Example:}}
\Opensolutionfile{ans}[ans1]
 \subsection{Problems}
 \begin{ex}
 First exercise
 \begin{sol}
 First solution.
 \end{sol}
 \end{ex}
 \begin{ex}
 Second exercise
 \begin{sol}
 Second solution.
 \end{sol}
 \end{ex}
 \Closesolutionfile{ans}
 \subsection{Solutions}
 \input{ans1}

\section{newcommand}
Newcommand is a latex package to define new macros. Only one argument can be designated as optional, it must be the first argument, and it must appear within square brackets.  Defining macros that take multiple optional arguments or in which an optional argument appears in the middle of the argument list is possible but is somewhat complicated.
\newline
\textbf{\textit{Example}}
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} 
\begin{align*}
     x &=ut+\frac{1}{2}*(at^2)\\
     x &=\frac{1}{2}*gt^2\\
      g &=\frac{2x}{t^2} \numberthis\label{eq1}
\end{align*}
In the above quation a custom macro, numberthis is used to label an equation.
\section{Attachfile}
his package defines an attachfilecommand that lets you attach arbitrary files to a pdf document. These files are embedded right in the pdf file, so they get transmitted along with it. The package also gives you control over the corresponding icon’s properties and various other associated metadata.
\newline
\textbf{\textit{Example}}
\attachfile{attach.txt}\\
Here a sample txt is attached to the document using the attchfile package.\\

\end{document}

답변1

저는 아직 hyper까지 패키지를 본 적이 없습니다. 문제인 것 같습니다. 살펴보니 hyper패키지가 20년 동안 업데이트되지 않은 것 같습니다. 대신 최신 hyperref패키지를 사용하는 것이 더 나은 아이디어일 수 있습니다. hyperref소수의 예외를 제외하고 마지막 패키지로 로드되어야 한다는 점을 기억하세요 .

관련 정보