public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Markdown -> LaTeX image formating
@ 2019-04-26 16:01 Tyler Makaro
       [not found] ` <78284a32-0837-4ea2-afef-b629423c4132-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler Makaro @ 2019-04-26 16:01 UTC (permalink / raw)
  To: pandoc-discuss


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

AFAIK, I can either disable or enable the implicit-figures extension, but 
neither of these fully get the style that I need when converting to latex 
from markdown. With the implicit-figures extension enabled, alt-text is 
used as a caption, which I don't want (and not all images are considered 
implicit-images). Without the extension, the images are not centered, but I 
want them centered. I want all markdown images to be converted to latex 
like:
\begin{center}
\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))}
\end{center}
{ \hspace*{\fill} \\}
I am currently working on a fix in nbconvert 
<https://github.com/jupyter/nbconvert/pull/990>. The above code is part of 
a jinja2 macro that nbconvert uses to format image outputs. I'd like 
markdown images to behave the same way. Is there any way to do this?








-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/78284a32-0837-4ea2-afef-b629423c4132%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Markdown -> LaTeX image formating
       [not found] ` <78284a32-0837-4ea2-afef-b629423c4132-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-05-03 19:13   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2019-05-03 19:13 UTC (permalink / raw)
  To: Tyler Makaro, pandoc-discuss


You could always use a filter or lua filter to render
a Para containing just an Image in whatever way you
like.

Another option is to add something to your preamble
redefining `\includegraphics` so that the centering
commands are added.


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

end of thread, other threads:[~2019-05-03 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26 16:01 Markdown -> LaTeX image formating Tyler Makaro
     [not found] ` <78284a32-0837-4ea2-afef-b629423c4132-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-03 19:13   ` John MacFarlane

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).