[
  {
    "path": ".github/workflows/demo-file-generation.yml",
    "content": "name: generate demo files\n\non:\n  push:\n    branches: [ main ]\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v3\n\n    - name: generate pdf\n      run: | \n        docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=\"ja_JP.UTF-8\" -e MARP_USER=\"$(id -u):$(id -g)\" marpteam/marp-cli demo.md --theme themes/academic.css --pdf --allow-local-files\n      \n    - name: generate png\n      run: |\n        docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=\"ja_JP.UTF-8\" -e MARP_USER=\"$(id -u):$(id -g)\" marpteam/marp-cli demo.md --theme themes/academic.css --images --allow-local-files\n      \n    - name: commit & push\n      run: |\n        if ! git diff --exit-code --quiet\n        then\n          git add -A\n          git config user.name github-actions\n          git config user.email github-actions@github.com\n          git add .\n          git commit -m \"update demo files\"\n          git push\n        fi\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 Kaito Sugimoto\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# marp-theme-academic\n\n![](./demo.001.png)\n![](./demo.002.png)\n![](./demo.003.png)\n![](./demo.004.png)\n![](./demo.005.png)\n![](./demo.006.png)"
  },
  {
    "path": "demo.md",
    "content": "---\nmarp: true\ntheme: academic\npaginate: true\nmath: katex\n---\n\n<!-- _class: lead -->\n\n# Marpで研究室の発表スライドを作る\n\n#### 〜Beamerを卒業しよう〜\n\n<br>\n\n**著者 太郎**\nほげほげ研究室 M2\nYYYY/MM/DD\n\n---\n\n<!-- _header: 目次 -->\n\n1. はじめに\n1. コードブロック\n1. 数式\n1. 図\n\n---\n\n<!-- _header: はじめに -->\n\n- Marp とは **Markdown** で**スライド**を作成するためのソフトウェアである。\n  - 基本的な Markdown のシンタックスがサポートされている。\n- Markdown 上で `---` という区切り線を入れるだけで、次のページに移動することができる。$^1$\n\n> 1: Marp は CommonMark という Markdown の仕様に沿って開発されているため、CommonMark に含まれていない「脚注」の文法（`[^1]` を使うもの）が提供されていない。そこで、https://github.com/marp-team/marp/discussions/150#discussioncomment-1302384 を参照して擬似的に脚注を実現した。\n\n---\n\n<!-- _header: コードブロック -->\n\n```python\nimport torch\nprint(torch.cuda.is_available())\n```\n\nこんな感じでコードブロックを書くことができる。\n\n```python\nfrom transformers import AutoModelForMaskedLM, AutoTokenizer\nmodel = AutoModelForMaskedLM.from_pretrained(\"cl-tohoku/bert-base-japanese-whole-word-masking\")\ntokenizer = AutoTokenizer.from_pretrained(\"cl-tohoku/bert-base-japanese-whole-word-masking\")\n\ninputs = tokenizer.encode_plus(\"私はとても[MASK]です。\", return_tensors='pt')\noutputs = model(**inputs)\ntokenizer.convert_ids_to_tokens(outputs.logits[0][1:-1].argmax(axis=-1))\n```\n\n横幅は自動調整される（ドキュメントの[Auto-scaling](https://github.com/marp-team/marp-core#auto-scaling-features)を参照）。\n\n---\n\n<!-- _header: 数式 -->\n\n$$ I_{xx}=\\int\\int_Ry^2f(x,y)\\cdot{}dydx $$\n\n$$\nf(x) = \\int_{-\\infty}^\\infty\n    \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\n    \\,d\\xi\n$$\n\nこんな感じで数式を書くことができる。もちろんインラインの $\\LaTeX$ も使える。  \nついでに絵文字も使える:smile:\n\n---\n\n<!-- _header: 図 -->\n\n1. まず[このいらすとやのリンク](https://www.irasutoya.com/2018/10/blog-post_723.html)から画像（`kenkyu_woman_seikou.png`）を右クリックでダウンロードしてください。\n2. この Markdown のあるディレクトリの中に `images` という名前のディレクトリを作り、先ほどダウンロードした画像を配置してください。これで準備が整いました。\n\n![w:300 center](./images/kenkyu_woman_seikou.png)\n"
  },
  {
    "path": "themes/academic.css",
    "content": "/* @theme academic */\n\n@import 'gaia';\n@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');\n@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');\n\n:root {\n  --color-background: #fff;\n  --color-foreground: #333;\n  --color-highlight: #800000;\n}\n\nsection {\n  background-image: none;\n  font-family: 'Noto Sans JP', sans-serif;\n  padding-top: 90px;\n  padding-left: 40px;\n  padding-right: 40px;\n}\n\n/* https://github.com/marp-team/marpit/issues/271 */\nsection::after {\n  font-weight: 700;\n  content: attr(data-marpit-pagination) '/' attr(data-marpit-pagination-total);\n}\n\nul ul {\n  font-size: 0.9em;\n}\n\nsection.lead h1 {\n  color: #800000;\n  text-align: left;\n}\nsection.lead h1 strong {\n  -webkit-text-stroke: 1px #800000;\n}\nsection.lead h2 {\n  color: #800000;\n  text-align: left;\n}\nsection.lead h2 strong {\n  -webkit-text-stroke: 1px #800000;\n}\nsection.lead h3 {\n  color: #800000;\n  text-align: left;\n}\nsection.lead h3 strong {\n  -webkit-text-stroke: 1px #800000;\n}\nsection.lead h4 {\n  color: #800000;\n  text-align: left;\n}\nsection.lead h4 strong {\n  -webkit-text-stroke: 1px #800000;\n}\nsection.lead h5 {\n  color: #800000;\n  text-align: left;\n}\nsection.lead h5 strong {\n  -webkit-text-stroke: 1px #800000;\n}\nsection.lead p {\n  text-align: right;\n}\n\nheader {\n  background-color: #800000;\n  color: #fff;\n  font-size: 1em;\n  font-weight: 700;\n}\n\nblockquote {\n  max-width: 90%;\n  border-top: 0.1em dashed #555;\n  font-size: 60%;\n  position: absolute;\n  bottom: 20px;\n}\nblockquote::before {\n  content: \"\";\n}\nblockquote::after {\n  content: \"\";\n}\n\nimg[alt~=\"center\"] {\n  display: block;\n  margin: 0 auto;\n}\n\ncode {\n  font-family: 'Source Code Pro', monospace;\n}\n"
  }
]