Closed
Description
Describe your proposed improvement and the problem it solves.
When converting img/table with percentage width (in html) to latex, pandoc uses \textwidth
or \columnwidth
now, like
\includegraphics[width=0.4908\textwidth]{test.png}
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}@{}}
...
It works perfect for most cases.
But when the img/table is in enumerate environment with items indented, it stretches out at the left side,
makes the text in the environment not so fluent and beautiful.
I googled and according to
- https://tex.stackexchange.com/questions/16942/difference-between-textwidth-linewidth-and-hsize
- https://tex.stackexchange.com/questions/124323/tabularx-within-the-enumerate-environment
- https://tex.stackexchange.com/questions/250662/width-of-minipages-inside-enumerate-environments
it seems a good idea to use \linewidth
instead.