Skip to content

Commit 0d69883

Browse files
committed
use LaTeX on Linux only
1 parent eb08f33 commit 0d69883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get install -y python3-matplotlib; fi
3939
shell: bash
4040
- name: Install LaTeX
41-
run: if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get -qq install texlive-full texlive-fonts-extra cm-super texlive-latex-extra auctex; fi
41+
run: if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get -qq install texlive-full texlive-fonts-extra cm-super texlive-latex-extra; fi
4242
shell: bash
4343
- uses: actions/checkout@v4
4444
- uses: julia-actions/setup-julia@v2

src/color_palette.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function set_plot_style(titel_size=16)
7373
# plt.style.use('seaborn-whitegrid')
7474
# plt.style.use("seaborn-v0_8-whitegrid")
7575
rcParams = plt.PyDict(plt.matplotlib."rcParams")
76-
rcParams["text.usetex"] = true
76+
rcParams["text.usetex"] = Sys.islinux()
7777
rcParams["font.family"] = "serif"
7878
rcParams["font.serif"] = ["Computer Modern Roman"]
7979
rcParams["axes.titlesize"] = titel_size

0 commit comments

Comments
 (0)