0

I am looking for a way to define a new environment in LaTeX that allows me to quickly write certain text passages in an altered way, such as smaller font-size and different color.

What i'm specifically looking for is to define an enrivonment such that i can, for example, write

\begin{smallredtext}
this is supposed to be red and font-size small.
\end{smallredtext}

I tried looking for existing solutions but couldn't find anything helpful so far. I'd really appreciate any help.

Thanks in advance!

2
  • \newenvironment{smallredtext}{\small\color{red}}{\par} Commented May 7, 2021 at 21:58
  • oh wow, that was incredibly quick and exactly what i was looking for. Thank you David. I'll happily accept your comment as an answer, if you'd like to post it as an answer.
    – Zest
    Commented May 7, 2021 at 22:01

1 Answer 1

2

You just need color (or xcolor) package and

\newenvironment{smallredtext}{\small\color{red}}{\par}
1
  • Thank you very much @David. I'm allowed to accept your answer in a few minutes.
    – Zest
    Commented May 7, 2021 at 22:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .