I want to use commuting diagrams and the classicthesis package.
I've edited the classicthesis document so that tikz, tikzcd and the braids packages are included after the classicthesis package.
However I get the error:
! Package pgfkeys Error: I do not know the key '/tikz/"f"' and I am going to ignore it. Perhaps you misspelled it.
Here's a minimal example:
\documentclass[
oneside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,
%footinclude=true,
cleardoublepage=empty,
dottedtoc, % Make page numbers in the table of contents flushed right with dots leading to them
BCOR=5mm,paper=a4,fontsize=11pt, % Binding correction, paper type and font size
ngerman,american, % Languages, change this to your language(s)
]{scrreprt}
% Includes the file which contains all the document configurations and packages - make sure to edit this file
\input{classicthesis-config}
\begin{document}
\begin{center}
\begin{tikzcd}
U
\arrow[r,hook, "f"]
& V
\end{tikzcd}
\end{center}
\end{document}
However: If I write
\documentclass[
oneside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,
%footinclude=true,
cleardoublepage=empty,
dottedtoc, % Make page numbers in the table of contents flushed right with dots leading to them
BCOR=5mm,paper=a4,fontsize=11pt, % Binding correction, paper type and font size
ngerman,american, % Languages, change this to your language(s)
]{scrreprt}
% Includes the file which contains all the document configurations and packages - make sure to edit this file
\input{classicthesis-config}
\begin{document}
\begin{center}
\begin{tikzcd}
U
\arrow{r}{f}
& V
\end{tikzcd}
\end{center}
\end{document}
everything works fine. This makes me rather confused. What is it, I'm missing?
Here's a stripped-down version of my classicthesis-config:
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\PassOptionsToPackage{eulerchapternumbers,listings,drafting, pdfspacing, subfig,beramono,eulermath,parts}{classicthesis}
\newcounter{dummy}
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\newlength{\abcd}
\PassOptionsToPackage{fleqn}{amsmath}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\PassOptionsToPackage{T1}{fontenc}
\usepackage{fontenc}
\usepackage{textcomp}
\usepackage{scrhack}
\usepackage{xspace}
\usepackage{mparhack}
\usepackage{fixltx2e}
%\PassOptionsToPackage{pdftex}{graphicx}
%\usepackage{graphicx}
\usepackage{tabularx}
\setlength{\extrarowheight}{3pt}
\newcommand{\tableheadline}[1]{\multicolumn{1}{c}{\spacedlowsmallcaps{#1}}}
\newcommand{\myfloatalign}{\centering} % To be used with each float for alignment
\usepackage{caption}
\captionsetup{font=small}
\usepackage{subfig}
\usepackage{classicthesis}
\usepackage{tikz}
\usepackage{braids}
\usetikzlibrary{cd}
classicthesis-configof course, so it would be better if you could extract the necessary parts from it and add that to your examples instead of the\inputline. I wouldn't thinkclassicthesisis at all relevant here though, your first example runs fine here if I replace the\inputwith\usepackage{tikz-cd}. My guess is that you have an old version oftikz-cd. The"text"syntax is something that was introduced after version 3.0 of TikZ (which was late 2013 I think), so if yourtikz-cdis older, then it wouldn't work. – Torbjørn T. Oct 20 '17 at 09:09\usepackage{tikz} \usetikzlibrary{cd}enough? That said, to check the package version, can you compile the following minimal document, and then post the.logfile?\listfiles \documentclass{article} \usepackage{tikz-cd} \begin{document} a \end{document}– Torbjørn T. Oct 20 '17 at 10:21usepackage{tikz}andusetikzlibrary{cd}. I have Latex documents with tikz and tikcd that just work fine. It is this very combination that causes the problems.I run the newest Tikz-cd version 0.9e
– SeHa Oct 20 '17 at 11:41\usetikzlibrary{quotes}, but that library should be loaded bytikz-cd. So if that didn't help: Do you by any chance happen to have a file calledtikzlibrarycd.code.texin the same folder as the.texfile? Can you post the complete.logfile of a compilation that resulted in the error? – Torbjørn T. Oct 20 '17 at 12:04\usetikzlibrary{qoutes}which wasn't successful. – SeHa Oct 20 '17 at 15:07babel. This solved my issue.However if someone could elaborate where exactly this problem lied and how this solution works I'd be more then happy.
– SeHa Oct 23 '17 at 11:36babelpackage is loaded (perhaps older versions ofclassicthesisdid that). I can reproduce the problem if I replace\input{classicthesis-config}with\usepackage{babel,tikz-cd}, and adding\usetikzlibrary{babel}solved it. Basically read the description of that library in the TikZ manual (page 518, in the manual for TikZ 3.0.1a). – Torbjørn T. Oct 23 '17 at 20:35