Giter Club home page Giter Club logo

bookdown-swufe-demo01's Introduction

前言

本模板(包括thesis-swufe.cls和thesis-swufe.bst)完全复制自swufe模板

感谢swufe模板的开发/维护者Pro.Gan提供的补充信息。

  • 几个注意事项
  1. 本模板的额front cover和back cover使用word生成,将做好的cover保存成pdf放到pic/pdf文件夹下,替换成对应文件即可。

  2. 参考文献不要使用bookdown的原生写法即[@XXX]应使用\cite{}或者\citing{}.

  3. 如果你更熟悉latex而不是R和Rstudio那么可以移步sierxue/ThesisSWUFE

  4. 经测试,bookdown预定义好的theoremblock与本模板有冲突,需要使用定理的,建议阅读sierxue/ThesisSWUFE的使用问帮

  5. 更详细的注意事项请移步sierxue/ThesisSWUFE

  6. 本模板亲测在win10和centos7(centos会出现字体缺失,需手动安装对应字体)下编译通过。

This is a template thesis of SWUFE(Southwestern University of Finance and Economics). Thanks to the bookdown(https://github.com/rstudio/bookdown), now you can write your thesis using the Rmarkdown syntax.

Usage

Latex Environment

If you do not have Latex installed, I highly recommend you to use the tinytex package.

install.packages('tinytex')
tinytex::install_tinytex()

When using this template, you probabily missing some latex packages. tinytex will try to install them automatically. However, there are some packages that automatically installing will fail. Here are the commands to install them manually:

# 自动安装失败的宏包会提示XXX.sty cannot find
tinytex::tlmgr_install("XXX")

Thesis

Set the basic infomation in the index.Rmd file.

site: bookdown::bookdown_site
documentclass: book
output:
  bookdown::pdf_book:
    includes:
      in_header: misc/preamble.tex
    latex_engine: xelatex
    dev: "cairo_pdf"
    keep_tex: true
    pandoc_args: "--top-level-division=chapter"
    toc_depth: 3
    template: misc/main.tex
    quote_footer: ["\\begin{flushright}", "\\end{flushright}"]
# bachelor、master、promaster、doctor、engdoctor
classoption: "master"
chineseabstract: "中文摘要: 这里是中文摘要"
englishabstract: "This is a English abstract."
acknowledgement: "这里是致谢:在攻读硕士/博士学位期间,首先衷心感谢我的导师XXX"  
baseinfo:
  chinesekeyword: ["贸易战, 经济, 很关键"]
  englishkeyword: ["Trade War, economics, very important"]
bibliography: reference.bib
bibliography_all: true
link-citations: true
appendix: false
translate_original: false
translate_chinese: false

致谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.