![建立新行後如何新增縮排](https://rvso.com/image/400085/%E5%BB%BA%E7%AB%8B%E6%96%B0%E8%A1%8C%E5%BE%8C%E5%A6%82%E4%BD%95%E6%96%B0%E5%A2%9E%E7%B8%AE%E6%8E%92.png)
我是 Latex 新手,我不明白任何人關於格式化的評論。據我了解,Latex 可以幫助我使文件看起來像我想要的那樣。我將使用 Latex 進行一些基礎數學課程,我想知道除了問題編號之外如何排列我的解決方案。這是我試圖用來創建縮排的程式碼。
\section*{Practice Problems}
1.2) A is a true statement. \\
\quad B is a true statement. \newline
\hspace{2mm} C is a false statement. \newline
D could be either false or true so it is not a statement. \newline
我希望結果看起來像這樣。沒有句號。
1.2) A 是一個真實的陳述。
…… B 是一個真實的陳述。
……C是一個錯誤的陳述。
…… D 可能是假的,也可能是真的,所以它不是一個陳述。
答案1
答案2
有一個考試班在 LaTex 中處理多項選擇題、每個問題的分數等
\question Which of these famous physicists invented time?
\begin{oneparchoices}
\choice Stephen Hawking
\choice Albert Einstein
\choice Emmy Noether
\choice This makes no sense
\end{oneparchoices}
\question Which of these famous physicists published a paper on Brownian Motion?
\begin{checkboxes}
\choice Stephen Hawking
\choice Albert Einstein
\choice Emmy Noether
\choice I don't know
\end{checkboxes}
https://www.overleaf.com/learn/latex/Typesetting%20exams%20in%20LaTeX#Multiple_choice_questions
http://mirrors.ctan.org/macros/latex/contrib/exam/examdoc.pdf
答案3
我建議您採用兩列tabularx
環境,總寬度為\textwidth
;第二列允許在需要時自動換行。
列之間的空白量由巨集控制\tabcolsep
。它的預設值是6pt
;要將該值減少三分之一,您需要發出指令\setlength\tabcolsep{4pt}
。
\documentclass{article}
\usepackage{tabularx} % for 'tabularx' env.
\begin{document}
\section*{Practice Problems}
%\noindent
\begin{tabularx}{\textwidth}{@{} l X @{}}
1.2) & A is a true statement. \\
& B is a true statement. \\
& C is a false statement. \\
& D could be either false or true so it is not a statement.
\end{tabularx}
\end{document}