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
    Jan 2, 2016 at 12:56
  • You're misusing \exmp: it must be called as \begin{exmp}...\end{exmp}.
    – egreg
    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 Παράδειγμα}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.