• Resolved sekisushai

    (@sekisushai)


    Hello,
    First of all, thank you for your plug-ins which is great!

    I’m wondering if it is possible to manage figure environment witch captions:

    \begin{figure}[!t]
    \centering
    \includegraphics{mygig.jpg}
    \caption{mycaption}
    \label{mylabel}
    \end{figure}

    Thank you

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

    (@van-abel)

    Yes, it theoretically possible. But the problem is that the correct link to the picture (mygig.jpg) is not easy to get. What’s more, since we need to upload the picture to wp server, and I leave it to the user to modify the figure environment manually.

    • This reply was modified 8 years ago by Van Abel.
    • This reply was modified 8 years ago by Van Abel.
    Thread Starter sekisushai

    (@sekisushai)

    Let’s say the picture ‘mygig.jpg’ is already uploaded on wp server and I’ve got the absolute path to it (i.e. the full URL) ?

    • This reply was modified 8 years ago by sekisushai.
    Plugin Author Van Abel

    (@van-abel)

    I mean it is hard to tell latex2html the URL of the uploaded file. But after a investigation, this is possible. So maybe in the next version (in the next few weeks), we can expect it can process the figure environment.

    Thread Starter sekisushai

    (@sekisushai)

    wonderful ??

    Plugin Author Van Abel

    (@van-abel)

    I have added the new feature of supporting figure environments, you can have a test as:
    \begin{figure}[!htbp]
    \centering
    \includegraphics{myfig.png}
    \caption{Just a test}
    \label{myfig}
    \end{figure}
    From the \autoref{myfig} we can see…

    Welcome to feedback!

    Thread Starter sekisushai

    (@sekisushai)

    It’s working great !
    However the path to myfig.png, should be relative to the current page address. Is it possible to tweak this for an absolute url address ?

    Anyway, this is great, thank you so much !

    Plugin Author Van Abel

    (@van-abel)

    Yes, the current path for figures are the relative path, which is more reasonable. Since the users hardly need to change the code of LaTeX to make this work, they only need to upload the figures file when the post are created.

    I can’t imagine any situation to change it to absolute url, but if there is, then I can set it as a new option.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Figures environment’ is closed to new replies.