From: j8takagi Date: Sun, 10 Nov 2013 03:42:06 +0000 (+0900) Subject: latex.mkのテストを追加 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb43cec29432e5db23c37ca1f0a62ad146dfaa5;p=makefiles.git latex.mkのテストを追加 --- diff --git a/latex_mk/test/Makefile.template b/latex_mk/test/Makefile.template new file mode 100644 index 0000000..f6b3b27 --- /dev/null +++ b/latex_mk/test/Makefile.template @@ -0,0 +1,10 @@ +TARGETS := $(subst .tex,.pdf,$(wildcard *.tex)) + +all: $(TARGETS) + +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 new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/test/bibtex/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/bibtex/bibtex.tex b/latex_mk/test/bibtex/bibtex.tex new file mode 100644 index 0000000..6af72a2 --- /dev/null +++ b/latex_mk/test/bibtex/bibtex.tex @@ -0,0 +1,9 @@ +\documentclass[a4j]{jarticle} +\usepackage{url} +\begin{document} +\nocite* % 全データの表示 + +\bibliographystyle{junsrt} % 並び替えをしない +%\bibliographystyle{jplain} +\bibliography{jpnbook} +\end{document} diff --git a/latex_mk/test/bibtex/jpnbook.bib b/latex_mk/test/bibtex/jpnbook.bib new file mode 100644 index 0000000..825883f --- /dev/null +++ b/latex_mk/test/bibtex/jpnbook.bib @@ -0,0 +1,477 @@ +@book{jtexbook, + author = "Donald E. Knuth", + title = "改訂新版 {\TeX}ブック", + publisher = "アスキー", + isbn = "4-7561-0120-8", + year = 1992, +} + +@book{jlatexbook, + author = "Leslie Lamport", + title = "文書処理システム{\LaTeX}", + publisher = "アスキー", + isbn = "4-7561-0784-2", + year = 1990, +} + +@book{jlatex2ebook, + author = "Leslie Lamport", + title = "文書処理システム{\LaTeXe}", + publisher = "ピアソン・エディケーション", + isbn = "4-89471-139-7", + year = 1999, +} + +@book{latexcomp, + author = "Michel Goosens and Frank Mittelbach and Alexander Samarin", + title = "The {\LaTeX}コンパニオン", + publisher = "アスキー", + isbn = "4-7561-1813-5", + year = 1998, +} + +@book{latexgracomp, + author = "Michel Goosens and Sebastian Rahtz and Frank Mittelbach", + title = "{\LaTeX}グラフィックスコンパニオン", + publisher = "アスキー", + isbn = "4-7561-3461-0", + year = 2000, +} + +@book{latexWebcomp, + author = "Michel Goosens and Sebastian Rahtz and Frank Mittelbach", + title = "{\LaTeX} Web コンパニオン", + publisher = "アスキー", + isbn = "4-7561-3973-6", + year = 2001, +} + +@book{texinfo, + author = "Robert J. Chassekk and Richard M. Stallman", + title = "{GNU}リファレンスマニュアル Texinfo", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9684-7", + year = 1996, +} + +@book{Eijkhout:topic, + author = "Victor Eijkhout", + title = "{\TeX} by Topic {\TeX}をより深く知るための39ç« ", + publisher = "アスキー", + isbn = "4-7561-3067-4", + year = 1999, +} + +@book{texwin, + author = "インプレス・ラボ", + yomi = "Impress", + title = "{\TeX} for Windows", + publisher = "インプレス", + isbn = "4-8443-4652-0", + year = 1994, +} + +@book{page:kiso, + author = "ページ・エンタープライゼズ(株)", + yomi = "PageEnterprises", + title = "{\LaTeXe}[マクロ{\&}クラス]プログラミング基礎解説", + publisher = "技術評論社", + isbn = "4-7741-1546-0", + year = 2002, + note = "吉永徹美,本田知亮の共著", +} + +@book{abrahams:meikai, + author = "Paul W. Abrahams", + title = "明快{\TeX}", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9643-X", + year = 1997, + note = "``\TeX\ for Impatient''の邦訳", +} + +@book{isozaki:jizai, + author = "磯崎 秀樹", + yomi = "Hideki Isozaki", + title = "{\LaTeX}自由自在", + publisher = "サイエンス社", + isbn = "4-7819-0657-5", + year = 1992, +} + +@book{okumura:bibunsho91, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "{\LaTeX}美文書作成入門", + publisher = "技術評論社", + isbn = "4-87408-469-9", + year = 1991, +} + +@book{okumura:bibunsho94, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "{\LaTeX}入門 美文書作成のポイント", + publisher = "技術評論社", + isbn = "4-7741-0091-9", + year = 1994, +} + +@book{okumura:bibunsho1, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "4-7741-0481-7", + year = 1997, +} + +@book{okumura:bibunsho2, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "[改訂版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "4-7741-1107-4", + year = 2000, +} + +@book{okumura:bibunsho3, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "[改訂第3版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "4-7741-1940-7", + year = 2004, +} + +@book{okumura:bibunsho4, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "[改訂第4版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "978-4-7741-2984-6", + year = 2007, +} + +@book{okumura:bibunsho5, + author = "奥村 晴彦", + yomi = "Haruhiko Okumura", + title = "[改訂第5版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "978-4-7741-4319-4", + year = 2010, +} + +@book{okumura:bibunsho6, + author = "奥村 晴彦 and 黒木 裕介", + yomi = "Haruhiko Okumura and Yusuke Kuroki", + title = "[改訂第6版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "978-4-7741-6045-0", + year = 2013, +} + +@book{otobe:another1basic99, + author = "乙部 巌己 and 江口 庄英", + yomi = "Yoshiki Otobe and Shouei Eguchi", + title = "{p\LaTeXe} for Windows Another Manual Vol.1 Basic Kit 1999", + publisher = "ソフトバンク", + isbn = "4-7973-0718-8", + year = 1998, +} + +@book{otobe:another2ext, + author = "乙部 巌己 and 江口 庄英", + yomi = "Yoshiki Otobe and Shouei Eguchi", + title = "{p\LaTeXe} for Windows Another Manual Vol.2 Extended Kit", + publisher = "ソフトバンク", + isbn = "4-7973-0267-4", + year = 1997, +} + +@book{unakami:koredake, + author = "海上 忍 and 黒川 弘章", + yomi = "Shinobu Unakami and Hiroaki Kurokawa", + title = "これだけでできる{\LaTeX}実践活用ガイド", + publisher = "技術評論社", + isbn = "4-7741-1050-7", + year = 2000, +} + +@book{yoshinaga:jissen, + author = "吉永 徹美", + yomi = "Tetsumi Yoshinaga", + title = "{\LaTeXe}[マクロ{\&}クラス]プログラミング実践解説", + publisher = "技術評論社", + isbn = "4-7741-1758-7", + year = 2003, +} + +@book{ITM:pokeri, + author = "今井 康之 and 刀祢 宏三郎 and 美吉 明浩", + yomi = "Yasuyuki Imai and Kozaburo Tone and Akihiro Miyoshi", + title = "{\LaTeX}スタイルマクロポケットリファレンス", + publisher = "技術評論社", + isbn = "4-7741-0470-1", + year = 1997, + note = "奥村晴彦(監修)", +} + +@book{sagiya:style1, + author = "鷺谷 好輝", + yomi = "Yoshiteru Sagiya", + title = "日本語{\LaTeX}定番スタイル集 No.1", + publisher = "インプレス", + isbn = "4-8443-4602-4", + year = 1992, +} + +@book{sagiya:style2, + author = "鷺谷 好輝", + yomi = "Yoshiteru Sagiya", + title = "日本語{\LaTeX}定番スタイル集 No.2", + publisher = "インプレス", + isbn = "4-8443-4618-0", + year = 1993, +} + +@book{sagiya:style3, + author = "鷺谷 好輝", + yomi = "Yoshiteru Sagiya", + title = "日本語{\LaTeX}縦組スペシャル定番スタイル集 No.3", + publisher = "インプレス", + isbn = "4-8443-4655-5", + year = 1994, +} + +@book{konami:linux, + author = "小浪 吉史", + yomi = "Yoshifumi Konami", + title = "{p\LaTeXe} for Linux", + publisher = "テクノプレス", + isbn = "4-924998-36-2", + year = 1999, +} + +@book{ikuta:bunten, + author = "生田 誠三", + yomi = "Seizou Ikuta", + title = "{\LaTeXe}文典", + publisher = "朝倉書店", + isbn = "4-254-12140-7", + year = 2000, +} + +@book{ikuta:2enyumon, + author = "生田 誠三", + yomi = "Seizou Ikuta", + title = "{\LaTeXe}入門", + publisher = "朝倉書店", + isbn = "4-254-12157-1", + year = 2003, +} + +@book{oono:nyumon, + author = "大野 義夫", + yomi = "Yoshio Oono", + title = "{\TeX}入門", + publisher = "共立出版", + isbn = "4-320-02488-5", + year = 1989, +} + +@book{platexbook, + author = "中野 è³¢", + yomi = "Ken Nakano", + title = "日本語{\LaTeXe}ブック", + publisher = "アスキー", + isbn = "4-7561-1667-1", + year = 1996, +} + +@book{shimada:advance, + author = "嶋田 隆司", + yomi = "Takashi Shimada", + title = "{\LaTeXe}アドバンスドガイド", + publisher = "ディー・アート", + isbn = "4-88648-643-6", + year = 2002, +} + +@book{fujita:kagaku, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "化学者・生化学者のための{\LaTeX}", + publisher = "東京化学同人", + isbn = "4-8079-0386-1", + year = 1993, +} + +@book{fujita:macro, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{\LaTeX}まくろの八衢", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9664-2", + year = 1995, +} + +@book{fujita:book, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{\LaTeX}本づくりの八衢", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9679-0", + year = 1996, +} + +@book{fujita:kaitei, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{\LaTeXe}階梯", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9685-5", + year = 1996, +} + +@book{fujita:kaiteitate, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "続{\LaTeXe}階梯・縦組編", + publisher = "アジソン・ウェスレイ", + isbn = "4-7952-9732-0", + year = 1998, +} + +@book{fujita:tateyoko, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{p\LaTeXe}入門・縦横文書術", + publisher = "ピアソン・エディケーション", + isbn = "4-89471-196-6", + year = 2000, +} + +@book{fujita:kaitei2, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{\LaTeXe}階梯 第2版", + publisher = "ピアソン・エディケーション", + isbn = "4-89471-239-3", + year = 2000, +} + +@book{fujita:command, + author = "藤田 眞作", + yomi = "Shinsaku Fujita", + title = "{\LaTeXe}コマンドブック", + publisher = "ソフトバンク", + isbn = "4-7973-2280-2", + year = 2003, +} + +@book{ase:tekuteku1, + author = "阿瀬 はる美", + yomi = "Harumi Ase", + title = "てくてく{\TeX}〈上〉", + publisher = "アスキー", + isbn = "4-7561-0222-0", + year = 1994, +} + +@book{ase:tekuteku2, + author = "阿瀬 はる美", + yomi = "Harumi Ase", + title = "てくてく{\TeX}〈下〉", + publisher = "アスキー", + isbn = "4-7561-0223-9", + year = 1994, +} +@book{honda:pokeri, + author = "本田 知亮", + yomi = "Tomonori Honda", + title = "{\LaTeXe}標準コマンド ポケットリファレンス", + publisher = "技術評論社", + isbn = "4-7741-2423-0", + year = 2005, +} +@book{minamoto:yasashiku, + author = "皆本 晃弥", + yomi = "Teruya Minamoto", + title = "やさしく学べる{p\LaTeXe}入門", + publisher = "サイエンス社", + isbn = "4-7819-1032-7", + year = 2003, +} + +@misc{yoshinaga:latex, + author = "吉永 徹美", + yomi = "Tetsumi Yoshinaga", + title = "{\LaTeX}入門", + year = 2004, + note = "オンラインドキュメント +{\url{http://www.h4.dion.ne.jp/~latexcat/intro/intro-index.html}}", +} + +@misc{watanabe:sukisuki, + author = "渡辺 å¾¹", + yomi = "Tooru Watanabe", + title = "好き好き{\LaTeXe}初級編", + year = 2004, + note = "オンラインドキュメント +{\url{http://mytexpert.sourceforge.jp/}}", +} + +@book{ichimura:marushu, + author = "市村 匠 and 原 ç« ", + yomi = "Takumi Ichimura and Akira Hara", + title = "基礎からの{\LaTeX} {\LaTeX}使ってマル秀文書作成マスター", + publisher = "セレンディップ", + year = 2004, + isbn = "4-7978-2057-8", +} + +@book{yokoo:report, + author = "横尾 英俊", + yomi = "Hidetoshi Yokoo", + title = "{\LaTeX}ユーザのためのレポート・論文作成入門", + publisher = "共立出版", + isbn = "4-320-00565-1", + year = 2002, +} + +@book{ankoku:shokyu, + author = "暗黒団編集部", + yomi = "ankokudan", + title = "{p\LaTeX}初級リファレンス", + publisher = "暗黒通信団", + isbn = "4-87310-080-1", + year = 2003, +} + +@book{shimada:marugoto, + author = "嶋田 隆司", + yomi = "Takashi Shimada", + title = "{\LaTeXe}まるごと数式", + publisher = "ディー・アート", + isbn = "4-88648-715-7", + year = 2003, +} + +@book{zoocom:elegant, + author = "ずうこむ", + yomi = "zoocom", + title = "{\LaTeXe}でエレガントな論文を書く", + publisher = "サイエンティスト社 ", + isbn = "4-914903-93-8", + year = 2002, +} + +@misc{oetiker:latex2e, + author = "Tobias Oetiker", + title = "{\LaTeXe}への道", + year = 2000, + note = "``The Not So Short Introduction to {\LaTeXe}''の邦訳, +野村昌孝(訳),オンラインドキュメント +{\url{http://www.ctan.org/tex-archive/info/lshort/japanese/}}", +} diff --git a/latex_mk/test/index/latex.mk b/latex_mk/test/bibtex/latex.mk similarity index 100% rename from latex_mk/test/index/latex.mk rename to latex_mk/test/bibtex/latex.mk diff --git a/latex_mk/test/graphics/Makefile b/latex_mk/test/graphics/Makefile new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/test/graphics/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/graphics/graphics.tex b/latex_mk/test/graphics/graphics.tex new file mode 100644 index 0000000..c2e6718 --- /dev/null +++ b/latex_mk/test/graphics/graphics.tex @@ -0,0 +1,5 @@ +\documentclass{jsarticle} +\usepackage[dvipdfmx,hiresbb]{graphicx} +\begin{document} +\includegraphics[width=15cm]{tiger.pdf} +\end{document} diff --git a/latex_mk/test/graphics/latex.mk b/latex_mk/test/graphics/latex.mk new file mode 120000 index 0000000..5a11d14 --- /dev/null +++ b/latex_mk/test/graphics/latex.mk @@ -0,0 +1 @@ +../../latex.mk \ No newline at end of file diff --git a/latex_mk/test/graphics/tiger.pdf b/latex_mk/test/graphics/tiger.pdf new file mode 100644 index 0000000..401e9a6 Binary files /dev/null and b/latex_mk/test/graphics/tiger.pdf differ diff --git a/latex_mk/test/index/Makefile b/latex_mk/test/index/Makefile deleted file mode 100644 index a783cbb..0000000 --- a/latex_mk/test/index/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -TARGETS = pizz.pdf - -all: pizz.pdf - -include latex.mk - -clean: tex-clean - -distclean: tex-distclean diff --git a/latex_mk/test/makeindex/Makefile b/latex_mk/test/makeindex/Makefile new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/test/makeindex/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/makeindex/latex.mk b/latex_mk/test/makeindex/latex.mk new file mode 120000 index 0000000..5a11d14 --- /dev/null +++ b/latex_mk/test/makeindex/latex.mk @@ -0,0 +1 @@ +../../latex.mk \ No newline at end of file diff --git a/latex_mk/test/makeindex/makeindex.pdf b/latex_mk/test/makeindex/makeindex.pdf new file mode 100644 index 0000000..dcbe563 Binary files /dev/null and b/latex_mk/test/makeindex/makeindex.pdf differ diff --git a/latex_mk/test/index/pizz.tex b/latex_mk/test/makeindex/makeindex.tex similarity index 81% rename from latex_mk/test/index/pizz.tex rename to latex_mk/test/makeindex/makeindex.tex index 7440ba0..d3e476b 100644 --- a/latex_mk/test/index/pizz.tex +++ b/latex_mk/test/makeindex/makeindex.tex @@ -3,7 +3,7 @@ \makeindex \begin{document} ピッツィカート\index{ピッツィカート}すべき個所の指定は、 -楽譜\index{がくふ@楽譜}の上ではpizz\index{pizz}と書かれ、 +楽譜の上ではpizz\index{pizz}と書かれ、 またもとどおりに弓\index{ゆみ@弓}を引く個所に、 イタリア語でacro\index{acro}(弓)と書くことになっています。 \printindex diff --git a/latex_mk/test/makeindex/rebase_index.sh b/latex_mk/test/makeindex/rebase_index.sh new file mode 100644 index 0000000..511b343 --- /dev/null +++ b/latex_mk/test/makeindex/rebase_index.sh @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..c518bd9 --- /dev/null +++ b/latex_mk/test/makeindex/update_index.sh @@ -0,0 +1 @@ +sed -i.bak -e s/楽譜の/楽譜\\\\index{がくふ@楽譜}の/ makeindex.tex diff --git a/latex_mk/test/simple/Makefile b/latex_mk/test/simple/Makefile new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/test/simple/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/simple/latex.mk b/latex_mk/test/simple/latex.mk new file mode 120000 index 0000000..5a11d14 --- /dev/null +++ b/latex_mk/test/simple/latex.mk @@ -0,0 +1 @@ +../../latex.mk \ No newline at end of file diff --git a/latex_mk/test/simple/simple.pdf b/latex_mk/test/simple/simple.pdf new file mode 100644 index 0000000..c786ea4 Binary files /dev/null and b/latex_mk/test/simple/simple.pdf differ diff --git a/latex_mk/test/simple/simple.tex b/latex_mk/test/simple/simple.tex new file mode 100644 index 0000000..e7eacb0 --- /dev/null +++ b/latex_mk/test/simple/simple.tex @@ -0,0 +1,15 @@ +\documentclass{jsarticle} +\begin{document} + +「何人ものニュートンがいた(There were several Newtons)」 +と言ったのは,科学史家ハイルブロンである.同様にコーヘンは +「ニュートンは常に二つの貌を持っていた +(Newton was always ambivalent)」と語っている. + +近代物理学史上でもっとも傑出しもっとも影響の大きな人物が +ニュートンであることは,誰しも頷くであろう. +しかし,ハイルブロンやコーヘンの言うように, +ニュートンは様々な,ときには相矛盾した顔を持ち +その影響もまた時代とともに大きく変っていった. + +\end{document}