2017-02-23 4 views
0

私はラテックスコードブロックとorgmodeの文書があります。オルゴード、コードブロックの説明を削除するにはどうしたらいいですか?

So: 
    #+BEGIN_SRC latex 
    Hello 
    #+END_SRC 

をしかし、私は、PDFを生成するとき、私が取得:

enter image description here

は、どのように私は、この「ラテックス」の記述を削除し、持つことができます「So:Hello」のみが表示されますか? ありがとうございました!

+0

上記のスニペットをlatex/PDFにエクスポートしました。私はあなたが望むものを得ました。あなたが得たものではありません。私は、ちょうどorg-modeを適切にロードするだけで、あなたのカスタマイズを一切含まない最小限のinitファイルを試してみることをお勧めします。生成されたTeXファイルをチェックし、奇妙なパッケージが含まれているかどうかを調べることもできます。 – Nick

+0

\ lstset {language = latex、label =、caption =、captionpos = b、numbers = none}ラテックスで生成されました。この行を修正するために、orgmodeでパラメータを与えることはできますか?変なパッケージは含まれていません。 –

+0

ああ、私は見る:私は、リストではなく、ミントを使用する:それは私が考えるさまざまな行動を説明します。 – Nick

答えて

0

コメントから、私はorg-latex-classesがきちんと正しいとは思わない。 では、\ usepackage *ビットが正しく表示されません。

その変数の状態

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’. 

ためのC-H vは、だから私はあなたがそこに*行をその\パッケージを持たなければならないとは思いません。また、 は、この変数を設定するためのカスタムインターフェイスを使用するか、initファイルに setqとして入れる方が良いでしょう。私はそれを読み込まなければならない理由があるとは思わない。 eval-after-load呼び出しの中にある。

上記のドキュメントに記載されているorg変数を使用して、パッケージを追加/削除します。あなたは がこれに注意する必要がありますが、私はこれを1つの領域であると見なしました。org-modeは になります。少し異なりますが、パッケージの依存関係が異なるのは です。 ファイル/ツリーまたはブロックの一部。

関連する問題