Created
March 21, 2024 14:44
-
-
Save Zeta611/2e195a6f37657ecf7e471891c7db01bd to your computer and use it in GitHub Desktop.
[mkdoc.sh] Make a LaTeX document #automation
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
#!/bin/bash | |
name="$1" | |
if [ -z "$name" ]; then | |
echo "Usage: $0 <name>" | |
exit 1 | |
fi | |
mkdir "$name" | |
echo '$pdf_mode = 4;' >"$name/.latexmkrc" | |
cat <<EOF >"$name/$name.tex" | |
\documentclass{zdoc} | |
\usepackage{hyperref} | |
\title{} | |
\author{이재호} | |
\date{\today} | |
\begin{document} | |
\maketitle | |
\end{document} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment