![Lyx에서 "Part" 섹션을 "Chapter"로 변경하는 방법은 무엇입니까?](https://rvso.com/image/254715/Lyx%EC%97%90%EC%84%9C%20%22Part%22%20%EC%84%B9%EC%85%98%EC%9D%84%20%22Chapter%22%EB%A1%9C%20%EB%B3%80%EA%B2%BD%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
저는 기본 Lyx 문서 "article"을 사용하고 있습니다.
내 섹션의 범위는 "부분"에서 "하위 하위 섹션"까지입니다. PDF를 편집할 때 "부분1 Title1", "Part 2 Title2" 등 by "장1 Title1", "Chapter 2 Title2" 등 어떻게 해야 할지 아시나요? 미리 감사드립니다!
답변1
LyX를 사용한다는 것은 기본적으로 babel
패키지도 사용한다는 의미입니다(이와 같은 경우에는 항상 MWE가 필요합니다). 따라서 프리앰프에는 다음과 같은 것이 필요합니다.
\addto\captionsenglish{%
\renewcommand{\partname}%
{Fake Chapter}%
}
하지만, Lyx가 babel
패키지를 넣을 것입니다~ 후에코드에 \makeatletter
-- 청크 (보기 메뉴에서 전체 소스 참조)가 있으므로 작동할 수 없습니다.\makeatother
따라서 \usepackage{babel}
앞에 도 넣어야 합니다. 서문에서 이 MWE로 작동하는 파일을 얻으려면 다음을 수행하십시오.
\documentclass[english]{article}
\usepackage{babel}
\addto\captionsenglish{%
\renewcommand{\partname}%
{Fake Chapter}%
}
\begin{document}
\part{Some part or chapter}
The \textbackslash{}thepart{} is \thepart{} and the \textbackslash{}partname{} is \partname{}
That is all.
\end{document}
아니면 babel
Lyx 메뉴를 통해 비활성화하고 \renewcommand{\partname}{Fake Chapter}
프리앰블에만 넣으세요.