From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Exporting Latex fragment both rendered and verbatim Date: Wed, 07 Mar 2018 17:40:31 +0000 Message-ID: <871sgv4wds.fsf@gmail.com> References: <87vae8j5zq.fsf@iki.fi> <87po4f52p5.fsf@gmail.com> <87y3j3zv28.fsf@iki.fi> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etd3P-0000hA-I2 for emacs-orgmode@gnu.org; Wed, 07 Mar 2018 12:40:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etd3L-0004oi-EX for emacs-orgmode@gnu.org; Wed, 07 Mar 2018 12:40:39 -0500 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:38914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etd3L-0004oV-5D for emacs-orgmode@gnu.org; Wed, 07 Mar 2018 12:40:35 -0500 Received: by mail-wr0-x234.google.com with SMTP id w77so3023319wrc.6 for ; Wed, 07 Mar 2018 09:40:35 -0800 (PST) In-Reply-To: <87y3j3zv28.fsf@iki.fi> (Jarmo Hurri's message of "Wed, 07 Mar 2018 18:53:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Jarmo Hurri Cc: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=a.org Content-Transfer-Encoding: quoted-printable * test #+name: fragment #+BEGIN_SRC latex :exports both Here is an interesting (and true) equation:=20 \begin{equation}=20 \int uv' =3D uv - \int u'v \label{int}.=20 \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. #+END_SRC --=-=-= Content-Type: text/x-tex Content-Disposition: attachment; filename=a.tex Content-Transfer-Encoding: quoted-printable % 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=3D3]{mhchem} \usepackage{doi} \usepackage{amsmath} \usepackage[british, english]{babel} \author{Eric S Fraga} \date{\today} \title{} \hypersetup{ pdfauthor=3D{Eric S Fraga}, pdftitle=3D{}, pdfkeywords=3D{}, pdfsubject=3D{}, pdfcreator=3D{Emacs 27.0.50 (Org mode 9.1.6)},=20 pdflang=3D{English}} \begin{document} \tableofcontents \section{test} \label{sec:orgb830d36} \lstset{language=3D[LaTeX]TeX,label=3Dfragment,caption=3D ,captionpos=3Db,n= umbers=3Dnone} \begin{lstlisting} Here is an interesting (and true) equation:=20 \begin{equation}=20 \int uv' =3D uv - \int u'v \label{int}.=20 \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. \end{lstlisting} Here is an interesting (and true) equation:=20 \begin{equation}=20 \int uv' =3D uv - \int u'v \label{int}.=20 \end{equation} And that happens to be equation \eqref{int} on page \pageref{int}. \end{document} --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWqAkDwAKCRDIkZPY//z2 fQpAAJ9fPnAweyL+7MrMYrzKAVh5F7o02ACdGQdPH1m00RyjyC8IpvK5mbIETYg= =pOdN -----END PGP SIGNATURE----- --==-=-=--