From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: Problem with including file Date: Thu, 02 May 2019 09:26:45 +0100 Message-ID: <87bm0lgt2y.fsf@skimble.plus.com> References: <02c901d500a4$61ee4760$25cad620$@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM73b-00052M-3Q for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM73Y-0007Ew-KX for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:27:06 -0400 Received: from avasout02.plus.net ([212.159.14.17]:60811) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hM73V-0007BH-O4 for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:27:04 -0400 In-Reply-To: <02c901d500a4$61ee4760$25cad620$@gmail.com> (Andreas Kiermeier's message of "Thu, 2 May 2019 14:33:25 +0930") 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: Andreas Kiermeier Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Andreas Kiermeier" writes: Andreas. Just a very quick glance at your problem, and in the tex output you've show= n there is a double closing bracket on 'pdflang=3D{English}}'. If you corre= ct that then your output might be better, I don't know, but its certainly w= orth a try. Thanks Sharon. > Hi, > > I=E2=80=99ve just run into a problem with exporting a file to latex. > > In a nutshell, my org files usually contain various analyses and output i= n R. > > I generally don=E2=80=99t include the source in the file, but instead tan= gle all source blocks at the end and include the source code file in an App= endix. This has worked in > the past, but now the included file is not actually include. > > An example (close to minimal) consist of the two files below - test.org a= nd test.R (both in the same folder). > > When exporting test.org to PDF, the source block is correctly exported, w= hile the included file does not appear to be included at all (see also test= .tex below). > > Any thoughts would be greatly appreciated. > > Thanks, > > Andreas > > --- begin test.org ---- > > #+STARTUP: content indent hidestars fninline > > #+PROPERTY: header-args:R :session *R* :cache no > > #+PROPERTY: header-args+ :results output > > #+PROPERTY: header-args+ :exports results > > #+PROPERTY: header-args+ :eval never-export > > #+PROPERTY: header-args+ :tangle yes > > #+OPTIONS: toc:nil H:5 > > #+LATEX_HEADER: \usepackage{minted} > > * Intro > > #+begin_src R :results none :exports code > > ls() > > #+end_src > > * Data Analysis Source Code=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > > #+INCLUDE: "test.R" src R > > --- end test.org ---- > > --- begin test.R ---- > > ls() > > --- end test.R ---- > > --- begin test.tex ---- > > % Created 2019-05-02 Thu 14:08 > > % Intended LaTeX compiler: pdflatex > > \documentclass[11pt]{article} > > \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{here} > > \usepackage{color} > > \usepackage{fancyhdr} > > \usepackage{fancybox} > > \usepackage{xspace} > > \usepackage{minted} > > \author{Andreas Kiermeier} > > \date{\today} > > \title{} > > \hypersetup{ > > pdfauthor=3D{Andreas Kiermeier}, > > pdftitle=3D{}, > > pdfkeywords=3D{}, > > pdfsubject=3D{}, > > pdfcreator=3D{Emacs 25.3.1 (Org mode 9.2.3)}, > > pdflang=3D{English}} > > \begin{document} > > \section{Intro} > > \label{sec:org6eb9726} > > \begin{minted}[]{r} > > ls() > > \end{minted} > > \section{Data Analysis Source Code} > > \label{sec:org98a88b4} > > \end{document} > > --- begin test.text ---- > =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 9.9, fluxbox 1.3.7, emacs 26.2, org 9.2.3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlzKqcYACgkQNoGAGQr4 g1vqEA/9GVznHtu3VjUW2HIPtFoliJakJTDlKbXHK2MmJs6495JYrNS22QwzVDFX LvVE+pD4TRlEbZCiOMaEk5/CY/I0Kt2Ier6NHTiq98nAVHf5QRM2XJuVSe72Lb0h ACdECVxYGmngmPjJkUEr/p3UG9EzF19+dVLCbAWL7BeMo+pGTU0W2hVrj45lHW6d mTlQxPlzGxIZy9lt/CCJZOJVsz+CgO4/HikJ7aizCPkVZDazNalFH9OCLpJFD6nl Jq+Vz/ODBSMJ7fKE3EQv06SJm7SgoH2dMCATaLMoVKUhys3l41c1Bv3eLTt6YFS+ a/7wC+rgsWv4K7UpURbLYet3/3Xn7bPjDryyseVxxbMqDmb0/J9G14QjxlZ/YMvK ueXu6YiaMtJ50+Vudb+paBOd37MfAuhCyG+r5sQrY7ebuYC7L9UyBC1LUlSQ3Yss 5GvYHrSrRGTCEAuBvU97WjEa+1Su5oQZo839mYjzwu/L3/FDSoiY3hd6Q0qQlatT bB9FNHRqkMIaa98QPeYtsbkcynM4Zm7Q/QmnnZNe1bfP2FzOADv2VCbxMbeJX80y uo5Ok0GmcS7bXMtvRJD5Xskg4KJZAC88ly4UWusPNJoac0/ZL6hCJAUSFjXMJrwy mPZMbUarOJXw4gHLEglXC4KAXs2NeO5tKXzp3wBa6hgz6RrrjhY= =kLkQ -----END PGP SIGNATURE----- --=-=-=--