问题 -1
在这里我想将两个问题(标记为 (i) 和 (ii))移到单词 prove 的正下方。我该怎么做?
问题2
并给出页码,例如第 3 页,共 5 页。
平均能量损失
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{parskip}
\usepackage[shortlabels]{enumitem}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{cellspace}
\setlength\cellspacetoplimit{7pt}
\setlength\cellspacebottomlimit{7pt}
\usetikzlibrary{arrows}
\pagestyle{empty}
\usetikzlibrary{decorations.markings}
\usepackage{amssymb}
\renewcommand{\baselinestretch}{1.0}
\usepackage[left=1.300cm, right=1.300cm, top=1.300cm, bottom=1.300cm]{geometry}
\begin{document}
\textbf{Question~1}
\begin{enumerate}[\bfseries(A),left=0pt]
\item Prove following results.
\begin{enumerate}[label=(\roman*)]
\item First sub question
\item Second sub question
\end{enumerate}
\item
\end{enumerate}
\end{document}
答案1
这里有两个解决方案,第二级列表的标签左右对齐。一个使用键wide
并使用 的值labelsep
,另一个使用widest=
:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{parskip}
\usepackage[shortlabels]{enumitem}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{cellspace}
\setlength\cellspacetoplimit{7pt}
\setlength\cellspacebottomlimit{7pt}
\usetikzlibrary{arrows}
\pagestyle{empty}
\usetikzlibrary{decorations.markings}
\usepackage{amssymb}
\renewcommand{\baselinestretch}{1.0}
\usepackage[margin=1.300cm, showframe]{geometry}
\begin{document}
\textbf{Question~1}
\begin{enumerate}[\bfseries(A), left=0pt]
\item Prove following results.
\begin{enumerate}[label=(\roman*), wide = 0pt, labelsep=-3pt, leftmargin=*]
\item First sub question.
\item Second sub question. Still some more text. Still some more text. Still some more text. Still some more text. Still some more text.
\item Third sub question.
\end{enumerate}
\item Prove these other results:
\begin{enumerate}[label=(\roman*), leftmargin=*, widest=iii]
\item First other sub question, with a much longer text. Still some more text. Still some more text. Still some more text.
\item Second other sub question.
\item Third other sub question.
\end{enumerate}
\end{enumerate}
\end{document}