2

Why does \usepackage[czech]{babel} make problem in this code, please?

I obtain an error: Missing number, treated as zero.

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[czech]{babel}

\usepackage{tikz,fouriernc} \usetikzlibrary{calc} \definecolor{lime}{RGB}{0,0,128}

\usepackage[font=small,labelfont=bf]{caption}

\usepackage{fancyhdr} \begin{document} \shorthandoff{-} %edit \lhead{ }

    \begin{tikzpicture}[overlay,remember picture]     

        \node[yshift=-10cm,lime] at (7.5,10) {\scalebox{3}{Text}};

    \end{tikzpicture}

\end{document}

MS-SPO
  • 11,519
  • Try \shorthandoff{-} after \begin{document}. Related: https://tex.stackexchange.com/questions/166772/problem-with-babel-and-tikz-using-draw. – Marian G. Mar 20 '21 at 11:02
  • Do you mean that what I edit in my question? I obtained an error: Undefined control sequence. \shorthandoff{-} – Elena Greg Mar 20 '21 at 11:25
  • 1
    \shorthandoff{-} works fine on my machine. Without your log file, any further suggestion would be rather trial/error. On ther other hand, TikZ v3.0.0 has a babel-library. Including it in your preamble as \usetikzlibrary{babel} could help. – Marian G. Mar 20 '21 at 12:47
  • Thank you very much, it helped. – Elena Greg Mar 20 '21 at 13:00

0 Answers0