From f23677e78d4283bccb1d22f0558a75b03cbce4a1 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sun, 24 Nov 2013 00:02:20 +0900 Subject: [PATCH] =?utf8?q?latex=5Fmk=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88?= =?utf8?q?=E3=82=92=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- latex_mk/test/Makefile.template | 1 - latex_mk/test/bibtex/Makefile | 8 +- latex_mk/test/bibtex/rebase_jpnbook.sh | 1 - latex_mk/test/bibtex/update_jpnbook.sh | 2 - latex_mk/test/hyperref/hyperref.tex | 443 +----------------- latex_mk/test/hyperref/rebase_hyperref.sh | 1 - latex_mk/test/hyperref/update_hyperref.sh | 1 - latex_mk/test/makeindex/Makefile | 2 +- latex_mk/test/makeindex/rebase_index.sh | 1 - latex_mk/test/makeindex/update_index.sh | 1 - latex_mk/test/sanposhojo/Makefile | 2 +- latex_mk/test/sanposhojo/eukleides.mk | 11 +- latex_mk/test/sanposhojo/q1_0.eps | 14 - latex_mk/test/sanposhojo/q1_0.euk | 2 +- latex_mk/test/sanposhojo/q1_1.eps | 34 -- latex_mk/test/sanposhojo/q1_2.eps | 56 --- latex_mk/test/toc/Makefile | 3 + latex_mk/test/toc/rebase_toc.sh | 1 - latex_mk/test/toc/toc.tex.5th_add | 78 +++ latex_mk/test/toc/update_toc.sh | 1 - latex_mk/test/toc_hyperref/Makefile | 12 +- latex_mk/test/toc_hyperref/toc_hyperref.tex | 443 +----------------- .../toc_hyperref/toc_hyperref.tex.5th_add | 80 ++++ 23 files changed, 204 insertions(+), 994 deletions(-) delete mode 100644 latex_mk/test/bibtex/rebase_jpnbook.sh delete mode 100644 latex_mk/test/bibtex/update_jpnbook.sh delete mode 100644 latex_mk/test/hyperref/rebase_hyperref.sh delete mode 100644 latex_mk/test/hyperref/update_hyperref.sh delete mode 100644 latex_mk/test/makeindex/rebase_index.sh delete mode 100644 latex_mk/test/makeindex/update_index.sh delete mode 100644 latex_mk/test/sanposhojo/q1_0.eps delete mode 100644 latex_mk/test/sanposhojo/q1_1.eps delete mode 100644 latex_mk/test/sanposhojo/q1_2.eps delete mode 100644 latex_mk/test/toc/rebase_toc.sh create mode 100644 latex_mk/test/toc/toc.tex.5th_add delete mode 100644 latex_mk/test/toc/update_toc.sh create mode 100644 latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add diff --git a/latex_mk/test/Makefile.template b/latex_mk/test/Makefile.template index 25b272a..4258832 100644 --- a/latex_mk/test/Makefile.template +++ b/latex_mk/test/Makefile.template @@ -5,6 +5,5 @@ all: $(TEXTARGETS) include latex.mk clean: tex-clean - $(RM) *.bak distclean: clean tex-distclean diff --git a/latex_mk/test/bibtex/Makefile b/latex_mk/test/bibtex/Makefile index e92b106..e4e9137 100644 --- a/latex_mk/test/bibtex/Makefile +++ b/latex_mk/test/bibtex/Makefile @@ -1,4 +1,4 @@ -.PHONY: all bib-update bib-rebase tex-update rebase clean distclean +.PHONY: all bib-update bib-rebase body-update rebase clean distclean CAT := cat CMP := cmp -s @@ -10,7 +10,7 @@ all: $(TEXTARGETS) include latex.mk -rebase: bib-rebase tex-rebase +rebase: bib-rebase body-rebase bib-update: bib-rebase $(CAT) jpnbook_add.bib >>jpnbook.bib @@ -18,10 +18,10 @@ bib-update: bib-rebase bib-rebase: $(CMP) jpnbook.bib.base jpnbook.bib || $(CP) jpnbook.bib.base jpnbook.bib -tex-update: tex-rebase +body-update: body-rebase $(SED) -i s/bibtexのテスト。/bibtexのテスト。本文だけ変更。/ bibtex.tex -tex-rebase: +body-rebase: $(CMP) bibtex.tex.base bibtex.tex || $(CP) bibtex.tex.base bibtex.tex clean: tex-clean diff --git a/latex_mk/test/bibtex/rebase_jpnbook.sh b/latex_mk/test/bibtex/rebase_jpnbook.sh deleted file mode 100644 index f21d97d..0000000 --- a/latex_mk/test/bibtex/rebase_jpnbook.sh +++ /dev/null @@ -1 +0,0 @@ -if test -s jpnbook.bib.bak; then mv jpnbook.bib.bak jpnbook.bib && touch jpnbook.bib; fi diff --git a/latex_mk/test/bibtex/update_jpnbook.sh b/latex_mk/test/bibtex/update_jpnbook.sh deleted file mode 100644 index 2fe0816..0000000 --- a/latex_mk/test/bibtex/update_jpnbook.sh +++ /dev/null @@ -1,2 +0,0 @@ -cp jpnbook.bib jpnbook.bib.bak -cat jpnbook_add.bib >>jpnbook.bib diff --git a/latex_mk/test/hyperref/hyperref.tex b/latex_mk/test/hyperref/hyperref.tex index 065d3da..534b10e 100644 --- a/latex_mk/test/hyperref/hyperref.tex +++ b/latex_mk/test/hyperref/hyperref.tex @@ -3,486 +3,65 @@ \usepackage{pxjahyper} \begin{document} -\frontmatter -\chapter{序} +\chapter{\TeX って何?} -\mainmatter -\chapter{\TeX とその仲間} - -\section{\TeX って何?} - -\section{\TeX の読み方・書き方} - -\section{\LaTeX って何?} - -\section{\TeX の処理方式} - -\section{\TeX の出力} - -\section{\TeX と日本語} - -\section{その他の\TeX の仲間} - -\section{\TeX のライセンス} - -\section{\TeX の配布} - -\section{これからの\TeX} - -\chapter{使ってみよう} - -\section{Webで\LaTeX を試してみよう} - -\section{TeXworks(Windows)} - -\section{TeXShop(Mac)} - -\section{コマンドで行う方法} - -\section{日本語のテスト} - -\section{長い文書に挑戦} - -\section{Sync\TeX の使い方} - -\section{エラーが起きたなら} +\chapter{まず使ってみよう} \chapter{\LaTeXe の基本} -\section{\LaTeXe の入力・印刷の完全な例} - -\section{最低限のルール} - -\section{半角カナや機種依存文字は使えないの?} - -\section{ドキュメントクラス} - -\section{プリアンブル} - -\section{文書の構造} - -\section{タイトルと概要} - -\section{入力ファイルに書ける文字} - -\section{打ち込んだ通りに出力する方法} - -\section{改行の扱い} - -\section{注釈} - -\section{空白の扱い} - -\section{地の文と命令} - -\section{区切りのいらない命令} - -\section{特殊文字} - -\section{アクセント類} - -\section{書体を変える命令} - -\section{文字サイズを変える命令} - -\section{環境} - -\section{箇条書き} - -\section{長さの単位} - -\section{空白を出力する命令} - -\section{脚注と欄外への書き込み} - -\section{罫線の類} - \chapter{パッケージと自前の命令} -\section{パッケージ} - -\section{簡単な命令の作り方} - -\section{パッケージを作る} - -\section{命令の名前の付け方} - -\section{自前の環境} - -\section{引数をとるマクロ} - -\section{マクロの引数の制約} - -\section{ちょっと便利なマクロ} - \chapter{数式の基本} -\section{数学に無縁な人のために} - -\section{数式用のフォント} - -\section{簡単な数式} - -\section{累乗,添字} - -\section{別行立ての数式} - -\section{和・積分} - -\section{分数} - -\section{字間や高さの微調整} - -\section{式の参照} - -\section{括弧類} - -\section{ギリシア文字} - -\section{筆記体} - -\section{2項演算子} - -\section{関係演算子} - -\section{矢印} - -\section{雑記号} - -\section{latexsymで定義されている文字} - -\section{大きな記号} - -\section{log型関数とmod} - -\section{上下に付けるもの} - -\section{数式の書体} - -\section{ISO/JISの数式組版規則} - -\section{プログラムやアルゴリズムの組版} - -\section{array環境} - -\section{数式の技巧} - \chapter{複雑な数式} -\section{amsmathとAMSFonts} - -\section{いろいろな記号} - -\section{行列} - -\section{分数} - -\section{別行立ての数式} - \chapter{グラフィック} -\section{\LaTeX と図} - -\section{\LaTeX での図の読み込み方} - -\section{graphicxパッケージの詳細} - -\section{\textbackslash includegraphicsの詳細} - -\section{おもな画像ファイル形式} - -\section{PostScriptとは?} - -\section{EPSとは} - -\section{PDFとは} - -\section{文字列の変形} - -\section{色空間とその変換} - -\section{色の指定} - -\section{枠囲み} - \chapter{表組み} -\section{表組みの基本} - -\section{booktabsによる罫線} - -\section{\LaTeX 標準の罫線} - -\section{表の細かい制御} - -\section{列割りの一時変更} - -\section{横幅の指定} - -\section{色のついた表} - -\section{ページをまたぐ表} - -\section{表組みのテクニック} - \chapter{図・表の配置} -\section{図の自動配置} - -\section{表の自動配置} - -\section{左右に並べる配置} - -\section{図・表が思い通りの位置に出ないとき} - -\section{回り込みと欄外への配置} - \chapter{相互参照・目次・索引・リンク} -\section{相互参照} - -\section{目次} - -\section{索引とMakeIndex,mendex} - -\section{索引の作り方} - -\section{索引スタイルを変えるには} - -\section{索引作成の仕組み} - -\section{入れ子になった索引語} - -\section{範囲} - -\section{ページ数なしの索引語} - -\section{ページ番号の書体} - -\section{\textbackslash index命令の詳細} - -\section{ハイパーリンク} - \chapter{文献の参照と文献データベース} -\section{文献の参照} - -\section{すべて人間が行う方法} - -\section{半分人間が行う方法} - -\section{citeとovercite} - -\section{文献処理の全自動化} - -\section{文献データベース概論} - -\section{p\BibTeX の実行例} - -\section{文献スタイルファイル} - -\section{文献データベースの詳細} - -\section{並べ替え順序の制御} - -\section{参照形式を変える} - -\section{\BibTeX のこれから} - \chapter{欧文フォント} -\section{\TeX でのフォントの仕組み} - -\section{フォントの5要素} - -\section{フォントのエンコーディングの詳細} - -\section{ファイルのエンコーディング} - -\section{Computer Modern} - -\section{Latin Modern} - -\section{欧文基本14書体} - -\section{欧文基本35書体} - -\section{\TeX Gyreフォント集} - -\section{その他のフォント} - -\section{数式用フォント} - \chapter{和文フォント} -\section{おもな和文書体} - -\section{p\TeX の和文フォントの仕組み} - -\section{縦組} - -\section{文字コードとp\TeX } - -\section{OpenTypeフォントとAdobe-Japan} - -\section{otfパッケージ} - -\section{otfパッケージの新しいフォントメトリック} - -\section{プロポーショナル仮名,極太フォント} - -\section{jis/utf/otfフォントメトリック} - -\section{和文フォントの追加} - -\section{もっと文字を} - \chapter{ページレイアウト} -\section{ドキュメントクラス} - -\section{ドキュメントクラスのオプション} - -\section{ページレイアウトの変更} - -\section{例:数学のテスト} - \chapter{スタイルファイルの作り方} -\section{\LaTeX のスタイルファイル} - -\section{スタイルファイル中の特殊な命令} - \chapter{美しい文書を作るために} -\section{全角か半角か} - -\section{句読点・括弧類} - -\section{引用符} - -\section{疑問符・感嘆符} - -\section{自動挿入されるスペース} - -\section{アンダーライン} - -\section{欧文の書き方} - -\section{改行位置の調整} - -\section{改ページの調整} - -\section{図の位置の調整} - \chapter{\LaTeX による入稿} -\section{\LaTeX 原稿を入稿する場合} - -\section{PDFで入稿する場合} - -\section{ファイルとフォルダの準備} - -\section{\LaTeX で処理} - -\section{トンボ} - -\section{グラフィック} - -\section{若干のデザイン} - -\section{PDFへの変換} - -\section{その他の注意} - -\chapter{\TeX によるプレゼンテーション} - -\section{jsarticleによるスライド作成} - -\section{Beamerによるスライド作成} - -\section{配布用縮刷の作り方} +\chapter{TeXによるプレゼンテーション} \appendix -\chapter{付録DVDを用いたインストールと設定} - -\section{本書付録DVD-ROMの中身} - -\section{Windowsへのインストールと設定} - -\section{Macへのインストールと設定} - -\section{LinuxやFreeBSDなどへのインストール} - -\section{TeX Live} +\chapter{三美印刷訪問記} \chapter{マニュアルを読むための基礎知識} -\section{ディレクトリ(フォルダ)とパス} - -\section{パスを通すとは?} - -\section{\TeX のディレクトリ構成} - \chapter{基本マニュアル} -\section{tex,latex,ptex,platex} - -\section{uptex,uplatex} - -\section{dvipdfmx} - -\section{ptex2pdf} - -\section{dvips} - -\section{dviout} - -\section{updmap} - -\section{Ghostscript} +\chapter{picture環境} -\chapter{TikZ} +\chapter{Asymptote} -\section{PGF/TikZとは} +\chapter{Windowsへのインストールと設定} -\section{TikZの基本} +\chapter{Macへのインストールと設定} -\section{いろいろな図形の描画} +\chapter{UNIXでのTeX} -\section{グラフの描画(1)} - -\section{グラフの描画(2)} - -\section{Rで使う方法} - -\section{gnuplotとの連携} - -\section{ほかの図との重ね書き} +\chapter{\LaTeXe における多言語処理} \chapter{記号一覧} -\section{特殊文字} - -\section{ロゴ} - -\section{textcompパッケージで使える文字} - -\section{pifontパッケージで使える文字} - -\section{otfパッケージで使える文字} - -\chapter{Adobe-Japan1-5全グリフ(+8文字)} +\chapter{Adobe-Japan1-5全グリフ(+8文字)} \chapter{\TeX 関連の情報源} - -\section{文献} - -\section{ネット上の情報} - -\backmatter -\chapter{あとがき} - -\chapter{索引} \end{document} diff --git a/latex_mk/test/hyperref/rebase_hyperref.sh b/latex_mk/test/hyperref/rebase_hyperref.sh deleted file mode 100644 index b648263..0000000 --- a/latex_mk/test/hyperref/rebase_hyperref.sh +++ /dev/null @@ -1 +0,0 @@ -if test -s hyperref.tex.bak; then mv hyperref.tex.bak hyperref.tex && touch hyperref.tex; fi diff --git a/latex_mk/test/hyperref/update_hyperref.sh b/latex_mk/test/hyperref/update_hyperref.sh deleted file mode 100644 index 768bbfb..0000000 --- a/latex_mk/test/hyperref/update_hyperref.sh +++ /dev/null @@ -1 +0,0 @@ -sed -i.bak -e 's/\\chapter\*{\([^}]*\)}/&\n\\addcontentsline{toc}{chapter}{\1}/' hyperref.tex diff --git a/latex_mk/test/makeindex/Makefile b/latex_mk/test/makeindex/Makefile index 2e3490d..d300098 100644 --- a/latex_mk/test/makeindex/Makefile +++ b/latex_mk/test/makeindex/Makefile @@ -8,7 +8,7 @@ CMP := cmp -s all: $(TEXTARGETS) index-update: - $(SED) -i.bak -e 's/楽譜の/楽譜\\index{がくふ@楽譜}の/' makeindex.tex + $(SED) -i -e 's/楽譜の/楽譜\\index{がくふ@楽譜}の/' makeindex.tex index-rebase: $(CMP) makeindex.tex.base makeindex.tex || $(CP) makeindex.tex.base makeindex.tex diff --git a/latex_mk/test/makeindex/rebase_index.sh b/latex_mk/test/makeindex/rebase_index.sh deleted file mode 100644 index 511b343..0000000 --- a/latex_mk/test/makeindex/rebase_index.sh +++ /dev/null @@ -1 +0,0 @@ -sed -i.bak -e s/楽譜\\\\index{がくふ@楽譜}の/楽譜の/ makeindex.tex diff --git a/latex_mk/test/makeindex/update_index.sh b/latex_mk/test/makeindex/update_index.sh deleted file mode 100644 index c518bd9..0000000 --- a/latex_mk/test/makeindex/update_index.sh +++ /dev/null @@ -1 +0,0 @@ -sed -i.bak -e s/楽譜の/楽譜\\\\index{がくふ@楽譜}の/ makeindex.tex diff --git a/latex_mk/test/sanposhojo/Makefile b/latex_mk/test/sanposhojo/Makefile index 4d567f8..b03d196 100644 --- a/latex_mk/test/sanposhojo/Makefile +++ b/latex_mk/test/sanposhojo/Makefile @@ -6,6 +6,6 @@ all: $(TEXTARGETS) include latex.mk eukleides.mk -distclean: tex-distclean eukleides-distclean +distclean: tex-distclean eukleides-distclean clean: tex-clean eukleides-clean diff --git a/latex_mk/test/sanposhojo/eukleides.mk b/latex_mk/test/sanposhojo/eukleides.mk index f5781b5..d915aaa 100644 --- a/latex_mk/test/sanposhojo/eukleides.mk +++ b/latex_mk/test/sanposhojo/eukleides.mk @@ -3,6 +3,8 @@ EPSTOPDF = epstopdf # ImageMagick CONVERT = convert +eukfiles = $(wildcard *.euk) + %.eps: %.euk $(EUKLEIDES) $< @@ -15,8 +17,11 @@ CONVERT = convert %.jpeg: %.eps $(CONVERT) $< $@ +%.jpg: %.eps + $(CONVERT) $< $@ + eukleides-clean: - $(RM) $(subst .euk,.png,*.eps) + $(if $(eukfiles),$(RM) $(subst .euk,.eps,$(eukfiles))) -eukleides-distclean: - $(RM) $(subst .euk,.pdf,*.euk) $(subst .euk,.png,*.euk) $(subst .euk,.jpeg,*.euk) +eukleides-distclean: eukleides-clean + $(if $(eukfiles), $(RM) $(subst .euk,.pdf,$(eukfiles)) $(subst .euk,.png,$(eukfiles)) $(subst .euk,.jpeg,$(eukfiles)) $(subst .euk,.jpg,$(eukfiles))) diff --git a/latex_mk/test/sanposhojo/q1_0.eps b/latex_mk/test/sanposhojo/q1_0.eps deleted file mode 100644 index c3b5626..0000000 --- a/latex_mk/test/sanposhojo/q1_0.eps +++ /dev/null @@ -1,14 +0,0 @@ -%!PS-Adobe-3.0 EPSF-3.0 -%%BoundingBox: -56.6929 -56.6929 510.2362 226.7717 -%%Title: q1_0.euk -%%Creator: eukleides -%%EndComments -gsave 28.3464566929 dup scale - 0.0176 setlinewidth 1 setlinecap 1 setlinejoin - 0.0000 0.0000 13.0000 0.0000 11.0769 4.6154 moveto -2 {lineto} repeat closepath stroke - 6.5000 0.0000 6.5000 0.0000 180.0000 arc stroke -10.0000 2.0000 2.0000 0 360 arc stroke - 4.7692 4.1538 2.0000 0 360 arc stroke -showpage grestore -%%EOF diff --git a/latex_mk/test/sanposhojo/q1_0.euk b/latex_mk/test/sanposhojo/q1_0.euk index 0baf145..14ec584 100644 --- a/latex_mk/test/sanposhojo/q1_0.euk +++ b/latex_mk/test/sanposhojo/q1_0.euk @@ -5,7 +5,7 @@ D = center(c1) c2 = incircle(A, B, C) E = center(c2) F = intersection(line(A.C), perpendicular(line(A.C), D)) -G = point(circle(A, B, C), arg(line(D.F)):) +G = point(c1, arg(line(D.F)):) H = midpoint(F.G) c3 = circle(H, radius(incircle(A, B, C))) draw diff --git a/latex_mk/test/sanposhojo/q1_1.eps b/latex_mk/test/sanposhojo/q1_1.eps deleted file mode 100644 index 4e4eec4..0000000 --- a/latex_mk/test/sanposhojo/q1_1.eps +++ /dev/null @@ -1,34 +0,0 @@ -%!PS-Adobe-3.0 EPSF-3.0 -%%BoundingBox: -56.6929 -56.6929 510.2362 226.7717 -%%Title: q1_1.euk -%%Creator: eukleides -%%EndComments -gsave 28.3464566929 dup scale - 0.0176 setlinewidth 1 setlinecap 1 setlinejoin - 0.0000 0.0000 13.0000 0.0000 11.0769 4.6154 moveto -2 {lineto} repeat closepath stroke - 6.5000 0.0000 6.5000 0.0000 180.0000 arc stroke -10.0000 2.0000 2.0000 0 360 arc stroke - 4.7692 4.1538 2.0000 0 360 arc stroke -/Dot {0 360 arc fill} bind def - 0.0000 0.0000 0.0500 Dot -13.0000 0.0000 0.0500 Dot -11.0769 4.6154 0.0500 Dot - 6.5000 0.0000 0.0500 Dot -10.0000 2.0000 0.0500 Dot - 5.5385 2.3077 0.0500 Dot - 4.0000 6.0000 0.0500 Dot - 4.7692 4.1538 0.0500 Dot -10.7538 4.4808 moveto 0.1346 -0.3231 rlineto 0.3231 0.1346 rlineto stroke -/NewCenturySchlbk-Roman findfont 0.352778 scalefont setfont -/Print {gsave translate dup 0 0 moveto false charpath flattenpath pathbbox -2 div 4 1 roll -2 div 4 1 roll pop pop moveto show grestore} bind def -(A) 0.0000 -0.3000 Print -(B) 13.0000 -0.3000 Print -(C) 11.3769 4.6154 Print -(D) 6.5000 -0.3000 Print -(E) 10.0000 1.7000 Print -(F) 5.5385 2.6077 Print -(G) 4.0000 6.3000 Print -(H) 5.0692 4.1538 Print -showpage grestore -%%EOF diff --git a/latex_mk/test/sanposhojo/q1_2.eps b/latex_mk/test/sanposhojo/q1_2.eps deleted file mode 100644 index 2b24603..0000000 --- a/latex_mk/test/sanposhojo/q1_2.eps +++ /dev/null @@ -1,56 +0,0 @@ -%!PS-Adobe-3.0 EPSF-3.0 -%%BoundingBox: -56.6929 -56.6929 510.2362 226.7717 -%%Title: q1_2.euk -%%Creator: eukleides -%%EndComments -gsave 28.3464566929 dup scale - 0.0176 setlinewidth 1 setlinecap 1 setlinejoin - 0.0000 0.0000 13.0000 0.0000 11.0769 4.6154 moveto -2 {lineto} repeat closepath stroke - 6.5000 0.0000 6.5000 0.0000 180.0000 arc stroke -10.0000 2.0000 2.0000 0 360 arc stroke - 4.7692 4.1538 2.0000 0 360 arc stroke -[.3 .2] 0 setdash - 6.5000 0.0000 4.0000 6.0000 moveto -lineto stroke -10.0000 2.0000 10.0000 0.0000 moveto -lineto stroke -10.0000 2.0000 11.8462 2.7692 moveto -lineto stroke -10.0000 2.0000 9.2308 3.8462 moveto -lineto stroke -/Dot {0 360 arc fill} bind def - 0.0000 0.0000 0.0500 Dot -13.0000 0.0000 0.0500 Dot -11.0769 4.6154 0.0500 Dot - 6.5000 0.0000 0.0500 Dot -10.0000 2.0000 0.0500 Dot - 5.5385 2.3077 0.0500 Dot - 4.0000 6.0000 0.0500 Dot - 4.7692 4.1538 0.0500 Dot -10.0000 0.0000 0.0500 Dot -11.8462 2.7692 0.0500 Dot - 9.2308 3.8462 0.0500 Dot -[] 0 setdash -10.7538 4.4808 moveto 0.1346 -0.3231 rlineto 0.3231 0.1346 rlineto stroke -/NewCenturySchlbk-Roman findfont 0.352778 scalefont setfont -/Print {gsave translate dup 0 0 moveto false charpath flattenpath pathbbox -2 div 4 1 roll -2 div 4 1 roll pop pop moveto show grestore} bind def -(A) 0.0000 -0.3000 Print -(B) 13.0000 -0.3000 Print -(C) 11.3769 4.6154 Print -(D) 6.5000 -0.3000 Print -(E) 10.2121 1.7879 Print -(F) 5.7983 2.1577 Print -(G) 4.0000 6.3000 Print -(H) 5.0692 4.1538 Print -(I) 10.0000 -0.3000 Print -(J) 12.1462 2.7692 Print -(K) 9.2308 4.1462 Print -10.0000 0.3500 moveto 0.3500 0.0000 rlineto -0.0000 -0.3500 rlineto stroke -11.5231 2.6346 moveto -0.1346 0.3231 rlineto 0.3231 0.1346 rlineto stroke - 9.3654 3.5231 moveto -0.3231 -0.1346 rlineto -0.1346 0.3231 rlineto stroke - 5.6731 1.9846 moveto -0.3231 -0.1346 rlineto -0.1346 0.3231 rlineto stroke -/DoubleArc {gsave translate 2 copy 0 0 7 -1 roll 5 -2 roll arc stroke 0 0 5 -3 roll arc stroke grestore} bind def - 0.4600 0.5400 0.0000 22.6199 0.0000 0.0000 DoubleArc -showpage grestore -%%EOF diff --git a/latex_mk/test/toc/Makefile b/latex_mk/test/toc/Makefile index fb88544..173c796 100644 --- a/latex_mk/test/toc/Makefile +++ b/latex_mk/test/toc/Makefile @@ -7,6 +7,9 @@ all: $(TEXTARGETS) toc-update: $(CP) toc.tex.6th toc.tex +body-update: + $(CP) toc.tex.5th_add toc.tex + rebase: $(CP) toc.tex.5th toc.tex diff --git a/latex_mk/test/toc/rebase_toc.sh b/latex_mk/test/toc/rebase_toc.sh deleted file mode 100644 index ad86ffd..0000000 --- a/latex_mk/test/toc/rebase_toc.sh +++ /dev/null @@ -1 +0,0 @@ -if test -s toc.tex.bak; then mv toc.tex.bak toc.tex && touch toc.tex; fi diff --git a/latex_mk/test/toc/toc.tex.5th_add b/latex_mk/test/toc/toc.tex.5th_add new file mode 100644 index 0000000..69abbcf --- /dev/null +++ b/latex_mk/test/toc/toc.tex.5th_add @@ -0,0 +1,78 @@ +\documentclass{jsbook} +\begin{document} + +\tableofcontents + +\chapter{\TeX って何?} + +\chapter{まず使ってみよう} + +\chapter{\LaTeXe の基本} + +「何人ものニュートンがいた(There were several Newtons)」 +と言ったのは,科学史家ハイルブロンである.同様にコーヘンは +「ニュートンは常に二つの貌を持っていた +(Newton was always ambivalent)」と語っている. + +近代物理学史上でもっとも傑出しもっとも影響の大きな人物が +ニュートンであることは,誰しも頷くであろう. +しかし,ハイルブロンやコーヘンの言うように, +ニュートンは様々な,ときには相矛盾した顔を持ち +その影響もまた時代とともに大きく変っていった. + +\chapter{パッケージと自前の命令} + +\chapter{数式の基本} + +\chapter{複雑な数式} + +\chapter{グラフィック} + +\chapter{表組み} + +\chapter{図・表の配置} + +\chapter{相互参照・目次・索引・リンク} + +\chapter{文献の参照と文献データベース} + +\chapter{欧文フォント} + +\chapter{和文フォント} + +\chapter{ページレイアウト} + +\chapter{スタイルファイルの作り方} + +\chapter{美しい文書を作るために} + +\chapter{\LaTeX による入稿} + +\chapter{TeXによるプレゼンテーション} + +\appendix + +\chapter{三美印刷訪問記} + +\chapter{マニュアルを読むための基礎知識} + +\chapter{基本マニュアル} + +\chapter{picture環境} + +\chapter{Asymptote} + +\chapter{Windowsへのインストールと設定} + +\chapter{Macへのインストールと設定} + +\chapter{UNIXでのTeX} + +\chapter{\LaTeXe における多言語処理} + +\chapter{記号一覧} + +\chapter{Adobe-Japan1-5全グリフ(+8文字)} + +\chapter{\TeX 関連の情報源} +\end{document} diff --git a/latex_mk/test/toc/update_toc.sh b/latex_mk/test/toc/update_toc.sh deleted file mode 100644 index 6121963..0000000 --- a/latex_mk/test/toc/update_toc.sh +++ /dev/null @@ -1 +0,0 @@ -sed -i.bak -e 's/\\chapter\*{\([^}]*\)}/&\n\\addcontentsline{toc}{chapter}{\1}/' toc.tex diff --git a/latex_mk/test/toc_hyperref/Makefile b/latex_mk/test/toc_hyperref/Makefile index 170b540..43136fb 100644 --- a/latex_mk/test/toc_hyperref/Makefile +++ b/latex_mk/test/toc_hyperref/Makefile @@ -1,20 +1,20 @@ TEXTARGETS := toc_hyperref.pdf -.PHONY: all update rebase clean distclean +.PHONY: all toc-update body-update rebase clean distclean all: $(TEXTARGETS) -update: toc_hyperref.tex +toc-update: $(CP) toc_hyperref.tex.6th toc_hyperref.tex +body-update: + $(CP) toc_hyperref.tex.5th_add toc_hyperref.tex + rebase: $(CP) toc_hyperref.tex.5th toc_hyperref.tex -toc_hyperref.tex: toc_hyperref.tex.5th - $(CP) $< $@ - include latex.mk clean: tex-clean -distclean: tex-distclean +distclean: tex-distclean rebase diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex b/latex_mk/test/toc_hyperref/toc_hyperref.tex index 8b5189d..a97dc56 100644 --- a/latex_mk/test/toc_hyperref/toc_hyperref.tex +++ b/latex_mk/test/toc_hyperref/toc_hyperref.tex @@ -3,488 +3,67 @@ \usepackage{pxjahyper} \begin{document} -\frontmatter -\chapter{序} - \tableofcontents -\mainmatter -\chapter{\TeX とその仲間} - -\section{\TeX って何?} - -\section{\TeX の読み方・書き方} - -\section{\LaTeX って何?} - -\section{\TeX の処理方式} - -\section{\TeX の出力} - -\section{\TeX と日本語} - -\section{その他の\TeX の仲間} - -\section{\TeX のライセンス} - -\section{\TeX の配布} - -\section{これからの\TeX} - -\chapter{使ってみよう} - -\section{Webで\LaTeX を試してみよう} - -\section{TeXworks(Windows)} +\chapter{\TeX って何?} -\section{TeXShop(Mac)} - -\section{コマンドで行う方法} - -\section{日本語のテスト} - -\section{長い文書に挑戦} - -\section{Sync\TeX の使い方} - -\section{エラーが起きたなら} +\chapter{まず使ってみよう} \chapter{\LaTeXe の基本} -\section{\LaTeXe の入力・印刷の完全な例} - -\section{最低限のルール} - -\section{半角カナや機種依存文字は使えないの?} - -\section{ドキュメントクラス} - -\section{プリアンブル} - -\section{文書の構造} - -\section{タイトルと概要} - -\section{入力ファイルに書ける文字} - -\section{打ち込んだ通りに出力する方法} - -\section{改行の扱い} - -\section{注釈} - -\section{空白の扱い} - -\section{地の文と命令} - -\section{区切りのいらない命令} - -\section{特殊文字} - -\section{アクセント類} - -\section{書体を変える命令} - -\section{文字サイズを変える命令} - -\section{環境} - -\section{箇条書き} - -\section{長さの単位} - -\section{空白を出力する命令} - -\section{脚注と欄外への書き込み} - -\section{罫線の類} - \chapter{パッケージと自前の命令} -\section{パッケージ} - -\section{簡単な命令の作り方} - -\section{パッケージを作る} - -\section{命令の名前の付け方} - -\section{自前の環境} - -\section{引数をとるマクロ} - -\section{マクロの引数の制約} - -\section{ちょっと便利なマクロ} - \chapter{数式の基本} -\section{数学に無縁な人のために} - -\section{数式用のフォント} - -\section{簡単な数式} - -\section{累乗,添字} - -\section{別行立ての数式} - -\section{和・積分} - -\section{分数} - -\section{字間や高さの微調整} - -\section{式の参照} - -\section{括弧類} - -\section{ギリシア文字} - -\section{筆記体} - -\section{2項演算子} - -\section{関係演算子} - -\section{矢印} - -\section{雑記号} - -\section{latexsymで定義されている文字} - -\section{大きな記号} - -\section{log型関数とmod} - -\section{上下に付けるもの} - -\section{数式の書体} - -\section{ISO/JISの数式組版規則} - -\section{プログラムやアルゴリズムの組版} - -\section{array環境} - -\section{数式の技巧} - \chapter{複雑な数式} -\section{amsmathとAMSFonts} - -\section{いろいろな記号} - -\section{行列} - -\section{分数} - -\section{別行立ての数式} - \chapter{グラフィック} -\section{\LaTeX と図} - -\section{\LaTeX での図の読み込み方} - -\section{graphicxパッケージの詳細} - -\section{\textbackslash includegraphicsの詳細} - -\section{おもな画像ファイル形式} - -\section{PostScriptとは?} - -\section{EPSとは} - -\section{PDFとは} - -\section{文字列の変形} - -\section{色空間とその変換} - -\section{色の指定} - -\section{枠囲み} - \chapter{表組み} -\section{表組みの基本} - -\section{booktabsによる罫線} - -\section{\LaTeX 標準の罫線} - -\section{表の細かい制御} - -\section{列割りの一時変更} - -\section{横幅の指定} - -\section{色のついた表} - -\section{ページをまたぐ表} - -\section{表組みのテクニック} - \chapter{図・表の配置} -\section{図の自動配置} - -\section{表の自動配置} - -\section{左右に並べる配置} - -\section{図・表が思い通りの位置に出ないとき} - -\section{回り込みと欄外への配置} - \chapter{相互参照・目次・索引・リンク} -\section{相互参照} - -\section{目次} - -\section{索引とMakeIndex,mendex} - -\section{索引の作り方} - -\section{索引スタイルを変えるには} - -\section{索引作成の仕組み} - -\section{入れ子になった索引語} - -\section{範囲} - -\section{ページ数なしの索引語} - -\section{ページ番号の書体} - -\section{\textbackslash index命令の詳細} - -\section{ハイパーリンク} - \chapter{文献の参照と文献データベース} -\section{文献の参照} - -\section{すべて人間が行う方法} - -\section{半分人間が行う方法} - -\section{citeとovercite} - -\section{文献処理の全自動化} - -\section{文献データベース概論} - -\section{p\BibTeX の実行例} - -\section{文献スタイルファイル} - -\section{文献データベースの詳細} - -\section{並べ替え順序の制御} - -\section{参照形式を変える} - -\section{\BibTeX のこれから} - \chapter{欧文フォント} -\section{\TeX でのフォントの仕組み} - -\section{フォントの5要素} - -\section{フォントのエンコーディングの詳細} - -\section{ファイルのエンコーディング} - -\section{Computer Modern} - -\section{Latin Modern} - -\section{欧文基本14書体} - -\section{欧文基本35書体} - -\section{\TeX Gyreフォント集} - -\section{その他のフォント} - -\section{数式用フォント} - \chapter{和文フォント} -\section{おもな和文書体} - -\section{p\TeX の和文フォントの仕組み} - -\section{縦組} - -\section{文字コードとp\TeX } - -\section{OpenTypeフォントとAdobe-Japan} - -\section{otfパッケージ} - -\section{otfパッケージの新しいフォントメトリック} - -\section{プロポーショナル仮名,極太フォント} - -\section{jis/utf/otfフォントメトリック} - -\section{和文フォントの追加} - -\section{もっと文字を} - \chapter{ページレイアウト} -\section{ドキュメントクラス} - -\section{ドキュメントクラスのオプション} - -\section{ページレイアウトの変更} - -\section{例:数学のテスト} - \chapter{スタイルファイルの作り方} -\section{\LaTeX のスタイルファイル} - -\section{スタイルファイル中の特殊な命令} - \chapter{美しい文書を作るために} -\section{全角か半角か} - -\section{句読点・括弧類} - -\section{引用符} - -\section{疑問符・感嘆符} - -\section{自動挿入されるスペース} - -\section{アンダーライン} - -\section{欧文の書き方} - -\section{改行位置の調整} - -\section{改ページの調整} - -\section{図の位置の調整} - \chapter{\LaTeX による入稿} -\section{\LaTeX 原稿を入稿する場合} - -\section{PDFで入稿する場合} - -\section{ファイルとフォルダの準備} - -\section{\LaTeX で処理} - -\section{トンボ} - -\section{グラフィック} - -\section{若干のデザイン} - -\section{PDFへの変換} - -\section{その他の注意} - -\chapter{\TeX によるプレゼンテーション} - -\section{jsarticleによるスライド作成} - -\section{Beamerによるスライド作成} - -\section{配布用縮刷の作り方} +\chapter{TeXによるプレゼンテーション} \appendix -\chapter{付録DVDを用いたインストールと設定} - -\section{本書付録DVD-ROMの中身} - -\section{Windowsへのインストールと設定} - -\section{Macへのインストールと設定} - -\section{LinuxやFreeBSDなどへのインストール} - -\section{TeX Live} +\chapter{三美印刷訪問記} \chapter{マニュアルを読むための基礎知識} -\section{ディレクトリ(フォルダ)とパス} - -\section{パスを通すとは?} - -\section{\TeX のディレクトリ構成} - \chapter{基本マニュアル} -\section{tex,latex,ptex,platex} - -\section{uptex,uplatex} - -\section{dvipdfmx} - -\section{ptex2pdf} - -\section{dvips} - -\section{dviout} - -\section{updmap} - -\section{Ghostscript} +\chapter{picture環境} -\chapter{TikZ} +\chapter{Asymptote} -\section{PGF/TikZとは} +\chapter{Windowsへのインストールと設定} -\section{TikZの基本} +\chapter{Macへのインストールと設定} -\section{いろいろな図形の描画} +\chapter{UNIXでのTeX} -\section{グラフの描画(1)} - -\section{グラフの描画(2)} - -\section{Rで使う方法} - -\section{gnuplotとの連携} - -\section{ほかの図との重ね書き} +\chapter{\LaTeXe における多言語処理} \chapter{記号一覧} -\section{特殊文字} - -\section{ロゴ} - -\section{textcompパッケージで使える文字} - -\section{pifontパッケージで使える文字} - -\section{otfパッケージで使える文字} - -\chapter{Adobe-Japan1-5全グリフ(+8文字)} +\chapter{Adobe-Japan1-5全グリフ(+8文字)} \chapter{\TeX 関連の情報源} - -\section{文献} - -\section{ネット上の情報} - -\backmatter -\chapter{あとがき} - -\chapter{索引} \end{document} diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add b/latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add new file mode 100644 index 0000000..90c71d1 --- /dev/null +++ b/latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add @@ -0,0 +1,80 @@ +\documentclass{jsbook} +\usepackage[dvipdfm,pdftitle={LaTeX2e美文書作成入門}]{hyperref} +\usepackage{pxjahyper} +\begin{document} + +\tableofcontents + +\chapter{\TeX って何?} + +\chapter{まず使ってみよう} + +\chapter{\LaTeXe の基本} + +「何人ものニュートンがいた(There were several Newtons)」 +と言ったのは,科学史家ハイルブロンである.同様にコーヘンは +「ニュートンは常に二つの貌を持っていた +(Newton was always ambivalent)」と語っている. + +近代物理学史上でもっとも傑出しもっとも影響の大きな人物が +ニュートンであることは,誰しも頷くであろう. +しかし,ハイルブロンやコーヘンの言うように, +ニュートンは様々な,ときには相矛盾した顔を持ち +その影響もまた時代とともに大きく変っていった. + +\chapter{パッケージと自前の命令} + +\chapter{数式の基本} + +\chapter{複雑な数式} + +\chapter{グラフィック} + +\chapter{表組み} + +\chapter{図・表の配置} + +\chapter{相互参照・目次・索引・リンク} + +\chapter{文献の参照と文献データベース} + +\chapter{欧文フォント} + +\chapter{和文フォント} + +\chapter{ページレイアウト} + +\chapter{スタイルファイルの作り方} + +\chapter{美しい文書を作るために} + +\chapter{\LaTeX による入稿} + +\chapter{TeXによるプレゼンテーション} + +\appendix + +\chapter{三美印刷訪問記} + +\chapter{マニュアルを読むための基礎知識} + +\chapter{基本マニュアル} + +\chapter{picture環境} + +\chapter{Asymptote} + +\chapter{Windowsへのインストールと設定} + +\chapter{Macへのインストールと設定} + +\chapter{UNIXでのTeX} + +\chapter{\LaTeXe における多言語処理} + +\chapter{記号一覧} + +\chapter{Adobe-Japan1-5全グリフ(+8文字)} + +\chapter{\TeX 関連の情報源} +\end{document} -- 2.18.0