テストに,エラー発生テスト(\end{document}なし、画像ファイルなし)を追加
authorj8takagi <j8takagi@nifty.com>
Mon, 2 Dec 2013 02:13:48 +0000 (11:13 +0900)
committerj8takagi <j8takagi@nifty.com>
Mon, 2 Dec 2013 02:13:48 +0000 (11:13 +0900)
latex_mk/test/graphics_error/Makefile [new file with mode: 0644]
latex_mk/test/graphics_error/banana.jpg [new file with mode: 0644]
latex_mk/test/graphics_error/graphics.tex [new file with mode: 0644]
latex_mk/test/graphics_error/latex.mk [new symlink]
latex_mk/test/simple_error/Makefile [new file with mode: 0644]
latex_mk/test/simple_error/latex.mk [new symlink]
latex_mk/test/simple_error/simple.tex [new file with mode: 0644]

diff --git a/latex_mk/test/graphics_error/Makefile b/latex_mk/test/graphics_error/Makefile
new file mode 100644 (file)
index 0000000..7476231
--- /dev/null
@@ -0,0 +1,11 @@
+.PHONY: all update clean distclean
+
+TEXTARGETS := graphics.pdf
+
+all: graphics.pdf
+
+include latex.mk
+
+clean: tex-clean
+
+distclean: clean tex-distclean
diff --git a/latex_mk/test/graphics_error/banana.jpg b/latex_mk/test/graphics_error/banana.jpg
new file mode 100644 (file)
index 0000000..885c5c5
Binary files /dev/null and b/latex_mk/test/graphics_error/banana.jpg differ
diff --git a/latex_mk/test/graphics_error/graphics.tex b/latex_mk/test/graphics_error/graphics.tex
new file mode 100644 (file)
index 0000000..e622c5c
--- /dev/null
@@ -0,0 +1,5 @@
+\documentclass{jsarticle}
+\usepackage[dvipdfmx,hiresbb]{graphicx}
+\begin{document}
+\includegraphics[width=5cm]{banana.eps}
+\end{document}
diff --git a/latex_mk/test/graphics_error/latex.mk b/latex_mk/test/graphics_error/latex.mk
new file mode 120000 (symlink)
index 0000000..5a11d14
--- /dev/null
@@ -0,0 +1 @@
+../../latex.mk
\ No newline at end of file
diff --git a/latex_mk/test/simple_error/Makefile b/latex_mk/test/simple_error/Makefile
new file mode 100644 (file)
index 0000000..450570e
--- /dev/null
@@ -0,0 +1,36 @@
+TEXTARGETS := simple.pdf
+
+CMP := cmp -s
+SED := sed
+
+.PHONY: all update rebase clean distclean
+
+$(TEXTARGETS):
+
+all:
+       @$(MAKE) -s simple_1.pdf
+       @$(ECHO) '--------------------'
+       @$(MAKE) -s simple_2.pdf
+
+simple_1.pdf: rebase
+       @$(ECHO) '---------- $@: $^ ----------'
+       @$(MAKE) -s simple.pdf
+       @$(CP) -v simple.pdf $@
+
+simple_2.pdf: update
+       @$(ECHO) '---------- $@: $^ ----------'
+       @$(MAKE) -s simple.pdf
+       @$(CP) -v simple.pdf $@
+
+update:
+       $(SED) -i -e 's/,/、/g' -e 's/./。/g' simple.tex
+
+rebase:
+       $(CMP) simple.tex.base simple.tex || $(CP) -v simple.tex.base simple.tex
+
+include latex.mk
+
+clean: tex-clean
+
+distclean: rebase tex-distclean
+       $(RM) simple_*.pdf
diff --git a/latex_mk/test/simple_error/latex.mk b/latex_mk/test/simple_error/latex.mk
new file mode 120000 (symlink)
index 0000000..5a11d14
--- /dev/null
@@ -0,0 +1 @@
+../../latex.mk
\ No newline at end of file
diff --git a/latex_mk/test/simple_error/simple.tex b/latex_mk/test/simple_error/simple.tex
new file mode 100644 (file)
index 0000000..7d716ac
--- /dev/null
@@ -0,0 +1,13 @@
+\documentclass{jsarticle}
+\begin{document}
+
+「何人ものニュートンがいた(There were several Newtons)」
+と言ったのは,科学史家ハイルブロンである.同様にコーヘンは
+「ニュートンは常に二つの貌を持っていた
+(Newton was always ambivalent)」と語っている.
+
+近代物理学史上でもっとも傑出しもっとも影響の大きな人物が
+ニュートンであることは,誰しも頷くであろう.
+しかし,ハイルブロンやコーヘンの言うように,
+ニュートンは様々な,ときには相矛盾した顔を持ち
+その影響もまた時代とともに大きく変っていった.