Skip to content

Commit

Permalink
fix(latex/latex-xcolor.md): 使うとよさそうな色名を追記した
Browse files Browse the repository at this point in the history
  • Loading branch information
shotakaha committed Feb 7, 2025
1 parent 7e53dff commit f55fda3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/source/latex/latex-xcolor.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
```latex
\usepackage{xcolor} % 19色
\usepackage[dvipsnames]{xcolor} % +68色
\usepackage[svgnames]{xcolor} % +31色
\usepackage[svgnames]{xcolor} % +151色
\usepackage[x11names]{xcolor} % +289色
\usepackage[dvipsnames,svgnames,x11names]{xcolor}
```
Expand All @@ -23,6 +23,20 @@
すべてを指定することもできます。
それぞれのオプションで増える色名は`xcolor`のドキュメントで確認できます。

基本色は使いにくい色もあるので`dvipsnames`オプションは有効にするとよいと思います。
`dvipsnames`を有効にすると、大文字ではじまる色名が利用可能になります。
以下に、基本色の代替となりそうな色名をリストしてみました。

| 基本色 | `dvipsnames`|
|---|---|
| `red` | `Red` / `OrangeRed` |
| `green` | `Green` / `ForestGreen` |
| `blue` | `Blue` / `RoyalBlue` |
| `cyan` | `Cyan` / `ProcessBlue` |
| `magenta` | `Magenta` / `WildStrawberry` |
| `yellow` | `Yellow` / `Goldenrod` |
| `lime` | `LimeGreen` |

## 文字色したい(`\textcolor`

```latex
Expand Down

0 comments on commit f55fda3

Please sign in to comment.