Skip to content

Commit

Permalink
Update LTG (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: koppor <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 31, 2025
1 parent 99d4237 commit d993141
Show file tree
Hide file tree
Showing 10 changed files with 220 additions and 1,718 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true
jobs:
pdf:
name: latexmk paper
name: latexmk paper-conference
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand All @@ -26,7 +26,7 @@ jobs:
if [ ! -f "latexmkrc" ]; then
cp "_latexmkrc" "latexmkrc"
fi
- run: latexmk paper
- run: latexmk paper-conference

# Highlight mis-spelled words in the PDF
- uses: bscott-zebra/cache-apt-pkgs-action@avoid_using_xargs
Expand All @@ -38,21 +38,21 @@ jobs:
run: |
for tex in $(ls *.tex content/*.tex 2>/dev/null); do
# The lualatex package "spelling" requires the content to be in a file ending with ".spell.bad"
aspell --mode=tex -l en_US --encoding=utf-8 --conf=./.aspell.conf -p ./.aspell.en.pws list < $tex | sort | uniq >> paper.spell.bad
aspell --mode=tex -l en_US --encoding=utf-8 --conf=./.aspell.conf -p ./.aspell.en.pws list < $tex | sort | uniq >> paper-conference.spell.bad
done
- run: latexmk paper
- run: latexmk paper-conference

- name: Job summary using texlogsieve
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
texlogsieve < paper.log >> $GITHUB_STEP_SUMMARY || true
texlogsieve < paper-conference.log >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY
- uses: actions/upload-artifact@v4
with:
name: test-result
path: |
paper.pdf
paper.log
paper-conference.pdf
paper-conference.log
word-count:
runs-on: ubuntu-latest
steps:
Expand All @@ -64,17 +64,17 @@ jobs:
package_file: '${{ github.workspace }}/Texlivefile'
- name: Count words
run: |
texcount -utf8 -inc paper.tex > texcount.txt
texcount -utf8 -inc paper-conference.tex > texcount.txt
echo "## TeXcount word count" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cat "texcount.txt" >> $GITHUB_STEP_SUMMARY
texcount -utf8 -inc -v -html paper.tex > texcount.html
texcount -utf8 -inc -v -html paper-conference.tex > texcount.html
# output for summary
# too verbose - therefore disabled
#
# texcount -utf8 -inc -v -htmlcore paper.tex > texcount.html-body
# texcount -utf8 -inc -v -htmlcore paper-conference.tex > texcount.html-body
# echo "" >> $GITHUB_STEP_SUMMARY
# echo "## TeXcount LaTeX interpretation" >> $GITHUB_STEP_SUMMARY
# echo "" >> $GITHUB_STEP_SUMMARY
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/update-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,14 @@ jobs:
- name: Prepare files
working-directory: /tmp/ltg
run: |
# We update check.yml manually (due to rights management of GitHub and "paper-conference.tex" naming)
rm .github/workflows/check.yml
if [ "${{ matrix.listings }}" == "minted" ]; then
# paper.tex should not be overwritten
# paper-conference.tex should not be overwritten
mv paper.tex paper-conference-minted.tex
else
cp paper.tex paper-conference.tex
mv paper.tex paper-conference.tex
fi
# remove files which should not be overwritten
Expand All @@ -90,7 +93,8 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
message: 'Update files based on generated files by template generator'
committer_email: [email protected]
author_name: 'github-actions[bot]'
author_email: 'github-actions[bot]@users.noreply.github.com'
push: false
- name: Push changes
run: |
Expand Down Expand Up @@ -130,7 +134,7 @@ jobs:
- run: |
mkdir publish
cp *.pdf publish/
cp paper.tex publish/
cp paper-conference.tex publish/
cp README.md publish/
cp .github/_config.yml publish/
- uses: actions/upload-artifact@v4
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ From 2022-02-28 onwards, versioning is done using [Calendar Versioning](https://
### Changed

- Renamed to `ieee-enhanced` to show that this an enhanced version of the existing template [IEEEtran](https://ctan.org/pkg/ieeetran)
- Removed `paper.tex` (because it is a duplicate of `paper-conference.tex`)

### Added

- Added `commands.tex` to collects all LaTeX macros / commands for a better overview on available (custom) LaTeX commands.

## [2025-01-25]

Expand Down
Loading

0 comments on commit d993141

Please sign in to comment.