public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'Marek Stepanek' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: How to center oversized figures?
Date: Sun, 23 Oct 2022 10:25:30 +0200	[thread overview]
Message-ID: <FDD49F37-76AD-4427-AB55-54E62DBBE76B@googlemail.com> (raw)
In-Reply-To: <e470d516-fa86-4c53-8935-d19f5c0f9b04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Hi Niko,

I don't know whether there is a more elegant way to do it, but I insert a snippet of LaTeX into my markdown document to achieve this: 

```{=latex}

\begin{figure}[h!]
\centering
\includegraphics[width=\linewidth]{some-figure.png}
\label{fig:figlabel}
\end{figure}
```

To keep it more Markdown like:

```{=latex}
\begin{center}
```

![Your Caption](your_figure.png){ width=60% }

```{=latex}
\end{center}
```

Best greetings 

marek


> On 18. Oct 2022, at 14:49, Niko <niko-k13cyrtlpCBBDLzU/O5InQ@public.gmane.org> wrote:
> 
> Hi all, 
> 
> I am trying to center figures on pdf. The main.md has:
> 
> ![some text](some-figure.png){width=166%  #fig:figlabel}
> 
> ... continuing in comments as my messages are getting removed automatically. This is my fifth time trying to post 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e470d516-fa86-4c53-8935-d19f5c0f9b04n%40googlegroups.com.


  parent reply	other threads:[~2022-10-23  8:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 12:49 Niko
     [not found] ` <e470d516-fa86-4c53-8935-d19f5c0f9b04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-23  8:25   ` 'Marek Stepanek' via pandoc-discuss [this message]
     [not found]     ` <FDD49F37-76AD-4427-AB55-54E62DBBE76B-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2022-10-23  8:52       ` AW: " denis.maier-NSENcxR/0n0

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=FDD49F37-76AD-4427-AB55-54E62DBBE76B@googlemail.com \
    --to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
    /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.
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).