Comments (9)
可正确运行版本:
%% ps@bupt@headings 有页眉有页脚
\def\ps@bupt@headings{%
\def\@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\leftmark\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def\@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def\@oddfoot{\hfil\wuhao\thepage\hfil}
\let\@evenfoot=\@oddfoot
}
%% ps@bupt@pubheadings 有页眉有页脚(发表文章)
\def\ps@bupt@pubheadings{%
\def\@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@label@tableofpublications\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def\@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def\@oddfoot{\hfil\wuhao\thepage\hfil}
\let\@evenfoot=\@oddfoot
}
from buptgraduatethesis.
参考一下 7.0 或者之前的版本。 理论上,学校是要求不居中的,但学校给的word模版又是居中的。所以……
from buptgraduatethesis.
怎么居中呢?解决了吗?不知道在哪个地方修改
from buptgraduatethesis.
版本v7.1编译成pdf之后,页眉为偶数页左对齐,奇数页右对齐。请问如何居中对齐?
你解决了吗?怎么居中的问题
from buptgraduatethesis.
参考一下 7.0 或者之前的版本。 理论上,学校是要求不居中的,但学校给的word模版又是居中的。所以……
尝试改了一下 还是不能居中
from buptgraduatethesis.
分享一下解决方法。
打开文件:buptgraduatethesis.cls
找到命令\ps@bupt@headings的定义,将其定义改成下面的,就可以了。
%% ps@bupt@headings 有页眉有页脚
\def\ps@bupt@headings{%
\def@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\leftmark\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@oddfoot{\hfil\wuhao\thepage\hfil}
\let@evenfoot=@oddfoot
}
此外,攻读学位期间发表的学术论文目录页面的页眉也需要居中,将ps@bupt@pubheadings的定义修改成如下代码:
%% ps@bupt@pubheadings 有页眉有页脚(发表文章)
\def\ps@bupt@pubheadings{%
\def@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@label@tableofpublications\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@oddfoot{\hfil\wuhao\thepage\hfil}
\let@evenfoot=@oddfoot
}
from buptgraduatethesis.
搞定了,感谢,不过这个格式有点不对,直接粘贴会出问题。主要就是加上hfil,并且用把hfill改为hfil
from buptgraduatethesis.
buptgraduatethesis.cls对应部分更换成如下:
MrCoderKai commented on 23 Oct 2018
的回答直接复制过去不太对
%% ps@bupt@headings 有页眉有页脚
\def\ps@bupt@headings{%
\def@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\leftmark\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@oddfoot{\hfil\wuhao\thepage\hfil}
\let@evenfoot=@oddfoot
}
%% ps@bupt@pubheadings 有页眉有页脚(发表文章)
\def\ps@bupt@pubheadings{%
\def@oddhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@label@tableofpublications\hfil%
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@evenhead{%
\vbox to\headheight{%
\hb@xt@\textwidth{%
\xiaowu\song\hfil\bupt@page@head\hfil
}%
\vskip3pt\hbox{%
\vrule width\textwidth height0.4pt depth0pt
}
}
}
\def@oddfoot{\hfil\wuhao\thepage\hfil}
\let@evenfoot=@oddfoot
}
from buptgraduatethesis.
在上面这个代码里面\let@evenfoot=@oddfoot
要改成\let\@evenfoot=\@oddfoot
,不然编译报错。
from buptgraduatethesis.
Related Issues (20)
- 2023年新版论文格式要求 HOT 11
- `\citeauthor` 出错
- 封面学院名称过长时超出边界 HOT 1
- 选择pdoctor运行报错 HOT 1
- 如何将英文封面里面的Student No. 变为Student ID呢 HOT 1
- 二级标题间距
- 2024年北京邮电大学研究生学位论文写作与制作规范
- Textcount ERROR
- 修改题目——攻读学位期间发表的学术论文目录
- 参考文献的作者的名字的中间没有逗号 HOT 1
- 参考文献:中文“等"前去除括号,英文"et al”前不去除括号
- 调整图的标题与图间距
- windows上执行makethesis.bat thesis报错
- 缩略语表只显示部分
- 可以在Oerleaf用吗 HOT 1
- \hbar 无法显示,编译报错
- 求问“攻读学位期间发表的学术论文目录”中的作者名,如何设置为显示全 HOT 1
- 缩略词计数在摘要和正文中没有单独计数
- WinEdt编译引用都是问号
- 运行bat文件时出现 Command \glsdisplayfirst undefined. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buptgraduatethesis.