Skip to content

noromanba/progit-ja-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Generated PDF of Pro Git. Powerd by Knoppix

LICENSE

Publisher: Scott Chacon

The entire Pro Git book, written by Scott Chacon and published by Apress, is available here. All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Print versions of the book are available on Amazon.com.

CC BY-NC-SA 3.0

Creative Commons Attribution Non Commercial Share Alike 3.0 licenseCreative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. http://creativecommons.org/licenses/by-nc-sa/3.0/

Original

You can see the original document from HERE

Version

Based version of Pro Git

ja 2011-11-29

$ tig
$ t
drwxr-xr-x TAKAGI Masahiro    2011-11-29 04:13 ja

Last commit

commit 92feb6631b83bd9ec52b4f9d81d6f4ff528c4e0b
Merge: c81c8d5 789a20c
Author: Scott Chacon <xxx@xxx.com>
Date:   Sat May 12 09:14:40 2012 -0700

    Merge pull request #201 from PinGwynn/feature
    
    Added russian titles in to ebooks maker

How to make PDF

PDF target language is ja. It's try-and-error log.

Download Knoppix

Use this Live CD distro: KNOPPIX Japanese edition

KNOPPIX 6.7.1 LCAT CD iso Image download from HERE

uname -a

Linux Microknoppix 3.0.4 #1 SMP PREEMPT Mon Oct 17 07:15:29 UTC 2011 i686 GNU/Linux

Knoppix makes up to bootable USB

/usr/bin/flash-install

install to usb (SD 2GB) done

Make knoppix.img after USB boot

approx. 1048 B

Update apt-line

$ sudo aptitude update

Install Ruby

$ sudo aptitude install ruby

ruby

$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]

Install Git

$ sudo aptitude install git git-core

git

$ git --version
git version 1.7.2.5

Clone progit repo

https://github.com/progit/progit

SSH protocol: NG

https://github.com/progit/progit.git

Git protocol: OK

git://github.com/progit/progit.git

./makepdfs ja

$./makepdfs ja
    Missing dependencies: pandoc, xelatex.
    Install these and try again.

Install xetex, pandoc

$ sudo aptitude install texlive-xetex texlive-common pandoc

xetex

$ xetex --version
XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 3.8.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.3.4; using 1.2.3.4
Compiled with FreeType2 version 2.4.2; using 2.4.2
Compiled with fontconfig version 2.8.0; using 2.8.0
Compiled with libpng version 1.2.44; using 1.2.44
Compiled with poppler version 0.12.4

pandoc

$ pandoc --version
pandoc 1.5.1.1
Compiled with syntax highlighting support for:
Ada, Alert, Asp, Awk, Bash, Bibtex, C, Cmake, Coldfusion, Commonlisp, Cpp, Css,
D, Djangotemplate, Doxygen, Dtd, Eiffel, Erlang, Fortran, Haskell, Html, Java,
Javadoc, Javascript, Json, Latex, Lex, LiterateHaskell, Lua, Makefile, Matlab,
Mediawiki, Modula3, Nasm, Objectivec, Ocaml, Octave, Pascal, Perl, Php,
Postscript, Prolog, Python, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sgml,
Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Xml, Xslt, Yacc
Copyright (C) 2006-2010 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is no
warranty, not even for merchantability or fitness for a particular purpose.

./makepdfs ja

! LaTeX Error: File `xkeyval.sty' not found.

Install texlive-latex-recommended

$sudo aptitude install texlive-latex-recommended

./makepdfs ja

    Running XeTeX:
    Pass 1... failed with:
        ! Font \@tempfontb="VL PGothic/ICU" at 10.0pt not loadable: Metric (TFM) fil

Font replace

replace 'VL Gothic' to 'IPAGothic'

$ cd ~/repo/progit/latex
$ cp config.yml config.yml.org
vi config.yml

./makepdfs ja

$./makepdfs ja

Will generate pdf for the following languages:
     ja

The generation process will start now.
ja:
    Parsing markdown... done
    Creating main.tex for ja... done
    Running XeTeX:
        Pass 1... done
        Pass 2... done
        Pass 3... done
    Moving output to progit.ja.pdf... done    

real    0m20.469s
user    0m23.815s
sys    0m1.060s


Done!Linux Microknoppix 3.0.4 #1 SMP PREEMPT Mon Oct 17 07:15:29 UTC 2011 i686 GNU/Linux

Hooray!

$ ls *.pdf
progit.ja.pdf

You can see it like this: $ xpdf progit.ja.pdf

Enjoy!

Releases

No releases published

Packages

No packages published