Giter Site home page Giter Site logo

reportpaper's Introduction

logo

ReportPaper

@jiyiren

A LaTeX Template for Report, With Supporting Chinese Language

环境

需要先安装 LaTeX 环境,而支持中文的 LaTeX 为 CTeX,CTeX 也只是一种标准定义,其通常分为两个发行版:

两个发行版都是全平台支持的,很多人会将 MacTex 也作为一种发行版,但我喜欢将其归类于 TeXLive 发行版中,这看自己的意愿。

因此,环境的话大家可以自行选择,这里为使用 TeXLive,下面为安装包地址,大概有 3 GB 左右:

安装后将命令加入环境变量,并使之生效,通过 which latex 可查看是否设置成功:

$ which latex
/usr/local/texlive/2018/bin/x86_64-darwin/latex

IDE

LaTeX 实际上如果 Java 语言一样,都需要先配置环境,然后选择一款自己喜欢的 IDE 进行编写“代码”。

当然所有文本编辑器都可以编写 LaTeX 或者 Java 等其他语言“代码”。这里的 IDE 指集成了一些语言本地化的功能,比如编译、特殊符号等等。

LaTeX 的发行版中会自带一款编辑器,用 TexLive 的话,MacOS 上会有个叫 TexShop 的编辑器,而 Windows 上则会是一个叫 TexWorker 的编辑器,这些是都可以胜任编写工作的。

另外,对于第三的 LaTeX 编辑器,笔者也用的不多,这里我推荐两个:

我个人推荐前两个,因为第三个收费且不跨平台,之所以写上第三个,主要是因为网络上很多博客或用户都推荐用第三个,这个我使用时也感觉不错,但每次我使用都得到 Windows 上使用,比较麻烦。当然,如果你使用 Windows 且有钱,WinEdt 确实使用体验和功能都是比较好的。

使用

上面两点都讲了没实际作用的环境配置,对于使用本项目实际上很简单:

  • 使用 XeLaTeX 编译:

     xelatex report_paper.tex
  • 用 BiBTeX 再次编译生成的 report_paper.aux 文件:

     bibtex report_paper.aux
  • 之后再次用 XeLaTeX 编译:

     xelatex report_paper.tex

这时候生成的 pdf 文件是最全和完整的文档。

上面是命令行编译的,大家若使用 IDE 则是比较简单的操作:

  • 编译选择 XeLaTeX 编译一次;
  • 再选择 BiBTeX 编译一次;
  • 再选择 XeLaTeX 编译一次;

这时产生的 pdf 和上面一致;通过编辑器形式不用自己指定文件名,因此更简单方便。

最终生成的 pdf 文档示例:

参考

reportpaper's People

Contributors

jiyiren avatar

Watchers

James Cloos 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.