generated from feelpp/article.template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb77010
commit b4be5d5
Showing
128 changed files
with
7,796 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,6 @@ article.template.pdf | |
*.fls | ||
*.idx | ||
*.ilg | ||
*.ind | ||
*.ind | ||
*.run.xml | ||
*.bcf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,21 @@ | |
|
||
|
||
|
||
\usepackage{minted} | ||
\usepackage{natbib} | ||
|
||
\input{preamble} | ||
\usepackage{hyperref} | ||
|
||
\title{Template Repository for Articles!!!} | ||
\author{Christophe Prud'homme\thanks{Cemosis, IRMA UMR 7501, Université de Strasbourg, CNRS, France, \tt \href{mailto:[email protected]}{[email protected]}}} | ||
\usepackage[noabbrev]{cleveref} | ||
\usepackage{xurl} | ||
|
||
\makeatletter | ||
\title{Model order reduction and sensitivity analysis for complex heat transfer simulations inside the human eyeball} | ||
\author{% | ||
\texorpdfstring{ | ||
Thomas Saigre\textsuperscript{1}\textsuperscript{$\dagger$}, Christophe Prud'homme\textsuperscript{1}, Marcela Szopos\textsuperscript{2}\\ | ||
\small\textsuperscript{1}Institut de Recherche Mathématique Avancée, UMR 7501 Université de Strasbourg et CNRS\\ | ||
\small\textsuperscript{2}Université Paris Cité, CNRS, MAP5, F-75006 Paris, France\\ | ||
\small\textsuperscript{$\dagger$}Corresponding author contact: \texttt{[email protected]} | ||
}{Thomas Saigre, Christophe Prud'homme, Marcela Szopos} | ||
} | ||
\date{\gitReln\ \gitAuthorDate\ (\gitAbbrevHash)} | ||
|
||
% Define custom color | ||
|
@@ -26,290 +34,73 @@ | |
\hypersetup{ | ||
pdftitle={\@title}, | ||
pdfauthor={\@author}, | ||
pdfsubject={\@subject}, | ||
% pdfsubject={\@subject}, | ||
pdfkeywords={LaTeX, GitHub Actions, Zotero, Overleaf}, | ||
bookmarksnumbered,bookmarksopen,linktocpage, | ||
colorlinks=true, | ||
citecolor=CustomBlue, | ||
linkcolor=CustomBlue, | ||
urlcolor=blue | ||
} | ||
\makeatother | ||
\renewcommand{\d}{\,\mathrm{d}} | ||
|
||
% Define colors | ||
\definecolor{background}{RGB}{245,245,244} | ||
\definecolor{string}{RGB}{163,21,21} | ||
\definecolor{keyword}{RGB}{0,0,255} | ||
\definecolor{comment}{RGB}{0,128,0} | ||
\definecolor{identifier}{RGB}{0,0,0} | ||
\definecolor{bashkeyword}{RGB}{0,0,128} | ||
|
||
% Minted settings | ||
\setminted{ | ||
bgcolor=background, | ||
fontsize=\footnotesize, | ||
linenos, | ||
breaklines, | ||
frame=single, | ||
framesep=2mm, | ||
tabsize=2 | ||
} | ||
|
||
\begin{document} | ||
|
||
\maketitle | ||
\tableofcontents | ||
|
||
\section{Introduction} | ||
\label{sec:introduction} | ||
|
||
Writing scientific articles using LaTeX offers numerous advantages, including precise typesetting, seamless integration of references, and robust version control. | ||
This template repository demonstrates best practices for organizing LaTeX projects, utilizing GitHub Actions for automated document compilation, managing bibliographies with Zotero, and optimizing image handling. | ||
By following this template, researchers can enhance their workflow efficiency and ensure consistent document formatting across platforms like Overleaf and local LaTeX installations. | ||
The releases assets produced by the GitHub Actions allows to upload the article to HAL, arXiv, Zenodo, etc. | ||
|
||
|
||
|
||
\section{Git Support} | ||
\label{sec:git-support} | ||
|
||
The `gitinfo2` package~\citep{brent_longborough_gitinfo2sty_2015} allows LaTeX documents to include information about the current state of the Git repository, such as the commit hash, author, and date. This is particularly useful for versioning and tracking changes in scientific documents. | ||
|
||
\subsection{Configuration} | ||
|
||
To include `gitinfo2` in your LaTeX document, add the following lines to your preamble: | ||
|
||
\begin{minted}[bgcolor=background]{latex} | ||
\IfFileExists{.git/gitHeadInfo.gin}{ | ||
\usepackage[pcount,grumpy,mark,markifdirty]{gitinfo2} | ||
}{% | ||
\usepackage[local,pcount,grumpy,mark,markifdirty]{gitinfo2} | ||
} | ||
\end{minted} | ||
|
||
This configuration attempts to use .git/gitHeadInfo.gin if it exists (indicating a Git repository) and falls back to a local file if not. | ||
|
||
\subsection{Setting Up Git Hooks} | ||
|
||
To automatically generate the \mintinline{sh}|.git/gitHeadInfo.gin| file with each commit, you need to set up Git hooks. | ||
This repository includes the script \mintinline{sh}|a.cli| to simplify the installation of these hooks with the command: | ||
|
||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli setup | ||
\end{minted} | ||
|
||
\inputminted[linenos,autogobble,bgcolor=background,fontsize=\small,firstline=6,lastline=23]{sh}{a.cli} | ||
|
||
This will copy the \mintinline{sh}|post-commit| and \mintinline{sh}|post-checkout| hook scripts to the .git/hooks directory and make them executable. | ||
These hooks will automatically generate the \mintinline{sh}|.git/gitHeadInfo.gin| and update \mintinline{sh}|gitHeadLocal.gin| file after each commit or checkout. | ||
|
||
The file \mintinline{sh}|gitHeadLocal.gin| is used when the document is compiled outside of a Git repository, e.g., in Overleaf or in an public archive such as HAL or arXiv. | ||
|
||
|
||
\subsection{Using GitHub Actions} | ||
|
||
The GitHub Actions workflow is configured to run the command \mintinline{sh}|a.cli setup|, ensuring that the Git hooks are set up in the CI environment. | ||
This allows the automated compilation of the LaTeX document to include the latest Git information in the article. | ||
|
||
The template article repository workflow uses \citep{cheng_xu_xu-chenglatex-action_2024} \mintinline{bash}{xu-cheng/latex-action} to build the latex document. | ||
|
||
The GitHub Action workflow: | ||
\begin{itemize} | ||
\item Compiles the LaTeX document using \mintinline{bash}{xu-cheng/latex-action} on \texttt{ubuntu-latest} runner or \texttt{self-texlive} runner hosted on \texttt{feelpp} organisation. | ||
\item Uploads the resulting PDF | ||
\item Creates a release with the PDF as an asset when a new tag is pushed of the type \texttt{v*}, e.g., \texttt{v1.0.0}. | ||
\end{itemize} | ||
|
||
\subsection{Full Article Workflow} | ||
\label{sec:full-article-workflow} | ||
\begin{abstract} | ||
Heat transfer in the human eyeball, a complex organ, is significantly influenced by various pathophysiological and external parameters. | ||
Particularly, heat transfer critically affects fluid behavior within the eye and ocular drug delivery processes. | ||
Overcoming the challenges of experimental analysis, this study introduces a comprehensive three-dimensional mathematical and computational model to simulate the heat transfer in a realistic geometry. | ||
Our work includes an extensive sensitivity analysis to address uncertainties and delineate the impact of different variables on heat distribution in ocular tissues. | ||
To manage the model's complexity, we employed a very fast model reduction technique with certified sharp error bounds, ensuring computational efficiency without compromising accuracy. | ||
Our results demonstrate remarkable consistency with experimental observations and align closely with existing numerical findings in the literature. | ||
Crucially, our findings underscore the significant role of blood flow and environmental conditions, particularly in the eye's internal tissues. | ||
Clinically, this model offers a promising tool for examining the temperature-related effects of various therapeutic interventions on the eye. | ||
Such insights are invaluable for optimizing treatment strategies in ophthalmology. | ||
\end{abstract} | ||
|
||
|
||
Here is a summary of the full workflow for creating and maintaining a LaTeX document with Git support: | ||
|
||
\begin{enumerate} | ||
\item \textbf{Check out the organisation}: if the organisation is \texttt{feelpp} and a \texttt{self-texlive} labelled runner is online, the compilation will be done using the \texttt{self-texlive} runner other it will use the \texttt{ubuntu-latest} runner. | ||
\item \textbf{Clone the Repository}: | ||
Clone the repository to your local machine: | ||
\begin{minted}[bgcolor=background]{sh} | ||
git clone https://github.com/your-username/your-repo.git | ||
cd your-repo | ||
\end{minted} | ||
\item \textbf{Set Up Git Hooks}: | ||
Run the \mintinline[bgcolor=background]{sh}|a.cli| script to set up the necessary Git hooks: | ||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli setup | ||
\end{minted} | ||
\item \textbf{Compile the Document}: | ||
Compile the LaTeX document to generate the PDF: | ||
\begin{minted}[bgcolor=background]{sh} | ||
pdflatex -shell-escape main.tex | ||
\end{minted} | ||
\item \textbf{Make Changes to Your Document}: | ||
Edit your LaTeX document and add, commit, and push changes to the repository: | ||
\begin{minted}[bgcolor=background]{sh} | ||
git add . | ||
git commit -m “Update document” | ||
git push origin main | ||
\end{minted} | ||
\item \textbf{Create a Tag for Release}: | ||
Create and push a tag, using semver\footnote{\url{https://semver.org}}, to trigger the GitHub Actions workflow for building and releasing the document: | ||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli create v1.0.0 | ||
\end{minted} | ||
\item \textbf{Review GitHub Actions Workflow}: | ||
The GitHub Actions workflow will automatically compile your LaTeX document and upload the resulting PDF as an artifact. | ||
You can download the compiled PDF from the Actions tab in your repository. | ||
\item \textbf{Sync with Overleaf}: | ||
If you are using Overleaf, sync your GitHub repository with Overleaf to ensure you always have the latest version of your document. | ||
\end{enumerate} | ||
|
||
By following this workflow, you can efficiently manage your LaTeX documents, keep track of changes with Git, and automate the compilation and release process with GitHub Actions. | ||
|
||
\subsection{Document Release} | ||
|
||
The `release` script simplifies creating and listing releases for your LaTeX document. | ||
|
||
\inputminted[linenos, fontsize=\small, bgcolor=background,firstline=25,lastline=66]{sh}{a.cli} | ||
|
||
|
||
|
||
\begin{description} | ||
\item[Create a New Release]: To create a new release on GitHub, use the following command: | ||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli create v1.0.0 | ||
\end{minted} | ||
\item[List All Releases]: To list all releases, use the following command: | ||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli list | ||
\end{minted} | ||
\item[Delete a Release]: To delete a release, use the following command: | ||
\begin{minted}[bgcolor=background]{sh} | ||
./a.cli delete v1.0.0 | ||
\end{minted} | ||
|
||
\end{description} | ||
|
||
This script provides an easy interface for managing releases, automating the tagging, updating, committing, and pushing processes. | ||
|
||
|
||
\section{Image Naming Convention} | ||
|
||
To ensure compatibility with platforms like HAL, arXiv, and Overleaf, name your images with the \texttt{img-*} prefix and store them in the same directory as the \texttt{.tex} file. | ||
This makes it easier to manage and upload your images along with your LaTeX document. | ||
|
||
\textbf{Example}: | ||
\begin{itemize} | ||
\item \texttt{img-figure1.pdf} | ||
\item \texttt{img-figure2.png} | ||
\item \texttt{img-figure3.jpg} | ||
\end{itemize} | ||
|
||
\section{Using References from Zotero via Overleaf} | ||
|
||
To manage your references with Zotero and integrate them seamlessly into Overleaf, follow these steps: | ||
|
||
\subsection{Export Zotero Library to BibTeX} | ||
\begin{enumerate} | ||
\item Open Zotero and select the references you want to export. | ||
\item Go to \texttt{File > Export Library}. | ||
\item Choose \texttt{BibTeX} as the format and save the file (e.g., \texttt{references.bib}). | ||
\end{enumerate} | ||
|
||
\subsection{Upload BibTeX File to Overleaf} | ||
\begin{enumerate} | ||
\item Open your project in Overleaf. | ||
\item Click on the \texttt{Upload} button (top-left corner) and upload your \texttt{references.bib} file. | ||
\end{enumerate} | ||
|
||
\subsection{Include the Bibliography in Your LaTeX Document} | ||
|
||
Add the following lines to your \texttt{.tex} file to include the bibliography: | ||
|
||
\begin{minted}[bgcolor=background]{latex} | ||
\documentclass{article} | ||
\usepackage{graphicx} | ||
\usepackage{natbib} | ||
\begin{document} | ||
|
||
% Your content here | ||
|
||
\bibliographystyle{plainnat} | ||
\bibliography{references} | ||
|
||
\end{document} | ||
\end{minted} | ||
|
||
\subsection{Cite References in Your LaTeX Document} | ||
|
||
Use the \mintinline{latex}{\cite} command to cite references within your document. For example: | ||
|
||
\begin{minted}[bgcolor=background]{latex} | ||
As shown by \citet{AuthorYear}, this method is effective. | ||
\end{minted} | ||
\tableofcontents | ||
|
||
|
||
|
||
\section{Steps to Use the Template Repository} | ||
\vspace{\baselineskip} | ||
|
||
\subsection{Create a New Repository} | ||
Use the git template repository feature to create a new repository based on this template. | ||
\noindent | ||
\textbf{Keywords :} mathematical and computational ophthalmology, heat transfer, validation, finite element method, real-time model order reduction, uncertainty quantification, sensitivity analysis, Sobol index analysis. | ||
|
||
\begin{figure}[h!] | ||
\centering | ||
\includegraphics[width=0.8\textwidth]{img-create-repo.png} | ||
\caption{Create a New Repository} | ||
\end{figure} | ||
% 1. Introduction | ||
\input{tex/1-intro} | ||
|
||
\subsection{Clone the Repository} | ||
Clone the repository to your local machine. | ||
% 2. Three-dimensional biophysical model | ||
\input{tex/2-model-phys} | ||
|
||
\begin{minted}[bgcolor=background]{bash} | ||
git clone https://github.com/feelpp/my-repo.git | ||
cd my-repo | ||
\end{minted} | ||
% 3. Mathematical and computational framework | ||
\input{tex/3-model-num} | ||
|
||
\begin{figure}[h!] | ||
\centering | ||
\includegraphics[width=0.8\textwidth]{img-repo-test.png} | ||
\caption{Clone the Repository} | ||
\end{figure} | ||
% 4. Uncertainty quantificationœ | ||
\input{tex/4-uq} | ||
|
||
\subsection{Add Your LaTeX Source Files} | ||
Place your \texttt{.tex} file and image files (\texttt{img-*.pdf}, \texttt{img-*.png}, \texttt{img-*.jpg}) in the repository. | ||
% 5. Conclusion | ||
\input{tex/5-conclusion} | ||
|
||
\subsection{Commit and Push Changes} | ||
Commit your changes and push them to the repository. | ||
\appendix | ||
|
||
\begin{minted}[bgcolor=background]{bash} | ||
git add . | ||
git commit -m "Add initial LaTeX document and images" | ||
git push origin main | ||
\end{minted} | ||
\input{tex/A-reproduce} | ||
|
||
The GitHub Action workflow will automatically compile your LaTeX document and upload the resulting PDF as an artifact. You can download the compiled PDF from the Actions tab in your repository. | ||
|
||
\section{Overleaf Integration} | ||
\section*{Acknowledgements} | ||
\addcontentsline{toc}{section}{Acknowledgements} | ||
|
||
\subsection{Sync GitHub Repository with Overleaf} | ||
\begin{enumerate} | ||
\item In Overleaf, create a new project and select \texttt{Import from GitHub}. | ||
\item Connect your GitHub account and select the repository you want to sync. | ||
\item The sync will trigger the workflow and compile your LaTeX document in GitHub. | ||
\end{enumerate} | ||
The authors would like to acknowledge the support of the platform Cemosis at University of Strasbourg and the French Ministry of Higher Education, Research and Innovation. | ||
This work has benefited from a national grant managed by the French National Research Agency (Agence Nationale de la Recherche) attributed to the Exa-MA project of the NumPEx PEPR program, under the reference ANR-22-EXNU-0002. | ||
|
||
\subsection{Update References from Zotero} | ||
\begin{enumerate} | ||
\item Periodically export your references from Zotero to \texttt{references.bib} and push the updated file to your GitHub repository. | ||
\item Overleaf will automatically sync the changes, ensuring your references are up to date. | ||
\end{enumerate} | ||
|
||
\section{Conclusion} | ||
\label{sec:conclusion} | ||
\printbibliography{} | ||
\addcontentsline{toc}{section}{References} | ||
|
||
This template provides a comprehensive approach for creating and managing LaTeX articles, integrating modern tools and workflow to enhance productivity and collaboration. | ||
By leveraging GitHub Actions for automated compilation, Zotero for reference management, Overleaf for online editing, and Vscode using \LaTeX workshop extension for editing, researchers can streamline the writing process and focus more on content creation. | ||
The structured setup ensures consistent formatting and efficient handling of images and references, making it suitable for both individual use and collaborative projects. | ||
|
||
|
||
\bibliographystyle{plainnat} | ||
\bibliography{references} | ||
\end{document} |
Oops, something went wrong.