shimane-u-reports

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5d6fd4f71d0d1eccb1885ff53e5d6c549e7e8276
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date:   Thu, 24 Apr 2025 12:36:22 +0900

Initial commit
Diffstat:
A.github/actions/Dockerfile | 18++++++++++++++++++
A.github/actions/entrypoint.sh | 4++++
A.github/workflows/PRbuild.yaml | 30++++++++++++++++++++++++++++++
A.github/workflows/PushBuild.yaml | 27+++++++++++++++++++++++++++
A.github/workflows/build.yaml | 27+++++++++++++++++++++++++++
A.gitignore | 4++++
A.latexmkrc | 8++++++++
A.vscode/settings.json | 34++++++++++++++++++++++++++++++++++
ALICENSE | 21+++++++++++++++++++++
AREADME.md | 5+++++
Amain.tex | 5+++++
Atest/人間科学概論.tex | 6++++++
12 files changed, 189 insertions(+), 0 deletions(-)

diff --git a/.github/actions/Dockerfile b/.github/actions/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:latest +RUN apt-get update \ + && apt-get install -y tzdata +RUN apt-get install -y --no-install-recommends \ + curl \ + python3 \ + latexmk \ + lmodern \ + texlive \ + texlive-latex-extra \ + texlive-lang-japanese \ + && rm -rf /var/lib/apt/lists/* + +RUN mktexlsr && mkdir -p /app +WORKDIR /app +ADD entrypoint.sh /entrypoint.sh +RUN ["chmod", "+x", "/entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/entrypoint.sh b/.github/actions/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -eux +# build pdf (change if necessary) +latexmk -pdfdvi main.tex diff --git a/.github/workflows/PRbuild.yaml b/.github/workflows/PRbuild.yaml @@ -0,0 +1,29 @@ +name: compile LaTeX when PR update + +on: + pull_request: + types: [opened, synchronize, ready_for_review] + +jobs: + PRbuild: + name: PRBuild + runs-on: self-hosted + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: compile latex document + uses: ./.github/actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload PDF artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: main + path: ./main.pdf + compression-level: 0 + - name: Add comment to PR + run: | + gh pr comment ${{ github.event.number }} -b "${{ steps.artifact-upload-step.outputs.artifact-url }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ \ No newline at end of file diff --git a/.github/workflows/PushBuild.yaml b/.github/workflows/PushBuild.yaml @@ -0,0 +1,26 @@ +name: compile LaTeX when PR update + +on: + push: + branches-ignore: + - NotBuild + + +jobs: + PRbuild: + name: PushBuild + runs-on: self-hosted + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: compile latex document + uses: ./.github/actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload PDF artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: main + path: ./main.pdf + retention-days: 7+ \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml @@ -0,0 +1,27 @@ +name: compile LaTeX and release PDF + +on: + push: + tags: + - '*.*.*' + +jobs: + build: + name: Build + runs-on: ubuntu-20.04 + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: compile latex document + uses: ./.github/actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release & upload asset + id: create_release-upload_assets + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: ./main.pdf + draft: false + prerelease: false diff --git a/.gitignore b/.gitignore @@ -0,0 +1,3 @@ +out/* +!main.tex +!*.md+ \ No newline at end of file diff --git a/.latexmkrc b/.latexmkrc @@ -0,0 +1,7 @@ +#!/usr/bin/env perl +$pdf_mode = 3; +$latex = 'uplatex -kanji=utf8 -no-guess-input-enc -halt-on-error -interaction=nonstopmode -file-line-error --shell-escape'; +$latex_silent = 'uplatex -kanji=utf8 -no-guess-input-enc -halt-on-error -interaction=batchmode --shell-escape'; +$bibtex = 'upbibtex'; +$dvipdf = 'dvipdfmx %O -o %D %S'; +$makeindex = 'mendex %O -o %D %S';+ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json @@ -0,0 +1,33 @@ +{ + // 使用パッケージのコマンドや環境の補完を有効にする + "latex-workshop.intellisense.package.enabled": true, + "latex-workshop.view.pdf.viewer": "tab", + "latex-workshop.latex.build.clearLog.everyRecipeStep.enabled": false, + + // 生成ファイルを "out" ディレクトリに吐き出すなら + "latex-workshop.latex.outDir": "out", + + // ビルドのレシピ + "latex-workshop.latex.recipes": [ + { + "name": "latexmk", + "tools": [ + "latexmk" + ] + }, + ], + // ビルドのツール + "latex-workshop.latex.tools": [ + { + "name" : "latexmk", + "command" : "wsl.exe", + "args" : [ + "latexmk", + // "-time"で実行時間を表示してくれる。 + "-time", + "-outdir=%OUTDIR%", + "%DOCFILE%.tex" + ] + }, + ] +}+ \ No newline at end of file diff --git a/LICENSE b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Minerva_juppiter + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md @@ -0,0 +1,5 @@ +# latex-template +This is for composition with LateX. + +# references +https://qiita.com/aaaKUKIaaa/items/e373e2e55f96d8c5c1ed diff --git a/main.tex b/main.tex @@ -0,0 +1,4 @@ +\documentclass{article} +\begin{document} +\include{test/人間科学概論} +\end{document}+ \ No newline at end of file diff --git a/test/人間科学概論.tex b/test/人間科学概論.tex @@ -0,0 +1,5 @@ +\documentclass{article} +\begin{document} +\section{福祉} +レポート内容。 +\end{document}+ \ No newline at end of file