Skip to content

[WIP] Редизайн книги #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
df84abe
Remove all
WoWaster Jun 8, 2024
f02a696
Add VS Code settings
WoWaster Jun 8, 2024
e83df65
Init new version of main file
WoWaster Jun 8, 2024
376c0ea
Add list of contributors
WoWaster Jun 8, 2024
50f0255
Add introduction chapter
WoWaster Jun 8, 2024
d5058cb
Add -shell-escape to latexmk arguments
WoWaster Jun 8, 2024
5568b45
Minor fixes in introduction & basic TikZ setup
WoWaster Jun 8, 2024
1af1bb9
Enable microtype and specify font size
WoWaster Jun 8, 2024
ec9130b
Fix .bib file
WoWaster Jun 9, 2024
4bc4b6d
Add Linear Algebra chapter
WoWaster Jun 12, 2024
9c3f42d
Add main.pdf to .gitignore
WoWaster Jun 12, 2024
7af50a5
Update CI script
WoWaster Jun 14, 2024
ba1af0c
Install fonts in CI
WoWaster Jun 14, 2024
feeb696
Enable shell escape
WoWaster Jun 14, 2024
f2d767f
Keep tex/figures/exteralized directory
WoWaster Jun 14, 2024
f3389a7
Fixes in Linear Algebra
WoWaster Jun 16, 2024
3059826
Redo algorithm in Linear Algebra
WoWaster Jun 16, 2024
f0ebe4e
Add Graph Theory Intro chapter
WoWaster Jun 16, 2024
9f26332
Add Formal Language Theory Intro chapter
WoWaster Jun 16, 2024
ac29ebe
Add Regular Languages chapter
WoWaster Jun 18, 2024
b340a7e
Add CFL chapter
WoWaster Jun 19, 2024
c72abd2
Restore all chapters to tree
WoWaster Jun 19, 2024
2b7663c
Restore name of the main file
WoWaster Jun 19, 2024
d0bab18
Add Makefile
WoWaster Jun 19, 2024
f5c2557
Add caching of pictures in CI
WoWaster Jun 19, 2024
4ddcece
Comment more incomplete parts
WoWaster Jun 19, 2024
c559ddd
Name TikZ externalized PDFs according to chapter
WoWaster Jun 19, 2024
7568b0a
Add FLPQ chapter
WoWaster Jun 19, 2024
ac7a8fb
Fix order of loading packages
WoWaster Jun 20, 2024
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
81 changes: 27 additions & 54 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,42 @@
# This is a basic workflow to help you get started with Actions
name: Build latest PDF

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
# PRs can only use caches from their target branch. We therefore need to
# make sure we run on 'main' too.
- main
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
style:
name: Build latest PDF
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Set up Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# First run of pdflatex.
- name: First pdflatex FormalLanguageConstrainedReachabilityLectureNotes
uses: dante-ev/latex-action@latest
- name: Cache TikZ externalized pictures
uses: actions/cache@v4
with:
working_directory: tex
root_file: FormalLanguageConstrainedReachabilityLectureNotes.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape

# Bibliography generation
- name: bibtex FormalLanguageConstrainedReachabilityLectureNotes
uses: dante-ev/latex-action@latest
with:
working_directory: tex
root_file: FormalLanguageConstrainedReachabilityLectureNotes.aux
compiler: bibtex
args:

# Second compilation
- name: Second pdflatex FormalLanguageConstrainedReachabilityLectureNotes
uses: dante-ev/latex-action@latest
path: tex/figures/externalized
key: tikz-externalized

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: tex
root_file: FormalLanguageConstrainedReachabilityLectureNotes.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape

# Final compilation
- name: Final pdflatex FormalLanguageConstrainedReachabilityLectureNotes
uses: dante-ev/latex-action@latest
root_file: tex/FormalLanguageConstrainedReachabilityLectureNotes.tex
work_in_root_file_dir: true
latexmk_use_lualatex: true
extra_system_packages: "font-liberation"
latexmk_shell_escape: true

- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
working_directory: tex
root_file: FormalLanguageConstrainedReachabilityLectureNotes.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape

# Publish compiled pdf
- name: Upload
uses: actions/upload-artifact@v2
with:
name: FormalLanguageConstrainedReachabilityLectureNotes_latest
path: tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,5 @@ TSWLatexianTemp*
*.lpz

tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf
tex/figures/externalized/*
!tex/figures/externalized/.gitkeep
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"james-yu.latex-workshop"
]
}
44 changes: 44 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"latex-workshop.latex.recipes": [
{
"name": "latexmk (lualatex)",
"tools": [
"lualatexmk"
]
},
],
"files.exclude": {
"**/**.aux": true,
"**/**.bbl": true,
"**/**.bcf": true,
"**/**.blg": true,
"**/**.fdb_latexmk": true,
"**/**.fls": true,
"**/**.log": true,
"**/**.out": true,
"**/**.run.xml": true,
"**/**.synctex.gz": true,
"**/**.synctex(busy)": true,
"**/**.toc": true
},
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"latex-workshop.latex.tools": [
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-shell-escape",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
],
}
Loading