我的程式碼中的隨機縮排

我的程式碼中的隨機縮排

這是我的程式碼:

\documentclass[12pt,fleqn]{article}

\usepackage[margin = 0.25in, letterpaper]{geometry}
\usepackage{amsmath, amssymb}
\usepackage{textcomp}
\usepackage{framed}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage{multicol}


\begin{document}
\begin{framed}
    \section[short]{Functions and Algebra}
    \textbf{POLYNOMIALS}\\
    For \(p(x)~|~ n~is~the~degree~of~p(x);\)\\
    \(p(x) = a_{0}x^0 + a_{1}x + a_{2}x^2 ... a_{n}a^n \)\\
    With \(p(x)\) having \(n\) number of \(zeros(z), complex ~ or ~ real\), can be factored, \\
    \(p(x)=(x-z_{1})(x-z_{2})...(x-z_{n})\)
    \begin{multicols}{2}
        \begin{framed}
            \begin{center}
                Common Factoring Formulae: \\
                \(a^2 - b^2 = (a+b)(a-b)\)\\
                \(a^3 \pm b^3 = (a-b)(a^2 + b^2 \mp ab)\)
            \end{center}
        \end{framed}
        \columnbreak
        \begin{framed}
            \begin{center}
                Common Expanding Formulae: \\
                \((a \pm b)^2 = a^2 \pm 2ab +b^2\)\\
                \((a \pm b)^3 = a^3 \pm 3a^2b + 3ab^2 + b^2\)
            \end{center}
        \end{framed}
    \end{multicols}
    \textbf{FUNCTIONS}\\
    Reflection of a function over the \(y-axis\) of \(f(x)\) is \(f(-x)\)\\
    Reflection of a function over the \(x-axis\) of \(f(x)\) is \(-f(x)\)\\
    Trasformation of \(f(x) \rightarrow af[b(x-h)]+k\)\\


    \section[short]{Logarithms}
    Defined as \(a^b = x \longleftrightarrow \log_{a}x = b \)\\
    Principle Identities;\\
    \(a^{\log_{a}x} = x\) ~~
    \(\log_{a}1=0\) ~~
    \(\log_{a}a=1\) ~~
    \(\log_{\frac{1}{a}}a = -1\)
\end{framed}
\end{document}

第 37 行似乎有一個隨機縮排;\textbf{FUNCTIONS}\\

錯誤代碼是Underfull \hbox (badness 10000)LaTeX

我搜索了該錯誤並修復了同一錯誤代碼的先前問題,但我似乎無法修復這個確切的問題。這是我的輸出的樣子。我將突出顯示隨機縮排: 這是我的輸出的樣子。我將突出顯示隨機縮排:

請幫幫我,我是一名初學 LaTeX 程式設計師。抱歉,如果這個問題已經被問過。

答案1

Underfull \hbox (badness 10000)\\是因為您在段落末尾放錯了位置,請將其全部刪除。

紅色箭頭不是“隨機縮排”,它是段落縮排的正常開始,您應該使用節標題,例如

\subsection*{FUNCTIONS}

不是\textbf

在這種情況下,多項式也應該被\subsection*抑制縮進,因為它是標題後的第一段\section{Functions and Algebra}

相關內容