From 3db27957014a03de44a67e6f1c65289897d0235e Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Mon, 24 Nov 2025 21:57:58 +0300 Subject: [PATCH 1/6] Init gh action for testing --- .github/workflows/blank.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..fbcdecd --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,46 @@ +# This is a basic workflow to help you get started with Actions + + +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: [ "main" ] + pull_request: + branches: [ "main" ] + + # 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 +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + 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 + - uses: actions/checkout@v4 + + - name: Run a one-line script + run: echo Hello, world! + + - name: GitHub Action for LaTeX + uses: xu-cheng/latex-action@4.0.0 + with: + root_file: | + MathAnaliz/main.tex + + - name: Upload PDF artifacts + uses: actions/upload-artifact@v4 + with: + name: compiled-lectures + path: | + *.pdf + !*.synctex*.pdf + From 5cb41e0aa1f79e1c98d9e1569d332387a8304343 Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Mon, 24 Nov 2025 22:18:06 +0300 Subject: [PATCH 2/6] Fix geometry --- MathAnaliz/main.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathAnaliz/main.tex b/MathAnaliz/main.tex index ebc500e..6bad797 100644 --- a/MathAnaliz/main.tex +++ b/MathAnaliz/main.tex @@ -5,7 +5,7 @@ \usepackage[T2A]{fontenc} \usepackage[english, russian]{babel} \usepackage[utf8]{inputenc} -\usepackage[margin=2cm]{geometry} +\usepackage[margin=2cm, a4paper]{geometry} \usepackage[most]{tcolorbox} \usepackage{caption} \usepackage{enumitem} From d4cde8e1724e4dc1badc9e6d6579b3722a98f314 Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Mon, 24 Nov 2025 22:24:10 +0300 Subject: [PATCH 3/6] Update blank.yml --- .github/workflows/blank.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index fbcdecd..0bf1af8 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,7 +1,7 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: # Controls when the workflow will run @@ -27,15 +27,13 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - name: Run a one-line script - run: echo Hello, world! - - name: GitHub Action for LaTeX uses: xu-cheng/latex-action@4.0.0 with: root_file: | MathAnaliz/main.tex - + continue_on_error: true + - name: Upload PDF artifacts uses: actions/upload-artifact@v4 with: From 8013bf17b363167dd925bd4de6957d9aec27dbb1 Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Tue, 25 Nov 2025 15:45:05 +0300 Subject: [PATCH 4/6] Update blank.yml --- .github/workflows/blank.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 0bf1af8..3d35387 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,7 +1,7 @@ # This is a basic workflow to help you get started with Actions -name: +name: Compile MathAnaliz # Controls when the workflow will run @@ -29,10 +29,18 @@ jobs: - name: GitHub Action for LaTeX uses: xu-cheng/latex-action@4.0.0 + with: + compiler: pdflatex + latexmk_shell_escape: false + continue_on_error: true + args: | + -pdf + -interaction=nonstopmode + -f root_file: | MathAnaliz/main.tex - continue_on_error: true + - name: Upload PDF artifacts uses: actions/upload-artifact@v4 From a7599da859d8e2ae2e8c77bdd70e7497778792c5 Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Tue, 25 Nov 2025 15:49:44 +0300 Subject: [PATCH 5/6] Update main.tex --- MathAnaliz/main.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathAnaliz/main.tex b/MathAnaliz/main.tex index 6bad797..ea2a5f7 100644 --- a/MathAnaliz/main.tex +++ b/MathAnaliz/main.tex @@ -1,4 +1,4 @@ -\documentclass[12pt, paper]{article} +\documentclass[12pt, a4paper]{article} \usepackage{graphicx} \usepackage{amsmath, amssymb} From 71eeb37007425b60dfb69775c980a0dd10e74adb Mon Sep 17 00:00:00 2001 From: luxvent <95984832+luxvent@users.noreply.github.com> Date: Tue, 25 Nov 2025 15:56:12 +0300 Subject: [PATCH 6/6] Update blank.yml --- .github/workflows/blank.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 3d35387..21d5ec9 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -32,10 +32,9 @@ jobs: with: compiler: pdflatex - latexmk_shell_escape: false continue_on_error: true + work_in_root_file_dir: true args: | - -pdf -interaction=nonstopmode -f root_file: |