2011-11-15 10 views
5

ipythonシェルに表示されるテキストであるorg-modeファイルに "[16]"があります。どのようにして、org-mode脚注を生成しないようにそのテキストをエスケープしますか?サンプルブロックの内部は問題ありませんが、一般的なテキストにはありません。最初の[16]は問題です。これまでに試したことは、ファイルをエクスポートするときに、html出力でまっすぐに正常な "[16]"を生成しませんでした。org-mode脚注をテキストのようにエスケープする

#+BEGIN_SRC python 
def setfrequency(): 
    print 'Setting frequency' 
    # Write code here to set the frequency 

setfrequency() 
#+END_SRC 

# This next line is the footnote problem 
Run it again and you should see this, but the command number [16] 
will be different for you: 

#+BEGIN_EXAMPLE 
In [16]: run sonar # This does not export as a footnote. 
Setting frequency 
#+END_EXAMPLE 

ありがとう!

答えて

4

= [1] =(コード)または〜[1]〜(逐語的)ブロックを使用して構文をエスケープできます。 Org-ManualのセクションEmphasis and Monospaceを参照してください。

* This will export the footnote style brackets verbatim 
    [1] by itself will fail 
    =[1]= and ~[1]~ will export as is. 

このためHTMLエクスポートの関連部分は、私はこの方法を試してみました

<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a> 
</sup> by itself will fail 
    <code>[1]</code> and <code>[1]</code> will export as is. 
</p> 

<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a> 
</sup> DEFINITION NOT FOUND: 1 
0

です。

Run it again and you should see this, but the command number 
    #+latex: [16] 
    will be different for you: 
関連する問題