diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-15 21:02:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-15 21:02:34 +0000 |
commit | 9e91c5e69a0403bbc67adddaa3fb8c0e35eb09bb (patch) | |
tree | d50762ebcb0d50acc177dd24fe776ce5bc44a541 /Master/texmf-dist/tex/latex | |
parent | bbb86e881680e86ab25eeab80da214e8e7b837cc (diff) |
bodeplot (15jan24)
git-svn-id: svn://tug.org/texlive/trunk@69442 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty | 185 |
1 files changed, 104 insertions, 81 deletions
diff --git a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty index 1e3b9ff6aa6..114fc469a50 100644 --- a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty +++ b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty @@ -70,8 +70,11 @@ \fi \fi \newif\if@babel@french\@babel@frenchfalse -\@ifpackagewith{babel}{french}{\@babel@frenchtrue}{} -\@ifpackagewith{babel}{main=french}{\@babel@frenchtrue}{} +\AtBeginDocument{ + \ifdefined\frenchbsetup + \@babel@frenchtrue + \fi +} \pgfplotsset{ bode@style/.style = { label style={font=\footnotesize}, @@ -288,17 +291,19 @@ \end{groupplot} \end{tikzpicture} } -\if@babel@french - \let\Orig@BodeZPK\BodeZPK - \renewcommand{\BodeZPK}{% - \shorthandoff{;:!?}% - \BodeZPK@Shorthandoff - } - \newcommand{\BodeZPK@Shorthandoff}[4][]{% - \Orig@BodeZPK[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@BodeZPK\BodeZPK + \renewcommand{\BodeZPK}{% + \shorthandoff{;:!?}% + \BodeZPK@Shorthandoff + } + \newcommand{\BodeZPK@Shorthandoff}[4][]{% + \Orig@BodeZPK[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \fi +} \newcommand{\BodeTF}[4][]{ \parse@opt{#1} \gdef\func@mag{} @@ -355,17 +360,19 @@ \end{groupplot} \end{tikzpicture} } -\if@babel@french - \let\Orig@BodeTF\BodeTF - \renewcommand{\BodeTF}{% - \shorthandoff{;:!?}% - \BodeTF@Shorthandoff - } - \newcommand{\BodeTF@Shorthandoff}[4][]{% - \Orig@BodeTF[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@BodeTF\BodeTF + \renewcommand{\BodeTF}{% + \shorthandoff{;:!?}% + \BodeTF@Shorthandoff + } + \newcommand{\BodeTF@Shorthandoff}[4][]{% + \Orig@BodeTF[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \fi +} \newcommand{\addBodeZPKPlots}[3][true/{}]{ \foreach \approx/\opt in {#1} { \gdef\plot@macro{} @@ -455,9 +462,11 @@ }; \fi } -\if@babel@french - \AddToHook{env/BodePhPlot/begin}{\shorthandoff{;:!?}} -\fi +\AtBeginDocument{ + \if@babel@french + \AddToHook{env/BodePhPlot/begin}{\shorthandoff{;:!?}} + \fi +} \NewDocumentEnvironment{BodePhPlot}{O{}mm+b}{ \parse@env@opt{#1} \edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]} @@ -477,9 +486,11 @@ \end{semilogxaxis} \end{tikzpicture} }{} -\if@babel@french - \AddToHook{env/BodeMagPlot/begin}{\shorthandoff{;:!?}} -\fi +\AtBeginDocument{ + \if@babel@french + \AddToHook{env/BodeMagPlot/begin}{\shorthandoff{;:!?}} + \fi +} \NewDocumentEnvironment{BodeMagPlot}{O{}mm+b}{ \parse@env@opt{#1} \edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]} @@ -499,9 +510,11 @@ \end{semilogxaxis} \end{tikzpicture} }{} -\if@babel@french - \AddToHook{env/BodePlot/begin}{\shorthandoff{;:!?}} -\fi +\AtBeginDocument{ + \if@babel@french + \AddToHook{env/BodePlot/begin}{\shorthandoff{;:!?}} + \fi +} \NewDocumentEnvironment{BodePlot}{O{}mm+b}{ \parse@env@opt{#1} \edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]} @@ -768,17 +781,19 @@ \end{axis} \end{tikzpicture} } -\if@babel@french - \let\Orig@NyquistZPK\NyquistZPK - \renewcommand{\NyquistZPK}{% - \shorthandoff{;:!?}% - \NyquistZPK@Shorthandoff - } - \newcommand{\NyquistZPK@Shorthandoff}[4][]{% - \Orig@NyquistZPK[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@NyquistZPK\NyquistZPK + \renewcommand{\NyquistZPK}{% + \shorthandoff{;:!?}% + \NyquistZPK@Shorthandoff + } + \newcommand{\NyquistZPK@Shorthandoff}[4][]{% + \Orig@NyquistZPK[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \fi +} \newcommand{\NyquistTF}[4][]{ \parse@N@opt{#1} \gdef\func@mag{} @@ -813,17 +828,19 @@ \end{axis} \end{tikzpicture} } -\if@babel@french - \let\Orig@NyquistTF\NyquistTF - \renewcommand{\NyquistTF}{% - \shorthandoff{;:!?}% - \NyquistTF@Shorthandoff - } - \newcommand{\NyquistTF@Shorthandoff}[4][]{% - \Orig@NyquistTF[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@NyquistTF\NyquistTF + \renewcommand{\NyquistTF}{% + \shorthandoff{;:!?}% + \NyquistTF@Shorthandoff + } + \newcommand{\NyquistTF@Shorthandoff}[4][]{% + \Orig@NyquistTF[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \fi +} \newcommand{\addNyquistZPKPlot}[2][]{ \gdef\func@mag{} \gdef\func@ph{} @@ -858,9 +875,11 @@ }; \fi } -\if@babel@french - \AddToHook{env/NyquistPlot/begin}{\shorthandoff{;:!?}} -\fi +\AtBeginDocument{ + \if@babel@french + \AddToHook{env/NyquistPlot/begin}{\shorthandoff{;:!?}} + \fi +} \NewDocumentEnvironment{NyquistPlot}{O{}mm+b}{ \parse@env@opt{#1} \edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]} @@ -944,17 +963,19 @@ \end{axis} \end{tikzpicture} } -\if@babel@french - \let\Orig@NicholsZPK\NicholsZPK - \renewcommand{\NicholsZPK}{% - \shorthandoff{;:!?}% - \NicholsZPK@Shorthandoff - } - \newcommand{\NicholsZPK@Shorthandoff}[4][]{% - \Orig@NicholsZPK[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@NicholsZPK\NicholsZPK + \renewcommand{\NicholsZPK}{% + \shorthandoff{;:!?}% + \NicholsZPK@Shorthandoff + } + \newcommand{\NicholsZPK@Shorthandoff}[4][]{% + \Orig@NicholsZPK[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \fi +} \newcommand{\NicholsTF}[4][]{ \parse@N@opt{#1} \gdef\func@mag{} @@ -996,18 +1017,20 @@ \end{axis} \end{tikzpicture} } -\if@babel@french - \let\Orig@NicholsTF\NicholsTF - \renewcommand{\NicholsTF}{% - \shorthandoff{;:!?}% - \NicholsTF@Shorthandoff - } - \newcommand{\NicholsTF@Shorthandoff}[4][]{% - \Orig@NicholsTF[#1]{#2}{#3}{#4}% - \shorthandon{;:!?}% - } - \AddToHook{env/NicholsChart/begin}{\shorthandoff{;:!?}} -\fi +\AtBeginDocument{ + \if@babel@french + \let\Orig@NicholsTF\NicholsTF + \renewcommand{\NicholsTF}{% + \shorthandoff{;:!?}% + \NicholsTF@Shorthandoff + } + \newcommand{\NicholsTF@Shorthandoff}[4][]{% + \Orig@NicholsTF[#1]{#2}{#3}{#4}% + \shorthandon{;:!?}% + } + \AddToHook{env/NicholsChart/begin}{\shorthandoff{;:!?}} + \fi +} \NewDocumentEnvironment{NicholsChart}{O{}mm+b}{ \parse@env@opt{#1} \edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]} |