I was trying to make a presentation using beamer, when suddenly I got the following error message:    I don't know why it does this, because I've never had to use sansmathaccent before.  I tried running old files that used to be fine, however they get the same error message now as well. Even the most simple of files:  \documentclass{beamer} \begin{document} \frame{Hello $A$} \end{document}   gets the error message. What is/could be going on?   N.B. I recently (two days ago) ran an update for all my packages. Could this have something to do with it?    Edit: By now I've installed both sansmathaccent and filehook because the error message said so. Now it shows this error:     !pdfTeX error: pdflatex.exe (file mathkerncmssi8): Font mathkerncmssi8 at 450 n   ot found    ==> Fatal error occurred, no output PDF file produced!   as soon as you include any maths to the document. Note If i type Hello $\mu$ everything is fine. Ordinairy letters are causing trouble.
113750
I get the following error when I try to typeset a beamer document.  kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8 gsftopk: fatal: map file `cid-base.map' not found. mktexpk: don't know how to create bitmap font for mathkerncmssi8. mktexpk: perhaps mathkerncmssi8 is missing from the map file. kpathsea: Appending font creation commands to missfont.log.  ) !pdfTeX error: pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at 525 not found  ==&gt; Fatal error occurred, no output PDF file produced!   But if I remove sansmathaccent.sty from the TeX Live tree, the document typesets fine. Here is a minimal working example.  \documentclass[10pt]{beamer}  \begin{document}  \begin{frame}{A very short beamer document}  $e^{i\pi}+1=0$  \end{frame}  \end{document}
54259
I thought I had tamed enumitem. I had this  and this .  Then I tried a [&lt;+-&gt;] construct. It failed. Commmenting the enumitem section prevents errors but I'd rather not have to do this.  On its current state, this code produces two errors, one because of the [&lt;+-&gt;] and another because of the \onslide.   \documentclass{beamer}   \usepackage{enumitem}  \setitemize{label=\usebeamerfont*{itemize item}%    \usebeamercolor[fg]{itemize item}    \usebeamertemplate{itemize item}}%https://tex.stackexchange.com/a/24491  \setenumerate[1]{%    label=\protect\usebeamerfont{enumerate item}%          \protect\usebeamercolor[fg]{enumerate item}%          \insertenumlabel.}%https://tex.stackexchange.com/a/45950   \begin{document}  \begin{frame}  \begin{itemize}[&lt;+-&gt;]  \item 1  \item 2  \end{itemize}  \onslide&lt;2&gt;{text}  \end{frame}  \end{document}
108933
I want to have a List of Figures in my Beamer presentation.  I spent some time searching the web for a solution and only found desperate people telling others that it's not possible, i.e.  or .  I also made some experiments on my own, i.e. "abuse" tocloft to do the job. However, even \usepackage{tocloft} causes pdflatex to fail with ! LaTeX Error: \l@section undefined. (and lying to tocloft by defining the command as empty beforehand doesn't to any good either).  I can't really see why it should be that difficult to make a List of Figures in beamer, since \tableofcontents works flawlessly.   I'm not afraid of doing some coding on my own, but I'm not deep enough into TeX to really understand the magic behind the "List of Figures", "Table of Contents" and alike.  Is anyone out there having suggestions or links that might help me figure this out?  \documentclass{beamer}  % uncomment the following line % to get the error message % `! LaTeX Error: \l@section undefined.`  %\usepackage{tocloft}   % uncomment the following lines INSTEAD % to lie to tocloft % and get the next error message  %\makeatletter %\newcommand\l@section{} %\makeatother %\usepackage{tocloft}  \begin{document}  \begin{frame}{A frame} \begin{figure} \mbox{A} \caption{An 'A'} \end{figure} \end{frame}  \begin{frame}{List of Figures} \listoffigures \end{frame}  \end{document}   EDIT: Solution  Starting from Marco Daniels answer to my question, I modified his code to reflect my needs. Here is what I came up with. Please feel free to comment, improve and reuse this.  \RequirePackage{ifthen}  \makeatletter  \AtEndDocument{%   \clearpage   \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%   \if@filesw   \newwrite\tf@lof   \immediate\openout\tf@lof\jobname.lof\relax   \newwrite\tf@lot   \immediate\openout\tf@lot\jobname.lot\relax   \fi }  \long\def\beamer@makecaption#1#2#3#4{%   \def\insertcaptionname{\csname#1name\endcsname}%   \def\insertcaptionnumber{\csname the#1\endcsname}%   \edef\insertframenumber{\theframenumber}%   \ifthenelse{\equal{#3}{\empty}}{%       \def\insertlistcaption{#2}%   }{%     \def\insertlistcaption{#3}%   }   \def\insertsource{#4}%   \def\insertcaption{#2}%   \ifthenelse{\equal{#1}{figure}}{%       \addtocontents{lof}{\protect\listoffigureformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}{\insertsource}}{}{}%   }{}   \ifthenelse{\equal{#1}{table}}{%       \addtocontents{lot}{\protect\listoftableformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}}{}{}%   }{}   \nobreak\vskip\abovecaptionskip\nobreak   \sbox\@tempboxa{\usebeamertemplate**{caption}}%   \ifdim \wd\@tempboxa &gt;\hsize   \usebeamertemplate**{caption}\par   \else   \global \@minipagefalse   \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%   \fi   \nobreak\vskip\belowcaptionskip\nobreak% }  \def\listoffigureformat#1#2#3#4{%   \makebox[2ex][r]{#1}%   \hspace{1ex}%   {\usebeamercolor[fg]{bibliography entry author} #2}%   \ifthenelse{\equal{#4}{\empty}}{}{ -- #4}%   \dotfill%   \makebox[2ex][r]{#3}\par% } \def\listoffigures{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lof}% } \def\listoftableformat#1#2#3{\makebox[2ex][r]{#1}\hspace{1ex}#2\dotfill\makebox[2ex][r]{#3}\par} \def\listoftables{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lot}% }  \long\def\@caption#1[#2]#3{   \par\nobreak   \begingroup     \@parboxrestore     \if@minipage       \@setminipage     \fi     \beamer@makecaption{#1}{\ignorespaces #3}{\ignorespaces #3}{\ignorespaces #2}\par\nobreak     \endgroup}  \makeatother
13187
Why does the following code does'nt work when i am using PDFLaTeX or just LaTeX ? I tried it in different editors as well.  This is the code   $\{f^'_n\}$   Surprisingly it works on Math.SE site
110376
I have been trying to include pdf graphics in a document with this simple command:  \documentclass{beamer}  \begin{document}  \begin{frame}     \only&lt;1&gt;{\includegraphics[width=\textwidth]{test}}     \only&lt;2&gt;{\includegraphics[width=\textwidth]{test}}     \only&lt;3&gt;{\includegraphics[width=\textwidth]{test}} \end{frame}  \end{document}   Unfortunately, the three pictures (that are supposed to be identical), are not aligned identically (from the top).  Here is the test.pdf used for generating the pdf:   Here is the generated pdf:  (as you can(not?) see), the first and second image are not aligned.    Now if someone knows why it acts like this? Here I put a VME since it seems to me that no package were necessary except for the class Beamer. I have tried with my "usual" packages, maybe I am just missing the right one?  Just so you know, what I was able to do so far: if I put a ~ after {test}, then it gets aligned (note that it will not work on this minimal example, there are some packages missing).  Also something I noticed (because when I first met this probleme I had many more \only), it is always the one before last only that messes up! No matter how many \only, and then the last one will be aligned with the previous one (this is why we need at least three only lines).
114636
Helpful members of the community just solved my problem with \newcommand:    But in trying to solve it, I got an error message referring to p. 192 of "the manual". I would like to look up the error myself.  I am compiling under Windows using the command:  latexmk -pdf file.tex   I cannot find a link to a manual on latex-project.org. There are links to books which are published commercially, but surely that is not what the error messages refer to?  The not-so-short guide has fewer than 192 pages, so that's obviously not it.
108608
When using pdflatex and the fontawesome package the below error shows up.   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" !  ! The fontspec package requires either XeTeX or LuaTeX to function. !  ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". !  ! See the fontspec documentation for further information. !  ! For immediate help type H &lt;return&gt;. !...............................................     Wish to keep on using "pdflatex" instead of "xelatex" or "lualatex".   In fontawesome Version 4.4.0 manual it says "When using the (pdf)(LA)TEX engine, the fontawesome package doesn’t require any external package".  Tried solutions proposed for this question () without success.   MWE:  \documentclass{article} \usepackage{fontawesome} \begin{document} {\faAdjust} \end{document}
32825
I found a beamerposter example at this url:   The content suggests that a number of packages may be required, therefore, I use the nominated packages:  \usepackage{fp} \usepackage{xkeyval} \usepackage{type1cm} \usepackage{paralist}   nnsuring that the each of these packages are up to date.  A number of beamer themes have been made available, one such example can be found here:   The example code is shown below.  poster.tex  \documentclass[final]{beamer} \mode&lt;presentation&gt; {% \usetheme{I6dv} }% \usepackage{times} \usepackage{fp} \usepackage{paralist} \usepackage{xkeyval} \usepackage{type1cm} \usepackage{amsmath,amssymb} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage[orientation=landscape,% size=custom,% width=200,% height=120,% scale=1]{beamerposter} \title[]{Poster Title} \author{Author} \institute[]{Institution} \date{\today} \begin{document} \begin{frame}{}  \vfill \begin{block}{\large Fontsizes} \centering {\tiny tiny}\par {\scriptsize scriptsize}\par {\footnotesize footnotesize}\par {\normalsize normalsize}\par {\large large}\par {\Large Large}\par {\LARGE LARGE}\par {\veryHuge veryHuge}\par {\VeryHuge VeryHuge}\par \end{block} \vfill \end{frame} \end{document}   When the theme is placed next to this .tex file and the .tex is compiled, I initially receive the following error:  ! Package keyval Error: fg undefined   As far as my due diligence in trying to solve the problem, I found , as well as, .  I didn't find too much useful info in either.  When I search the error message, I find , however, there wasn't really anything compelling in the thread.  I saw that the xkeyval is described as an extension to the keyval package, so I tried to include \usepackage{keyval} on the off change that (if in fact it existed) it was also required.  This idea didn't pan out.  Any comments/suggestions are greatly appreciated.  One option might be to locate a different poster example.
64292
Compiling a beamer project, I get the following error:  mktexpk: /home/matthieu/.texlive2012/texmf-var/fonts/pk/ljfour/public/cm/cmss8.525pk: successfully generated.  &lt;/home/matthieu/.texlive2012/texmf -var/fonts/pk/ljfour/public/cm/cmss8.525pk&gt; kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8 mktexpk: don't know how to create bitmap font for mathkerncmssi8. mktexpk: perhaps mathkerncmssi8 is missing from the map file. kpathsea: Appending font creation commands to missfont.log.  !pdfTeX error: /usr/bin/pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at  525 not found  ==&gt; Fatal error occurred, no output PDF file produced!   Reading some answers, I added \pdfmapfile{+sansmathaccent.map} to my .tex file and the compilation worked but I want to solve the problem.  Hence I also tried to run updmap-sys and mktexlsr but I got lost between the locations of the map files...   I copy below the output of these two commands. If anyone can help me...  [root@localhost matthieu]# updmap-sys /usr/share/texmf/fonts/map/pdftex/updmap/pdftex.mapupdmap is using the following updmap.cfg files (in precedence order):   /etc/texmf/web2c/updmap.cfg dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap" pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap" dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap" pxdvi output dir: "/var/lib/texmf/fonts/map/pxdvi/updmap"  updmap is creating new map files using the following configuration:   LW35 font names                  : URWkb (/etc/texmf/web2c/updmap.cfg) prefer outlines                  : true (/etc/texmf/web2c/updmap.cfg)  texhash enabled                  : true   download standard fonts (dvips)  : false (/etc/texmf/web2c/updmap.cfg)   download standard fonts (pdftex) : true (/etc/texmf/web2c/updmap.cfg)   kanjiEmbed replacement string    : noEmbed (default)   kanjiVariant replacement string  :  (default)   create a mapfile for pxdvi       : false (default)  Scanning for LW35 support files  [  3 files] Scanning for MixedMap entries    [ 37 files] Scanning for KanjiMap entries    [  0 files] Scanning for Map entries         [ 73 files]  Generating output for dvipdfmx... Generating output for ps2pk... Generating output for dvips... Generating output for pdftex...  Files generated:   /var/lib/texmf/fonts/map/dvips/updmap:        11448 2013-05-22 16:04:24 builtin35.map        15911 2013-05-22 16:04:24 download35.map       324599 2013-05-22 16:04:24 psfonts_pk.map       577080 2013-05-22 16:04:24 psfonts_t1.map       577075 2013-05-22 16:04:24 ps2pk.map           14 2013-05-22 16:04:24 psfonts.map -&gt; psfonts_t1.map   /var/lib/texmf/fonts/map/pdftex/updmap:       577082 2013-05-22 16:04:24 pdftex_dl14.map       575509 2013-05-22 16:04:24 pdftex_ndl14.map           15 2013-05-22 16:04:24 pdftex.map -&gt; pdftex_dl14.map   /var/lib/texmf/fonts/map/dvipdfmx/updmap:          281 2013-05-22 16:04:24 kanjix.map  Transcript written on "/var/lib/texmf/web2c/updmap.log". updmap: Updating ls-R files.  [root@localhost matthieu]# mktexlsr mktexlsr: Updating /etc/texmf/ls-R...  mktexlsr: Updating /usr/share/texmf/ls-R...  mktexlsr: Updating /usr/share/texmf-dist/ls-R...  mktexlsr: Updating /usr/share/texmf-local/ls-R...  mktexlsr: Updating /var/lib/texmf/ls-R...  mktexlsr: Done.
115580
As the title states, compiling with latex produces the error, right away:  Ouch---my internal constants have been clobbered!---case 14   I have no idea what this means... I use TexLive 2012. I updated my texmf.cnf and ran fmtutil-sys and texhash. I guess texhash may have messed it up?  Any ideas?  As requested a minimal working example:  \documentclass{article} \begin{document}     Any tex file. \end{document}
113122
I tried to create slides with beamer and the babel package with Farsi option \usepackage[farsi]{babel}. When I run it, I have some errors.   I use this code:  \documentclass[‎ucs‎]{beamer}‎‎ ‎\usetheme{Aalborg}‎   \usepackage[utf8]{luainputenc}‎ ‎\usepackage[T1]{fontenc}‎ % ‎Or whatever‎. ‎Note that the encoding and the font should match‎. ‎If T1‎ % ‎does not look nice‎, ‎try deleting the line with the fontenc‎. ‎\usepackage{helvet}‎ ‎\usefonttheme[onlylarge]{structurebold}‎ ‎\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}‎ ‎\setbeamertemplate{navigation symbols}{}‎  % ‎Standard packages‎  ‎\usepackage[‎fars‎i]{babel}‎ ‎\usepackage{fontspec}‎ ‎\usepackage{amsmath}‎ ‎\setmainfont[Script=Arabic,Numbers=Arabic]{XB Zar}‎‎\setsansfont[Script=Arabic,Numbers=Arabic]{XB Zar}‎  ‎Setup TikZ‎  ‎\usepackage{tikz}‎ ‎\usetikzlibrary{arrows}‎ ‎\tikzstyle{block}=[draw opacity=0.7,line width=1.4cm]‎ ‎‎ % ‎colored hyperlinks‎ ‎\newcommand{\chref}[2]{%‎   ‎\href{#1}{{\usebeamercolor[bg]{Aalborg}#2}}%‎ }  ‎\begin{document}‎ % ‎the titlepage‎ %‎{\aauwavesbg‎ ‎%\begin{frame}[plain,noframenumbering] % the plain option removes the sidebar and header from the title page‎   ‎%\titlepage‎ ‎%\end{frame}}‎‎ \begin{frame} ‏سلام \end{frame} ‎\end{document}‎‎
41095
How do I create something like this without getting any errors?  \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm}   I tried putting various things into {...} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:  \usepackage[amsmath,thmmarks]{ntheorem}
46824
Consider the following MWE  \documentclass{beamer} \usepackage{silence} \WarningFilter{biblatex}{Patching footnotes failed}  \usepackage{lmodern} \usepackage[T1]{fontenc}  \usepackage[style=authoryear-comp,backend=biber]{biblatex} \addbibresource{biblatex-examples.bib}  \begin{document} \begin{frame}   \fullcite{sarfraz} \end{frame} \end{document}   This generates the warning:  LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size &lt;10.95&gt; not available (Font)              Font shape `T1/lmr/m/sc' tried instead on input line 28.   Is there a way to avoid the warning without using the silence package?
33853
I've just installed , which is the MacTeX equivalent of the TeX Live "small" scheme.  Using TeX Live Utility (MacTeX's GUI for tlmgr), I've installed mathpazo, but a minimal example  \documentclass{article} \usepackage{mathpazo} \begin{document} \end{document}   yields the error: (after the usual Metafont complaints)  ./small.tex:3: Font OT1/ppl/m/n/10=pplr7t at 10.0pt not loadable: Metric (TFM)  file not found.   After installing the palatino package, this error goes away, but a slightly less minimal example:  \documentclass{article} \usepackage[osf]{mathpazo} \begin{document} hello 123 \end{document}   Now yields the less promising:  !pdfTeX error: /usr/texbin/pdflatex (file fplrc8a.pfb): cannot open Type 1 font  file for reading  ==&gt; Fatal error occurred, no output PDF file produced!   Uh oh. I'm stuck for ideas for what to try next.
72774
I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" !  ! The fontspec package requires either XeTeX or LuaTeX to function. !  ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". !  ! See the fontspec documentation for further information. !  ! For immediate help type H &lt;return&gt;. !...............................................   when I'm trying to load xepersian LaTeX.  but I do not know how can I change pdfLaTeX to XeLaTeX.    This is the second edit of my question .   the code is :    ‎\documentclass{article}‎ ‎\usepackage{pstricks}‎ ‎\usepackage{‎pst‎-‎bezier}‎ ‎‎\usepackage{xepersian}‎  ‎\settextfont{XB Zar}‎  ‎\setlatintextfont{Junicode}‎  ‎\setdigitfont{XB Zar}‎  ‎\begin{document}‎  ‎!‎سلام دنیا‎‎ ‎\begin{pspicture}(‎3‎,3)‎ ‎\psbcurve(1,2)(5,7)(2,2)(12,3)‎ ‎\end{pspicture}‎ ‎ ‎\end{document}   but the output does not include the shapes .
98513
Could someone help me with the following error? I am trying to use minted package in beamer.  FancyVerb Error: File ended while scanning use of \FancyVerbGetLine.   This is a MWE that duplicates the error I get. Thank you.   \documentclass[11pt]{beamer} \usepackage{minted} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{minted} \usetheme{AnnArbor} \begin{document}  \begin{frame} \frametitle{Test} \begin{minted}{python} def first2items(list1):   return list1[0], list1[1] a, b = first2items(["Hello", "world", "hi", "universe"]) print a + " " + b # This is a comment \end{minted} \end{frame}  \end{document}
114668
Although there are some advices that deal with the warning message:     Composite letter `\textasciicaron+c'not defined in PD1 encoding   See here, for example:  It seems that I cannot get rid of these warnings if letters appear in section (subsection) labels (\section{Example: \v{s}}). Can anyone give me some advice?  My header contains:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{tabularx}   And I also tried:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{graphicx} \usepackage{tabularx}   Many thanks! PM  ===========================================================  MINIMAL EXAMPLE:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage[normalem]{ulem} \usepackage{graphicx} \usepackage{tabularx} \usepackage{color} \usepackage{setspace} \usepackage{parskip} % \xdefinecolor{myStructureColor}{RGB}{51,158,51} \xdefinecolor{myAlertedColor}{RGB}{255,51,51} \xdefinecolor{myTextColor}{RGB}{60,60,60} \xdefinecolor{midGrey}{RGB}{180,180,180} \xdefinecolor{lightGrey}{RGB}{225,225,225} % \setbeamercolor{normal text}{fg=myTextColor} \setbeamercolor{structure}{fg=myStructureColor} \setbeamercolor{alerted text}{fg=myAlertedColor} \setbeamercolor{section in toc}{fg=myAlertedColor} % \setbeamerfont{structure}{shape=\scshape} \setbeamerfont{section in toc}{shape=\scshape} % \setbeamertemplate{itemize item}     {\includegraphics[width=0.06in]{backbulls/bulettA}} \setbeamertemplate{itemize subitem}     {\includegraphics[width=0.05in]{backbulls/bulettB}} \setbeamertemplate{itemize subsubitem}     {\includegraphics[width=0.05in]{backbulls/bulettC}} % \AtBeginSection[] {\begin{frame}     \frametitle{Sadr\v zaj}     \tableofcontents[currentsection] \end{frame}} % \setlength{\parskip}{1ex} % \title{Slo\v zeni linearni modeli} \date{\tiny{februar 2014. godine}} %  \begin{document}  \begin{frame} \begin{spacing}{2} \titlepage \end{spacing} \end{frame}  \section{Ve\v zba}  \begin{frame}[fragile] \frametitle{Works} previous section label works fine... \end{frame}  \section{\v Cinjenica}  \begin{frame}[fragile] \frametitle{Does not work} previous section label does not work... \end{frame}  \begin{frame} \vspace*{4\baselineskip} \begin{center}     {\LARGE{K~~~R~~~A~~~J}} \end{center} \end{frame}  \end{document}