將 \usetikzlibrary{quotes} 與 csquots 中的 \MakeOuterQuote{"} 一起使用

將 \usetikzlibrary{quotes} 與 csquots 中的 \MakeOuterQuote{"} 一起使用

有沒有辦法\MakeOuterQuote{"}在使用時在 tikz 中使用(禁用) \usetikzlibrary{quotes}

微量元素:

\documentclass{article}

\usepackage{csquotes}
%\MakeOuterQuote{"} %breaks tikz library

\usepackage{tikz}
\usetikzlibrary{quotes}

\begin{document}
\tikz \node ["abc" draw] {node};
\end{document}

答案1

添加

\tikzset{every picture/.prefix code=\DisableQuotes}

或者

\tikzset{every picture/.prefix style={execute at begin picture=\DisableQuotes}}

加載 TikZ 後。
當 TikZ 圖片啟動時,第一個比第二個早一點執行。

\DeleteQuotes也可以使用巨集。

相關內容