When working with Org Babel source code blocks, if I have a dollar sign in my code and export it to PDF using LaTeX, it appears to parse as an internal link. (Maybe?)
This is what it looks like: [image: Inline image 1] That comes from the following source code block: #+BEGIN_SRC sql :eval no :var id=1 SELECT * FROM blah WHERE id=$id #+END_SRC The resulting LaTeX from the source code block is: \begin{minted}[]{sql} SELECT * FROM blah WHERE id=$id \end{minted} I have verified that SQL is not the only block type to do this by having a Ruby block with nothing except a "$" in it, and got the same result. This happens as late as commit 682bb962f3934cd50d28a9b2d0b0e0fb85746a03 with Pygments 1.6+dfsg-1ubuntu1 and the Minted included with texlive-latex-extra 2013.20140215-2 on Linux Mint 17.2 and Emacs 24.5.1 (x86_64). I have attached my Org Mode config (Not the actual config, but a few setqs and a list of things that customize spits out), the test Org file, its output, as well as the PDF generated from that. Is this a bug? Or is there something wrong with my configuration? Thanks.
;; From my dotemacs (setq-default indent-tabs-mode nil) (setq org-src-fontify-natively t) (setq org-export-latex-listings 'minted) ;; From customize (list '(org-agenda-window-setup (quote current-window)) '(org-babel-load-languages (quote ((emacs-lisp . t) (lisp . t) (dot . t) (java . t) (js . t) (http . t) (ruby . t) (sh . t) (C . t) (sql . t)))) '(org-confirm-babel-evaluate nil) '(org-drill-optimal-factor-matrix (quote ((2 (2.6 . 2.588)) (1 (2.36 . 3.86) (1.96 . 3.58) (2.5 . 4.0))))) '(org-export-backends (quote (ascii html icalendar latex man md odt))) '(org-export-latex-listings (quote minted) t) '(org-indirect-buffer-display (quote current-window)) '(org-latex-listings (quote minted)) '(org-latex-minted-langs (quote ((emacs-lisp "common-lisp") (sql "sql") (cc "c++") (cperl "perl") (shell-script "bash") (caml "ocaml") (lisp "common-lisp")))) '(org-latex-packages-alist (quote (("" "minted" t)))) '(org-latex-pdf-process (quote ("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))) '(org-link-frame-setup (quote ((vm . vm-visit-folder-other-frame) (vm-imap . vm-visit-imap-folder-other-frame) (gnus . org-gnus-no-new-news) (file . find-file) (wl . wl-other-frame)))) '(org-modules (quote (org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m org-drill))) '(org-src-fontify-natively t) '(org-src-lang-modes (quote (("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("screen" . shell-script) ("java" . java) ("http" . ob-http) ("C++" . c++)))) '(org-src-window-setup (quote current-window)) '(org-todo-keywords (quote ((sequence "TODO(t)" "|" "DONE(d)") (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)") (sequence "|" "CANCELLED(c)")))))
dollar.org
Description: Binary data
dollar.tex
Description: TeX document
dollar.pdf
Description: Adobe PDF document