항목화/열거 구조 변경

항목화/열거 구조 변경

훌륭하게 실행되고 형식이 지정되는 다음 코드가 있습니다.

\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{classicthesis}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage{enumitem}

\begin{document}

\section*{Examples}
For each function $f$ given,
\begin{enumerate}
\begin{enumerate}
\item Sketch the graph of $f.$
\item Write the open intervals for which $f$ is continuous.
\item Write the open intervals for which $f$ is increasing.
\item Write the open intervals for which $f$ is decreasing.
\item Write the open intervals for which $f$ is concave up.
\item Write the open intervals for which $f$ is concave down.
\end{enumerate}

\item $f(x)=x^3-x^2-x+1.$
\item $f(x)=\dfrac{x^2-2x+2}{x-1}.$
\item $f(x)=x\sqrt{3-x}.$
\item $f(x)=\dfrac{x^3}{36}\sqrt{7-x}.$
\end{enumerate}

\end{document}

하지만 누락된 \item 오류가 발생합니다. 결과,

산출

오류를 방지하면서 동일한 형식과 출력을 유지하려면 코드를 어떻게 편집해야 합니까?

답변1

간단한 공백으로 원하는 것을 할 수 있습니다 \item.

\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{classicthesis}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage{enumitem}

\begin{document}

\section*{Examples}
For each function $f$ given,
\begin{enumerate}
  \item[]%
        \begin{enumerate}[before = \vspace*{-\topsep}]
          \item Sketch the graph of $f.$
          \item Write the open intervals for which $f$ is continuous.
          \item Write the open intervals for which $f$ is increasing.
          \item Write the open intervals for which $f$ is decreasing.
          \item Write the open intervals for which $f$ is concave up.
          \item Write the open intervals for which $f$ is concave down.
        \end{enumerate}

  \item $f(x)=x^3-x^2-x+1.$
  \item $f(x)=\dfrac{x^2-2x+2}{x-1}.$
  \item $f(x)=x\sqrt{3-x}.$
  \item $f(x)=\dfrac{x^3}{36}\sqrt{7-x}.$
\end{enumerate}

\end{document} 

여기에 이미지 설명을 입력하세요

답변2

여기에 해결책이 있습니다

\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{classicthesis}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{amsmath,mathtools}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{url}
\usepackage{enumitem}
\usepackage{multicol}
\usepackage{tabu}
\usepackage{amsthm}
\usepackage{fourier-orns}
\usepackage{framed}
\usepackage{tcolorbox}
\usepackage[toc,page]{appendix}
\usepackage[all]{xy}

\begin{document}

\section*{Examples}
For each function $f$ given,
\begin{enumerate}[label=\alph*),leftmargin=2\leftmargini]
\item Sketch the graph of $f.$
\item Write the open intervals for which $f$ is continuous.
\item Write the open intervals for which $f$ is increasing.
\item Write the open intervals for which $f$ is decreasing.
\item Write the open intervals for which $f$ is concave up.
\item Write the open intervals for which $f$ is concave down.
\end{enumerate}

\begin{enumerate}
\item $f(x)=x^3-x^2-x+1.$
\item $f(x)=\dfrac{x^2-2x+2}{x-1}.$
\item $f(x)=x\sqrt{3-x}.$
\item $f(x)=\dfrac{x^3}{36}\sqrt{7-x}.$
\end{enumerate}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보