0
我有一個乳膠代碼塊的org-模式文件:Orgmode,我如何刪除代碼塊描述?
So:
#+BEGIN_SRC latex
Hello
#+END_SRC
但是,當我生成一個PDF,我得到:
如何刪除這個「乳膠」的說明,並有只顯示「所以:你好」? 謝謝!
我有一個乳膠代碼塊的org-模式文件:Orgmode,我如何刪除代碼塊描述?
So:
#+BEGIN_SRC latex
Hello
#+END_SRC
但是,當我生成一個PDF,我得到:
如何刪除這個「乳膠」的說明,並有只顯示「所以:你好」? 謝謝!
從評論中,我不認爲org-latex-classes是非常正確的。特別是,在 \ usepackage *位看起來不正確。
的C-H V爲變量狀態
Alist of LaTeX classes and associated header and structure.
If #+LATEX_CLASS is set in the buffer, use its value and the
associated information. Here is the structure of each cell:
(class-name
header-string
(numbered-section . unnumbered-section)
...)
The header string
-----------------
The HEADER-STRING is the header that will be inserted into the
LaTeX file. It should contain the \documentclass macro, and
anything else that is needed for this setup. To this header, the
following commands will be added:
- Calls to \usepackage for all packages mentioned in the
variables ‘org-latex-default-packages-alist’ and
‘org-latex-packages-alist’. Thus, your header definitions
should avoid to also request these packages.
- Lines specified via "#+LATEX_HEADER:" and
"#+LATEX_HEADER_EXTRA:" keywords.
If you need more control about the sequence in which the header
is built up, or if you want to exclude one of these building
blocks for a particular class, you can use the following
macro-like placeholders.
[DEFAULT-PACKAGES] \usepackage statements for default packages
[NO-DEFAULT-PACKAGES] do not include any of the default packages
[PACKAGES] \usepackage statements for packages
[NO-PACKAGES] do not include the packages
[EXTRA] the stuff from #+LATEX_HEADER(_EXTRA)
[NO-EXTRA] do not include #+LATEX_HEADER(_EXTRA) stuff
So a header like
\documentclass{article}
[NO-DEFAULT-PACKAGES]
[EXTRA]
\providecommand{\alert}[1]{\textbf{#1}}
[PACKAGES]
will omit the default packages, and will include the
#+LATEX_HEADER and #+LATEX_HEADER_EXTRA lines, then have a call
to \providecommand, and then place \usepackage commands based
on the content of ‘org-latex-packages-alist’.
所以我不認爲你應該有一個\包*線在那裏。此外,您使用自定義界面來設置此變量或將其設置爲您的init文件中的 setq,您的 更好。我不認爲有任何理由必須在加載後eval-load調用中加載它 。
使用上述文檔中提到的組織變量來添加/刪除軟件包。你 需要小心,因爲我發現這是一個區域組織模式可能是一個 有點脆弱 - 有一些軟件包的依賴關係,它們踢不同 取決於您是否將整個組織文件導出爲乳膠, 文件/樹或塊的一部分。
我將上面的片段導出到latex/PDF,我得到了你想要的,而不是你得到的。我建議你嘗試一個最小化的init文件,它只是適當的加載org模式,但不包括你的任何自定義。您也可以嘗試檢查生成的TeX文件,並查看是否包含任何奇怪的軟件包。 – Nick
\ lstset {language = latex,label =,caption =,captionpos = b,numbers = none}在latex中生成。我可以給orgmode參數來修改這一行嗎?沒有包含任何奇怪的包。 –
啊,我看到:我使用鑄造而不是清單:這解釋了我認爲的不同行爲。 – Nick