* Defining content for re-use
@ 2016-01-13 13:54 Karl Voit
2016-01-13 15:13 ` Eric Abrahamsen
2016-01-13 21:38 ` Rasmus
0 siblings, 2 replies; 3+ messages in thread
From: Karl Voit @ 2016-01-13 13:54 UTC (permalink / raw)
To: emacs-orgmode
Hi!
I wonder if it is possible to define parts of content and "bind" it
to a reference which can be inserted multiple times.
In LaTeX, I am using:
,----[ LaTeX example ]
| \newcommand{\mycontent}{This is some content containing lists,
| headings, and much more which is defined once and pops up in my end
| document multiple times.}
|
| \chapter{First Chapter}
|
| \mycontent
|
| [...]
|
| \chapter{Last Chapter}
|
| Once again, I would like to state \mycontent
`----
So can this be done with Org-mode (and TeX export) as well?
Very vaguely I'd say this would look like:
,----[ Org-mode example guess ]
| #+NAME: mycontent
| #+BEGIN_QUOTE
| This is some content...
| #+END
|
| My content which is #+insert:mycontent can be used multiple times.
| Here we go again: #+insert:mycontent
`----
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Defining content for re-use
2016-01-13 13:54 Defining content for re-use Karl Voit
@ 2016-01-13 15:13 ` Eric Abrahamsen
2016-01-13 21:38 ` Rasmus
1 sibling, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2016-01-13 15:13 UTC (permalink / raw)
To: emacs-orgmode
Karl Voit <devnull@Karl-Voit.at> writes:
> Hi!
>
> I wonder if it is possible to define parts of content and "bind" it
> to a reference which can be inserted multiple times.
Sounds like macros in Org -- maybe check out that part of the manual?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Defining content for re-use
2016-01-13 13:54 Defining content for re-use Karl Voit
2016-01-13 15:13 ` Eric Abrahamsen
@ 2016-01-13 21:38 ` Rasmus
1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2016-01-13 21:38 UTC (permalink / raw)
To: emacs-orgmode
Hi Karl,
Karl Voit <devnull@Karl-Voit.at> writes:
> I wonder if it is possible to define parts of content and "bind" it
> to a reference which can be inserted multiple times.
Recently, there was a thread on a similar issue.
http://permalink.gmane.org/gmane.emacs.orgmode/103942
If you can have external files, you can #+include (e.g. #+include:
"file::*heading" ) them multiple times. Since you cannot include from the
same document as the include keyword is in you’d need at least two files.
Rasmus
--
Evidence suggests Snowden used a powerful tool called monospaced fonts
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-13 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13 13:54 Defining content for re-use Karl Voit
2016-01-13 15:13 ` Eric Abrahamsen
2016-01-13 21:38 ` Rasmus
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).