LaTeX forum ⇒ Text FormattingLatex Beamer error

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
aa2719
Posts: 1
Joined: Fri May 24, 2019 10:53 pm

Latex Beamer error

Postby aa2719 » Fri May 24, 2019 11:18 pm

I was writing below code but while I use $ sign within the \begin {frame} the line doesn't work
Check the line number 28. If i run the code line 28 does not execute.

  1. \documentclass{beamer}
  2. \usetheme[progressbar=frametitle]{metropolis}
  3. \setbeamertemplate{frame numbering}[fraction]
  4. \useoutertheme{metropolis}
  5. \useinnertheme{metropolis}
  6. \usefonttheme{metropolis}
  7. \usecolortheme{spruce}
  8. \setbeamercolor{background canvas}{bg=white}
  9. \definecolor{mygreen}{rgb}{.125, .5, .25}
  10. \usecolortheme[named=mygreen]{structure}
  11.  
  12. %\title[short title]{Your Title Here}
  13. \title{Functions, Limits, Derivatives}
  14. %\subtitle{Subtitle here}
  15. \author{}
  16. \institute{\large{\textbf{Learning Outcomes}}:\\[6pt] Identify properties of elementary functions(formed by composition of power, exponential, logarithmic, and trigonometric functions and their inverses).}
  17. \date{}
  18. \begin{document}
  19. \metroset{block=fill}
  20. \begin{frame}
  21. \titlepage
  22. \end{frame}
  23.  
  24. \begin{frame}[t]{Functions}\vspace{4pt}
  25. \begin{block}{Definition of a function }
  26. A function is a rule
  27. \end{block}
  28. Set $D$ as the function.
  29.  
  30. \end{frame}
  31.  
  32. \end{document}
Last edited by Stefan Kottwitz on Sat May 25, 2019 4:53 pm, edited 1 time in total.
Reason: code marked

mas
Posts: 219
Joined: Thu Dec 04, 2008 4:39 am

Postby mas » Sat May 25, 2019 3:30 am

Please use the code tags to enclose your code.

It compiles, and $D$ comes out as expected. Are you getting any error messages?

x.png
x.png (35.54 KiB) Viewed 154 times

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests