Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a document

\documentclass{beamer}

\usepackage[utf8x]{inputenc}
\usepackage[L7x]{fontenc}
\usepackage[lithuanian]{babel}
\usepackage{amsmath}

\begin{document} 
  \frame{
    \frametitle{sample}
    \begin{itemize}
        \item A
        \item B
    \end{itemize}
  }
\end{document} 

It gives an error message

! Corrupted NFSS tables.
wrong@fontshape ...message {Corrupted NFSS tables}
                                                  error@fontshape else let f...
l.15   }

what's the problem?

share|improve this question
    
The \usepackage[L7x]{fontenc} is the problem. –  Christian May 30 '12 at 14:26
    
I see, but I would like to know what's wrong with this and how should I solve my problem. –  Pavasaris May 30 '12 at 14:30
    
I suspect that the normal beamer item label somehow doesn't exist in your encoding. I can't try it myself because I don't have that encoding but try \usepackage{paralist} and then you can play around with different symbols by saying something like \begin{itemize}[--] or [\textbullet] or [\bfseries\textendash] or whatever. You can also set this document-wide with \setdefaultitem{\textasteriskcentered}{}{}{}. The Comprehensive LaTeX Symbol List will have more inspirations for what might look good. –  Christian May 30 '12 at 14:34
    
There was no space left for the link: mirrors.ctan.org/info/symbols/comprehensive/symbols-a4.pdf –  Christian May 30 '12 at 14:36
1  
There are big problems with the L7x encoding. I'll try to find a way out. You can "cure" the problem by saying \usepackage{lmodern}, but the font used will be the serif one. –  egreg May 30 '12 at 14:38
add comment

2 Answers

up vote 2 down vote accepted
\documentclass{beamer}
\usefonttheme{professionalfonts}% Now beamer didn't modify the math fonts
\usepackage[L7x]{fontenc}
\begin{document}

    \frame{
    \frametitle{sample}
    \begin{itemize}
        \item A
        \item B
    \end{itemize}
  }

\end{document}
share|improve this answer
add comment

There are big problems with the L7x encoding. One way to cure them is to use

\documentclass{beamer}
\usetheme{Madrid}

\usepackage{lmodern}
\usepackage[utf8x]{inputenc}
\usepackage[L7x]{fontenc}
\usepackage[lithuanian]{babel}
\usepackage{amsmath}

\renewcommand{\familydefault}{lmss} % sans serif text

\begin{document}

\begin{frame}

\frametitle{sample}

\begin{itemize}
\item A $a+b$

\item B
\end{itemize}

\end{frame}

\end{document}

The definitions in L7xenc.def change many internal commands and it seems that beamer doesn't like it without explicitly choosing the fonts.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.