나열된 항목 사이의 간격을 늘리고 싶습니다. 이 작업을 수행하는 데 도움을 주시면 감사하겠습니다.
\begin{equation}
\begin{array}{ll}
\text { \textbf{(a).} }~ a_{0}=\dfrac{1}{2 L} \int_{-L}^{L} f(x) ~d x \\
\vspace{3 mm}
\text { \textbf{(b).} }~ a_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \cos \dfrac{n \pi x}{L} ~d x \\
\bigskip
\text { \textbf{(c).} }~ \displaystyle b_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \sin \dfrac{n \pi x}{L} ~d x
\end{array}
\end{equation
답변1
제가 잘 알고 있는 몇 가지 방법은 다음과 같습니다.
\documentclass{article}
\usepackage{amsmath}
\renewcommand{\arraystretch}{4} % to change spacing of every row by some factor
\begin{document}
\begin{equation}
\begin{array}{ll}
\text { \textbf{(a).} }~ a_{0}=\dfrac{1}{2 L} \int_{-L}^{L} f(x) ~d x \\[3mm] % to add extra spacing for one row
%\vspace{3 mm}
\text { \textbf{(b).} }~ a_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \cos \dfrac{n \pi x}{L} ~d x \\
%\bigskip
\text { \textbf{(c).} }~ \displaystyle b_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \sin \dfrac{n \pi x}{L} ~d x
\end{array}
\end{equation}
\end{document}
답변2
enumerate
맞춤 라벨이 있는 실제 환경을 사용하는 것이 좋습니다 .
\documentclass{article}
\usepackage{amsmath} % for \dfrac macro
\usepackage{enumitem} % easily customize enumerate and itemize envrionments
\usepackage{xcolor} % for \textcolor macro
\begin{document}
\textcolor{red}{before}
\begin{equation}
\begin{array}{ll}
\text { \textbf{(a).} }~ a_{0}=\dfrac{1}{2 L} \int_{-L}^{L} f(x) ~d x \\
\vspace{3 mm}
\text { \textbf{(b).} }~ a_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \cos \dfrac{n \pi x}{L} ~d x \\
\bigskip
\text { \textbf{(c).} }~ \displaystyle b_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \sin \dfrac{n \pi x}{L} ~d x
\end{array}
\end{equation}
\bigskip
\textcolor{red}{after}
\begin{equation}
\begin{minipage}{0.5\textwidth}
\begin{enumerate}[label=\bfseries(\alph*).]
\item $a_{0}=\dfrac{1}{2 L} \int_{-L}^{L} f(x) \,dx $
\item $a_{n}=\dfrac{1}{L} \int_{-L}^{L} f(x) \cos \dfrac{n \pi x}{L} \,dx $
\item $\displaystyle b_{n}=\frac{1}{L} \int_{-L}^{L} f(x) \sin \frac{n \pi x}{L} \,dx$
\end{enumerate}
\end{minipage}
\end{equation}
\end{document}