diff options
author | Norbert Preining <norbert@preining.info> | 2022-10-14 03:01:58 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-10-14 03:01:58 +0000 |
commit | 1c0d5e0721918b8ee790c9f1c11f1543e0403322 (patch) | |
tree | 945544ad8dae56580c1578e1d2c96c7fe0fc29eb /graphics/circuit_macros/svg.m4 | |
parent | ba720f8eaac74c537fb16f8556e4cf0ab4cd8235 (diff) |
CTAN sync 202210140301
Diffstat (limited to 'graphics/circuit_macros/svg.m4')
-rw-r--r-- | graphics/circuit_macros/svg.m4 | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/circuit_macros/svg.m4 b/graphics/circuit_macros/svg.m4 index 73f144594f..5eb5bebfc6 100644 --- a/graphics/circuit_macros/svg.m4 +++ b/graphics/circuit_macros/svg.m4 @@ -1,7 +1,7 @@ divert(-1) svg.m4 Initialization for SVG output. -* Circuit_macros Version 9.9, copyright (c) 2022 J. D. Aplevich under * +* Circuit_macros Version 10.0, copyright (c) 2022 J. D. Aplevich under * * the LaTeX Project Public Licence in file Licence.txt. The files of * * this distribution may be redistributed or modified provided that this * * copyright notice is included and provided that modifications are clearly * @@ -48,13 +48,15 @@ divert(-1) text) Note: nominal ht = text height in drawing units, e.g. 12bp__ for 12pt text - actual height = nominal ht * dptextratio ' -define(`svg_font',`ifinstr(`$2',:, + actual height = nominal ht * dptextratio ' +define(`svg_font',`m4thtmp=textht; ifinstr(`$2',:, `stacksplit_(`m4svgf',`$2',:) - ifelse(m4svgf,,,dptextratio = m4svgf; )popdef(`m4svgf')dnl - ifelse(m4svgf,,,`textht=(m4svgf)*dptextratio; ')undefine(`m4svgf')', - `dptextratio=svgfontratio(`$1'); dnl - ifelse(`$2',,,textht=(`$2')*dptextratio; )')dnl + ifelse(m4svgf,,,`ifelse(`$4',,,`m4trtmp=dptextratio;') dnl + dptextratio = m4svgf;')popdef(`m4svgf')dnl + ifelse(m4svgf,,,`ifelse(`$4',,,`m4thtmp=textht;') dnl + textht=(m4svgf)*dptextratio; ')undefine(`m4svgf')', + `ifelse(`$4',,,`m4trtmp=dptextratio;') dptextratio=svgfontratio(`$1'); dnl + ifelse(`$2',,,m4thtmp=textht; textht=(`$2')*dptextratio; )')dnl ifelse(`$3',,,`textoffset=`$3'; ') command "<g patsubst(ifelse(`$1',,, index(`$1',font),0,`$1', @@ -62,7 +64,7 @@ index(`$1',style),0,`$1', style="font-family:`$1'") ,",\\")>" `$4' - ifelse(`$4',,,`command "</g>"')') + ifelse(`$4',,,`command "</g>"; textht=m4thtmp; dptextratio=m4trtmp;')') `e.g. svg_font(Times) svg_font(Times,12bp__:0.66) |