Here is a command I have:
\newcommand{\numbox}[2]{$^{\circled{#1}}${\fbox{#2}}}
What it does is boxing and numbering a text. However I for the box to break nicely across lines. In command \fbox{text}
the text may stick out of the margins if the line is full. However I want to write a conditional for this case. Such as:
until text finished
after every word:
if there is \linebreak:
end \fbox
continue text with \fbox
In above I added Images!
%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%
I used multiline colored box but as I said, since sentences are small it doesn’t look that nice tbh. Here is the image:
\numbox
definition, but everything after that is harder to understand. What conditional are you wanting? Could you create a MWE that shows where your conditional should do something different?\fbox
es?\fbox{\parbox{.9\textwidth}{ text allowing line breaking in a box}}
?