LaTeXのコマンド構造
LaTeXのpreambleのtitleformatの例
code:sample.tex
\titleformat{\chapter} % command
block % shape
{\normalfont\huge\bfseries} % format
{\thechapter.} % label
{1em} % sep
{\Huge} % before-code
\titlespacing*{\chapter}{0pt}{-19pt}{0pt} % code
\vspace{-0.5ex} % after-code
コメントはここを参考に書いた Customize chapters and sections
最終的に、 Overleafのアカウントを作って試行錯誤しました