
.tex
챕터 스타일이 Glenn인 파일 에 ToC, LoF, LoT를 추가했습니다 . 문제는 ToC, LoF 및 LoT가 원하는 스타일을 적용하지 않는 반면 참고문헌은 적용된다는 것입니다. 난 노력 했어
%\addtocontents{toc}{\protect\thispagestyle{fancy}}
하지만 작동하지 않았습니다. 내가 사용하는 코드는
\documentclass[12pt,a4paper]{book}
\usepackage[english,greek]{babel}
\usepackage[iso-8859-7]{inputenc}
\usepackage{kerkis}
\usepackage[pdftex]{graphicx}
%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
\usepackage[Glenn]{fncychap}
\usepackage{fancybox}
\usepackage{fancyhdr}
\usepackage{subfiles}
%\usepackage[nottoc,numbib]{tocbibind}
\usepackage{fancyhdr}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\usepackage{color}
%\usepackage[usenames,dvipsnames]{color}
\definecolor{Darkgreen}{rgb}{0,0.4,0}
\definecolor{Darkblue}{rgb}{0,0,0.4}
\pagestyle{fancy}
\fancyhead{}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line}
\parskip 3mm
\footskip = 15mm
%```````````````````````````````````````````````````````````
%```````````````````````````````````````````````````````````
\begin{document}
%~~~~~~~~~~~~~~~~~~~~~~~Front-Page~~~~~~~~~~~~~~~~~~~~~~~~~~
\begin{titlepage}
TitlePage
\end{titlepage}
\pagenumbering{roman}
\textcolor{Darkblue}{\tableofcontents}
%\addtocontents{toc}{\protect\thispagestyle{fancy}}
\newpage
\addcontentsline{toc}{chapter}{Κατάλογος Σχημάτων}
\listoffigures
%\addtocontents{lof}{\protect\thispagestyle{fancy}}
\newpage
\addcontentsline{toc}{chapter}{Κατάλογος Πινάκων}
\listoftables
%\addtocontents{lot}{\protect\thispagestyle{fancy}}
\newpage
\subfile{abstractGR.tex}
\end{document}
어떤 아이디어가 있나요? 미리 감사드립니다!
하위 파일은 테스트 파일일 뿐입니다.
\documentclass[main.tex]{subfiles}
\begin{document}
\textcolor{Darkblue}{\chapter{Intro}}
This is just a test subfile
\end{document}
답변1
tocloft
옵션 을 로딩하는 것 titles
(자세한 내용은 매뉴얼 7페이지 참조)으로 시작하는 것이 좋습니다. \tableofcontents
표준 클래스 정의와 의 정의 사이에도 호환성이 없는 것 같아서 번호가 없는 장과 "기본" ToC를 fncychap
사용합니다 .\contentsname
\documentclass{book}
\usepackage[Glenn]{fncychap}
\usepackage[titles]{tocloft}
\makeatletter
\newcommand*{\tocwithouttitle}{\@starttoc{toc}}
\makeatother
\begin{document}
\chapter*{\contentsname}
\markboth{\MakeUppercase{\contentsname}}{\MakeUppercase{\contentsname}}
\tocwithouttitle
\chapter{foo}
Some text.
\begin{thebibliography}{9}
\bibitem{A01} A fake bibitem.
\end{thebibliography}
\end{document}