关于奇偶页页眉

15 views
Skip to first unread message

idleness

unread,
Dec 7, 2009, 12:46:38 AM12/7/09
to thuthesis
偶数页显示学校名字,我就简单的把leftmark(何意?)替换为thu@schoolename,如下:
\def\ps@thu@headings{%
\def\@oddhead{\vbox to\headheight{%
\hb@xt@\textwidth{\hfill\wuhao\song\leftmark\ifthu@bachelor\relax
\else\hfill\fi}%
\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
\def\@evenhead{\vbox to\headheight{%
\hb@xt@\textwidth{\wuhao\song%
\ifthu@bachelor\thu@schoolename\thu@bachelor@subtitle%
\else\hfill\thu@schoolename\fi\hfill}%
\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}

目的基本达到,但是在frontmatter区的目录等的页眉也成了这种形式。看frontmatter定义里面是有\pagestyle
{thu@empty}}的,却没起作用呢。找不到原因和办法了

Ruini Xue

unread,
Dec 7, 2009, 12:53:25 AM12/7/09
to thuthesis

On 12月7日, 下午1时46分, idleness <summerfly.2...@gmail.com> wrote:
> 偶数页显示学校名字,我就简单的把leftmark(何意?)替换为thu@schoolename,如下:

leftmark在不同的位置有不同的定义(\@markboth),直接改为thu@schoolname就写死了。

-- ruini

idleness

unread,
Dec 10, 2009, 10:45:07 PM12/10/09
to thuthesis
回复好快呀。我通过定义自己的myheading解决了问题。不过又有新问题。
开始编译的pdf中是乱码(pdflatex),之后在两次pdflatex之间用gbk2uni转换,解决了。因为我的论文章节是中文数字,在cfg
文件60行左右改成了:\newcommand\CJKthechapter{\CJKnumber{\@arabic\c@chapter}}
\renewcommand\chaptername{第\CJKthechapter章}。
正文中显示都正常。但是"第一章","第二章",这种文字在目录中变成了"第1193227章",第2193227章"。。。

Ruini Xue

unread,
Dec 10, 2009, 10:47:41 PM12/10/09
to thut...@googlegroups.com


2009/12/11 idleness <summerf...@gmail.com>

回复好快呀。我通过定义自己的myheading解决了问题。不过又有新问题。
开始编译的pdf中是乱码(pdflatex),之后在两次pdflatex之间用gbk2uni转换,解决了。因为我的论文章节是中文数字,在cfg
文件60行左右改成了:\newcommand\CJKthechapter{\CJKnumber{\@arabic\c@chapter}}

what about: 

 \newcommand\CJKthechapter{\expandafter\CJKnumber{\@arabic\c@chapter}}

-- ruini

\renewcommand\chaptername{第\CJKthechapter章}。
正文中显示都正常。但是"第一章","第二章",这种文字在目录中变成了"第1193227章",第2193227章"。。。

On 12月7日, 下午1时53分, Ruini Xue <xueru...@gmail.com> wrote:
> On 12月7日, 下午1时46分, idleness <summerfly.2...@gmail.com> wrote:
>
> > 偶数页显示学校名字,我就简单的把leftmark(何意?)替换为thu@schoolename,如下:
>
> leftmark在不同的位置有不同的定义(\@markboth),直接改为thu@schoolname就写死了。
>
> -- ruini
>
> > \def\ps@thu@headings{%
> >   \def\@oddhead{\vbox to\headheight{%
> >       \hb@xt@\textwidth{\hfill\wuhao\song\leftmark\ifthu@bachelor\relax
> > \else\hfill\fi}%
> >       \vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
> >   \def\@evenhead{\vbox to\headheight{%
> >       \hb@xt@\textwidth{\wuhao\song%
> >       \ifthu@bachelor\thu@schoolename\thu@bachelor@subtitle%
> >        \else\hfill\thu@schoolename\fi\hfill}%
> >       \vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
>
> > 目的基本达到,但是在frontmatter区的目录等的页眉也成了这种形式。看frontmatter定义里面是有\pagestyle
> > {thu@empty}}的,却没起作用呢。找不到原因和办法了

--
您收到此信息是由于您订阅了 Google 论坛“thuthesis”论坛。
 要在此论坛发帖,请发电子邮件到 thut...@googlegroups.com
 要退订此论坛,请发邮件至 thuthesis-...@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/thuthesis?hl=zh-CN 访问该论坛

请支持ThuThesis: http://sourceforge.net/donate/index.php?group_id=156590

idleness

unread,
Dec 11, 2009, 9:38:47 PM12/11/09
to thuthesis
试了,还是这样。真是奇怪啊。不知道生成目录的细节是怎么的

On 12月11日, 上午11时47分, Ruini Xue <xueru...@gmail.com> wrote:
> 2009/12/11 idleness <summerfly.2...@gmail.com>

Ruini Xue

unread,
Dec 12, 2009, 3:13:10 AM12/12/09
to thut...@googlegroups.com


2009/12/12 idleness <summerf...@gmail.com>
试了,还是这样。真是奇怪啊。不知道生成目录的细节是怎么的

以前碰到过这个问题,当时似乎是重新定义了一下CJKnumber,比较糙的办法。

等有空了我自己调试一下。

-- ruini
 
Reply all
Reply to author
Forward
0 new messages