Group of tabulars under one table referenceLegend as Table under a TableWriting under a TableLine under one columnSubtable with multiple tabulars inside does not vertically align properlypage overflowing in table environment due to content outside tabularsMultiple questions regarding formatting tablesTwo tabulars in one Table but in different pagesplacing two table environments side by side (not one table separated by tabulars)One hline across a table with nested tabularsOnly one caption under multiple subfigures

Wordplay addition paradox

What is the word for "event executor"?

Why do so many pure math PhD students drop out or leave academia, compared to applied mathematics PhDs?

How would you say "Sorry, that was a mistake on my part"?

A scene of Jimmy diversity

What is this green alien supposed to be on the American covers?

Is this Android phone Android 9.0 or Android 6.0?

My credit card has no magnetic stripe. Is this a problem in the USA?

How could an animal "smell" carbon monoxide?

Why is Katakana not pronounced Katagana?

How can the electric potential be zero at a point where the electric field isn't, if that field can give a test charge kinetic energy?

Is the purpose of sheet music to be played along to? Or a guide for learning and reference during playing?

What were the problems on the Apollo 11 lunar module?

Does inertia keep a rotating object rotating forever, or something else?

How can a drink contain 1.8 kcal energy while 0 g fat/carbs/protein?

Is there a typesafe way to get a Database.QueryLocator?

Jump back to the position I started a search

Vienna To Graz By Rail

Why is Google approaching my VPS machine?

how slow a car engine can run

How Can I Process Untrusted Data Sources Securely?

Can I use #10 wire for a 30A, 240V pump circuit?

Alphanumeric Line and Curve Counting

Strategy to pay off revolving debt while building reserve savings fund?



Group of tabulars under one table reference


Legend as Table under a TableWriting under a TableLine under one columnSubtable with multiple tabulars inside does not vertically align properlypage overflowing in table environment due to content outside tabularsMultiple questions regarding formatting tablesTwo tabulars in one Table but in different pagesplacing two table environments side by side (not one table separated by tabulars)One hline across a table with nested tabularsOnly one caption under multiple subfigures






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








4















I'm trying to reproduce a structure like this:



enter image description here



But all I could come up with was the following code:



begintable[!htb]
captionGlobal caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable


which somewhat resembles the structure, but keeps my tables way too much separated from each other. Can anyone suggest me a better way to obtain the desired results?



Thank you in advance.










share|improve this question



















  • 1





    What are the lll columns in our tables preambles supposed to do, since they're empty?

    – Bernard
    Jul 8 at 21:17











  • You might want to take a look at the subfig or the subcaption packege.

    – leandriis
    Jul 8 at 21:18











  • Please tell us which document class you employ.

    – Mico
    Jul 8 at 22:10

















4















I'm trying to reproduce a structure like this:



enter image description here



But all I could come up with was the following code:



begintable[!htb]
captionGlobal caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable


which somewhat resembles the structure, but keeps my tables way too much separated from each other. Can anyone suggest me a better way to obtain the desired results?



Thank you in advance.










share|improve this question



















  • 1





    What are the lll columns in our tables preambles supposed to do, since they're empty?

    – Bernard
    Jul 8 at 21:17











  • You might want to take a look at the subfig or the subcaption packege.

    – leandriis
    Jul 8 at 21:18











  • Please tell us which document class you employ.

    – Mico
    Jul 8 at 22:10













4












4








4


0






I'm trying to reproduce a structure like this:



enter image description here



But all I could come up with was the following code:



begintable[!htb]
captionGlobal caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable


which somewhat resembles the structure, but keeps my tables way too much separated from each other. Can anyone suggest me a better way to obtain the desired results?



Thank you in advance.










share|improve this question
















I'm trying to reproduce a structure like this:



enter image description here



But all I could come up with was the following code:



begintable[!htb]
captionGlobal caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable

begintable[!htb]
caption*Global caption
beginminipage.5linewidth
caption*$G$
centering
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage%
beginminipage.5linewidth
centering
caption*$F$
begintabularc
cline1-2
textbfVertex & textbfLabel\ cline1-2
b & 1 \
c & 1 \
d & 1 \ cline1-2
endtabular
endminipage
endtable


which somewhat resembles the structure, but keeps my tables way too much separated from each other. Can anyone suggest me a better way to obtain the desired results?



Thank you in advance.







tables subfloats






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 8 at 21:59









Mico

297k32 gold badges410 silver badges810 bronze badges




297k32 gold badges410 silver badges810 bronze badges










asked Jul 8 at 21:04









Mdp11Mdp11

454 bronze badges




454 bronze badges







  • 1





    What are the lll columns in our tables preambles supposed to do, since they're empty?

    – Bernard
    Jul 8 at 21:17











  • You might want to take a look at the subfig or the subcaption packege.

    – leandriis
    Jul 8 at 21:18











  • Please tell us which document class you employ.

    – Mico
    Jul 8 at 22:10












  • 1





    What are the lll columns in our tables preambles supposed to do, since they're empty?

    – Bernard
    Jul 8 at 21:17











  • You might want to take a look at the subfig or the subcaption packege.

    – leandriis
    Jul 8 at 21:18











  • Please tell us which document class you employ.

    – Mico
    Jul 8 at 22:10







1




1





What are the lll columns in our tables preambles supposed to do, since they're empty?

– Bernard
Jul 8 at 21:17





What are the lll columns in our tables preambles supposed to do, since they're empty?

– Bernard
Jul 8 at 21:17













You might want to take a look at the subfig or the subcaption packege.

– leandriis
Jul 8 at 21:18





You might want to take a look at the subfig or the subcaption packege.

– leandriis
Jul 8 at 21:18













Please tell us which document class you employ.

– Mico
Jul 8 at 22:10





Please tell us which document class you employ.

– Mico
Jul 8 at 22:10










2 Answers
2






active

oldest

votes


















3














It is also possible to build these tabulars using cals and one calstable. By defining shortcuts for removing cell border, it is convinient to remove the necessary borders around the cells. Of cause, sub-labels are ordinary text, so it is not possible to refer to subtable 1(c). If you prefer more narrow table, just increase the the divisor when calculating the column width.



documentclassarticle
usepackagecals, caption

letnc=nullcell % Shortcuts
letsc=spancontent

begindocument

begintable[ht]

begincalstable[c] % Centre the tabular

% Defining columns relative to the margin
colwidthsdimexpr(columnwidth)/5relax % Increase 5 to 6 or 7 to make the tabular more narrow
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax


% Set up the tabular
makeatletter
defcals@framers@width0.4pt % Outside frame rules, reduce if the rule is too heavy
defcals@framecs@width0.4pt
defcals@bodyrs@width0.4pt
defcals@cs@width0.4pt % Inside rules, reduce if the rule is too heavy
defcals@rs@width0.4pt

deftbifxcals@borderTrelax % Top border switch (off-on)
defcals@borderT0pt
else letcals@borderTrelaxfi

defbbifxcals@borderBrelax % Botton border switch (off-on)
defcals@borderB0pt
else letcals@borderBrelaxfi

defrbifxcals@borderRrelax % Right border switch (off-on)
defcals@borderR0pt
else letcals@borderRrelaxfi

deflbifxcals@borderLrelax % Left border switch (off-on)
defcals@borderL0pt
else letcals@borderLrelaxfi


% R1H1
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R2B1
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R3B2
brow
cellb
cell1
bbcellbb
cellc
cell1
erow
% R4B3
brow
cellc
cell1
bbcellbb
cella
cell1
erow
% R5B4
brow
celld
cell1
bbcellbb
celld
cell1
erow
% R6B5
brow
lbrbncltb
nctb
nctb
nctb
ncrtbsc(a)lbrb
erow
% R7B6
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R8B7
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R9B8
brow
cellc
cell11
bbcellbb
cella
cell11
erow
% R10B9
brow
celld
cell10
bbcellbb
celld
cell11
erow
% R11B10
brow
rblbncltb
nctb
nctb
nctb
ncrtbsc(b)rblb
erow
% R12B11
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R13B12
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R14B13
brow
celld
cell101
bbcellbb
celld
cell101
erow
% R15B14
brow
lbrbbbncltb
nctb
nctb
nctb
ncrtbsc(c)lbrbbb
erow
makeatletter
endcalstablepar % par to align the tabular

captionLabels on the non-mapped vertices of $G$ and $H$ with mapping: Fig (a) $M=a,b$, Fig. (b) $M=ab,bc$, and (c) $M=abc, bca$
endtable

enddocument


enter image description here






share|improve this answer

























  • Thank you! That's exactly what I was looking for!

    – Mdp11
    Jul 9 at 5:52


















4














I suggest you load the subcaption package, which provides an environment called subtable. To (more or less) replicate the structure shown in the screenshot you posted, you could set up three subtable environments, each with its own caption, inside the overall table environment. In the code below, each subtable contains two tabular environments.



enter image description here



documentclassarticle % or some other, more suitable document class
usepackagearray % for 'extrarowheight' macro
usepackagesubcaption % for 'subtable' environment
begindocument

begintable[!htb]
setlengthextrarowheight1pt % for a more open "look"

centering

beginsubtable.55linewidth % choose width suitably
begintabular % 1st tabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
b & 1 \
c & 1 \
d & 1 \ hline
endtabular%
hfill % maximize distance between adjacent tabulars
begintabular % 2nd tabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
c & 1 \
a & 1 \
d & 1 \ hline
endtabular

smallskip
caption$M=a,b$
endsubtable

vspace5mm % insert a bit of vertical whitespace
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
c & 11 \
d & 10 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
a & 11 \
d & 11 \ hline
endtabular

smallskip
caption$M=ab,bc$
endsubtable

vspace5mm
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
d & 101 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
d & 110 \ hline
endtabular

smallskip
caption$M=abc,bca$
endsubtable

captionLabels on the non-mapped vertices of $G$ and $H$, for selected choices of mapping $M$
endtable
enddocument





share|improve this answer























  • Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

    – Mdp11
    Jul 9 at 5:51











  • @Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

    – Mico
    Jul 9 at 5:59












  • yes, sorry, I meant the subfig package.

    – Mdp11
    Jul 9 at 6:17













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



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f499154%2fgroup-of-tabulars-under-one-table-reference%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









3














It is also possible to build these tabulars using cals and one calstable. By defining shortcuts for removing cell border, it is convinient to remove the necessary borders around the cells. Of cause, sub-labels are ordinary text, so it is not possible to refer to subtable 1(c). If you prefer more narrow table, just increase the the divisor when calculating the column width.



documentclassarticle
usepackagecals, caption

letnc=nullcell % Shortcuts
letsc=spancontent

begindocument

begintable[ht]

begincalstable[c] % Centre the tabular

% Defining columns relative to the margin
colwidthsdimexpr(columnwidth)/5relax % Increase 5 to 6 or 7 to make the tabular more narrow
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax


% Set up the tabular
makeatletter
defcals@framers@width0.4pt % Outside frame rules, reduce if the rule is too heavy
defcals@framecs@width0.4pt
defcals@bodyrs@width0.4pt
defcals@cs@width0.4pt % Inside rules, reduce if the rule is too heavy
defcals@rs@width0.4pt

deftbifxcals@borderTrelax % Top border switch (off-on)
defcals@borderT0pt
else letcals@borderTrelaxfi

defbbifxcals@borderBrelax % Botton border switch (off-on)
defcals@borderB0pt
else letcals@borderBrelaxfi

defrbifxcals@borderRrelax % Right border switch (off-on)
defcals@borderR0pt
else letcals@borderRrelaxfi

deflbifxcals@borderLrelax % Left border switch (off-on)
defcals@borderL0pt
else letcals@borderLrelaxfi


% R1H1
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R2B1
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R3B2
brow
cellb
cell1
bbcellbb
cellc
cell1
erow
% R4B3
brow
cellc
cell1
bbcellbb
cella
cell1
erow
% R5B4
brow
celld
cell1
bbcellbb
celld
cell1
erow
% R6B5
brow
lbrbncltb
nctb
nctb
nctb
ncrtbsc(a)lbrb
erow
% R7B6
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R8B7
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R9B8
brow
cellc
cell11
bbcellbb
cella
cell11
erow
% R10B9
brow
celld
cell10
bbcellbb
celld
cell11
erow
% R11B10
brow
rblbncltb
nctb
nctb
nctb
ncrtbsc(b)rblb
erow
% R12B11
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R13B12
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R14B13
brow
celld
cell101
bbcellbb
celld
cell101
erow
% R15B14
brow
lbrbbbncltb
nctb
nctb
nctb
ncrtbsc(c)lbrbbb
erow
makeatletter
endcalstablepar % par to align the tabular

captionLabels on the non-mapped vertices of $G$ and $H$ with mapping: Fig (a) $M=a,b$, Fig. (b) $M=ab,bc$, and (c) $M=abc, bca$
endtable

enddocument


enter image description here






share|improve this answer

























  • Thank you! That's exactly what I was looking for!

    – Mdp11
    Jul 9 at 5:52















3














It is also possible to build these tabulars using cals and one calstable. By defining shortcuts for removing cell border, it is convinient to remove the necessary borders around the cells. Of cause, sub-labels are ordinary text, so it is not possible to refer to subtable 1(c). If you prefer more narrow table, just increase the the divisor when calculating the column width.



documentclassarticle
usepackagecals, caption

letnc=nullcell % Shortcuts
letsc=spancontent

begindocument

begintable[ht]

begincalstable[c] % Centre the tabular

% Defining columns relative to the margin
colwidthsdimexpr(columnwidth)/5relax % Increase 5 to 6 or 7 to make the tabular more narrow
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax


% Set up the tabular
makeatletter
defcals@framers@width0.4pt % Outside frame rules, reduce if the rule is too heavy
defcals@framecs@width0.4pt
defcals@bodyrs@width0.4pt
defcals@cs@width0.4pt % Inside rules, reduce if the rule is too heavy
defcals@rs@width0.4pt

deftbifxcals@borderTrelax % Top border switch (off-on)
defcals@borderT0pt
else letcals@borderTrelaxfi

defbbifxcals@borderBrelax % Botton border switch (off-on)
defcals@borderB0pt
else letcals@borderBrelaxfi

defrbifxcals@borderRrelax % Right border switch (off-on)
defcals@borderR0pt
else letcals@borderRrelaxfi

deflbifxcals@borderLrelax % Left border switch (off-on)
defcals@borderL0pt
else letcals@borderLrelaxfi


% R1H1
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R2B1
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R3B2
brow
cellb
cell1
bbcellbb
cellc
cell1
erow
% R4B3
brow
cellc
cell1
bbcellbb
cella
cell1
erow
% R5B4
brow
celld
cell1
bbcellbb
celld
cell1
erow
% R6B5
brow
lbrbncltb
nctb
nctb
nctb
ncrtbsc(a)lbrb
erow
% R7B6
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R8B7
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R9B8
brow
cellc
cell11
bbcellbb
cella
cell11
erow
% R10B9
brow
celld
cell10
bbcellbb
celld
cell11
erow
% R11B10
brow
rblbncltb
nctb
nctb
nctb
ncrtbsc(b)rblb
erow
% R12B11
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R13B12
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R14B13
brow
celld
cell101
bbcellbb
celld
cell101
erow
% R15B14
brow
lbrbbbncltb
nctb
nctb
nctb
ncrtbsc(c)lbrbbb
erow
makeatletter
endcalstablepar % par to align the tabular

captionLabels on the non-mapped vertices of $G$ and $H$ with mapping: Fig (a) $M=a,b$, Fig. (b) $M=ab,bc$, and (c) $M=abc, bca$
endtable

enddocument


enter image description here






share|improve this answer

























  • Thank you! That's exactly what I was looking for!

    – Mdp11
    Jul 9 at 5:52













3












3








3







It is also possible to build these tabulars using cals and one calstable. By defining shortcuts for removing cell border, it is convinient to remove the necessary borders around the cells. Of cause, sub-labels are ordinary text, so it is not possible to refer to subtable 1(c). If you prefer more narrow table, just increase the the divisor when calculating the column width.



documentclassarticle
usepackagecals, caption

letnc=nullcell % Shortcuts
letsc=spancontent

begindocument

begintable[ht]

begincalstable[c] % Centre the tabular

% Defining columns relative to the margin
colwidthsdimexpr(columnwidth)/5relax % Increase 5 to 6 or 7 to make the tabular more narrow
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax


% Set up the tabular
makeatletter
defcals@framers@width0.4pt % Outside frame rules, reduce if the rule is too heavy
defcals@framecs@width0.4pt
defcals@bodyrs@width0.4pt
defcals@cs@width0.4pt % Inside rules, reduce if the rule is too heavy
defcals@rs@width0.4pt

deftbifxcals@borderTrelax % Top border switch (off-on)
defcals@borderT0pt
else letcals@borderTrelaxfi

defbbifxcals@borderBrelax % Botton border switch (off-on)
defcals@borderB0pt
else letcals@borderBrelaxfi

defrbifxcals@borderRrelax % Right border switch (off-on)
defcals@borderR0pt
else letcals@borderRrelaxfi

deflbifxcals@borderLrelax % Left border switch (off-on)
defcals@borderL0pt
else letcals@borderLrelaxfi


% R1H1
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R2B1
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R3B2
brow
cellb
cell1
bbcellbb
cellc
cell1
erow
% R4B3
brow
cellc
cell1
bbcellbb
cella
cell1
erow
% R5B4
brow
celld
cell1
bbcellbb
celld
cell1
erow
% R6B5
brow
lbrbncltb
nctb
nctb
nctb
ncrtbsc(a)lbrb
erow
% R7B6
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R8B7
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R9B8
brow
cellc
cell11
bbcellbb
cella
cell11
erow
% R10B9
brow
celld
cell10
bbcellbb
celld
cell11
erow
% R11B10
brow
rblbncltb
nctb
nctb
nctb
ncrtbsc(b)rblb
erow
% R12B11
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R13B12
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R14B13
brow
celld
cell101
bbcellbb
celld
cell101
erow
% R15B14
brow
lbrbbbncltb
nctb
nctb
nctb
ncrtbsc(c)lbrbbb
erow
makeatletter
endcalstablepar % par to align the tabular

captionLabels on the non-mapped vertices of $G$ and $H$ with mapping: Fig (a) $M=a,b$, Fig. (b) $M=ab,bc$, and (c) $M=abc, bca$
endtable

enddocument


enter image description here






share|improve this answer















It is also possible to build these tabulars using cals and one calstable. By defining shortcuts for removing cell border, it is convinient to remove the necessary borders around the cells. Of cause, sub-labels are ordinary text, so it is not possible to refer to subtable 1(c). If you prefer more narrow table, just increase the the divisor when calculating the column width.



documentclassarticle
usepackagecals, caption

letnc=nullcell % Shortcuts
letsc=spancontent

begindocument

begintable[ht]

begincalstable[c] % Centre the tabular

% Defining columns relative to the margin
colwidthsdimexpr(columnwidth)/5relax % Increase 5 to 6 or 7 to make the tabular more narrow
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax
dimexpr(columnwidth)/5relax


% Set up the tabular
makeatletter
defcals@framers@width0.4pt % Outside frame rules, reduce if the rule is too heavy
defcals@framecs@width0.4pt
defcals@bodyrs@width0.4pt
defcals@cs@width0.4pt % Inside rules, reduce if the rule is too heavy
defcals@rs@width0.4pt

deftbifxcals@borderTrelax % Top border switch (off-on)
defcals@borderT0pt
else letcals@borderTrelaxfi

defbbifxcals@borderBrelax % Botton border switch (off-on)
defcals@borderB0pt
else letcals@borderBrelaxfi

defrbifxcals@borderRrelax % Right border switch (off-on)
defcals@borderR0pt
else letcals@borderRrelaxfi

deflbifxcals@borderLrelax % Left border switch (off-on)
defcals@borderL0pt
else letcals@borderLrelaxfi


% R1H1
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R2B1
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R3B2
brow
cellb
cell1
bbcellbb
cellc
cell1
erow
% R4B3
brow
cellc
cell1
bbcellbb
cella
cell1
erow
% R5B4
brow
celld
cell1
bbcellbb
celld
cell1
erow
% R6B5
brow
lbrbncltb
nctb
nctb
nctb
ncrtbsc(a)lbrb
erow
% R7B6
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R8B7
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R9B8
brow
cellc
cell11
bbcellbb
cella
cell11
erow
% R10B9
brow
celld
cell10
bbcellbb
celld
cell11
erow
% R11B10
brow
rblbncltb
nctb
nctb
nctb
ncrtbsc(b)rblb
erow
% R12B11
brow
lbtbrbalignCncltb
ncrtbsc$G$
bbcellbb
ncltb
ncrtbsc$H$lbtbrb
erow
% R13B12
brow
cellVertex
cellLabel
bbcellbb
cellVertex
cellLabel
erow
% R14B13
brow
celld
cell101
bbcellbb
celld
cell101
erow
% R15B14
brow
lbrbbbncltb
nctb
nctb
nctb
ncrtbsc(c)lbrbbb
erow
makeatletter
endcalstablepar % par to align the tabular

captionLabels on the non-mapped vertices of $G$ and $H$ with mapping: Fig (a) $M=a,b$, Fig. (b) $M=ab,bc$, and (c) $M=abc, bca$
endtable

enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Jul 9 at 8:49

























answered Jul 8 at 23:34









SveinungSveinung

12.7k2 gold badges33 silver badges60 bronze badges




12.7k2 gold badges33 silver badges60 bronze badges












  • Thank you! That's exactly what I was looking for!

    – Mdp11
    Jul 9 at 5:52

















  • Thank you! That's exactly what I was looking for!

    – Mdp11
    Jul 9 at 5:52
















Thank you! That's exactly what I was looking for!

– Mdp11
Jul 9 at 5:52





Thank you! That's exactly what I was looking for!

– Mdp11
Jul 9 at 5:52













4














I suggest you load the subcaption package, which provides an environment called subtable. To (more or less) replicate the structure shown in the screenshot you posted, you could set up three subtable environments, each with its own caption, inside the overall table environment. In the code below, each subtable contains two tabular environments.



enter image description here



documentclassarticle % or some other, more suitable document class
usepackagearray % for 'extrarowheight' macro
usepackagesubcaption % for 'subtable' environment
begindocument

begintable[!htb]
setlengthextrarowheight1pt % for a more open "look"

centering

beginsubtable.55linewidth % choose width suitably
begintabular % 1st tabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
b & 1 \
c & 1 \
d & 1 \ hline
endtabular%
hfill % maximize distance between adjacent tabulars
begintabular % 2nd tabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
c & 1 \
a & 1 \
d & 1 \ hline
endtabular

smallskip
caption$M=a,b$
endsubtable

vspace5mm % insert a bit of vertical whitespace
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
c & 11 \
d & 10 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
a & 11 \
d & 11 \ hline
endtabular

smallskip
caption$M=ab,bc$
endsubtable

vspace5mm
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
d & 101 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
d & 110 \ hline
endtabular

smallskip
caption$M=abc,bca$
endsubtable

captionLabels on the non-mapped vertices of $G$ and $H$, for selected choices of mapping $M$
endtable
enddocument





share|improve this answer























  • Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

    – Mdp11
    Jul 9 at 5:51











  • @Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

    – Mico
    Jul 9 at 5:59












  • yes, sorry, I meant the subfig package.

    – Mdp11
    Jul 9 at 6:17















4














I suggest you load the subcaption package, which provides an environment called subtable. To (more or less) replicate the structure shown in the screenshot you posted, you could set up three subtable environments, each with its own caption, inside the overall table environment. In the code below, each subtable contains two tabular environments.



enter image description here



documentclassarticle % or some other, more suitable document class
usepackagearray % for 'extrarowheight' macro
usepackagesubcaption % for 'subtable' environment
begindocument

begintable[!htb]
setlengthextrarowheight1pt % for a more open "look"

centering

beginsubtable.55linewidth % choose width suitably
begintabular % 1st tabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
b & 1 \
c & 1 \
d & 1 \ hline
endtabular%
hfill % maximize distance between adjacent tabulars
begintabular % 2nd tabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
c & 1 \
a & 1 \
d & 1 \ hline
endtabular

smallskip
caption$M=a,b$
endsubtable

vspace5mm % insert a bit of vertical whitespace
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
c & 11 \
d & 10 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
a & 11 \
d & 11 \ hline
endtabular

smallskip
caption$M=ab,bc$
endsubtable

vspace5mm
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
d & 101 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
d & 110 \ hline
endtabular

smallskip
caption$M=abc,bca$
endsubtable

captionLabels on the non-mapped vertices of $G$ and $H$, for selected choices of mapping $M$
endtable
enddocument





share|improve this answer























  • Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

    – Mdp11
    Jul 9 at 5:51











  • @Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

    – Mico
    Jul 9 at 5:59












  • yes, sorry, I meant the subfig package.

    – Mdp11
    Jul 9 at 6:17













4












4








4







I suggest you load the subcaption package, which provides an environment called subtable. To (more or less) replicate the structure shown in the screenshot you posted, you could set up three subtable environments, each with its own caption, inside the overall table environment. In the code below, each subtable contains two tabular environments.



enter image description here



documentclassarticle % or some other, more suitable document class
usepackagearray % for 'extrarowheight' macro
usepackagesubcaption % for 'subtable' environment
begindocument

begintable[!htb]
setlengthextrarowheight1pt % for a more open "look"

centering

beginsubtable.55linewidth % choose width suitably
begintabular % 1st tabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
b & 1 \
c & 1 \
d & 1 \ hline
endtabular%
hfill % maximize distance between adjacent tabulars
begintabular % 2nd tabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
c & 1 \
a & 1 \
d & 1 \ hline
endtabular

smallskip
caption$M=a,b$
endsubtable

vspace5mm % insert a bit of vertical whitespace
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
c & 11 \
d & 10 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
a & 11 \
d & 11 \ hline
endtabular

smallskip
caption$M=ab,bc$
endsubtable

vspace5mm
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
d & 101 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
d & 110 \ hline
endtabular

smallskip
caption$M=abc,bca$
endsubtable

captionLabels on the non-mapped vertices of $G$ and $H$, for selected choices of mapping $M$
endtable
enddocument





share|improve this answer













I suggest you load the subcaption package, which provides an environment called subtable. To (more or less) replicate the structure shown in the screenshot you posted, you could set up three subtable environments, each with its own caption, inside the overall table environment. In the code below, each subtable contains two tabular environments.



enter image description here



documentclassarticle % or some other, more suitable document class
usepackagearray % for 'extrarowheight' macro
usepackagesubcaption % for 'subtable' environment
begindocument

begintable[!htb]
setlengthextrarowheight1pt % for a more open "look"

centering

beginsubtable.55linewidth % choose width suitably
begintabular % 1st tabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
b & 1 \
c & 1 \
d & 1 \ hline
endtabular%
hfill % maximize distance between adjacent tabulars
begintabular % 2nd tabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
c & 1 \
a & 1 \
d & 1 \ hline
endtabular

smallskip
caption$M=a,b$
endsubtable

vspace5mm % insert a bit of vertical whitespace
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
c & 11 \
d & 10 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
a & 11 \
d & 11 \ hline
endtabular

smallskip
caption$M=ab,bc$
endsubtable

vspace5mm
beginsubtable.55linewidth
begintabular
multicolumn2c$G$\
hline
Vertex & Label\
hline
d & 101 \ hline
endtabular%
hfill
begintabular
multicolumn2c$H$\
hline
Vertex & Label\
hline
d & 110 \ hline
endtabular

smallskip
caption$M=abc,bca$
endsubtable

captionLabels on the non-mapped vertices of $G$ and $H$, for selected choices of mapping $M$
endtable
enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 8 at 22:26









MicoMico

297k32 gold badges410 silver badges810 bronze badges




297k32 gold badges410 silver badges810 bronze badges












  • Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

    – Mdp11
    Jul 9 at 5:51











  • @Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

    – Mico
    Jul 9 at 5:59












  • yes, sorry, I meant the subfig package.

    – Mdp11
    Jul 9 at 6:17

















  • Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

    – Mdp11
    Jul 9 at 5:51











  • @Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

    – Mico
    Jul 9 at 5:59












  • yes, sorry, I meant the subfig package.

    – Mdp11
    Jul 9 at 6:17
















Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

– Mdp11
Jul 9 at 5:51





Thanks for your answer, but unfortunately I use the subfloat package which is incompatible with the subcaption one.

– Mdp11
Jul 9 at 5:51













@Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

– Mico
Jul 9 at 5:59






@Mdp11 - I’m not familiar with a package called subfloat. However, I’m familiar with a package called subfig, which provides a macro called subfloat.

– Mico
Jul 9 at 5:59














yes, sorry, I meant the subfig package.

– Mdp11
Jul 9 at 6:17





yes, sorry, I meant the subfig package.

– Mdp11
Jul 9 at 6:17

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f499154%2fgroup-of-tabulars-under-one-table-reference%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?