I am producing LaTeX output with org mode. My code snippets wind up being indented with tabs, because of my c-mode settings. Changing these would be inconvenient. Although the snippet I am posting could be compiled with latex, I need to be able to compile Unicode documents, so I am using xelatex -shell-escape to compile the automatically generated latex source.
The generated source looks like this:
Which produces LaTeX like the following (some irrelevant stuff removed, this reproduces the problem):
\documentclass[11pt]{article}
\tolerance=1000
\usepackage{fontspec}
\usepackage{minted}
\author{Glen Stark}
\date{\today}
\title{sample}
\begin{document}
\section{Foo}
\begin{minted}[]{c++}
void foo()
{
void bar = fb();
std::cout << "fbar" << "\n"
}
\end{minted}
\end{document}
Compiling this with xelatex -shell-escape
results in output like:
void foo()
^^Ivoid bar = fb();
^^Istd::cout //etc.
The whitespace in the minted block is a tab. Obviously xelatex is inserting something funny in place of the tabs. I have a workaround where I force generation of spaces instead of tabs, but this is inconvenient.
Anyone know what the fix/problem is?