The following minimal example replicates the problem:
\documentclass{article}
\usepackage{tikz}
\usepackage{preview}
\begin{document}
This is the main text.
\end{document}
It's obviously a bad interaction (incompatibility) between tikz
and preview
. Either drop the loading of preview
, or load it with the [active]
package option.
You can’t use the greek symbols outside of math mode and your command is missing a b
, thus
Where \lamda is the failure rate and can be expressed as:
should be
Where $\lambda$ is the failure rate and can be expressed as:
Furthermore you should not use {center}
around your equations. They are centered by default (you use the fleqn
document class option, don’t us ist if you don't want flushing equations…) anyway and {center}
adds extra vertical space.
Appending \justify
to \frame
in that way seems to be a bad idea … Just stick do ragged text and take the following advice from beamers manual serious:
Do not hyphenate words. If absolutely necessary, hyphenate words “by hand”, using the command \-
.
I prefer having the \label
s inside of the environment they belong to.
Full code
\documentclass[15pt]{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{etoolbox}
%\usetheme[blue,dark,colorblocks,tocinheader,]{tubs}
%\apptocmd{\frame}{}{\justifying}{}
\begin{document}
\section{Reliability, Availability, and Maintainability}
\subsection{Reliability}
\begin{frame}{Reliability}
bla bla bla bla
\begin{equation}\label{eq1}
R\left ( t \right )=\exp(- \lambda \cdot t)
\end{equation}
Where $\lambda$ is the failure rate and can be expressed as:
\begin{equation}\label{eq2}
\lambda = \frac{k}{T}
\end{equation}
\end{frame}
\end{document}
I had to comment the line loading the theme, because it is not part of TeX Live and therefore not installed on my system …
Edit:
I just noticed it should be either \mathrm{e}^{x}
or \exp(x)
but not \exp^{x}
. And your \lambda.t
should probably be \lambda\cdot t
, shouldn’t it?
Best Answer
LaTeX uses
\[...\]
instead of$$...$$
for displayed math equations, see: Why is\[
…\]
preferable to$$
…$$
?\mathbb
and environmentcases
are supported by packageamsmath
. The following works without error:BTW, TeX shows the undefined command sequence in the error message at the end of the line that starts with the line number.