# key: lfig # name: lfig # -- \begin{figure}[h] \centering \includegraphics[${1:width=\textwidth}]{${2:`(shell-command-to-string "find -name \"*.png\" -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | head -n 1 | awk '{ printf $5 }' ")`}} \caption{$3}% \label{fig:${4:label}} \end{figure} $0