From 1c0d5e0721918b8ee790c9f1c11f1543e0403322 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 14 Oct 2022 03:01:58 +0000 Subject: CTAN sync 202210140301 --- graphics/circuit_macros/svg.m4 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'graphics/circuit_macros/svg.m4') 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 "" `$4' - ifelse(`$4',,,`command ""')') + ifelse(`$4',,,`command ""; textht=m4thtmp; dptextratio=m4trtmp;')') `e.g. svg_font(Times) svg_font(Times,12bp__:0.66) -- cgit v1.2.3