public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Converting to latex with a figure in a table
Date: Thu, 20 May 2021 10:22:13 +0800 (GMT+08:00)	[thread overview]
Message-ID: <s84h4o$suu$1@ciao.gmane.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

I got 2 problems.
1. If the figure is converted as 
```
\includegraphics{img/logo.png}
```
in a table cell, the image is two big to fill in the cell in the resulting pdf. It seems the image is not constained by the width of the table cell.

2. Now if I want to add caption for the figure and manually modify it as
```
\begin{figure}
\centering
\includegraphics{img/logo.png}
\caption{blah blah}
\end{figure}
```

It results in error during pdf generation.

According to https://tex.stackexchange.com/questions/383254/placing-figures-inside-table-with-captions-for-each

I wonder if it is possible for a lua filter to use subfigure when a figure is found in a table.
-- 


             reply	other threads:[~2021-05-20  2:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  2:22 jiewuza [this message]
2021-05-21  2:35 ` jiewuza
2021-05-21 17:07   ` John MacFarlane
2021-05-24  1:42     ` jiewuza
2021-05-24 18:33       ` John MacFarlane

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='s84h4o$suu$1@ciao.gmane.io' \
    --to=jiewuza-9onoh4p/ygk@public.gmane.org \
    --cc=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).