Billingegroup / bg-mpl-stylesheets

Matplotlib style sheets
Other
4 stars 27 forks source link

Fixed latex error #35

Closed mkwang2024 closed 2 years ago

mkwang2024 commented 2 years ago

Fixed latex error: "latex was not able to process the followings string: b'lp'".

Due to an API change in matplotlib 3.5.0, according to the official documentation (https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.5.0.html?highlight=text%20latex%20preamble),"rcParams["text.latex.preamble"] (default: '') and rcParams["pdf.preamble"] no longer accept non-string values".

sbillinge commented 2 years ago

LGTM. @mkwang2024 has it been tested successfully on at least one version of windows, mac and linux? You may be able to get help from other group members to try and test the different platforms. It is not a perfect test but better than nothing.

mkwang2024 commented 2 years ago

Yes, I tried this on my mac and a windows computer. This resolved the latex error on my mac and also works on the windows computer.

sbillinge commented 2 years ago

👍

On Fri, Jun 10, 2022 at 7:44 PM mkwang2024 @.***> wrote:

Yes, I tried this on my mac and a windows computer. This resolved the latex error on my mac and also works on the windows computer.

— Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Billingegroup_bg-2Dmpl-2Dstylesheets_pull_35-23issuecomment-2D1152595231&d=DwMCaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=6Pin9WIW2wJZzVMqXib07fokbkHzCKPr15sA4fQTrA8&m=rMmCg0f_0rS-h3jh453EjHAHVSr1fce8wXTJ8BFfXwHjOHZgs4pCdU3sYgVrfFYQ&s=R87NpY75xZsXHrCjS93erYTrgwPGKKKlLcEnP_qqNP8&e=, or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ABAOWUL23NZMZSM25SJ3Y4DVON5I3ANCNFSM5YDJHCNQ&d=DwMCaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=6Pin9WIW2wJZzVMqXib07fokbkHzCKPr15sA4fQTrA8&m=rMmCg0f_0rS-h3jh453EjHAHVSr1fce8wXTJ8BFfXwHjOHZgs4pCdU3sYgVrfFYQ&s=5RUefcOADr-0tamIe2-BVjPET9Gr0bvqoFzuDtVTDVI&e= . You are receiving this because you commented.Message ID: @.***>

-- Simon Billinge Professor, Columbia University Physicist, Brookhaven National Laboratory