Colorbox-Textformat

Colorbox-Textformat

Ich verwende LaTeX Overleaf (overleaf.com) jetzt seit fast einem Jahr. Ich muss einige Dinge hervorheben, also habe ich das xcolorPaket verwendet. Aber dann wurde mein Text etwas seltsam formatiert, sodass ich es \\mehrmals verwenden musste. Gibt es auch eine Möglichkeit, beide Seiten des Textblocks gerade zu machen? Vielen Dank für Ihre Hilfe! Der Code ist unten:

\colorbox{yellow}{Setting in the opening chapters of ``Skellig" is representative of a dark and suspenseful atmosphere.} \colorbox{ForestGreen}{David Almond} \colorbox{ForestGreen}{has established this through utilising the effects of different types of imagery to appeal to the sense of the reader.}\\
\colorbox{red}{This is demonstrated in the line ``The place stank of rot and dust."} \colorbox{ForestGreen}{Here, Almond has used olfactory imagery to} \colorbox{ForestGreen}{encourage an authentic setting that the reader can empathise with. This has helped to create a dark and suspenseful} \colorbox{ForestGreen}{atmosphere.} \colorbox{red}{Another example of this is seen in the sentence ``There were old chests of drawers and broken}\\ \colorbox{red}{wash-basins and bags of cement,} \colorbox{red}{ancient doors leaning against the walls, deck chairs with the cloth seats rotted away."} \colorbox{ForestGreen}{Here, Almond has used visual imagery to stimulate the reader's visual senses. This contributes to the dark and}\\ \colorbox{ForestGreen}{suspenseful atmosphere by giving the reader an idea of the ancient garage.} \colorbox{RoyalBlue}{David Almond has successfully}\\ \colorbox{RoyalBlue}{created a dark and suspenseful atmosphere by using different types of imagery in the opening chapters.}\\

verwandte Informationen