![Что бы я ни делал, выдает эту ошибку Превышена емкость TeX, извините [размер входного стека=5000]. Пожалуйста, помогите](https://rvso.com/image/423759/%D0%A7%D1%82%D0%BE%20%D0%B1%D1%8B%20%D1%8F%20%D0%BD%D0%B8%20%D0%B4%D0%B5%D0%BB%D0%B0%D0%BB%2C%20%D0%B2%D1%8B%D0%B4%D0%B0%D0%B5%D1%82%20%D1%8D%D1%82%D1%83%20%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D1%83%20%D0%9F%D1%80%D0%B5%D0%B2%D1%8B%D1%88%D0%B5%D0%BD%D0%B0%20%D0%B5%D0%BC%D0%BA%D0%BE%D1%81%D1%82%D1%8C%20TeX%2C%20%D0%B8%D0%B7%D0%B2%D0%B8%D0%BD%D0%B8%D1%82%D0%B5%20%5B%D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%80%20%D0%B2%D1%85%D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE%20%D1%81%D1%82%D0%B5%D0%BA%D0%B0%3D5000%5D.%20%D0%9F%D0%BE%D0%B6%D0%B0%D0%BB%D1%83%D0%B9%D1%81%D1%82%D0%B0%2C%20%D0%BF%D0%BE%D0%BC%D0%BE%D0%B3%D0%B8%D1%82%D0%B5.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
должен быть загружен последним (за небольшим количеством исключений).