From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: can inline tasks export to latex via batch? Date: Tue, 21 Feb 2012 23:48:49 +0530 Message-ID: <81mx8c59ti.fsf@gmail.com> References: <878vjwru92.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzuIy-0007hz-S2 for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 13:19:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzuIt-0004kh-TR for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 13:19:12 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:47677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzuIt-0004jK-Kk for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 13:19:07 -0500 Received: by dadv6 with SMTP id v6so7489314dad.0 for ; Tue, 21 Feb 2012 10:19:06 -0800 (PST) In-Reply-To: <878vjwru92.fsf@gmail.com> (Myles English's message of "Tue, 21 Feb 2012 17:06:33 +0000") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Myles English Cc: emacs-orgmode Mode > 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. Does your command line contain (require 'org-inlinetask)? > 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)" > > --