• Resolved sekisushai

    (@sekisushai)


    Hello,
    I’m using your LaTeX2HTML plugin and it is great! Thank you.
    I was wondering if it is possible to set the size of a figure in figure environment. It seems to always be the size of the column. That is to say, the following code:

    \begin{figure}[!htpb]
    \includegraphics[width=0.5\columnwidth]{myfig.jpg}
    \caption{Hello world}
    \end{figure}

    produces the same results as

    \begin{figure}[!htpb]
    \includegraphics{myfig.jpg}
    \caption{Hello world}
    \end{figure}

Viewing 1 replies (of 1 total)
  • Plugin Author Van Abel

    (@van-abel)

    Yes, currently, latex2html not support set size of figure, since in practical, I find the best way is set the width of figure to be the same as the content.

    But, if you want to set it manually, there is the code:

    <div style="width:50%; margin: auto;">
    \begin{figure}[!htpb]
    \label{fig:1}
    \includegraphics[width=0.5\columnwidth]{myfig.fig}
    \caption{Hello world}
    \end{figure}
    </div>

    Which I just add a div warp to the figure.

    Another way to modify all the figure width of you blog, is to append the following style in LaTeX styles setting:

    .latex_fig{
    width:75%;
    }

    Hope that solves your issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Figure size’ is closed to new replies.