Longtable of size textwidth exceeds right marginUse column-separator & (ampersand) inside newenvironmentInitial page numbers wrongTabular and grid typesettingMultiple questions regarding formatting tablestabu package - gaps in vertical linesExtra right margin depending on textwidthTable width exceeds textwidth, align to marginHeader on odd pagesRight margin exceeds“Undefined control sequence” Regression table from Stata
On the sensitivity conjecture?
Would it take any sort of amendment to make DC a state?
How to foreshadow to avoid a 'deus ex machina'-construction
Best Ergonomic Design for a handheld ranged weapon
Can machine learning learn a function like finding maximum from a list?
PCB design using code instead of clicking a mouse?
Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?
Can I attune a Circlet of Human Perfection to my animated skeletons to allow them to blend in and speak?
Why didn't Stark and Nebula use jump points with their ship to go back to Earth?
Reading electrical clamp tester higher voltage/amp 400A
Why would an invisible personal shield be necessary?
Why put copper in between battery contacts and clamps?
What is a good example for artistic ND filter applications?
"DDoouubbllee ssppeeaakk!!"
Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
Why does calling cout.operator<<(const char*) print the address instead of the character string?
Why did some Apollo missions carry a grenade launcher?
What clothes would flying-people wear?
Boots or trail runners with reference to blisters?
Did Vladimir Lenin have a cat?
How to efficiently shred a lot of cabbage?
How would a lunar colony attack Earth?
What force enables us to walk? Friction or normal reaction?
Circle symbol compatible with square and triangle
Longtable of size textwidth exceeds right margin
Use column-separator & (ampersand) inside newenvironmentInitial page numbers wrongTabular and grid typesettingMultiple questions regarding formatting tablestabu package - gaps in vertical linesExtra right margin depending on textwidthTable width exceeds textwidth, align to marginHeader on odd pagesRight margin exceeds“Undefined control sequence” Regression table from Stata
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I try to create a table with the longtable package that fits into the whole text width available. Here's my code:
documentclassarticle
usepackagelongtable
usepackageamsmath
titleRaccolta delle formule
author
date
begindocument
maketitle
beginlongtable p.33columnwidth
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi &
beginalign*
(a+b)(c+d)&=a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endalign*
&
beginalign*
(2x+3)(3y-5)&=6xy-10x+9y-15
endalign*
\
endlongtable
enddocument
The result is, that the table exceeds the right margin (see picture). What is wrong with the code?
tables margins
add a comment |
I try to create a table with the longtable package that fits into the whole text width available. Here's my code:
documentclassarticle
usepackagelongtable
usepackageamsmath
titleRaccolta delle formule
author
date
begindocument
maketitle
beginlongtable p.33columnwidth
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi &
beginalign*
(a+b)(c+d)&=a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endalign*
&
beginalign*
(2x+3)(3y-5)&=6xy-10x+9y-15
endalign*
\
endlongtable
enddocument
The result is, that the table exceeds the right margin (see picture). What is wrong with the code?
tables margins
1
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
To make your table column narrow enough to make the table fit inot the textwidth, you can add thecalc
package to your preamble and replace all occurences of.33columnwidth
with.33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.
– leandriis
Jul 21 at 9:07
You can use packagexltabular
and the environment of the same name and the column specifierX
– Red-Cloud
Jul 21 at 9:26
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47
add a comment |
I try to create a table with the longtable package that fits into the whole text width available. Here's my code:
documentclassarticle
usepackagelongtable
usepackageamsmath
titleRaccolta delle formule
author
date
begindocument
maketitle
beginlongtable p.33columnwidth
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi &
beginalign*
(a+b)(c+d)&=a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endalign*
&
beginalign*
(2x+3)(3y-5)&=6xy-10x+9y-15
endalign*
\
endlongtable
enddocument
The result is, that the table exceeds the right margin (see picture). What is wrong with the code?
tables margins
I try to create a table with the longtable package that fits into the whole text width available. Here's my code:
documentclassarticle
usepackagelongtable
usepackageamsmath
titleRaccolta delle formule
author
date
begindocument
maketitle
beginlongtable p.33columnwidth
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi &
beginalign*
(a+b)(c+d)&=a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endalign*
&
beginalign*
(2x+3)(3y-5)&=6xy-10x+9y-15
endalign*
\
endlongtable
enddocument
The result is, that the table exceeds the right margin (see picture). What is wrong with the code?
tables margins
tables margins
asked Jul 21 at 8:51
Jörg KrauseJörg Krause
433 bronze badges
433 bronze badges
1
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
To make your table column narrow enough to make the table fit inot the textwidth, you can add thecalc
package to your preamble and replace all occurences of.33columnwidth
with.33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.
– leandriis
Jul 21 at 9:07
You can use packagexltabular
and the environment of the same name and the column specifierX
– Red-Cloud
Jul 21 at 9:26
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47
add a comment |
1
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
To make your table column narrow enough to make the table fit inot the textwidth, you can add thecalc
package to your preamble and replace all occurences of.33columnwidth
with.33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.
– leandriis
Jul 21 at 9:07
You can use packagexltabular
and the environment of the same name and the column specifierX
– Red-Cloud
Jul 21 at 9:26
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47
1
1
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
To make your table column narrow enough to make the table fit inot the textwidth, you can add the
calc
package to your preamble and replace all occurences of .33columnwidth
with .33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.– leandriis
Jul 21 at 9:07
To make your table column narrow enough to make the table fit inot the textwidth, you can add the
calc
package to your preamble and replace all occurences of .33columnwidth
with .33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.– leandriis
Jul 21 at 9:07
You can use package
xltabular
and the environment of the same name and the column specifier X
– Red-Cloud
Jul 21 at 9:26
You can use package
xltabular
and the environment of the same name and the column specifier X
– Red-Cloud
Jul 21 at 9:26
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47
add a comment |
3 Answers
3
active
oldest
votes
Here is a possible solution, using the xltabular
environment, which brings the functionalities of longtable
to tabularx
, playing with the value of the inter-column spacing, changing the alignment point:
documentclassarticle
usepackageshowframe
renewcommandShowFrameLinethickness0.3pt
usepackagelongtable
usepackagexltabular
usepackagemathtools
titleRaccolta delle formule
authorGeppetto
date
begindocument
maketitle
setlengthtabcolsep4pt
setlengthextrarowheight4pt
beginxltabularlinewidthl
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi
& $ beginaligned[t]
(a&+b)(c+d) \ & =a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endaligned $
& $beginaligned[t]
&(2x +3)(3y-5)\ & =6xy-10x+9y-15
endaligned$ \
endxltabular
enddocument
add a comment |
I found the problem: the formulas in the columns are too wide and latex has expanded the column sizes.
EDIT
LaTeX does nothing on it own, it is you that did not take into consideration what a tabular consist of. Try the following preamble in addition to narrow you formulas:
beginlongtable
pdimexpr(columnwidth)*33/100-tabcolsep-(2arrayrulewidth/3)relax
@
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least twotabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (twoarrayrulewidth
s).
– Sveinung
Jul 21 at 10:59
add a comment |
I recommend (2011-2019) which also combines tabu
longtable
, tabularx
, and other tabular functionalities. The same commands as above apply with only a change in the preamble:
usepackagetabu
begintabu to linewidthl
...
endtabu
Edit: tabu
now releases emergency bugfixes only and has had problems with longtable and colors and so I do not recommend it for these purposes.
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
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%2f500814%2flongtable-of-size-textwidth-exceeds-right-margin%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a possible solution, using the xltabular
environment, which brings the functionalities of longtable
to tabularx
, playing with the value of the inter-column spacing, changing the alignment point:
documentclassarticle
usepackageshowframe
renewcommandShowFrameLinethickness0.3pt
usepackagelongtable
usepackagexltabular
usepackagemathtools
titleRaccolta delle formule
authorGeppetto
date
begindocument
maketitle
setlengthtabcolsep4pt
setlengthextrarowheight4pt
beginxltabularlinewidthl
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi
& $ beginaligned[t]
(a&+b)(c+d) \ & =a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endaligned $
& $beginaligned[t]
&(2x +3)(3y-5)\ & =6xy-10x+9y-15
endaligned$ \
endxltabular
enddocument
add a comment |
Here is a possible solution, using the xltabular
environment, which brings the functionalities of longtable
to tabularx
, playing with the value of the inter-column spacing, changing the alignment point:
documentclassarticle
usepackageshowframe
renewcommandShowFrameLinethickness0.3pt
usepackagelongtable
usepackagexltabular
usepackagemathtools
titleRaccolta delle formule
authorGeppetto
date
begindocument
maketitle
setlengthtabcolsep4pt
setlengthextrarowheight4pt
beginxltabularlinewidthl
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi
& $ beginaligned[t]
(a&+b)(c+d) \ & =a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endaligned $
& $beginaligned[t]
&(2x +3)(3y-5)\ & =6xy-10x+9y-15
endaligned$ \
endxltabular
enddocument
add a comment |
Here is a possible solution, using the xltabular
environment, which brings the functionalities of longtable
to tabularx
, playing with the value of the inter-column spacing, changing the alignment point:
documentclassarticle
usepackageshowframe
renewcommandShowFrameLinethickness0.3pt
usepackagelongtable
usepackagexltabular
usepackagemathtools
titleRaccolta delle formule
authorGeppetto
date
begindocument
maketitle
setlengthtabcolsep4pt
setlengthextrarowheight4pt
beginxltabularlinewidthl
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi
& $ beginaligned[t]
(a&+b)(c+d) \ & =a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endaligned $
& $beginaligned[t]
&(2x +3)(3y-5)\ & =6xy-10x+9y-15
endaligned$ \
endxltabular
enddocument
Here is a possible solution, using the xltabular
environment, which brings the functionalities of longtable
to tabularx
, playing with the value of the inter-column spacing, changing the alignment point:
documentclassarticle
usepackageshowframe
renewcommandShowFrameLinethickness0.3pt
usepackagelongtable
usepackagexltabular
usepackagemathtools
titleRaccolta delle formule
authorGeppetto
date
begindocument
maketitle
setlengthtabcolsep4pt
setlengthextrarowheight4pt
beginxltabularlinewidthl
Large Descrizione & Large Formula & Large Esempio\
hline
endhead
Prodotto di due polinomi
& $ beginaligned[t]
(a&+b)(c+d) \ & =a(c+d)+b(c+d)\
&=ac+ad+bc+bd
endaligned $
& $beginaligned[t]
&(2x +3)(3y-5)\ & =6xy-10x+9y-15
endaligned$ \
endxltabular
enddocument
edited Jul 21 at 10:17
answered Jul 21 at 10:10
BernardBernard
186k7 gold badges84 silver badges220 bronze badges
186k7 gold badges84 silver badges220 bronze badges
add a comment |
add a comment |
I found the problem: the formulas in the columns are too wide and latex has expanded the column sizes.
EDIT
LaTeX does nothing on it own, it is you that did not take into consideration what a tabular consist of. Try the following preamble in addition to narrow you formulas:
beginlongtable
pdimexpr(columnwidth)*33/100-tabcolsep-(2arrayrulewidth/3)relax
@
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least twotabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (twoarrayrulewidth
s).
– Sveinung
Jul 21 at 10:59
add a comment |
I found the problem: the formulas in the columns are too wide and latex has expanded the column sizes.
EDIT
LaTeX does nothing on it own, it is you that did not take into consideration what a tabular consist of. Try the following preamble in addition to narrow you formulas:
beginlongtable
pdimexpr(columnwidth)*33/100-tabcolsep-(2arrayrulewidth/3)relax
@
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least twotabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (twoarrayrulewidth
s).
– Sveinung
Jul 21 at 10:59
add a comment |
I found the problem: the formulas in the columns are too wide and latex has expanded the column sizes.
EDIT
LaTeX does nothing on it own, it is you that did not take into consideration what a tabular consist of. Try the following preamble in addition to narrow you formulas:
beginlongtable
pdimexpr(columnwidth)*33/100-tabcolsep-(2arrayrulewidth/3)relax
@
I found the problem: the formulas in the columns are too wide and latex has expanded the column sizes.
EDIT
LaTeX does nothing on it own, it is you that did not take into consideration what a tabular consist of. Try the following preamble in addition to narrow you formulas:
beginlongtable
pdimexpr(columnwidth)*33/100-tabcolsep-(2arrayrulewidth/3)relax
@
edited Jul 21 at 11:55
Sveinung
13k2 gold badges35 silver badges61 bronze badges
13k2 gold badges35 silver badges61 bronze badges
answered Jul 21 at 9:03
Jörg KrauseJörg Krause
433 bronze badges
433 bronze badges
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least twotabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (twoarrayrulewidth
s).
– Sveinung
Jul 21 at 10:59
add a comment |
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least twotabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (twoarrayrulewidth
s).
– Sveinung
Jul 21 at 10:59
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least two
tabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (two arrayrulewidth
s).– Sveinung
Jul 21 at 10:59
Read leandriis comment, where the two problems are described, too wide formulas and wrong calculation of column widths. You should also subtract at least two
tabcolsep
s from each of the columns. Then it will only be 0.8 pt too wide (two arrayrulewidth
s).– Sveinung
Jul 21 at 10:59
add a comment |
I recommend (2011-2019) which also combines tabu
longtable
, tabularx
, and other tabular functionalities. The same commands as above apply with only a change in the preamble:
usepackagetabu
begintabu to linewidthl
...
endtabu
Edit: tabu
now releases emergency bugfixes only and has had problems with longtable and colors and so I do not recommend it for these purposes.
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
add a comment |
I recommend (2011-2019) which also combines tabu
longtable
, tabularx
, and other tabular functionalities. The same commands as above apply with only a change in the preamble:
usepackagetabu
begintabu to linewidthl
...
endtabu
Edit: tabu
now releases emergency bugfixes only and has had problems with longtable and colors and so I do not recommend it for these purposes.
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
add a comment |
I recommend (2011-2019) which also combines tabu
longtable
, tabularx
, and other tabular functionalities. The same commands as above apply with only a change in the preamble:
usepackagetabu
begintabu to linewidthl
...
endtabu
Edit: tabu
now releases emergency bugfixes only and has had problems with longtable and colors and so I do not recommend it for these purposes.
I recommend (2011-2019) which also combines tabu
longtable
, tabularx
, and other tabular functionalities. The same commands as above apply with only a change in the preamble:
usepackagetabu
begintabu to linewidthl
...
endtabu
Edit: tabu
now releases emergency bugfixes only and has had problems with longtable and colors and so I do not recommend it for these purposes.
edited Jul 23 at 14:45
answered Jul 22 at 11:58
KompootorKompootor
12 bronze badges
12 bronze badges
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
add a comment |
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
From the readme: "The package is not being actively maintained however any major required fixes may be reported to the repository and volunteers there (currently members of the LaTeX3 Team) will attempt to update the package with any fixes required." The point is that they are fixing breaks as much as possible now. Granted it's patching a leaky ship, but for personal work and one-time compilations I think it's fair to offer the suggestion. But I'll concede that in most cases -- especially longtables and colors -- it should not be recommended -- so I withdraw my suggestion here.
– Kompootor
Jul 23 at 14:05
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%2f500814%2flongtable-of-size-textwidth-exceeds-right-margin%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
1
You are forgetting the space before and between the columns and the rule (in the sum 6*tabcolsep + 2*arrayrulewidth).
– Ulrike Fischer
Jul 21 at 9:03
To make your table column narrow enough to make the table fit inot the textwidth, you can add the
calc
package to your preamble and replace all occurences of.33columnwidth
with.33columnwidth-2tabcolsep
. Apart from that, and as you have already noticed, your equations are too wide to fit into the table columns.– leandriis
Jul 21 at 9:07
You can use package
xltabular
and the environment of the same name and the column specifierX
– Red-Cloud
Jul 21 at 9:26
@Red-Cloud: While I generally like this suggestion as it is more automatic and convenient than manually calculating the required column widths this will not solve the problem of the too wide equations.
– leandriis
Jul 21 at 9:29
Will all first column cells be one-lined?
– Bernard
Jul 21 at 9:47