Skip to content

Commit

Permalink
Merge pull request #82 from WORD-COINS/update-md-template
Browse files Browse the repository at this point in the history
mdテンプレートの文言をアップデート
  • Loading branch information
puripuri2100 authored Oct 11, 2023
2 parents bcfd724 + c1061ae commit 4d224ef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
30 changes: 27 additions & 3 deletions articles/hinagata-markdown/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ LaTeXを手元に用意せずに簡単に記事を書くために用意してい
リポジトリをgitで手元にcloneしたのちにフォルダ名と同じブランチを作成して移動します。

```
$ git checkout -b articles/test
$ git checkout -b articles/my-article-md
```

`main.md`ファイル内に記事を書きます。その際、ファイル冒頭にタイトルと著者名を以下のように必ず記述してください。
とした場合には`articles/hinagata-markdown`フォルダをコピーしたのちにフォルダ名を変更し、`articles/my-article-md`フォルダとします。ブランチ名が異なる場合はフォルダ名も当然異なります。このとき、ブランチ名は必ず`articles/*`という形式にしてください。

`articles/my-article-md`フォルダ内の`main.md`ファイル内に記事を書きます。その際、ファイル冒頭にタイトルと著者名を以下のように必ず記述してください。


```
Expand All @@ -23,10 +25,32 @@ author: 著者名
---
```

さて、今度はリポジトリルートにmain.texファイルを開きます。すると

```TeX
\mainmatter
% 記事(サンプル)
\article{./articles/hinagata}
% 記事(markdownサンプル)
\article{./articles/hinagata-markdown}
% 裏表紙
\article{./articles/back_cover}
```
このようになっていると思いますので、この「記事(サンプル)」と「裏表紙」という
コメントの間に次のような書き込みをしましょう。

```TeX
\article{./articles/my-article-md}
```

このとき、`\article`コマンドの引数には記事のあるフォルダまでのパスを与えてください。

記事の執筆が終わったらcommitをしてpushしましょう。

```
$ git add articles/test
$ git add articles/my-article-md
$ git commit -m "add article"
$ git push
```
Expand Down
2 changes: 2 additions & 0 deletions articles/hinagata/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ \section{記事を追加する}

% 記事(サンプル)
\article{./articles/hinagata}
% 記事(markdownサンプル)
\article{./articles/hinagata-markdown}

% 裏表紙
\article{./articles/back_cover}
Expand Down

0 comments on commit 4d224ef

Please sign in to comment.