Commit 6b2171a0 authored by Vít Novotný's avatar Vít Novotný
Browse files

Added visual tests for the `bib` key (part 1: sources).

parent 4feaf0fd
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1022,7 +1022,5 @@
  case-by-case basis.
  case-by-case basis.


  \makeatletter\thesis@postamble\makeatother
  \makeatletter\thesis@postamble\makeatother
  \tolerance=300\emergencystretch=1em
  \printbibliography[heading=bibintoc]
\end{document}
\end{document}
%    \end{macrocode}
%    \end{macrocode}
+1 −1
Original line number Original line Diff line number Diff line
@@ -434,7 +434,7 @@
      \thesis@bibliography@included@false
      \thesis@bibliography@included@false
      \let\thesis@printbibliography@old\printbibliography
      \let\thesis@printbibliography@old\printbibliography
      \def\printbibliography{%
      \def\printbibliography{%
        \thesis@bibliography@included@true
        \global\thesis@bibliography@included@true
        \thesis@printbibliography@old}
        \thesis@printbibliography@old}
    \fi
    \fi
  \fi}
  \fi}
+12 −7
Original line number Original line Diff line number Diff line
@@ -26,7 +26,8 @@ SOURCES=base-digital.tex base-printed.tex base-10pt.tex \
	toc-11.tex toc-12.tex toc-13.tex toc-14.tex toc-15.tex \
	toc-11.tex toc-12.tex toc-13.tex toc-14.tex toc-15.tex \
	toc-16.tex toc-17.tex toc-18.tex toc-19.tex toc-20.tex \
	toc-16.tex toc-17.tex toc-18.tex toc-19.tex toc-20.tex \
	toc-21.tex toc-22.tex toc-23.tex toc-24.tex toc-25.tex \
	toc-21.tex toc-22.tex toc-23.tex toc-24.tex toc-25.tex \
	toc-26.tex toc-27.tex toc-28.tex
	toc-26.tex toc-27.tex toc-28.tex fi-bibliography-solicited.tex \
	fi-bibliography-unsolicited.tex
TESTS=$(addsuffix -pdflatex.pdf,$(basename $(SOURCES))) \
TESTS=$(addsuffix -pdflatex.pdf,$(basename $(SOURCES))) \
	$(addsuffix -lualatex.pdf,$(basename $(SOURCES)))
	$(addsuffix -lualatex.pdf,$(basename $(SOURCES)))
PROTOTYPES=$(addprefix expected-,$(TESTS))
PROTOTYPES=$(addprefix expected-,$(TESTS))
@@ -57,11 +58,13 @@ expected-%-lualatex.pdf: %.tex
	@# The first run.
	@# The first run.
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<
	@# Prepare bibliography, if necessary.
	@# Prepare bibliography, if necessary.
	! [ -e $(basename $<).bcf ] || (biber  $(basename $<).bcf && \
	! [ -e $(basename $<)-pdflatex.bcf ] || \
		(biber  $(basename $<)-pdflatex.bcf && \
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<)
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<)
	@# Prepare index, if necessary.
	@# Prepare index, if necessary.
	! [ -e $(basename $<).idx ] || \
	! [ -e $(basename $<)-pdflatex.idx ] || \
		(texindy -I latex -C utf8 -L english $(basename $<).idx && \
		(texindy -I latex -C utf8 -L english \
		$(basename $<)-pdflatex.idx && \
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<)
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<)
	@# The second run.
	@# The second run.
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<
	$(FAKETIME) pdflatex -jobname          $(basename $@) $<
@@ -75,11 +78,13 @@ expected-%-lualatex.pdf: %.tex
	@# The first run.
	@# The first run.
	$(FAKETIME) lualatex -jobname          $(basename $@) $<
	$(FAKETIME) lualatex -jobname          $(basename $@) $<
	@# Prepare bibliography, if necessary.
	@# Prepare bibliography, if necessary.
	! [ -e $(basename $<).bcf ] || (biber  $(basename $<).bcf && \
	! [ -e $(basename $<)-lualatex.bcf ] || \
		(biber  $(basename $<)-lualatex.bcf && \
	$(FAKETIME) lualatex -jobname          $(basename $@) $<)
	$(FAKETIME) lualatex -jobname          $(basename $@) $<)
	@# Prepare index, if necessary.
	@# Prepare index, if necessary.
	! [ -e $(basename $<).idx ] || \
	! [ -e $(basename $<)-lualatex.idx ] || \
		(texindy -I latex -C utf8 -L english $(basename $<).idx && \
		(texindy -I latex -C utf8 -L english \
		$(basename $<)-lualatex.idx && \
	$(FAKETIME) lualatex -jobname          $(basename $@) $<)
	$(FAKETIME) lualatex -jobname          $(basename $@) $<)
	@# The second run.
	@# The second run.
	$(FAKETIME) lualatex -jobname          $(basename $@) $<
	$(FAKETIME) lualatex -jobname          $(basename $@) $<
+8 −0
Original line number Original line Diff line number Diff line
\documentclass{fithesis3}
\thesissetup{
  bib=../../../example/mu/example.bib}
\begin{document}
  Foo bar
  \nocite{*}
  {\printbibliography[heading=bibintoc]}
\end{document}
+7 −0
Original line number Original line Diff line number Diff line
\documentclass{fithesis3}
\thesissetup{
  bib=../../../example/mu/example.bib}
\begin{document}
  Foo bar
  \nocite{*}
\end{document}
Loading