[Qgis-community-team] manual in pdf

Ko Nagase nagase at georepublic.co.jp
Tue Oct 15 10:07:21 PDT 2013


Hi Richard,

Did you mean not Debian Wheezy but Debian Squeeze?
Because Debian Wheezy include "texlive-lang-cjk" package.
http://packages.debian.org/en/wheezy/texlive-lang-cjk

2013/10/15 Richard Duivenvoorde <rdmailings at duif.net>:
> On 15-10-13 05:23, NUIMURA, Takayuki wrote:
> But still the problem remains on Debian Wheezy. Are you aware of a way
> to produce valid pdf's on there? Because that is the current OS of the
> server where all docs are build. I have troubles using platex there...
> Another workaround would be to (let it) build somewhere else, and upload
> it regularly to docs.qgis.org

I confirmed that Japanese PDF can be built on Debian Squeeze by
installing some packages and editing Makefile.

[Additional packages for Debian Squeeze]
=====
cmap-adobe-japan1
cmap-adobe-japan2
latex-cjk-all
nkf
okumura-clsfiles
ptex-base
ptex-bin
texlive-fonts-extra
=====

[Additinal packages for Debian Wheezy]
=====
nkf
texlive-lang-cjk
=====

[Makefile modification part]
=====
:
@-if [ $(LANG) = "ja" ]; then \
        cd $(BUILDDIR)/latex/$(LANG); \
        nkf -W -e --overwrite QGISUserGuide.tex; \
        platex -interaction=batchmode -kanji=euc -shell-escape
QGISUserGuide.tex; \
        platex -interaction=batchmode -kanji=euc -shell-escape
QGISUserGuide.tex; \
        platex -interaction=batchmode -kanji=euc -shell-escape
QGISUserGuide.tex; \
        dvipdfmx QGISUserGuide.dvi; \
else \
:
=====

Result PDF files are here.
Debian Squeeze:
https://dl.dropboxusercontent.com/u/93823511/QGIS-testing-UserGuide-ja-squeeze.pdf
Debian Wheezy: https://dl.dropboxusercontent.com/u/93823511/QGIS-testing-UserGuide-ja-wheezy.pdf


Hi Takayuki,

Thanks for 3rd platex command advise!


Regards,

-- 
Ko Nagase (長瀬 興)
Georepublic Japan
mail: nagase at georepublic.co.jp
web: http://georepublic.co.jp


More information about the Qgis-community-team mailing list