I want to LaTeX some notes. The result should look like this:

enter image description here

The numbers are fine with me. The problem is how to draw those vertical lines (with the hook), particularly inside the itemize environment.

The result should be a new environment which automatically draws these vertical lines (with the right colours and the hooks). Note that there shouldn't be a line if the input is only one line long (or maybe a very short line with a hook).


2 Answers 2


Here is a quick try with Tikz:



            \node (box){%
                    \item   ##1
            \coordinate[shift={(-\itemsep,-0.75em)}] (boxne) at (box.north west);
            \coordinate[shift={(-\itemsep,0.25em)}] (boxse) at (box.south west);
            \draw[\colorhook] (boxne) -- (boxse) -- ++ (0.2,0);
        \node (box)\bgroup
        \node[anchor=south west,color=\colorhook] (title) at (box.north west){\titletext};
        \node[anchor=west] (subtitle) at (title.east){\subtitletext};
        \draw[\colorhook] (title.south west) -- (title.south east);
        \coordinate[shift={(2em,0)}] (hookstart) at (title.south west);
        \coordinate[shift={(0,0)}] (boxsw) at (box.south west);
        \draw[\colorhook,line width=1.5pt] (hookstart) -- (hookstart|-boxsw) -- ++ (0.2,0);







The result:

enter image description here


tikz can do that if the page does not change, quite easily (it probably can also do that if the page changes, but it will be more tricky) using remember picture option and redefining \item.

  • 2
    Just give us an MWE, that we can try it without study the documentation.
    – Holle
    Feb 26, 2012 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.