How to put text above column in minipage?How to put text in minipage top-centered?misbehaving bold text while...
Can I travel from country A to country B to country C without going back to country A?
What could cause an entire planet of humans to become aphasic?
Why do objects rebound after hitting the ground?
How long has this character been impersonating a Starfleet Officer?
Buying a "Used" Router
Taking an academic pseudonym?
Stuck to wireframe
Plausible reason for gold-digging ant
If angels and devils are the same species, why would their mortal offspring appear physically different?
Solving the linear first order differential equation?
How do I avoid the "chosen hero" feeling?
Do we still track damage on indestructible creatures?
Calculating the strength of an ionic bond that contains poly-atomic ions
Other than edits for international editions, did Harry Potter and the Philosopher's Stone receive errata?
Does rolling friction increase speed of a wheel?
Why is Shelob considered evil?
my cron command doesn’t work
Players preemptively rolling, even though their rolls are useless or are checking the wrong skills
Isn't a semicolon (';') needed after a function declaration in C++?
How can guns be countered by melee combat without raw-ability or exceptional explanations?
smartctl reports overall health test as passed but the tests failed?
Is it possible to detect 100% of SQLi with a simple regex?
Is it really OK to use "because of"?
What's the winning box for the King in a Queen against 7th rank Bishop-pawn endgame?
How to put text above column in minipage?
How to put text in minipage top-centered?misbehaving bold text while using minipageFormatting text inside minipageText column side by side minipageput item's in minipagehorizontally centered text in minipageText alignment within a minipageHow can I put something just outside of a minipage?Column with anything abovePut vertical rotated text within minipage environment
I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.
documentclass[11pt]{report}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[ngerman]{babel}
usepackage[ngerman]{hyperref}
usepackage{amsmath}
usepackage{mathtools}
usepackage{physics}
usepackage{setspace}
usepackage{bm}
usepackage{subfigure}
usepackage{afterpage}
usepackage{graphicx,color}
graphicspath{{Abb/}}
usepackage{tabularx}
usepackage{booktabs}
usepackage{esvect}
usepackage{longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
begin{document}
begin{figure}[!ht]
begin{minipage}{linewidth}
centering
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{minipage}hfill %[1em]
end{figure}
end{document}
subfloats minipage
New contributor
add a comment |
I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.
documentclass[11pt]{report}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[ngerman]{babel}
usepackage[ngerman]{hyperref}
usepackage{amsmath}
usepackage{mathtools}
usepackage{physics}
usepackage{setspace}
usepackage{bm}
usepackage{subfigure}
usepackage{afterpage}
usepackage{graphicx,color}
graphicspath{{Abb/}}
usepackage{tabularx}
usepackage{booktabs}
usepackage{esvect}
usepackage{longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
begin{document}
begin{figure}[!ht]
begin{minipage}{linewidth}
centering
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{minipage}hfill %[1em]
end{figure}
end{document}
subfloats minipage
New contributor
Welcome to TeX.SE.
– Mico
50 mins ago
1
Thesubfigure
package is old and seriously deprecated. Don't use it. Use either thesubfig
or thesubcaption
package.
– Mico
49 mins ago
add a comment |
I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.
documentclass[11pt]{report}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[ngerman]{babel}
usepackage[ngerman]{hyperref}
usepackage{amsmath}
usepackage{mathtools}
usepackage{physics}
usepackage{setspace}
usepackage{bm}
usepackage{subfigure}
usepackage{afterpage}
usepackage{graphicx,color}
graphicspath{{Abb/}}
usepackage{tabularx}
usepackage{booktabs}
usepackage{esvect}
usepackage{longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
begin{document}
begin{figure}[!ht]
begin{minipage}{linewidth}
centering
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{minipage}hfill %[1em]
end{figure}
end{document}
subfloats minipage
New contributor
I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.
documentclass[11pt]{report}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[ngerman]{babel}
usepackage[ngerman]{hyperref}
usepackage{amsmath}
usepackage{mathtools}
usepackage{physics}
usepackage{setspace}
usepackage{bm}
usepackage{subfigure}
usepackage{afterpage}
usepackage{graphicx,color}
graphicspath{{Abb/}}
usepackage{tabularx}
usepackage{booktabs}
usepackage{esvect}
usepackage{longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
begin{document}
begin{figure}[!ht]
begin{minipage}{linewidth}
centering
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}quad
includegraphics[width=0.28textwidth]{test.jpg}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{minipage}hfill %[1em]
end{figure}
end{document}
subfloats minipage
subfloats minipage
New contributor
New contributor
New contributor
asked 1 hour ago
GobrelGobrel
161
161
New contributor
New contributor
Welcome to TeX.SE.
– Mico
50 mins ago
1
Thesubfigure
package is old and seriously deprecated. Don't use it. Use either thesubfig
or thesubcaption
package.
– Mico
49 mins ago
add a comment |
Welcome to TeX.SE.
– Mico
50 mins ago
1
Thesubfigure
package is old and seriously deprecated. Don't use it. Use either thesubfig
or thesubcaption
package.
– Mico
49 mins ago
Welcome to TeX.SE.
– Mico
50 mins ago
Welcome to TeX.SE.
– Mico
50 mins ago
1
1
The
subfigure
package is old and seriously deprecated. Don't use it. Use either the subfig
or the subcaption
package.– Mico
49 mins ago
The
subfigure
package is old and seriously deprecated. Don't use it. Use either the subfig
or the subcaption
package.– Mico
49 mins ago
add a comment |
2 Answers
2
active
oldest
votes
First off, don't use the subfigure
package: It is seriously deprecated.
The following code employs the subcaption
package, which provides an environment called subfigure
. The three subfigure
environments in the first row are given caption*
, allowing the insertion of unnumbered captions.
documentclass[11pt,demo,ngerman]{report} % don't use 'demo' option in real document
%usepackage{ucs} % do you really need this package?
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{babel}
%usepackage{amsmath} % is loaded automatically by 'mathtools'
usepackage{mathtools,physics,esvect,bm}
usepackage{setspace}
%%%%%usepackage{subfigure} % <--- this package is deprecated
usepackage{subcaption} % use 'subcaption' package instead
usepackage{afterpage,graphicx,xcolor}
graphicspath{{Abb/}}
usepackage{tabularx,booktabs,longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
usepackage{hyperref} % load this package LAST
begin{document}
begin{figure}[!ht]
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.125$}}}%
begin{subfigure}[b]{0.3textwidth}
caption*{A word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{B word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{C word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
caption{I am using the subcaption package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
add a comment |
As the images and short texts are arranged in a table-like way, here is a variant that uses a tabularx
in order to arrange text and images:
documentclass[11pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[demo]{graphicx}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
begin{document}
begin{figure}[!ht]
begin{tabularx}{linewidth}{lCCC}
& my short text & my short text & my short text\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}
end{tabularx}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
You should get rid of allquad
statements, and you may want to replace all instances ofwidth=0.28textwidth
withwidth=hsize
. And, do consider replacing all instances ofmakebox[20pt]{...}
withmakebox[1baselineskip]{...}
.
– Mico
10 mins 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/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
});
}
});
Gobrel 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%2f476493%2fhow-to-put-text-above-column-in-minipage%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
First off, don't use the subfigure
package: It is seriously deprecated.
The following code employs the subcaption
package, which provides an environment called subfigure
. The three subfigure
environments in the first row are given caption*
, allowing the insertion of unnumbered captions.
documentclass[11pt,demo,ngerman]{report} % don't use 'demo' option in real document
%usepackage{ucs} % do you really need this package?
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{babel}
%usepackage{amsmath} % is loaded automatically by 'mathtools'
usepackage{mathtools,physics,esvect,bm}
usepackage{setspace}
%%%%%usepackage{subfigure} % <--- this package is deprecated
usepackage{subcaption} % use 'subcaption' package instead
usepackage{afterpage,graphicx,xcolor}
graphicspath{{Abb/}}
usepackage{tabularx,booktabs,longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
usepackage{hyperref} % load this package LAST
begin{document}
begin{figure}[!ht]
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.125$}}}%
begin{subfigure}[b]{0.3textwidth}
caption*{A word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{B word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{C word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
caption{I am using the subcaption package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
add a comment |
First off, don't use the subfigure
package: It is seriously deprecated.
The following code employs the subcaption
package, which provides an environment called subfigure
. The three subfigure
environments in the first row are given caption*
, allowing the insertion of unnumbered captions.
documentclass[11pt,demo,ngerman]{report} % don't use 'demo' option in real document
%usepackage{ucs} % do you really need this package?
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{babel}
%usepackage{amsmath} % is loaded automatically by 'mathtools'
usepackage{mathtools,physics,esvect,bm}
usepackage{setspace}
%%%%%usepackage{subfigure} % <--- this package is deprecated
usepackage{subcaption} % use 'subcaption' package instead
usepackage{afterpage,graphicx,xcolor}
graphicspath{{Abb/}}
usepackage{tabularx,booktabs,longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
usepackage{hyperref} % load this package LAST
begin{document}
begin{figure}[!ht]
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.125$}}}%
begin{subfigure}[b]{0.3textwidth}
caption*{A word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{B word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{C word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
caption{I am using the subcaption package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
add a comment |
First off, don't use the subfigure
package: It is seriously deprecated.
The following code employs the subcaption
package, which provides an environment called subfigure
. The three subfigure
environments in the first row are given caption*
, allowing the insertion of unnumbered captions.
documentclass[11pt,demo,ngerman]{report} % don't use 'demo' option in real document
%usepackage{ucs} % do you really need this package?
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{babel}
%usepackage{amsmath} % is loaded automatically by 'mathtools'
usepackage{mathtools,physics,esvect,bm}
usepackage{setspace}
%%%%%usepackage{subfigure} % <--- this package is deprecated
usepackage{subcaption} % use 'subcaption' package instead
usepackage{afterpage,graphicx,xcolor}
graphicspath{{Abb/}}
usepackage{tabularx,booktabs,longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
usepackage{hyperref} % load this package LAST
begin{document}
begin{figure}[!ht]
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.125$}}}%
begin{subfigure}[b]{0.3textwidth}
caption*{A word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{B word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{C word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
caption{I am using the subcaption package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
First off, don't use the subfigure
package: It is seriously deprecated.
The following code employs the subcaption
package, which provides an environment called subfigure
. The three subfigure
environments in the first row are given caption*
, allowing the insertion of unnumbered captions.
documentclass[11pt,demo,ngerman]{report} % don't use 'demo' option in real document
%usepackage{ucs} % do you really need this package?
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{babel}
%usepackage{amsmath} % is loaded automatically by 'mathtools'
usepackage{mathtools,physics,esvect,bm}
usepackage{setspace}
%%%%%usepackage{subfigure} % <--- this package is deprecated
usepackage{subcaption} % use 'subcaption' package instead
usepackage{afterpage,graphicx,xcolor}
graphicspath{{Abb/}}
usepackage{tabularx,booktabs,longtable}
usepackage{pdfpages}
usepackage[section]{placeins}
usepackage{hyperref} % load this package LAST
begin{document}
begin{figure}[!ht]
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.125$}}}%
begin{subfigure}[b]{0.3textwidth}
caption*{A word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{B word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
caption*{C word}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
bigskip
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}hfill
begin{subfigure}[b]{0.3textwidth}
includegraphics[width=textwidth]{test.jpg}
end{subfigure}
caption{I am using the subcaption package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
answered 22 mins ago
MicoMico
280k31383771
280k31383771
add a comment |
add a comment |
As the images and short texts are arranged in a table-like way, here is a variant that uses a tabularx
in order to arrange text and images:
documentclass[11pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[demo]{graphicx}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
begin{document}
begin{figure}[!ht]
begin{tabularx}{linewidth}{lCCC}
& my short text & my short text & my short text\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}
end{tabularx}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
You should get rid of allquad
statements, and you may want to replace all instances ofwidth=0.28textwidth
withwidth=hsize
. And, do consider replacing all instances ofmakebox[20pt]{...}
withmakebox[1baselineskip]{...}
.
– Mico
10 mins ago
add a comment |
As the images and short texts are arranged in a table-like way, here is a variant that uses a tabularx
in order to arrange text and images:
documentclass[11pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[demo]{graphicx}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
begin{document}
begin{figure}[!ht]
begin{tabularx}{linewidth}{lCCC}
& my short text & my short text & my short text\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}
end{tabularx}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
You should get rid of allquad
statements, and you may want to replace all instances ofwidth=0.28textwidth
withwidth=hsize
. And, do consider replacing all instances ofmakebox[20pt]{...}
withmakebox[1baselineskip]{...}
.
– Mico
10 mins ago
add a comment |
As the images and short texts are arranged in a table-like way, here is a variant that uses a tabularx
in order to arrange text and images:
documentclass[11pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[demo]{graphicx}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
begin{document}
begin{figure}[!ht]
begin{tabularx}{linewidth}{lCCC}
& my short text & my short text & my short text\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}
end{tabularx}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
As the images and short texts are arranged in a table-like way, here is a variant that uses a tabularx
in order to arrange text and images:
documentclass[11pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[demo]{graphicx}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
begin{document}
begin{figure}[!ht]
begin{tabularx}{linewidth}{lCCC}
& my short text & my short text & my short text\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90} {$t/T=0.125$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.25$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.375$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}\
makebox[20pt]{raisebox{40pt}{rotatebox[origin=c]{90}{$t/T=0.50$}}}%
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}quad
& includegraphics[width=0.28textwidth]{test.jpg}
end{tabularx}
caption{I am using the subfigure package. I have an arrangement of total 12 figures. They are sorted in 3 columns with 4 rows in total.
The Code works fine, I have a caption which is perfect. My only problem is, how can I get text over each column? No a), b) and c). I want only a word, or Maybe 2 words above each column.}
label{fig:sub1}
end{figure}
end{document}
answered 17 mins ago
leandriisleandriis
9,1071530
9,1071530
You should get rid of allquad
statements, and you may want to replace all instances ofwidth=0.28textwidth
withwidth=hsize
. And, do consider replacing all instances ofmakebox[20pt]{...}
withmakebox[1baselineskip]{...}
.
– Mico
10 mins ago
add a comment |
You should get rid of allquad
statements, and you may want to replace all instances ofwidth=0.28textwidth
withwidth=hsize
. And, do consider replacing all instances ofmakebox[20pt]{...}
withmakebox[1baselineskip]{...}
.
– Mico
10 mins ago
You should get rid of all
quad
statements, and you may want to replace all instances of width=0.28textwidth
with width=hsize
. And, do consider replacing all instances of makebox[20pt]{...}
with makebox[1baselineskip]{...}
.– Mico
10 mins ago
You should get rid of all
quad
statements, and you may want to replace all instances of width=0.28textwidth
with width=hsize
. And, do consider replacing all instances of makebox[20pt]{...}
with makebox[1baselineskip]{...}
.– Mico
10 mins ago
add a comment |
Gobrel is a new contributor. Be nice, and check out our Code of Conduct.
Gobrel is a new contributor. Be nice, and check out our Code of Conduct.
Gobrel is a new contributor. Be nice, and check out our Code of Conduct.
Gobrel 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%2f476493%2fhow-to-put-text-above-column-in-minipage%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.
– Mico
50 mins ago
1
The
subfigure
package is old and seriously deprecated. Don't use it. Use either thesubfig
or thesubcaption
package.– Mico
49 mins ago