diff --git a/Makefile b/Makefile index ec145f2ff4562c8dad322b2d8aad4d8a67736f4e..490a4994ff4eb2de9183553c8b60ddddb1923e16 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ .PHONY: all clean all: make -C fibeamer - make pdflatex.pdf xelatex.pdf lualatex.pdf clean + make pdflatex.pdf xelatex.pdf lualatex.pdf \ + latex.dvi latex.pdf clean # This target typesets the pdfLaTeX example. pdflatex.pdf: pdflatex.tex @@ -18,6 +19,14 @@ lualatex.pdf: lualatex.tex lualatex $< lualatex $< +# These targets typeset the LaTeX example. +latex.pdf: latex.dvi + dvipdfmx $< + +latex.dvi: latex.tex + latex $< + latex $< + # This target removes any auxiliary files. clean: rm -f *.aux *.log *.out *.toc *.lot *.lof *.nav *.snm *.vrb @@ -25,4 +34,4 @@ clean: # This target removes any auxiliary files # and the output PDF file. implode: clean - rm -f pdflatex.pdf xelatex.pdf lualatex.pdf + rm -f pdflatex.pdf xelatex.pdf lualatex.pdf latex.pdf latex.dvi diff --git a/fibeamer/Makefile b/fibeamer/Makefile index c9bfa62a639bdf57c2f881cc49c3c1b32884f10b..db47a4b328764961f51a3488069dbc6eae355801 100644 --- a/fibeamer/Makefile +++ b/fibeamer/Makefile @@ -7,7 +7,7 @@ BASETHEMEFILE=beamerthemefibeamer.sty OTHERTHEMEFILES=theme/mu/*.sty THEMEFILES=$(BASETHEMEFILE) $(OTHERTHEMEFILES) LOGOSOURCES=logo/mu/*.svg -LOGOS=logo/mu/*.pdf +LOGOS=logo/mu/*.pdf logo/mu/*.eps DTXFILES=*.dtx theme/mu/*.dtx INSFILES=*.ins theme/mu/*.ins MAKES=theme/mu/Makefile logo/mu/Makefile diff --git a/fibeamer/fibeamer.dtx b/fibeamer/fibeamer.dtx index 23fc002b6250862f5ba2b474e0400bbaf38f69d9..b7d9d784e9f93c2a367cc72ae2ebd9a3ae20d746 100644 --- a/fibeamer/fibeamer.dtx +++ b/fibeamer/fibeamer.dtx @@ -46,9 +46,15 @@ %<*class> \NeedsTeXFormat{LaTeX2e} % Define `\fibeamer@version` and store it in the `VERSION.tex` file \fi -\def\fibeamer@version{2015/08/27 v1.0.0 fibeamer MU beamer theme} +\def\fibeamer@version{2015/08/27 v1.0.1 fibeamer MU beamer theme} % {\newwrite\f\openout\f=VERSION\write\f{\fibeamer@version}\closeout\f} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % \title{The beamer theme for the typesetting of thesis defense % presentations at the Masaryk University in Brno} % \author{VĂt NovotnĂ˝} diff --git a/fibeamer/logo/mu/Makefile b/fibeamer/logo/mu/Makefile index 5d1e49e566b93a430e97084bc97cbc83ea4f4a3f..dde81a7393439f8613fd0eca91b53dfb05168b7c 100644 --- a/fibeamer/logo/mu/Makefile +++ b/fibeamer/logo/mu/Makefile @@ -7,12 +7,25 @@ PDFFILES=fibeamer-mu-econ-light.pdf fibeamer-mu-fsps-light.pdf \ fibeamer-mu-med-dark.pdf fibeamer-mu-ped-dark.pdf \ fibeamer-mu-phil-dark.pdf fibeamer-mu-sci-dark.pdf \ fibeamer-mu-fi-dark.pdf fibeamer-mu-fss-dark.pdf +EPSFILES=fibeamer-mu-econ-light.eps fibeamer-mu-fsps-light.eps \ + fibeamer-mu-law-light.eps fibeamer-mu-med-light.eps \ + fibeamer-mu-ped-light.eps fibeamer-mu-phil-light.eps \ + fibeamer-mu-sci-light.eps fibeamer-mu-fi-light.eps \ + fibeamer-mu-fss-light.eps fibeamer-mu-econ-dark.eps \ + fibeamer-mu-fsps-dark.eps fibeamer-mu-law-dark.eps \ + fibeamer-mu-med-dark.eps fibeamer-mu-ped-dark.eps \ + fibeamer-mu-phil-dark.eps fibeamer-mu-sci-dark.eps \ + fibeamer-mu-fi-dark.eps fibeamer-mu-fss-dark.eps +OUTPUT=$(PDFFILES) $(EPSFILES) .PHONY: all implode -all: $(PDFFILES) +all: $(OUTPUT) %.pdf: %.svg inkscape $< --export-pdf=$@ +%.eps: %.pdf + pdftops -eps $< + implode: - rm -f $(PDFFILES) + rm -f $(OUTPUT) diff --git a/fibeamer/theme/mu/base.dtx b/fibeamer/theme/mu/base.dtx index 40e34dee500604dc8e158371d99687d10e6fca2a..32dd9799ede15fb2eab5ed90f8a0d016755a060a 100644 --- a/fibeamer/theme/mu/base.dtx +++ b/fibeamer/theme/mu/base.dtx @@ -124,6 +124,12 @@ % \begin{itemize} % \item\textsf{ifthen} -- This package is used to construct % compound conditionals. +% \item\textsf{ifpdf} -- This package is used to check, whether +% the document is being typeset in DVI mode. If it is, then +% the |\pdfpagewidth| and |\pdfpageheight| dimensions are +% defined, so that positioning in TikZ works correctly. +% \changes{v1.0.1}{2015/10/02}{Added DVI output support. [VN]} +% ^^A <http://tex.stackexchange.com/a/246631/70941> % \item\textsf{tikz} -- This package is used to position the % logo and the frame number on a frame. % \item\textsf{pgfcore} -- This package is used to draw the @@ -131,6 +137,13 @@ % \end{itemize} % \begin{macrocode} \RequirePackage{ifthen} + \RequirePackage{ifpdf} + \ifpdf\else + \@ifundefined{pdfpagewidth}{\newdimen\pdfpagewidth}{} + \@ifundefined{pdfpageheight}{\newdimen\pdfpageheight}{} + \pdfpagewidth=\paperwidth + \pdfpageheight=\paperheight + \fi \RequirePackage{tikz} \RequirePackage{pgfcore} % \end{macrocode} diff --git a/latex.tex b/latex.tex new file mode 100644 index 0000000000000000000000000000000000000000..bc235639930e694581c4e66637b6a7c352914def --- /dev/null +++ b/latex.tex @@ -0,0 +1,31 @@ +\documentclass[dvipdfmx]{beamer} + \usetheme{fibeamer} + \usepackage[utf8]{inputenc} + \usepackage[english]{babel} + \usepackage{amsmath} % `\equation`s + \usepackage{tabularx} % Tables + \usepackage{booktabs} +\begin{document} + \title{My Presentation} + \subtitle{Daring the Unknown} + \author{Jane Doe} + \frame{\maketitle} + + \begin{frame}{Foo}{bar} + Hello world! + \begin{equation} + \tag{Mass--energy equivalence} e=mc^2 + \end{equation} + \begin{center} + \begin{tabularx}{\textwidth}{lllX} + \toprule + Day & Min Temp & Max Temp & Summary \\ + \midrule + Monday & $11^{\circ}\mathsf{C}$ & $22^\circ\mathsf{C}$ & A + clear day with lots of sunshine. However, the strong breeze + will bring down the temperatures. \\ + \bottomrule + \end{tabularx} + \end{center} + \end{frame} +\end{document}