emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-export question from a pandoc user
@ 2021-05-25  9:59 Denis Maier
  2021-05-25 12:13 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Maier @ 2021-05-25  9:59 UTC (permalink / raw)
  To: Org Mode List

Hi everyone,

given the recent developments regarding the citation syntax I'm 
currently looking at orgmode as a writing environment again. One thing I 
don't understand currently: Do you have to have you export configuration 
in your source file or is there a way to keep your writing clean from 
these formatting instructions? That stuff causes a lot of overhead, and 
I was really happy to learn about pandoc after using LaTeX for a long time.

Just to clarify what I mean:
With pandoc you can add formatting information to your document 
metadata, but you can also use makefiles or external files that contain 
your settings. So, in the end your documents will only contain the contents:


#+begin_src markdown
---
author: Denis
title: My article
date: whenever it is done
---

# Introduction
The article starts here

#+end_src

The nice thing about this approach is that you can define different 
settings for different output formats and reuse them as appropriate.

How do you do that in orgmode? Is that possible?

Denis


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-export question from a pandoc user
  2021-05-25  9:59 Org-export question from a pandoc user Denis Maier
@ 2021-05-25 12:13 ` Eric S Fraga
  2021-05-25 16:22   ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2021-05-25 12:13 UTC (permalink / raw)
  To: Denis Maier; +Cc: Org Mode List

On Tuesday, 25 May 2021 at 11:59, Denis Maier wrote:

[...]

> With pandoc you can add formatting information to your document 
> metadata, but you can also use makefiles or external files that contain 
> your settings. So, in the end your documents will only contain the contents:

[...]

> How do you do that in orgmode? Is that possible?

It is possible through the use of #+include: and #+setupfile: directives
in the document, i.e. one line pointing to where you might have defined
all the meta information you mention.

I actually tend to use the autoinsert package (which comes by default
with Emacs) which inserts a template suitable for most of my documents
whenever I visit a new file.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-542-gf72a65


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-export question from a pandoc user
  2021-05-25 12:13 ` Eric S Fraga
@ 2021-05-25 16:22   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2021-05-25 16:22 UTC (permalink / raw)
  To: Org Mode List

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Tuesday, 25 May 2021 at 11:59, Denis Maier wrote:
>
> [...]
>
>> With pandoc you can add formatting information to your document 
>> metadata, but you can also use makefiles or external files that contain 
>> your settings. So, in the end your documents will only contain the contents:
>
> [...]
>
>> How do you do that in orgmode? Is that possible?
>
> It is possible through the use of #+include: and #+setupfile: directives
> in the document, i.e. one line pointing to where you might have defined
> all the meta information you mention.

I addition to what Eric S. Fraga wrote above, I suggest to have a look
at the fine Org manual, which illustrates some of these concepts.

You can also declare all of your configuration in a publishing
environment.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-25 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-25  9:59 Org-export question from a pandoc user Denis Maier
2021-05-25 12:13 ` Eric S Fraga
2021-05-25 16:22   ` Nicolas Goaziou

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).