Bold and Colored Image CaptionHow to make caption bold in ctable?How to renew caption command to get bold...
Estimates on number of topologies on a finite set
Distinguish the explanations of Galadriel's test in LotR
What could cause the sea level to massively decrease?
How many tone holes are there actually in different orchestral woodwind instruments?
How do you say "translation" in Koine Greek?
How was the Shuttle loaded and unloaded from its carrier aircraft?
What was this character's plan?
Appropriate conduit for several data cables underground over 300' run
No Torah = Revert to Nothingness?
What would +1/+2/+3 items be called in game?
how does the Raspberry Pi PoE shield work?
Finding overlapping polygons in two shapefiles and deleting them in R?
Can a landlord force all residents to use the landlord's in-house debit card accounts?
Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?
What's it called when the bad guy gets eaten?
Did the Ottoman empire suppress the printing press?
Performance issue in code for reading line and testing for palindrome
This LM317 diagram doesn't make any sense to me
Would a carnivorous diet be able to support a giant worm?
What happens to unproductive professors?
Classical Greek for 'You came home to our hearts with your shield'?
Moving millions of files to a different directory with specfic name patterns
Did depressed people far more accurately estimate how many monsters they killed in a video game?
When did "&" stop being taught alongside the alphabet?
Bold and Colored Image Caption
How to make caption bold in ctable?How to renew caption command to get bold title?Automatically bold first sentence of a floats captioncolored table with some bold colored linesBoxed caption and figure, with colored captionBold and colored figure caption label in beamer?Change Algorithm caption Label color to blue and bold italicsHow we can make term 'Figure' to be bold and rest part of the caption to remain as it is?KOMA-Script and sidenotes : how to format side (margin) caption and its caption label?Different caption for list of figures and tables
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
How can I color and bold an image's caption in documentclass[12pt]{report}
?
formatting color captions
New contributor
add a comment |
How can I color and bold an image's caption in documentclass[12pt]{report}
?
formatting color captions
New contributor
add a comment |
How can I color and bold an image's caption in documentclass[12pt]{report}
?
formatting color captions
New contributor
How can I color and bold an image's caption in documentclass[12pt]{report}
?
formatting color captions
formatting color captions
New contributor
New contributor
edited 8 hours ago
Shady Puck
1337 bronze badges
1337 bronze badges
New contributor
asked 9 hours ago
sally yamaksally yamak
153 bronze badges
153 bronze badges
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
In this documentclass
, as, I believe, in any documentclass
, it is possible to use the caption
package and the textcolor
command.
For example, if I want to color blue and bold the caption of a simple triangle drawn in TikZ in your documentclass
, I can use the following code to achieve the following output, which I will break down below.
documentclass[12pt]{report}
usepackage{tikz}
usepackage[labelfont={color=blue,bf}]{caption}
begin{document}
begin{figure}[h!]
centering
begin{tikzpicture}
draw[black, very thick] (0,0) -- (3,2) -- (4,0) -- cycle;
end{tikzpicture}
caption{textbf{textcolor{blue}{A triangle.}}}
label{fig:triangle}
end{figure}
end{document}
I began by declaring your documentclass
of choice. Next, I called in tikz
for the triangle and caption
to change the color of "Figure 1:". I modified caption
with two constraints under one modifier (labelfont), namely declaring the color to be blue (although it could be many others) and "bf" for boldface.
Then, down in the actual figure, I used textbf{textcolor{<color>}{<caption>}}
. This combines the two separate commands to color the caption, itself.
Hope this helps!
New contributor
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through thecaption
package.
– Bernard
8 hours ago
add a comment |
Slightly simplified version of @Shady Puck answer:
documentclass[12pt]{report}
usepackage{graphicx}
usepackage{xcolor}
usepackage{caption}
captionsetup{font={color=blue,bf}} % <---
begin{document}
begin{figure}[htb]
centering
includegraphics[width=0.8linewidth]{example-image-duck}
caption{A triangle.}
label{fig:myfig}
end{figure}
See figure~ref{fig:myfig} % <---
end{document}
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
});
}
});
sally yamak is a new contributor. Be nice, and check out our Code of Conduct.
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%2f499038%2fbold-and-colored-image-caption%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
In this documentclass
, as, I believe, in any documentclass
, it is possible to use the caption
package and the textcolor
command.
For example, if I want to color blue and bold the caption of a simple triangle drawn in TikZ in your documentclass
, I can use the following code to achieve the following output, which I will break down below.
documentclass[12pt]{report}
usepackage{tikz}
usepackage[labelfont={color=blue,bf}]{caption}
begin{document}
begin{figure}[h!]
centering
begin{tikzpicture}
draw[black, very thick] (0,0) -- (3,2) -- (4,0) -- cycle;
end{tikzpicture}
caption{textbf{textcolor{blue}{A triangle.}}}
label{fig:triangle}
end{figure}
end{document}
I began by declaring your documentclass
of choice. Next, I called in tikz
for the triangle and caption
to change the color of "Figure 1:". I modified caption
with two constraints under one modifier (labelfont), namely declaring the color to be blue (although it could be many others) and "bf" for boldface.
Then, down in the actual figure, I used textbf{textcolor{<color>}{<caption>}}
. This combines the two separate commands to color the caption, itself.
Hope this helps!
New contributor
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through thecaption
package.
– Bernard
8 hours ago
add a comment |
In this documentclass
, as, I believe, in any documentclass
, it is possible to use the caption
package and the textcolor
command.
For example, if I want to color blue and bold the caption of a simple triangle drawn in TikZ in your documentclass
, I can use the following code to achieve the following output, which I will break down below.
documentclass[12pt]{report}
usepackage{tikz}
usepackage[labelfont={color=blue,bf}]{caption}
begin{document}
begin{figure}[h!]
centering
begin{tikzpicture}
draw[black, very thick] (0,0) -- (3,2) -- (4,0) -- cycle;
end{tikzpicture}
caption{textbf{textcolor{blue}{A triangle.}}}
label{fig:triangle}
end{figure}
end{document}
I began by declaring your documentclass
of choice. Next, I called in tikz
for the triangle and caption
to change the color of "Figure 1:". I modified caption
with two constraints under one modifier (labelfont), namely declaring the color to be blue (although it could be many others) and "bf" for boldface.
Then, down in the actual figure, I used textbf{textcolor{<color>}{<caption>}}
. This combines the two separate commands to color the caption, itself.
Hope this helps!
New contributor
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through thecaption
package.
– Bernard
8 hours ago
add a comment |
In this documentclass
, as, I believe, in any documentclass
, it is possible to use the caption
package and the textcolor
command.
For example, if I want to color blue and bold the caption of a simple triangle drawn in TikZ in your documentclass
, I can use the following code to achieve the following output, which I will break down below.
documentclass[12pt]{report}
usepackage{tikz}
usepackage[labelfont={color=blue,bf}]{caption}
begin{document}
begin{figure}[h!]
centering
begin{tikzpicture}
draw[black, very thick] (0,0) -- (3,2) -- (4,0) -- cycle;
end{tikzpicture}
caption{textbf{textcolor{blue}{A triangle.}}}
label{fig:triangle}
end{figure}
end{document}
I began by declaring your documentclass
of choice. Next, I called in tikz
for the triangle and caption
to change the color of "Figure 1:". I modified caption
with two constraints under one modifier (labelfont), namely declaring the color to be blue (although it could be many others) and "bf" for boldface.
Then, down in the actual figure, I used textbf{textcolor{<color>}{<caption>}}
. This combines the two separate commands to color the caption, itself.
Hope this helps!
New contributor
In this documentclass
, as, I believe, in any documentclass
, it is possible to use the caption
package and the textcolor
command.
For example, if I want to color blue and bold the caption of a simple triangle drawn in TikZ in your documentclass
, I can use the following code to achieve the following output, which I will break down below.
documentclass[12pt]{report}
usepackage{tikz}
usepackage[labelfont={color=blue,bf}]{caption}
begin{document}
begin{figure}[h!]
centering
begin{tikzpicture}
draw[black, very thick] (0,0) -- (3,2) -- (4,0) -- cycle;
end{tikzpicture}
caption{textbf{textcolor{blue}{A triangle.}}}
label{fig:triangle}
end{figure}
end{document}
I began by declaring your documentclass
of choice. Next, I called in tikz
for the triangle and caption
to change the color of "Figure 1:". I modified caption
with two constraints under one modifier (labelfont), namely declaring the color to be blue (although it could be many others) and "bf" for boldface.
Then, down in the actual figure, I used textbf{textcolor{<color>}{<caption>}}
. This combines the two separate commands to color the caption, itself.
Hope this helps!
New contributor
New contributor
answered 9 hours ago
Shady PuckShady Puck
1337 bronze badges
1337 bronze badges
New contributor
New contributor
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through thecaption
package.
– Bernard
8 hours ago
add a comment |
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through thecaption
package.
– Bernard
8 hours ago
1
1
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
The problem, is that any cross-reference to this figure will also be in blue and boldface…
– Bernard
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Bernard, not really, only cross reference will be only bold and not colored.
– Zarko
8 hours ago
@Zarko: really? In any case, it is preferable to do that through the
caption
package.– Bernard
8 hours ago
@Zarko: really? In any case, it is preferable to do that through the
caption
package.– Bernard
8 hours ago
add a comment |
Slightly simplified version of @Shady Puck answer:
documentclass[12pt]{report}
usepackage{graphicx}
usepackage{xcolor}
usepackage{caption}
captionsetup{font={color=blue,bf}} % <---
begin{document}
begin{figure}[htb]
centering
includegraphics[width=0.8linewidth]{example-image-duck}
caption{A triangle.}
label{fig:myfig}
end{figure}
See figure~ref{fig:myfig} % <---
end{document}
add a comment |
Slightly simplified version of @Shady Puck answer:
documentclass[12pt]{report}
usepackage{graphicx}
usepackage{xcolor}
usepackage{caption}
captionsetup{font={color=blue,bf}} % <---
begin{document}
begin{figure}[htb]
centering
includegraphics[width=0.8linewidth]{example-image-duck}
caption{A triangle.}
label{fig:myfig}
end{figure}
See figure~ref{fig:myfig} % <---
end{document}
add a comment |
Slightly simplified version of @Shady Puck answer:
documentclass[12pt]{report}
usepackage{graphicx}
usepackage{xcolor}
usepackage{caption}
captionsetup{font={color=blue,bf}} % <---
begin{document}
begin{figure}[htb]
centering
includegraphics[width=0.8linewidth]{example-image-duck}
caption{A triangle.}
label{fig:myfig}
end{figure}
See figure~ref{fig:myfig} % <---
end{document}
Slightly simplified version of @Shady Puck answer:
documentclass[12pt]{report}
usepackage{graphicx}
usepackage{xcolor}
usepackage{caption}
captionsetup{font={color=blue,bf}} % <---
begin{document}
begin{figure}[htb]
centering
includegraphics[width=0.8linewidth]{example-image-duck}
caption{A triangle.}
label{fig:myfig}
end{figure}
See figure~ref{fig:myfig} % <---
end{document}
answered 8 hours ago
ZarkoZarko
139k8 gold badges77 silver badges187 bronze badges
139k8 gold badges77 silver badges187 bronze badges
add a comment |
add a comment |
sally yamak is a new contributor. Be nice, and check out our Code of Conduct.
sally yamak is a new contributor. Be nice, and check out our Code of Conduct.
sally yamak is a new contributor. Be nice, and check out our Code of Conduct.
sally yamak is a new contributor. Be nice, and check out our Code of Conduct.
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%2f499038%2fbold-and-colored-image-caption%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