diff --git a/test/site/content-org/all-posts.org b/test/site/content-org/all-posts.org index d61f2e5..438751f 100644 --- a/test/site/content-org/all-posts.org +++ b/test/site/content-org/all-posts.org @@ -4853,7 +4853,7 @@ But that generates neither a Pandoc warning nor error. As the final Pandoc output Markdown ends up with *no* references, the Pandoc output is discarded, and the original ~ox-hugo~ output is used instead. -** Citations with captions +** Citations with captions :caption:figure:plantuml: :PROPERTIES: :EXPORT_HUGO_BUNDLE: citations-with-captions :EXPORT_FILE_NAME: index @@ -4871,16 +4871,9 @@ This test tests the following: shortcodes" get unwrapped. #+end_description {{{oxhugoissue(191)}}} -*** Why an electronic lab notebook? -At an age where data is moving from paper to electronic form, the -amount and *shape* of data is not very paper-compatible, and the -analysis of that same data becomes more complex, it is just obvious -that the move to an electronic notebook has to happen. -*** Why use Org mode? -Check out the code block in [[code__plantuml_nested_boxes]]. -*** Using code blocks + #+name: code__plantuml_nested_boxes -#+caption: Nested Boxes +#+caption: Nested Boxes using PlantUML #+begin_src plantuml :file images/citations-with-captions/nested-boxes.svg :eval yes :exports both rectangle ", , etc." as a { rectangle "
..." as b #antiquewhite { @@ -4890,12 +4883,9 @@ rectangle ", , etc." as a { #+end_src # The order of #+caption and #+RESULTS is important here. # Ref: https://emacs.stackexchange.com/a/12155/115 -#+caption: Figure caption +#+caption: PlantUML generated figure showing nested boxes #+RESULTS: code__plantuml_nested_boxes [[file:images/citations-with-captions/nested-boxes.svg]] -*** Figure with caption -#+caption: A unicorn! -[[/images/org-mode-unicorn-logo.png]] * Export Options :export_option: ** Table of Contents (TOC) :toc: =ox-hugo= has the =with-toc= option disabled by default as Hugo has an diff --git a/test/site/content/posts/citations-with-captions/index.md b/test/site/content/posts/citations-with-captions/index.md index bce5748..8cbc21f 100644 --- a/test/site/content/posts/citations-with-captions/index.md +++ b/test/site/content/posts/citations-with-captions/index.md @@ -12,27 +12,14 @@ description = """ shortcodes" get unwrapped. """ date = 2018-08-19 -tags = ["pandoc", "citations"] +tags = ["pandoc", "citations", "caption", "figure", "plantuml"] draft = false +++ `ox-hugo` Issue \#[191](https://github.com/kaushalmodi/ox-hugo/issues/191) -## Why an electronic lab notebook? - -At an age where data is moving from paper to electronic form, the amount -and **shape** of data is not very paper-compatible, and the analysis of -that same data becomes more complex, it is just obvious that the move to -an electronic notebook has to happen. - -## Why use Org mode? - -Check out the code block in [1](#orge2c7b6d). - -## Using code blocks - - + ``` plantuml rectangle ", , etc." as a { @@ -44,15 +31,12 @@ rectangle ", , etc." as a {
-Code Snippet 1: Nested Boxes +Code Snippet 1: Nested Boxes using +PlantUML
-{{< figure src="nested-boxes.svg" caption="Figure 1: Figure caption" >}} - -## Figure with caption - -{{< figure src="/images/org-mode-unicorn-logo.png" caption="Figure 2: A unicorn!" >}} +{{< figure src="nested-boxes.svg" caption="Figure 1: PlantUML generated figure showing nested boxes" >}} ## References {#references}