Graphics, Figures & TablesChanging font in svg-drawing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dejhost
Posts: 5
Joined: Wed Jan 11, 2023 10:11 pm

Changing font in svg-drawing

Post by dejhost »

Hi there!

I am importing svg using the svg usepackage:

Code: Select all

Code, edit and compile here:
\documentclass[11pt, a4paper, titlepage]{book}
\usepackage{svg}
\begin{document}
\begin{figure}
\centering
\includesvg[width=0.7\textwidth]{CAD/temp01}
\caption{this is the temp drawing}\label{fig:temp}
\end{figure}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
With these settings, the fontsize within the drawing gets ignored. Instead the fontsize of the latex-document are applied (which is fine for most cases).
I'd like to learn how to change the fontsize of individual letters/words by editing the .pdf_tex-file. In this example, could you please help me to edit the word "hello"? Here are the relevant lines:

Code: Select all

Code, edit and compile here:
\begin{picture}(1,0.9296235)%
\lineheight{1}%
\setlength\tabcolsep{0pt}%
\put(0.1527998,0.0010434){\color[rgb]{1,0,0}\makebox(0,0)[lt]{\lineheight{1.25}\smash{\begin{tabular}[t]{l}hello\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=1]{temp01_svg-tex.pdf}}%
\end{picture}%
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I tried following this guideline: https://tex.stackexchange.com/a/322260
But I did not get it to work. Beside the fontsize, I also need to apply underscore (for example: Hell_{o}).

Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply