Giter Site home page Giter Site logo

chaonin / cn-latex-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lyx-001/cn-latex-templates

0.0 0.0 0.0 5.19 MB

中文报告/作业/幻灯片的LaTeX模板 LaTeX templates for reports/homeworks/slides in Chinese

License: MIT License

Python 3.90% TeX 96.10%

cn-latex-templates's Introduction

中文报告/作业/幻灯片的LaTeX模板

配置LaTeX环境

  1. 安装一个LaTeX发行版。我用的是TeX Live 2019,现在已经有最新的2020版了。可以从国内镜像下载。
  2. (可选)配置一个高颜值的开发环境,例如:
  • TeXstudio(如果下载速度慢可复制链接到迅雷下载)
  • VS code + LaTeX Workshop(注意要把配置里的%DOC%改为%DOCFILE%,否则会出现无法识别中文路径的问题)

report-template

中文实验报告/课程作业模板
适用于:一般性的实验报告、课程作业等
不适用于:有明确格式规定的正式论文

使用方法:

  1. 修改report-template.tex中的正文内容和reference.bib中的引文内容
  2. 连续执行下面4个命令(注意需要用xelatex编译)
    xelatex report-template.tex
    bibtex report-template.aux
    xelatex report-template.tex
    xelatex report-template.tex
    如果没有引文,则注释掉report-template.tex中的bibtex配置,只需用xelatex编译即可
  3. 代码在Window10 + TeX Live 2019下测试通过。在macOS或Linux上由于字体库的问题,第83行的\setCJKmainfont{宋体}可能会报错,可根据您的系统调整设置或直接注释掉,这样会使用默认的中文字体,一般在正文环境下也是宋体,但其他环境可能不一样,例如在我的电脑上,去掉这行后算法伪代码中的条件会变为楷体

homework-template

中文作业模板
适用于:网课作业等

使用方法:

  1. 修改homework-template.tex中的作业内容
  2. xelatex homework-template.tex(注意需要用xelatex编译)
  3. 字体问题同上

slide-template

中文幻灯片模板
适用于:各种presentation

使用方法:

  1. 修改slide-template.tex中的正文内容和reference.bib中的引文内容
  2. 连续执行下面4个命令(注意需要用xelatex编译)
    xelatex slide-template.tex
    bibtex slide-template.aux
    xelatex slide-template.tex
    xelatex slide-template.tex
    如果没有引文,则注释掉slide-template.tex中的bibtex配置,只需用xelatex编译即可
  3. 字体用的是beamer自带的那套,目前未发现问题

cn-latex-templates's People

Contributors

lyx-001 avatar

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.