9
votes
2answers
147 views

Randomly color paragraphs in LaTeX document

I usually type up my notes for school in LaTeX, and I find it easier to focus on text where the color changes between paragraphs, which is easy to do with old fashioned pen and paper. On LaTeX, ...
3
votes
1answer
132 views

How to color the font of a single row in a table, while using a paragraph column?

I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns. Below is my MWE presented. The header in the first table is as I ...
18
votes
1answer
197 views

Why does a color meant for the first typeset line *only* (with package magaz) affect the *entire* document?

I am trying to make a nice layout that gives a different style to the first line in a section using the package magaz. All examples I have seen feature some variation of small caps {\scshape text} or ...
28
votes
3answers
8k views

How to highlight an entire paragraph?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For ...
4
votes
1answer
1k views

Change paragraph font and background color

I'm submitting a project that involves blocks of code. I figured a nice way to present it by be that paragraphs of code are black text on a light gray background, in courier font. I'm wondering if ...
6
votes
3answers
542 views

New paragraph style for newbie

This question may have already been asked, but with all of my searching, I couldn’t find it. I am new to LaTeX and after a few rough starts, I am finding my way. I am using this tool to create ...
13
votes
3answers
3k views

How to colour multiple paragraphs?

I have a set of commands in my document's preamble that look like this: \newcommand{\nathaniel}[1]{\textcolor{blue}{[#1]}} \newcommand{\anotherAuthor}[1]{\textcolor{darkgreen}{[#1]}} They are to ...
9
votes
1answer
1k views

Is it possible to have multiple paragraphs inside a multicolumn using xcolor or a replacement?

I am getting information written by users in many lines, paragraphs, and I have to put those inside a table, I would like to know if it is possible to instruct LaTeX to accept paragraphs inside a ...
8
votes
1answer
6k views

Change text background within paragraph (with automatic linebreaks)

How do I change the text color as well as the text background color for e.g. a sentence within a paragraph? I know \textcolor for coloring the font and \colorbox for background coloring ...