Latex:導致這種縮排的原因

Latex:導致這種縮排的原因

我有以下乳膠代碼:

% 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

預設情況下,乳膠會縮排新段落。新增\parindent0pt到您的序言中以刪除此內容。

相關內容