Colour and links · Color y enlaces
Adding colour
- The
xcolorpackage lets you colour text. Load it, then wrap words:
- Built-in names include
red,blue,green,orange,gray, and more.
Añadir color
- El paquete
xcolorte permite colorear texto. Cárgalo y luego envuelve las palabras:
\usepackage{xcolor}
...
\textcolor{red}{This is red} and \textcolor{blue}{this is blue}.
- Los nombres integrados incluyen
red,blue,green,orange,gray, entre otros.
Highlights and your own colours
\colorbox{yellow}{text}puts a highlight behind the words.- You can even mix your own:
\textcolor{red!60}{...}is 60% red (lighter).
Resaltados y tus propios colores
\colorbox{yellow}{text}coloca un fondo resaltado detrás de las palabras.- Incluso puedes crear los tuyos propios:
\textcolor{red!60}{...}es 60% rojo (más claro).
Clickable links
- The
hyperrefpackage turns cross-references and web addresses into clickable links:
- Load
hyperreflast in your preamble — it likes to have the final word.
Enlaces clikables
- El paquete
hyperrefconvierte referencias cruzadas y direcciones web en enlaces clikables:
\usepackage{hyperref}
...
Visit \href{https://ctan.org}{CTAN} for packages.
- Carga
hyperrefal final en tu preámbulo — le gusta tener la última palabra.
Common mistakes
- Load
xcolorfor colour andhyperreffor clickable links. - Load
hyperreflast among your packages.
Errores comunes
- Carga
xcolorpara el color yhyperrefpara los enlaces clikables. - Carga
hyperrefal final entre tus paquetes.
Load xcolor, then make the word warning red with \textcolor{red}{warning}. You need both the package and the command. · Carga xcolor, luego haz que la palabra warning sea roja con \textcolor{red}{warning}. Necesitas tanto el paquete como el comando.
Make a clickable link. Load hyperref, then turn the word CTAN into a link with \href{https://ctan.org}{CTAN}. Load hyperref last in the preamble. · Haz un enlace clickeable. Carga hyperref, luego convierte la palabra CTAN en un enlace con \href{https://ctan.org}{CTAN}. Carga hyperref al final del preámbulo.