LyX의 고전학에서 방정식 위와 아래의 원하지 않는 공백을 제거하는 방법

LyX의 고전학에서 방정식 위와 아래의 원하지 않는 공백을 제거하는 방법

나는 최신 LyX 버전의 classicthesis 템플릿을 사용하고 있습니다.

단어-라텍스로 변환된 라텍스 코드를 LyX로 가져올 때 생성된 PDF의 각 방정식 위와 아래에 원하지 않는 공간(보통 위에 두 줄, 아래에 한 줄)이 있지만 LyX 자체에는 없습니다(공백은 다음과 같습니다). 보이지 않고 정상적으로 보입니다).

이러한 공백을 피하거나 제거하는 방법은 무엇입니까?

업데이트: 템플릿에서 "장 또는 섹션 머리글에서 수학을 사용하면 예상치 못한 결과를 얻을 수 있습니다. pdfspacing 옵션을 고려하십시오."라는 설명을 찾았습니다.

LyX에서 "pdfspacing" 옵션을 어떻게 사용하나요?

업데이트: 소스 코드와 원치 않는 PDF 레이아웃은

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

\begin{document}
There are differences in the space above equation.
\[
    W = a + b+ c
\]
There are differences in the space below equation.

There are differences in the space above equation.
\begin{equation}
    W = a + b+ c
\end{equation}
There are differences in the space below equation.
\end{document}

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

답변1

LyX에서 보는 것은 변경될 수 있는 미리보기일 뿐입니다. PDF 버전(문서의 최종 버전)에서 방정식 위와 뒤의 공간을 줄이려는 경우

방정식 n°(1)의 예상 결과

equation여기에 표시된 것처럼 환경 앞에 이 줄을 배치해야 합니다 .

\documentclass[a4paper]{article}
\begin{document}
There are differences in the space above equation.
\[
    W = a + b+ c
\]
There are differences in the space below equation.

\setlength{\belowdisplayskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}
\setlength{\abovedisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt}
There are differences in the space above equation.
\begin{equation}
    W = a + b+ c
\end{equation}
There are differences in the space below equation.
\end{document}

방정식에는 및 equation대신 사용해야 합니다 .\[\]

편집하다

LyX에서는 Ctrl+L(또는 삽입 후 Code TeX)을 누르고 빈 붙여넣기

\setlength{\belowdisplayskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\setlength{\abovedisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}

이것은 LyX의 예입니다.LyX의 예

LyX에 의해 생성된 LaTeX 코드는 다음과 같습니다.

\setlength{\belowdisplayskip}{0pt} \setlength{\belowdisplayshortskip}{0pt} \setlength{\abovedisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt}

There are differences in the space above equation. 

\[
W=a+b+c
\]


There are differences in the space below equation. 

There are differences in the space above equation. 
\begin{equation}
W=a+b+c
\end{equation}
\begin{equation}
T=est
\end{equation}


There are differences in the space below equation. 

관련 정보