I'm studying the nice code from Gonzalo Medina in from Mark (highlight) a paragraph (\item{...}) with a squiggly line for later attention . I love it! It will be very useful to me. However, I have noticed that two problems are appearing and I don’t know how to fix them.
A first problem: when the text between \Startsquiggly and \Endsquiggly generates two page breaks (so 3 pages in play) then the line in the margin does not cover page 2, just after the first page break, and resumes on page 3, after the second page break, along the remaining text to \Endsquiggly. Is there a command in your code that could allow the stroke to apply to page 2 as well? Example:
\begin{document}
\Startsquiggly \lipsum[1]\Endsquiggly
\Startsquiggly\lipsum[1-11]\Endsquiggly
\end{document}
where the action of the command is not effective on page 2.
A second problem: if I only type:
\begin{document}
\Startsquiggly\lipsum[1-11]\Endsquiggly
\end{document}
then the editor gives me the following error message: ! Package pgf Error: No shape named `b 'is known.
Referring, I believe, to the tikzmark{b} in your code which seems to get lost ... However, this second problem does not occur in the first example. Can you think of a solution to these problems?
NB:
- I see also Draw a vertical line on the margin across several pages, it very nice but i don't know how i can i have several parallel lines in left margin and not only one.
- I see also Multiple left margin bars using mdframed package and it's ok but text width paragraph changes with the number of lines and i don't want that. And i don't understand the code too difficult for me.
- I see also Putting a bar in the margin with pdfcomment package but there is the same first problem, it doesn't work on page 2 (and also i can't compile in xelatex....).
