当我使用 latexmk 编译我的 LaTeX 时,我的对齐环境从最左边开始,以至于它们从页面上剪掉,而我的枚举标签剪掉到我的定理标签中(见下面的截图)。
这是我正在尝试编译的 LaTeX(我对所有自定义命令表示歉意):
\documentclass[11pt]{article}
\usepackage[top=2cm, bottom=4.5cm, left=2.5cm, right=2.5cm]{geometry}
%----------Packages----------
\usepackage{verbatim} %%includes comment environment
\usepackage{fullpage} %%smaller margins
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}
\usepackage{mathrsfs}
\usepackage{physics}
\usepackage{mathtools}
\usepackage[mathcal]{eucal} % changes meaning of \mathcal
\usepackage{enumerate}
\usepackage{mathrsfs}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{todonotes}
\usepackage{bm}
\usepackage{float}
\usepackage{booktabs}
%----------Commands----------
%%penalizes orphans
\clubpenalty=9999 \widowpenalty=9999
\newcommand{\li}{\lim\limits}
\newcommand{\unif}{\rightrightarrows}
\newcommand{\pM}[1]{\begin{pmatrix}#1\end{pmatrix}}
\newcommand{\diff}{\D{x}}
\newcommand{\ox}{\otimes}
\newcommand{\x}{\times}
\newcommand{\ceq}{\coloneqq}
\newcommand{\T}{\top}
\newcommand{\too}{\rightarrow}
\renewcommand{\l}{\ell}
\renewcommand{\-}{\overline}
\renewcommand{\O}{\emptyset}
\renewcommand{\wd}{\wedge}
\providecommand{\ar}{\rightarrow}
\providecommand{\arr}{\longrightarrow}
\renewcommand{\_}[1]{\underline{ #1 }}
\DeclareMathOperator{\ext}{ext}
\DeclareMathOperator{\osc}{osc}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\diam}{diam}
\DeclareMathOperator{\intr}{int}
\DeclareMathOperator{\grd}{grad}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\inv}{Inv}
\DeclarePairedDelimiter{\inn}{\langle}{\rangle}
%----------Theorems----------
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem*{lemma*}{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{nondefinition}[theorem]{Non-Definition}
\newtheorem*{exercise}{Exercise}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{warning}[theorem]{Warning}
\numberwithin{equation}{subsection}
\graphicspath{ {./images/} }
%----------Title-------------
\title{Document 1}
\begin{document}
\maketitle
\begin{exercise}[5.33]
\begin{proof}
Let $T(A,B)=AB$ for $A,B\in \mathcal{M}(n\x n)$. Let $M\in G$. Then,
\[
T(\id, \inv)(X)=XX^{-1}=I.
\]
Thus, $(DT(\id,\inv)_{A}(X))=(D I)_{A}=0$.
Since matrix multiplication is bilinear, by the Leibniz rule,
\begin{align*}
0=(DT(\id,\inv))_{A}(X)
&=T((D\id)_{A}(X),\inv(A))+T(\id(A),(D\id)_{A}(X)) \\
&=\id(X)A^{-1}+A\id(X) \\
&\implies -XM^{-1}=M(D\inv)_{M}(X) \\
&\implies -M^{-1}XM^{-1}=(D\inv)_{M}(X),
\end{align*}
as desired.
\end{proof}
\end{exercise}
\begin{exercise}[IV]
\begin{enumerate}[(a)]
\item
\end{enumerate}
\end{exercise}
\end{document}
由于它也可能相关,因此我正在使用 latexmk 进行编译并在 MacOS Sonoma 上使用 texlive 2023。
答案1
绝不执行\renewcommand
你不知道的命令。
就你的情况而言,罪魁祸首是
\renewcommand{\wd}{\wedge}
这会破坏 TeX 的一个非常重要的原语。