tikz-cd doesn't compile examples from the manual [duplicate]












1
















This question already has an answer here:




  • Tikzcd conflict with babel and cd

    1 answer




I don't know if this a problem with my local TeX-Distribution (macTeX 2018) or with tikz-cd itself, how ever: I can't compile basic examples from the tikz-cd manual, like this:



    documentclass{standalone}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage{xcolor}

usepackage[T1]{fontenc}
usepackage{lmodern}

usepackage{amsmath, amssymb}


usepackage{tikz-cd}

begin{document}

begin{tikzcd}
A arrow[r, "phi"] arrow[d, red]
& B arrow[d, "psi" red] \
C arrow[r, red, "eta" blue]
&D end{tikzcd}

end{document}


The resulting output is
Compiled document



And the errors messages inside the log start with this error message:



    ! Argument of language@active@arg" has an extra }.
<inserted text>
par
l.18 &D end{tikzcd}

I've run across a `}' that doesn't seem to match anything.
For example, `defa#1{...}' and `a}' would produce
this error. If you simply proceed now, the `par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before language@active@arg" was complete.
<to be read again>
par
l.18 &D end{tikzcd}


Any ideas what the problem might be? The macTeX-Distribution is complete and up-to-date as of april 4th 2019.










share|improve this question













marked as duplicate by samcarter, Phelype Oleinik, Kurt, Stefan Pinnow, Raaja 9 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2





    I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

    – leandriis
    12 hours ago











  • This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

    – Student
    12 hours ago






  • 2





    The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

    – leandriis
    12 hours ago











  • Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

    – CampanIgnis
    12 hours ago











  • @leandriis Thank you for the help, great!

    – Student
    12 hours ago
















1
















This question already has an answer here:




  • Tikzcd conflict with babel and cd

    1 answer




I don't know if this a problem with my local TeX-Distribution (macTeX 2018) or with tikz-cd itself, how ever: I can't compile basic examples from the tikz-cd manual, like this:



    documentclass{standalone}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage{xcolor}

usepackage[T1]{fontenc}
usepackage{lmodern}

usepackage{amsmath, amssymb}


usepackage{tikz-cd}

begin{document}

begin{tikzcd}
A arrow[r, "phi"] arrow[d, red]
& B arrow[d, "psi" red] \
C arrow[r, red, "eta" blue]
&D end{tikzcd}

end{document}


The resulting output is
Compiled document



And the errors messages inside the log start with this error message:



    ! Argument of language@active@arg" has an extra }.
<inserted text>
par
l.18 &D end{tikzcd}

I've run across a `}' that doesn't seem to match anything.
For example, `defa#1{...}' and `a}' would produce
this error. If you simply proceed now, the `par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before language@active@arg" was complete.
<to be read again>
par
l.18 &D end{tikzcd}


Any ideas what the problem might be? The macTeX-Distribution is complete and up-to-date as of april 4th 2019.










share|improve this question













marked as duplicate by samcarter, Phelype Oleinik, Kurt, Stefan Pinnow, Raaja 9 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2





    I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

    – leandriis
    12 hours ago











  • This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

    – Student
    12 hours ago






  • 2





    The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

    – leandriis
    12 hours ago











  • Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

    – CampanIgnis
    12 hours ago











  • @leandriis Thank you for the help, great!

    – Student
    12 hours ago














1












1








1









This question already has an answer here:




  • Tikzcd conflict with babel and cd

    1 answer




I don't know if this a problem with my local TeX-Distribution (macTeX 2018) or with tikz-cd itself, how ever: I can't compile basic examples from the tikz-cd manual, like this:



    documentclass{standalone}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage{xcolor}

usepackage[T1]{fontenc}
usepackage{lmodern}

usepackage{amsmath, amssymb}


usepackage{tikz-cd}

begin{document}

begin{tikzcd}
A arrow[r, "phi"] arrow[d, red]
& B arrow[d, "psi" red] \
C arrow[r, red, "eta" blue]
&D end{tikzcd}

end{document}


The resulting output is
Compiled document



And the errors messages inside the log start with this error message:



    ! Argument of language@active@arg" has an extra }.
<inserted text>
par
l.18 &D end{tikzcd}

I've run across a `}' that doesn't seem to match anything.
For example, `defa#1{...}' and `a}' would produce
this error. If you simply proceed now, the `par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before language@active@arg" was complete.
<to be read again>
par
l.18 &D end{tikzcd}


Any ideas what the problem might be? The macTeX-Distribution is complete and up-to-date as of april 4th 2019.










share|improve this question















This question already has an answer here:




  • Tikzcd conflict with babel and cd

    1 answer




I don't know if this a problem with my local TeX-Distribution (macTeX 2018) or with tikz-cd itself, how ever: I can't compile basic examples from the tikz-cd manual, like this:



    documentclass{standalone}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage{xcolor}

usepackage[T1]{fontenc}
usepackage{lmodern}

usepackage{amsmath, amssymb}


usepackage{tikz-cd}

begin{document}

begin{tikzcd}
A arrow[r, "phi"] arrow[d, red]
& B arrow[d, "psi" red] \
C arrow[r, red, "eta" blue]
&D end{tikzcd}

end{document}


The resulting output is
Compiled document



And the errors messages inside the log start with this error message:



    ! Argument of language@active@arg" has an extra }.
<inserted text>
par
l.18 &D end{tikzcd}

I've run across a `}' that doesn't seem to match anything.
For example, `defa#1{...}' and `a}' would produce
this error. If you simply proceed now, the `par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before language@active@arg" was complete.
<to be read again>
par
l.18 &D end{tikzcd}


Any ideas what the problem might be? The macTeX-Distribution is complete and up-to-date as of april 4th 2019.





This question already has an answer here:




  • Tikzcd conflict with babel and cd

    1 answer








tikz-cd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 12 hours ago









StudentStudent

283




283




marked as duplicate by samcarter, Phelype Oleinik, Kurt, Stefan Pinnow, Raaja 9 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by samcarter, Phelype Oleinik, Kurt, Stefan Pinnow, Raaja 9 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2





    I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

    – leandriis
    12 hours ago











  • This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

    – Student
    12 hours ago






  • 2





    The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

    – leandriis
    12 hours ago











  • Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

    – CampanIgnis
    12 hours ago











  • @leandriis Thank you for the help, great!

    – Student
    12 hours ago














  • 2





    I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

    – leandriis
    12 hours ago











  • This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

    – Student
    12 hours ago






  • 2





    The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

    – leandriis
    12 hours ago











  • Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

    – CampanIgnis
    12 hours ago











  • @leandriis Thank you for the help, great!

    – Student
    12 hours ago








2




2





I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

– leandriis
12 hours ago





I can connfirm the error messages that you get. However, the MWE compiles just fine, if you remove usepackage[ngerman]{babel}.

– leandriis
12 hours ago













This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

– Student
12 hours ago





This is crazy, removing babel from the preamble "solves" the problem for me, too. Yet, this is no solution, as babel is essential for good typesetting. :<

– Student
12 hours ago




2




2





The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

– leandriis
12 hours ago





The following question is a possible duplicate: Tikzcd conflict with babel and cd and the proposed workaround also works for your case.

– leandriis
12 hours ago













Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

– CampanIgnis
12 hours ago





Just a note: If you use LuaTeX or XeTeX, then you might be able to substitute babel with ctan.org/pkg/polyglossia.

– CampanIgnis
12 hours ago













@leandriis Thank you for the help, great!

– Student
12 hours ago





@leandriis Thank you for the help, great!

– Student
12 hours ago










1 Answer
1






active

oldest

votes


















2














To solve the your question you can add usetikzlibrary{babel} always confirming that you can use usepackage[ngerman]{babel}. Now there is no errors.



enter image description here



    documentclass{standalone}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage{xcolor}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{amsmath, amssymb}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A arrow[r, "phi"] arrow[d, red]
& B arrow[d, "psi" red] \
C arrow[r, red, "eta" blue]
&D
end{tikzcd}
end{document}





share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    To solve the your question you can add usetikzlibrary{babel} always confirming that you can use usepackage[ngerman]{babel}. Now there is no errors.



    enter image description here



        documentclass{standalone}
    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage{xcolor}
    usepackage[T1]{fontenc}
    usepackage{lmodern}
    usepackage{amsmath, amssymb}
    usepackage{tikz-cd}
    usetikzlibrary{babel}
    begin{document}
    begin{tikzcd}
    A arrow[r, "phi"] arrow[d, red]
    & B arrow[d, "psi" red] \
    C arrow[r, red, "eta" blue]
    &D
    end{tikzcd}
    end{document}





    share|improve this answer




























      2














      To solve the your question you can add usetikzlibrary{babel} always confirming that you can use usepackage[ngerman]{babel}. Now there is no errors.



      enter image description here



          documentclass{standalone}
      usepackage[utf8]{inputenc}
      usepackage[ngerman]{babel}
      usepackage{xcolor}
      usepackage[T1]{fontenc}
      usepackage{lmodern}
      usepackage{amsmath, amssymb}
      usepackage{tikz-cd}
      usetikzlibrary{babel}
      begin{document}
      begin{tikzcd}
      A arrow[r, "phi"] arrow[d, red]
      & B arrow[d, "psi" red] \
      C arrow[r, red, "eta" blue]
      &D
      end{tikzcd}
      end{document}





      share|improve this answer


























        2












        2








        2







        To solve the your question you can add usetikzlibrary{babel} always confirming that you can use usepackage[ngerman]{babel}. Now there is no errors.



        enter image description here



            documentclass{standalone}
        usepackage[utf8]{inputenc}
        usepackage[ngerman]{babel}
        usepackage{xcolor}
        usepackage[T1]{fontenc}
        usepackage{lmodern}
        usepackage{amsmath, amssymb}
        usepackage{tikz-cd}
        usetikzlibrary{babel}
        begin{document}
        begin{tikzcd}
        A arrow[r, "phi"] arrow[d, red]
        & B arrow[d, "psi" red] \
        C arrow[r, red, "eta" blue]
        &D
        end{tikzcd}
        end{document}





        share|improve this answer













        To solve the your question you can add usetikzlibrary{babel} always confirming that you can use usepackage[ngerman]{babel}. Now there is no errors.



        enter image description here



            documentclass{standalone}
        usepackage[utf8]{inputenc}
        usepackage[ngerman]{babel}
        usepackage{xcolor}
        usepackage[T1]{fontenc}
        usepackage{lmodern}
        usepackage{amsmath, amssymb}
        usepackage{tikz-cd}
        usetikzlibrary{babel}
        begin{document}
        begin{tikzcd}
        A arrow[r, "phi"] arrow[d, red]
        & B arrow[d, "psi" red] \
        C arrow[r, red, "eta" blue]
        &D
        end{tikzcd}
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 12 hours ago









        SebastianoSebastiano

        11.1k42165




        11.1k42165















            Popular posts from this blog

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)