我真的很想定义一些新颜色,但我在网上找到的教程似乎不起作用。有人能告诉我我做错了什么吗?谢谢!另外,还有其他方法可以创建兰花色吗?
\documentclass[a4paper, 11pt]{article}
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
\usepackage{fullpage} % changes the margin
\usepackage[swedish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usetikzlibrary{positioning}
\usepackage{titlesec}
\titleformat{\subsection}[runin]{}{}{}{}[]
\usepackage{libertine}
\usepackage{amssymb}
\newtheorem{thm}{Theorem}
\usepackage{amsthm}
\newcommand*{\QEDB}{\hfill\ensuremath{\square}}%
\usepackage{pgf, tikz}
\usetikzlibrary{arrows, automata}
\usepackage{enumitem}
\usepackage[dvipsnames]{xcolor}
\colorlet{Lila}{orchid!70!}
\begin{document}
答案1
主要存在两个问题:
- 你必须
\usepackage[dvipsnames]{xcolor}
在加载之前加载\usepackage{tikz}
Orchid
不应该orchid
此外,请不要多次加载包。
\documentclass[a4paper, 11pt]{article}
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
\usepackage{fullpage} % changes the margin
\usepackage[swedish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usetikzlibrary{positioning}
\usepackage{titlesec}
\titleformat{\subsection}[runin]{}{}{}{}[]
\usepackage{libertine}
\usepackage{amssymb}
\newtheorem{thm}{Theorem}
\usepackage{amsthm}
\newcommand*{\QEDB}{\hfill\ensuremath{\square}}%
\usepackage{pgf}
%, tikz}
\usetikzlibrary{arrows, automata}
\usepackage{enumitem}
\colorlet{Lila}{Orchid!70!}
\begin{document}
\color{Lila} test
\end{document}