Colour and links · Warna dan tautan
Adding colour
- The
xcolorpackage lets you colour text. Load it, then wrap words:
- Built-in names include
red,blue,green,orange,gray, and more.
Menambahkan warna
- Paket
xcolormemungkinkan Anda mewarnai teks. Muat, lalu bungkus kata-kata:
\usepackage{xcolor}
...
\textcolor{red}{This is red} and \textcolor{blue}{this is blue}.
- Nama bawaan meliputi
red,blue,green,orange,gray, dan lain-lain.
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).
Sorotan dan warna Anda sendiri
\colorbox{yellow}{text}menempatkan sorotan di belakang kata-kata.- Anda bahkan bisa mencampurkan warna Anda sendiri:
\textcolor{red!60}{...}adalah 60% merah (lebih terang).
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.
Tautan yang dapat diklik
- Paket
hyperrefmengubah referensi silang dan alamat web menjadi tautan yang dapat diklik:
\usepackage{hyperref}
...
Visit \href{https://ctan.org}{CTAN} for packages.
- Muat
hyperrefterakhir di preamblen Anda — ia ingin memiliki kata terakhir.
Common mistakes
- Load
xcolorfor colour andhyperreffor clickable links. - Load
hyperreflast among your packages.
Kesalahan umum
- Muat
xcoloruntuk warna danhyperrefuntuk tautan yang dapat diklik. - Muat
hyperrefterakhir di antara paket-paket Anda.
Load xcolor, then make the word warning red with \textcolor{red}{warning}. You need both the package and the command. · Muat xcolor, lalu buat kata warning menjadi merah dengan \textcolor{red}{warning}. Anda membutuhkan kedua paket dan perintah ini.
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. · Buat tautan yang dapat diklik. Muat hyperref, lalu ubah kata CTAN menjadi tautan dengan \href{https://ctan.org}{CTAN}. Muat hyperref terakhir di pendahuluan.