Skip to content

Commit

Permalink
Added script to compile all memos
Browse files Browse the repository at this point in the history
  • Loading branch information
morteham committed Jan 3, 2025
1 parent 8364ff3 commit 82e7999
Show file tree
Hide file tree
Showing 31 changed files with 49 additions and 12 deletions.
Binary file modified docs/memo/CPA/cpa.pdf
Binary file not shown.
Binary file modified docs/memo/PC-SAFT/pc_saft.pdf
Binary file not shown.
Binary file modified docs/memo/SAFT-VR-Mie/SAFT-VR-Mie.pdf
Binary file not shown.
Binary file modified docs/memo/SPUNG/spungmemo.pdf
Binary file not shown.
Binary file modified docs/memo/UNIFAC/unifac.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file modified docs/memo/WongSandler/wongsandler.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/memo/WongSandler/wongsandler.tex
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ \section{Infinite pressure limit of the equations of state}
\begin{minipage}[l]{0.58\linewidth}
\caption{Different equations of state}
\vspace{-3mm}
\include{tab_eos}
\include{LaTeX-files/tab_eos}
\label{tab:eos}
\end{minipage}
\end{table}
Expand All @@ -180,7 +180,7 @@ \section{Infinite pressure limit of the equations of state}
\begin{minipage}[l]{0.58\linewidth}
\caption{Equation of state parameters}
\vspace{-3mm}
\include{tab_eos2}
\include{LaTeX-files/tab_eos2}
\label{tab:eos2}
\end{minipage}
\end{table}
Expand Down
Binary file modified docs/memo/apparent/apparent.pdf
Binary file not shown.
Binary file modified docs/memo/binaryXY/binaryXY.pdf
Binary file not shown.
35 changes: 35 additions & 0 deletions docs/memo/compile_all_memos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

# Loop through all subfolders
for dir in */ ; do
# Ignore "thermomemo"
if [ "$dir" == "thermomemo/" ]; then
continue
fi

# Enter the directory
cd "$dir" || continue

# Find all .tex files in the current directory
tex_files=$(find . -maxdepth 1 -type f -name "*.tex")

if [ -n "$tex_files" ]; then
for tex_file in $tex_files; do
# Remove the leading './' from the file name
tex_file=${tex_file#./}

echo "Processing $tex_file in $dir"

# Run the required commands
pdflatex "$tex_file"
bibtex "${tex_file%.tex}"
pdflatex "$tex_file"
pdflatex "$tex_file"
done
else
echo "No .tex files found in $dir"
fi

# Return to the parent directory
cd ..
done
Binary file modified docs/memo/critical/critical.pdf
Binary file not shown.
Binary file modified docs/memo/envelopes/envelopes.pdf
Binary file not shown.
Binary file modified docs/memo/flash/flash.pdf
Binary file not shown.
Binary file modified docs/memo/hydrate/hydrate.pdf
Binary file not shown.
Binary file modified docs/memo/hyperdual/hd.pdf
Binary file not shown.
Binary file modified docs/memo/intro/intro.pdf
Binary file not shown.
Binary file modified docs/memo/leekesler/leekesler.pdf
Binary file not shown.
Binary file modified docs/memo/leekesler/leekesler_mod.pdf
Binary file not shown.
Binary file modified docs/memo/peneloux/peneloux.pdf
Binary file not shown.
8 changes: 5 additions & 3 deletions docs/memo/thermomemo/thermomemo.cls
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@
\RequirePackage{nccfancyhdr,lastpage}
\pagestyle{fancy}
\newpagestyle{firstpage}[fancy]{%
\fancyhead[l]{\includegraphics[width=0.08\textwidth]{\MainLogo}}
\fancyhead[l]{\includegraphics[width=0.08\textwidth]{\MainLogo}\hspace{0.8em}%
\raisebox{0.5\height}{\textbf{\textsf{\Huge Thermotools memo}}}}%
}

% Header
\renewcommand{\headrulewidth}{0pt}
\fancyhead[l]{\includegraphics[width=0.08\textwidth]{\MainLogo}}
\fancyhead[c]{\includegraphics[width=0.04\textwidth]{\MainLogo}\hspace{0.5em}%
\raisebox{0.5\height}{\textbf{\textsf{\Large Thermotools memo}}}}%

% Footer
\renewcommand{\footrulewidth}{0pt}
Expand All @@ -79,7 +81,7 @@
\noindent%
\begin{minipage}[b]{0.7\textwidth}
\setlength{\parskip}{2ex}%
\Huge Memo
%\Huge Memo

\huge\textbf \@title
\end{minipage}
Expand Down
Binary file modified docs/memo/thermopack-GUI/Thermopack-GUI.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
\tableofcontents
\newpage

\input{introduction.tex}
\input{pyqt.tex}
\input{thermopackGUI.tex}
\input{conclusion.tex}
\input{LaTeX-files/introduction.tex}
\input{LaTeX-files/pyqt.tex}
\input{LaTeX-files/thermopackGUI.tex}
\input{LaTeX-files/conclusion.tex}

\end{document}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified docs/memo/thermopack/thermopack2013.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/memo/thermopack/thermopack2013.tex
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ \section{The general cubic equation of state}
\begin{minipage}[l]{0.58\linewidth}
\caption{Parameters used in the simulations}
\vspace{-3mm}
\include{tab_eos}
\include{LaTeX-files/tab_eos}
\label{tab:eos}
\end{minipage}
\end{table}
Expand Down Expand Up @@ -361,7 +361,7 @@ \section{The general cubic equation of state}
\begin{minipage}[l]{0.58\linewidth}
\caption{$m_1$ and $m_2$ in the general cubic EoS}
\vspace{-3mm}
\include{tab_eos2}
\include{LaTeX-files/tab_eos2}
\label{tab:eos2}
\end{minipage}
\end{table}
Expand Down Expand Up @@ -1525,7 +1525,7 @@ \section{Conclusion and future work}
\newpage
\section*{Nomenclature}
\addcontentsline{toc}{section}{nomenclature}
\input{nomenclat}
\input{LaTeX-files/nomenclat}

\clearpage
% the bibliography
Expand Down
Binary file modified docs/memo/truncation_correction/truncation_correction.pdf
Binary file not shown.
Binary file modified docs/memo/user_guide/user_guide.pdf
Binary file not shown.

0 comments on commit 82e7999

Please sign in to comment.