Comments (4)
相应代码就是您在overleaf上提供的模板里的用法:
\frontmatter% 目录
\tableofcontents
% 插图目录
\listoffigures
% 表格目录
\listoftables
请提供完整代码,现在的代码看不出问题。
from fduthesis.
完整代码如下:
`\documentclass[type=doctor]{fduthesis}
% 模板选项:
% type = doctor|master|bachelor 论文类型,默认为本科论文
% oneside|twoside 论文的单双面模式,默认为 twoside
% draft = true|false 是否开启草稿模式,默认关闭
% 带选项的用法示例:
% \documentclass[oneside]{fduthesis}
% \documentclass[twoside, draft=true]{fduthesis}
% \documentclass[type=bachelor, twoside, draft=true]{fduthesis}
\fdusetup{
% 参数设置
% 允许采用两种方式设置选项:
% 1. style/... = ...
% 2. style = { ... = ... }
% 注意事项:
% 1. 不要出现空行
% 2. “=” 两侧的空格会被忽略
% 3. “/” 两侧的空格不会被忽略
% 4. 请使用英文逗号 “,” 分隔选项
%
% style 类用于设置论文格式
style = {
font = times,
% 西文字体(包括数学字体)
% 允许选项:
% font = garamond|libertinus|lm|palatino|times|times*|none
%
% cjk-font = mac,
% 中文字体
% 允许选项:
% cjk-font = adobe|fandol|founder|mac|sinotype|sourcehan|windows|none
%
% 注意:
% 1. 中文字体设置高度依赖于系统。各系统建议方案:
% windows:cjk-font = windows
% mac: cjk-font = mac
% linux: cjk-font = fandol(默认值)
% 2. 除 fandol 和 sourcehan 外,其余字体均为商用字体,请注意版权问题
% 3. 但 fandol 字体缺字比较严重,而 sourcehan 没有配备楷体和仿宋体
% 4. 这里中西文字体设置均注释掉了,即使用默认设置:
% font = times
% cjk-font = fandol
% 5. 使用 font = none / cjk-font = none 关闭默认字体设置,需手动进行配置
%
% font-size = -4,
% 字号
% 允许选项:
% font-size = -4|5
%
% fullwidth-stop = catcode,
% 是否把全角实心句点 “.” 作为默认的句号形状
% 允许选项:
% fullwidth-stop = catcode|mapping|false
% 说明:
% catcode 显式的 “。” 会被替换为 “.”(e.g. 不包括用宏定义保存的 “。”)
% mapping 所有的 “。” 会被替换为 “.”(使用 LuaLaTeX 编译则无效)
% false 不进行替换
%
footnote-style = xits,
% 脚注编号样式
% 允许选项:
% footnote-style = plain|libertinus|libertinus*|libertinus-sans|
% pifont|pifont*|pifont-sans|pifont-sans*|
% xits|xits-sans|xits-sans*
% 默认与西文字体保持一致
%
% hyperlink = color,
% 超链接样式
% 允许选项:
% hyperlink = border|color|none
%
% hyperlink-color = default,
% 超链接颜色
% 允许选项:
% hyperlink-color = default|classic|material|graylevel|prl
%
bib-backend = bibtex,
% 参考文献支持方式
% 允许选项:
% bib-backend = bibtex|biblatex
%
% bib-style = numerical,
% 参考文献样式
% 允许选项:
% bib-style = author-year|numerical|<其他样式>
% 说明:
% author-year 著者—出版年制
% numerical 顺序编码制
% <其他样式> 使用其他 .bst(bibtex)或 .bbx(biblatex)格式文件
%
% cite-style = {},
% 引用样式
% 默认为空,即与参考文献样式保持一致
% 仅适用于 biblatex;如要填写,需保证相应的 .cbx 格式文件能被调用
%
bib-resource = {main.bib},
% 参考文献数据源
% 可以是单个文件,也可以是用英文逗号 “,” 隔开的一组文件
% 如果使用 biblatex,则必须明确给出 .bib 后缀名
%
% logo = {fudan-name.pdf},
% 封面中的校名图片
% 模版已自带,通常不需要额外配置
%
% logo-size = {0.5\textwidth}, % 只设置宽度
% logo-size = {{}, 3cm}, % 只设置高度
% logo-size = {8cm, 3cm}, % 设置宽度和高度
% 设置校名图片的大小
% 通常不需要调整
%
% declaration-page = {declaration.pdf},
% 插入扫描版的声明页 PDF 文档
% 默认使用预定义的声明页,但不带签名
%
% auto-make-cover = true
% 是否自动生成论文封面(封一)、指导小组成员名单(封二)和声明页(封三)
% 除非特殊需要(e.g. 不要封面),否则不建议设为 false
},
%
% info 类用于录入论文信息
info = {
title = {面向xxx的研究},
% 中文标题
% 长标题建议使用 “\” 命令手动换行(不是指在源文件里输入回车符,当然
% 源文件里适当的换行可以有助于代码清晰):
% title = {最高人民法院、最高人民检察院关于适用\
% 犯罪嫌疑人、被告人逃匿、死亡案件违法所得\
% 没收程序若干问题的规定},
%
title* = {Research on xxx},
% 英文标题
%
author = {李六},
% 作者姓名
%
% author* = {Your name},
% 作者姓名(英文 / 拼音)
% 目前不需要填写
%
supervisor = {张三\quad 教授},
% 导师
% 姓名与职称之间可以用 \quad 打印一个空格
%
major = {网络空间安全},
% 专业
%
degree = academic,
% 学位类型
% 允许选项:
% degree = academic|professional
% 说明:
% academic 学术学位
% professional 专业学位
%
department = {计算机科学技术学院},
% 院系
%
student-id = {1100000000},
% 作者学号
%
date = {2023 年 12 月 31 日},
% 日期
% 注释掉表示使用编译日期
%
% secret-level = ii,
% 密级
% 允许选项:
% secret-level = none|i|ii|iii
% 说明:
% none 不显示密级与保密年限
% i 秘密
% ii 机密
% iii 绝密
%
% secret-year = {五年},
% 保密年限
% secret-level = none 时该选项无效
%
instructors = {
{张\quad 三 \quad 教\quad 授},
{杨四 \quad 副教授},
{李\quad 五 \quad 副教授}
},
% 指导小组成员
% 使用英文逗号 “,” 分隔
% 如有需要,可以用 \quad 手工对齐
%
keywords = {关键词1, 关键词2},
% 中文关键词
% 使用英文逗号 “,” 分隔
%
keywords* = {keyword1, keyword2},
% 英文关键词
% 使用英文逗号 “,” 分隔
%
clc = {TP314},
% 中图分类号
%
% jel = {C02},
% JEL 分类号,仅适用于经济学院等部分院系
}
}
% 关闭目录中的超链接(用黑色显示)
% \hypersetup{linktoc=none}
% 需要的宏包可以自行调用
\usepackage{physics}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{color,colortbl,array}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{xspace}
\usepackage{verbatim}
\usepackage{tikz}
\usepackage{amssymb}
\usepackage[ruled,vlined,commentsnumbered]{algorithm2e}
\usepackage{algorithmic}
\usepackage{amsmath}
\usepackage{bbding}
\usepackage[nointegrals]{wasysym}
\usepackage{framed}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{url}
% \usepackage{caption2}
% \renewcommand{\figurename}{图}
% \renewcommand{\tablename}{表}
% \usepackage{filehook,currfile}
% \usepackage{xeCJK}
% 需要的命令可以自行定义
% \newcommand{\hilbertH}{\symcal{H}}
% \newcommand{\ee}{\symrm{e}}
% \newcommand{\ii}{\symrm{i}}
\newcommand{\ls}[1]{\textcolor{blue}{#1}}
\begin{document}
% 这个命令用来关闭版心底部强制对齐,可以减少不必要的 underfull \vbox 提示,但会影响排版效果
% \raggedbottom
% 前置部分包含目录、中英文摘要以及符号表等
\frontmatter
% 目录
\tableofcontents
% 插图目录
\listoffigures
% 表格目录
\listoftables
\begin{abstract}
中文摘要
\end{abstract}
\begin{abstract*}
English abstract
\end{abstract*}
% 符号表
% 语法与 LaTeX 表格一致:列用 & 区分,行用 \ 区分
% 如需修改格式,可以使用可选参数:
% \begin{notation}[ll]
%
%
% \end{notation}
% 可选参数与 LaTeX 标准表格的列格式说明语法一致
% 这里的 “ll” 表示两列均为自动宽度,并且左对齐
% \begin{notation}[ll]
%
%
%
%
%
%
% \end{notation}
% 主体部分是论文的核心
\mainmatter
\include{1.Intro}
\include{2.RelatedWork}
\include{3.RightToBeInformedProtection}
\include{4.UserTagSpoofing}
\include{5.CrossUserOverSharing}
\include{6.ConclusionAndOutlook}
% 建议采用多文件编译的方式
% 比较好的做法是把每一章放进一个单独的 tex 文件里,并在这里用 \include 导入,例如
% \include{chapter1}
% \include{chapter2}
% \include{chapter3}
% 附录部分
% \appendix
% \include{7.Appendix}
% 后置部分包含参考文献、声明页(自动生成)等
\backmatter
% 打印参考文献列表
\printbibliography
\begin{acknowledgements}
致谢
\end{acknowledgements}
\end{document}`
本身有尝试过是不是cjk-font找不到对应中文字体引起的,但是在本地设置成cjk-font = mac后,发现也还是一样,后文每个章节里使用的表格和图的命令示例如下:
\begin{figure}[htb]
\centering
\includegraphics[width=0.95\textwidth]{eps/xx框架.pdf}
\caption{xxx框架}
\label{fig:arch}
\end{figure}
\begin{table}[h]
\caption{xx分布}
\centering
\resizebox{0.6\textwidth}{!}{\begin{tabular}{ccc}
\toprule%第一道横线
title1& title2 & title3\
\midrule
1 & 2& 3\
4 & 5 & 6 \
7 & 8 & 9 \
\bottomrule
\end{tabular}}
\label{tab:cbn}
\end{table}
from fduthesis.
请移除\usepackage[english]{babel}
。
from fduthesis.
请移除
\usepackage[english]{babel}
。
感谢!移除后问题已解决^_^,前面太粗心没留意到🤝
from fduthesis.
Related Issues (20)
- 长标题在页眉的显示问题
- 参考文献间距调整的问题 HOT 9
- 编译不通过 HOT 1
- 请问一下参考文献的引用是上角标,能改成和正常字体等高的普通cite的格式么 HOT 2
- `\SpecialMainEnvIndex` 和 `\HDorg@SpecialEnvIndex` 无法被 patch
- 页眉如何分单双页显示 HOT 1
- 在英文模板中添加中文摘要 HOT 1
- 关键词啊不是关键字
- 关于使用 \fdusetup 参数列表不能出现空行的问题 HOT 6
- 如何把目录中的“章”改成自己想要的说法,如:“节”,“回”,“部分”等? HOT 1
- siunitx package problem HOT 1
- 引用环境中添加定义/定理等 HOT 1
- 使用 v0.9a 版本模板,编译中遇到如下问题 HOT 4
- 参考文献 题目中的公式没有被识别 HOT 1
- 来自 arXiv 引用的显示问题 HOT 10
- soul包与模板冲突,无法使用 HOT 5
- ! LaTeX Error: Inconsistent local/global assignment
- `main.yml` 没有一致使用指定的 CTAN 镜像
- 本科毕业论文封面编译失败 HOT 23
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 fduthesis.