Tikz code renders fine in TeXmaker but complains about units in OverleafCode not working in Overleaf but...
How must one send away the mother bird?
Open a doc from terminal, but not by its name
Is a file system driver implemented using a kernel module in Linux?
Journal losing indexing services
How can "mimic phobia" be cured or prevented?
How to decide convergence of Integrals
Can I use my Chinese passport to enter China after I acquired another citizenship?
Can a significant change in incentives void an employment contract?
anything or something to eat
Can someone explain how this makes sense electrically?
Why did the EU agree to delay the Brexit deadline?
THT: What is a squared annular “ring”?
Can we have a perfect cadence in a minor key?
Create all possible words using a set or letters
Varistor? Purpose and principle
Have I saved too much for retirement so far?
Engineer refusing to file/disclose patents
Can somebody explain Brexit in a few child-proof sentences?
Is it possible to have a strip of cold climate in the middle of a planet?
Customize circled numbers
We have a love-hate relationship
Divine apple island
Should spaces be used when writing foreign names in katakana?
Reply 'no position' while the job posting is still there
Tikz code renders fine in TeXmaker but complains about units in Overleaf
Code not working in Overleaf but working on TeXLiveLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationTikZ compiles fine with pdfLaTeX but all labels are placed at origin with pdfTeXNumerical conditional within tikz keys?This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?TikZ/ERD: node (=Entity) label on the insideLine up nested tikz enviroments or how to get rid of themOverleaf Compile Error but works fine on ShareLatexProblems using cite in Texmaker, but not OverleafCode not working in Overleaf but working on TeXLive
I am having an issue I have never had before where code I wrote and works fine on my PC using Texmaker (MiKTeX) throws errors when copy-pasted into Overleaf.
This is the code:
documentclass{article}
usepackage{tikz}
begin{document}
defchair#1#2#3#4{
begin{scope}[shift={#1},rotate={#2-90},scale={0.5*#3}]
draw (-1.1,1) to[out=30,in=150] (1.1,1);
draw (-1,0.75) to[out=30,in=150] (1,0.75) -- (1,-0.75) to[out=-150,in=-30] (-1,-0.75) to cycle;
draw (0,0) node {#4};
end{scope}
}
pagenumbering{gobble}
centering
begin{tikzpicture}[line width=0.5mm,scale=1.1]
defa{12}
defs{2}
foreach i in {0,...,a-1}
chair{({i*180/(a-1)}:{1.5+s})}{i*180/(a-1)}{0.75}{}; % (this is line 20)
end{tikzpicture}
end{document}
In Texmaker it renders exactly as I would like:

But when that exact code is copy-pasted into Overleaf the foreach statement does not iterate properly as shown below.

(Note that the messed up anti-aliasing indicates that the 12 figures were stacked on top of each other.)
And I am given the following two error messages:

Based on this post I suspect this has something to do with the version used by Overleaf, but I am unsure how to change this. If it is not possible, how can I amend my code to render properly in the version Overleaf uses?
tikz-pgf overleaf
add a comment |
I am having an issue I have never had before where code I wrote and works fine on my PC using Texmaker (MiKTeX) throws errors when copy-pasted into Overleaf.
This is the code:
documentclass{article}
usepackage{tikz}
begin{document}
defchair#1#2#3#4{
begin{scope}[shift={#1},rotate={#2-90},scale={0.5*#3}]
draw (-1.1,1) to[out=30,in=150] (1.1,1);
draw (-1,0.75) to[out=30,in=150] (1,0.75) -- (1,-0.75) to[out=-150,in=-30] (-1,-0.75) to cycle;
draw (0,0) node {#4};
end{scope}
}
pagenumbering{gobble}
centering
begin{tikzpicture}[line width=0.5mm,scale=1.1]
defa{12}
defs{2}
foreach i in {0,...,a-1}
chair{({i*180/(a-1)}:{1.5+s})}{i*180/(a-1)}{0.75}{}; % (this is line 20)
end{tikzpicture}
end{document}
In Texmaker it renders exactly as I would like:

But when that exact code is copy-pasted into Overleaf the foreach statement does not iterate properly as shown below.

(Note that the messed up anti-aliasing indicates that the 12 figures were stacked on top of each other.)
And I am given the following two error messages:

Based on this post I suspect this has something to do with the version used by Overleaf, but I am unsure how to change this. If it is not possible, how can I amend my code to render properly in the version Overleaf uses?
tikz-pgf overleaf
add a comment |
I am having an issue I have never had before where code I wrote and works fine on my PC using Texmaker (MiKTeX) throws errors when copy-pasted into Overleaf.
This is the code:
documentclass{article}
usepackage{tikz}
begin{document}
defchair#1#2#3#4{
begin{scope}[shift={#1},rotate={#2-90},scale={0.5*#3}]
draw (-1.1,1) to[out=30,in=150] (1.1,1);
draw (-1,0.75) to[out=30,in=150] (1,0.75) -- (1,-0.75) to[out=-150,in=-30] (-1,-0.75) to cycle;
draw (0,0) node {#4};
end{scope}
}
pagenumbering{gobble}
centering
begin{tikzpicture}[line width=0.5mm,scale=1.1]
defa{12}
defs{2}
foreach i in {0,...,a-1}
chair{({i*180/(a-1)}:{1.5+s})}{i*180/(a-1)}{0.75}{}; % (this is line 20)
end{tikzpicture}
end{document}
In Texmaker it renders exactly as I would like:

But when that exact code is copy-pasted into Overleaf the foreach statement does not iterate properly as shown below.

(Note that the messed up anti-aliasing indicates that the 12 figures were stacked on top of each other.)
And I am given the following two error messages:

Based on this post I suspect this has something to do with the version used by Overleaf, but I am unsure how to change this. If it is not possible, how can I amend my code to render properly in the version Overleaf uses?
tikz-pgf overleaf
I am having an issue I have never had before where code I wrote and works fine on my PC using Texmaker (MiKTeX) throws errors when copy-pasted into Overleaf.
This is the code:
documentclass{article}
usepackage{tikz}
begin{document}
defchair#1#2#3#4{
begin{scope}[shift={#1},rotate={#2-90},scale={0.5*#3}]
draw (-1.1,1) to[out=30,in=150] (1.1,1);
draw (-1,0.75) to[out=30,in=150] (1,0.75) -- (1,-0.75) to[out=-150,in=-30] (-1,-0.75) to cycle;
draw (0,0) node {#4};
end{scope}
}
pagenumbering{gobble}
centering
begin{tikzpicture}[line width=0.5mm,scale=1.1]
defa{12}
defs{2}
foreach i in {0,...,a-1}
chair{({i*180/(a-1)}:{1.5+s})}{i*180/(a-1)}{0.75}{}; % (this is line 20)
end{tikzpicture}
end{document}
In Texmaker it renders exactly as I would like:

But when that exact code is copy-pasted into Overleaf the foreach statement does not iterate properly as shown below.

(Note that the messed up anti-aliasing indicates that the 12 figures were stacked on top of each other.)
And I am given the following two error messages:

Based on this post I suspect this has something to do with the version used by Overleaf, but I am unsure how to change this. If it is not possible, how can I amend my code to render properly in the version Overleaf uses?
tikz-pgf overleaf
tikz-pgf overleaf
asked 7 mins ago
PGmathPGmath
1503
1503
add a comment |
add a comment |
0
active
oldest
votes
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%2f481268%2ftikz-code-renders-fine-in-texmaker-but-complains-about-units-in-overleaf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f481268%2ftikz-code-renders-fine-in-texmaker-but-complains-about-units-in-overleaf%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