From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: is it possible to export a list of custom blocks? Date: Thu, 21 Aug 2014 20:49:12 +0200 Message-ID: <87wqa1vftj.fsf@gmail.com> References: <87fvgp66hq.fsf@planetbarr.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKXQg-0005Bb-Er for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 14:49:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKXQa-0007Q0-6V for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 14:49:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:50210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKXQZ-0007Pe-VV for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 14:49:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XKXQR-0006wI-VY for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 20:49:31 +0200 Received: from e178191169.adsl.alicedsl.de ([85.178.191.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Aug 2014 20:49:31 +0200 Received: from tjolitz by e178191169.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Aug 2014 20:49:31 +0200 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: emacs-orgmode@gnu.org "Stephen J. Barr" writes: > I have a document that has a lot of definitions defined as custom > blocks, eg. > > #+LABEL: defn:my-great-definition > #+ATTR_LATEX: :options [My Great Definition] > #+begin_definition > Blah blah..... > #+end_definition > > > Would it be possible to export to .tex a file that has all of the > definitions in sequence? It seems to work out of the box, but maybe I don't understand your question: #+LABEL: defn:my-great-definition #+ATTR_LATEX: :options [My Great Definition] #+begin_definition Blah blah..... #+end_definition #+BEGIN_SRC emacs-lisp (org-export-as 'latex) #+END_SRC #+results: #+begin_example % Created 2014-08-21 Do 20:48 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \author{Thorsten Jolitz} \date{\today} \title{} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.3beta)}} \begin{document} \tableofcontents \section{--text follows this line--} \label{sec-1} "Stephen J. Barr" writes: > I have a document that has a lot of definitions defined as custom > blocks, eg. > > \#+LABEL: defn:my-great-definition > \#+ATTR\(_{\text{LATEX}}\): :options [My Great Definition] > \#+begin\(_{\text{definition}}\) > Blah blah\ldots{}.. > \#+end\(_{\text{definition}}\) > > > Would it be possible to export to .tex a file that has all of the > definitions in sequence? It seems to work out of the box, but maybe I don't understand your question: \begin{definition}[My Great Definition] \label{defn:my-great-definition} Blah blah\ldots{}.. \end{definition} \begin{verbatim} (org-export-as 'latex) \end{verbatim} -- cheers, Thorsten % Emacs 24.3.1 (Org mode 8.3beta) \end{document} #+end_example -- cheers, Thorsten