Using LaTeX Beamer to display code

前端 未结 1 511
谎友^
谎友^ 2021-02-10 07:25

I\'m using the following LaTeX code in a Beamer presentation:

\\begin{frame}
  \\begin{figure}
  \\centering
      \\tiny
   \\lstset{language=python}
         \         


        
相关标签:
1条回答
  • 2021-02-10 08:08

    This has nothing to do with beamer; it's about a listings feature. Its excellent manual has more. For example:

    \lstinputlisting[firstline=2,lastline=5]{code/get_extent.py}
    
    0 讨论(0)
提交回复
热议问题