Consider the MWE below:
\documentclass{article}
\usepackage[vmargin=3cm]{geometry}
\usepackage{l3draw}
\usepackage{lipsum}
\ExplSyntaxOn
% Define color for notepad rules
\color_set:nnn {notepadrulecolor} { RGB } { 217, 244, 244 }
% Command to draw the notepad background
\cs_new_protected:Nn \draw_notepad_background:
{
\draw_begin:
\draw_linewidth:n { 1pt }
\color_select:n { notepadrulecolor }
\draw_path_moveto:n { 2cm, 2cm }
\draw_path_lineto:n { 2cm , 27cm }
\draw_path_use_clear:n { stroke }
\draw_end:
}
% Hook to draw background on every page
\AddToHook{shipout/background}
{
\draw_notepad_background:
}
\ExplSyntaxOff
\begin{document}
\lipsum[1-14]
\end{document}
What I am currently trying to achieve is to draw a vertical line that spans the height of the page and is on the left margin of the text area. I know this can be done via TikZ but am trying to recreate it with l3draw
. Any assistance would be appreciated.
draw
prefix for a custom macro as it is reserved for thel3draw
module.