annotate ja/htlatex.book @ 838:d1f676a6a4b3 default tip

update mq chapter. propagate ef53d025f410.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 03 Dec 2009 01:26:08 +0900
parents f72e4be6dd37
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
f72e4be6dd37 intermediate commit.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 290
diff changeset
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
f72e4be6dd37 intermediate commit.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 290
diff changeset
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
f72e4be6dd37 intermediate commit.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 290
diff changeset
13
f72e4be6dd37 intermediate commit.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 290
diff changeset
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
f72e4be6dd37 intermediate commit.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 290
diff changeset
15
170
9cd856b4bd21 Try to make HTML build a bit more portable.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
16 echo status $$