I am using tcolorbox to highlight text. However, the color box starts from a new line even if I start highlight from the middle of a line.
\documentclass{article}
\usepackage[most]{tcolorbox}
\tcbset{enhanced jigsaw, boxrule=0pt,colback=yellow,arc=0pt,auto outer arc,left=0pt,right=0pt,boxsep=0pt}
\begin{document}
This is a text that
\begin{tcolorbox}
I want to highlight. This further continues to multiple lines and paragraphs.
\end{tcolorbox}
\end{document}
I would like the highlight to start from the middle of line and then continue till the end of highlighted section of text which may span multiple lines and paragraphs, and may also end in the middle of a line.
I have also tried soul
package with \hl
command but it leaves a white space between the lines even if I change the height of highlight.
Thanks in advance for help.
{}
icon above the edit window. This will, to the editor, appear as if the code is indented 4 spaces. But to the reader, it will appear as a code block.tcolorbox
always starts a new line while atcbox
cannot do it. But atcbox
can not do what you want. Try with solutions in tex.stackexchange.com/questions/5959/…