public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org>,
	pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re:Converting to latex with a figure in a table
Date: Fri, 21 May 2021 10:07:43 -0700	[thread overview]
Message-ID: <m2k0nsdnhc.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <s8769u$k1f$1@ciao.gmane.io>


When you have a "simple" table with inline cell contents,
no widths are needed, but if you have a table with contents
that span multiple lines, then we need to explicitly
specify widths for the columns.  If you don't do this
yourself (see the manual), then pandoc will divide equally.


jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org> writes:

> I found that the first problem is caused by
> ```
> \begin{longtable}[]{@{}
>
>
>   >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.33}}
>
>
>   >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.33}}
>
>
>   >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.33}}@{}}
>
> ```
> the width setting in the resulting longtable.
>
> But I have no idea when pandoc will generate such settings for a table, since in most cases I saw
> ```
> \begin{longtable}[]{@{}ll@{}}
> ```
>
>
>
> -- 
>
>
> jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org> 写入消息新闻:
>> I got 2 problems.
>> 1. If the figure is converted as 
>> ```
>> \includegraphics{img/logo.png}
>> ```
>
> ----Android NewsGroup Reader----
> http://www.piaohong.tk/newsgroup
>
> -- 
> 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/s8769u%24k1f%241%40ciao.gmane.io.

-- 
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/m2k0nsdnhc.fsf%40MacBook-Pro.hsd1.ca.comcast.net.


  reply	other threads:[~2021-05-21 17:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  2:22 Converting " jiewuza
2021-05-21  2:35 ` jiewuza
2021-05-21 17:07   ` John MacFarlane [this message]
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=m2k0nsdnhc.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=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).