Skip to content
Snippets Groups Projects
Commit 3cfcb908 authored by Vít Novotný's avatar Vít Novotný
Browse files

Added support for DVI output.

parent 0c602813
No related branches found
No related tags found
No related merge requests found
.PHONY: all clean .PHONY: all clean
all: all:
make -C fibeamer 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. # This target typesets the pdfLaTeX example.
pdflatex.pdf: pdflatex.tex pdflatex.pdf: pdflatex.tex
...@@ -18,6 +19,14 @@ lualatex.pdf: lualatex.tex ...@@ -18,6 +19,14 @@ lualatex.pdf: lualatex.tex
lualatex $< lualatex $<
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. # This target removes any auxiliary files.
clean: clean:
rm -f *.aux *.log *.out *.toc *.lot *.lof *.nav *.snm *.vrb rm -f *.aux *.log *.out *.toc *.lot *.lof *.nav *.snm *.vrb
...@@ -25,4 +34,4 @@ clean: ...@@ -25,4 +34,4 @@ clean:
# This target removes any auxiliary files # This target removes any auxiliary files
# and the output PDF file. # and the output PDF file.
implode: clean implode: clean
rm -f pdflatex.pdf xelatex.pdf lualatex.pdf rm -f pdflatex.pdf xelatex.pdf lualatex.pdf latex.pdf latex.dvi
...@@ -7,7 +7,7 @@ BASETHEMEFILE=beamerthemefibeamer.sty ...@@ -7,7 +7,7 @@ BASETHEMEFILE=beamerthemefibeamer.sty
OTHERTHEMEFILES=theme/mu/*.sty OTHERTHEMEFILES=theme/mu/*.sty
THEMEFILES=$(BASETHEMEFILE) $(OTHERTHEMEFILES) THEMEFILES=$(BASETHEMEFILE) $(OTHERTHEMEFILES)
LOGOSOURCES=logo/mu/*.svg LOGOSOURCES=logo/mu/*.svg
LOGOS=logo/mu/*.pdf LOGOS=logo/mu/*.pdf logo/mu/*.eps
DTXFILES=*.dtx theme/mu/*.dtx DTXFILES=*.dtx theme/mu/*.dtx
INSFILES=*.ins theme/mu/*.ins INSFILES=*.ins theme/mu/*.ins
MAKES=theme/mu/Makefile logo/mu/Makefile MAKES=theme/mu/Makefile logo/mu/Makefile
......
...@@ -46,9 +46,15 @@ ...@@ -46,9 +46,15 @@
%<*class> %<*class>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
% Define `\fibeamer@version` and store it in the `VERSION.tex` file \fi % 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} % {\newwrite\f\openout\f=VERSION\write\f{\fibeamer@version}\closeout\f}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% %
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \title{The beamer theme for the typesetting of thesis defense % \title{The beamer theme for the typesetting of thesis defense
% presentations at the Masaryk University in Brno} % presentations at the Masaryk University in Brno}
% \author{Vít Novotný} % \author{Vít Novotný}
......
...@@ -7,12 +7,25 @@ PDFFILES=fibeamer-mu-econ-light.pdf fibeamer-mu-fsps-light.pdf \ ...@@ -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-med-dark.pdf fibeamer-mu-ped-dark.pdf \
fibeamer-mu-phil-dark.pdf fibeamer-mu-sci-dark.pdf \ fibeamer-mu-phil-dark.pdf fibeamer-mu-sci-dark.pdf \
fibeamer-mu-fi-dark.pdf fibeamer-mu-fss-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 .PHONY: all implode
all: $(PDFFILES) all: $(OUTPUT)
%.pdf: %.svg %.pdf: %.svg
inkscape $< --export-pdf=$@ inkscape $< --export-pdf=$@
%.eps: %.pdf
pdftops -eps $<
implode: implode:
rm -f $(PDFFILES) rm -f $(OUTPUT)
...@@ -124,6 +124,12 @@ ...@@ -124,6 +124,12 @@
% \begin{itemize} % \begin{itemize}
% \item\textsf{ifthen} -- This package is used to construct % \item\textsf{ifthen} -- This package is used to construct
% compound conditionals. % 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 % \item\textsf{tikz} -- This package is used to position the
% logo and the frame number on a frame. % logo and the frame number on a frame.
% \item\textsf{pgfcore} -- This package is used to draw the % \item\textsf{pgfcore} -- This package is used to draw the
...@@ -131,6 +137,13 @@ ...@@ -131,6 +137,13 @@
% \end{itemize} % \end{itemize}
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{ifthen} \RequirePackage{ifthen}
\RequirePackage{ifpdf}
\ifpdf\else
\@ifundefined{pdfpagewidth}{\newdimen\pdfpagewidth}{}
\@ifundefined{pdfpageheight}{\newdimen\pdfpageheight}{}
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\fi
\RequirePackage{tikz} \RequirePackage{tikz}
\RequirePackage{pgfcore} \RequirePackage{pgfcore}
% \end{macrocode} % \end{macrocode}
......
\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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment