LoginSignup
3
0

More than 1 year has passed since last update.

VS CodeでのLaTeXの強制改行を召喚するスニペット

Last updated at Posted at 2022-06-06

なかなか強制改行\\をスニペットで使える方法が無かったので,試行錯誤でやってみたらできたのでメモ程度に書いておきます.

方法としては,\\\\\\\\でできます.(\を8回)

以下は共同実験者が書けるスニペットです.

latex.json
    "共同実験者": {
        "prefix": "Collaborator",
        "description": "Insert Collaborator tabular",
        "body": [
            "% 共同実験者の表を作成",
            "\\begin{table}[hbtp]",
            "\t\\caption{共同実験者}",
            "\t\\label{table:Collaborator}",
            "\t\\centering",
            "\t\\begin{tabular}{lcr}",
            "\t\t\\hline",
            "\t\t学籍番号\t& 氏名 \\\\\\\\",
            "\t\t\\hline \\hline",
            "\t\t学籍番号$1 & hoge$2\t \\\\\\\\",
            "\t\t学籍番号$3 & fuga$4\t \\\\\\\\",
            "\t\t学籍番号$5 & hogegfuga$6\t \\\\\\\\",
            "\t\t\\hline",
            "\t\\end{tabular}",
            "\\end{table}"
        ]
    }

latex.jsonに記述すれば使えると思います.(カンマ,に注意!)

では.

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0