From 7faca3f1c31b75f706e7aa0a0dc051206699c76c Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:00:38 +0100 Subject: [PATCH 1/8] re-placed workflow --- .github/workflows/latexmk.yml | 39 +++++++++++++++++++++++++++++++++++ .github/workflows/latexmk_yml | 15 -------------- lammps-tutorials.tex | 2 -- 3 files changed, 39 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/latexmk.yml delete mode 100644 .github/workflows/latexmk_yml diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml new file mode 100644 index 0000000..8b1d706 --- /dev/null +++ b/.github/workflows/latexmk.yml @@ -0,0 +1,39 @@ +name: LaTeX PDF Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Step 1: Checkout the repository + - name: Checkout repository + uses: actions/checkout@v2 + + # Step 2: Set up TeX Live (LaTeX environment) + - name: Set up TeX Live + uses: dante-ev/action-texlive@v1 + with: + texlive_version: '2020' + + # Step 3: Install make (required to run your Makefile) + - name: Install make + run: sudo apt-get install make + + # Step 4: Build the PDF using the Makefile + - name: Build PDF using Makefile + run: make + + # Step 5: Upload the generated PDF as an artifact + - name: Upload PDF artifact + uses: actions/upload-artifact@v2 + with: + name: lammps-tutorials-pdf + path: lammps-tutorials.pdf diff --git a/.github/workflows/latexmk_yml b/.github/workflows/latexmk_yml deleted file mode 100644 index 915a0ff..0000000 --- a/.github/workflows/latexmk_yml +++ /dev/null @@ -1,15 +0,0 @@ -name: latexmk -on: - push: - pull_request: -jobs: - latexmk: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - - uses: yegor256/latexmk-action@0.12.0 - with: - cmd: latexmk - path: . - opts: -pdf lammps-tutorials - packages: regexpatch mdframed zref needspace opensans fontaxes authblk \ No newline at end of file diff --git a/lammps-tutorials.tex b/lammps-tutorials.tex index 8257aaa..072636a 100644 --- a/lammps-tutorials.tex +++ b/lammps-tutorials.tex @@ -39,8 +39,6 @@ \usepackage[title]{appendix} \usepackage{csquotes} -% \usepackage{inconsolata} % Load a font with no ligatures - \usepackage[ type={CC}, modifier={by-nc-sa}, From 60bebebb71c6fc0e3d72b10ad8f373827f046595 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:02:54 +0100 Subject: [PATCH 2/8] use v3 --- .github/workflows/latexmk.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index 8b1d706..2fc9a37 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -15,13 +15,13 @@ jobs: steps: # Step 1: Checkout the repository - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Step 2: Set up TeX Live (LaTeX environment) - name: Set up TeX Live - uses: dante-ev/action-texlive@v1 - with: - texlive_version: '2020' + run: | + sudo apt-get update + sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex # Step 3: Install make (required to run your Makefile) - name: Install make @@ -33,7 +33,7 @@ jobs: # Step 5: Upload the generated PDF as an artifact - name: Upload PDF artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: lammps-tutorials-pdf path: lammps-tutorials.pdf From 20bd773b57a46470268c257657946ca115d6dba9 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:06:13 +0100 Subject: [PATCH 3/8] install latexmk --- .github/workflows/latexmk.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index 2fc9a37..6a7398c 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -17,11 +17,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - # Step 2: Set up TeX Live (LaTeX environment) - - name: Set up TeX Live + # Step 2: Set up TeX Live (LaTeX environment) and install latexmk + - name: Install LaTeX and latexmk run: | sudo apt-get update - sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex + sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk # Step 3: Install make (required to run your Makefile) - name: Install make From 75794a1025632a30590d8ff43c59972cfaec0a23 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:10:18 +0100 Subject: [PATCH 4/8] added open sans --- .github/workflows/latexmk.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index 6a7398c..0479a47 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -17,11 +17,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - # Step 2: Set up TeX Live (LaTeX environment) and install latexmk - - name: Install LaTeX and latexmk + # Step 2: Install LaTeX tools and missing packages + - name: Install LaTeX and required packages run: | sudo apt-get update sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk + sudo apt-get install -y texlive-fonts-extra # Step 3: Install make (required to run your Makefile) - name: Install make From 68182fc5bb5044234ca5a15c2f99a05119255ada Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:14:54 +0100 Subject: [PATCH 5/8] added texlive-science package --- .github/workflows/latexmk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index 0479a47..b1eef23 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -22,7 +22,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk - sudo apt-get install -y texlive-fonts-extra + sudo apt-get install -y texlive-fonts-extra texlive-science # Step 3: Install make (required to run your Makefile) - name: Install make From 7fca04def9e287a0505601e64d8dbafc54161553 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:16:10 +0100 Subject: [PATCH 6/8] added missing package installation --- .github/workflows/latexmk.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index b1eef23..f709cf8 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -22,7 +22,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk - sudo apt-get install -y texlive-fonts-extra texlive-science + sudo apt-get install -y texlive-fonts-extra texlive-science texlive-pstricks + sudo apt-get install -y texlive-latex3 # Step 3: Install make (required to run your Makefile) - name: Install make From 300792df63e5ff16afbb63d8fac4669074272acc Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:21:28 +0100 Subject: [PATCH 7/8] removed texlive-latex3 --- .github/workflows/latexmk.yml | 1 - README.md | 16 ++++++++-------- dependencies/.github | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml index f709cf8..145b0b9 100644 --- a/.github/workflows/latexmk.yml +++ b/.github/workflows/latexmk.yml @@ -23,7 +23,6 @@ jobs: sudo apt-get update sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk sudo apt-get install -y texlive-fonts-extra texlive-science texlive-pstricks - sudo apt-get install -y texlive-latex3 # Step 3: Install make (required to run your Makefile) - name: Install make diff --git a/README.md b/README.md index 8b4fd03..f78b23c 100644 --- a/README.md +++ b/README.md @@ -52,18 +52,18 @@ more useful for everyone. ## License -This project is licensed under the [Creative Commons BY 4.0](https://creativecommons.org/licenses/by/4.0/) License. -For more details, see the [LICENSE](LICENSE) file. +This project is licensed under the XXX License - see the +[LICENSE](LICENSE) file for details. ## Authors -- [Simon Gravelle](https://github.com/simongravelle) (corresponding author), - Univ. Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France +- [Simon Gravelle](https://github.com/simongravelle) (corr. author), + Université Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France. - [Jacob R. Gissinger](https://www.stevens.edu/profile/jgissing), - Stevens Institute of Technology, Hoboken, NJ 07030, USA + Stevens Institute of Technology, Hoboken, NJ 07030, USA. - [Axel Kohlmeyer](https://sites.google.com/site/akohlmey), Institute for Computational Molecular Science, Temple University, Philadelphia, - PA 19122, USA + PA 19122, USA. @@ -71,8 +71,8 @@ For more details, see the [LICENSE](LICENSE) file. - Simon Gravelle acknowledges funding from the European Union's Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant - agreement No 101065060. -- Axel Kohlmeyer acknowledges financial support by Sandia National Laboratories + agreement N°101065060. +- Axel Kohlmeyer acknowledges financial support from Sandia National Laboratories under POs 2149742 and 2407526. diff --git a/dependencies/.github b/dependencies/.github index b8c8987..9931c7c 160000 --- a/dependencies/.github +++ b/dependencies/.github @@ -1 +1 @@ -Subproject commit b8c898787663913596dd931f5b636ad5757b04d7 +Subproject commit 9931c7cd1dcaa8d248bde41190e1900fb4e58961 From 1d53cb856b67ef6c0eda7fd68999e308b39f1d40 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Mon, 23 Dec 2024 00:35:58 +0100 Subject: [PATCH 8/8] added link to github action from the README --- DESCRIPTION.md | 7 +++++-- README.md | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION.md b/DESCRIPTION.md index daff91f..58ad4e2 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -27,8 +27,11 @@ within the solution repository located in each tutorial folder. ## Link -Access the `.pdf` from [this link](lammps-tutorials.pdf), or clone this repository -and compile the `.tex` file yourself by typing in a terminal: +https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042 + +Access the last version of the `.pdf` from +[the Actions tab](https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042), +or clone this repository and compile the `.tex` file yourself by typing in a terminal: ``` make diff --git a/README.md b/README.md index f78b23c..d80bd83 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,11 @@ within the solution repository located in each tutorial folder. ## Link -Access the `.pdf` from [this link](lammps-tutorials.pdf), or clone this repository -and compile the `.tex` file yourself by typing in a terminal: +https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042 + +Access the last version of the `.pdf` from +[the Actions tab](https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042), +or clone this repository and compile the `.tex` file yourself by typing in a terminal: ``` make