
항목 환경 내에 인라인 마술이 있습니다. 문제는 두 번째 줄을 오른쪽으로 맞추는 것입니다. 이것을 달성하는 방법은 무엇입니까?
\documentclass[a4paper,twocolumn]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{enumerate}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item Theoretically, the calculated voltage should be
correspond to the measured voltage. But in practice it is
often \emph{not} the case. There are small deviations. Calculate first
the absolute deviations according to the rule:\\
\medskip{}\\
$\left\langle\text{absolute deviation}\right\rangle = \\ \left\langle\text{calc. value}\right\rangle - \left\langle\text{measured value}\right\rangle$\\
\medskip{}\\
The ,,measured value`` here is of course the ,,measured voltage``.\\
Calculate all absolute deviations and enter the results in the
table.
\item Further steps
\end{enumerate}
\end{document}
답변1
LaTeX는 워드 프로세서가 아닙니다. 의 사용은 \\
명시적으로 줄 끝이 필요한 곳으로 제한되어야 합니다.
\documentclass[a4paper,twocolumn]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{enumerate}
\usepackage{amsmath}
\setlength{\multlinegap}{0pt}
\begin{document}
\begin{enumerate}
\item Theoretically, the calculated voltage should be
correspond to the measured voltage. But in practice it is
often \emph{not} the case. There are small deviations. Calculate first
the absolute deviations according to the rule:
\begin{multline*}
\langle\text{absolute deviation}\rangle = \\
\langle\text{calc.\ value}\rangle - \langle\text{measured value}\rangle
\end{multline*}
The ,,measured value`` here is of course the ,,measured voltage``.
Calculate all absolute deviations and enter the results in the
table.
\item Further steps
\end{enumerate}
\end{document}
나는 또한 제거했고 \left
그것은 \right
그 공식에 아무런 도움이 되지 않습니다.
calc.\ value
문장 끝 부분을 피하기 위해 메모하십시오 . 그럴 수도 있습니다 calc.\@ value
.
답변2
요령은 \hfill
두 번째 줄 앞에 a를 사용하는 것이지만, \mbox{}
그 앞에 a를 사용하는 것입니다. 왜냐하면 \hfill
줄의 맨 처음에는 작동하지 않기 때문입니다.
\documentclass[a4paper,twocolumn]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{enumerate}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item Theoretically, the calculated voltage should be
correspond to the measured voltage. But in practice it is
often \emph{not} the case. There are small deviations. Calculate first
the absolute deviations according to the rule:\\
\medskip{}\\
$\left\langle\text{absolute deviation}\right\rangle = \\ \mbox{}\hfill \left\langle\text{calc. value}\right\rangle - \left\langle\text{measured value}\right\rangle$\\
\medskip{}\\
The ,,measured value`` here is of course the ,,measured voltage``.\\
Calculate all absolute deviations and enter the results in the
table.
\item Further steps
\end{enumerate}
\end{document}