emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Jarmo Hurri <jarmo.hurri@iki.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting Latex fragment both rendered and verbatim
Date: Wed, 07 Mar 2018 17:40:31 +0000	[thread overview]
Message-ID: <871sgv4wds.fsf@gmail.com> (raw)
In-Reply-To: <87y3j3zv28.fsf@iki.fi> (Jarmo Hurri's message of "Wed, 07 Mar 2018 18:53:19 +0200")


[-- Attachment #1.1: Type: text/plain, Size: 285 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: a.org --]
[-- Type: text/x-org, Size: 271 bytes --]

* 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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: a.tex --]
[-- Type: text/x-tex, Size: 1403 bytes --]

% 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}

[-- Attachment #1.4: Type: text/plain, Size: 70 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2018-03-07 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 14:49 Exporting Latex fragment both rendered and verbatim Jarmo Hurri
2018-03-07 15:24 ` Eric S Fraga
2018-03-07 16:53   ` Jarmo Hurri
2018-03-07 17:40     ` Eric S Fraga [this message]
2018-03-07 18:21       ` Jarmo Hurri
2018-03-07 22:17         ` Eric S Fraga
2018-03-07 18:32       ` Jarmo Hurri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871sgv4wds.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).