Last active
May 1, 2023 13:42
-
-
Save yunkai1841/aa139dc00729ac78159d1bb9c445e0ca to your computer and use it in GitHub Desktop.
kisoji template for uplatex and vscode settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt, a4paper, uplatex]{jsarticle} | |
\fontsize{11pt}{18pt} | |
\usepackage[top=30truemm,bottom=30truemm,left=25truemm,right=25truemm]{geometry} | |
% title setting | |
\setcounter{secnumdepth}{4} | |
\usepackage{titlesec} | |
\titleformat*{\section}{\mc\normalsize} | |
\titleformat*{\subsection}{\mc\normalsize} | |
\titleformat*{\subsubsection}{\mc\normalsize} | |
\titleformat*{\paragraph}{\mc\normalsize} | |
\titlespacing*{\section}{0pt}{0pt}{0pt} | |
\titlespacing*{\subsection}{0pt}{0pt}{0pt} | |
\titlespacing*{\subsubsection}{0pt}{0pt}{0pt} | |
\titlespacing*{\paragraph}{0pt}{0pt}{0pt} | |
% pagenumber setting | |
\usepackage{fancyhdr} | |
\usepackage{lastpage} | |
\pagestyle{fancy} | |
\renewcommand{\headrulewidth}{0pt} | |
\fancyhead[L,C,R]{} | |
\fancyfoot[C]{} | |
\fancyfoot[R]{p.\thepage / \pageref{LastPage}} | |
% eq fig tab number setting | |
\makeatletter | |
\@addtoreset{equation}{section} | |
\def\theequation{\thesection.\arabic{equation}} | |
\@addtoreset{figure}{section} | |
\def\thefigure{\thesection.\arabic{figure}} | |
\@addtoreset{table}{section} | |
\def\thetable{\thesection.\arabic{table}} | |
\makeatother | |
% packages | |
\usepackage{amsmath} | |
\usepackage{bm} | |
\usepackage[dvipdfmx]{graphicx} | |
\usepackage{multirow} | |
\usepackage{here} | |
\usepackage{indentfirst} | |
% end of setting======================================================= | |
\begin{document} | |
\begin{titlepage} | |
\begin{center} | |
理工学基礎実験報告書(対面実験用)\\ | |
\end{center} | |
\begin{itemize} | |
\item[■] 実験科目名: | |
\item[■] 実験項目名: | |
\item[■] 報告形式: | |
\item[■] グループ番号: | |
\item[■] 班番号: | |
\item[■] 学籍番号: | |
\item[■] 氏名: | |
\item[■] 実験日:2021 年 | |
\end{itemize} | |
\end{titlepage} | |
\section{実験目的} | |
\section{実験方法} | |
%! 箇条書き | |
\section{データ整理方法} | |
\section{文献} | |
%! 年度の後のピリオドを忘れずに | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"latex-workshop.latex.tools": [ | |
{ | |
"name": "uplatex", | |
"command": "uplatex", | |
"args": [ | |
"-interaction=nonstopmode", | |
"-synctex=1", | |
"%DOC%", | |
] | |
}, | |
{ | |
"name": "dvipdfmx", | |
"command": "dvipdfmx", | |
"args": [ | |
"%DOCFILE%.dvi" | |
] | |
}, | |
{ | |
"command": "ptex2pdf", | |
"args": [ | |
"-l", | |
"-ot", | |
"-kanji=utf8 -synctex=1", | |
"%DOCFILE%.tex" | |
], | |
"name": "Step 1: ptex2pdf" | |
}, | |
], | |
"latex-workshop.latex.recipes": [ | |
{ | |
"name": "uplatex", | |
"tools": [ | |
"uplatex", | |
"uplatex", | |
"dvipdfmx" | |
] | |
}, | |
{ | |
"name": "ptex2pdf", | |
"tools": [ | |
"ptex2pdf", | |
"ptex2pdf" | |
] | |
}, | |
], | |
"latex-workshop.latex.autoBuild.run": "onFileChange", | |
"latex-workshop.latex.autoClean.run": "onBuilt", | |
"latex-workshop.latex.build.clearLog.everyRecipeStep.enabled": false, | |
"latex-workshop.view.pdf.viewer": "tab", | |
"latex-workshop.latex.clean.fileTypes": [ | |
"*.aux", | |
"*.bbl", | |
"*.blg", | |
"*.idx", | |
"*.ind", | |
"*.lof", | |
"*.lot", | |
"*.out", | |
"*.toc", | |
"*.acn", | |
"*.acr", | |
"*.alg", | |
"*.glg", | |
"*.glo", | |
"*.gls", | |
"*.ist", | |
"*.fls", | |
"*.log", | |
"*.fdb_latexmk", | |
"*.snm", | |
"*.nav", | |
"*.dvi", | |
], | |
"editor.tabSize": 2, | |
} |
ubuntu20.04(wsl)においてtexlive-lang-japanese
しかインストールしていない場合は、環境が足りないので、別途texlive-formats-extra
をインストールする必要があるようです。
ubuntu20.04(wsl)のtexlive2019では自動でフォントを埋め込んでくれないので、文書全体がゴシック体になってしまうようです。
sudo kanji-config-updmap-sys
コマンドで設定できました。
TeX wiki を参考に
sudo ln -s /mnt/c/Windows/Fonts /usr/share/fonts/windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
注意事項
ご利用は利用者の自己責任でお願いします
当方は一切の責任・義務を負いかねます