.

## Problem to tex

A latex problem can be easily created with parameter inputs which are randomly chosen from a set of values. The solution is automatically generated for the new parameters and SI-prefixes are done automatically.

An example basic02.prb file is the following:

\runParam{V_1 = [2, 3, 4, 5]# \paramUnits{V}}
\runParam{R_1 = [6, 7, 8, 9]# \paramUnits{k \Omega}}
\question Given \val={V_1} and \val={R_1}, find the current \$I_R = V_1/R_1\$\\
\textbf{Solution}\\
\run(){I_R=V_1/R_1}\\
\hlite{\val={I_R}}

Running this .prb file through latex, the following pdf is generated:

LTSpice figures can be included in the problems with varying parameters in LTSpice figures