tabularray 和 babel 法语

tabularray 和 babel 法语

我需要使用\usetikzlibrary{babel}但它会在以下示例中导致错误。

\documentclass[french]{article}
\usepackage{babel}
\usepackage{tabularray}
\usepackage{pgfplots}
\usepackage{circuitikz} %to draw an electrical circuit
%\usetikzlibrary{babel} %I need this library because I use french babel and circuitikz
\begin{document}
\begin{center}
    \begin{tblr}{colspec={Q[c,m]Q[c,m]},vlines,hlines}
        $y=2x$
        &
        \begin{tikzpicture}[baseline=(current bounding box.center)]
            \begin{axis}[
                xlabel = {$x$},
                ylabel = {$y$},
                ]
                \addplot[domain=0:10]{2*x};
            \end{axis}
        \end{tikzpicture}
    \end{tblr}
\end{center}
\end{document}

相关内容