From: Eduardo Mercovich <eduardo@mercovich.net>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: How to do proper folding and semantic markup
Date: Wed, 30 Mar 2016 17:44:31 -0300 [thread overview]
Message-ID: <87vb438zm8.fsf@mercovich.net> (raw)
Dear all.
I'm using org-mode as a writer and it is simply fantastic. One of the
things I enjoy more is the folding. A huge report like the one I'm
working on seems sooo easy... ;)
However, I don't know how to integrate that with some semantic markup
and the latex exporter at the same time (BTW, org+latex=awesomness!).
I'll use the abstract as example, but the same idea is valid for other
semantic markup like front, main and backmatter.
As a MWE let's see this org file.
--8<---------------cut here---------------start------------->8---
[some latex preamble]
* Abstract
The abstract body text (even with some level 2 headers in the middle).
* Process
** A level 2 header
It's body text and the rest of the report...
--8<---------------cut here---------------end--------------->8---
When this is exported to latex (using a slightly modified memoir class),
the 1st header has "Abstract" as title, but doesn't express that it *is*
an abstract. So, for example, it can be styled, or it can be searched
inside specifically.
The org manual(1), says:
... place the abstract and #+LATEX: commands for frontmatter before the
first exported headline, e.g.,
#+BEGIN_abstract
[Abstract here]
#+END_abstract
The question is: how do I use the 1st header (keeping it's folding and
referencing in org) while at the same time expressing that it is an
abstract? How (if) can be done not only before the ToC, LoF and LoT but
after them?
I already tried this, without success:
--8<---------------cut here---------------start------------->8---
[some latex preamble]
* Abstract
#+BEGIN_abstract
The abstract body text (even with some level 2 headers in the middle).
#+END_abstract
* Process
It's body text and the rest of the report...
--8<---------------cut here---------------end--------------->8---
Is there is no mechanism yet (which I doubt) and if it makes sense, is
it possible to use properties for this? Something like:
--8<---------------cut here---------------start------------->8---
[some latex preamble]
* Abstract
:PROPERTIES:
:latex-type: abstract
:END:
The abstract body text (even with some level 2 headers in the middle).
* Process
It's body text and the rest of the report...
--8<---------------cut here---------------end--------------->8---
In this way each exporter backend can use that info as it pleases. Latex
to use it's specific markup, html to make a class, etc.
Please forgive me if the answer is obvious, but I've searched and found
nothing. I did my homework and I'm sure it's there, but obviously I'm
not searching with the appropiate keywords.
As always, thank you in advance for sharing your time and experience. :)
Best...
(1) http://orgmode.org/worg/org-tutorials/org-latex-export.html#orgheadline17
--
eduardo mercovich
Donde se cruzan tus talentos
con las necesidades del mundo,
ahí está tu vocación.
next reply other threads:[~2016-03-30 20:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 20:44 Eduardo Mercovich [this message]
2016-03-30 21:52 ` How to do proper folding and semantic markup Thomas S. Dye
2016-04-01 0:11 ` Eduardo Mercovich
2016-03-31 8:10 ` Christian Moe
2016-04-01 0:39 ` Eduardo Mercovich
2016-04-01 7:48 ` Eric S Fraga
2016-04-01 12:33 ` Eduardo Mercovich
2016-04-04 5:21 ` Adam Porter
2016-04-04 15:01 ` Eduardo Mercovich
2016-04-05 4:19 ` Adam Porter
2016-04-05 21:18 ` Eduardo Mercovich
2016-04-05 22:04 ` Nick Dokos
2016-04-06 12:59 ` Eduardo Mercovich
2016-04-05 23:56 ` Adam Porter
2016-04-06 12:58 ` Eduardo Mercovich
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=87vb438zm8.fsf@mercovich.net \
--to=eduardo@mercovich.net \
--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).