I'm reading a lot of papers, and writing notes on them as I go. I want to make a single document containing one \section
for every proceedings-year
, with a \subsection
for every paper. (I'm using biblatex
).
An example:
\section{Proceedings-Year}
\subsection{\citetitle*{foobarbaz}}
\subsubsection{Topics Addressed}
\begin{itemize}
\item Foo
\item Bar
\item FooBar
\end{itemize}
\subsubsection{Paper Quality}
\textbf{Medium}: This paper is well-written, but foo bar baz blah.
\subsubsection{Notes}
Some notes on the paper. It might be interesting, or not, or whatever.
\subsubsection{Citation}
\begin{quote}
\fullcite{foobarbaz}
\end{quote}
\hrulefill
I'm happy with the layout, but I don't like copy-pasting this layout every time I want to add another section. (Plus, fiddling with the layout gets very tedious quickly).
What's the best way to automatically insert a copy of this section template? Approaches I can think of:
- Write a macro. However, I have at least 7 bits of text I'd need to pass in (in the given example), more if a paper covers more than 3 topics. (I've never written a macro, and looking at examples I'm not sure this is the best approach).
- Insert automatically (at the editor level). That's fairly easy to do with a
vim
macro, but means if I edit the layout of the section I'll have to edit lots of times. - Create a new document class. It seems like this could work, but I have no experience doing so, and I think perhaps it's overkill?
I'm not asking for a full solution (although if one is given, I wouldn't complain), but rather the right (easiest? Quickest?) direction to go in to solve this. Any thoughts are appreciated.
emacs
: then you can either use something like yasnippet if you want to automatically insert a code template and take 'LaTeX'-style notes, or you can use org-mode to take notes, which can then be exported to a large number of different formats. (I preferorg-mode
for things like note-taking.)