
우선 전문은 이렇습니다.
\documentclass[a4paper,12pt]{report}
\usepackage{physics}
\usepackage{amsthm,amssymb,thmtools}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{enumerate}
\usepackage{framed}
\usepackage{mathtools}
\usepackage{empheq}
\usepackage{relsize}
\usepackage{nicefrac}
\newcommand*\widefbox[1]{\fbox{\hspace{1em}#1\hspace{1em}}}
\renewcommand{\thechapter}{\Roman{chapter}}
\newtheorem{theorem}{Theorem}
\renewcommand{\thetheorem}{\arabic{chapter}.\arabic{theorem}}
\renewcommand*{\arraystretch}{1.5}
\declaretheoremstyle[spaceabove = 3pt, spacebelow = 3pt, headpunct={:} ,postfoothook=\noindent\hspace{-\fontdimen2\font},postheadspace=\newline]{mydef}
\declaretheoremstyle[spaceabove = 3pt, spacebelow = 3pt, headpunct={:} ,postfoothook=\noindent\hspace{-\fontdimen2\font},headfont = \itshape,postheadspace=\newline]{mysol}
\declaretheoremstyle[spaceabove = 3pt, spacebelow = 3pt, headpunct={:} ,postfoothook=\noindent\hspace{-\fontdimen2\font}]{myrem}
\declaretheoremstyle[spaceabove = 3pt, spacebelow = 3pt,headpunct = {!}, postfoothook=\noindent\hspace{-\fontdimen2\font},headfont=\itshape]{mycare}
\declaretheoremstyle[spaceabove = 3pt, spacebelow = 3pt,headpunct = {:}, postfoothook=\noindent\hspace{-\fontdimen2\font},headfont=\itshape]{myint}
\declaretheorem[parent=chapter,name = Def,style = mydef]{definition}
\renewcommand{\thedefinition}{\arabic{chapter}.\arabic{definition}}
\declaretheorem[parent = chapter,style = mydef, name = Example]{example}
\renewcommand{\theexample}{\arabic{chapter}.\arabic{example}}
\renewcommand{\thefigure}{\arabic{figure}}
\declaretheorem[style=myrem,numbered=no]{remark}
\declaretheorem[style=mycare, numbered = no]{careful}
\declaretheorem[style=myint, numbered = no]{interpretation}
\declaretheorem[style=myrem, numbered=no]{visualization}
\declaretheorem[style=mysol,numbered = no]{solution}
문제의 코드는 다음과 같습니다.
\begin{solution}
\begin{enumerate}[(i)]
\item $r = \sqrt{x^2+y^2} = \sqrt{9+3} = \sqrt{12}$
\item We need $\varphi$ such that
\[(3,\sqrt{3}) = (r \cos \varphi, r \sin \varphi) = \sqrt{12}(\cos \varphi, \sin \varphi ) \]
\end{enumerate}
\end{solution}
열거의 첫 번째 항목이 다음 줄에 있고 두 인덱스가 모두 올바르게 정렬되도록 하려면 어떻게 해야 합니까? 내 코드 어딘가에 이 문제를 일으키는 오타가 있거나 새로운 정리 스타일을 선언하고 적용하는 방법을 제대로 이해하지 못한 것 같습니다. "mysol" 스타일에서 볼 수 있듯이, postheadspace=\newline
실제로는 그런 일이 일어나지 않지만 글을 썼습니다 .
도와 주셔서 감사합니다.
답변1
빈 항목으로 시작하세요.
\begin{solution}
\begin{enumerate}[(i)]
\item[] % <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
\item $r = \sqrt{x^2+y^2} = \sqrt{9+3} = \sqrt{12}$
\item We need $\varphi$ such that
\[(3,\sqrt{3}) = (r \cos \varphi, r \sin \varphi) = \sqrt{12}(\cos \varphi, \sin \varphi ) \]
\end{enumerate}
\end{solution}