public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Q: How do I preserve image order
@ 2022-04-11 10:57 PowerUser
       [not found] ` <0a1b7f7f-6a14-43cd-8348-3dbe2202bd51n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: PowerUser @ 2022-04-11 10:57 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1645 bytes --]

Hello fellow pandoc users and developers!

I am using pandoc to compile markdown files to PDF files for an engineering 
class I'm taking. For all of our work, we have to adhere to certain 
standards. Two of the things we are required to do are:

a) Label and caption figures like this- "*Figure N: Description*"
b) Keep things in the correct sections of the document

The problem is, I can only figure out how to do one of these things at a 
time with pandoc, and I was wondering if I could get some help doing both 
of them at once.


Here's what I'm doing:

To get captions, I just embed the image like so:
![*Multi-meter wired in parallel for measuring volts*](./volts.svg)

However, if I do it like this, pandoc groups the images together and puts 
them on their own page at the end of the document, violating rule b.

If I want to not violate rule b, I have discovered (thanks to stackoverflow 
<https://stackoverflow.com/a/61486059>) I can compile the document with the -f 
markdown-implicit_figures option. The problem with this is it deletes the 
captions, so I violate rule a.


Is there a way I can embed images in my PDF while having them appear where 
I embed them in markdown file and keep their captions?

Thanks,
Blake

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0a1b7f7f-6a14-43cd-8348-3dbe2202bd51n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2862 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-13 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 10:57 Q: How do I preserve image order PowerUser
     [not found] ` <0a1b7f7f-6a14-43cd-8348-3dbe2202bd51n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-04-11 11:11   ` AW: " denis.maier-NSENcxR/0n0
2022-04-13 12:37   ` Q: " jeremy theler

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 NNTP newsgroup(s).