abenori / TeX2img

Converte TeX source to images.
Other
59 stars 5 forks source link

Vectorized output has tiny text #12

Open DSfrmBkln opened 5 years ago

DSfrmBkln commented 5 years ago

Hi,

When I choose the output to be vector (not bitmap), I get an output where the containing box is properly sized, but the text is tiny and resizing in Powerpoint it does not work. It doesn't matter what engine I use, etc. It looks like this (I converted the vectorized image to png to post here):

Picture1

abenori commented 5 years ago

I'm assuming that you want to get .emf file. For helping to understand the issue, could you give me an example of the source file?

pevoz23 commented 4 years ago

Same problem here using Version 2.1.0.0 with MikTex 2.9 and ghostscript 9.27 (64bit... is that a problem?).

I get the same type of output as @DSfrmBkln and the source file can look as simple as that

\documentclass{article}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}

\[ f(x) = \exp(-x) \]

\end{document}

These are examples of output files in different formats: equation equation.pdf

the EMF (which is actually the format I need) looks like this (converted to PNG) Picture1

I got the same both by using pdflatex.exe and latex.exe.

I kept default options for all but the Basic options, where I unchecked all 4 checkboxes and I changed character code to "no (input: UTF-8)"

aminophen commented 4 years ago

ghostscript-9.27 has a bug that the crop area becomes incorrect: https://bugs.debian.org/927429 that can be a reason for incorrect cropping.

The bug is said to have been fixed in

commit 06c920713e11bce9bd541bbf9bf294b2ba16aee8 Author: Chris Liddell Date: Wed Apr 10 14:23:39 2019 +0100

for base/fapi_ft.c, but a new version is not released yet.

abenori commented 4 years ago

Thank you @aminophen . Please wait the new version of GhostScript and if there is still a problem, please let me know again.