【在 T*******n 的大作中提到】 : What other packages are you loading? : Can you post a minimal source file that reproduces this problem?
S*y
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
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
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
7 楼
That line: \thispagestyle{chappage} is the culprit. To find out what it does, look for the definition of \[email protected] in the .sty. Somewhere in \[email protected] 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
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\[email protected]{\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 \[email protected] in the .sty. Somewhere in : \[email protected] is messes with the page number. : : chapter
T*n
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\[email protected]{\let\@mkboth\@gobbletwo : \def\@oddhead{}\def\@oddfoot{\rm\hfil\thepage\hfil} : \def\@evenhead{}\let\@evenfoot\@oddfoot : }
S*y
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
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?
【在 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
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 \[email protected] . 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
【在 T*******n 的大作中提到】 : That line: : \thispagestyle{chappage} : is the culprit. To find out what it does, look for the : definition of \[email protected] in the .sty. Somewhere in : \[email protected] is messes with the page number. : : chapter
这是一个老话题,不过我还是有问题在这里。 按照您的方案,确实可以调整页码,但是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 \[email protected] . If you add \chapter{Anything} and immediately before your \bibliographystyle{plain} in your sample_v2.tex fi
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 : \[email protected] .