% symbol leads to superlong (forever?) compilations The 2019 Stack Overflow Developer Survey Results Are InAbout TikZ and decoration (accent in text)Why does TikZ add zeros?diagram with curved arrows and instructions (probably tikz)TikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themTikz takes forever to compile when imported into main file

How to Override Magento 2 vendor files

Time travel alters history but people keep saying nothing's changed

Is three citations per paragraph excessive for undergraduate research paper?

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

Differentiate between a line ending within a polygon and a line passing all the way through a polygon - QGIS

Pristine Bit Checking

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

How was Skylab's orbit inclination chosen?

What tool would a Roman-age civilization have to grind silver and other metals into dust?

Can the Protection from Evil and Good spell be used on the caster?

How to manage monthly salary

Where to refill my bottle in India?

Understanding the implication of what "well-defined" means for the operation in quotient group

I see my dog run

Rank groups within a grouped sequence of TRUE/FALSE and NA

Potential by Assembling Charges

Loose spokes after only a few rides

A poker game description that does not feel gimmicky

How is radar separation assured between primary and secondary targets?

Is there a general name for the setup in which payoffs are not known exactly but players try to influence each other's perception of the payoffs?

Could JWST stay at L2 "forever"?

I looked up a future colleague on LinkedIn before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

How are circuits which use complex ICs normally simulated?



% symbol leads to superlong (forever?) compilations



The 2019 Stack Overflow Developer Survey Results Are InAbout TikZ and decoration (accent in text)Why does TikZ add zeros?diagram with curved arrows and instructions (probably tikz)TikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themTikz takes forever to compile when imported into main file










14















This problem occurs when I am trying to improve my answer in this question.




You can compile this code very well



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here



but don't compile this code!



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


I have been waiting for more than 200 seconds



enter image description here



Why? I just want to add a percent symbol (%)!



I think TikZ understood my % as %, but removing the throws many errors.



I even used siunitx, but got the same result.



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
usepackagesiunitx
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by SI100percent] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


So, what's going on?










share|improve this question



















  • 1





    Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

    – Sebastiano
    Mar 28 at 16:22











  • @Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

    – JouleV
    Mar 28 at 16:24











  • Is this :-)? marketplace.visualstudio.com/…

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – JouleV
    Mar 28 at 16:28






  • 2





    The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

    – egreg
    Mar 28 at 17:03
















14















This problem occurs when I am trying to improve my answer in this question.




You can compile this code very well



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here



but don't compile this code!



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


I have been waiting for more than 200 seconds



enter image description here



Why? I just want to add a percent symbol (%)!



I think TikZ understood my % as %, but removing the throws many errors.



I even used siunitx, but got the same result.



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
usepackagesiunitx
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by SI100percent] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


So, what's going on?










share|improve this question



















  • 1





    Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

    – Sebastiano
    Mar 28 at 16:22











  • @Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

    – JouleV
    Mar 28 at 16:24











  • Is this :-)? marketplace.visualstudio.com/…

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – JouleV
    Mar 28 at 16:28






  • 2





    The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

    – egreg
    Mar 28 at 17:03














14












14








14








This problem occurs when I am trying to improve my answer in this question.




You can compile this code very well



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here



but don't compile this code!



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


I have been waiting for more than 200 seconds



enter image description here



Why? I just want to add a percent symbol (%)!



I think TikZ understood my % as %, but removing the throws many errors.



I even used siunitx, but got the same result.



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
usepackagesiunitx
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by SI100percent] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


So, what's going on?










share|improve this question
















This problem occurs when I am trying to improve my answer in this question.




You can compile this code very well



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here



but don't compile this code!



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


I have been waiting for more than 200 seconds



enter image description here



Why? I just want to add a percent symbol (%)!



I think TikZ understood my % as %, but removing the throws many errors.



I even used siunitx, but got the same result.



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
usepackagesiunitx
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text align=center,text=multiply by SI100percent] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


So, what's going on?







tikz-pgf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 0:21









Dancrumb

1032




1032










asked Mar 28 at 15:46









JouleVJouleV

12.2k22662




12.2k22662







  • 1





    Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

    – Sebastiano
    Mar 28 at 16:22











  • @Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

    – JouleV
    Mar 28 at 16:24











  • Is this :-)? marketplace.visualstudio.com/…

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – JouleV
    Mar 28 at 16:28






  • 2





    The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

    – egreg
    Mar 28 at 17:03













  • 1





    Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

    – Sebastiano
    Mar 28 at 16:22











  • @Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

    – JouleV
    Mar 28 at 16:24











  • Is this :-)? marketplace.visualstudio.com/…

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – JouleV
    Mar 28 at 16:28






  • 2





    The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

    – egreg
    Mar 28 at 17:03








1




1





Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

– Sebastiano
Mar 28 at 16:22





Very nice your 2nd image: How do I find the compilation time? Do you have any specific software where you can see the build time? My regards.

– Sebastiano
Mar 28 at 16:22













@Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

– JouleV
Mar 28 at 16:24





@Sebastiano I use VS Code. The LaTeX Workshop extension gives me a link to see the compilation process, which I don't use really often, but it is very useful in strange situations, like this situation.

– JouleV
Mar 28 at 16:24













Is this :-)? marketplace.visualstudio.com/…

– Sebastiano
Mar 28 at 16:28





Is this :-)? marketplace.visualstudio.com/…

– Sebastiano
Mar 28 at 16:28













@Sebastiano Yes, that's it.

– JouleV
Mar 28 at 16:28





@Sebastiano Yes, that's it.

– JouleV
Mar 28 at 16:28




2




2





The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

– egreg
Mar 28 at 17:03






The infinite loop is triggered by any unexpandable control sequence token, even by relax (except implicit character tokens that raise errors). Bracing the token is the right way to go.

– egreg
Mar 28 at 17:03











2 Answers
2






active

oldest

votes


















14














You only need to wrap % into ....



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here






share|improve this answer























  • Wow, that's easier (why didn't I try this?). Thumbs up!

    – Skillmon
    Mar 28 at 16:12






  • 2





    @Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

    – marmot
    Mar 28 at 16:13






  • 1





    @JouleV So sorry. ;-)

    – marmot
    Mar 28 at 16:17






  • 2





    @marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

    – JouleV
    Mar 28 at 16:58






  • 1





    @JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

    – marmot
    Mar 28 at 17:02


















13














You can make this work by changing the % character to not be the comment character anymore using catcode:



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
beginscope
catcode`%=12
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endscope
endtikzpicture
enddocument





share|improve this answer


















  • 1





    Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

    – JouleV
    Mar 28 at 16:07






  • 4





    @JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

    – Skillmon
    Mar 28 at 16:10











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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481935%2fsymbol-leads-to-superlong-forever-compilations%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









14














You only need to wrap % into ....



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here






share|improve this answer























  • Wow, that's easier (why didn't I try this?). Thumbs up!

    – Skillmon
    Mar 28 at 16:12






  • 2





    @Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

    – marmot
    Mar 28 at 16:13






  • 1





    @JouleV So sorry. ;-)

    – marmot
    Mar 28 at 16:17






  • 2





    @marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

    – JouleV
    Mar 28 at 16:58






  • 1





    @JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

    – marmot
    Mar 28 at 17:02















14














You only need to wrap % into ....



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here






share|improve this answer























  • Wow, that's easier (why didn't I try this?). Thumbs up!

    – Skillmon
    Mar 28 at 16:12






  • 2





    @Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

    – marmot
    Mar 28 at 16:13






  • 1





    @JouleV So sorry. ;-)

    – marmot
    Mar 28 at 16:17






  • 2





    @marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

    – JouleV
    Mar 28 at 16:58






  • 1





    @JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

    – marmot
    Mar 28 at 17:02













14












14








14







You only need to wrap % into ....



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here






share|improve this answer













You only need to wrap % into ....



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endtikzpicture
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 16:09









marmotmarmot

116k5150281




116k5150281












  • Wow, that's easier (why didn't I try this?). Thumbs up!

    – Skillmon
    Mar 28 at 16:12






  • 2





    @Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

    – marmot
    Mar 28 at 16:13






  • 1





    @JouleV So sorry. ;-)

    – marmot
    Mar 28 at 16:17






  • 2





    @marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

    – JouleV
    Mar 28 at 16:58






  • 1





    @JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

    – marmot
    Mar 28 at 17:02

















  • Wow, that's easier (why didn't I try this?). Thumbs up!

    – Skillmon
    Mar 28 at 16:12






  • 2





    @Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

    – marmot
    Mar 28 at 16:13






  • 1





    @JouleV So sorry. ;-)

    – marmot
    Mar 28 at 16:17






  • 2





    @marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

    – JouleV
    Mar 28 at 16:58






  • 1





    @JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

    – marmot
    Mar 28 at 17:02
















Wow, that's easier (why didn't I try this?). Thumbs up!

– Skillmon
Mar 28 at 16:12





Wow, that's easier (why didn't I try this?). Thumbs up!

– Skillmon
Mar 28 at 16:12




2




2





@Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

– marmot
Mar 28 at 16:13





@Skillmon I tried this only after recalling this discussion, which almost drove me crazy,

– marmot
Mar 28 at 16:13




1




1





@JouleV So sorry. ;-)

– marmot
Mar 28 at 16:17





@JouleV So sorry. ;-)

– marmot
Mar 28 at 16:17




2




2





@marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

– JouleV
Mar 28 at 16:58





@marmot Agreed. (Off topic: there are two opposite "exchange"s in your comment - it is quite funny.)

– JouleV
Mar 28 at 16:58




1




1





@JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

– marmot
Mar 28 at 17:02





@JouleV Most likely stackexchange is run by the sociology department of Harvard, who want to explore the mind sets of humans (and ducks, koalas and marmots ;-).

– marmot
Mar 28 at 17:02











13














You can make this work by changing the % character to not be the comment character anymore using catcode:



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
beginscope
catcode`%=12
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endscope
endtikzpicture
enddocument





share|improve this answer


















  • 1





    Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

    – JouleV
    Mar 28 at 16:07






  • 4





    @JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

    – Skillmon
    Mar 28 at 16:10















13














You can make this work by changing the % character to not be the comment character anymore using catcode:



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
beginscope
catcode`%=12
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endscope
endtikzpicture
enddocument





share|improve this answer


















  • 1





    Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

    – JouleV
    Mar 28 at 16:07






  • 4





    @JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

    – Skillmon
    Mar 28 at 16:10













13












13








13







You can make this work by changing the % character to not be the comment character anymore using catcode:



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
beginscope
catcode`%=12
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endscope
endtikzpicture
enddocument





share|improve this answer













You can make this work by changing the % character to not be the comment character anymore using catcode:



documentclass[tikz]standalone
usetikzlibrarybending,decorations.text
begindocument
begintikzpicture
sffamily
node (a) at (-2,0) probability;
node[align=center] (b) at (2,0) percent\change;
beginscope
catcode`%=12
draw[-latex,postaction=decorate,decoration=raise=1ex,text along path,text
align=center,text=multiply by 100%] (a) to[out=60,in=120] (b);
endscope
endtikzpicture
enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 16:03









SkillmonSkillmon

24.3k12250




24.3k12250







  • 1





    Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

    – JouleV
    Mar 28 at 16:07






  • 4





    @JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

    – Skillmon
    Mar 28 at 16:10












  • 1





    Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

    – JouleV
    Mar 28 at 16:07






  • 4





    @JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

    – Skillmon
    Mar 28 at 16:10







1




1





Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

– JouleV
Mar 28 at 16:07





Thanks, it solved the problem. However, could you please add some explanation about why % doesn't work?

– JouleV
Mar 28 at 16:07




4




4





@JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

– Skillmon
Mar 28 at 16:10





@JouleV for that I'd have to dig through the internals of TikZ, which isn't something I feel like right now, sorry.

– Skillmon
Mar 28 at 16:10

















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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481935%2fsymbol-leads-to-superlong-forever-compilations%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

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High