LaTeXを用いて論文を書くにあたって知っておくべき記法

はじめに

表題の通り,そんなこと知らねえよって自分が思ったことを書いておきます.

括弧 ()

  • 括弧は前にスペースを空ける
  • これはLaTeXに限った話ではないですが

  • Machine Learning (ML)
  • Machine Learning(ML)

引用符

  • 文章を囲むときに,"Foge foge" とダブルクォーテーションで囲ってはいけない

  • ``Foge foge''
  • "Foge foge"

参考

  • bibファイルの作成を,dblpなどを使って作成すると思うが,このときに,以下のような論文を参照したとする
  author    = {Mubin Ul Haque and
               Isuru Dharmadasa and
               Zarrin Tasnim Sworna and
               Roshan Namal Rajapakse and
               Hussain Ahmad},
  title     = {"I think this is the most disruptive technology": Exploring Sentiments
               of ChatGPT Early Adopters using Twitter Data},
  journal   = {CoRR},
  volume    = {abs/2212.05856},
  year      = {2022},
  url       = {https://doi.org/10.48550/arXiv.2212.05856},
  doi       = {10.48550/arXiv.2212.05856},
  eprinttype = {arXiv},
  eprint    = {2212.05856},
  timestamp = {Mon, 02 Jan 2023 15:09:55 +0100},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2212-05856.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
  • すると,"I think this is the most disruptive technology" の部分が正しくないので,自分で書き直す必要がある
  • どうでも良いが,この論文のタイトルはそのまま "" となっている

図表・数式・アルゴリズム・セクション等の番号の参照

  • 例えば,\label{table_foge} というものを参照したいとき,Table\ref{table_foge}Table \ref{table_foge}と書いてはいけない

  • Table~\ref{table_foge}
  • Table\ref{table_foge}
  • Table \ref{table_foge}

  • ~は半角スペースを空けるが,改行はされない

  • テンプレート等ではこのようになっているのをよく見ると思う

おわりに

思い出したら追加します