Skip to content

Commit fcc3258

Browse files
committed
Improve build scripts and arXiv compatibility
1 parent 041b025 commit fcc3258

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if-no-files-found: error
2323
gen_figures:
2424
runs-on: ubuntu-latest
25-
timeout-minutes: 15
25+
timeout-minutes: 20
2626
steps:
2727
- name: Setup Python
2828
uses: actions/setup-python@v5

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
all: clean pdf
22
clean:
33
rm -f ./*.aux ./*.bbl ./*.bcf ./*.blg ./*.fdb_latexmk ./*.fls ./*.gz ./*.ilg ./*.ind ./*.lof ./*.log ./*.lot ./*.nlo ./*.nls ./*.out ./*.tdo ./*.toc ./*.xml \
4-
./tex/*.dvi ./tex/*.log
4+
./tex/*.dvi ./tex/*.log ./main.pdf
55
pdf:
66
# Allow exit code 12. The double $$ is needed in a Makefile to refer to a shell variable instead of a make variable.
77
# https://stackoverflow.com/a/16315249

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
My second master's thesis.
44

5-
Mika Mäki, 2021-2024
5+
Mika Mäki, 2021-2024, updated in 2025
66

77
This thesis is a part of PTtools documentation, and will therefore be updated after its initial submission.
88
You can find the latest version of the pdf in
@@ -19,7 +19,7 @@ The CC BY 4.0 license applies to this repository and the generated pdf files wit
1919
- Third-party figures in the odp and pdf slides and in the slide folders
2020
- The photo of my face in the odp and pdf slides
2121
- cft_meetup_presentation_2024/vlcsnap*.png figures
22-
- The figures in fig/lecture notes are CC-BY-4.0, but by [Hindmarsh et al., DOI: 10.21468/SciPostPhysLectNotes.24](https://scipost.org/10.21468/SciPostPhysLectNotes.24)
22+
- The figures in fig/lecture_notes are CC-BY-4.0, but by [Hindmarsh et al., DOI: 10.21468/SciPostPhysLectNotes.24](https://scipost.org/10.21468/SciPostPhysLectNotes.24)
2323
- The Python code in msc2_python/giese. This is originally developed by [Giese et al., DOI: 10.1088/1475-7516/2021/01/072](https://iopscience.iop.org/article/10.1088/1475-7516/2021/01/072)
2424
- The University of Helsinki LaTeX template files
2525
babelbst.tex, englbst.tex, finnbst.tex, swedbst.tex, tktl.bst, UH_TCM_MSc.cls, UH-logo.png

create_arxiv.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,25 @@ if command -v rsync &> /dev/null; then :; else
1111
sudo apt-get install rsync
1212
fi
1313

14+
if [ ! -f main.bbl ]; then
15+
echo "main.bbl was not found. Compiling the LaTeX files to create it."
16+
make all
17+
fi
18+
1419
echo "Removing existing arxiv folder and zip file."
1520
rm -rf arxiv arxiv.zip
1621

1722
echo "Creating the arxiv folder and adding files."
1823
mkdir arxiv
1924
mkdir arxiv/anc
20-
# Rsync is used to enable excluding
21-
rsync -av --exclude=fig/*-converted-to.pdf --exclude=fig/lecture_notes --exclude=fig/tampere \
25+
# Rsync is used to enable excluding.
26+
rsync -av --exclude=fig/*-converted-to.pdf --exclude=fig/lecture_notes --exclude=fig/tampere --exclude=tex/other_models.tex \
2227
fig tex \
2328
.latexmkrc babelbst.tex englbst.tex finnbst.tex LICENSE main.bbl main.tex Makefile swedbst.tex tktl.bst UH-logo.png UH_TCM_MSc.cls \
2429
arxiv
25-
rsync -av --exclude msc2_python/logs --exclude msc2_python/tampere \
30+
# Ancillary files are placed in the anc directory.
31+
# https://info.arxiv.org/help/ancillary_files.html
32+
rsync -av --exclude='**/__pycache__' --exclude='*.pyc' --exclude=msc2_python/logs --exclude=msc2_python/tampere \
2633
msc2_python create_arxiv.sh arxiv/anc
2734
cp -r .github arxiv/anc/github
2835

tex/phase_transitions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ \section{Field-fluid system}
307307

308308
\begin{figure}[ht!]
309309
\centering
310-
\includegraphics[width=0.6\textwidth]{fig/potential.eps}
310+
\includegraphics[width=0.6\textwidth]{fig/potential.pdf}
311311
\caption{The thermal effective potential at different temperatures. Generated with PTtools utilities. See also \cite[fig. 4]{lecture_notes}.}
312312
\label{fig:potential}
313313
\end{figure}

tex/relativistic_combustion.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ \section{Relativistic combustion}
202202

203203
\begin{figure}[ht!]
204204
\centering
205-
\includegraphics[width=0.7\textwidth]{fig/vm_vp_plane.eps}
205+
\includegraphics[width=0.7\textwidth]{fig/vm_vp_plane.pdf}
206206
\caption{Relation between the fluid velocity just ahead of the wall $\tilde{v}_+$ and just behind the wall $\tilde{v}_-$. Generated with PTtools. See also \cite[fig. 13]{lecture_notes}.}
207207
\label{fig:vplus_vminus}
208208
\end{figure}

tex/results.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212

1313
\begin{figure}[ht!]
1414
\centering
15-
\includegraphics[width=\textwidth]{fig/const_cs_gw_v.eps}
15+
\includegraphics[width=\textwidth]{fig/const_cs_gw_v.pdf}
1616
\caption{Self-similar fluid profiles with four sound speed combinations, three different wall speeds $v_\text{wall}$ and two transition strengths $\alpha_n$}
1717
\label{fig:fluid_profiles}
1818
\end{figure}
1919

2020
\begin{figure}[ht!]
2121
\centering
22-
\includegraphics[width=\textwidth]{fig/const_cs_gw.eps}
22+
\includegraphics[width=\textwidth]{fig/const_cs_gw.pdf}
2323
\caption{Gravitational wave power spectra computed with the sound shell model from the fluid profiles of fig. \ref{fig:fluid_profiles}}
2424
\label{fig:gw_spectra}
2525
\end{figure}
2626

2727
\begin{figure}[ht!]
2828
\centering
29-
\includegraphics[width=\textwidth]{fig/const_cs_gw_omgw0.eps}
29+
\includegraphics[width=\textwidth]{fig/const_cs_gw_omgw0.pdf}
3030
\caption{Scaled gravitational wave power spectra today, $\Omega_{gw,0}$, of the gravitational wave power spectra of fig. \ref{fig:gw_spectra}}
3131
\label{fig:omgw0}
3232
\end{figure}
@@ -106,14 +106,14 @@
106106

107107
\begin{figure}[ht!]
108108
\centering
109-
\includegraphics[width=\textwidth]{fig/giese_lisa_fig2_alpha_n.eps}
109+
\includegraphics[width=\textwidth]{fig/giese_lisa_fig2_alpha_n.pdf}
110110
\caption{Comparison of $\kappa$ values by \cite[fig. 2]{giese_2021} and PTtools}
111111
\label{fig:kappa_giese}
112112
\end{figure}
113113

114114
\begin{figure}[ht!]
115115
\centering
116-
\includegraphics[width=\textwidth]{fig/giese_lisa_fig2_alpha_n_diff.eps}
116+
\includegraphics[width=\textwidth]{fig/giese_lisa_fig2_alpha_n_diff.pdf}
117117
\caption{Relative difference of the $\kappa$ values by \cite[fig. 2]{giese_2021} and PTtools}
118118
\label{fig:kappa_giese_diff}
119119
\end{figure}

tex/types_of_solutions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ \section{Types of solutions}
7272

7373
\begin{figure}[ht!]
7474
\centering
75-
\includegraphics[width=\textwidth]{fig/relativistic_combustion.eps}
75+
\includegraphics[width=\textwidth]{fig/relativistic_combustion.pdf}
7676
\caption{Three different types of relativistic combustion. Generated with PTtools. See also \cites[fig. 14]{lecture_notes}[fig. 14]{mazumdar_review_2019}.}
7777
\label{fig:solution_types}
7878
\end{figure}

0 commit comments

Comments
 (0)