On Wednesday, 7 Mar 2018 at 18:53, Jarmo Hurri wrote: > Tried this before: for some weird (?) reason I am getting the verbatim > output only. And ":exports results" produces blank.
Very strange. Attached are the org file I used to try this out and the result of exporting to LaTeX.
* test #+name: fragment #+BEGIN_SRC latex :exports both Here is an interesting (and true) equation: \begin{equation} \int uv' = uv - \int u'v \label{int}. \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. #+END_SRC
% Created 2018-03-07 Wed 17:38 % Intended LaTeX compiler: pdflatex \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \usepackage{xcolor} \usepackage{tikz} \usepackage{soul} \usepackage{listings} \usepackage[version=3]{mhchem} \usepackage{doi} \usepackage{amsmath} \usepackage[british, english]{babel} \author{Eric S Fraga} \date{\today} \title{} \hypersetup{ pdfauthor={Eric S Fraga}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 27.0.50 (Org mode 9.1.6)}, pdflang={English}} \begin{document} \tableofcontents \section{test} \label{sec:orgb830d36} \lstset{language=[LaTeX]TeX,label=fragment,caption= ,captionpos=b,numbers=none} \begin{lstlisting} Here is an interesting (and true) equation: \begin{equation} \int uv' = uv - \int u'v \label{int}. \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. \end{lstlisting} Here is an interesting (and true) equation: \begin{equation} \int uv' = uv - \int u'v \label{int}. \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. \end{document}
-- Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d
signature.asc
Description: PGP signature