简体   繁体   English

Matplotlib/v-3.4.2 问题与 matplotlibrc 中的乳胶序言

[英]Matplotlib/v-3.4.2 problem with latex preamble in matplotlibrc

I have matplotlibrc file which contains following for latex preamble我有 matplotlibrc 文件,其中包含以下乳胶序言

text.latex.preamble : \usepackage{siunitx}, \usepackage{amsmath}, \boldmath

This definition used to work with matplotlib/v-3.03, but when I updated to version-3.4.2, it stopped working.这个定义曾经适用于 matplotlib/v-3.03,但是当我更新到 version-3.4.2 时,它停止工作。 I checked the cached tex file that matplotlib created, I found that in version-3.4.2 it can not split preamble properly.我检查了 matplotlib 创建的缓存 tex 文件,我发现在 3.4.2 版本中它无法正确拆分前导码。 I am showing respectively lines from tex file bellow我分别显示来自 tex 文件的行波纹管

Version-3.0.3版本 3.0.3

\usepackage{siunitx}
\usepackage{amsmath}
\boldmath

Version-3.4.2版本 3.4.2

\usepackage{siunitx}, \usepackage{amsmath}, \boldmath

Can someone help me, the right way to define the preamble in matplotlibrc file for new version?有人可以帮助我,在 matplotlibrc 文件中为新版本定义序言的正确方法吗? I know they have changed how to handle preamble but could not figure it out.我知道他们已经改变了处理序言的方式,但无法弄清楚。

Thanks谢谢

正如@samcarter_is_at_topanswers.xyz 所建议的,如果我从序言中删除逗号,则它适用于旧版本和新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM