Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to express two columns with org-mode format to be exported by Pandoc to Powerpoint

With Markdown, I can format two columns in a slide with the following example:

# Introduction
:::::::::::::: {.columns}
::: {.column width="60%"}
- My notes based on my partial understanding
:::
::: {.column width="40%"}
- Joined late in the project
:::
::::::::::::::

I wonder what would be the equivalent in org-mode format?

I understand that org-mode is not designed as markdown format. But I really want to have the benefits of both of org-mode in emacs and the power of format of markdown with Pandoc.

It would work equally well for me if I could treat markdown content in emacs as if it were an org-mode file. I found that emacs to some extent treat markdown as org-mode content in markdown mode, but it does not fold nested lists.

like image 352
Yu Shen Avatar asked Sep 02 '25 08:09

Yu Shen


1 Answers

You can use custom blocks combined with block attributes to get the desired result.

#+BEGIN_columns

#+ATTR_HTML: :width 60%
#+BEGIN_column
- My notes based on my partial understanding
#+END_column

#+ATTR_HTML: :width 40%
#+BEGIN_column
- Joined late in the project
#+END_column

#+END_columns

Pandoc currently only reads HTML attributes and uses these for all formats.

like image 116
tarleb Avatar answered Sep 05 '25 00:09

tarleb