{"id":25521911,"url":"https://github.com/mu373/sfc-thesis-template","last_synced_at":"2025-06-10T09:34:24.220Z","repository":{"id":78190565,"uuid":"376713180","full_name":"mu373/sfc-thesis-template","owner":"mu373","description":"LaTeX template for SFC thesis (graduation project)","archived":false,"fork":false,"pushed_at":"2022-01-06T01:58:57.000Z","size":277,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T12:51:25.106Z","etag":null,"topics":["latex","latex-template","sfc"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mu373.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-14T05:30:37.000Z","updated_at":"2025-03-01T09:59:20.000Z","dependencies_parsed_at":"2023-03-23T04:35:03.823Z","dependency_job_id":null,"html_url":"https://github.com/mu373/sfc-thesis-template","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu373%2Fsfc-thesis-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu373%2Fsfc-thesis-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu373%2Fsfc-thesis-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu373%2Fsfc-thesis-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mu373","download_url":"https://codeload.github.com/mu373/sfc-thesis-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu373%2Fsfc-thesis-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259048507,"owners_count":22797750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latex","latex-template","sfc"],"created_at":"2025-02-19T18:17:35.322Z","updated_at":"2025-06-10T09:34:24.200Z","avatar_url":"https://github.com/mu373.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SFC卒業論文用LaTeXテンプレート\n\n## 概要\n\nこちらの[テンプレート](https://github.com/sasn0/thesis-overleaf-template)をベースに作った、SFC卒業論文用LaTeXテンプレートです。大元のフォーク元テンプレートは、「関連リンク」に記載しています。\n\n主に以下のような変更を加えています。\n\n- PDF目次に対応（`hyperref`を使用）\n- 元号を令和に変更（元号を変数として任意に定義可能なよう変更）\n- commit hashをフッターに追加（`gitinfo2`を使用）\n- 行間をダブルスペースに変更\n- 参考文献スタイルをjunsrtに変更\n- 数式フォントをLatin Modernに変更\n\n## 使い方\n\n### テンプレートをダウンロードする\n- [Releases](https://github.com/mu373/sfc-thesis-template/releases/)からダウンロードできます\n- `main.pdf`はこのテンプレートをビルドしたPDFです\n\n\n### PDFを書き出す\n- `latexmk`で一発でPDFを作成できます。\n- LaTeX Workshopを入れたVSCodeで執筆すると便利です。ファイルを保存するたびに自動でビルドしてくれて、PDFを見ながら執筆ができます。（環境構築については下に簡単に記載してあります）\n\n### PDFのフッターにcommit hashを入れる\n\nページのフッターにcommitハッシュとcommit日時を入れておくと、PDF（あるいはそれを印刷したもの）を見るときに、どの時点でのコミットに対応しているものかを確認できて便利です。`gitinfo2`というLaTexパッケージを使います。\n\n- `post-commit`というファイルを`.git/hooks/`内に置かないと、LaTeXの`gitinfo2`がコミット情報を認識してくれません\n- 以下のスクリプトでセットアップが必要です。（中身をもらえればわかりますが、単純に`post-commit`を`.git/hooks/`内にコピーしているだけです）\n\n```sh\nsh ./scripts/setup.sh\n```\n\n- 提出用のPDFを生成するときには`main.tex`で以下をコメントアウトします（フッターからコミット情報が入らなくなる）\n\n```tex\n\\usepackage[mark]{gitinfo2}\n\\renewcommand{\\gitMark}{commit \\gitAbbrevHash\\space(\\gitAuthorDate)}\n```\n\n### Overleafで使う場合\n1. 自分のレポジトリに `git clone` する\n2. overleafのアカウントで、`import from github` を選ぶ\n3. `Menu` から、コンパイル =\u003e `LaTeX` を選ぶ\n4. `Menu` から、Main Document =\u003e `main.tex` を選ぶ\n\n\n### コメントを定義する\nthesis.sty内で、コメントを定義することができます。\n\nコメントを消したかったら、trueをコメントアウトして、falseのコメントアウトを外せばOKです。\n```\n\\notestrue          %コメントoff時コメントアウト\n%\\notesfalse        %コメントon時コメントアウト\n```\n\n下記のようにすれば、コメントの色と名称の指定ができます。\n```\n\\newcommand{\\sassan}[1]{\\colornote{red}{#1}{sassan}}\n\\newcommand{\\harusame}[1]{\\colornote{blue}{#1}{harusame}}\n```\n\n\n## 参考：環境構築\nMac上で、VS CodeのLaTeX Workshopを使って執筆するワークフローを想定しています。\n\n- MacTeXのGUIなしバージョンをインストールする\n```sh\nbrew install mactex-no-gui\nsudo tlmgr update --self --all\n```\n\n- VS Codeに[LaTeX Workshop](https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop)をインストールする\n- VS Codeの設定（JSONファイル）に以下を追加する\n```json\n    \"latex-workshop.latex.recipes\": [\n        {\n            \"name\": \"latexmk\",\n            \"tools\": [\n                \"latexmk\"\n            ]\n        },\n    ],\n    \"latex-workshop.latex.tools\": [\n        {\n            \"name\": \"latexmk\",\n            \"command\": \"latexmk\",\n        },\n    ],\n    \"latex-workshop.latex.clean.enabled\": true,\n    \"latex-workshop.latex.clean.fileTypes\": [\n        \"*.aux\",\n        \"*.bbl\",\n        \"*.blg\",\n        \"*.idx\",\n        \"*.ind\",\n        \"*.lof\",\n        \"*.lot\",\n        \"*.out\",\n        \"*.toc\",\n        \"*.acn\",\n        \"*.acr\",\n        \"*.alg\",\n        \"*.glg\",\n        \"*.glo\",\n        \"*.gls\",\n        \"*.ist\",\n        \"*.fls\",\n        \"*.log\",\n        \"*.fdb_latexmk\",\n        \"*.synctex.gz\",\n        \"_minted*\",\n        \"*.nav\",\n        \"*.snm\",\n        \"*.vrb\",\n        \"*.run.xml\",\n        \"*.dvi\",\n        \"*.bcf\"\n    ],\n    \"latex-workshop.view.pdf.viewer\": \"tab\",\n    \"latex-workshop.latex.autoClean.run\": \"onBuilt\",\n    \"workbench.activityBar.visible\": false,\n```\n\n- VS Code上で`command + shift + P`して、`Build LaTeX project` `View LaTeX PDF file`するとPDFが表示されるはずです。\n\n\n## ライセンス\n元テンプレと同様に、私が改造した部分についてもすべての権利を放棄します。\n\n## 関連リンク\n- [@kurokobo 卒業論文用テンプレート](https://wiki.kurokobo.com/index.php?LaTeX)\n- [ymrl/thesis-template](https://github.com/ymrl/thesis-template)\n- [sasn0/thesis-overleaf-template](https://github.com/sasn0/thesis-overleaf-template)\n- [LaTeX with VSCodeな環境を整える（Mac）](https://m12watanabe1a.hatenablog.com/entry/2019/09/30/020036)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu373%2Fsfc-thesis-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmu373%2Fsfc-thesis-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu373%2Fsfc-thesis-template/lists"}