![何をしてもこのエラーが発生します。TeX の容量を超えました。申し訳ありません [入力スタック サイズ = 5000]。助けてください。](https://rvso.com/image/423759/%E4%BD%95%E3%82%92%E3%81%97%E3%81%A6%E3%82%82%E3%81%93%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82TeX%20%E3%81%AE%E5%AE%B9%E9%87%8F%E3%82%92%E8%B6%85%E3%81%88%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E7%94%B3%E3%81%97%E8%A8%B3%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%20%5B%E5%85%A5%E5%8A%9B%E3%82%B9%E3%82%BF%E3%83%83%E3%82%AF%20%E3%82%B5%E3%82%A4%E3%82%BA%20%3D%205000%5D%E3%80%82%E5%8A%A9%E3%81%91%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82.png)
\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
最後のパッケージとしてロードする必要があることに注意してください (少数の例外を除く)。