emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephen J. Barr <stephen@planetbarr.com>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: is it possible to export a list of custom blocks?
Date: Thu, 21 Aug 2014 16:52:17 -0700	[thread overview]
Message-ID: <877g215rh0.fsf@planetbarr.com> (raw)
In-Reply-To: <87wqa1vftj.fsf@gmail.com>

My apologies for the ambiguity. I am happy with the way the block itself
exports. I have a document with many such blocks interspersed throughout
the document. I wanted to create an org document which contains just
these blocks, and then export that document to .tex. 

E.g., if I had a paper, I would like a document containing just the
terms defined in the paper, and none of the rest of the content.

Thanks,
Stephen

Thorsten Jolitz writes:

> "Stephen J. Barr" <stevejb@uw.edu> 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" <stevejb@uw.edu> 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

-- 
Sent with my mu4e

      reply	other threads:[~2014-08-21 23:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-21 18:13 is it possible to export a list of custom blocks? Stephen J. Barr
2014-08-21 18:49 ` Thorsten Jolitz
2014-08-21 23:52   ` Stephen J. Barr [this message]

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=877g215rh0.fsf@planetbarr.com \
    --to=stephen@planetbarr.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@gmail.com \
    /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).