I'm a complete newbie to Latex, and I am trying to use it for creating small pdf images with equations. My requirements are:
- Aligned equations
- Clear font (bold and italic)
- Minimal sized image in PDF format
- Searchable in PDF format
This version finally creates a small PDF without margins, but the problem I run into is with searching. For some fonts, I can't search for comma (in case I want to find "x,y". In some versions, the first letter of a word isn't searchable with the rest of the word, so "Sample" is not searchable. In some fonts, I can't search for a word ending in ff, the second f is not searchable. Is there an easy solution to this?
To create the file:
pdflatex --file-line-error --interaction=nonstopmode testcode.tex
Thank you so much!
\documentclass{amsart}
\usepackage{txfonts}
\usepackage[T1]{fontenc}
\usepackage[margin=0pt]{geometry}
\usepackage[active,tightpage]{preview}
\usepackage{varwidth}
\begin{document}
\begin{preview}
\begin{varwidth}{\linewidth}
\begin{equation}
\nonumber
\begin{aligned}
&Example\_VAL_{x,y} &&= \sum\nolimits_{i=0}^{MARK\_n}VAL_{x,y,i} * VAL_i
\\
&Example\_VAL2_{x,y} &&= \sum\nolimits_{i=0}^{MARK\_n}VAL2_{x,y,i} * VAL_i
\end{aligned}
\end{equation}
\end{varwidth}
\end{preview}
\end{document}
Latest version after help from Ulrike, and trying to simplify code writing for myself:
\documentclass[varwidth=\maxdimen,border=2pt]{standalone}
\usepackage{luatex85}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage[italic]{mathastext}
\setmainfont{TeX Gyre Termes} %Times clone
\setmathfont{TeX Gyre Termes Math} %accompagning math.
\begin{document}
\[
\nonumber\begin{aligned}
&Example\_VAL_{x,y} &&= \sum\nolimits_{i=0}^{MARK\_n}VAL_{x,y,i} * VAL_{i}
\\
&Example\_VAL2_{x,y} &&= \sum\nolimits_{i=0}^{MARK\_n}VAL2_{x,y,i} * VAL_{i}
\end{aligned}
\]
\end{document}
Curious how to get a slanted more normal font in the equation - without embedding myvar throughout.
