Escaping a note as org-mode as text

I have "[16]" in the org-mode file, which is the text that you will see in the ipython shell. How to avoid this text so that it does not generate a footnote in the form of org-mode? This is good inside the example block, but not in the general text. The first [16] is the problem, and all that I have tried so far has not produced just the normal "[16]" in the html output when exporting the file.

#+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

Thank!

+5
source share
2 answers

You can avoid the syntax by using = [1] = (code) or ~ [1] ~ (literal) blocks. See the Org-Manual Section on "Accent and Monosphere" .

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

The corresponding part of the HTML export for this

<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
+4
source

I tried this way.

    Run it again and you should see this, but the command number 
    #+latex: [16]
    will be different for you:
0
source

All Articles