Incompatibility between tikz-cd and language











up vote
2
down vote

favorite












Sorry for the bad English. I'm trying to use the tikz-cd package to make commutative diagrams. My code



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


The problem occurs when putting a name under the arrow, the syntax "x" is incompatible with the brazil option of the babel package. When exchanging brazil for english it works normally. I already tried using



usepackage[main=brazil, english]{babel}, usepackage[brazil, english]{babel} e  usepackage[brazil, main=english]{babel}


But it did not work. I also tried to use



usepackage[english, brazil]{babel}
usepackage{polyglossia}
setmainlanguage{brazil}
setotherlanguages{english}


And finally



selectlanguage{english}


However, it only works if I remove the option brazil










share|improve this question
























  • On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
    – Sebastiano
    Mar 16 '17 at 19:49












  • Is exactly that error that appears to me using Texstudio
    – Marcelo Rodrigues
    Mar 16 '17 at 19:56






  • 1




    Use usetikzlibrary{babel} -- this should remove the error and compile
    – Christian Hupfer
    Mar 16 '17 at 20:18






  • 3




    Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
    – Saravanan
    2 hours ago















up vote
2
down vote

favorite












Sorry for the bad English. I'm trying to use the tikz-cd package to make commutative diagrams. My code



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


The problem occurs when putting a name under the arrow, the syntax "x" is incompatible with the brazil option of the babel package. When exchanging brazil for english it works normally. I already tried using



usepackage[main=brazil, english]{babel}, usepackage[brazil, english]{babel} e  usepackage[brazil, main=english]{babel}


But it did not work. I also tried to use



usepackage[english, brazil]{babel}
usepackage{polyglossia}
setmainlanguage{brazil}
setotherlanguages{english}


And finally



selectlanguage{english}


However, it only works if I remove the option brazil










share|improve this question
























  • On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
    – Sebastiano
    Mar 16 '17 at 19:49












  • Is exactly that error that appears to me using Texstudio
    – Marcelo Rodrigues
    Mar 16 '17 at 19:56






  • 1




    Use usetikzlibrary{babel} -- this should remove the error and compile
    – Christian Hupfer
    Mar 16 '17 at 20:18






  • 3




    Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
    – Saravanan
    2 hours ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











Sorry for the bad English. I'm trying to use the tikz-cd package to make commutative diagrams. My code



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


The problem occurs when putting a name under the arrow, the syntax "x" is incompatible with the brazil option of the babel package. When exchanging brazil for english it works normally. I already tried using



usepackage[main=brazil, english]{babel}, usepackage[brazil, english]{babel} e  usepackage[brazil, main=english]{babel}


But it did not work. I also tried to use



usepackage[english, brazil]{babel}
usepackage{polyglossia}
setmainlanguage{brazil}
setotherlanguages{english}


And finally



selectlanguage{english}


However, it only works if I remove the option brazil










share|improve this question















Sorry for the bad English. I'm trying to use the tikz-cd package to make commutative diagrams. My code



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


The problem occurs when putting a name under the arrow, the syntax "x" is incompatible with the brazil option of the babel package. When exchanging brazil for english it works normally. I already tried using



usepackage[main=brazil, english]{babel}, usepackage[brazil, english]{babel} e  usepackage[brazil, main=english]{babel}


But it did not work. I also tried to use



usepackage[english, brazil]{babel}
usepackage{polyglossia}
setmainlanguage{brazil}
setotherlanguages{english}


And finally



selectlanguage{english}


However, it only works if I remove the option brazil







babel tikz-cd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 16 '17 at 20:22









Christian Hupfer

146k14190381




146k14190381










asked Mar 16 '17 at 19:43









Marcelo Rodrigues

917




917












  • On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
    – Sebastiano
    Mar 16 '17 at 19:49












  • Is exactly that error that appears to me using Texstudio
    – Marcelo Rodrigues
    Mar 16 '17 at 19:56






  • 1




    Use usetikzlibrary{babel} -- this should remove the error and compile
    – Christian Hupfer
    Mar 16 '17 at 20:18






  • 3




    Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
    – Saravanan
    2 hours ago


















  • On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
    – Sebastiano
    Mar 16 '17 at 19:49












  • Is exactly that error that appears to me using Texstudio
    – Marcelo Rodrigues
    Mar 16 '17 at 19:56






  • 1




    Use usetikzlibrary{babel} -- this should remove the error and compile
    – Christian Hupfer
    Mar 16 '17 at 20:18






  • 3




    Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
    – Saravanan
    2 hours ago
















On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
– Sebastiano
Mar 16 '17 at 19:49






On my pc with Papeeria I have these errors: Argument of language@active@arg" has an extra }. [end{tikzcd}] /main.tex :7 Paragraph ended before language@active@arg" was complete. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@addpath was complete. [end{tikzcd}] /main.tex :7 Missing endcsname inserted. [end{tikzcd}] /main.tex :7 Paragraph ended before pgfkeys@splitter was complete. [end{tikzcd}] /main.tex :6 Package pgfkeys Error: I do not know the key '"xpar ' and I am going to ignore it. Perhaps you misspelled it. [I think the culprit is a tikzcd arrow in cell 1-1.]
– Sebastiano
Mar 16 '17 at 19:49














Is exactly that error that appears to me using Texstudio
– Marcelo Rodrigues
Mar 16 '17 at 19:56




Is exactly that error that appears to me using Texstudio
– Marcelo Rodrigues
Mar 16 '17 at 19:56




1




1




Use usetikzlibrary{babel} -- this should remove the error and compile
– Christian Hupfer
Mar 16 '17 at 20:18




Use usetikzlibrary{babel} -- this should remove the error and compile
– Christian Hupfer
Mar 16 '17 at 20:18




3




3




Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
– Saravanan
2 hours ago




Possible duplicate of babel: Adding ngerman' s language shorthands to english as the main document language
– Saravanan
2 hours ago










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted










The TikZ babel library simplifies the interaction between the babel LaTeX package and TikZ itself, taking care of the catcodes etc. change.



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


enter image description here






share|improve this answer

















  • 1




    Always vote your answers. Very very good. hiiiiiiii
    – Sebastiano
    Mar 16 '17 at 20:26










  • I found a list with more than 50 library but did not contain this. Thank you very much.
    – Marcelo Rodrigues
    Mar 16 '17 at 20:32










  • @MarceloRodrigues: The tikz babel is not very well known, I think.
    – Christian Hupfer
    Mar 16 '17 at 21:26


















up vote
2
down vote













Now there isn't any errors.



enter image description here



documentclass[a4paper,12pt, brazil]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}

usepackage{tikz-cd}
begin{document}
shorthandoff{"}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
shorthandon{"}
end{document}





share|improve this answer

















  • 1




    Also the answer of Christian Hupfer is very good.
    – Sebastiano
    Mar 16 '17 at 20:31










  • Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
    – Marcelo Rodrigues
    Mar 16 '17 at 20:45











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f358837%2fincompatibility-between-tikz-cd-and-language%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










The TikZ babel library simplifies the interaction between the babel LaTeX package and TikZ itself, taking care of the catcodes etc. change.



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


enter image description here






share|improve this answer

















  • 1




    Always vote your answers. Very very good. hiiiiiiii
    – Sebastiano
    Mar 16 '17 at 20:26










  • I found a list with more than 50 library but did not contain this. Thank you very much.
    – Marcelo Rodrigues
    Mar 16 '17 at 20:32










  • @MarceloRodrigues: The tikz babel is not very well known, I think.
    – Christian Hupfer
    Mar 16 '17 at 21:26















up vote
5
down vote



accepted










The TikZ babel library simplifies the interaction between the babel LaTeX package and TikZ itself, taking care of the catcodes etc. change.



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


enter image description here






share|improve this answer

















  • 1




    Always vote your answers. Very very good. hiiiiiiii
    – Sebastiano
    Mar 16 '17 at 20:26










  • I found a list with more than 50 library but did not contain this. Thank you very much.
    – Marcelo Rodrigues
    Mar 16 '17 at 20:32










  • @MarceloRodrigues: The tikz babel is not very well known, I think.
    – Christian Hupfer
    Mar 16 '17 at 21:26













up vote
5
down vote



accepted







up vote
5
down vote



accepted






The TikZ babel library simplifies the interaction between the babel LaTeX package and TikZ itself, taking care of the catcodes etc. change.



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


enter image description here






share|improve this answer












The TikZ babel library simplifies the interaction between the babel LaTeX package and TikZ itself, taking care of the catcodes etc. change.



documentclass{article}
usepackage[brazil]{babel}
usepackage{tikz-cd}
usetikzlibrary{babel}
begin{document}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 16 '17 at 20:18









Christian Hupfer

146k14190381




146k14190381








  • 1




    Always vote your answers. Very very good. hiiiiiiii
    – Sebastiano
    Mar 16 '17 at 20:26










  • I found a list with more than 50 library but did not contain this. Thank you very much.
    – Marcelo Rodrigues
    Mar 16 '17 at 20:32










  • @MarceloRodrigues: The tikz babel is not very well known, I think.
    – Christian Hupfer
    Mar 16 '17 at 21:26














  • 1




    Always vote your answers. Very very good. hiiiiiiii
    – Sebastiano
    Mar 16 '17 at 20:26










  • I found a list with more than 50 library but did not contain this. Thank you very much.
    – Marcelo Rodrigues
    Mar 16 '17 at 20:32










  • @MarceloRodrigues: The tikz babel is not very well known, I think.
    – Christian Hupfer
    Mar 16 '17 at 21:26








1




1




Always vote your answers. Very very good. hiiiiiiii
– Sebastiano
Mar 16 '17 at 20:26




Always vote your answers. Very very good. hiiiiiiii
– Sebastiano
Mar 16 '17 at 20:26












I found a list with more than 50 library but did not contain this. Thank you very much.
– Marcelo Rodrigues
Mar 16 '17 at 20:32




I found a list with more than 50 library but did not contain this. Thank you very much.
– Marcelo Rodrigues
Mar 16 '17 at 20:32












@MarceloRodrigues: The tikz babel is not very well known, I think.
– Christian Hupfer
Mar 16 '17 at 21:26




@MarceloRodrigues: The tikz babel is not very well known, I think.
– Christian Hupfer
Mar 16 '17 at 21:26










up vote
2
down vote













Now there isn't any errors.



enter image description here



documentclass[a4paper,12pt, brazil]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}

usepackage{tikz-cd}
begin{document}
shorthandoff{"}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
shorthandon{"}
end{document}





share|improve this answer

















  • 1




    Also the answer of Christian Hupfer is very good.
    – Sebastiano
    Mar 16 '17 at 20:31










  • Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
    – Marcelo Rodrigues
    Mar 16 '17 at 20:45















up vote
2
down vote













Now there isn't any errors.



enter image description here



documentclass[a4paper,12pt, brazil]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}

usepackage{tikz-cd}
begin{document}
shorthandoff{"}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
shorthandon{"}
end{document}





share|improve this answer

















  • 1




    Also the answer of Christian Hupfer is very good.
    – Sebastiano
    Mar 16 '17 at 20:31










  • Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
    – Marcelo Rodrigues
    Mar 16 '17 at 20:45













up vote
2
down vote










up vote
2
down vote









Now there isn't any errors.



enter image description here



documentclass[a4paper,12pt, brazil]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}

usepackage{tikz-cd}
begin{document}
shorthandoff{"}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
shorthandon{"}
end{document}





share|improve this answer












Now there isn't any errors.



enter image description here



documentclass[a4paper,12pt, brazil]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}

usepackage{tikz-cd}
begin{document}
shorthandoff{"}
begin{tikzcd}
A ar[r, "x"] & B
end{tikzcd}
shorthandon{"}
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 16 '17 at 20:02









Sebastiano

8,51641756




8,51641756








  • 1




    Also the answer of Christian Hupfer is very good.
    – Sebastiano
    Mar 16 '17 at 20:31










  • Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
    – Marcelo Rodrigues
    Mar 16 '17 at 20:45














  • 1




    Also the answer of Christian Hupfer is very good.
    – Sebastiano
    Mar 16 '17 at 20:31










  • Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
    – Marcelo Rodrigues
    Mar 16 '17 at 20:45








1




1




Also the answer of Christian Hupfer is very good.
– Sebastiano
Mar 16 '17 at 20:31




Also the answer of Christian Hupfer is very good.
– Sebastiano
Mar 16 '17 at 20:31












Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
– Marcelo Rodrigues
Mar 16 '17 at 20:45




Yes, in the pgf manual indicates the use of the usetikzlibrary{quotes}, but that did not solve my problem
– Marcelo Rodrigues
Mar 16 '17 at 20:45


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f358837%2fincompatibility-between-tikz-cd-and-language%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

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