LaTeX extension: Fontsize scaling with page size

Bug #1604183 reported by DarenK
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Hi,

I'm having a problem using the built in LaTeX plugin ( Extensions->Render->LaTeX...) as I experienced different font sizes on different documents of mine.

I managed to reproduce the issue and found out that somehow, the size of the resulting LaTeX string scales with the page size. The smaller the page, the smaller the resulting string.

I made a little recording showing the issue: https://www.youtube.com/watch?v=3hsR4p9dSKQ

I'm using version 0.91 with Linux Mint 18.
I also installed the texlive-full package, if that matters.

Workaround for now:
Make those LaTeX strings on a dedicated document in A4, scaling them down (as they are bigger than the font size says) and then copying them over to other documents.

jazzynico (jazzynico)
tags: added: extensions-plugins fonts latex
Revision history for this message
Mijail Febres Soria (mijaplex) wrote :

I reproduced this bug. The test I made is simple: I defined 3 documents inside Inkscape, the first in a A4 page, second and third having successively one half height and width as the previous. In each document I simply wrote $U$ in the render/latex extension and saved each document as *.pdf with default options. Then I created a Latex file in TexStudio:

\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\begin{document}
    \begin{equation}
    U
    \end{equation}
    \begin{figure}[h]
 \includegraphics[clip=true]{u1}
    \end{figure}
    \begin{figure}[h]
 \includegraphics[clip=true]{u2}
    \end{figure}
    \begin{figure}[h]
 \includegraphics[clip=true]{u3}
    \end{figure}
\end{document}

including the 3 previous documents. Since I didn't specify explicitly a fontsize while in Inkscape, I would expect to see "U" in the same size as "U" in equation 1 (as it happens for example when making a plots using MATLAB, or plots coming from asymptote and others...), However, "U" is scaled according to the size of the page defined in Inkscape.
This bug is specially annoying when writing scientific articles, there is no simple way around it.

Revision history for this message
Julien (jlab) wrote :

Hello,
Same problem with Inkscape 0.92.4 (5da689c313, 2019-01-14) on Ubuntu 19.10.
Regads,

Revision history for this message
Julien (jlab) wrote :

After a short investigation, it seems that the size of latex rendering depends only on document height (not width).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.