Giter Site home page Giter Site logo

ctex_book's Introduction

中文Latex图书模板

用Latex编写中文书是让人头疼的,如果不是需要输入很多公式,很多人是不愿意用latex排版中文书的。

在ctex宏包发布之前, latex系统对中文排版的支持一直不太理想。虽然用CJK能让中文正常显示,但是一些排版细节, 如章节号、行距、字体选择、缩进等都需要写很多命令重新定义。ctex宏包较好地解决了这个问题。

这里给出一个latex中文图书模板。 该模板主要包括:

  1. 扉页
  2. 序言
  3. 前言
  4. 目录
  5. 部分
  6. 章以下标题
  7. 分栏模式
  8. include包含其他tex文档
  9. 标题名称转换
  10. 标题部分加入目录
  11. 自动生成索引
  12. 参考文献(待完善)
  13. 生成目录、索引以及参考文献的超链接
  14. 后记

编译的方法是: 将代码部分保存到文本文件中, 用UTF-8编码。 之后用XeLaTeX编译即可生成pdf文档。 虽然生成的图书效果值得商榷, 但是相信编译为书稿后, 再交给专业排版人员, 一定能省很多事。

利用这个模板,编写植物名录、植物图集等会容易很多。可以借助其他脚本语言如Python或者R处理相应的数据库,生成tex代码用包含命令\include{}之后,再编译即可。

ctex_book's People

Contributors

helixcn 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.