Align start of table text with main textUse column-separator & (ampersand) inside newenvironmentHow to...
RG-213 Cable with electric strained wire as metallic shield of Coaxial cable
How much of data wrangling is a data scientist's job?
How can saying a song's name be a copyright violation?
What killed these X2 caps?
Blender 2.8 I can't see vertices, edges or faces in edit mode
Is it unprofessional to ask if a job posting on GlassDoor is real?
In a Spin are Both Wings Stalled?
Can I use a neutral wire from another outlet to repair a broken neutral?
Why does Arabsat 6A need a Falcon Heavy to launch
Etiquette around loan refinance - decision is going to cost first broker a lot of money
Why doesn't H₄O²⁺ exist?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
What is the word for reserving something for yourself before others do?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Twin primes whose sum is a cube
Why are electrically insulating heatsinks so rare? Is it just cost?
How to say in German "enjoying home comforts"
What exploit are these user agents trying to use?
Were any external disk drives stacked vertically?
Why is Collection not simply treated as Collection<?>
How could indestructible materials be used in power generation?
Why is the 'in' operator throwing an error with a string literal instead of logging false?
Theorems that impeded progress
Is it inappropriate for a student to attend their mentor's dissertation defense?
Align start of table text with main text
Use column-separator & (ampersand) inside newenvironmentHow to format table with long column head entries?Know the cell width with tabular* or include a paragraph box without specifying its widthTabular and grid typesettingVertical alignment in a tabular environment with asymptote imageMaking latex table aligned with exterior article column text (on the left side)“Undefined control sequence” Regression table from StataCan't get tables to align with each other or text widthHow to place the figure caption to the left/right? Not aligning, but moving itA combination of an itemized list and a table
Consider this example
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
end{document}
It has the output:

I would like to align the start of the text in table with the beginning of main text.
in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.
What would be a better solution?
tables alignment
add a comment |
Consider this example
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
end{document}
It has the output:

I would like to align the start of the text in table with the beginning of main text.
in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.
What would be a better solution?
tables alignment
2
begin{tabular}{@{}ll}will remove thetabcolsepfrom the beginning of the first column only.
– Phelype Oleinik
5 hours ago
add a comment |
Consider this example
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
end{document}
It has the output:

I would like to align the start of the text in table with the beginning of main text.
in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.
What would be a better solution?
tables alignment
Consider this example
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
end{document}
It has the output:

I would like to align the start of the text in table with the beginning of main text.
in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.
What would be a better solution?
tables alignment
tables alignment
asked 5 hours ago
ViestursViesturs
1,88241127
1,88241127
2
begin{tabular}{@{}ll}will remove thetabcolsepfrom the beginning of the first column only.
– Phelype Oleinik
5 hours ago
add a comment |
2
begin{tabular}{@{}ll}will remove thetabcolsepfrom the beginning of the first column only.
– Phelype Oleinik
5 hours ago
2
2
begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.– Phelype Oleinik
5 hours ago
begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.– Phelype Oleinik
5 hours ago
add a comment |
2 Answers
2
active
oldest
votes
To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):
In your document:
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
noindent
begin{tabular}{@{}ll}
A & B
end{tabular}
end{document}
add a comment |
Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.
documentclass{article}
usepackage{lipsum,tabstackengine}
strutlongstacks{T}
begin{document}
noindentlipsum[1]
noindent
tabularLongunderstack{ll}{ Aa & B\C & Dd}
noindent
setstacktabulargap{2em}%
tabularLongunderstack{ll}{ Aa & B\C & Dd}
end{document}

add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f483232%2falign-start-of-table-text-with-main-text%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
To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):
In your document:
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
noindent
begin{tabular}{@{}ll}
A & B
end{tabular}
end{document}
add a comment |
To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):
In your document:
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
noindent
begin{tabular}{@{}ll}
A & B
end{tabular}
end{document}
add a comment |
To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):
In your document:
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
noindent
begin{tabular}{@{}ll}
A & B
end{tabular}
end{document}
To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):
In your document:
documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]
noindent
begin{tabular}{ll}
A & B
end{tabular}
{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}
noindent
begin{tabular}{@{}ll}
A & B
end{tabular}
end{document}
answered 5 hours ago
Phelype OleinikPhelype Oleinik
24.8k54689
24.8k54689
add a comment |
add a comment |
Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.
documentclass{article}
usepackage{lipsum,tabstackengine}
strutlongstacks{T}
begin{document}
noindentlipsum[1]
noindent
tabularLongunderstack{ll}{ Aa & B\C & Dd}
noindent
setstacktabulargap{2em}%
tabularLongunderstack{ll}{ Aa & B\C & Dd}
end{document}

add a comment |
Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.
documentclass{article}
usepackage{lipsum,tabstackengine}
strutlongstacks{T}
begin{document}
noindentlipsum[1]
noindent
tabularLongunderstack{ll}{ Aa & B\C & Dd}
noindent
setstacktabulargap{2em}%
tabularLongunderstack{ll}{ Aa & B\C & Dd}
end{document}

add a comment |
Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.
documentclass{article}
usepackage{lipsum,tabstackengine}
strutlongstacks{T}
begin{document}
noindentlipsum[1]
noindent
tabularLongunderstack{ll}{ Aa & B\C & Dd}
noindent
setstacktabulargap{2em}%
tabularLongunderstack{ll}{ Aa & B\C & Dd}
end{document}

Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.
documentclass{article}
usepackage{lipsum,tabstackengine}
strutlongstacks{T}
begin{document}
noindentlipsum[1]
noindent
tabularLongunderstack{ll}{ Aa & B\C & Dd}
noindent
setstacktabulargap{2em}%
tabularLongunderstack{ll}{ Aa & B\C & Dd}
end{document}

answered 5 hours ago
Steven B. SegletesSteven B. Segletes
161k9205415
161k9205415
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%2f483232%2falign-start-of-table-text-with-main-text%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


2
begin{tabular}{@{}ll}will remove thetabcolsepfrom the beginning of the first column only.– Phelype Oleinik
5 hours ago