Giter Club home page Giter Club logo

latex-book-template's Introduction

Latex Book Template

Latex 中文书籍模板, 已调教好中文编码问题, 可正确显示中文字体 (黑体, 斜体等可以正确显示), 书签, 中英文符号 (特别是代码中的单双引号问题)等.

依赖安装

  • 字体

    使用前确保如下几款字体已经安装到系统中, 这几款字体都是免费开源可商用的.

  • 第三方库

    *nix 下使用 bash scripts/install.sh 即可安装依赖的 pmat 和 typicons 库.

    其中 pmat 用于书写矩阵, 图标包 typicons 用于插入各种图标, 安装目录位于 $HOME/texmf.

使用

假设你的书籍根目录为 your_book_root_directory, 主文件为 main.tex, 只需将本仓库放到根目录即可, 目录组织类似如下

+-- your_book_root_directory
    +-- latex-book-template/
    +-- main.tex

然后在 main.tex 中导入即可

\input{latex-book-template/src/setup}

\begin{document}

\end{document}

要更新本仓库也很方便, 只需进入 latex-book-template 使用 git 拉取最新代码即可.

具体可以参考 example/ 目录下的文件, 进入 example/ 目录执行 make 即可生成 main.pdf 样例文件.

已知问题

  • titlesec bug

    使用 titlesec 2.10.1 版本会导致如下 bug 出现, 详情见:

      https://tex.stackexchange.com/questions/299969/titlesec-loss-of-section-numbering-with-the-new-update-2016-03-15
    

    该问题在 2.10.2 中已经修复,所以解决方法如下:

      mkdir -p ~/texmf/tex/latex/titlesec/
      wget http://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.sty -O ~/texmf/tex/latex/titlesec/titlesec.sty
    

    在编译的输出中定位 titlesec.sty 的位置, 然后打开该文件即可查看版本信息.

latex-book-template's People

Contributors

ikey4u avatar

Watchers

 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.