¿Cómo puedo hacer matemáticas directamente en LaTeX?

¿Cómo puedo hacer matemáticas directamente en LaTeX?

¿Cómo puedo hacer matemáticas directamente en LaTeX? No quiero calcularlo primero e ingresarle el valor.

font=\fontsize{10/0.88348}{12}\selectfont

Respuesta1

Puedes usar\fpeval

\RequirePackage{fix-cm} % or define a scalable font in the preamble
\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\node (A) at (0,0) {};
\node (B) at (1,0) {};
\draw (A) node[above, font=\fontsize{\fpeval{10/0.88348}}{0}\selectfont] {$V_X$};
\draw (B) node[above, font=\fontsize{\fpeval{10*1.35}}{0}\selectfont] {$V_X$};
\end{tikzpicture}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada