% symbol leads to superlong (forever?) compilationsAbout TikZ and decoration (accent in text)Why does TikZ add zeros?How to write non-numerical content into an S-type column from siunitx package?diagram with curved arrows and instructions (probably tikz)Modifying arcarrowTikZ: 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 themUse previous Tikz figure compilation for future compilations?

Designing a time thief proof safe

Why weren't the Death Star plans transmitted electronically?

Order of ingredients when making Pizza dough

How can an attacker use robots.txt?

What is the size of a set of sets of the empty set , , ?

Is "ln" (natural log) and "log" the same thing if used in this answer?

Can a broken/split chain be reassembled?

Hiking with a mule or two?

Guitar tuning (EADGBE), "perfect" fourths?

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?

Can Northern Ireland's border issue be solved by repartition?

How to justify a team increase when the team is doing good?

Going to France with limited French for a day

How do pilots align the HUD with their eyeballs?

Performance for simple code that converts a RGB tuple to hex string

Do we know the situation in Britain before Sealion (summer 1940)?

Is it impolite to ask for an in-flight catalogue with no intention of buying?

What do you do if you have developments on your paper during the long peer review process?

If an object moving in a circle experiences centripetal force, then doesn't it also experience centrifugal force, because of Newton's third law?

How do I set a custom order for folders on Windows 7 and 10?

Which place in our solar system is the most fit for terraforming?

What is the difference between an astronaut in the ISS and a freediver in perfect neutral buoyancy?

Subverting the emotional woman and stoic man trope

Safely hang a mirror that does not have hooks



% symbol leads to superlong (forever?) compilations


About TikZ and decoration (accent in text)Why does TikZ add zeros?How to write non-numerical content into an S-type column from siunitx package?diagram with curved arrows and instructions (probably tikz)Modifying arcarrowTikZ: 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 themUse previous Tikz figure compilation for future compilations?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








15















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.

    – user156344
    Mar 28 at 16:24











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

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – user156344
    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


















15















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.

    – user156344
    Mar 28 at 16:24











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

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – user156344
    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














15












15








15








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 bronze badges




1032 bronze badges










asked Mar 28 at 15:46







user156344

















  • 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.

    – user156344
    Mar 28 at 16:24











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

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – user156344
    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.

    – user156344
    Mar 28 at 16:24











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

    – Sebastiano
    Mar 28 at 16:28











  • @Sebastiano Yes, that's it.

    – user156344
    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.

– user156344
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.

– user156344
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.

– user156344
Mar 28 at 16:28





@Sebastiano Yes, that's it.

– user156344
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


















13
















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,

    – user121799
    Mar 28 at 16:13











  • @Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

    – user156344
    Mar 28 at 16:15






  • 1





    @JouleV So sorry. ;-)

    – user121799
    Mar 28 at 16:17






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

    – user121799
    Mar 28 at 17:02


















12
















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?

    – user156344
    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/4.0/"u003ecc by-sa 4.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









13
















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,

    – user121799
    Mar 28 at 16:13











  • @Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

    – user156344
    Mar 28 at 16:15






  • 1





    @JouleV So sorry. ;-)

    – user121799
    Mar 28 at 16:17






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

    – user121799
    Mar 28 at 17:02















13
















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,

    – user121799
    Mar 28 at 16:13











  • @Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

    – user156344
    Mar 28 at 16:15






  • 1





    @JouleV So sorry. ;-)

    – user121799
    Mar 28 at 16:17






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

    – user121799
    Mar 28 at 17:02













13














13










13









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







user121799






















  • 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,

    – user121799
    Mar 28 at 16:13











  • @Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

    – user156344
    Mar 28 at 16:15






  • 1





    @JouleV So sorry. ;-)

    – user121799
    Mar 28 at 16:17






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

    – user121799
    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,

    – user121799
    Mar 28 at 16:13











  • @Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

    – user156344
    Mar 28 at 16:15






  • 1





    @JouleV So sorry. ;-)

    – user121799
    Mar 28 at 16:17






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

    – user121799
    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,

– user121799
Mar 28 at 16:13





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

– user121799
Mar 28 at 16:13













@Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

– user156344
Mar 28 at 16:15





@Skillmon marmot really drove me crazy with this solution. I'm feeling stupid now :))

– user156344
Mar 28 at 16:15




1




1





@JouleV So sorry. ;-)

– user121799
Mar 28 at 16:17





@JouleV So sorry. ;-)

– user121799
Mar 28 at 16:17




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

– user121799
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 ;-).

– user121799
Mar 28 at 17:02













12
















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?

    – user156344
    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















12
















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?

    – user156344
    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













12














12










12









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

28.2k1 gold badge28 silver badges59 bronze badges




28.2k1 gold badge28 silver badges59 bronze badges










  • 1





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

    – user156344
    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?

    – user156344
    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?

– user156344
Mar 28 at 16:07





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

– user156344
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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript