Subfig Error while using TikzTikz shortandoff-on newcommand problemNumbers of figure referencesTikz default...
Can a space-faring robot still function over a billion years?
PSPICE - must be 'I' or 'V' error
Sundering Titan and basic normal lands and snow lands
Convert an array of objects to array of the objects' values
Can you run a ground wire from stove directly to ground pole in the ground
Ultrafilters as a double dual
Linear Combination of Atomic Orbitals
Align equations with text before one of them
What's the best tool for cutting holes into duct work?
Preparing as much as possible of a cake in advance
3.5% Interest Student Loan or use all of my savings on Tuition?
Why is there an extra space when I type "ls" on the Desktop?
The (Easy) Road to Code
How to chmod files that have a specific set of permissions
The Key to the Door
The past tense for the quoting particle って
Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?
Should we avoid writing fiction about historical events without extensive research?
Why dativ case for the verb widerspricht?
I can't die. Who am I?
Paper published similar to PhD thesis
Is "cogitate" an appropriate word for this?
What does "rhumatis" mean?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Subfig Error while using Tikz
Tikz shortandoff-on newcommand problemNumbers of figure referencesTikz default arrow style and babelParenthesis while using subfig and autorefPut subfigure labels inside figures using subfig packageTable next to figure using subfig**“No counter 'subfigure@save defined.”** -subfig errorConflict of `scrartcl` and `subfig`?Error on including subfig packageWrong figure references using subfiggetting undefined control sequence error with subfigUsing subfig in one chapter and subcaption in the otherOvercoming interaction with H specifier while staying on subfig package
I was reading this post and encountered an error while trying to compile the following code:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[->,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
I have tried to edit parts of the code, and it seems that the root of the problem is that an '>' in the tikz code ends the subfloat enviroment. It's there a way to fix this?
subfloats
add a comment |
I was reading this post and encountered an error while trying to compile the following code:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[->,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
I have tried to edit parts of the code, and it seems that the root of the problem is that an '>' in the tikz code ends the subfloat enviroment. It's there a way to fix this?
subfloats
There seems to be a connection tousepackage[spanish]{babel}. As an alternative tosubfigyou might be interested in using thesubcaptionpackage.
– leandriis
3 hours ago
Useshorthandoff{<>}afterbegin{document}.
– ferahfeza
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
What is the difference betweensubfigandsubcaption?
– kraDracsO
2 hours ago
add a comment |
I was reading this post and encountered an error while trying to compile the following code:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[->,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
I have tried to edit parts of the code, and it seems that the root of the problem is that an '>' in the tikz code ends the subfloat enviroment. It's there a way to fix this?
subfloats
I was reading this post and encountered an error while trying to compile the following code:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[->,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
I have tried to edit parts of the code, and it seems that the root of the problem is that an '>' in the tikz code ends the subfloat enviroment. It's there a way to fix this?
subfloats
subfloats
asked 3 hours ago
kraDracsOkraDracsO
427
427
There seems to be a connection tousepackage[spanish]{babel}. As an alternative tosubfigyou might be interested in using thesubcaptionpackage.
– leandriis
3 hours ago
Useshorthandoff{<>}afterbegin{document}.
– ferahfeza
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
What is the difference betweensubfigandsubcaption?
– kraDracsO
2 hours ago
add a comment |
There seems to be a connection tousepackage[spanish]{babel}. As an alternative tosubfigyou might be interested in using thesubcaptionpackage.
– leandriis
3 hours ago
Useshorthandoff{<>}afterbegin{document}.
– ferahfeza
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
What is the difference betweensubfigandsubcaption?
– kraDracsO
2 hours ago
There seems to be a connection to
usepackage[spanish]{babel}. As an alternative to subfig you might be interested in using the subcaption package.– leandriis
3 hours ago
There seems to be a connection to
usepackage[spanish]{babel}. As an alternative to subfig you might be interested in using the subcaption package.– leandriis
3 hours ago
Use
shorthandoff{<>} after begin{document}.– ferahfeza
3 hours ago
Use
shorthandoff{<>} after begin{document}.– ferahfeza
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
What is the difference between
subfig and subcaption?– kraDracsO
2 hours ago
What is the difference between
subfig and subcaption?– kraDracsO
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
As @leandriis stated in his comment, your question is related to this and the solution is there. For addditional solution is to use of shorthandoff{<>} for Spanish babel when using figure environment. That is:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
shorthandoff{<>} %<-------------Add-------------
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[-latex,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
Output:

Can you elaborate on whatshorthandoff{<>}does?
– kraDracsO
2 hours ago
1
The problem is that thespanishmodule forbabelmakes>and<active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034
– ferahfeza
1 hour ago
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478296%2fsubfig-error-while-using-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As @leandriis stated in his comment, your question is related to this and the solution is there. For addditional solution is to use of shorthandoff{<>} for Spanish babel when using figure environment. That is:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
shorthandoff{<>} %<-------------Add-------------
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[-latex,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
Output:

Can you elaborate on whatshorthandoff{<>}does?
– kraDracsO
2 hours ago
1
The problem is that thespanishmodule forbabelmakes>and<active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034
– ferahfeza
1 hour ago
add a comment |
As @leandriis stated in his comment, your question is related to this and the solution is there. For addditional solution is to use of shorthandoff{<>} for Spanish babel when using figure environment. That is:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
shorthandoff{<>} %<-------------Add-------------
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[-latex,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
Output:

Can you elaborate on whatshorthandoff{<>}does?
– kraDracsO
2 hours ago
1
The problem is that thespanishmodule forbabelmakes>and<active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034
– ferahfeza
1 hour ago
add a comment |
As @leandriis stated in his comment, your question is related to this and the solution is there. For addditional solution is to use of shorthandoff{<>} for Spanish babel when using figure environment. That is:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
shorthandoff{<>} %<-------------Add-------------
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[-latex,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
Output:

As @leandriis stated in his comment, your question is related to this and the solution is there. For addditional solution is to use of shorthandoff{<>} for Spanish babel when using figure environment. That is:
documentclass[12pt,letterpaper]{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{amsmath,amsfonts,amssymb}
usepackage{tikz}
usetikzlibrary{babel}
usepackage{subfig}
begin{document}
shorthandoff{<>} %<-------------Add-------------
begin{figure}
centering
subfloat[]{label{fig:fig1a}
begin{tikzpicture}[scale=0.7]
draw (0,0) circle (2cm);
end{tikzpicture}
}
subfloat[]{label{fig:fig1b}
begin{tikzpicture}[scale=1.4]
draw[-latex,very thick] (0,0) -- (1.9,0);
end{tikzpicture}
}
caption{}
label{fig:fig1}
end{figure}
end{document}
Output:

answered 2 hours ago
ferahfezaferahfeza
6,56111932
6,56111932
Can you elaborate on whatshorthandoff{<>}does?
– kraDracsO
2 hours ago
1
The problem is that thespanishmodule forbabelmakes>and<active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034
– ferahfeza
1 hour ago
add a comment |
Can you elaborate on whatshorthandoff{<>}does?
– kraDracsO
2 hours ago
1
The problem is that thespanishmodule forbabelmakes>and<active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034
– ferahfeza
1 hour ago
Can you elaborate on what
shorthandoff{<>} does?– kraDracsO
2 hours ago
Can you elaborate on what
shorthandoff{<>} does?– kraDracsO
2 hours ago
1
1
The problem is that the
spanish module for babel makes > and < active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034– ferahfeza
1 hour ago
The problem is that the
spanish module for babel makes > and < active characters for its special management of Spanish quotations. Please look at this answer for detailed answer: tex.stackexchange.com/a/163955/31034– ferahfeza
1 hour ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478296%2fsubfig-error-while-using-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
There seems to be a connection to
usepackage[spanish]{babel}. As an alternative tosubfigyou might be interested in using thesubcaptionpackage.– leandriis
3 hours ago
Use
shorthandoff{<>}afterbegin{document}.– ferahfeza
3 hours ago
Possibly related (duplicate?): Tikz default arrow style and babel
– leandriis
3 hours ago
What is the difference between
subfigandsubcaption?– kraDracsO
2 hours ago