From: j8takagi Date: Mon, 9 Dec 2013 10:18:36 +0000 (+0900) Subject: testディレクトリーをsampleに変更 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d4107891f77537d014ca4168ec391b458627c74;p=makefiles.git testディレクトリーをsampleに変更 --- diff --git a/latex_mk/test/.gitignore b/latex_mk/sample/.gitignore similarity index 100% rename from latex_mk/test/.gitignore rename to latex_mk/sample/.gitignore diff --git a/latex_mk/sample/Makefile b/latex_mk/sample/Makefile new file mode 100644 index 0000000..2500724 --- /dev/null +++ b/latex_mk/sample/Makefile @@ -0,0 +1,21 @@ +.PHONY: all clean distclean + +FIND := find +ECHO := /bin/echo +# 複数の子ディレクトリーでmakeを実行 +# 用例: $(call make_dirs,list_dir,target,options) +define make_dirs + $(foreach d,$1,$(ECHO) '---------- $d ----------'; $(MAKE) $3 -C $d $2; ) +endef + +# テスト名。カレントディレクトリー内の、名前が大文字または.以外で始まるディレクトリー +TESTS = $(notdir $(shell $(FIND) -maxdepth 1 -name "[^A-Z.]*" -type d)) + +all: + @$(call make_dirs,$(TESTS),$@,-s) + +clean: + @$(call make_dirs,$(TESTS),$@) + +distclean: + @$(call make_dirs,$(TESTS),$@) diff --git a/latex_mk/test/Makefile.template b/latex_mk/sample/Makefile.template similarity index 100% rename from latex_mk/test/Makefile.template rename to latex_mk/sample/Makefile.template diff --git a/latex_mk/sample/bibtex/Makefile b/latex_mk/sample/bibtex/Makefile new file mode 100644 index 0000000..bebd9c0 --- /dev/null +++ b/latex_mk/sample/bibtex/Makefile @@ -0,0 +1,53 @@ +.PHONY: all bib-update bib-rebase body-update body-rebase rebase clean distclean + +CAT := cat +CMP := cmp -s +DIFF := diff +PATCH := patch +SED := sed + +TEXTARGETS := bibtex.pdf + +$(TEXTARGETS): + +all: + @$(MAKE) -s bibtex_1.pdf + @$(ECHO) + @$(MAKE) -s bibtex_2.pdf + +bibtex_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s bibtex.pdf + @$(CP) -v bibtex.pdf $@ + +bibtex_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s bibtex.pdf + @$(CP) -v bibtex.pdf $@ + +include latex.mk + +update: body-update bib-update + +rebase: body-rebase bib-rebase + +bib-update: bib-rebase + $(CAT) ref_add.bib >>ref.bib + +bib-rebase: + $(CMP) ref.bib.base ref.bib || $(CP) -v ref.bib.base ref.bib + +body-update: bibtex.tex.2nd.patch + @$(PATCH) <$< + +bibtex.tex.2nd.patch: rebase + @$(DIFF) -u bibtex.tex bibtex.tex.2nd >$@ || exit 0 + +body-rebase: + $(CMP) bibtex.tex.base bibtex.tex || $(CP) -v bibtex.tex.base bibtex.tex + +clean: tex-clean + +distclean: rebase clean tex-distclean + $(RM) *.patch + $(RM) bibtex_*.pdf diff --git a/latex_mk/sample/bibtex/bibtex.tex b/latex_mk/sample/bibtex/bibtex.tex new file mode 100644 index 0000000..4bd322e --- /dev/null +++ b/latex_mk/sample/bibtex/bibtex.tex @@ -0,0 +1,9 @@ +\documentclass{jsarticle} +\begin{document} +\cite{jtexbook}は、{\TeX}の原典。 + +\cite{jlatexbook}は、{\LaTeX}の原典。 + +\bibliographystyle{jplain} +\bibliography{ref} +\end{document} diff --git a/latex_mk/sample/bibtex/bibtex.tex.2nd b/latex_mk/sample/bibtex/bibtex.tex.2nd new file mode 100644 index 0000000..519bb03 --- /dev/null +++ b/latex_mk/sample/bibtex/bibtex.tex.2nd @@ -0,0 +1,11 @@ +\documentclass{jsarticle} +\begin{document} +\cite{jtexbook}は、{\TeX}の原典。 + +\cite{jlatexbook}は、{\LaTeX}の原典。 + +\cite{okumura:bibunsho6}は、{\TeX}および{\LaTeX}の日本語環境での使い方や最新情報が記載されている。 + +\bibliographystyle{jplain} +\bibliography{ref} +\end{document} diff --git a/latex_mk/sample/bibtex/bibtex.tex.base b/latex_mk/sample/bibtex/bibtex.tex.base new file mode 100644 index 0000000..4bd322e --- /dev/null +++ b/latex_mk/sample/bibtex/bibtex.tex.base @@ -0,0 +1,9 @@ +\documentclass{jsarticle} +\begin{document} +\cite{jtexbook}は、{\TeX}の原典。 + +\cite{jlatexbook}は、{\LaTeX}の原典。 + +\bibliographystyle{jplain} +\bibliography{ref} +\end{document} diff --git a/latex_mk/sample/bibtex/desc.txt b/latex_mk/sample/bibtex/desc.txt new file mode 100644 index 0000000..83ab735 --- /dev/null +++ b/latex_mk/sample/bibtex/desc.txt @@ -0,0 +1 @@ +BiBTeXで生成する文献リストを含むLaTeXファイル diff --git a/latex_mk/test/bibtex/latex.mk b/latex_mk/sample/bibtex/latex.mk similarity index 100% rename from latex_mk/test/bibtex/latex.mk rename to latex_mk/sample/bibtex/latex.mk diff --git a/latex_mk/sample/bibtex/ref.bib b/latex_mk/sample/bibtex/ref.bib new file mode 100644 index 0000000..32c0ca0 --- /dev/null +++ b/latex_mk/sample/bibtex/ref.bib @@ -0,0 +1,15 @@ +@book{jtexbook, + author = "Donald E. Knuth", + title = "{\TeX}ブック", + publisher = "アスキー", + isbn = "4-7561-0010-4", + year = 1989, +} + +@book{jlatexbook, + author = "Leslie Lamport", + title = "文書処理システム{\LaTeX}", + publisher = "アスキー", + isbn = "4-7561-0784-2", + year = 1990, +} diff --git a/latex_mk/sample/bibtex/ref.bib.base b/latex_mk/sample/bibtex/ref.bib.base new file mode 100644 index 0000000..32c0ca0 --- /dev/null +++ b/latex_mk/sample/bibtex/ref.bib.base @@ -0,0 +1,15 @@ +@book{jtexbook, + author = "Donald E. Knuth", + title = "{\TeX}ブック", + publisher = "アスキー", + isbn = "4-7561-0010-4", + year = 1989, +} + +@book{jlatexbook, + author = "Leslie Lamport", + title = "文書処理システム{\LaTeX}", + publisher = "アスキー", + isbn = "4-7561-0784-2", + year = 1990, +} diff --git a/latex_mk/sample/bibtex/ref_add.bib b/latex_mk/sample/bibtex/ref_add.bib new file mode 100644 index 0000000..e5f2cf0 --- /dev/null +++ b/latex_mk/sample/bibtex/ref_add.bib @@ -0,0 +1,9 @@ + +@book{okumura:bibunsho6, + author = "奥村 晴彦 and 黒木 裕介", + yomi = "Haruhiko Okumura and Yusuke Kuroki", + title = "[改訂第6版]{\LaTeXe}美文書作成入門", + publisher = "技術評論社", + isbn = "978-4-7741-6045-0", + year = 2013, +} diff --git a/latex_mk/sample/crossref/Makefile b/latex_mk/sample/crossref/Makefile new file mode 100644 index 0000000..6a147f5 --- /dev/null +++ b/latex_mk/sample/crossref/Makefile @@ -0,0 +1,9 @@ +TEXTARGETS := crossref.pdf + +all: $(TEXTARGETS) + +include latex.mk + +clean: tex-clean + +distclean: clean tex-distclean diff --git a/latex_mk/test/crossref/crossref.tex b/latex_mk/sample/crossref/crossref.tex similarity index 100% rename from latex_mk/test/crossref/crossref.tex rename to latex_mk/sample/crossref/crossref.tex diff --git a/latex_mk/sample/crossref/desc.txt b/latex_mk/sample/crossref/desc.txt new file mode 100644 index 0000000..e593c67 --- /dev/null +++ b/latex_mk/sample/crossref/desc.txt @@ -0,0 +1 @@ +相互参照を含むLaTeXファイル diff --git a/latex_mk/test/crossref/latex.mk b/latex_mk/sample/crossref/latex.mk similarity index 100% rename from latex_mk/test/crossref/latex.mk rename to latex_mk/sample/crossref/latex.mk diff --git a/latex_mk/sample/error_crossref/Makefile b/latex_mk/sample/error_crossref/Makefile new file mode 100644 index 0000000..6a147f5 --- /dev/null +++ b/latex_mk/sample/error_crossref/Makefile @@ -0,0 +1,9 @@ +TEXTARGETS := crossref.pdf + +all: $(TEXTARGETS) + +include latex.mk + +clean: tex-clean + +distclean: clean tex-distclean diff --git a/latex_mk/test/error_crossref/crossref.tex b/latex_mk/sample/error_crossref/crossref.tex similarity index 100% rename from latex_mk/test/error_crossref/crossref.tex rename to latex_mk/sample/error_crossref/crossref.tex diff --git a/latex_mk/sample/error_crossref/desc.txt b/latex_mk/sample/error_crossref/desc.txt new file mode 100644 index 0000000..9c0011f --- /dev/null +++ b/latex_mk/sample/error_crossref/desc.txt @@ -0,0 +1 @@ +相互参照エラーが発生するLaTeファイル diff --git a/latex_mk/test/error_crossref/latex.mk b/latex_mk/sample/error_crossref/latex.mk similarity index 100% rename from latex_mk/test/error_crossref/latex.mk rename to latex_mk/sample/error_crossref/latex.mk diff --git a/latex_mk/sample/error_no_end_seq/Makefile b/latex_mk/sample/error_no_end_seq/Makefile new file mode 100644 index 0000000..1312ed6 --- /dev/null +++ b/latex_mk/sample/error_no_end_seq/Makefile @@ -0,0 +1,15 @@ +TEXTARGETS := error_no_end_seq.pdf + +CMP := cmp -s +SED := sed + +.PHONY: all clean distclean + +all: + $(MAKE) -s $(TEXTARGETS) && exit 1 || exit 0 + +include latex.mk + +clean: tex-clean + +distclean: tex-distclean diff --git a/latex_mk/sample/error_no_end_seq/desc.txt b/latex_mk/sample/error_no_end_seq/desc.txt new file mode 100644 index 0000000..7444823 --- /dev/null +++ b/latex_mk/sample/error_no_end_seq/desc.txt @@ -0,0 +1 @@ +\end{document} がないLaTeXファイル diff --git a/latex_mk/test/error_no_end_seq/simple.tex b/latex_mk/sample/error_no_end_seq/error_no_end_seq.tex similarity index 100% rename from latex_mk/test/error_no_end_seq/simple.tex rename to latex_mk/sample/error_no_end_seq/error_no_end_seq.tex diff --git a/latex_mk/test/error_no_end_seq/latex.mk b/latex_mk/sample/error_no_end_seq/latex.mk similarity index 100% rename from latex_mk/test/error_no_end_seq/latex.mk rename to latex_mk/sample/error_no_end_seq/latex.mk diff --git a/latex_mk/sample/error_no_graphic_file/Makefile b/latex_mk/sample/error_no_graphic_file/Makefile new file mode 100644 index 0000000..64f6c04 --- /dev/null +++ b/latex_mk/sample/error_no_graphic_file/Makefile @@ -0,0 +1,12 @@ +.PHONY: all clean distclean + +TEXTARGETS := error_no_graphic_file.pdf + +all: + $(MAKE) -s error_no_graphic_file.pdf && exit 1 || exit 0 + +include latex.mk + +clean: tex-clean + +distclean: clean tex-distclean diff --git a/latex_mk/test/error_no_graphic_file/banana.jpg b/latex_mk/sample/error_no_graphic_file/banana.jpg similarity index 100% rename from latex_mk/test/error_no_graphic_file/banana.jpg rename to latex_mk/sample/error_no_graphic_file/banana.jpg diff --git a/latex_mk/sample/error_no_graphic_file/desc.txt b/latex_mk/sample/error_no_graphic_file/desc.txt new file mode 100644 index 0000000..03a090e --- /dev/null +++ b/latex_mk/sample/error_no_graphic_file/desc.txt @@ -0,0 +1 @@ +実在しないファイルを\includegraphicsで指定したLaTeXファイル diff --git a/latex_mk/test/error_no_graphic_file/graphics.tex b/latex_mk/sample/error_no_graphic_file/graphics.tex similarity index 100% rename from latex_mk/test/error_no_graphic_file/graphics.tex rename to latex_mk/sample/error_no_graphic_file/graphics.tex diff --git a/latex_mk/test/error_no_graphic_file/latex.mk b/latex_mk/sample/error_no_graphic_file/latex.mk similarity index 100% rename from latex_mk/test/error_no_graphic_file/latex.mk rename to latex_mk/sample/error_no_graphic_file/latex.mk diff --git a/latex_mk/sample/error_undef_ctl_seq/Makefile b/latex_mk/sample/error_undef_ctl_seq/Makefile new file mode 100644 index 0000000..4cd712d --- /dev/null +++ b/latex_mk/sample/error_undef_ctl_seq/Makefile @@ -0,0 +1,14 @@ +TEXTARGETS := simple.pdf + +CMP := cmp -s +SED := sed + +.PHONY: all clean distclean + +all: $(TEXTARGETS) + +include latex.mk + +clean: tex-clean + +distclean: clean tex-distclean diff --git a/latex_mk/sample/error_undef_ctl_seq/desc.txt b/latex_mk/sample/error_undef_ctl_seq/desc.txt new file mode 100644 index 0000000..d4bfd00 --- /dev/null +++ b/latex_mk/sample/error_undef_ctl_seq/desc.txt @@ -0,0 +1 @@ +未定義のコントロールシークエンス(TeX命令)を含むLaTeXファイル diff --git a/latex_mk/test/error_undef_ctl_seq/latex.mk b/latex_mk/sample/error_undef_ctl_seq/latex.mk similarity index 100% rename from latex_mk/test/error_undef_ctl_seq/latex.mk rename to latex_mk/sample/error_undef_ctl_seq/latex.mk diff --git a/latex_mk/test/error_undef_ctl_seq/simple.tex b/latex_mk/sample/error_undef_ctl_seq/simple.tex similarity index 100% rename from latex_mk/test/error_undef_ctl_seq/simple.tex rename to latex_mk/sample/error_undef_ctl_seq/simple.tex diff --git a/latex_mk/sample/graphics_comment/Makefile b/latex_mk/sample/graphics_comment/Makefile new file mode 100644 index 0000000..39abe36 --- /dev/null +++ b/latex_mk/sample/graphics_comment/Makefile @@ -0,0 +1,18 @@ +.PHONY: all update rebase + +TEXTARGETS := graphics_comment.pdf + +CMP := cmp -s +CP := cp +CONVERT := convert + +$(TEXTARGETS): + +all: $(TEXTARGETS) + +include latex.mk + +clean: tex-clean + +distclean: rebase clean tex-distclean + $(RM) graphics_*.pdf diff --git a/latex_mk/sample/graphics_comment/desc.txt b/latex_mk/sample/graphics_comment/desc.txt new file mode 100644 index 0000000..c5543df --- /dev/null +++ b/latex_mk/sample/graphics_comment/desc.txt @@ -0,0 +1 @@ +通常の\includegraphics命令による画像挿入と、コメントやverbatim環境内などの\includegraphics命令(画像挿入しない)を含むLaTeXファイル diff --git a/latex_mk/test/graphics_comment/graphics_comment.tex b/latex_mk/sample/graphics_comment/graphics_comment.tex similarity index 88% rename from latex_mk/test/graphics_comment/graphics_comment.tex rename to latex_mk/sample/graphics_comment/graphics_comment.tex index 17b3683..d27496b 100644 --- a/latex_mk/test/graphics_comment/graphics_comment.tex +++ b/latex_mk/sample/graphics_comment/graphics_comment.tex @@ -1,5 +1,6 @@ \documentclass{jsarticle} \usepackage[dvipdfmx,hiresbb]{graphicx} +\usepackage{url} \begin{document} \section{通常} @@ -50,7 +51,6 @@ \begin{verbatim} \includegraphics[width=15cm]{tiger5.pdf} - \end{verbatim} \section{\tt{verb}環境} @@ -61,4 +61,8 @@ \verb|\verb| 内の画像\texttt{tiger6.pdf} は読み込まれない。 \verb|\includegraphics[width=15cm]{tiger6.pdf}| + +\vspace{4zw} + +all graphics in this document are made from \verb|Panthera tigris tigris.jpg|; 22:44, 16 July 2009 UTC; URL: \url{http://en.wikipedia.org/wiki/File:Panthera_tigris_tigris.jpg}. \end{document} diff --git a/latex_mk/test/graphics/latex.mk b/latex_mk/sample/graphics_comment/latex.mk similarity index 100% rename from latex_mk/test/graphics/latex.mk rename to latex_mk/sample/graphics_comment/latex.mk diff --git a/latex_mk/test/graphics_comment/tiger1.pdf b/latex_mk/sample/graphics_comment/tiger1.pdf similarity index 100% rename from latex_mk/test/graphics_comment/tiger1.pdf rename to latex_mk/sample/graphics_comment/tiger1.pdf diff --git a/latex_mk/test/graphics_comment/tiger4.pdf b/latex_mk/sample/graphics_comment/tiger4.pdf similarity index 100% rename from latex_mk/test/graphics_comment/tiger4.pdf rename to latex_mk/sample/graphics_comment/tiger4.pdf diff --git a/latex_mk/sample/graphics_eps/Makefile b/latex_mk/sample/graphics_eps/Makefile new file mode 100644 index 0000000..b50b90f --- /dev/null +++ b/latex_mk/sample/graphics_eps/Makefile @@ -0,0 +1,37 @@ +.PHONY: all update rebase + +TEXTARGETS := graphics_eps.pdf + +CMP := cmp -s +CP := cp +CONVERT := convert + +$(TEXTARGETS): + +all: + @$(MAKE) -s graphics_eps_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s graphics_eps_2.pdf + +graphics_eps_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s graphics_eps.pdf + $(CP) -v graphics_eps.pdf $@ + +graphics_eps_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s graphics_eps.pdf + $(CP) -v graphics_eps.pdf $@ + +rebase: + $(CMP) tiger.eps.base tiger.eps || $(CP) tiger.eps.base tiger.eps + +update: + $(CONVERT) Panthera_tigris_tigris.jpg tiger.eps + +include latex.mk + +clean: tex-clean + +distclean: rebase clean tex-distclean + $(RM) graphics_eps_*.pdf diff --git a/latex_mk/test/graphics_eps/Panthera_tigris_tigris.jpg b/latex_mk/sample/graphics_eps/Panthera_tigris_tigris.jpg similarity index 100% rename from latex_mk/test/graphics_eps/Panthera_tigris_tigris.jpg rename to latex_mk/sample/graphics_eps/Panthera_tigris_tigris.jpg diff --git a/latex_mk/sample/graphics_eps/desc.txt b/latex_mk/sample/graphics_eps/desc.txt new file mode 100644 index 0000000..64cb990 --- /dev/null +++ b/latex_mk/sample/graphics_eps/desc.txt @@ -0,0 +1 @@ +EPS画像を含むLaTeXファイル diff --git a/latex_mk/sample/graphics_eps/graphics_eps.tex b/latex_mk/sample/graphics_eps/graphics_eps.tex new file mode 100644 index 0000000..ed804fc --- /dev/null +++ b/latex_mk/sample/graphics_eps/graphics_eps.tex @@ -0,0 +1,9 @@ +\documentclass{jsarticle} +\usepackage[dvipdfmx]{graphicx} +\usepackage{url} +\begin{document} +\includegraphics[width=15cm]{tiger.eps} + +\verb|tiger.eps| from the Ghostscript examples or, +\verb|Panthera tigris tigris.jpg|; 22:44, 16 July 2009 UTC; URL: \url{http://en.wikipedia.org/wiki/File:Panthera_tigris_tigris.jpg} +\end{document} diff --git a/latex_mk/test/graphics_comment/latex.mk b/latex_mk/sample/graphics_eps/latex.mk similarity index 100% rename from latex_mk/test/graphics_comment/latex.mk rename to latex_mk/sample/graphics_eps/latex.mk diff --git a/latex_mk/test/graphics_eps/tiger.eps b/latex_mk/sample/graphics_eps/tiger.eps similarity index 100% rename from latex_mk/test/graphics_eps/tiger.eps rename to latex_mk/sample/graphics_eps/tiger.eps diff --git a/latex_mk/test/graphics_eps/tiger.eps.base b/latex_mk/sample/graphics_eps/tiger.eps.base similarity index 100% rename from latex_mk/test/graphics_eps/tiger.eps.base rename to latex_mk/sample/graphics_eps/tiger.eps.base diff --git a/latex_mk/test/graphics/Makefile b/latex_mk/sample/graphics_multi/Makefile similarity index 100% rename from latex_mk/test/graphics/Makefile rename to latex_mk/sample/graphics_multi/Makefile diff --git a/latex_mk/test/graphics/banana.jpg b/latex_mk/sample/graphics_multi/banana.jpg similarity index 100% rename from latex_mk/test/graphics/banana.jpg rename to latex_mk/sample/graphics_multi/banana.jpg diff --git a/latex_mk/test/graphics/cherry.jpg b/latex_mk/sample/graphics_multi/cherry.jpg similarity index 100% rename from latex_mk/test/graphics/cherry.jpg rename to latex_mk/sample/graphics_multi/cherry.jpg diff --git a/latex_mk/sample/graphics_multi/desc.txt b/latex_mk/sample/graphics_multi/desc.txt new file mode 100644 index 0000000..ee8abda --- /dev/null +++ b/latex_mk/sample/graphics_multi/desc.txt @@ -0,0 +1 @@ +複数(1行に複数)の画像ファイルを含むLaTeXファイル diff --git a/latex_mk/test/graphics/fruits.jpg b/latex_mk/sample/graphics_multi/fruits.jpg similarity index 100% rename from latex_mk/test/graphics/fruits.jpg rename to latex_mk/sample/graphics_multi/fruits.jpg diff --git a/latex_mk/test/graphics/grapefruits.jpg b/latex_mk/sample/graphics_multi/grapefruits.jpg similarity index 100% rename from latex_mk/test/graphics/grapefruits.jpg rename to latex_mk/sample/graphics_multi/grapefruits.jpg diff --git a/latex_mk/test/graphics/graphics.tex b/latex_mk/sample/graphics_multi/graphics.tex similarity index 69% rename from latex_mk/test/graphics/graphics.tex rename to latex_mk/sample/graphics_multi/graphics.tex index a9430ca..d8259f6 100644 --- a/latex_mk/test/graphics/graphics.tex +++ b/latex_mk/sample/graphics_multi/graphics.tex @@ -1,5 +1,6 @@ \documentclass{jsarticle} \usepackage[dvipdfmx,hiresbb]{graphicx} +\usepackage{url} \begin{document} \includegraphics[width=5cm]{banana.jpg} graphics in text.\includegraphics[width=5cm]{cherry.jpg} \includegraphics[width=5cm]{fruits.jpg} @@ -8,4 +9,8 @@ \includegraphics[width=5cm]{melon.jpg} \includegraphics[width=5cm]{orange.jpg} + +\vspace{4zw} + +画像出典: 食材・料理のフリー写真素材 無料画像のフード・フォト URL: \url{http://food.foto.ne.jp/} \end{document} diff --git a/latex_mk/test/graphics_eps/latex.mk b/latex_mk/sample/graphics_multi/latex.mk similarity index 100% rename from latex_mk/test/graphics_eps/latex.mk rename to latex_mk/sample/graphics_multi/latex.mk diff --git a/latex_mk/test/graphics/melon.jpg b/latex_mk/sample/graphics_multi/melon.jpg similarity index 100% rename from latex_mk/test/graphics/melon.jpg rename to latex_mk/sample/graphics_multi/melon.jpg diff --git a/latex_mk/test/graphics/orange.jpg b/latex_mk/sample/graphics_multi/orange.jpg similarity index 100% rename from latex_mk/test/graphics/orange.jpg rename to latex_mk/sample/graphics_multi/orange.jpg diff --git a/latex_mk/sample/graphics_pdf/Makefile b/latex_mk/sample/graphics_pdf/Makefile new file mode 100644 index 0000000..65c475a --- /dev/null +++ b/latex_mk/sample/graphics_pdf/Makefile @@ -0,0 +1,37 @@ +.PHONY: all update rebase + +TEXTARGETS := graphics_pdf.pdf + +CMP := cmp -s +CP := cp +CONVERT := convert + +$(TEXTARGETS): + +all: + @$(MAKE) -s graphics_pdf_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s graphics_pdf_2.pdf + +graphics_pdf_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s graphics_pdf.pdf + $(CP) -v graphics_pdf.pdf $@ + +graphics_pdf_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s graphics_pdf.pdf + $(CP) -v graphics_pdf.pdf $@ + +rebase: + $(CMP) tiger.pdf.base tiger.pdf || $(CP) -v tiger.pdf.base tiger.pdf + +update: + $(CONVERT) Panthera_tigris_tigris.jpg tiger.pdf + +include latex.mk + +clean: tex-clean + +distclean: rebase clean tex-distclean + $(RM) graphics_pdf_*.pdf diff --git a/latex_mk/test/graphics_pdf/Panthera_tigris_tigris.jpg b/latex_mk/sample/graphics_pdf/Panthera_tigris_tigris.jpg similarity index 100% rename from latex_mk/test/graphics_pdf/Panthera_tigris_tigris.jpg rename to latex_mk/sample/graphics_pdf/Panthera_tigris_tigris.jpg diff --git a/latex_mk/sample/graphics_pdf/desc.txt b/latex_mk/sample/graphics_pdf/desc.txt new file mode 100644 index 0000000..29ed903 --- /dev/null +++ b/latex_mk/sample/graphics_pdf/desc.txt @@ -0,0 +1 @@ +PDF画像を含むLaTeXファイル diff --git a/latex_mk/sample/graphics_pdf/graphics_pdf.tex b/latex_mk/sample/graphics_pdf/graphics_pdf.tex new file mode 100644 index 0000000..a529b47 --- /dev/null +++ b/latex_mk/sample/graphics_pdf/graphics_pdf.tex @@ -0,0 +1,9 @@ +\documentclass{jsarticle} +\usepackage[dvipdfmx,hiresbb]{graphicx} +\usepackage{url} +\begin{document} +\includegraphics[width=15cm]{tiger.pdf} + +\verb|tiger.eps| from the Ghostscript examples or, +\verb|Panthera tigris tigris.jpg|; 22:44, 16 July 2009 UTC; URL: \url{http://en.wikipedia.org/wiki/File:Panthera_tigris_tigris.jpg} +\end{document} diff --git a/latex_mk/test/graphics_pdf/latex.mk b/latex_mk/sample/graphics_pdf/latex.mk similarity index 100% rename from latex_mk/test/graphics_pdf/latex.mk rename to latex_mk/sample/graphics_pdf/latex.mk diff --git a/latex_mk/test/graphics_pdf/tiger.pdf b/latex_mk/sample/graphics_pdf/tiger.pdf similarity index 100% rename from latex_mk/test/graphics_pdf/tiger.pdf rename to latex_mk/sample/graphics_pdf/tiger.pdf diff --git a/latex_mk/test/graphics_pdf/tiger.pdf.base b/latex_mk/sample/graphics_pdf/tiger.pdf.base similarity index 100% rename from latex_mk/test/graphics_pdf/tiger.pdf.base rename to latex_mk/sample/graphics_pdf/tiger.pdf.base diff --git a/latex_mk/sample/makeindex/Makefile b/latex_mk/sample/makeindex/Makefile new file mode 100644 index 0000000..c97531d --- /dev/null +++ b/latex_mk/sample/makeindex/Makefile @@ -0,0 +1,47 @@ +TEXTARGETS := makeindex.pdf + +.PHONY: all index-update rebase index-rebase tex-update tex-rebase clean distclean + +CMP := cmp -s +SED := sed + +$(TEXTARGETS): + +all: + @$(MAKE) -s makeindex_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s makeindex_2.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s makeindex_3.pdf + +makeindex_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s makeindex.pdf + @$(CP) -v makeindex.pdf $@ + +makeindex_2.pdf: body-update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s makeindex.pdf + @$(CP) -v makeindex.pdf $@ + +makeindex_3.pdf: index-update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s makeindex.pdf + @$(CP) -v makeindex.pdf $@ + +body-update: + $(SED) -i.bak -e 's/本文変更なし。/本文を変更。/' makeindex.tex + +index-update: + $(SED) -i.bak -e 's/楽譜の/楽譜\\index{がくふ@楽譜}の/' makeindex.tex + +rebase: + $(CMP) makeindex.tex.base makeindex.tex || $(CP) -v makeindex.tex.base makeindex.tex + +include latex.mk + +clean: tex-clean rebase + $(RM) *.bak + +distclean: clean tex-distclean + $(RM) makeindex_*.pdf diff --git a/latex_mk/sample/makeindex/desc.txt b/latex_mk/sample/makeindex/desc.txt new file mode 100644 index 0000000..980a3df --- /dev/null +++ b/latex_mk/sample/makeindex/desc.txt @@ -0,0 +1 @@ +索引を生成するLaTeXファイル diff --git a/latex_mk/test/hyperref/latex.mk b/latex_mk/sample/makeindex/latex.mk similarity index 100% rename from latex_mk/test/hyperref/latex.mk rename to latex_mk/sample/makeindex/latex.mk diff --git a/latex_mk/test/makeindex/makeindex.tex b/latex_mk/sample/makeindex/makeindex.tex similarity index 100% rename from latex_mk/test/makeindex/makeindex.tex rename to latex_mk/sample/makeindex/makeindex.tex diff --git a/latex_mk/test/makeindex/makeindex.tex.base b/latex_mk/sample/makeindex/makeindex.tex.base similarity index 100% rename from latex_mk/test/makeindex/makeindex.tex.base rename to latex_mk/sample/makeindex/makeindex.tex.base diff --git a/latex_mk/sample/otsuberuto_zo/Makefile b/latex_mk/sample/otsuberuto_zo/Makefile new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/sample/otsuberuto_zo/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/otsuberuto_zo/aozora.sty b/latex_mk/sample/otsuberuto_zo/aozora.sty similarity index 100% rename from latex_mk/test/otsuberuto_zo/aozora.sty rename to latex_mk/sample/otsuberuto_zo/aozora.sty diff --git a/latex_mk/test/otsuberuto_zo/azlogo.eps b/latex_mk/sample/otsuberuto_zo/azlogo.eps similarity index 100% rename from latex_mk/test/otsuberuto_zo/azlogo.eps rename to latex_mk/sample/otsuberuto_zo/azlogo.eps diff --git a/latex_mk/sample/otsuberuto_zo/desc.txt b/latex_mk/sample/otsuberuto_zo/desc.txt new file mode 100644 index 0000000..25e88eb --- /dev/null +++ b/latex_mk/sample/otsuberuto_zo/desc.txt @@ -0,0 +1,2 @@ +青空文庫の宮沢 賢治「オツベルと象」(http://www.aozora.gr.jp/cards/000081/card466.html)のLaTeXファイル。独自のstyファイルを参照している + diff --git a/latex_mk/test/otsuberuto_zo/furikana.sty b/latex_mk/sample/otsuberuto_zo/furikana.sty similarity index 100% rename from latex_mk/test/otsuberuto_zo/furikana.sty rename to latex_mk/sample/otsuberuto_zo/furikana.sty diff --git a/latex_mk/test/makeindex/latex.mk b/latex_mk/sample/otsuberuto_zo/latex.mk similarity index 100% rename from latex_mk/test/makeindex/latex.mk rename to latex_mk/sample/otsuberuto_zo/latex.mk diff --git a/latex_mk/test/otsuberuto_zo/otsuberuto_zo.tex b/latex_mk/sample/otsuberuto_zo/otsuberuto_zo.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo/otsuberuto_zo.tex rename to latex_mk/sample/otsuberuto_zo/otsuberuto_zo.tex diff --git a/latex_mk/sample/otsuberuto_zo_s/Makefile b/latex_mk/sample/otsuberuto_zo_s/Makefile new file mode 100644 index 0000000..1e7aeaa --- /dev/null +++ b/latex_mk/sample/otsuberuto_zo_s/Makefile @@ -0,0 +1,9 @@ +TEXTARGETS := otsuberuto_zo.pdf + +all: $(TEXTARGETS) + +include latex.mk + +clean: tex-clean + +distclean: clean tex-distclean diff --git a/latex_mk/test/otsuberuto_zo_s/aozora.sty b/latex_mk/sample/otsuberuto_zo_s/aozora.sty similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/aozora.sty rename to latex_mk/sample/otsuberuto_zo_s/aozora.sty diff --git a/latex_mk/test/otsuberuto_zo_s/aozora.tex b/latex_mk/sample/otsuberuto_zo_s/aozora.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/aozora.tex rename to latex_mk/sample/otsuberuto_zo_s/aozora.tex diff --git a/latex_mk/test/otsuberuto_zo_s/azlogo.eps b/latex_mk/sample/otsuberuto_zo_s/azlogo.eps similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/azlogo.eps rename to latex_mk/sample/otsuberuto_zo_s/azlogo.eps diff --git a/latex_mk/test/otsuberuto_zo_s/body.tex b/latex_mk/sample/otsuberuto_zo_s/body.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/body.tex rename to latex_mk/sample/otsuberuto_zo_s/body.tex diff --git a/latex_mk/test/otsuberuto_zo_s/daigo.tex b/latex_mk/sample/otsuberuto_zo_s/daigo.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/daigo.tex rename to latex_mk/sample/otsuberuto_zo_s/daigo.tex diff --git a/latex_mk/test/otsuberuto_zo_s/daiichi.tex b/latex_mk/sample/otsuberuto_zo_s/daiichi.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/daiichi.tex rename to latex_mk/sample/otsuberuto_zo_s/daiichi.tex diff --git a/latex_mk/test/otsuberuto_zo_s/daini.tex b/latex_mk/sample/otsuberuto_zo_s/daini.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/daini.tex rename to latex_mk/sample/otsuberuto_zo_s/daini.tex diff --git a/latex_mk/sample/otsuberuto_zo_s/desc.txt b/latex_mk/sample/otsuberuto_zo_s/desc.txt new file mode 100644 index 0000000..7cd7a92 --- /dev/null +++ b/latex_mk/sample/otsuberuto_zo_s/desc.txt @@ -0,0 +1 @@ +分割されたLaTeXファイル。元は、青空文庫の宮沢 賢治「オツベルと象」(http://www.aozora.gr.jp/cards/000081/card466.html)のLaTeXファイル(otsuberuto_zo)。 diff --git a/latex_mk/test/otsuberuto_zo_s/furikana.sty b/latex_mk/sample/otsuberuto_zo_s/furikana.sty similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/furikana.sty rename to latex_mk/sample/otsuberuto_zo_s/furikana.sty diff --git a/latex_mk/test/otsuberuto_zo/latex.mk b/latex_mk/sample/otsuberuto_zo_s/latex.mk similarity index 100% rename from latex_mk/test/otsuberuto_zo/latex.mk rename to latex_mk/sample/otsuberuto_zo_s/latex.mk diff --git a/latex_mk/test/otsuberuto_zo_s/otsuberuto_zo.tex b/latex_mk/sample/otsuberuto_zo_s/otsuberuto_zo.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/otsuberuto_zo.tex rename to latex_mk/sample/otsuberuto_zo_s/otsuberuto_zo.tex diff --git a/latex_mk/test/otsuberuto_zo_s/style.tex b/latex_mk/sample/otsuberuto_zo_s/style.tex similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/style.tex rename to latex_mk/sample/otsuberuto_zo_s/style.tex diff --git a/latex_mk/sample/pdfbookmarks/Makefile b/latex_mk/sample/pdfbookmarks/Makefile new file mode 100644 index 0000000..c67bdd9 --- /dev/null +++ b/latex_mk/sample/pdfbookmarks/Makefile @@ -0,0 +1,42 @@ +TEXTARGETS := pdfbookmarks.pdf + +CMP := cmp -s +DIFF := diff +PATCH := patch + +.PHONY: all update rebase clean distclean + +$(TEXTARGETS): + +all: + @$(MAKE) -s pdfbookmarks_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s pdfbookmarks_2.pdf + +pdfbookmarks_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s pdfbookmarks.pdf + @$(CP) -v pdfbookmarks.pdf $@ + +pdfbookmarks_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s pdfbookmarks.pdf + @$(CP) -v pdfbookmarks.pdf $@ + +update: pdfbookmarks.tex.6th.patch + @$(PATCH) <$< + +pdfbookmarks.tex.6th.patch: + @$(MAKE) -s rebase + @$(DIFF) -u pdfbookmarks.tex pdfbookmarks.tex.6th >$@ || exit 0 + +rebase: + $(CMP) pdfbookmarks.tex.5th pdfbookmarks.tex || $(CP) -v pdfbookmarks.tex.5th pdfbookmarks.tex + +include latex.mk + +clean: tex-clean + +distclean: rebase tex-distclean + $(RM) *.patch + $(RM) pdfbookmarks_*.pdf diff --git a/latex_mk/sample/pdfbookmarks/desc.txt b/latex_mk/sample/pdfbookmarks/desc.txt new file mode 100644 index 0000000..888e364 --- /dev/null +++ b/latex_mk/sample/pdfbookmarks/desc.txt @@ -0,0 +1 @@ +PDF生成時にPDFブックマークを含むLaTeXファイル diff --git a/latex_mk/test/otsuberuto_zo_s/latex.mk b/latex_mk/sample/pdfbookmarks/latex.mk similarity index 100% rename from latex_mk/test/otsuberuto_zo_s/latex.mk rename to latex_mk/sample/pdfbookmarks/latex.mk diff --git a/latex_mk/test/hyperref/hyperref.tex b/latex_mk/sample/pdfbookmarks/pdfbookmarks.tex similarity index 100% rename from latex_mk/test/hyperref/hyperref.tex rename to latex_mk/sample/pdfbookmarks/pdfbookmarks.tex diff --git a/latex_mk/test/hyperref/hyperref.tex.5th b/latex_mk/sample/pdfbookmarks/pdfbookmarks.tex.5th similarity index 100% rename from latex_mk/test/hyperref/hyperref.tex.5th rename to latex_mk/sample/pdfbookmarks/pdfbookmarks.tex.5th diff --git a/latex_mk/test/hyperref/hyperref.tex.6th b/latex_mk/sample/pdfbookmarks/pdfbookmarks.tex.6th similarity index 100% rename from latex_mk/test/hyperref/hyperref.tex.6th rename to latex_mk/sample/pdfbookmarks/pdfbookmarks.tex.6th diff --git a/latex_mk/sample/sample/Makefile b/latex_mk/sample/sample/Makefile new file mode 120000 index 0000000..2862b17 --- /dev/null +++ b/latex_mk/sample/sample/Makefile @@ -0,0 +1 @@ +../Makefile.template \ No newline at end of file diff --git a/latex_mk/sample/sample/desc.txt b/latex_mk/sample/sample/desc.txt new file mode 100644 index 0000000..e158dad --- /dev/null +++ b/latex_mk/sample/sample/desc.txt @@ -0,0 +1 @@ +Leslie LamportによるLaTeXサンプル diff --git a/latex_mk/test/sample/latex.mk b/latex_mk/sample/sample/latex.mk similarity index 100% rename from latex_mk/test/sample/latex.mk rename to latex_mk/sample/sample/latex.mk diff --git a/latex_mk/test/sample/sample.tex b/latex_mk/sample/sample/sample.tex similarity index 100% rename from latex_mk/test/sample/sample.tex rename to latex_mk/sample/sample/sample.tex diff --git a/latex_mk/sample/sanposhojo/Makefile b/latex_mk/sample/sanposhojo/Makefile new file mode 100644 index 0000000..b03d196 --- /dev/null +++ b/latex_mk/sample/sanposhojo/Makefile @@ -0,0 +1,11 @@ +TEXTARGETS = q1.pdf q1_ans.pdf + +.PHONY: all + +all: $(TEXTARGETS) + +include latex.mk eukleides.mk + +distclean: tex-distclean eukleides-distclean + +clean: tex-clean eukleides-clean diff --git a/latex_mk/sample/sanposhojo/desc.txt b/latex_mk/sample/sanposhojo/desc.txt new file mode 100644 index 0000000..ab7f722 --- /dev/null +++ b/latex_mk/sample/sanposhojo/desc.txt @@ -0,0 +1,2 @@ +『算法少女』より、問題とその答え。要eukleides(http://www.eukleides.org/)。 + diff --git a/latex_mk/test/sanposhojo/eukleides.mk b/latex_mk/sample/sanposhojo/eukleides.mk similarity index 100% rename from latex_mk/test/sanposhojo/eukleides.mk rename to latex_mk/sample/sanposhojo/eukleides.mk diff --git a/latex_mk/test/sanposhojo/latex.mk b/latex_mk/sample/sanposhojo/latex.mk similarity index 100% rename from latex_mk/test/sanposhojo/latex.mk rename to latex_mk/sample/sanposhojo/latex.mk diff --git a/latex_mk/test/sanposhojo/q1.tex b/latex_mk/sample/sanposhojo/q1.tex similarity index 100% rename from latex_mk/test/sanposhojo/q1.tex rename to latex_mk/sample/sanposhojo/q1.tex diff --git a/latex_mk/test/sanposhojo/q1_0.euk b/latex_mk/sample/sanposhojo/q1_0.euk similarity index 100% rename from latex_mk/test/sanposhojo/q1_0.euk rename to latex_mk/sample/sanposhojo/q1_0.euk diff --git a/latex_mk/test/sanposhojo/q1_1.euk b/latex_mk/sample/sanposhojo/q1_1.euk similarity index 100% rename from latex_mk/test/sanposhojo/q1_1.euk rename to latex_mk/sample/sanposhojo/q1_1.euk diff --git a/latex_mk/test/sanposhojo/q1_2.euk b/latex_mk/sample/sanposhojo/q1_2.euk similarity index 100% rename from latex_mk/test/sanposhojo/q1_2.euk rename to latex_mk/sample/sanposhojo/q1_2.euk diff --git a/latex_mk/test/sanposhojo/q1_3.euk b/latex_mk/sample/sanposhojo/q1_3.euk similarity index 100% rename from latex_mk/test/sanposhojo/q1_3.euk rename to latex_mk/sample/sanposhojo/q1_3.euk diff --git a/latex_mk/test/sanposhojo/q1_ans.tex b/latex_mk/sample/sanposhojo/q1_ans.tex similarity index 100% rename from latex_mk/test/sanposhojo/q1_ans.tex rename to latex_mk/sample/sanposhojo/q1_ans.tex diff --git a/latex_mk/test/sanposhojo/q1_q.tex b/latex_mk/sample/sanposhojo/q1_q.tex similarity index 100% rename from latex_mk/test/sanposhojo/q1_q.tex rename to latex_mk/sample/sanposhojo/q1_q.tex diff --git a/latex_mk/sample/simple/Makefile b/latex_mk/sample/simple/Makefile new file mode 100644 index 0000000..5ec5bb9 --- /dev/null +++ b/latex_mk/sample/simple/Makefile @@ -0,0 +1,37 @@ +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.bak -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: rebase tex-clean + $(RM) *.bak + +distclean: clean tex-distclean + $(RM) simple_*.pdf diff --git a/latex_mk/sample/simple/desc.txt b/latex_mk/sample/simple/desc.txt new file mode 100644 index 0000000..22d24ae --- /dev/null +++ b/latex_mk/sample/simple/desc.txt @@ -0,0 +1 @@ +シンプル(中間ファイル不要・画像・TeXファイルへの参照なし)なLaTeXファイル diff --git a/latex_mk/test/simple/latex.mk b/latex_mk/sample/simple/latex.mk similarity index 100% rename from latex_mk/test/simple/latex.mk rename to latex_mk/sample/simple/latex.mk diff --git a/latex_mk/test/simple/simple.tex b/latex_mk/sample/simple/simple.tex similarity index 100% rename from latex_mk/test/simple/simple.tex rename to latex_mk/sample/simple/simple.tex diff --git a/latex_mk/test/simple/simple.tex.base b/latex_mk/sample/simple/simple.tex.base similarity index 100% rename from latex_mk/test/simple/simple.tex.base rename to latex_mk/sample/simple/simple.tex.base diff --git a/latex_mk/sample/toc/Makefile b/latex_mk/sample/toc/Makefile new file mode 100644 index 0000000..3e223d9 --- /dev/null +++ b/latex_mk/sample/toc/Makefile @@ -0,0 +1,54 @@ +TEXTARGETS := toc.pdf + +CMP := cmp -s +DIFF := diff +PATCH := patch + +.PHONY: all add update rebase clean distclean + +$(TEXTARGETS): + +all: + @$(MAKE) -s toc_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s toc_2.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s toc_3.pdf + +toc_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc.pdf + @$(CP) -v toc.pdf $@ + +toc_2.pdf: add + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc.pdf + @$(CP) -v toc.pdf $@ + +toc_3.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc.pdf + @$(CP) -v toc.pdf $@ + +add: toc.tex.5th_add.patch + @$(PATCH) <$< + +toc.tex.5th_add.patch: rebase + @$(DIFF) -u toc.tex toc.tex.5th_add >$@ || exit 0 + +update: toc.tex.6th.patch + @$(PATCH) <$< + +toc.tex.6th.patch: rebase + @$(DIFF) -u toc.tex toc.tex.6th >$@ || exit 0 + +rebase: + $(CMP) toc.tex.5th toc.tex || $(CP) -v toc.tex.5th toc.tex + +include latex.mk + +clean: tex-clean + +distclean: rebase tex-distclean + $(RM) *.patch + $(RM) toc_*.pdf diff --git a/latex_mk/sample/toc/desc.txt b/latex_mk/sample/toc/desc.txt new file mode 100644 index 0000000..569e6a2 --- /dev/null +++ b/latex_mk/sample/toc/desc.txt @@ -0,0 +1 @@ +目次(Tableofcontents)を生成するLaTeXファイル diff --git a/latex_mk/test/toc/latex.mk b/latex_mk/sample/toc/latex.mk similarity index 100% rename from latex_mk/test/toc/latex.mk rename to latex_mk/sample/toc/latex.mk diff --git a/latex_mk/test/toc/toc.tex b/latex_mk/sample/toc/toc.tex similarity index 100% rename from latex_mk/test/toc/toc.tex rename to latex_mk/sample/toc/toc.tex diff --git a/latex_mk/test/toc/toc.tex.5th b/latex_mk/sample/toc/toc.tex.5th similarity index 100% rename from latex_mk/test/toc/toc.tex.5th rename to latex_mk/sample/toc/toc.tex.5th diff --git a/latex_mk/test/toc/toc.tex.5th_add b/latex_mk/sample/toc/toc.tex.5th_add similarity index 100% rename from latex_mk/test/toc/toc.tex.5th_add rename to latex_mk/sample/toc/toc.tex.5th_add diff --git a/latex_mk/test/toc/toc.tex.6th b/latex_mk/sample/toc/toc.tex.6th similarity index 100% rename from latex_mk/test/toc/toc.tex.6th rename to latex_mk/sample/toc/toc.tex.6th diff --git a/latex_mk/sample/toc_pdfbookmarks/Makefile b/latex_mk/sample/toc_pdfbookmarks/Makefile new file mode 100644 index 0000000..19c952b --- /dev/null +++ b/latex_mk/sample/toc_pdfbookmarks/Makefile @@ -0,0 +1,54 @@ +TEXTARGETS := toc_pdfbookmarks.pdf + +CMP := cmp -s +DIFF := diff +PATCH := patch + +.PHONY: all add update rebase clean distclean + +$(TEXTARGETS): + +all: + @$(MAKE) -s toc_pdfbookmarks_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s toc_pdfbookmarks_2.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s toc_pdfbookmarks_3.pdf + +toc_pdfbookmarks_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc_pdfbookmarks.pdf + @$(CP) -v toc_pdfbookmarks.pdf $@ + +toc_pdfbookmarks_2.pdf: add + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc_pdfbookmarks.pdf + @$(CP) -v toc_pdfbookmarks.pdf $@ + +toc_pdfbookmarks_3.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc_pdfbookmarks.pdf + @$(CP) -v toc_pdfbookmarks.pdf $@ + +add: toc_pdfbookmarks.tex.5th_add.patch + @$(PATCH) <$< + +update: toc_pdfbookmarks.tex.6th.patch + @$(PATCH) <$< + +toc_pdfbookmarks.tex.5th_add.patch: rebase + @$(DIFF) -u toc_pdfbookmarks.tex toc_pdfbookmarks.tex.5th_add >$@ || exit 0 + +toc_pdfbookmarks.tex.6th.patch: rebase + @$(DIFF) -u toc_pdfbookmarks.tex toc_pdfbookmarks.tex.6th >$@ || exit 0 + +rebase: + $(CMP) toc_pdfbookmarks.tex.5th toc_pdfbookmarks.tex || $(CP) -v toc_pdfbookmarks.tex.5th toc_pdfbookmarks.tex + +include latex.mk + +clean: tex-clean + +distclean: rebase tex-distclean + $(RM) *.patch + $(RM) toc_pdfbookmarks_*.pdf diff --git a/latex_mk/sample/toc_pdfbookmarks/desc.txt b/latex_mk/sample/toc_pdfbookmarks/desc.txt new file mode 100644 index 0000000..5299698 --- /dev/null +++ b/latex_mk/sample/toc_pdfbookmarks/desc.txt @@ -0,0 +1 @@ +目次とPDFブックマークを生成するLaTeXファイル diff --git a/latex_mk/test/toc_hyperref/latex.mk b/latex_mk/sample/toc_pdfbookmarks/latex.mk similarity index 100% rename from latex_mk/test/toc_hyperref/latex.mk rename to latex_mk/sample/toc_pdfbookmarks/latex.mk diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex b/latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex similarity index 100% rename from latex_mk/test/toc_hyperref/toc_hyperref.tex rename to latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex.5th b/latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.5th similarity index 100% rename from latex_mk/test/toc_hyperref/toc_hyperref.tex.5th rename to latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.5th diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add b/latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.5th_add similarity index 100% rename from latex_mk/test/toc_hyperref/toc_hyperref.tex.5th_add rename to latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.5th_add diff --git a/latex_mk/test/toc_hyperref/toc_hyperref.tex.6th b/latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.6th similarity index 100% rename from latex_mk/test/toc_hyperref/toc_hyperref.tex.6th rename to latex_mk/sample/toc_pdfbookmarks/toc_pdfbookmarks.tex.6th diff --git a/latex_mk/test/bibtex/bibtex.tex b/latex_mk/test/bibtex/bibtex.tex deleted file mode 100644 index 0a72ff9..0000000 --- a/latex_mk/test/bibtex/bibtex.tex +++ /dev/null @@ -1,11 +0,0 @@ -\documentclass[a4j]{jarticle} -\usepackage{url} -\begin{document} -bibtexのテスト。本文変更なし。 - -\nocite* % 全データの表示 - -\bibliographystyle{junsrt} % 並び替えをしない -%\bibliographystyle{jplain} -\bibliography{jpnbook} -\end{document} diff --git a/latex_mk/test/bibtex/bibtex.tex.base b/latex_mk/test/bibtex/bibtex.tex.base deleted file mode 100644 index 0a72ff9..0000000 --- a/latex_mk/test/bibtex/bibtex.tex.base +++ /dev/null @@ -1,11 +0,0 @@ -\documentclass[a4j]{jarticle} -\usepackage{url} -\begin{document} -bibtexのテスト。本文変更なし。 - -\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 deleted file mode 100644 index c56d9dc..0000000 --- a/latex_mk/test/bibtex/jpnbook.bib +++ /dev/null @@ -1,478 +0,0 @@ -@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/bibtex/jpnbook.bib.base b/latex_mk/test/bibtex/jpnbook.bib.base deleted file mode 100644 index c56d9dc..0000000 --- a/latex_mk/test/bibtex/jpnbook.bib.base +++ /dev/null @@ -1,478 +0,0 @@ -@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/bibtex/jpnbook_add.bib b/latex_mk/test/bibtex/jpnbook_add.bib deleted file mode 100644 index 244e757..0000000 --- a/latex_mk/test/bibtex/jpnbook_add.bib +++ /dev/null @@ -1,8 +0,0 @@ - -@book{fujita:macrosaho, - author = "藤田 眞作", - title = "{\LaTeXe}マクロ作法", - publisher = "ピアソン桐原", - isbn = "4-8640-1010-2", - year = 2010, -} diff --git a/latex_mk/test/graphics_eps/graphics_eps.tex b/latex_mk/test/graphics_eps/graphics_eps.tex deleted file mode 100644 index 192bc65..0000000 --- a/latex_mk/test/graphics_eps/graphics_eps.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass{jsarticle} -\usepackage[dvipdfmx]{graphicx} -\begin{document} -\includegraphics[width=15cm]{tiger.eps} -\end{document} diff --git a/latex_mk/test/graphics_pdf/graphics_pdf.tex b/latex_mk/test/graphics_pdf/graphics_pdf.tex deleted file mode 100644 index c2e6718..0000000 --- a/latex_mk/test/graphics_pdf/graphics_pdf.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass{jsarticle} -\usepackage[dvipdfmx,hiresbb]{graphicx} -\begin{document} -\includegraphics[width=15cm]{tiger.pdf} -\end{document} diff --git a/latex_mk/test/hyperref/Makefile b/latex_mk/test/hyperref/Makefile deleted file mode 100644 index 3614205..0000000 --- a/latex_mk/test/hyperref/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -TEXTARGETS := hyperref.pdf - -CMP := cmp -s -DIFF := diff -PATCH := patch - -.PHONY: all update rebase clean distclean - -$(TEXTARGETS): - -all: - @$(MAKE) -s hyperref_1.pdf - @$(ECHO) '--------------------' - @$(MAKE) -s hyperref_2.pdf - -hyperref_1.pdf: rebase - @$(ECHO) '---------- $@: $^ ----------' - @$(MAKE) -s hyperref.pdf - @$(CP) -v hyperref.pdf $@ - -hyperref_2.pdf: update - @$(ECHO) '---------- $@: $^ ----------' - @$(MAKE) -s hyperref.pdf - @$(CP) -v hyperref.pdf $@ - -update: hyperref.tex.6th.patch - @$(PATCH) <$< - -hyperref.tex.6th.patch: - @$(MAKE) -s rebase - @$(DIFF) -u hyperref.tex hyperref.tex.6th >$@ || exit 0 - -rebase: - $(CMP) hyperref.tex.5th hyperref.tex || $(CP) -v hyperref.tex.5th hyperref.tex - -include latex.mk - -clean: tex-clean - -distclean: rebase tex-distclean - $(RM) *.patch - $(RM) hyperref_*.pdf diff --git a/latex_mk/test/toc_hyperref/Makefile b/latex_mk/test/toc_hyperref/Makefile deleted file mode 100644 index 4b63a53..0000000 --- a/latex_mk/test/toc_hyperref/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -TEXTARGETS := toc_hyperref.pdf - -CMP := cmp -s -DIFF := diff -PATCH := patch - -.PHONY: all update rebase clean distclean - -$(TEXTARGETS): - -all: - @$(MAKE) -s toc_hyperref_1.pdf - @$(ECHO) '--------------------' - @$(MAKE) -s toc_hyperref_2.pdf - -toc_hyperref_1.pdf: rebase - @$(ECHO) '---------- $@: $^ ----------' - @$(MAKE) -s toc_hyperref.pdf - @$(CP) -v toc_hyperref.pdf $@ - -toc_hyperref_2.pdf: update - @$(ECHO) '---------- $@: $^ ----------' - @$(MAKE) -s toc_hyperref.pdf - @$(CP) -v toc_hyperref.pdf $@ - -update: toc_hyperref.tex.6th.patch - @$(PATCH) <$< - -toc_hyperref.tex.6th.patch: - @$(MAKE) -s rebase - @$(DIFF) -u toc_hyperref.tex toc_hyperref.tex.6th >$@ || exit 0 - -rebase: - $(CMP) toc_hyperref.tex.5th toc_hyperref.tex || $(CP) -v toc_hyperref.tex.5th toc_hyperref.tex - -include latex.mk - -clean: tex-clean - -distclean: rebase tex-distclean - $(RM) *.patch - $(RM) toc_hyperref_*.pdf