
나는 내가 원하는 것을 달성하기 위해 운 없이 약 20-30분 동안 검색해 왔습니다. 매우 간단합니다.
기사 클래스를 사용하고 있는데 부록 제목이 들어가도록 하고 싶습니다.
부록 A: {제목 삽입}
지금 내가 사용하고 있는 건
\documentclass[a4,12pt]{article}
\usepackage[titletoc,toc,title]{appendix}
\begin{document}
<main body of text>
\begin{appendices}
\section{Magnetic flux tubes}
Bunch of text
\end{appendices}
그런데 계속 부록 제목이 나오네요.
A. 자속관.
부록 A: 자속관을 어떻게 말하나요?
또한 이상적으로는 부록 제목의 크기를 변경하고 싶습니다.
편집: 내 문제는 내 파일 서문에 이것이 있다는 것입니다
\usepackage{titlesec}
\usepackage{secdot}\sectiondot{subsection}\sectiondot{subsubsection}
%\renewcommand{\thesubsection}{\normalfont\arabic{section}.\arabic{subsection}}
\titleformat{\section}{\bf}{\thesection .}{0.5em}{}
\titleformat{\subsection}{\normalfont \it}{\thesubsection .}{0.5em}{}
\titleformat{\subsubsection}{\normalfont \it}{\thesubsubsection .}{0.6em}{}
나는 이것을 내가 원하는 대로 문서 제목을 얻기 위해 사용하고 있지만 불행하게도 이 새로운 명령은 부록 섹션에 적용됩니다. 어쨌든 부록에 대해서만 제목 형식을 실행 취소할 수 있나요?
답변1
\titleformat
부록 바로 앞에서 다시 사용하여 원하는 형식을 지정할 수 있습니다.
\documentclass{article}
\usepackage{titlesec}
\usepackage[titletoc,toc,title]{appendix}
\titleformat{\section}{\bfseries}{\thesection.}{0.5em}{}
\titleformat{\subsection}{\normalfont\itshape}{\thesubsection.}{0.5em}{}
\titleformat{\subsubsection}{\normalfont\itshape}{\thesubsubsection.}{0.6em}{}
\begin{document}
\section{A regular section}
\titleformat{\section}{\large\bfseries}{\appendixname~\thesection .}{0.5em}{}
\begin{appendices}
\section{Magnetic flux tubes}
Bunch of text
\end{appendices}
\end{document}
섹션의 원래 형식을 복구하려면 "Appendix"라는 단어와 숫자 뒤에 점을 추가해야 합니다.
\titleformat{\section}{\normalfont\Large\bfseries}{\appendixname~\thesection.}{1em}{}
두 글자 글꼴 명령( \it
및 \bf
이와 유사한)은 최신 LaTeX 문서에서 더 이상 사용해서는 안되는 오래된 TeX 명령입니다. 대신 을 사용하세요 \itshape
.\bfseries
답변2
나는 이것이 트릭을 수행해야한다고 생각합니다. 내 마스터 코드는 다음과 같습니다.
\documentclass[10pt,twoside,a4paper]{report}
\usepackage[pdftex]{graphicx}
\begin{document}
\include{Introduction}
\include{Theory}
\renewcommand{\chaptername}{Appendix} % To change title from chapter to Appendix
\appendix
\renewcommand{\thepage}{\thechapter.\arabic{page}} % This to change the page numebering format for the Appendices
\setcounter{page}{1}
\include{FluxCalc}
\include{ForceFieldCalc}
\end{document}
나는 \include{}
내 장과 부록에 대해 개별 .tex 파일을 호출하는 데 사용합니다. 나는 이것이 내 메인 코드를 훨씬 더 깔끔하게 보이게 해주기 때문에 이것을 선호합니다. 여기서는 소개, 이론, FluxCalc(이 경우 부록 A) 및 ForceFieldCalc(이 경우 부록 B) 등 4개의 .tex 파일을 호출했습니다. 출력 PDF에는 아래 그림과 같은 페이지가 있습니다.