Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Eric S Fraga
On Wednesday,  7 Mar 2018 at 20:21, Jarmo Hurri wrote:

[...]

> Even the document classes are different. Now I am running org 9.1.7, by
> the way, just did a git pull and all.

Ah, that's because I do modify the default LaTeX class for
export...  sorry!

But I see that you've sorted the problem out.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d


signature.asc
Description: PGP signature


Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Jarmo Hurri

Eric S Fraga  writes:

> Very strange.  Attached are the org file I used to try this out and the
> result of exporting to LaTeX.

Got it: I did not have latex in my org-babel-do-load-languages.

Thanks!

Jarmo




Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Jarmo Hurri
Eric S Fraga  writes:

> 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.

And when I export your a.org to LaTeX, I get the attached tex with a
verbatim environment only:



a.tex.mine
Description: my tex export

Even the document classes are different. Now I am running org 9.1.7, by
the way, just did a git pull and all.

So this is a setup issue of some kind. Where should I begin... Our emacs
versions differ quite a bit (yours 27, mine 25). But that is not likely
to be the issue.

Ideas?

Jarmo


Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Eric S Fraga
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


Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Jarmo Hurri

>> It is easy to export it verbatim as follows:
>>
>>   #+name: fragment
>>   #+BEGIN_SRC latex
>>
>> 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
>>
>> But what is the correct combination of environments (src, export) and
>
> Use this src block but add ":exports both" to the begin_src line.

Tried this before: for some weird (?) reason I am getting the verbatim
output only. And ":exports results" produces blank.

This is a beamer export with org version 9.1.6.

Hmm...

Jarmo




Re: [O] Exporting Latex fragment both rendered and verbatim

2018-03-07 Thread Eric S Fraga
On Wednesday,  7 Mar 2018 at 16:49, Jarmo Hurri wrote:

[...]

> It is easy to export it verbatim as follows:
>
>   #+name: fragment
>   #+BEGIN_SRC latex
>
> 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
>
> But what is the correct combination of environments (src, export) and

Use this src block but add ":exports both" to the begin_src line.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d


signature.asc
Description: PGP signature