我正在使用 Org-mode + beamer 编写演示文稿。我试图添加一张图片,但使用C-c C-e l P
组合导出到“PDF(Beamer)”时,无法生成 PDF。我收到此错误消息:“org-latex-compile:未生成 PDF 文件 ./ppt.pdf:参数失控”。此外,如果我用鼠标单击图像链接,我会收到:“键入 Cc Cc 以将图像作为图像查看。无法显示图像:(无法确定图像类型)”
这是一个平均能量损失ppt.org
。你能帮我找出错误并改正吗?
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation, smaller]
#+BEAMER_FRAME_LEVEL: 2
#+BEAMER_THEME: CambridgeUS
#+BEAMER_FONT_THEME: structurebold
#+BEAMER_ENV:
#+COLUMNS: %45ITEM %10BEAMER_ENV(Env) %10BEAMER_ACT(Act) %4BEAMER_COL(Col) %8BEAMER_OPT(Opt)
#+OPTIONS: H:2 toc:t email:n |:t
#+BEAMER_HEADER: \frenchspacing
#+BEAMER_HEADER: \graphicspath{{./IMGs/}}
#+TITLE: presentation
#+AUTHOR:
#+DATE: Dec 2015
* Intro
** What are CNTs?
*** when? who? :BMCOL:
:PROPERTIES:
:BEAMER_env: block
:BEAMER_col: 0.57
:END:
- 1952 bla bla bla
- 1991 Dr. Sumio Iijima publishes ``Helical microtubules of graphitic carbon''
*** second column :B_ignoreheading:BMCOL:
:PROPERTIES:
:BEAMER_env: ignoreheading
:BEAMER_col: 0.24
:END:
#+ATTR_LATEX: width=\textwidth
[[./IMGs/sumioIjima.jpg]]
答案1
使用您的代码时,我遇到了ignoreheading
选项问题。解决此问题的一种方法是编写:
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation, smaller]
#+BEAMER_FRAME_LEVEL: 2
#+BEAMER_THEME: CambridgeUS
#+BEAMER_FONT_THEME: structurebold
#+BEAMER_ENV:
#+COLUMNS: %45ITEM %10BEAMER_ENV(Env) %10BEAMER_ACT(Act) %4BEAMER_COL(Col) %8BEAMER_OPT(Opt)
#+OPTIONS: H:2 toc:t email:n |:t
#+BEAMER_HEADER: \frenchspacing
#+BEAMER_HEADER: \graphicspath{{./IMGs/}}
#+TITLE: presentation
#+AUTHOR:
#+DATE: Dec 2015
* Intro
** What are CNTs?
*** when? who? :BMCOL:
:PROPERTIES:
:BEAMER_env: block
:BEAMER_col: 0.6
:END:
- 1952 bla bla bla
- 1991 Dr. Sumio Iijima publishes ``Helical microtubules of graphitic carbon''
*** second column :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: block
:BEAMER_col: 0.4
:END:
#+ATTR_LATEX: width=\textwidth
[[./tmp.jpg]]
因此,您避免使用:BEAMER_env: ignoreheading
并得到以下输出: