LateX Beamer

Common Error


Font Warning

  • Font Warning: Font shape `OT1/cmss/m/n’
    LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available(Font) size <5> substituded on input line 65
    Solution: Add \usepackage{lmodern}


Token not allowed

  • Token not allowed
    Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\\' on input line 48
    Solution: Add a definition before the \begin{document}
    1
    2
    3
    4
    % define the line break \\
    \pdfstringdefDisableCommands{
    \def\\{}
    }


  • Token not allowed
    Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\new@ifnextchar' on input line 48
    Solution: Add a definition before the \begin{document}
    1
    2
    3
    4
    5
    6
    7
    8
    % define the commands
    \pdfstringdefDisableCommands{
    \def\\{}

    \def\texttt#1{<#1>}
    \def\medskip{}
    \def\smallskip{}
    \def\vspace{}
    }