Skip to content

Instantly share code, notes, and snippets.

@Zeta611
Created March 21, 2024 14:44
Show Gist options
  • Save Zeta611/2e195a6f37657ecf7e471891c7db01bd to your computer and use it in GitHub Desktop.
Save Zeta611/2e195a6f37657ecf7e471891c7db01bd to your computer and use it in GitHub Desktop.
[mkdoc.sh] Make a LaTeX document #automation
#!/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