Minimal Package Skeleton
mypackage.sty
Use the Package
use-package.tex
Build reusable LaTeX packages (.sty) for custom commands and environments across multiple projects.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypackage}[2026/02/16 Custom macros]
\RequirePackage{xcolor}
\newcommand{\todoitem}[1]{\textcolor{red}{TODO: #1}}
\newenvironment{note}{\begin{quote}\itshape}{\end{quote}}
\endinput
\documentclass{article}
\usepackage{mypackage}
\begin{document}
\todoitem{Refine experiment section}
\begin{note}
Internal drafting note.
\end{note}
\end{document}
Was this page helpful?