summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTong Hui <tonghuix@gmail.com>2016-09-30 19:13:40 +0800
committerTong Hui <tonghuix@gmail.com>2016-09-30 19:13:40 +0800
commite2f6efd13a4a6a8cb843ff9bb3e4386ba7f328c7 (patch)
tree7b123d2bacb1bf166276efce303036e61922ea15
parent4f50f0d9413e0e9a4739c21cba980e679e583f44 (diff)
downloadfsfs-zh-e2f6efd13a4a6a8cb843ff9bb3e4386ba7f328c7.tar.xz
better pdf, with A5 page
-rwxr-xr-xMakefile2
-rw-r--r--docs/categories.md2
-rw-r--r--docs/initial-announcement.md8
-rw-r--r--pdf/template.tex75
4 files changed, 43 insertions, 44 deletions
diff --git a/Makefile b/Makefile
index 4045d9f..85716e7 100755
--- a/Makefile
+++ b/Makefile
@@ -110,8 +110,6 @@ define pdfgen
@echo "PDF Compiled!"
- rm *.tex *.aux *.fot *.toc *.log *.out
-
@echo
@echo "Done!"
endef
diff --git a/docs/categories.md b/docs/categories.md
index 6d3d48e..469b428 100644
--- a/docs/categories.md
+++ b/docs/categories.md
@@ -4,7 +4,7 @@
> 参见《应避免使用(或慎用)的词语,由于它们是不公正的或者引起混淆的》一文。
-![category](category-zh.png)
+![自由与非自由软件的分类](category-zh.png)
> 本图最初由 Chao-Kuei 创作并且经过其他人的更新,解释了不同类别的软件之间的区别。现有它的矢量图版,位于<http://gnu.org/philosophy/category.svg>以及 XFig 格式版本,位于<http://gnu.org/philosophy/category.fig>。本图采用 GNU 通用公共许可证(GNU GPL)2.0 或更高版本、GNU 自由文档许可证(GNU FDL)1.2 或更高版本、或者创作共用:署名-相同方式共享(CC BY-SA)许可证 2.0 或更高版本。
diff --git a/docs/initial-announcement.md b/docs/initial-announcement.md
index 49e42e9..16af237 100644
--- a/docs/initial-announcement.md
+++ b/docs/initial-announcement.md
@@ -4,15 +4,16 @@
纵观历史,可以发现 GNU 工程在很多地方都与这份初始通告有很多差异。比如实际是拖延到了 1984 年 1 月才开始。而自由软件的很多哲学理念也是数年之后才得以厘清。
-
-<pre>
+```
From mit-vax!mit-eddie!RMS@MIT-OZ
From: `RMS%MIT-OZ@mit-eddie`
Newsgroups: net.unix-wizards,net.usoft
Subject: new Unix implementation
Date: Tue, 27-Sep-83 12:35:59 EST
Organization: MIT AI Lab, Cambridge, MA
+```
+<quate>
自由的 Unix!
今年的感恩节我要去写一个完整的类 UNIX 软件系统,命名为 GNU (Gnu's Not Unix),并以
@@ -72,8 +73,7 @@ Usenet:
Richard Stallman
166 Prospect St
Cambridge, MA 02139
-
-</pre>
+</quate>
[^init-1]:这里用词没有注意,初衷是想说没有人需要为使用 GNU 系统而索要*授权*。然而这个词没有说的很清晰,结果人们经常以为获取 GNU 的副本需要很少或者免费。而这从来都是不是目的。
diff --git a/pdf/template.tex b/pdf/template.tex
index 119e7b5..00f4acf 100644
--- a/pdf/template.tex
+++ b/pdf/template.tex
@@ -1,4 +1,4 @@
-\documentclass[a4paper]{book}
+\documentclass[a5paper, UTF8, openright]{book}
\usepackage[absolute,overlay,showboxes]{textpos}
% \usepackage[lining]{ebgaramond}
\usepackage[CJKspace]{xeCJK}
@@ -30,6 +30,8 @@
\usepackage{changepage}
\usepackage{pdfpages}
+\usepackage{geometry}
+\geometry{left=1.5cm,right=1.5cm,top=2cm,bottom=2cm}
% To support tables so required tabulary package
\usepackage{tabulary}
@@ -228,7 +230,6 @@ framexleftmargin=20pt
\setcounter{footnote}{1}
\title{{自由软件,自由社会(第三版)}}
-\author{理查德·斯托曼著,北京 GNU/Linux 用户组协力翻译}
\makeatletter
\let\savedauthor=\@author
@@ -240,50 +241,50 @@ framexleftmargin=20pt
\title{\huge{\savedtitle}}
-\author{\textbf{\savedauthor}\thanks{本书基于 GNU 自由文档协议 1.3 版 (GNU Free Documentation License 1.3) 授权发布,可自由复制和分发,和/或基于 GNU 自由文档协议 1.3 版或自由软件基金会发布的更高版本,做出修改。本书使用 Markdown 书写,源码地址:\url{https://github.com/beijinglug/fsfs-zh/}。}}
+\author{\textbf{[美] Richard .M Stallman 著,北京 GNU/Linux 用户组协力翻译}\thanks{本书基于 GNU 自由文档协议 1.3 版 (GNU Free Documentation License 1.3) 授权发布,可自由复制和分发,和/或基于 GNU 自由文档协议 1.3 版或自由软件基金会发布的更高版本,做出修改。本书使用 Markdown 书写,源码地址:\url{https://github.com/beijinglug/fsfs-zh/}。}}
\def\w3cdtfymd{\the\year-\ifnum\month<10 0\fi\the\month-\ifnum\day<10 0\fi\the\day}
\date{\w3cdtfymd}
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash
-\makeatletter
- \setlength\headheight{12\p@}
- \setlength\headsep {.25in}
- \setlength\topskip {10\p@}
- \setlength\footskip{.35in}
- \setlength\textwidth{400\p@}
+%\makeatletter
+% \setlength\headheight{12\p@}
+% \setlength\headsep {.25in}
+% \setlength\topskip {10\p@}
+% \setlength\footskip{.15in}
+% \setlength\textwidth{400\p@}
- \setlength\@tempdima{\paperheight}
- \addtolength\@tempdima{-2in}
- \divide\@tempdima\baselineskip
- \@tempcnta=\@tempdima
- \setlength\textheight{\@tempcnta\baselineskip}
- \addtolength\textheight{\topskip}
+% \setlength\@tempdima{\paperheight}
+% \addtolength\@tempdima{0.2in}
+% \divide\@tempdima\baselineskip
+% \@tempcnta=\@tempdima
+% \setlength\textheight{\@tempcnta\baselineskip}
+% \addtolength\textheight{\topskip}
- \setlength\@tempdima {\paperwidth}
- \addtolength\@tempdima {-\textwidth}
- \setlength\oddsidemargin {\paperwidth}
- \addtolength\oddsidemargin {-2.35in}
- \addtolength\oddsidemargin {-\textwidth}
- \setlength\marginparwidth {0pt}
- \@settopoint\oddsidemargin
- \@settopoint\marginparwidth
- \setlength\evensidemargin {\paperwidth}
- \addtolength\evensidemargin{-2.35in}
- \addtolength\evensidemargin{-\textwidth}
- \@settopoint\evensidemargin
+% \setlength\@tempdima {\paperwidth}
+% \addtolength\@tempdima {-\textwidth}
+% \setlength\oddsidemargin {\paperwidth}
+% \addtolength\oddsidemargin {0.35in}
+% \addtolength\oddsidemargin {-\textwidth}
+% \setlength\marginparwidth {0pt}
+% \@settopoint\oddsidemargin
+% \@settopoint\marginparwidth
+% \setlength\evensidemargin {\paperwidth}
+% \addtolength\evensidemargin{0.35in}
+% \addtolength\evensidemargin{-\textwidth}
+% \@settopoint\evensidemargin
- \setlength\topmargin{\paperheight}
- \addtolength\topmargin{-2in}
- \addtolength\topmargin{-\headheight}
- \addtolength\topmargin{-\headsep}
- \addtolength\topmargin{-\textheight}
- \addtolength\topmargin{-\footskip} % this might be wrong!
- \addtolength\topmargin{-.5\topmargin}
- \@settopoint\topmargin
- %\@addtoreset{footnote}{page}
-\makeatother
+% \setlength\topmargin{\paperheight}
+% \addtolength\topmargin{-0.2in}
+% \addtolength\topmargin{-\headheight}
+% \addtolength\topmargin{-\headsep}
+% \addtolength\topmargin{-\textheight}
+% \addtolength\topmargin{-\footskip} % this might be wrong!
+% \addtolength\topmargin{-.5\topmargin}
+% \@settopoint\topmargin
+% \@addtoreset{footnote}{page}
+%\makeatother
\fancypagestyle{plain}{\fancyhf{}\fancyfoot{}} % make sure no page number in page of first chapter