Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install LaTeX
run: |
sudo apt-get -qq update
sudo apt-get install -y --no-install-recommends \
dvipng cm-super \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-fonts-extra \
texlive-latex-recommended \
texlive-lang-german
sudo updmap -sys
- name: Build metamath-narrow.pdf
run: ./make-narrow
- name: Build metamath.pdf
run: ./generate-pdf
- name: Build metamath-de.pdf
run: ./generate-pdf normal de
- uses: actions/upload-artifact@v3
with:
name: metamath-pdf
path: |
metamath.pdf
metamath-narrow.pdf
metamath-de.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
files: |
metamath.pdf
metamath-narrow.pdf
metamath-de.pdf
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.aux
*.bbl
*.bib
*.blg
*.fdb_latexmk
*.fls
*.idx
*.ind
*.ilg
*.log
*.out
*.pdf
*.toc
*.synctex.gz
/realref.sty
/temp-metamath/
/temp-metamath-narrow/
/temp-metamath-de/
/temp-metamath-de-narrow/
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions allowed-errors
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LaTeX Warning: File `realref.sty' already exists on the system.
LaTeX Warning: File `metamath.bib' already exists on the system.
Package amsmath Warning: Foreign command \atop;
LaTeX Font Warning: Font shape `OMS/cmtt/m/n' undefined
LaTeX Font Warning: Font shape `OMS/cmtt/bx/n' undefined
LaTeX Font Warning: Font shape `TS1/cmtt/bx/n' undefined
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
26 changes: 20 additions & 6 deletions generate-pdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,27 @@ set -ex
style="${1:-normal}"
style="${style%.sty}"

texfile="${2:-metamath}"
lang="${2:-en}"

texfile="${3:-metamath}"
texfile="${texfile%.tex}"

if [ "$style" == 'normal' ]; then
outfile="$texfile"
if [ "$lang" = 'en' ]; then
basename="$texfile"
basedir="."
else
basename="${texfile}-${lang}"
if [ "$lang" = 'de' ]; then
basedir="german"
else
basedir="$lang"
fi
fi

if [ "$style" = 'normal' ]; then
outfile="$basename"
else
outfile="${texfile}-${style}"
outfile="${basename}-${style}"
fi
# Try to remove output .pdf first - if we can't, no point in going further.
rm -f "${outfile}.pdf"
Expand All @@ -28,8 +42,8 @@ do_pdflatex () {
tempdir="temp-$outfile"
rm -fr "$tempdir"
mkdir -p "$tempdir"
cp -p "${texfile}.tex" "$tempdir"
cp -p "${style}.sty" "$tempdir/special-settings.sty"
cp -p "$basedir/${texfile}.tex" "$tempdir"
cp -p "$basedir/${style}.sty" "$tempdir/special-settings.sty"

cd "temp-$outfile"
touch metamath.ind
Expand Down
Binary file removed german/metamath.pdf
Binary file not shown.
749 changes: 375 additions & 374 deletions german/metamath.tex

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion metamath.tex
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,8 @@
% * "tabu" much more capable and seems to be recommended. So use that.

\usepackage{makecell} % Enable forced line splits within a table cell
\usepackage{longtable} % Enable multi-page tables
% v4.13 needed for tabu: https://tex.stackexchange.com/questions/600724/dimension-too-large-after-recent-longtable-update
\usepackage{longtable}[=v4.13] % Enable multi-page tables
\usepackage{tabu} % Multi-page tables with wrapped text in a cell

% You can find more Tex packages using commands like:
Expand Down