\對齊環境剪裁頁面

\對齊環境剪裁頁面

當我使用 Latexmk 編譯 LaTeX 時,我的對齊環境從左側開始,以至於它們從頁面上剪下來,並且我的枚舉標籤夾到我的定理標籤中(請參見下面的螢幕截圖)。 12

這是我正在嘗試編譯的 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}

由於它也可能相關,因此我在 MacOS Sonoma 上使用 Latexmk 進行編譯並使用 texlive 2023。

答案1

絕不do\renewcommand對於一個你不知道的指令。

在你的情況下,罪魁禍首是

\renewcommand{\wd}{\wedge}

這破壞了 TeX 的一個非常重要的原語。

相關內容