• <bdo id='BzJjg'></bdo><ul id='BzJjg'></ul>
    1. <small id='BzJjg'></small><noframes id='BzJjg'>

      <i id='BzJjg'><tr id='BzJjg'><dt id='BzJjg'><q id='BzJjg'><span id='BzJjg'><b id='BzJjg'><form id='BzJjg'><ins id='BzJjg'></ins><ul id='BzJjg'></ul><sub id='BzJjg'></sub></form><legend id='BzJjg'></legend><bdo id='BzJjg'><pre id='BzJjg'><center id='BzJjg'></center></pre></bdo></b><th id='BzJjg'></th></span></q></dt></tr></i><div id='BzJjg'><tfoot id='BzJjg'></tfoot><dl id='BzJjg'><fieldset id='BzJjg'></fieldset></dl></div>

      <tfoot id='BzJjg'></tfoot>

      <legend id='BzJjg'><style id='BzJjg'><dir id='BzJjg'><q id='BzJjg'></q></dir></style></legend>
    2. 使用 LaTeX Beamer 显示代码

      Using LaTeX Beamer to display code(使用 LaTeX Beamer 显示代码)
        <tbody id='89ivz'></tbody>
      <tfoot id='89ivz'></tfoot>

        <bdo id='89ivz'></bdo><ul id='89ivz'></ul>
        <i id='89ivz'><tr id='89ivz'><dt id='89ivz'><q id='89ivz'><span id='89ivz'><b id='89ivz'><form id='89ivz'><ins id='89ivz'></ins><ul id='89ivz'></ul><sub id='89ivz'></sub></form><legend id='89ivz'></legend><bdo id='89ivz'><pre id='89ivz'><center id='89ivz'></center></pre></bdo></b><th id='89ivz'></th></span></q></dt></tr></i><div id='89ivz'><tfoot id='89ivz'></tfoot><dl id='89ivz'><fieldset id='89ivz'></fieldset></dl></div>

            <small id='89ivz'></small><noframes id='89ivz'>

              <legend id='89ivz'><style id='89ivz'><dir id='89ivz'><q id='89ivz'></q></dir></style></legend>

                本文介绍了使用 LaTeX Beamer 显示代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在 Beamer 演示文稿中使用以下 LaTeX 代码:

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

                egin{frame}
                  egin{figure}
                  centering
                      	iny
                   lstset{language=python}
                         lstinputlisting{code/get_extent.py}
                   end{figure}
                end{frame}
                

                是否可以从我的 get_extent.py 文件中选择特定行而不是全部显示?

                Is it possible to select specific lines from my get_extent.py file rather than displaying it all?

                推荐答案

                这与beamer无关;这是关于 listings 功能的.其出色的手册还有更多.例如:

                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}
                

                这篇关于使用 LaTeX Beamer 显示代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                <tfoot id='V6566'></tfoot>
                  <bdo id='V6566'></bdo><ul id='V6566'></ul>

                  <small id='V6566'></small><noframes id='V6566'>

                    <legend id='V6566'><style id='V6566'><dir id='V6566'><q id='V6566'></q></dir></style></legend>
                        <tbody id='V6566'></tbody>
                          <i id='V6566'><tr id='V6566'><dt id='V6566'><q id='V6566'><span id='V6566'><b id='V6566'><form id='V6566'><ins id='V6566'></ins><ul id='V6566'></ul><sub id='V6566'></sub></form><legend id='V6566'></legend><bdo id='V6566'><pre id='V6566'><center id='V6566'></center></pre></bdo></b><th id='V6566'></th></span></q></dt></tr></i><div id='V6566'><tfoot id='V6566'></tfoot><dl id='V6566'><fieldset id='V6566'></fieldset></dl></div>