Skip to content

mathra 1.7.0

Choose a tag to compare

@matheusmota-dev-br matheusmota-dev-br released this 29 Oct 03:40
· 295 commits to main since this release
d7f712e

Labels as LaTeX sets them: subscripts, siunitx and graphicx boxes inside text, and \phi in italic.

  • \phi is in math italic, as TeX sets it, like \varphi and the other lowercase Greek letters; so are \epsilon, \vartheta, \varkappa, \varrho and \varpi, which were upright too (#66).
  • Inside \text{…}: \textsubscript{…} and \textsuperscript{…} (H\textsubscript{2}O), \ensuremath{…}, and \boldmath, which sets the math that follows in bold until the end of its group; \fontsize{…}{…}\selectfont is ignored like the other sizes. A math command written in text (\mathrm{V}, \frac{1}{2}) is read as math, with a warning (E-REC-1), instead of being written as is (#70).
  • siunitx ranges read as siunitx sets them: \qtyrange{1}{5}{\volt} is 1 V to 5 V, with the language's word (1 V a 5 V in pt-BR), and an en dash only where the font cannot write it. The siunitx commands (\SI, \qty, \si, \unit, \num, the ranges, lists and products) work inside \text{…} as in math, and \qty[options]{…}{…} is siunitx's, not physics's (#71).
  • graphicx's boxes, in math and inside \text{…}: \scalebox{h}[v] scales across and up apart, and a negative factor mirrors (\scalebox{-1}[1]) or turns upside down; \rotatebox[origin=…]{angle} turns the box; \resizebox{width}{height} (and *) scales it to a size, ! keeping the ratio; \raisebox{lift}[height][depth] sets the height and depth asked for, so \raisebox{0pt}[\height][0pt] removes the depth. Lengths take \width, \height, \depth and \totalheight (#69).

Equations: \phi \varphi \epsilon \vartheta \varrho \varpi \text{H\textsubscript{2}O and {\boldmath $x$} $x$} \text{from \qtyrange{1}{5}{\volt}} \rotatebox{90}{$I_0$} \scalebox{-1}[1]{Q1} \resizebox{1cm}{!}{abc}