Independent table row spacingDifferent vertical spacing just in header row of tableTable Row SpacingTable spacing and alignmentTable row & column spacing (not padding!)?Extra vertical space below table row when compressing line spacingTable/Tabular Row SpacingRow spacing ignored between nested tabularsTabular row spacingSpacing for first row in a tableChange table spacing
Is there such a thing as too inconvenient?
How do you call it when two celestial bodies come as close to each other as they will in their current orbits?
How to organize ideas to start writing a novel?
The sound of thunder's like a whip
Are required indicators necessary for radio buttons?
What is the improvement of the "legally binding commitment" proposed by Boris Johnson over the existing "backstop"?
Can you grapple/shove with the Hunter Ranger's Whirlwind Attack?
Why my earth simulation is slower than the reality?
Efficient way of generating a random number of N (less than 64) bits with exactly M bits equal to one
Is it insecure to have an ansible user with passwordless sudo?
How big would a Daddy Longlegs Spider need to be to kill an average Human?
What professions would a medieval village with a population of 100 need?
Why is 日本 read as "nihon" but not "nitsuhon"?
What is the difference between a premise and an assumption in logic?
How to "know" if I have a passion?
Can we save the word "unique"?
Is it safe to remove the bottom chords of a series of garage roof trusses?
Dark side of an exoplanet - if it was earth-like would its surface light be detectable?
Are there any plans for handling people floating away during an EVA?
Was 'help' pronounced starting with a vowel sound?
Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner
Co-author responds to email by mistake cc'ing the EiC
Shouldn't the "credit score" prevent Americans from going deeper and deeper into personal debt?
Can pay be witheld for hours cleaning up after closing time?
Independent table row spacing
Different vertical spacing just in header row of tableTable Row SpacingTable spacing and alignmentTable row & column spacing (not padding!)?Extra vertical space below table row when compressing line spacingTable/Tabular Row SpacingRow spacing ignored between nested tabularsTabular row spacingSpacing for first row in a tableChange table spacing
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have created a fairly simple table using booktabs
:
renewcommandarraystretch1.5
begintable[h!]
centering
footnotesize
begintabular p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
Jira & exply \
Confluence & Canias ERP \
E-Mail & Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
Nextcloud & \
Rocket.Chat & \
GitLab/GitHub & \
bottomrule
endtabular
labeltable:informationsquellen
captionPrimäre und sekundäre Quellen bei XXXXXX
endtable
Currently, the rows are "aligned":
I want to remove the alignment, making the columns independent of each other (effectively removing the green outlined space).
Is this possible? How can I do that?
tables spacing
add a comment |
I have created a fairly simple table using booktabs
:
renewcommandarraystretch1.5
begintable[h!]
centering
footnotesize
begintabular p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
Jira & exply \
Confluence & Canias ERP \
E-Mail & Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
Nextcloud & \
Rocket.Chat & \
GitLab/GitHub & \
bottomrule
endtabular
labeltable:informationsquellen
captionPrimäre und sekundäre Quellen bei XXXXXX
endtable
Currently, the rows are "aligned":
I want to remove the alignment, making the columns independent of each other (effectively removing the green outlined space).
Is this possible? How can I do that?
tables spacing
Than make only one cell in each column and usepar
to move text in new line or inserts empty lines between text formed paragraphs.
– Zarko
Aug 8 at 12:53
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
If you want to stay with a table, why not simply use twol
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.
– leandriis
Aug 8 at 12:59
2
Off-topic but nevertheless important: thelabel
directive must be placed after the associatedcaption
directive. Otherwise, cross-references to thetable
cannot be correct.
– Mico
Aug 8 at 13:09
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07
add a comment |
I have created a fairly simple table using booktabs
:
renewcommandarraystretch1.5
begintable[h!]
centering
footnotesize
begintabular p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
Jira & exply \
Confluence & Canias ERP \
E-Mail & Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
Nextcloud & \
Rocket.Chat & \
GitLab/GitHub & \
bottomrule
endtabular
labeltable:informationsquellen
captionPrimäre und sekundäre Quellen bei XXXXXX
endtable
Currently, the rows are "aligned":
I want to remove the alignment, making the columns independent of each other (effectively removing the green outlined space).
Is this possible? How can I do that?
tables spacing
I have created a fairly simple table using booktabs
:
renewcommandarraystretch1.5
begintable[h!]
centering
footnotesize
begintabular p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
Jira & exply \
Confluence & Canias ERP \
E-Mail & Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
Nextcloud & \
Rocket.Chat & \
GitLab/GitHub & \
bottomrule
endtabular
labeltable:informationsquellen
captionPrimäre und sekundäre Quellen bei XXXXXX
endtable
Currently, the rows are "aligned":
I want to remove the alignment, making the columns independent of each other (effectively removing the green outlined space).
Is this possible? How can I do that?
tables spacing
tables spacing
edited Aug 8 at 20:57
Faheem Mitha
3,5125 gold badges40 silver badges67 bronze badges
3,5125 gold badges40 silver badges67 bronze badges
asked Aug 8 at 12:40
Thomas PötzschThomas Pötzsch
426 bronze badges
426 bronze badges
Than make only one cell in each column and usepar
to move text in new line or inserts empty lines between text formed paragraphs.
– Zarko
Aug 8 at 12:53
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
If you want to stay with a table, why not simply use twol
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.
– leandriis
Aug 8 at 12:59
2
Off-topic but nevertheless important: thelabel
directive must be placed after the associatedcaption
directive. Otherwise, cross-references to thetable
cannot be correct.
– Mico
Aug 8 at 13:09
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07
add a comment |
Than make only one cell in each column and usepar
to move text in new line or inserts empty lines between text formed paragraphs.
– Zarko
Aug 8 at 12:53
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
If you want to stay with a table, why not simply use twol
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.
– leandriis
Aug 8 at 12:59
2
Off-topic but nevertheless important: thelabel
directive must be placed after the associatedcaption
directive. Otherwise, cross-references to thetable
cannot be correct.
– Mico
Aug 8 at 13:09
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07
Than make only one cell in each column and use
par
to move text in new line or inserts empty lines between text formed paragraphs.– Zarko
Aug 8 at 12:53
Than make only one cell in each column and use
par
to move text in new line or inserts empty lines between text formed paragraphs.– Zarko
Aug 8 at 12:53
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
If you want to stay with a table, why not simply use two
l
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.– leandriis
Aug 8 at 12:59
If you want to stay with a table, why not simply use two
l
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.– leandriis
Aug 8 at 12:59
2
2
Off-topic but nevertheless important: the
label
directive must be placed after the associated caption
directive. Otherwise, cross-references to the table
cannot be correct.– Mico
Aug 8 at 13:09
Off-topic but nevertheless important: the
label
directive must be placed after the associated caption
directive. Otherwise, cross-references to the table
cannot be correct.– Mico
Aug 8 at 13:09
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07
add a comment |
4 Answers
4
active
oldest
votes
You can make a tabular
containing only one row, and break lines inside a cell using either par
as shown below, or newline
. As leandriis warned, horizontal lines created by commands from the booktabs
package aren't designed to join well with vertical lines (the author of booktabs explains in the manual of his great package that vertical lines in tables are almost always a bad typographic choice: both ugly and useless).
documentclassarticle
usepackagebooktabs
begindocument
renewcommandarraystretch1.5%
begintabular p5cm
toprule
textbfPrimäre Quellenpar
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
textbfSekundäre Quellenpar
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You can get a nicer layout by removing the renewcommandarraystretch1.5
, using a dedicated row for the table header, finishing it with \midrule
and suppressing the vertical rule. As per leandriis' suggestion, I also added >raggedrightarraybackslash
in front of the second column specification in the tabular
preamble, so that interword spacing in the second column doesn't get overstretched (this way, it is not stretched at all; as a consequence, the right side of the second column is allowed to have a “ragged” appearance, which doesn't change much here since we were ending lines/paragraphs manually anyway). The >...
syntax requires the array
package, hence we are adding it too.
documentclassarticle
usepackagearray
usepackagebooktabs
begindocument
begintabular p5cm >raggedrightarraybackslash p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen\
midrule
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You could also do that using multicols
(possibly inside a minipage
) and/or enumitem
. There are many possibilities.
P.S.: as Mico said, if you use caption
and label
, be sure to put label
after the associated caption
, because it is caption
that increases the counter (label
uses the last reference set with refstepcounter
)!
You might want to consider addingraggedrightarraybackslash
to the secondp
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").
– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
add a comment |
Use two distinct tabular
environments for the columns:
documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagearray,booktabs
begindocument
begintable[htp]
centering
begintabularll
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
midrule
begintabular[t]@>raggedrightarraybackslashp5cm@
Jira \
addlinespace
Confluence \
addlinespace
E-Mail \
addlinespace
Nextcloud \
addlinespace
Rocket.Chat \
addlinespace
GitLab/GitHub \
endtabular
&
begintabular[t]@>raggedrightarraybackslashp5cm@
exply \
addlinespace
Canias ERP \
addlinespace
Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
endtabular
\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
Be careful that label
should go after caption
. Using arraystretch
yields not very nice spaces, better using addlinespace
where needed.
add a comment |
To prevent the material in the two columns from interacting, you could place it into separate subordinated tabular
environments. In the following solution, the "outer" tabular
environment consists of two l
columns; the outer environment is needed solely for the toprule
and bottomrule
directives. The "inner" tabular
environments each contain a single p
column, which allows automatic line-breaking (if needed).
I would also omit the vertical divider line.
documentclassarticle
usepackagebooktabs
begindocument
begintable[h!]
renewcommandarraystretch1.5
centering
footnotesize % is this really needed?
begintabular ll % "outer" tabular
toprule
begintabular[t]@ p5cm @ % first "inner" tabular
textbfPrimäre Quellen \
Jira \
Confluence \
E-Mail \
Nextcloud \
Rocket.Chat \
GitLab/GitHub
endtabular &
begintabular[t]@ p5cm @ % second "inner" tabular
textbfSekundäre Quellen \
exply \
Canias ERP \
Diverse Excel-Tabellen (Vertrieb, Verwaltung)
endtabular\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
1
A\
seems to be missing aftertextbfPrimäre Quellen
.
– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
add a comment |
Here is a suggestion using two itemize
environments instead of the tabular
. If placed inside of a table
this can float, get a cpation and be referenced as usual:
documentclassarticle
usepackagebooktabs
usepackageenumitem
setlistnosep
begindocument
begintable
centering
beginminipage[t]3.5cm
textbfPrimäre Quellen
beginitemize[label=--]
item Jira
item Confluence
item E-Mail
item Nextcloud
item Rocket.Chat
item GitLab/GitHub
enditemize
endminipage
beginminipage[t]5cmraggedright
textbfSekundäre Quellen
beginitemize[label=--]
item exply
item Canias ERP
item Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
enditemize
endminipage
captionPrimäre und sekundäre Quellen bei XXXXXXlabeltable:informationsquellen
endtable
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f503376%2findependent-table-row-spacing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can make a tabular
containing only one row, and break lines inside a cell using either par
as shown below, or newline
. As leandriis warned, horizontal lines created by commands from the booktabs
package aren't designed to join well with vertical lines (the author of booktabs explains in the manual of his great package that vertical lines in tables are almost always a bad typographic choice: both ugly and useless).
documentclassarticle
usepackagebooktabs
begindocument
renewcommandarraystretch1.5%
begintabular p5cm
toprule
textbfPrimäre Quellenpar
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
textbfSekundäre Quellenpar
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You can get a nicer layout by removing the renewcommandarraystretch1.5
, using a dedicated row for the table header, finishing it with \midrule
and suppressing the vertical rule. As per leandriis' suggestion, I also added >raggedrightarraybackslash
in front of the second column specification in the tabular
preamble, so that interword spacing in the second column doesn't get overstretched (this way, it is not stretched at all; as a consequence, the right side of the second column is allowed to have a “ragged” appearance, which doesn't change much here since we were ending lines/paragraphs manually anyway). The >...
syntax requires the array
package, hence we are adding it too.
documentclassarticle
usepackagearray
usepackagebooktabs
begindocument
begintabular p5cm >raggedrightarraybackslash p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen\
midrule
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You could also do that using multicols
(possibly inside a minipage
) and/or enumitem
. There are many possibilities.
P.S.: as Mico said, if you use caption
and label
, be sure to put label
after the associated caption
, because it is caption
that increases the counter (label
uses the last reference set with refstepcounter
)!
You might want to consider addingraggedrightarraybackslash
to the secondp
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").
– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
add a comment |
You can make a tabular
containing only one row, and break lines inside a cell using either par
as shown below, or newline
. As leandriis warned, horizontal lines created by commands from the booktabs
package aren't designed to join well with vertical lines (the author of booktabs explains in the manual of his great package that vertical lines in tables are almost always a bad typographic choice: both ugly and useless).
documentclassarticle
usepackagebooktabs
begindocument
renewcommandarraystretch1.5%
begintabular p5cm
toprule
textbfPrimäre Quellenpar
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
textbfSekundäre Quellenpar
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You can get a nicer layout by removing the renewcommandarraystretch1.5
, using a dedicated row for the table header, finishing it with \midrule
and suppressing the vertical rule. As per leandriis' suggestion, I also added >raggedrightarraybackslash
in front of the second column specification in the tabular
preamble, so that interword spacing in the second column doesn't get overstretched (this way, it is not stretched at all; as a consequence, the right side of the second column is allowed to have a “ragged” appearance, which doesn't change much here since we were ending lines/paragraphs manually anyway). The >...
syntax requires the array
package, hence we are adding it too.
documentclassarticle
usepackagearray
usepackagebooktabs
begindocument
begintabular p5cm >raggedrightarraybackslash p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen\
midrule
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You could also do that using multicols
(possibly inside a minipage
) and/or enumitem
. There are many possibilities.
P.S.: as Mico said, if you use caption
and label
, be sure to put label
after the associated caption
, because it is caption
that increases the counter (label
uses the last reference set with refstepcounter
)!
You might want to consider addingraggedrightarraybackslash
to the secondp
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").
– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
add a comment |
You can make a tabular
containing only one row, and break lines inside a cell using either par
as shown below, or newline
. As leandriis warned, horizontal lines created by commands from the booktabs
package aren't designed to join well with vertical lines (the author of booktabs explains in the manual of his great package that vertical lines in tables are almost always a bad typographic choice: both ugly and useless).
documentclassarticle
usepackagebooktabs
begindocument
renewcommandarraystretch1.5%
begintabular p5cm
toprule
textbfPrimäre Quellenpar
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
textbfSekundäre Quellenpar
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You can get a nicer layout by removing the renewcommandarraystretch1.5
, using a dedicated row for the table header, finishing it with \midrule
and suppressing the vertical rule. As per leandriis' suggestion, I also added >raggedrightarraybackslash
in front of the second column specification in the tabular
preamble, so that interword spacing in the second column doesn't get overstretched (this way, it is not stretched at all; as a consequence, the right side of the second column is allowed to have a “ragged” appearance, which doesn't change much here since we were ending lines/paragraphs manually anyway). The >...
syntax requires the array
package, hence we are adding it too.
documentclassarticle
usepackagearray
usepackagebooktabs
begindocument
begintabular p5cm >raggedrightarraybackslash p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen\
midrule
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You could also do that using multicols
(possibly inside a minipage
) and/or enumitem
. There are many possibilities.
P.S.: as Mico said, if you use caption
and label
, be sure to put label
after the associated caption
, because it is caption
that increases the counter (label
uses the last reference set with refstepcounter
)!
You can make a tabular
containing only one row, and break lines inside a cell using either par
as shown below, or newline
. As leandriis warned, horizontal lines created by commands from the booktabs
package aren't designed to join well with vertical lines (the author of booktabs explains in the manual of his great package that vertical lines in tables are almost always a bad typographic choice: both ugly and useless).
documentclassarticle
usepackagebooktabs
begindocument
renewcommandarraystretch1.5%
begintabular p5cm
toprule
textbfPrimäre Quellenpar
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
textbfSekundäre Quellenpar
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You can get a nicer layout by removing the renewcommandarraystretch1.5
, using a dedicated row for the table header, finishing it with \midrule
and suppressing the vertical rule. As per leandriis' suggestion, I also added >raggedrightarraybackslash
in front of the second column specification in the tabular
preamble, so that interword spacing in the second column doesn't get overstretched (this way, it is not stretched at all; as a consequence, the right side of the second column is allowed to have a “ragged” appearance, which doesn't change much here since we were ending lines/paragraphs manually anyway). The >...
syntax requires the array
package, hence we are adding it too.
documentclassarticle
usepackagearray
usepackagebooktabs
begindocument
begintabular p5cm >raggedrightarraybackslash p5cm
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen\
midrule
Jirapar
Confluencepar
E-Mailpar
Nextcloudpar
Rocket.Chatpar
GitLab/GitHub &
explypar
Canias ERPpar
Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
bottomrule
endtabular
enddocument
You could also do that using multicols
(possibly inside a minipage
) and/or enumitem
. There are many possibilities.
P.S.: as Mico said, if you use caption
and label
, be sure to put label
after the associated caption
, because it is caption
that increases the counter (label
uses the last reference set with refstepcounter
)!
edited Aug 8 at 19:44
answered Aug 8 at 13:04
frougonfrougon
7,8501 gold badge13 silver badges26 bronze badges
7,8501 gold badge13 silver badges26 bronze badges
You might want to consider addingraggedrightarraybackslash
to the secondp
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").
– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
add a comment |
You might want to consider addingraggedrightarraybackslash
to the secondp
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").
– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
You might want to consider adding
raggedrightarraybackslash
to the second p
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").– leandriis
Aug 8 at 17:47
You might want to consider adding
raggedrightarraybackslash
to the second p
type column to prevent the large white spaces (e.g. between "Diverse" and "Excel-Tabellen").– leandriis
Aug 8 at 17:47
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
@leandriis I agree and used your suggestion in the second example. Thanks!
– frougon
Aug 8 at 19:48
add a comment |
Use two distinct tabular
environments for the columns:
documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagearray,booktabs
begindocument
begintable[htp]
centering
begintabularll
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
midrule
begintabular[t]@>raggedrightarraybackslashp5cm@
Jira \
addlinespace
Confluence \
addlinespace
E-Mail \
addlinespace
Nextcloud \
addlinespace
Rocket.Chat \
addlinespace
GitLab/GitHub \
endtabular
&
begintabular[t]@>raggedrightarraybackslashp5cm@
exply \
addlinespace
Canias ERP \
addlinespace
Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
endtabular
\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
Be careful that label
should go after caption
. Using arraystretch
yields not very nice spaces, better using addlinespace
where needed.
add a comment |
Use two distinct tabular
environments for the columns:
documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagearray,booktabs
begindocument
begintable[htp]
centering
begintabularll
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
midrule
begintabular[t]@>raggedrightarraybackslashp5cm@
Jira \
addlinespace
Confluence \
addlinespace
E-Mail \
addlinespace
Nextcloud \
addlinespace
Rocket.Chat \
addlinespace
GitLab/GitHub \
endtabular
&
begintabular[t]@>raggedrightarraybackslashp5cm@
exply \
addlinespace
Canias ERP \
addlinespace
Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
endtabular
\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
Be careful that label
should go after caption
. Using arraystretch
yields not very nice spaces, better using addlinespace
where needed.
add a comment |
Use two distinct tabular
environments for the columns:
documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagearray,booktabs
begindocument
begintable[htp]
centering
begintabularll
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
midrule
begintabular[t]@>raggedrightarraybackslashp5cm@
Jira \
addlinespace
Confluence \
addlinespace
E-Mail \
addlinespace
Nextcloud \
addlinespace
Rocket.Chat \
addlinespace
GitLab/GitHub \
endtabular
&
begintabular[t]@>raggedrightarraybackslashp5cm@
exply \
addlinespace
Canias ERP \
addlinespace
Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
endtabular
\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
Be careful that label
should go after caption
. Using arraystretch
yields not very nice spaces, better using addlinespace
where needed.
Use two distinct tabular
environments for the columns:
documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagearray,booktabs
begindocument
begintable[htp]
centering
begintabularll
toprule
textbfPrimäre Quellen & textbfSekundäre Quellen \
midrule
begintabular[t]@>raggedrightarraybackslashp5cm@
Jira \
addlinespace
Confluence \
addlinespace
E-Mail \
addlinespace
Nextcloud \
addlinespace
Rocket.Chat \
addlinespace
GitLab/GitHub \
endtabular
&
begintabular[t]@>raggedrightarraybackslashp5cm@
exply \
addlinespace
Canias ERP \
addlinespace
Diverse Excel-Tabellen (Vertrieb, Verwaltung) \
endtabular
\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
Be careful that label
should go after caption
. Using arraystretch
yields not very nice spaces, better using addlinespace
where needed.
answered Aug 8 at 13:28
egregegreg
763k90 gold badges1995 silver badges3342 bronze badges
763k90 gold badges1995 silver badges3342 bronze badges
add a comment |
add a comment |
To prevent the material in the two columns from interacting, you could place it into separate subordinated tabular
environments. In the following solution, the "outer" tabular
environment consists of two l
columns; the outer environment is needed solely for the toprule
and bottomrule
directives. The "inner" tabular
environments each contain a single p
column, which allows automatic line-breaking (if needed).
I would also omit the vertical divider line.
documentclassarticle
usepackagebooktabs
begindocument
begintable[h!]
renewcommandarraystretch1.5
centering
footnotesize % is this really needed?
begintabular ll % "outer" tabular
toprule
begintabular[t]@ p5cm @ % first "inner" tabular
textbfPrimäre Quellen \
Jira \
Confluence \
E-Mail \
Nextcloud \
Rocket.Chat \
GitLab/GitHub
endtabular &
begintabular[t]@ p5cm @ % second "inner" tabular
textbfSekundäre Quellen \
exply \
Canias ERP \
Diverse Excel-Tabellen (Vertrieb, Verwaltung)
endtabular\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
1
A\
seems to be missing aftertextbfPrimäre Quellen
.
– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
add a comment |
To prevent the material in the two columns from interacting, you could place it into separate subordinated tabular
environments. In the following solution, the "outer" tabular
environment consists of two l
columns; the outer environment is needed solely for the toprule
and bottomrule
directives. The "inner" tabular
environments each contain a single p
column, which allows automatic line-breaking (if needed).
I would also omit the vertical divider line.
documentclassarticle
usepackagebooktabs
begindocument
begintable[h!]
renewcommandarraystretch1.5
centering
footnotesize % is this really needed?
begintabular ll % "outer" tabular
toprule
begintabular[t]@ p5cm @ % first "inner" tabular
textbfPrimäre Quellen \
Jira \
Confluence \
E-Mail \
Nextcloud \
Rocket.Chat \
GitLab/GitHub
endtabular &
begintabular[t]@ p5cm @ % second "inner" tabular
textbfSekundäre Quellen \
exply \
Canias ERP \
Diverse Excel-Tabellen (Vertrieb, Verwaltung)
endtabular\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
1
A\
seems to be missing aftertextbfPrimäre Quellen
.
– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
add a comment |
To prevent the material in the two columns from interacting, you could place it into separate subordinated tabular
environments. In the following solution, the "outer" tabular
environment consists of two l
columns; the outer environment is needed solely for the toprule
and bottomrule
directives. The "inner" tabular
environments each contain a single p
column, which allows automatic line-breaking (if needed).
I would also omit the vertical divider line.
documentclassarticle
usepackagebooktabs
begindocument
begintable[h!]
renewcommandarraystretch1.5
centering
footnotesize % is this really needed?
begintabular ll % "outer" tabular
toprule
begintabular[t]@ p5cm @ % first "inner" tabular
textbfPrimäre Quellen \
Jira \
Confluence \
E-Mail \
Nextcloud \
Rocket.Chat \
GitLab/GitHub
endtabular &
begintabular[t]@ p5cm @ % second "inner" tabular
textbfSekundäre Quellen \
exply \
Canias ERP \
Diverse Excel-Tabellen (Vertrieb, Verwaltung)
endtabular\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
To prevent the material in the two columns from interacting, you could place it into separate subordinated tabular
environments. In the following solution, the "outer" tabular
environment consists of two l
columns; the outer environment is needed solely for the toprule
and bottomrule
directives. The "inner" tabular
environments each contain a single p
column, which allows automatic line-breaking (if needed).
I would also omit the vertical divider line.
documentclassarticle
usepackagebooktabs
begindocument
begintable[h!]
renewcommandarraystretch1.5
centering
footnotesize % is this really needed?
begintabular ll % "outer" tabular
toprule
begintabular[t]@ p5cm @ % first "inner" tabular
textbfPrimäre Quellen \
Jira \
Confluence \
E-Mail \
Nextcloud \
Rocket.Chat \
GitLab/GitHub
endtabular &
begintabular[t]@ p5cm @ % second "inner" tabular
textbfSekundäre Quellen \
exply \
Canias ERP \
Diverse Excel-Tabellen (Vertrieb, Verwaltung)
endtabular\
bottomrule
endtabular
captionPrimäre und sekundäre Quellen bei XXXXXX
labeltable:informationsquellen
endtable
enddocument
edited Aug 8 at 13:49
answered Aug 8 at 13:20
MicoMico
302k33 gold badges413 silver badges822 bronze badges
302k33 gold badges413 silver badges822 bronze badges
1
A\
seems to be missing aftertextbfPrimäre Quellen
.
– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
add a comment |
1
A\
seems to be missing aftertextbfPrimäre Quellen
.
– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
1
1
A
\
seems to be missing after textbfPrimäre Quellen
.– leandriis
Aug 8 at 13:48
A
\
seems to be missing after textbfPrimäre Quellen
.– leandriis
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
@leandriis - Thanks! Will fix right away.
– Mico
Aug 8 at 13:48
add a comment |
Here is a suggestion using two itemize
environments instead of the tabular
. If placed inside of a table
this can float, get a cpation and be referenced as usual:
documentclassarticle
usepackagebooktabs
usepackageenumitem
setlistnosep
begindocument
begintable
centering
beginminipage[t]3.5cm
textbfPrimäre Quellen
beginitemize[label=--]
item Jira
item Confluence
item E-Mail
item Nextcloud
item Rocket.Chat
item GitLab/GitHub
enditemize
endminipage
beginminipage[t]5cmraggedright
textbfSekundäre Quellen
beginitemize[label=--]
item exply
item Canias ERP
item Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
enditemize
endminipage
captionPrimäre und sekundäre Quellen bei XXXXXXlabeltable:informationsquellen
endtable
enddocument
add a comment |
Here is a suggestion using two itemize
environments instead of the tabular
. If placed inside of a table
this can float, get a cpation and be referenced as usual:
documentclassarticle
usepackagebooktabs
usepackageenumitem
setlistnosep
begindocument
begintable
centering
beginminipage[t]3.5cm
textbfPrimäre Quellen
beginitemize[label=--]
item Jira
item Confluence
item E-Mail
item Nextcloud
item Rocket.Chat
item GitLab/GitHub
enditemize
endminipage
beginminipage[t]5cmraggedright
textbfSekundäre Quellen
beginitemize[label=--]
item exply
item Canias ERP
item Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
enditemize
endminipage
captionPrimäre und sekundäre Quellen bei XXXXXXlabeltable:informationsquellen
endtable
enddocument
add a comment |
Here is a suggestion using two itemize
environments instead of the tabular
. If placed inside of a table
this can float, get a cpation and be referenced as usual:
documentclassarticle
usepackagebooktabs
usepackageenumitem
setlistnosep
begindocument
begintable
centering
beginminipage[t]3.5cm
textbfPrimäre Quellen
beginitemize[label=--]
item Jira
item Confluence
item E-Mail
item Nextcloud
item Rocket.Chat
item GitLab/GitHub
enditemize
endminipage
beginminipage[t]5cmraggedright
textbfSekundäre Quellen
beginitemize[label=--]
item exply
item Canias ERP
item Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
enditemize
endminipage
captionPrimäre und sekundäre Quellen bei XXXXXXlabeltable:informationsquellen
endtable
enddocument
Here is a suggestion using two itemize
environments instead of the tabular
. If placed inside of a table
this can float, get a cpation and be referenced as usual:
documentclassarticle
usepackagebooktabs
usepackageenumitem
setlistnosep
begindocument
begintable
centering
beginminipage[t]3.5cm
textbfPrimäre Quellen
beginitemize[label=--]
item Jira
item Confluence
item E-Mail
item Nextcloud
item Rocket.Chat
item GitLab/GitHub
enditemize
endminipage
beginminipage[t]5cmraggedright
textbfSekundäre Quellen
beginitemize[label=--]
item exply
item Canias ERP
item Diverse Excel-Tabellen (Vertrieb, Verwaltung)\
enditemize
endminipage
captionPrimäre und sekundäre Quellen bei XXXXXXlabeltable:informationsquellen
endtable
enddocument
answered Aug 8 at 14:21
leandriisleandriis
18.4k1 gold badge11 silver badges39 bronze badges
18.4k1 gold badge11 silver badges39 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f503376%2findependent-table-row-spacing%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
Than make only one cell in each column and use
par
to move text in new line or inserts empty lines between text formed paragraphs.– Zarko
Aug 8 at 12:53
Why use a table at all if the two columns are not related? Wouldn't a list like enumerate or itemize serve the same purpose without the reader wondering if there is a correlation between the columns or not? Please also note, that booktabs horizontal lines are not compatible with vertical lines (hence the small gaps in the vertical lines).
– leandriis
Aug 8 at 12:57
If you want to stay with a table, why not simply use two
l
type columns? The table should still fit into the textwidth of a standard article even without linebreaks in the cells.– leandriis
Aug 8 at 12:59
2
Off-topic but nevertheless important: the
label
directive must be placed after the associatedcaption
directive. Otherwise, cross-references to thetable
cannot be correct.– Mico
Aug 8 at 13:09
I want to use a table because a: a list is not as easy on the eyes, but hard to ignore inside a block of text and b: the table is supposed to be fairly small, floating somewhere so the reader can look it up if he wants to, but does not have to.
– Thomas Pötzsch
Aug 8 at 14:07