added LaTeX template

This commit is contained in:
2026-05-28 00:47:46 +09:00
parent 67f994d7ee
commit 5f2b85feeb
17 changed files with 183 additions and 60 deletions
+1
View File
@@ -0,0 +1 @@
.intermediates/
+6
View File
@@ -0,0 +1,6 @@
$out_dir = "./out";
$emulate_aux = 1;
$aux_dir = ".intermediates";
$pdf_mode = 5;
$xelatex = "xelatex -synctex=1 -file-line-error -interaction-nonstopmode %O %S";
+3
View File
@@ -0,0 +1,3 @@
# LaTeX Template
Use `vim` for edit/compile TeX files with vimtex plugin or `latexmk` command to compile.
View File
+34
View File
@@ -0,0 +1,34 @@
\documentclass[xelatex,a4paper,11pt,ja=standard]{bxjsarticle}
\usepackage{preamble}
\usepackage{detailed-title}
\reportauthor{高専太郎}
\reporttitle{テストレポート}
\reportdate{AAAA年}{BB月}{CC日}
\turnindate{AAAA年}{BB月}{DD日}
\schoolname{abc工業高等専門学校}
\department{hogefuga科}
\subject{foobazz}
\professor{高専先生}
\studentid{0000}
\seatingnum{0}
\begin{document}
\detailedtitle
\section{Test}
Hello world program implemented in C is listed in listing \ref{lst1}.
\begin{lstlisting}[language=C,caption={Code Listing},label={lst1}]
#include <stdio.h>
int main(int argc, char** argv) {
printf("Hello World!");
return 0;
}
\end{lstlisting}
\end{document}
+44
View File
@@ -0,0 +1,44 @@
\documentclass[japanese,xelatex,a4paper,10.5pt,ja=standard]{bxjsarticle}
\usepackage{depD-experiment}
\usepackage{pgf}
\reportauthor{高専太郎}
\reporttitle{テストレポート}
\reportdate{AAAA年}{BB月}{CC日}
\turnindate{AAAA年}{CC月}{DD日}
\schoolyear{AAAA}
\grade{N}
\department{電子xxxx科}
\subject{実験}
\reportid{0000}
\expgroup{fuga}
\seatingnum{0}
\addExperimentDate{aaaa年 bb月 cc日}
\addResearcher{高専花子}
\addbibresource{./bibliography.bib}
\begin{document}
\experimentTitle
\section{実験目的}
\resetrefcounter
\section{理論}
\resetrefcounter
\section{実験条件}
\resetrefcounter
\section{実験結果}
\resetrefcounter
\section{考察}
\resetrefcounter
\section{まとめ}
\printbibliography[title={参考文献}]{}
\end{document}
+23
View File
@@ -0,0 +1,23 @@
{
description = "Template for LaTeX";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
report-temp.url = "github:kenryuS/report-temp";
};
outputs = { self, nixpkgs, flake-utils, report-temp }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {};
overlays = [];
};
in
{
devShells.default = report-temp.devShells.${system}.latex;
}
);
}
+29
View File
@@ -0,0 +1,29 @@
\documentclass[xelatex,a4paper,11pt,ja=standard]{bxjsarticle}
\usepackage{preamble}
\usepackage{simple-title}
\reportauthor{高専太郎}
\reporttitle{テストレポート}
\reportdate{AAAA年}{BB月}{CC日}
\turnindate{AAAA年}{BB月}{DD日}
\begin{document}
\simpletitle
\section{Test}
Hello \LaTeX{}!
\begin{itemize}
\item{\textrm{Roman}}
\item{\textit{Italic}}
\item{\textbf{Bold}}
\item{\texttt{Typewriter}}
\end{itemize}
\section{テスト}
いろはにほへとちりぬるを
\end{document}