From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: can inline tasks export to latex via batch?
Date: Tue, 21 Feb 2012 17:06:33 +0000 [thread overview]
Message-ID: <878vjwru92.fsf@gmail.com> (raw)
Hello,
Does anyone know if I can export inline tasks to latex using --batch
from bash? When passed as the --funcall option, org-export-as-ascii
will export inline tasks but org-export-as-latex-batch won't. Setting
file level options don't appear to help.
A minimal example follows.
Emacs 23.4.1
org release_7.8.03.420.gaf2a4
Thanks,
Myles
#------------------------------------- b.org ---
#+EXPORT_EXCLUDE_TAGS: noexport
* A Heading
** A Sub heading
And now here is an inline task
*************** TODO Here I am, I'm inline
Notes notes notes
*************** END
** TODO I'm not inline
Can you see me?
* Tests :noexport:
** Test LaTeX export
#+BEGIN_SRC sh :results verbatim
emacs --batch \
--load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
--visit=~/tmp/tstexp/b.org \
--funcall org-export-as-latex-batch
cat ~/tmp/tstexp/b.tex
#+END_SRC
#+RESULTS:
#+begin_example
% Created 2012-02-21 Tue 16:41
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}
\title{b}
\author{}
\date{\today}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{A Heading}
\label{sec-1}
\subsection{A Sub heading}
\label{sec-1-1}
And now here is an inline task
\subsection{\textbf{TODO} I'm not inline}
\label{sec-1-2}
Can you see me?
\end{document}
#+end_example
** Test text export
#+BEGIN_SRC sh :results verbatim
emacs --batch \
--load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
--visit=~/tmp/tstexp/b.org \
--funcall org-export-as-ascii
cat ~/tmp/tstexp/b.txt
#+END_SRC
#+RESULTS:
#+begin_example
b
=
Author:
Date: 2012-02-21 16:42:07 GMT
Table of Contents
=================
1 A Heading
1.1 A Sub heading
1.2 I'm not inline
1 A Heading
------------
1.1 A Sub heading
==================
And now here is an inline task
- TODO Here I am, I'm inline
Notes notes notes
- END
1.2 TODO I'm not inline
========================
Can you see me?
#+end_example
(emacs-version)"GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9)
of 2012-02-01 on shirley.hoetzel.info"
(org-version) "Org-mode version 7.8.03 (release_7.8.03.420.gaf2a4)"
next reply other threads:[~2012-02-21 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-21 17:06 Myles English [this message]
2012-02-21 18:18 ` can inline tasks export to latex via batch? Jambunathan K
2012-02-22 0:52 ` Myles English
2012-02-22 13:40 ` Myles English
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=878vjwru92.fsf@gmail.com \
--to=mylesenglish@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).