From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andreas Kiermeier" Subject: Re: Problem with including file Date: Thu, 2 May 2019 18:10:45 +0930 Message-ID: <036801d500c2$be654160$3b2fc420$@gmail.com> References: <02c901d500a4$61ee4760$25cad620$@gmail.com> <87bm0lgt2y.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0369_01D50112.5F307CF0" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM7Gy-0008U4-JR for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM7Gw-0007NH-LC for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:40:56 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:46167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hM7Gu-0007L7-T8 for emacs-orgmode@gnu.org; Thu, 02 May 2019 04:40:54 -0400 Received: by mail-pf1-x444.google.com with SMTP id j11so761370pff.13 for ; Thu, 02 May 2019 01:40:52 -0700 (PDT) In-Reply-To: <87bm0lgt2y.fsf@skimble.plus.com> Content-Language: en-au 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: 'Sharon Kimble' Cc: emacs-orgmode@gnu.org This is a multipart message in MIME format. ------=_NextPart_000_0369_01D50112.5F307CF0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Sharon, The tex file is straight out of the export, and the second = =E2=80=9D}=E2=80=9D matches the =E2=80=9C\hypersetup{=E2=80=9C a few = lines earlier. Thanks, Andreas =20 From: Sharon Kimble =20 Sent: Thursday, 2 May 2019 17:57 To: Andreas Kiermeier Cc: emacs-orgmode@gnu.org Subject: Re: [O] Problem with including file =20 "Andreas Kiermeier" > writes:=20 Andreas.=20 Just a very quick glance at your problem, and in the tex output you've = shown there is a double closing bracket on 'pdflang=3D{English}}'. If = you correct that then your output might be better, I don't know, but its = certainly worth a try. Thanks=20 Sharon.=20 > Hi,=20 >=20 > I=E2=80=99ve just run into a problem with exporting a file to latex.=20 >=20 > In a nutshell, my org files usually contain various analyses and = output in R.=20 >=20 > I generally don=E2=80=99t include the source in the file, but instead = tangle all source blocks at the end and include the source code file in = an Appendix. This has worked in > the past, but now the included file is not actually include.=20 >=20 > An example (close to minimal) consist of the two files below - = test.org and test.R (both in the same folder).=20 >=20 > When exporting test.org to PDF, the source block is correctly = exported, while the included file does not appear to be included at all = (see also test.tex below). >=20 > Any thoughts would be greatly appreciated.=20 >=20 > Thanks,=20 >=20 > Andreas=20 >=20 > --- begin test.org ----=20 >=20 > #+STARTUP: content indent hidestars fninline=20 >=20 > #+PROPERTY: header-args:R :session *R* :cache no=20 >=20 > #+PROPERTY: header-args+ :results output=20 >=20 > #+PROPERTY: header-args+ :exports results=20 >=20 > #+PROPERTY: header-args+ :eval never-export=20 >=20 > #+PROPERTY: header-args+ :tangle yes=20 >=20 > #+OPTIONS: toc:nil H:5=20 >=20 > #+LATEX_HEADER: \usepackage{minted}=20 >=20 > * Intro=20 >=20 > #+begin_src R :results none :exports code=20 >=20 > ls()=20 >=20 > #+end_src=20 >=20 > * Data Analysis Source Code =20 >=20 > #+INCLUDE: "test.R" src R=20 >=20 > --- end test.org ----=20 >=20 > --- begin test.R ----=20 >=20 > ls()=20 >=20 > --- end test.R ----=20 >=20 > --- begin test.tex ----=20 >=20 > % Created 2019-05-02 Thu 14:08=20 >=20 > % Intended LaTeX compiler: pdflatex=20 >=20 > \documentclass[11pt]{article}=20 >=20 > \usepackage[utf8]{inputenc}=20 >=20 > \usepackage[T1]{fontenc}=20 >=20 > \usepackage{graphicx}=20 >=20 > \usepackage{grffile}=20 >=20 > \usepackage{longtable}=20 >=20 > \usepackage{wrapfig}=20 >=20 > \usepackage{rotating}=20 >=20 > \usepackage[normalem]{ulem}=20 >=20 > \usepackage{amsmath}=20 >=20 > \usepackage{textcomp}=20 >=20 > \usepackage{amssymb}=20 >=20 > \usepackage{capt-of}=20 >=20 > \usepackage{hyperref}=20 >=20 > \usepackage{here}=20 >=20 > \usepackage{color}=20 >=20 > \usepackage{fancyhdr}=20 >=20 > \usepackage{fancybox}=20 >=20 > \usepackage{xspace}=20 >=20 > \usepackage{minted}=20 >=20 > \author{Andreas Kiermeier}=20 >=20 > \date{\today}=20 >=20 > \title{}=20 >=20 > \hypersetup{=20 >=20 > pdfauthor=3D{Andreas Kiermeier},=20 >=20 > pdftitle=3D{},=20 >=20 > pdfkeywords=3D{},=20 >=20 > pdfsubject=3D{},=20 >=20 > pdfcreator=3D{Emacs 25.3.1 (Org mode 9.2.3)},=20 >=20 > pdflang=3D{English}}=20 >=20 > \begin{document}=20 >=20 > \section{Intro}=20 >=20 > \label{sec:org6eb9726}=20 >=20 > \begin{minted}[]{r}=20 >=20 > ls()=20 >=20 > \end{minted}=20 >=20 > \section{Data Analysis Source Code}=20 >=20 > \label{sec:org98a88b4}=20 >=20 > \end{document}=20 >=20 > --- begin test.text ----=20 >=20 --=20 A taste of linux =3D http://www.sharons.org.uk=20 TGmeds =3D http://www.tgmeds.org.uk=20 DrugFacts =3D https://www.drugfacts.org.uk=20 Debian 9.9, fluxbox 1.3.7, emacs 26.2, org 9.2.3=20 ------=_NextPart_000_0369_01D50112.5F307CF0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi Sharon,

The tex = file is straight out of the export, and the second =E2=80=9D}=E2=80=9D = matches the =E2=80=9C\hypersetup{=E2=80=9C a few lines = earlier.

Thanks,

Andreas

 

From: Sharon Kimble = <boudiccas@skimble.plus.com>
Sent: Thursday, 2 May 2019 = 17:57
To: Andreas Kiermeier = <andreas.kiermeier@gmail.com>
Cc: = emacs-orgmode@gnu.org
Subject: Re: [O] Problem with including = file

 

"Andreas Kiermeier" = <andreas.kiermeier@gmail.com> writes:
Andreas.

Just a very quick glance = at your problem, and in the tex output you've shown there is a double = closing bracket on 'pdflang=3D{English}}'. If you correct that then your = output might be better, I don't know, but its certainly worth 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 in R.
>
> I generally = don=E2=80=99t include the source in the file, but instead tangle all = source blocks at the end and include the source code file in an = Appendix. 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 and test.R = (both in the same folder).
>
> When exporting test.org to = PDF, the source block is correctly exported, while 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           &nb= sp;           &nbs= p;            = ; 
>
> #+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 ----
>

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

------=_NextPart_000_0369_01D50112.5F307CF0--