emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Kiermeier" <andreas.kiermeier@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Problem with including file
Date: Thu, 2 May 2019 14:33:25 +0930	[thread overview]
Message-ID: <02c901d500a4$61ee4760$25cad620$@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2307 bytes --]

Hi,

I've 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't 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                                       

 

#+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={Andreas Kiermeier},

pdftitle={},

pdfkeywords={},

pdfsubject={},

pdfcreator={Emacs 25.3.1 (Org mode 9.2.3)}, 

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


[-- Attachment #2: Type: text/html, Size: 6859 bytes --]

             reply	other threads:[~2019-05-02  5:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-02  5:03 Andreas Kiermeier [this message]
2019-05-02  8:26 ` Problem with including file Sharon Kimble
2019-05-02  8:40   ` Andreas Kiermeier
2019-05-02  8:37 ` Nicolas Goaziou
2019-05-02  8:45   ` Andreas Kiermeier
2019-05-02 11:23     ` Jamie Forth
2019-05-03  1:44       ` Andreas Kiermeier

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='02c901d500a4$61ee4760$25cad620$@gmail.com' \
    --to=andreas.kiermeier@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).