Mercurial > hgbook
annotate ja/htlatex.book @ 837:b775f963b18c
Clean up chapter 8, and add content
propagate 7226e5e750a6
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 15 Sep 2009 22:32:03 +0900 |
parents | f72e4be6dd37 |
children |
rev | line source |
---|---|
170
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 #!/bin/bash |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 # |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 # This script is horrible. It's essentially a hacked copy of |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 # /usr/bin/htlatex from Fedora Core 6. I apologise for any lasting |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
5 # pain reading it causes. |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 |
292 | 8 |
170
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 (cd $4 && bibtex hgbook) |
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 (cd $4 && makeindex hgbook) |
292 | 11 |
170
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 |
292 | 13 |
14 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 | |
15 | |
170
9cd856b4bd21
Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
16 echo status $$ |