From: Rasmus <rasmus@gmx.us>
To: moptop99@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: two simple derived backend questions
Date: Thu, 15 Oct 2015 09:46:07 +0200 [thread overview]
Message-ID: <874mhsingg.fsf@gmx.us> (raw)
In-Reply-To: <CAN_Dec93Qd7-1rvcW6bNzKFv70j075CFW_aYxVj8phAJBB7ifw@mail.gmail.com> (Matt Price's message of "Wed, 14 Oct 2015 21:59:52 -0400")
Hi Matt,
Matt Price <moptop99@gmail.com> writes:
>> > a) add a horizontal rule
>> >
>> > pandoc expects a horizontal rule at each slide division. So, if
>> possible,
>> > I would like to add an hhr element at the end of every headline.
>>
>> What’s a hhr element?
>>
>> <hr>, I meant
>
>> Can you just use something like
>> ---------------------------
>>
>> for a horizontal rule? AFAIK, it’s inserted as "---".
>>
>> yes. but then I will have to take out all the "---------------------"
> elements if I want to go back to using my original org documents again.
> The point is that I have lots of these lecture notes, and would prefer not
> to alter them too severely if possible.
In that case I would indeed use a filter and run it conditional on the
file path, available through the info plist.
You could can add lines via org-export-before-processing-hook. Combine,
outline-next-heading (or just re-search-forward and org-heading-regexp),
check with org-element-at-point or org-outline-level and go to the end of
the headline and insert your line (if you use org-element-at-point for
this, remember to skip backwards through the " \n\t").
> yes, that's right, I was being hasty. In any case, what I would like to do
> is reproduce this behaviour in the markdown export; I have tried modifying
> the md export but I am doing something wrong, clearly, and had hoped to get
> some hints from the list...
It gives a div already with ox-md, right? What do you want more? Do you
want it to be an <aside ...></aside ...> element? If so, use a filter on
org-export-filter-special-block-functions that does a regexp replacement.
Rasmus
--
Don't panic!!!
prev parent reply other threads:[~2015-10-15 7:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 18:22 two simple derived backend questions Matt Price
2015-10-14 22:55 ` Rasmus
2015-10-15 1:59 ` Matt Price
2015-10-15 3:35 ` Charles C. Berry
2015-10-23 18:04 ` Matt Price
2015-10-15 7:46 ` Rasmus [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mhsingg.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.