Re: Org-export question from a pandoc user

2021-05-25 Thread Nicolas Goaziou
Hello,

Eric S Fraga  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



Re: Org-export question from a pandoc user

2021-05-25 Thread Eric S Fraga
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



Org-export question from a pandoc user

2021-05-25 Thread Denis Maier

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