1

Why the number in the example is not blue?

\documentclass[11pt, a4paper]{article}
\usepackage{xltxtra}
\usepackage{xgreek}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{unicode-math}
\usepackage{xcolor}
\newtheorem{exmp}{{\color{blue}\bfseries Παράδειγμα}}
\begin{document}
\setmainfont[Mapping=tex-text]{DejaVu Sans}
\setmathfont{Asana-Math.otf}
\exmp
test
\end{document}
2
  • Welcome to TeX.SX. You've put some extra { } around your \color command. Remove them and it works fine :)
    – Rico
    Commented Jan 2, 2016 at 12:56
  • You're misusing \exmp: it must be called as \begin{exmp}...\end{exmp}.
    – egreg
    Commented Jan 2, 2016 at 16:23

1 Answer 1

2

Wrapping \color in extra { } restricts it to the content inside the brackets. If you want the whole thing in color you need to remove those brackets.

\newtheorem{exmp}{\color{blue}\bfseries Παράδειγμα}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .