I try to use several latex template (Metropolis beamer theme, etc.) but I got the following error:
! Package keyval Error: breakatwhitespace undefined.
I think this error not from the package but from my latex. I've installed latex in my Ubuntu 16.04 using sudo apt-get install texlive-full
How to solve this error? Hope somebody here can help.
UPDATE
I got this error several times, it always involve theme / template. The newest happen when I try to compile Metropolis Beamer Theme. At this time, I even didn't write any code, I just follow the installation tutorial, and get error after trying to install using make install
. Usually I just try to find in the templates/theme where is the breakatwhitspace
and delete it.
breakatwhitespace
I think included when using package listings
and the theme/template author use lstset
:
\usepackage{listings}
\lstset{
...
breakatwhitespace=false,
...
}
the code below give the error (I copy paste the \usepackage{listings}
and \lstset
from Metropolis beamer template):
\documentclass{beamer}
\usepackage{listings}
\lstset{
language=[LaTeX]{TeX},
basicstyle=\ttfamily,
keywordstyle=\color{mLightBrown}\bfseries,
commentstyle=\color{mLightGreen},
stringstyle=\color{mLightGreen},
backgroundcolor=\color{mBackground},
numbers=none,
numberstyle=\tiny\ttfamily,
stepnumber=2,
showspaces=false,
showstringspaces=false,
showtabs=false,
frame=none,
framerule=1pt,
tabsize=2,
rulesep=5em,
captionpos=b,
breaklines=true,
breakatwhitespace=false,
framexleftmargin=0em,
framexrightmargin=0em,
xleftmargin=0em,
xrightmargin=0em,
aboveskip=1em,
belowskip=1em,
morekeywords={usetheme,institute,maketitle,@metropolis@titleformat,%
plain,setbeamercolor,metroset,setsansfont,setmonofont},
}
\begin{document}
\frame{\titlepage}
\end{document}
UPDATE 2
The first few lines logs show my system version:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
restricted \write18 enabled
...
breakatwhitespace undefined
– malioboro Sep 9 '17 at 21:47