Speedometer as a symbol into awesomeboxHow can I put a coloured outline around fraction lines?Using Letter...
Were Roman public roads build by private companies?
Why is the Digital 0 not 0V in computer systems?
How to publish superseding results without creating enemies
Make 1998 using the least possible digits 8
Where to disclose a zero day vulnerability
How major are these paintwork & rust problems?
"Literally" Vs "In the true sense of the word"
A shy person in a queue
How are aircraft depainted?
How do EVA suits manage water excretion?
Newly created XFS filesystem shows 78 GB used
Diffraction of a wave passing through double slits
Karazuba Algorithm with arbitrary bases
Planar regular languages
Bash, import output from command as command
Which is the current decimal separator?
How can I discourage sharing internal API keys within a company?
How to stabilise the bicycle seatpost and saddle when it is all the way up?
What explanation do proponents of a Scotland-NI bridge give for it breaking Brexit impasse?
What does a Light weapon mean mechanically?
2000s space film where an alien species has almost wiped out the human race in a war
Why is my fire extinguisher emptied after one use?
Telling my mother that I have anorexia without panicking her
5e Level 1 Druid cantrips
Speedometer as a symbol into awesomebox
How can I put a coloured outline around fraction lines?Using Letter symbol in ifsym packageHow to define the default vertical distance between nodes?TikZ: Drawing an arc from an intersection to an intersection± Symbol in textfontawesome: How to mirror a symbol in tikz?Footprints symbol in LaTeX
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Actually I'm using awesomebox package to draw blocks around text. Here there is an example.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{fontawesome5}
usepackage{lipsum}
begin{document}
awesomebox[violet]{2pt}{faRocket}{violet}{lipsum[4]}
end{document}
Into the guide there is written that "The specific aim of this package is to use FontAwesome 5 icons to ease the illustration of these boxes."
Is there a font, a symbol to be inserted (instead of the fontawesome5
symbols) with a suitable strategy, to have three different types of speedometer without text like this image?
tikz-pgf symbols packages fontawesome
add a comment
|
Actually I'm using awesomebox package to draw blocks around text. Here there is an example.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{fontawesome5}
usepackage{lipsum}
begin{document}
awesomebox[violet]{2pt}{faRocket}{violet}{lipsum[4]}
end{document}
Into the guide there is written that "The specific aim of this package is to use FontAwesome 5 icons to ease the illustration of these boxes."
Is there a font, a symbol to be inserted (instead of the fontawesome5
symbols) with a suitable strategy, to have three different types of speedometer without text like this image?
tikz-pgf symbols packages fontawesome
add a comment
|
Actually I'm using awesomebox package to draw blocks around text. Here there is an example.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{fontawesome5}
usepackage{lipsum}
begin{document}
awesomebox[violet]{2pt}{faRocket}{violet}{lipsum[4]}
end{document}
Into the guide there is written that "The specific aim of this package is to use FontAwesome 5 icons to ease the illustration of these boxes."
Is there a font, a symbol to be inserted (instead of the fontawesome5
symbols) with a suitable strategy, to have three different types of speedometer without text like this image?
tikz-pgf symbols packages fontawesome
Actually I'm using awesomebox package to draw blocks around text. Here there is an example.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{fontawesome5}
usepackage{lipsum}
begin{document}
awesomebox[violet]{2pt}{faRocket}{violet}{lipsum[4]}
end{document}
Into the guide there is written that "The specific aim of this package is to use FontAwesome 5 icons to ease the illustration of these boxes."
Is there a font, a symbol to be inserted (instead of the fontawesome5
symbols) with a suitable strategy, to have three different types of speedometer without text like this image?
tikz-pgf symbols packages fontawesome
tikz-pgf symbols packages fontawesome
edited 7 hours ago
Sebastiano
asked 8 hours ago
SebastianoSebastiano
16k5 gold badges26 silver badges81 bronze badges
16k5 gold badges26 silver badges81 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
A simple pic with the "speed" as parameter may do.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
An arguably more fancy version thereof is obtained when making the color transitions smooth. To this end we need to rotate and flip the color wheel that comes with the shadings
library. This can be done using transform canvas
, which has some side-effect, which is why the results get stored in a savebox
and then reused.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text,shadings}
newsaveboxColorWheelRotated
sboxColorWheelRotated{begin{tikzpicture}
clip (180:4) arc(180:0:4) -- (3,0) arc(0:180:3);
shade[shading=color wheel,transform canvas={
rotate=-65,xscale=-1}] (0,0) circle [radius=4];
end{tikzpicture}}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
path (0,0) node[above,inner sep=0pt] {useboxColorWheelRotated};
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
In order to make this symbols you may want to kick out the texts.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{lipsum}
usepackage{tikz}
tikzset{pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}}
newsaveboxLowSpeed
newsaveboxMediumSpeed
newsaveboxHighSpeed
sboxLowSpeed{scalebox{0.1}{tikz{pic{speedometer=45};}}}
sboxMediumSpeed{scalebox{0.1}{tikz{pic{speedometer=90};}}}
sboxHighSpeed{scalebox{0.1}{tikz{pic{speedometer=135};}}}
begin{document}
awesomebox[violet]{2pt}{useboxLowSpeed}{violet}{lipsum[4]}
end{document}
Thank you very much. But can I put one of the three speedometer instead offaRocket
?
– Sebastiano
7 hours ago
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/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
});
}
});
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%2f508078%2fspeedometer-as-a-symbol-into-awesomebox%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A simple pic with the "speed" as parameter may do.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
An arguably more fancy version thereof is obtained when making the color transitions smooth. To this end we need to rotate and flip the color wheel that comes with the shadings
library. This can be done using transform canvas
, which has some side-effect, which is why the results get stored in a savebox
and then reused.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text,shadings}
newsaveboxColorWheelRotated
sboxColorWheelRotated{begin{tikzpicture}
clip (180:4) arc(180:0:4) -- (3,0) arc(0:180:3);
shade[shading=color wheel,transform canvas={
rotate=-65,xscale=-1}] (0,0) circle [radius=4];
end{tikzpicture}}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
path (0,0) node[above,inner sep=0pt] {useboxColorWheelRotated};
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
In order to make this symbols you may want to kick out the texts.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{lipsum}
usepackage{tikz}
tikzset{pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}}
newsaveboxLowSpeed
newsaveboxMediumSpeed
newsaveboxHighSpeed
sboxLowSpeed{scalebox{0.1}{tikz{pic{speedometer=45};}}}
sboxMediumSpeed{scalebox{0.1}{tikz{pic{speedometer=90};}}}
sboxHighSpeed{scalebox{0.1}{tikz{pic{speedometer=135};}}}
begin{document}
awesomebox[violet]{2pt}{useboxLowSpeed}{violet}{lipsum[4]}
end{document}
Thank you very much. But can I put one of the three speedometer instead offaRocket
?
– Sebastiano
7 hours ago
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
add a comment
|
A simple pic with the "speed" as parameter may do.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
An arguably more fancy version thereof is obtained when making the color transitions smooth. To this end we need to rotate and flip the color wheel that comes with the shadings
library. This can be done using transform canvas
, which has some side-effect, which is why the results get stored in a savebox
and then reused.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text,shadings}
newsaveboxColorWheelRotated
sboxColorWheelRotated{begin{tikzpicture}
clip (180:4) arc(180:0:4) -- (3,0) arc(0:180:3);
shade[shading=color wheel,transform canvas={
rotate=-65,xscale=-1}] (0,0) circle [radius=4];
end{tikzpicture}}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
path (0,0) node[above,inner sep=0pt] {useboxColorWheelRotated};
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
In order to make this symbols you may want to kick out the texts.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{lipsum}
usepackage{tikz}
tikzset{pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}}
newsaveboxLowSpeed
newsaveboxMediumSpeed
newsaveboxHighSpeed
sboxLowSpeed{scalebox{0.1}{tikz{pic{speedometer=45};}}}
sboxMediumSpeed{scalebox{0.1}{tikz{pic{speedometer=90};}}}
sboxHighSpeed{scalebox{0.1}{tikz{pic{speedometer=135};}}}
begin{document}
awesomebox[violet]{2pt}{useboxLowSpeed}{violet}{lipsum[4]}
end{document}
Thank you very much. But can I put one of the three speedometer instead offaRocket
?
– Sebastiano
7 hours ago
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
add a comment
|
A simple pic with the "speed" as parameter may do.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
An arguably more fancy version thereof is obtained when making the color transitions smooth. To this end we need to rotate and flip the color wheel that comes with the shadings
library. This can be done using transform canvas
, which has some side-effect, which is why the results get stored in a savebox
and then reused.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text,shadings}
newsaveboxColorWheelRotated
sboxColorWheelRotated{begin{tikzpicture}
clip (180:4) arc(180:0:4) -- (3,0) arc(0:180:3);
shade[shading=color wheel,transform canvas={
rotate=-65,xscale=-1}] (0,0) circle [radius=4];
end{tikzpicture}}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
path (0,0) node[above,inner sep=0pt] {useboxColorWheelRotated};
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
In order to make this symbols you may want to kick out the texts.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{lipsum}
usepackage{tikz}
tikzset{pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}}
newsaveboxLowSpeed
newsaveboxMediumSpeed
newsaveboxHighSpeed
sboxLowSpeed{scalebox{0.1}{tikz{pic{speedometer=45};}}}
sboxMediumSpeed{scalebox{0.1}{tikz{pic{speedometer=90};}}}
sboxHighSpeed{scalebox{0.1}{tikz{pic{speedometer=135};}}}
begin{document}
awesomebox[violet]{2pt}{useboxLowSpeed}{violet}{lipsum[4]}
end{document}
A simple pic with the "speed" as parameter may do.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
An arguably more fancy version thereof is obtained when making the color transitions smooth. To this end we need to rotate and flip the color wheel that comes with the shadings
library. This can be done using transform canvas
, which has some side-effect, which is why the results get stored in a savebox
and then reused.
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{decorations.text,shadings}
newsaveboxColorWheelRotated
sboxColorWheelRotated{begin{tikzpicture}
clip (180:4) arc(180:0:4) -- (3,0) arc(0:180:3);
shade[shading=color wheel,transform canvas={
rotate=-65,xscale=-1}] (0,0) circle [radius=4];
end{tikzpicture}}
begin{document}
begin{tikzpicture}[pics/speedometer/.style={code={
path (0,0) node[above,inner sep=0pt] {useboxColorWheelRotated};
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{
path [decorate, decoration={text along path,
text={|color{white}Hugesffamilybfseries|Y}, text align=center}]
(240-Z*60:3.2) arc(240-Z*60:180-Z*60:3.25);}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}]
path (0,0) pic{speedometer=45}
(0,-5) pic{speedometer=80}
(0,-10) pic{speedometer=160};
end{tikzpicture}
end{document}
In order to make this symbols you may want to kick out the texts.
documentclass[a4paper,12pt]{article}
usepackage{awesomebox}
usepackage{lipsum}
usepackage{tikz}
tikzset{pics/speedometer/.style={code={
foreach X/Y [count=Z] in {green!70!black/low,orange/medium,red/high}
{fill[fill=X] (240-Z*60:4) arc(240-Z*60:180-Z*60:4) --
(180-Z*60:3) arc(180-Z*60:240-Z*60:3) -- cycle;}
fill (180-#1+8:0.3) arc (180-#1+8:180-#1+344:0.3) -- (180-#1-0.5:3.25)
-- (180-#1+0.5:3.25) -- cycle;
}}}
newsaveboxLowSpeed
newsaveboxMediumSpeed
newsaveboxHighSpeed
sboxLowSpeed{scalebox{0.1}{tikz{pic{speedometer=45};}}}
sboxMediumSpeed{scalebox{0.1}{tikz{pic{speedometer=90};}}}
sboxHighSpeed{scalebox{0.1}{tikz{pic{speedometer=135};}}}
begin{document}
awesomebox[violet]{2pt}{useboxLowSpeed}{violet}{lipsum[4]}
end{document}
edited 5 hours ago
answered 7 hours ago
Schrödinger's catSchrödinger's cat
6,4258 silver badges20 bronze badges
6,4258 silver badges20 bronze badges
Thank you very much. But can I put one of the three speedometer instead offaRocket
?
– Sebastiano
7 hours ago
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
add a comment
|
Thank you very much. But can I put one of the three speedometer instead offaRocket
?
– Sebastiano
7 hours ago
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
Thank you very much. But can I put one of the three speedometer instead of
faRocket
?– Sebastiano
7 hours ago
Thank you very much. But can I put one of the three speedometer instead of
faRocket
?– Sebastiano
7 hours ago
1
1
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
@Sebastiano Whether or not this will yield a useful symbol that has a size that is comparable to an ordinary character I do not know because of the texts that you embed. Once you scale it down, the texts will be pretty much unreadable. If you leave the texts "low" etc. out this may become useful symbols. I added a proposal.
– Schrödinger's cat
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
Awesome and excellent. Thank you very much. I had already voted and I put in the green tick.
– Sebastiano
6 hours ago
add a comment
|
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f508078%2fspeedometer-as-a-symbol-into-awesomebox%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