MiKTeX and proTeXtxcolor - Undefined control sequence.

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
marguerite
Posts: 1
Joined: Wed Dec 28, 2011 9:48 am

xcolor - Undefined control sequence.

Post by marguerite »

Hi all,

I don't mean to dig this out, but I've got the same error as this one. so I post a "I think it's minimal" sample here. hope you guys can debug some typo or something for me. many thanks.

Code: Select all

\documentclass[a4paper,12pt]{article}

\usepackage{CJK}
\usepackage{indentfirst}
\usepackage[colorlinks,linkcolor=blue,anchorcolor=red,citecolor=green,CJKbookmarks]{hyperref}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{xcolor}

\begin{CJK*}{UTF8}{gbsn}
\title{[玛噶学姐带你学 OBS](一)openSUSE Build Service 注册与安装}
\author{Marguerite Su}
\date{2011.12.27}

\pdfinfo{
  /Title    ([玛噶学姐带你学 OBS] (一) openSUSE Build Service 注册与安装)
  /Author   (Marguerite Su)
  /Creator  (Marguerite Su)
  /Producer (Marguerite Su)
  /Subject  (openSUSE Build Service Chinese Tutorial)
  /Keywords (openSUSE ``Build Service`` OBS Tutorial)
}

\begin{document}

\lstset{numbers=left,
numberstyle=\tiny,
backgroundcolor=\color[rgb]{0.666667,0.666667,0.666667},
tabsize=4,
rulecolor=,
language=bash,
basicstyle=\scriptsize,
upquote=true,
aboveskip={1.5\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{1,0.980392,0.980392},
commentstyle=\color[rgb]{0.698039,0.133333,0.133333},
stringstyle=\color[rgb]{0.498039,1,0},
escapeinside={`}{`}
}

\maketitle
\fontsize{12}{20pt}\selectfont
text

\begin{itemize}
\item OBS 的注册与安装
\item OBS 的常用命令
\item RPM 包的构建
\item 打包调试
\item 提交给发行版
\end{itemize}

\begin{figure}
 \centering
 \includegraphics[width=0.6\textwidth]{openSUSE_build_service.png}
 \caption{openSUSE Build Service Web}
\end{figure}

\section{OBS 安装}

这里学姐就要开始使用命令行了。(进入命令行的方法是打开 Konsole) 将要使用的是 YaST 的后端 zypper。YaST 的图形界面:YaST 管理员设定 - 软件套件库 也可以做。

\subsection{首先你需要一个项目文件夹,在你的 home 下面新建一个 Projects 吧。}

\begin{lstlisting}
` 这就是预设的样子,名字什么都帮你添好 `
<project name="home:MargueriteSu">
  <title>MargueriteSu Home Project</title>
` 你需要编辑下你的私人车库描述,写一些煽动的 slogan 上去, 比如“Linux’ll set you free!”之类的。`
  <description></description>
\end{lstlisting}    

Marguerite

\end{CJK*}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply