Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is my preamble:

\documentclass[11pt, a4paper]{scrartcl}
\usepackage{iftex}
\ifXeTeX
  \usepackage{xunicode} %Если не ошибаюсь, то этот пакет уже загружает fontspec
  \usepackage{xltxtra}  %особой роли не должен вроде как играть и в будущем скорее всего не будет нужен
  \usepackage{polyglossia}
  \usepackage{datetime}
%   \usepackage{polski}

  \setdefaultlanguage{polish}
  \setmainfont{Liberation Serif}
  \title{TMC: teoria z poprzednich lat}
  \author{Student}
  \date{Ostania aktualizacja \number\day.\number\month.\number\year{} o \currenttime}
\else
  \usepackage[utf8]{inputenc}
  \usepackage[MeX,T1, plmath]{polski}
  \usepackage{datetime}
  \date{Ostania aktualizacja \today{} o \currenttime}
  \title{TMC: teoria z poprzednich lat}
  \author{Student}
\fi
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{siunitx}    %Для использоваия едениц измерений СИ, пример смотреть в тексте
\sisetup{
output-decimal-marker = {,},    %sisetup нужен, что бы вместо точки можно было использовать запятую.
per-mode = symbol   %Это что бы \per давала косую черту
}   %Для перечисления настроек обязательно нужна запятая между ними

\begin{document}
\SI{1000}{\mm}
\end{document}

No matter if I compile it with XeLaTeX or LaTeX I get the same error:

Undefined control sequence. \mm

share|improve this question
Use either \SI{1000}{mm} or \SI{1000}{\milli\meter} – egreg Oct 21 '12 at 12:42
Thanks, everything works, but i don't know how to close the question. – HunOL Oct 21 '12 at 12:45
AFAIR \mm is available but needs to be enabled via one of the package options – daleif Oct 21 '12 at 15:13

closed as too localized by egreg, lockstep, percusse, Harish Kumar, Torbjørn T. Oct 21 '12 at 12:49

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.