由买买提看人间百态

topics

全部话题 - 话题: thechapter
(共0页)
h**k
发帖数: 48
1
来自主题: TeX版 - 关于report中header设置问题:

FIRST
CONTINUED:
我用了下面的办法:
在\begin{document}之前重新定义了
\pagestyle{myheadings}
\newcommand{\newchap}[1] % Re-define the chaptering command to use
{ % THESE headers.
\chapter{#1}
\markboth{Chapter \thechapter. {#1}\hfill \hfill}{Chapter
\thechapter. {#1}\hfill \hfill}
}
并将以前的\chapter全改为\newchap,结果header字体变小了不在顶出业面,,但是
bibliography中的header却自动变成了最后一章的header而不是以前的bibliography.
应该怎么办? 谢谢
c*******h
发帖数: 1096
2
来自主题: TeX版 - 菜鸟求助~
看了一下book.cls,在定义\chapter的第六行某地方加上chapter字眼
看是不是你要的效果
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect Chapter \numberline{\thechapter}#1}% <----这里
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\pr
c*******n
发帖数: 718
3
来自主题: TeX版 - Book里figure编号的问题
undefined control sequence
而且我现在其实是已经有renumbering的
但是就是只显示Figure 1 Figure 2 Figure 1
我要的是 Figure 1.1 Figure 1.2 Figure 2.1
我试了
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\renewcommand{\thetable}{\thechapter.\arabic{table}}
然后在段落前加\thefigure \thetable也还是不行
c*******n
发帖数: 718
4
来自主题: TeX版 - Book里figure编号的问题
报告一下 搞定了
加一个
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\renewcommand{\thetable}{\thechapter.\arabic{table}}
之前一直搞不定是因为preamble里面有一句\renewcommand{\thefigure}{\arabic{
figure}}我一直没看到所以做无用功
另外\counterwithin就装一个chngcntr package 不过我最后也不需要这个了
谢谢SETI的回答
z*****n
发帖数: 7639
5
来自主题: TeX版 - 一个对齐的问题
根据要求,我得用book格式写个report。但是章节开始页
要用这个格式:
1. (my chapter title)
1.1 (my section title)
在book.sty里面的default设置是这样的:
Chapter 1
(my chapter title)
在book.cls里面,it is writen so
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
b*********n
发帖数: 173
6
1. Place this definition in the preamble of your file:
\DeclareRobustCommand{\SkipTocEntry}[4]{}
2. Just before a command that will write a heading to the TOC file, insert
the instruction to suppress it. A substitute can be inserted after the
regular heading; for example:
\addtocontents{toc}{\SkipTocEntry}
\chapter{Heading that should be replaced}
\addtocontents{toc}{\protect\contentsline{chapter}%
{\protect\tocchapter{Chapter}{\thechapter}{Substitute toc text}}%
{\th
b*******h
发帖数: 56
7
谢谢版主的关心,找到了解决方法
\def\beforesep{-0.5in}
\def\aftersep{0pt}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{\beforesep}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\large\centering\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 0\p@
\fi
\fi
\interlinepenalty\@M
\large \centering\bfseries #1\par\nobreak
\vskip \aftersep
}}
\def\@makeschapterhead#1{%
\vspace*{\beforesep}%
{\parinden
g*********r
发帖数: 124
8
来自主题: TeX版 - Another question
把下面的代码添加到导言区
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries\thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother
e******d
发帖数: 310
9
I want to change the font size of chapter heading, but don't change the
heading style. How can I do that?
I tried the following command, but it changed the style as well.
================================
\titleformat{\chapter}{\LARGE\bfseries}{\thechapter}{1em}{ }
================================
The current style is like this,
==================
Chapter 1
Introduction
===================
Thank you a lot
S**I
发帖数: 15689
10
how about
\titleformat{\chapter}{\LARGE\bfseries}{\thechapter}{1em}{~\\}
s********r
发帖数: 158
11
我是按照一个 模板 做的, 其中有关 Appendix 是
\newcommand\appendices{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}%
\@inappendixtrue%
\@gotappendicestrue%
\chapterheader{\appendicesname}%
}
还有一个问题
\appendices
\chapter {Appendix A title}
text
\section {Appendix A.1 title}
text
\section {Appendix A.2 title}
text
\chapter {Appendix B title}
text
\section {Appendix B.1 title}
text
如果在 table of content 中只想显示 Chapter title而忽略 sec... 阅读全帖
(共0页)