
나는 처음 LaTeX
이므로 당신은 나를 참아야 할 것입니다. 나는 그것을 사용하여 프로젝트 보고서를 작성하려고 노력하고 있으며 지금까지 특정 섹션에 대해 이것을 얻었습니다.
그 다음에,
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb}
% In case you are wondering what these packages are for:
% amsmath provides extra mathematical constructs and symbols
% graphicx facilitates the inclusion of graphics files
% hyperref makes links into clickable hyperlinks
% parskip leaves more space between paragraphs
\usepackage[cm]{fullpage}
% The above package makes the page margins smaller. I included it
% to save you printing costs.
% Feel free to also print two-sheets per page and double-sided
%==================
%.....
%==================
\begin{equation}\label{eq:six}
x = Vtsin(K),
\end{equation}
and
\begin{align*}
X
&= x-(l+h)sin(\phi), \\
&= Vt\sin(K)-(l+h)sin[K-2\tan ^{ - 1}\{\tan(K/2).exp((-Vt)/l)\}],
\end{align*}
맨 위에는 이렇게 적혀 있습니다.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb}
그리고 세 줄의 방정식을 모두 한 줄로 만들고 싶습니다. 즉 x와 X 방정식이 되고 첫 번째와 세 번째 줄에는 숫자가 할당되어 있습니다. 다른 모든 방정식은 \begin{equation}...\end{equation}
주변에 있고 그 방정식에는 x 방정식과 같은 참조 번호가 지정되어 있지만 이 두 방정식을 일렬로 두고 싶었기 때문에 방정식 1 대신 정렬 공식을 사용한 다음 두 방정식을 함께 시도했지만 그렇지 않았습니다. 일하다. (또한 라벨링이 작동하지 않지만 그것은 또 다른 문제입니다!)
어떤 도움이라도 대단히 감사하겠습니다!
답변1
이건 어때?
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb}
% In case you are wondering what these packages are for:
% amsmath provides extra mathematical constructs and symbols
% graphicx facilitates the inclusion of graphics files
% hyperref makes links into clickable hyperlinks
% parskip leaves more space between paragraphs
\usepackage[cm]{fullpage}
% The above package makes the page margins smaller. I included it
% to save you printing costs.
% Feel free to also print two-sheets per page and double-sided
%==================
%.....
%==================
\begin{document}
{%
\setlength{\belowdisplayskip}{0pt}%
\setlength{\abovedisplayskip}{0pt}%
\begin{align}\label{eq:six}
x & = Vtsin(K) \\
\intertext{and} \notag
X &= x-(l+h)sin(\phi), \notag \\
&= Vt\sin(K)-(l+h)sin[K-2\tan ^{ - 1}\{\tan(K/2).exp((-Vt)/l)\}],
\end{align}
}
\end{document}
명령을 사용하여 조정하지 않는 한 라인 \intertext
주위에 많은 공간이 생깁니다 .and
setlength
여기
나생각하다이것은 당신이 추구했던 정렬과 번호 매기기를 제공합니까?
답변2
패키지 mathtools
는 다음을 제공합니다 \shortintertext
. 게다가 split
두 번째 방정식의 번호를 매기기 위해 사용할 수도 있습니다 . 이 경우 약간의 조정이 필요합니다(상호 텍스트 뒤에 약간의 작은 수직 공간).
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,mathtools}
\usepackage{lipsum} % just for the example
\begin{document}
\lipsum*[3]
\begin{align}
x & = Vt\sin K \label{eq:six} \\
\shortintertext{and\vspace{\jot}}
\begin{split}
X &= x-(l+h)\sin\phi, \\
&= Vt\sin K-(l+h)\sin\bigl(K-2\arctan(\tan(K/2)\exp(-Vt/l)\bigr),
\end{split}
\end{align}
\lipsum[4]
\end{document}
\tan^{-1}
죄송합니다. 저는 아크탄젠트를 옹호할 수 없습니다 . 또한 괄호는 가능한 한 둥글게 표시되어야 합니다. 또한 \sin(K)
중복되고 \sin K
충분하며 전통적입니다. 마침표는 곱셈을 나타내는 데 사용되어서는 안 됩니다. 아무것도 없거나 중앙에 점이 있는 경우도 마찬가지입니다 \cdot
. 물론 이것들은 단지 내 의견일 뿐이다.