Giter Site home page Giter Site logo

typeset's Introduction

用 LaTeX 排版技术书籍

PDF下载

http://code.google.com/p/chenshuo/downloads/detail?name=typeset.pdf

以下说明由网友 Frank Dai (https://github.com/soulmachine) 编写。

如何编译PDF

命令行编译

docker run -it --rm -v $(pwd):/project -w /project soulmachine/texlive xelatex -interaction=nonstopmode typeset.tex

vscode下编译

本项目已经配置好了vscode devcontainer, 可以在 Windows, Linux 和 macOS 三大平台上编译。

用 vscode 打开本项目,选择右下角弹出的 "Reopen in Container",就会在容器中打开本项目,该容器安装了 Tex Live 2022 以及所需要的10个字体。

点击vscode左下角的齿轮图标,选择 Command Palette,输入tasks, 选择 Run Task, 选择 typeset,即可启动编译。

typeset's People

Contributors

bryant1410 avatar chenshuo avatar soulmachine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typeset's Issues

是否支持Linux呢?

工作后习惯了Linux的强大命令,改成Ubuntu了,请问一下,您这个支持吗?

Undefined control sequence

[1] <use  "diagrams/linebreak-crop.pdf"  page2>
! Undefined control sequence.
\f@ncyelf ->\small \normalfont \youyuan 
                                        \BookTitle by 陈硕\strut 
l.94 

PDF中的中文,复制到记事本中是乱码

编译成PDF后,PDF中的中文,无论是正文还似乎代码中的中文,复制到记事本中是乱码。

这样会导致读者想要复制粘贴代码时,会出现乱码,只能到github repo的latex源代码里复制粘贴代码,很麻烦。

The Tex Files are wrong with \LaTeX and \TeX symbols.

Below is the problem report of my Texlive in Linux:

line 4: Undefined control sequence ...易地把知识应用到 \LaTeX排版中去
line 15: Undefined control sequence ...来排版自己书的人少走一些弯路
line 17: Undefined control sequence ...\LaTeX使用方面的问题请先阅读FAQ
line 29: Undefined control sequence \section{为什么要用\LaTeX排版?}
line 29: Undefined control sequence \section{为什么要用\LaTeX排版?}
line 29: Undefined control sequence \section{为什么要用\LaTeX排版?}
line 29: Undefined control sequence \section{为什么要用\LaTeX排版?}
line 47: Undefined control sequence ...的断行和断页采用动态规划算法
line 61: Undefined control sequence ...和\LaTeX都会把长单词移到第三行
line 101: Undefined control sequence 注意,\TeX本身是非常稳定的
line 156: Undefined control sequence 编辑往往既不会\LaTeX也不会Git
line 96: Undefined control sequence \LaTeX默认是按章重置脚注编号
line 104: Undefined control sequence \LaTeX默认的脚注编号是数字
line 109: Undefined control sequence ...eX默认的脚注位置不是固定置底
: Command @makecol has changed.
line 38: Token not allowed in a PDF string (Unicode):(hyperref) \kern 1.66672pt(hyperref) removed
: No file typeset.ind.

Actually the problem is caused by \LaTeX and there should be a space behind the \LaTeX command,
And Now there will be only some warnings but no errors and I get the PDF file at last.

: Command @makecol has changed.
line 38: Token not allowed in a PDF string (Unicode):(hyperref) \kern 1.66672pt(hyperref) removed
: No file typeset.ind.

The font "Linux Libertine O" cannot be found.

hi,我用的是mac 10.9下面的tex live2013,今天在编译https://github.com/soulmachine/leetcode的tex文件的时候发现了上面的错误.我先安装了Linux Libertine的字体,发现还是出现上述错误.看了一下系统下面改字体的名字叫做Linux Libertine,没有后面的大O.修改后可以成功编译.不知道windows下面字体的选择是怎么样的.另外,我看了一下你的format.cls,发现你有注释掉Times New Roman的字体,不知你当时选择Linux Libertine这个字体的原因是什么?如果可以的话,使用Times的字体更加具有通用性,也不会出现上面的这种字体名字错误.

关于“动版”与Latex环境备份

我也挺喜欢把开发环境用虚拟机备份的,不过和动版感觉关系不大,因为有时候对文字少有修改就可能导致Latex排版时的显著改变(图、文字布局发生变化等),这个问题在Latex版本不变时就有。
我认为备份Latex环境的主要意义是防止更新后出现宏包冲突的情况出现,有的时候甚至无法编译成功。
在有备份、有精力的情况下还是推荐以一定频率更新Latex环境,这至少没有坏处。

Graphviz 支持中文

需要在输入文件中设置中文字体,另外注意输入文件的编码。

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.