我有以下乳胶代码:
% Preamble
% ---
\documentclass{article}
% Packages
% ---
\usepackage{amsmath}
\usepackage{graphicx}
\begin{document}
\title{Electronics Equations}
\author{Tyler Hilbert}
\date{}
\maketitle
\subsection*{Electronic Formula Wheel}
\includegraphics[width=50mm]{FormulaWheel.png}
\subsection*{Equations from "Fundamentals of Electric Circuits"}
% TODO - double check for all equations in chapter 1&2
Current: $I = dQ/dt$ \smallbreak
Note: This can also be written like this: $I = \Delta Q / \Delta t$
%TODO - add Kirchoffs law
\bigskip
Charge: $Q = \int_{to}^{t} i dt$
\bigskip
Voltage: $V = dw/dQ$
\bigskip
Power: $p = dw/dt$
%TODO - check if I should add "Note that: $\sum{p} = 0$"
\bigskip
\end{document}
我想知道是什么原因导致当前行(以“注意:这可以.....”等等开头的行)后的缩进。我该如何修复这个问题以使缩进保持一致?
答案1
你既不需要\smallbreak
(告诉 LaTeX 在现场分页很好)也不需要\bigskip
:
% Preamble
% ---
\documentclass{article}
% Packages
% ---
\usepackage{amsmath}
\usepackage{graphicx}
\begin{document}
\title{Electronics Equations}
\author{Tyler Hilbert}
\date{}
\maketitle
\subsection*{Electronic Formula Wheel}
\includegraphics[width=50mm]{example-image}
\subsection*{Equations from ``Fundamentals of Electric Circuits''}
% TODO - double check for all equations in chapter 1&2
Current: $I = dQ/dt$\\*[\smallskipamount]
Note: This can also be written like this: $I = \Delta Q / \Delta t$\\*[\bigskipamount]
%TODO - add Kirchoffs law
Charge: $Q = \int_{to}^{t} i\,dt$\\*[\bigskipamount]
Voltage: $V = dw/dQ$\\*[\bigskipamount]
Power: $p = dw/dt$
%TODO - check if I should add "Note that: $\sum{p} = 0$"
\bigskip
\end{document}
注意,开头的引号要打出来``
,结尾的引号要打出来。我还在差异前面''
加了习惯用法。\,
答案2
默认情况下,LaTeX 会缩进新段落。请将其添加\parindent0pt
到序言中以删除此设置。