When I try to export a file like this:
#+LaTeX_CLASS: tufte
#+ATTR_LaTeX: :float t :options label={test}
#+begin_src c
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
#+end_src
The options
attribute is ignored (it does not go the the generated tex
file) and only the default options are passed:
\begin{listing}[H]
\begin{minted}[frame=lines, linenos=true]{c}
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
\end{minted}
\end{listing}
Any idea why? My org version is 8.2.7c.
Edit: my setup for this:
#+begin_src emacs-lisp
(require 'ox-latex)
(require 'org-latex)
(add-to-list 'org-latex-packages-alist '("" "minted"))
(setq org-latex-listings 'minted)
(setq org-latex-minted-options
'(("frame" "lines") ("linenos=true")))
(setq org-latex-pdf-process (list "latexmk -pdf %f"))
#+end_src
** Tufte
#+begin_src emacs-lisp
(add-to-list 'org-latex-classes
`("tufte"
"\\documentclass{tufte-handout}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" "\\newpage" "\\subsection*{%s}" "\\newpage")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
)
#+end_src
org-mode
set-up for thetufte
class etc.?report
book
article
. And I assume there's no way you could work around that? I compiled the above, with all them classes. And everything seemed good to me. .. as of today, the fileox-latex
is the one you should blame. I haven't had time to change it directly, as it requires some time to compile. I also have to deal with the fact, not to be oblivious to the last touch, these files undergo, to understandable compressing measures, during compilation. If I were you, since you particularly need that class, ...tex
file, thatreport
,book
, andarticle
compile withC-c C-e l l