S********y 发帖数: 182 | 1 用MikTex写毕业论文,"report" class。
bibliography的页码老是1,用什么参数可以控制么? |
T*******n 发帖数: 493 | 2 What other packages are you loading?
Can you post a minimal source file that reproduces this problem?
【在 S********y 的大作中提到】 : 用MikTex写毕业论文,"report" class。 : bibliography的页码老是1,用什么参数可以控制么?
|
S********y 发帖数: 182 | 3 发现问题所在了,但是无法解决。我用的是要求的学校自己的package,它好像要求所
有的文献要放在主文档里。为了管理方便我不想这么做,于是将文献另外放在一个
reference.bib文件里,然后在主文当里用\bibliography{reference},这样文献页的
页码老是1。试着不用学校的package,问题就解决了,但是这个论文的格式就都错了。
急死了,不知道怎么弄?有办法在处理文献的问题上override学校的package么?
【在 T*******n 的大作中提到】 : What other packages are you loading? : Can you post a minimal source file that reproduces this problem?
|
S********y 发帖数: 182 | 4 这里是学校的*.sty文档里关于文献的部分,请帮忙看看可以改一下么? 多谢了
% ****************************************
% * BIBLIOGRAPHY *
% ****************************************
%
% The thebibliography environment executes the following commands:
%
% \def\newblock{\hskip .11em plus .33em minus .07em} --
% Defines the `closed' format, where the blocks (major units of
% information) of an entry run together.
%
% \sloppy -- Used because it's rather hard to do line breaks in
% bibli
【在 S********y 的大作中提到】 : 发现问题所在了,但是无法解决。我用的是要求的学校自己的package,它好像要求所 : 有的文献要放在主文档里。为了管理方便我不想这么做,于是将文献另外放在一个 : reference.bib文件里,然后在主文当里用\bibliography{reference},这样文献页的 : 页码老是1。试着不用学校的package,问题就解决了,但是这个论文的格式就都错了。 : 急死了,不知道怎么弄?有办法在处理文献的问题上override学校的package么?
|
T*******n 发帖数: 493 | 5 I can't see anything in \thebibliography that messes up the page
numbering. Can you see whether your .sty file redefines
\bibliography and post that part from the .sty file.
【在 S********y 的大作中提到】 : 这里是学校的*.sty文档里关于文献的部分,请帮忙看看可以改一下么? 多谢了 : % **************************************** : % * BIBLIOGRAPHY * : % **************************************** : % : % The thebibliography environment executes the following commands: : % : % \def\newblock{\hskip .11em plus .33em minus .07em} -- : % Defines the `closed' format, where the blocks (major units of : % information) of an entry run together.
|
S********y 发帖数: 182 | 6 在.sty中没有找到重新定义文献格式的地方。学校给的sample文档把文献当作chapter
来看:
********************************************
% BIBLIOGRAPHY
%
% If you plan to have more than 99 references, change the 99 in the next
% line to 999 (or some other 3-digit number)
\begin{thebibliography}{99}
%
% Yes, the bibliography pages are also chapter pages. The first page of
% it should conform to chapter conventions.
%
\thispagestyle{chappage}
% See the LaTeX manual for details about the bibliography. In short,
% the item in braces (for
【在 T*******n 的大作中提到】 : I can't see anything in \thebibliography that messes up the page : numbering. Can you see whether your .sty file redefines : \bibliography and post that part from the .sty file.
|
T*******n 发帖数: 493 | 7 That line:
\thispagestyle{chappage}
is the culprit. To find out what it does, look for the
definition of \ps@chappage in the .sty. Somewhere in
\ps@chappage is messes with the page number.
chapter
【在 S********y 的大作中提到】 : 在.sty中没有找到重新定义文献格式的地方。学校给的sample文档把文献当作chapter : 来看: : ******************************************** : % BIBLIOGRAPHY : % : % If you plan to have more than 99 references, change the 99 in the next : % line to 999 (or some other 3-digit number) : \begin{thebibliography}{99} : % : % Yes, the bibliography pages are also chapter pages. The first page of
|
S********y 发帖数: 182 | 8 这儿是定义chappage的code,有什么不对的么。
% Definition of 'chapter header' page style
%
% Moves the page number to the lower center of the page, instead of
% the usual upper-right.
%
\def\ps@chappage{\let\@mkboth\@gobbletwo
\def\@oddhead{}\def\@oddfoot{\rm\hfil\thepage\hfil}
\def\@evenhead{}\let\@evenfoot\@oddfoot
}
【在 T*******n 的大作中提到】 : That line: : \thispagestyle{chappage} : is the culprit. To find out what it does, look for the : definition of \ps@chappage in the .sty. Somewhere in : \ps@chappage is messes with the page number. : : chapter
|
T*******n 发帖数: 493 | 9 Okay, I'm not sure what's causing the problem.
If you post a minimal set of files that reproduces this problem
I can find out for sure.
【在 S********y 的大作中提到】 : 这儿是定义chappage的code,有什么不对的么。 : % Definition of 'chapter header' page style : % : % Moves the page number to the lower center of the page, instead of : % the usual upper-right. : % : \def\ps@chappage{\let\@mkboth\@gobbletwo : \def\@oddhead{}\def\@oddfoot{\rm\hfil\thepage\hfil} : \def\@evenhead{}\let\@evenfoot\@oddfoot : }
|
S********y 发帖数: 182 | 10 我附上学校的给的样板,其中文献是在主文档里。TeXnician 你可以帮忙修改一下么?
感激不尽。
【在 T*******n 的大作中提到】 : Okay, I'm not sure what's causing the problem. : If you post a minimal set of files that reproduces this problem : I can find out for sure.
|
|
|
T*******n 发帖数: 493 | 11 I ran LaTeX+dvips+ps2pdf on the sample.tex file that you
posted, without any modification, the the bibliography
show page 11, not page 1. You get page "1" on that
page if you run LaTeX on sample.tex? See my attached file.
If you get page "1" where the bibliography begins, could
you add \listfiles right above \begin{document}, run LaTeX on
it and post the list of files that LaTeX shows on the console
or writes near the end of the .log file?
【在 S********y 的大作中提到】 : 我附上学校的给的样板,其中文献是在主文档里。TeXnician 你可以帮忙修改一下么? : 感激不尽。
|
S********y 发帖数: 182 | 12 当文献在主文档中时,是没有问题。但是为了方便,我把文献放在一个单独文件里,在
主文档中用
\bibliographystyle{plain}
\bibliography{sample_v2}
调用时就出现了问题。文献页的页码一直是1,而且位置也不在页底的中间 (学校要求
每一章,以及文献,附录的第一页的页码要在页底的中间,其它页的在上面。)
我把单独的文献文件以及相应的主文档放在了附件里。
【在 T*******n 的大作中提到】 : I ran LaTeX+dvips+ps2pdf on the sample.tex file that you : posted, without any modification, the the bibliography : show page 11, not page 1. You get page "1" on that : page if you run LaTeX on sample.tex? See my attached file. : If you get page "1" where the bibliography begins, could : you add \listfiles right above \begin{document}, run LaTeX on : it and post the list of files that LaTeX shows on the console : or writes near the end of the .log file?
|
T*******n 发帖数: 493 | 13 Okay, I know what is wrong. It has nothing to do with the
bibliography. Instead is it caused by the mistake made when
the person who wrote the .sty file messed up the definition for
\ps@plain .
If you add \chapter{Anything} and immediately before your
\bibliographystyle{plain} in your sample_v2.tex file, you'll see
the page 1. If you take out the \thispagestyle{chappage} after
\chapter{New Chapter} (for Chapter II), you'll see the page 1.
Basically, \chapter and \chapter* calls \thispagestyle
【在 S********y 的大作中提到】 : 当文献在主文档中时,是没有问题。但是为了方便,我把文献放在一个单独文件里,在 : 主文档中用 : \bibliographystyle{plain} : \bibliography{sample_v2} : 调用时就出现了问题。文献页的页码一直是1,而且位置也不在页底的中间 (学校要求 : 每一章,以及文献,附录的第一页的页码要在页底的中间,其它页的在上面。) : 我把单独的文献文件以及相应的主文档放在了附件里。
|
T*******n 发帖数: 493 | 14 I wasn't completely wrong here. Although the problem wasn't
in \ps@chappage, it was in \ps@plain, and \ps@chappage helped
cover up the mistake in \ps@plain.
【在 T*******n 的大作中提到】 : That line: : \thispagestyle{chappage} : is the culprit. To find out what it does, look for the : definition of \ps@chappage in the .sty. Somewhere in : \ps@chappage is messes with the page number. : : chapter
|
S********y 发帖数: 182 | 15 您真是当代毕升,太感谢了。
【在 T*******n 的大作中提到】 : I wasn't completely wrong here. Although the problem wasn't : in \ps@chappage, it was in \ps@plain, and \ps@chappage helped : cover up the mistake in \ps@plain.
|
T*********y 发帖数: 18 | 16 这是一个老话题,不过我还是有问题在这里。
按照您的方案,确实可以调整页码,但是bibliography部分的第一页页码不在本页的正
下放中央,而是在右上角了,有办法解决这个问题么?
发信人: TeXnician (毕升), 信区: TeX
标 题: Re: 论文里bibliography的页码老是1,怎么办?
发信站: BBS 未名空间站 (Tue Feb 13 16:59:00 2007)
Okay, I know what is wrong. It has nothing to do with the
bibliography. Instead is it caused by the mistake made when
the person who wrote the .sty file messed up the definition for
\ps@plain .
If you add \chapter{Anything} and immediately before your
\bibliographystyle{plain} in your sample_v2.tex fi
【在 S********y 的大作中提到】 : 当文献在主文档中时,是没有问题。但是为了方便,我把文献放在一个单独文件里,在 : 主文档中用 : \bibliographystyle{plain} : \bibliography{sample_v2} : 调用时就出现了问题。文献页的页码一直是1,而且位置也不在页底的中间 (学校要求 : 每一章,以及文献,附录的第一页的页码要在页底的中间,其它页的在上面。) : 我把单独的文献文件以及相应的主文档放在了附件里。
|
T*******n 发帖数: 493 | 17 Look in the definition of the environment "thebibliography".
It will either directly call \thispagestyle{...} or indirectly
call \thispagestyle{...} by calling a sectioning command such
as \chapter{...} or \chapter*{...}.
The easiest solution for you, if I understand your question correctly,
is to use the fancyhdr package, define a page style that you want for
the first page of you bibliography (to move the location of the page
number), and then either change \thispagestyle{...} in "thebibliogra
【在 T*********y 的大作中提到】 : 这是一个老话题,不过我还是有问题在这里。 : 按照您的方案,确实可以调整页码,但是bibliography部分的第一页页码不在本页的正 : 下放中央,而是在右上角了,有办法解决这个问题么? : 发信人: TeXnician (毕升), 信区: TeX : 标 题: Re: 论文里bibliography的页码老是1,怎么办? : 发信站: BBS 未名空间站 (Tue Feb 13 16:59:00 2007) : Okay, I know what is wrong. It has nothing to do with the : bibliography. Instead is it caused by the mistake made when : the person who wrote the .sty file messed up the definition for : \ps@plain .
|