Increase letter spacing in TiKZ text decorationsTikZ: multiple decorations on a path.Tikz, decorationsDecorations on multiple pathsCustom Fading for RectangleTikz decorations inheriting styles?Letterspacing in TiKZ text decorationsremove text decorations in headerAutomatically find which nodes are closest, to aid drawing lines within a TikZ matrixPositioning of Node LabelsCancel a term using tikzmark package
Is there any word for "disobedience to God"?
How to deal with moral/legal subjects in writing?
Extract string from each line of a file
Word meaning to destroy books
Why does wrapping aluminium foil around my food help it keep warm, even though aluminium is a good conductor?
Is a request to book a business flight ticket for a graduate student an unreasonable one?
What specific instant in time in the MCU has been depicted the most times?
Does throwing a penny at a train stop the train?
How can I truly shut down ssh server?
Why doesn't sea level show seasonality?
How do we handle pauses in a dialogue?
How to befriend private nested class
Sharing shapefile collection
How were Martello towers supposed to work?
How quality assurance engineers test calculations?
Credit score and financing new car
Switching interface VLAN ID Mid-Production
Employers keep telling me my college isn't good enough - is there any way to fix this?
Indesign - how to change the style of the page numbers?
How can a dictatorship government be beneficial to a dictator in a post-scarcity society?
Benchmark problems for combinatorial multi-objective optimisation
How would vampires avoid contracting diseases?
This one's for Matthew:
How to tell someone I'd like to become friends without letting them think I'm romantically interested in them?
Increase letter spacing in TiKZ text decorations
TikZ: multiple decorations on a path.Tikz, decorationsDecorations on multiple pathsCustom Fading for RectangleTikz decorations inheriting styles?Letterspacing in TiKZ text decorationsremove text decorations in headerAutomatically find which nodes are closest, to aid drawing lines within a TikZ matrixPositioning of Node LabelsCancel a term using tikzmark package
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've been trying to increase the spacing between letters in the diagram below:
documentclass[12pt]standalone
usepackagetikz
usepackagefontspec
setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h E a s t,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h W e s t,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h W e s t,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h E a s t,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Ideally, the outcome would be as the decorations outside of the circle, if it weren't for the fact that the system counts two spaces as one. I don't want to use the option fit to path
because the text is stretched throughout the arc. Do you have any suggestions (also if you spot any inconsistency)? Thank you!
tikz-pgf fontspec decorations
add a comment |
I've been trying to increase the spacing between letters in the diagram below:
documentclass[12pt]standalone
usepackagetikz
usepackagefontspec
setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h E a s t,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h W e s t,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h W e s t,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h E a s t,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Ideally, the outcome would be as the decorations outside of the circle, if it weren't for the fact that the system counts two spaces as one. I don't want to use the option fit to path
because the text is stretched throughout the arc. Do you have any suggestions (also if you spot any inconsistency)? Thank you!
tikz-pgf fontspec decorations
Welcome to TeX-SE! You can achieve any stretching with the keytext align=fit to path
, which allows you to spread the letters over the path.
– marmot
Jul 1 at 23:26
add a comment |
I've been trying to increase the spacing between letters in the diagram below:
documentclass[12pt]standalone
usepackagetikz
usepackagefontspec
setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h E a s t,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h W e s t,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h W e s t,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h E a s t,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Ideally, the outcome would be as the decorations outside of the circle, if it weren't for the fact that the system counts two spaces as one. I don't want to use the option fit to path
because the text is stretched throughout the arc. Do you have any suggestions (also if you spot any inconsistency)? Thank you!
tikz-pgf fontspec decorations
I've been trying to increase the spacing between letters in the diagram below:
documentclass[12pt]standalone
usepackagetikz
usepackagefontspec
setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h E a s t,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=18pt, text along path, text=N o r t h W e s t,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h W e s t,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path, text=S o u t h E a s t,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Ideally, the outcome would be as the decorations outside of the circle, if it weren't for the fact that the system counts two spaces as one. I don't want to use the option fit to path
because the text is stretched throughout the arc. Do you have any suggestions (also if you spot any inconsistency)? Thank you!
tikz-pgf fontspec decorations
tikz-pgf fontspec decorations
asked Jul 1 at 23:18
CatoblepaCatoblepa
454 bronze badges
454 bronze badges
Welcome to TeX-SE! You can achieve any stretching with the keytext align=fit to path
, which allows you to spread the letters over the path.
– marmot
Jul 1 at 23:26
add a comment |
Welcome to TeX-SE! You can achieve any stretching with the keytext align=fit to path
, which allows you to spread the letters over the path.
– marmot
Jul 1 at 23:26
Welcome to TeX-SE! You can achieve any stretching with the key
text align=fit to path
, which allows you to spread the letters over the path.– marmot
Jul 1 at 23:26
Welcome to TeX-SE! You can achieve any stretching with the key
text align=fit to path
, which allows you to spread the letters over the path.– marmot
Jul 1 at 23:26
add a comment |
2 Answers
2
active
oldest
votes
Mostly off-topic (with some ideas on how to make your code more concise), solution for for the text along path outside of circle is the same as in the @marmoth answer:
documentclass[tikz,border=3.14mm]standalone
usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture[
textA/.style args = #1/#2decorate,
decoration=raise= 18pt, text along path, text=#1,
text align=fit to path, #2, % #2 for reversed path
textB/.style args = #1/#2decorate,
decoration=raise=-18pt, text along path, text=#1,
text align=center, #2, % #2 for reversed path
]
node [left] at (-8.4,0) West;
node [above,anchor=west,rotate=90] at (0, 8.4) North;
node [right] at (8.4,0) East;
node [below,anchor=east,rotate=90] at (0,-8.4) South;
draw (-8,0) -- (8,0)
(0,-8) -- (0,8);
%
path[textB=North East/ ] (0,8) arc (90:0:8cm);
path[textB=North West/reverse path] ( 0,8) arc (90:180:8cm);
path[textB=South West/reverse path] (-8,0) arc (180:270:8cm);
path[textB=South East/reverse path] (0,-8) arc (270:360:8cm);
%
path[textA=North East/ ] (60:8) arc (60:30:8cm);
path[textA=North West/reverse path] (120:8) arc (120:150:8cm);
path[textA=South West/reverse path] (210:8) arc (210:240:8cm);
path[textA=South East/reverse path] (300:8) arc (300:330:8cm);
%
draw [thick] (0,0) circle[radius=8cm];
%
node[above] at (0,8) $b$;
node[below] at (0,-8) $d$;
node[left] at (-8,0) $a$;
node[right] at (8,0) $c$;
endtikzpicture
enddocument
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
add a comment |
Here is a proposal that uses text align=fit to path
. I do not have your fonts.
documentclass[tikz,border=3.14mm]standalone
% usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North East,text align=center] (60:8) arc (60:30:8cm);
draw [thick] (0,8) arc (90:00:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North West,text align=center, reverse path] (120:8) arc (120:150:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South West,text align=center, reverse path] (210:8) arc (210:240:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South East,text align=center, reverse path] (300:8) arc (300:330:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position wasmidway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)
– Catoblepa
Jul 2 at 1:09
1
@Catoblepa I have very slow internet now but you can align thebaseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could donode [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to usepositioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).
– marmot
Jul 2 at 4:22
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%2f498295%2fincrease-letter-spacing-in-tikz-text-decorations%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
Mostly off-topic (with some ideas on how to make your code more concise), solution for for the text along path outside of circle is the same as in the @marmoth answer:
documentclass[tikz,border=3.14mm]standalone
usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture[
textA/.style args = #1/#2decorate,
decoration=raise= 18pt, text along path, text=#1,
text align=fit to path, #2, % #2 for reversed path
textB/.style args = #1/#2decorate,
decoration=raise=-18pt, text along path, text=#1,
text align=center, #2, % #2 for reversed path
]
node [left] at (-8.4,0) West;
node [above,anchor=west,rotate=90] at (0, 8.4) North;
node [right] at (8.4,0) East;
node [below,anchor=east,rotate=90] at (0,-8.4) South;
draw (-8,0) -- (8,0)
(0,-8) -- (0,8);
%
path[textB=North East/ ] (0,8) arc (90:0:8cm);
path[textB=North West/reverse path] ( 0,8) arc (90:180:8cm);
path[textB=South West/reverse path] (-8,0) arc (180:270:8cm);
path[textB=South East/reverse path] (0,-8) arc (270:360:8cm);
%
path[textA=North East/ ] (60:8) arc (60:30:8cm);
path[textA=North West/reverse path] (120:8) arc (120:150:8cm);
path[textA=South West/reverse path] (210:8) arc (210:240:8cm);
path[textA=South East/reverse path] (300:8) arc (300:330:8cm);
%
draw [thick] (0,0) circle[radius=8cm];
%
node[above] at (0,8) $b$;
node[below] at (0,-8) $d$;
node[left] at (-8,0) $a$;
node[right] at (8,0) $c$;
endtikzpicture
enddocument
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
add a comment |
Mostly off-topic (with some ideas on how to make your code more concise), solution for for the text along path outside of circle is the same as in the @marmoth answer:
documentclass[tikz,border=3.14mm]standalone
usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture[
textA/.style args = #1/#2decorate,
decoration=raise= 18pt, text along path, text=#1,
text align=fit to path, #2, % #2 for reversed path
textB/.style args = #1/#2decorate,
decoration=raise=-18pt, text along path, text=#1,
text align=center, #2, % #2 for reversed path
]
node [left] at (-8.4,0) West;
node [above,anchor=west,rotate=90] at (0, 8.4) North;
node [right] at (8.4,0) East;
node [below,anchor=east,rotate=90] at (0,-8.4) South;
draw (-8,0) -- (8,0)
(0,-8) -- (0,8);
%
path[textB=North East/ ] (0,8) arc (90:0:8cm);
path[textB=North West/reverse path] ( 0,8) arc (90:180:8cm);
path[textB=South West/reverse path] (-8,0) arc (180:270:8cm);
path[textB=South East/reverse path] (0,-8) arc (270:360:8cm);
%
path[textA=North East/ ] (60:8) arc (60:30:8cm);
path[textA=North West/reverse path] (120:8) arc (120:150:8cm);
path[textA=South West/reverse path] (210:8) arc (210:240:8cm);
path[textA=South East/reverse path] (300:8) arc (300:330:8cm);
%
draw [thick] (0,0) circle[radius=8cm];
%
node[above] at (0,8) $b$;
node[below] at (0,-8) $d$;
node[left] at (-8,0) $a$;
node[right] at (8,0) $c$;
endtikzpicture
enddocument
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
add a comment |
Mostly off-topic (with some ideas on how to make your code more concise), solution for for the text along path outside of circle is the same as in the @marmoth answer:
documentclass[tikz,border=3.14mm]standalone
usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture[
textA/.style args = #1/#2decorate,
decoration=raise= 18pt, text along path, text=#1,
text align=fit to path, #2, % #2 for reversed path
textB/.style args = #1/#2decorate,
decoration=raise=-18pt, text along path, text=#1,
text align=center, #2, % #2 for reversed path
]
node [left] at (-8.4,0) West;
node [above,anchor=west,rotate=90] at (0, 8.4) North;
node [right] at (8.4,0) East;
node [below,anchor=east,rotate=90] at (0,-8.4) South;
draw (-8,0) -- (8,0)
(0,-8) -- (0,8);
%
path[textB=North East/ ] (0,8) arc (90:0:8cm);
path[textB=North West/reverse path] ( 0,8) arc (90:180:8cm);
path[textB=South West/reverse path] (-8,0) arc (180:270:8cm);
path[textB=South East/reverse path] (0,-8) arc (270:360:8cm);
%
path[textA=North East/ ] (60:8) arc (60:30:8cm);
path[textA=North West/reverse path] (120:8) arc (120:150:8cm);
path[textA=South West/reverse path] (210:8) arc (210:240:8cm);
path[textA=South East/reverse path] (300:8) arc (300:330:8cm);
%
draw [thick] (0,0) circle[radius=8cm];
%
node[above] at (0,8) $b$;
node[below] at (0,-8) $d$;
node[left] at (-8,0) $a$;
node[right] at (8,0) $c$;
endtikzpicture
enddocument
Mostly off-topic (with some ideas on how to make your code more concise), solution for for the text along path outside of circle is the same as in the @marmoth answer:
documentclass[tikz,border=3.14mm]standalone
usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture[
textA/.style args = #1/#2decorate,
decoration=raise= 18pt, text along path, text=#1,
text align=fit to path, #2, % #2 for reversed path
textB/.style args = #1/#2decorate,
decoration=raise=-18pt, text along path, text=#1,
text align=center, #2, % #2 for reversed path
]
node [left] at (-8.4,0) West;
node [above,anchor=west,rotate=90] at (0, 8.4) North;
node [right] at (8.4,0) East;
node [below,anchor=east,rotate=90] at (0,-8.4) South;
draw (-8,0) -- (8,0)
(0,-8) -- (0,8);
%
path[textB=North East/ ] (0,8) arc (90:0:8cm);
path[textB=North West/reverse path] ( 0,8) arc (90:180:8cm);
path[textB=South West/reverse path] (-8,0) arc (180:270:8cm);
path[textB=South East/reverse path] (0,-8) arc (270:360:8cm);
%
path[textA=North East/ ] (60:8) arc (60:30:8cm);
path[textA=North West/reverse path] (120:8) arc (120:150:8cm);
path[textA=South West/reverse path] (210:8) arc (210:240:8cm);
path[textA=South East/reverse path] (300:8) arc (300:330:8cm);
%
draw [thick] (0,0) circle[radius=8cm];
%
node[above] at (0,8) $b$;
node[below] at (0,-8) $d$;
node[left] at (-8,0) $a$;
node[right] at (8,0) $c$;
endtikzpicture
enddocument
edited Jul 2 at 3:39
answered Jul 2 at 3:22
ZarkoZarko
139k8 gold badges77 silver badges187 bronze badges
139k8 gold badges77 silver badges187 bronze badges
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
add a comment |
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
Thank you, Zarko.
– Catoblepa
Jul 2 at 12:21
add a comment |
Here is a proposal that uses text align=fit to path
. I do not have your fonts.
documentclass[tikz,border=3.14mm]standalone
% usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North East,text align=center] (60:8) arc (60:30:8cm);
draw [thick] (0,8) arc (90:00:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North West,text align=center, reverse path] (120:8) arc (120:150:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South West,text align=center, reverse path] (210:8) arc (210:240:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South East,text align=center, reverse path] (300:8) arc (300:330:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position wasmidway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)
– Catoblepa
Jul 2 at 1:09
1
@Catoblepa I have very slow internet now but you can align thebaseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could donode [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to usepositioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).
– marmot
Jul 2 at 4:22
add a comment |
Here is a proposal that uses text align=fit to path
. I do not have your fonts.
documentclass[tikz,border=3.14mm]standalone
% usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North East,text align=center] (60:8) arc (60:30:8cm);
draw [thick] (0,8) arc (90:00:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North West,text align=center, reverse path] (120:8) arc (120:150:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South West,text align=center, reverse path] (210:8) arc (210:240:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South East,text align=center, reverse path] (300:8) arc (300:330:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position wasmidway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)
– Catoblepa
Jul 2 at 1:09
1
@Catoblepa I have very slow internet now but you can align thebaseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could donode [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to usepositioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).
– marmot
Jul 2 at 4:22
add a comment |
Here is a proposal that uses text align=fit to path
. I do not have your fonts.
documentclass[tikz,border=3.14mm]standalone
% usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North East,text align=center] (60:8) arc (60:30:8cm);
draw [thick] (0,8) arc (90:00:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North West,text align=center, reverse path] (120:8) arc (120:150:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South West,text align=center, reverse path] (210:8) arc (210:240:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South East,text align=center, reverse path] (300:8) arc (300:330:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
Here is a proposal that uses text align=fit to path
. I do not have your fonts.
documentclass[tikz,border=3.14mm]standalone
% usepackagefontspec
% setmainfontBrill
usetikzlibrarydecorations.text
begindocument
begintikzpicture
draw [white] (-10,0) -- (-8,0) node [black, midway] West;
draw [white] (0,8) -- (0,11) node [black, rotate=90, midway] North;
draw [white] (8,0) -- (10,0) node [black, midway] East;
draw [white] (0,-8) -- (0,-11) node [black, rotate=90, midway] South;
draw (-8,0) -- (8,0);
draw (0,-8) -- (0,8);
path[decorate,decoration=raise=-18pt, text along path, text=North East,text align=center] (0,8) arc (90:0:8cm);
draw [thick] (0,8) arc (90:0:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=North West,text align=center, reverse path] (0,8) arc (90:180:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South West,text align=center, reverse path] (-8,0) arc (180:270:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=-18pt, text along path, text=South East,text align=center, reverse path] (0,-8) arc (270:360:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North East,text align=center] (60:8) arc (60:30:8cm);
draw [thick] (0,8) arc (90:00:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=North West,text align=center, reverse path] (120:8) arc (120:150:8cm);
draw [thick] (0,8) arc (90:180:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South West,text align=center, reverse path] (210:8) arc (210:240:8cm);
draw [thick] (-8,0) arc (180:270:8cm);
path[decorate,decoration=raise=18pt, text along path,text align=fit to path,
text=South East,text align=center, reverse path] (300:8) arc (300:330:8cm);
draw [thick] (0,-8) arc (270:360:8cm);
node [above] at (0,8) textitb;
node [below] at (0,-8) textitd;
node [left] at (-8,0) textita;
node [right] at (8,0) textitc;
endtikzpicture
enddocument
answered Jul 1 at 23:34
marmotmarmot
143k6 gold badges187 silver badges345 bronze badges
143k6 gold badges187 silver badges345 bronze badges
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position wasmidway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)
– Catoblepa
Jul 2 at 1:09
1
@Catoblepa I have very slow internet now but you can align thebaseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could donode [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to usepositioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).
– marmot
Jul 2 at 4:22
add a comment |
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position wasmidway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)
– Catoblepa
Jul 2 at 1:09
1
@Catoblepa I have very slow internet now but you can align thebaseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could donode [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to usepositioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).
– marmot
Jul 2 at 4:22
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position was
midway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)– Catoblepa
Jul 2 at 1:09
Thank you, marmot! The tweak works pretty well on my file. On a slightly unrelated subject, I've realized, that the texts "North", "South", "East", and "West" are slightly lowered with respect to the letters (a, b, c, d), in spite of the fact that the text position was
midway
. Do you know why this happened? (I'm fine asking this question on a separate thread.)– Catoblepa
Jul 2 at 1:09
1
1
@Catoblepa I have very slow internet now but you can align the
baseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could do node [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to use positioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).– marmot
Jul 2 at 4:22
@Catoblepa I have very slow internet now but you can align the
baseline
s of nodes. The problem is that the nodes are vertically centered where you place them. For now you could do node [left,font=itshape] at (-8,0) vphantomWa;
, to cure this, but the proper way is to use positioning
. I will be happy to spell this out when I have internet (unless somebody who always copies things and claims to make them more "concise" will do that before... sigh...).– marmot
Jul 2 at 4:22
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%2f498295%2fincrease-letter-spacing-in-tikz-text-decorations%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
Welcome to TeX-SE! You can achieve any stretching with the key
text align=fit to path
, which allows you to spread the letters over the path.– marmot
Jul 1 at 23:26