【问题标题】:Minted in beamer在投影仪中铸造
【发布时间】:2022-06-21 15:41:23
【问题描述】:

这个sn-p

\begin{minted}{bash}
docker run --rm -p 8888:8888 \
 -v %CD%/eleve:/home/jovyan/work \
 -e JUPYTER_ENABLE_LAB=yes \
 jupyter/scipy-notebook 
\end{minted} 

article 文档中工作正常,但在beamer 文档中的frame 环境中导致错误。

! FancyVerb Error:
Extraneous input ` docker run --rm -p 8888:8888 \ -v -e JUPYTER_ENABLE_LAB=ye
s \ jupyter/scipy-notebook \end {minted} \end {beamer@frameslide}\ifbeamer@twos
creenstext \beamer@dosecondscreennow {{\tt lanceNotebook.bat} \begin {minted}{b
ash} docker run --rm -p 8888:8888 \ -v -e JUPYTER_ENABLE_LAB=yes \ jupyter/scip
y-notebook \end {minted} }\fi \ifbeamer@anotherslide \advance \beamer@slideinfr
ame by 1\relax \relax \expandafter \iterate \fi \let \iterate \relax \beamer@wr
iteslidentry \beamer@reseteecodes ' between \begin{minted}[<key=value>] and lin
e end
.
\FV@Error ... {FancyVerb Error:
\space \space #1
}
l.87 \end{frame}
This input will be discarded. Hit <return> to continue.
)
Runaway argument?
! File ended while scanning use of \FancyVerbGetLine.
<inserted text>
\par
<*> tuto-docker.tex
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
! Emergency stop.
<*> tuto-docker.tex
*** (job aborted, no legal \end found)

【问题讨论】:

    标签: latex beamer


    【解决方案1】:

    好的:只需将[containsverbatim] 选项添加到frame 环境即可。

    感谢:LaTex, issue with Beamer and Listings

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-15
      • 2017-02-15
      • 1970-01-01
      • 2020-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多