How can I get a table to exceed left and right margin equally without changing its font size?Center figure...
What does it mean when I add a new variable to my linear model and the R^2 stays the same?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
If nine coins are tossed, what is the probability that the number of heads is even?
The (Easy) Road to Code
Who is at the mall?
Why aren't there more gauls like Obelix?
Giving a talk in my old university, how prominently should I tell students my salary?
What is the purpose of a disclaimer like "this is not legal advice"?
Forcing Mathematica's Integrate to give more general answers
Learning to quickly identify valid fingering for piano?
Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?
Does the US political system, in principle, allow for a no-party system?
A bug in Excel? Conditional formatting for marking duplicates also highlights unique value
Why is there an extra space when I type "ls" on the Desktop?
DC input on op amp integrator
Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?
Python function to ask for a multiple-choice answer
What is brightness?
Remove object from array based on array of some property of that object
PTIJ: Mouthful of Mitzvos
What are Radio-location Services in the 1.9-2.0 MHz range?
What is better: yes / no radio, or simple checkbox?
Under what conditions would I NOT add my Proficiency Bonus to a Spell Attack Roll (or Saving Throw DC)?
Is "cogitate" an appropriate word for this?
How can I get a table to exceed left and right margin equally without changing its font size?
Center figure that is wider than textwidthChanging the font size in a tablepmatrix without changing font sizeChanging font size of chapter title without changing table of content font sizeHow to change authors font size without changing font faceFit a table without changing the font sizeChanging text font size without changing math font sizeTable width 100% and changing font sizeChanging font size inside tableMacro for changing font and its sizeHow to change font size of table entries without changing caption fontsize?
When I use adjustbox
to modify the width of a table, even the font size changes. How can I increase the table width but let it exceed both margins equally?
My MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
begin{document}
begin{table*}[htp]
begin{adjustbox}{width=1.5textwidth, center}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
newcommand{setfontsizeTable}{fontsize{9}{9} selectfont}
begin{tabularx}{1textwidth}{c ||>{hsize=0.5hsize setfontsizeTable}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & $displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustbox}
end{table*}
end{document}
tables fontsize tabularx arrays elsarticle
add a comment |
When I use adjustbox
to modify the width of a table, even the font size changes. How can I increase the table width but let it exceed both margins equally?
My MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
begin{document}
begin{table*}[htp]
begin{adjustbox}{width=1.5textwidth, center}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
newcommand{setfontsizeTable}{fontsize{9}{9} selectfont}
begin{tabularx}{1textwidth}{c ||>{hsize=0.5hsize setfontsizeTable}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & $displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustbox}
end{table*}
end{document}
tables fontsize tabularx arrays elsarticle
2
Your assertion that the default font size intable
environments is 14.9pt if theelsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using anadjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using theadjustbox
device.
– Mico
5 hours ago
1
@Mico. The misunderstanding aboutwidth
option inadjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.
– Al-Motasem Aldaoudeyeh
4 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago
add a comment |
When I use adjustbox
to modify the width of a table, even the font size changes. How can I increase the table width but let it exceed both margins equally?
My MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
begin{document}
begin{table*}[htp]
begin{adjustbox}{width=1.5textwidth, center}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
newcommand{setfontsizeTable}{fontsize{9}{9} selectfont}
begin{tabularx}{1textwidth}{c ||>{hsize=0.5hsize setfontsizeTable}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & $displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustbox}
end{table*}
end{document}
tables fontsize tabularx arrays elsarticle
When I use adjustbox
to modify the width of a table, even the font size changes. How can I increase the table width but let it exceed both margins equally?
My MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
begin{document}
begin{table*}[htp]
begin{adjustbox}{width=1.5textwidth, center}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
newcommand{setfontsizeTable}{fontsize{9}{9} selectfont}
begin{tabularx}{1textwidth}{c ||>{hsize=0.5hsize setfontsizeTable}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & $displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustbox}
end{table*}
end{document}
tables fontsize tabularx arrays elsarticle
tables fontsize tabularx arrays elsarticle
edited 5 hours ago
Al-Motasem Aldaoudeyeh
asked 5 hours ago
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,615312
1,615312
2
Your assertion that the default font size intable
environments is 14.9pt if theelsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using anadjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using theadjustbox
device.
– Mico
5 hours ago
1
@Mico. The misunderstanding aboutwidth
option inadjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.
– Al-Motasem Aldaoudeyeh
4 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago
add a comment |
2
Your assertion that the default font size intable
environments is 14.9pt if theelsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using anadjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using theadjustbox
device.
– Mico
5 hours ago
1
@Mico. The misunderstanding aboutwidth
option inadjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.
– Al-Motasem Aldaoudeyeh
4 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago
2
2
Your assertion that the default font size in
table
environments is 14.9pt if the elsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using an adjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using the adjustbox
device.– Mico
5 hours ago
Your assertion that the default font size in
table
environments is 14.9pt if the elsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using an adjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using the adjustbox
device.– Mico
5 hours ago
1
1
@Mico. The misunderstanding about
width
option in adjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.– Al-Motasem Aldaoudeyeh
4 hours ago
@Mico. The misunderstanding about
width
option in adjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.– Al-Motasem Aldaoudeyeh
4 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
You wrote,
I use
adjustbox
because I want to extend the table beyond the default margins,
For the table at hand, there is no need to make it wider than the textblock. Just issue either a small
or a footnotesize
directive. And, for sure, don't resort to the adjustbox
device.
A separate observation: you're using the fontspec
package and use the TeX Gyre Pagella
text font. To employ a compatible math font, I suggest you load the unicode-math
package (which automatically loads the fontspec
package) and issue the directive setmathfont{TeX Gyre Pagella Math}
.
And, no need to employ the C
column type for all 10 columns. In fact, you only need the C
type for two columns; for the other 8, simply use the plain c
column type.
documentclass{elsarticle}
usepackage{ragged2e}
usepackage{tabularx}
newcolumntype{C}{ >{Centeringarraybackslash }X }
renewcommand{tabularxcolumn}[1]{>{centering}m{#1}}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{amsmath,amssymb}
usepackage{unicode-math}
setmainfont{TeX Gyre Pagella}
setmathfont{TeX Gyre Pagella Math}
begin{document}
begin{table*}[htp]
setlengthtabcolsep{5pt}
setlengthextrarowheight{2pt}
footnotesize
begin{threeparttable}
caption{Determination of critical lines among RESs based on operational interaction operators}
label{table:critical_lines_w_ij_hat}
begin{tabularx}{textwidth}{@{} c | ccccc | *{2}{C} ccc @{}}
hline
adjustbox{rotate=90, valign=c}{Quadrant} &
adjustbox{rotate=90, valign=c}{POI $i$} &
adjustbox{rotate=90, valign=c}{POI $j$} &
multicolumn{3}{c|}{Other POIs}
& Critical line based on $anglebar{w}_{!ij}$ or $| bar{w}_{!ij}|$
& Actual Critical Line (based on [Eq])
& $| S_{mathit{eq},i}|$
& $mathit{SDSCR}_{i}$
& $frac{max mathit{SDSCR}_{i}}{mathrm{mean},mathit{SDSCR}_{i}}$
\
hline
III & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
IV & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
III, IVtnote{a} & 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
hline
end{tabularx}
begin{tablenotes}
item[a] Angles of $angle bar{w}_{!ij}$ exist in both quadrants.
end{tablenotes}
end{threeparttable}
end{table*}
end{document}
add a comment |
Before you begin your table use begin{adjustwidth}{-0.5<text width increase>}{0em}
. In the table preamble, use 1.<textwidth increase factor>
. For example. If you want to increase the table width by 0.3 of text width, use begin{adjustwidth}{-0.15textwidth}{0em}
and {1.3textwidth}
in tabularx
preamble.
The main purpose of using begin{adjustwidth}{0.5<text width increase>}{0em}
is to move the table to the left by an amount equal to half the increase in table width, thus ensuring that the table will exceed both margins equally.
Here is full MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
usepackage{changepage}
begin{document}
begin{table*}[htp]
begin{adjustwidth}{-0.25textwidth}{0em}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
begin{tabularx}{1.5textwidth}{c ||>{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & maxsizebox{hsize}{!}{$displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$}
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustwidth}
end{table*}
end{document}
1
If you're using theelsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.
– Mico
4 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f478238%2fhow-can-i-get-a-table-to-exceed-left-and-right-margin-equally-without-changing-i%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
You wrote,
I use
adjustbox
because I want to extend the table beyond the default margins,
For the table at hand, there is no need to make it wider than the textblock. Just issue either a small
or a footnotesize
directive. And, for sure, don't resort to the adjustbox
device.
A separate observation: you're using the fontspec
package and use the TeX Gyre Pagella
text font. To employ a compatible math font, I suggest you load the unicode-math
package (which automatically loads the fontspec
package) and issue the directive setmathfont{TeX Gyre Pagella Math}
.
And, no need to employ the C
column type for all 10 columns. In fact, you only need the C
type for two columns; for the other 8, simply use the plain c
column type.
documentclass{elsarticle}
usepackage{ragged2e}
usepackage{tabularx}
newcolumntype{C}{ >{Centeringarraybackslash }X }
renewcommand{tabularxcolumn}[1]{>{centering}m{#1}}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{amsmath,amssymb}
usepackage{unicode-math}
setmainfont{TeX Gyre Pagella}
setmathfont{TeX Gyre Pagella Math}
begin{document}
begin{table*}[htp]
setlengthtabcolsep{5pt}
setlengthextrarowheight{2pt}
footnotesize
begin{threeparttable}
caption{Determination of critical lines among RESs based on operational interaction operators}
label{table:critical_lines_w_ij_hat}
begin{tabularx}{textwidth}{@{} c | ccccc | *{2}{C} ccc @{}}
hline
adjustbox{rotate=90, valign=c}{Quadrant} &
adjustbox{rotate=90, valign=c}{POI $i$} &
adjustbox{rotate=90, valign=c}{POI $j$} &
multicolumn{3}{c|}{Other POIs}
& Critical line based on $anglebar{w}_{!ij}$ or $| bar{w}_{!ij}|$
& Actual Critical Line (based on [Eq])
& $| S_{mathit{eq},i}|$
& $mathit{SDSCR}_{i}$
& $frac{max mathit{SDSCR}_{i}}{mathrm{mean},mathit{SDSCR}_{i}}$
\
hline
III & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
IV & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
III, IVtnote{a} & 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
hline
end{tabularx}
begin{tablenotes}
item[a] Angles of $angle bar{w}_{!ij}$ exist in both quadrants.
end{tablenotes}
end{threeparttable}
end{table*}
end{document}
add a comment |
You wrote,
I use
adjustbox
because I want to extend the table beyond the default margins,
For the table at hand, there is no need to make it wider than the textblock. Just issue either a small
or a footnotesize
directive. And, for sure, don't resort to the adjustbox
device.
A separate observation: you're using the fontspec
package and use the TeX Gyre Pagella
text font. To employ a compatible math font, I suggest you load the unicode-math
package (which automatically loads the fontspec
package) and issue the directive setmathfont{TeX Gyre Pagella Math}
.
And, no need to employ the C
column type for all 10 columns. In fact, you only need the C
type for two columns; for the other 8, simply use the plain c
column type.
documentclass{elsarticle}
usepackage{ragged2e}
usepackage{tabularx}
newcolumntype{C}{ >{Centeringarraybackslash }X }
renewcommand{tabularxcolumn}[1]{>{centering}m{#1}}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{amsmath,amssymb}
usepackage{unicode-math}
setmainfont{TeX Gyre Pagella}
setmathfont{TeX Gyre Pagella Math}
begin{document}
begin{table*}[htp]
setlengthtabcolsep{5pt}
setlengthextrarowheight{2pt}
footnotesize
begin{threeparttable}
caption{Determination of critical lines among RESs based on operational interaction operators}
label{table:critical_lines_w_ij_hat}
begin{tabularx}{textwidth}{@{} c | ccccc | *{2}{C} ccc @{}}
hline
adjustbox{rotate=90, valign=c}{Quadrant} &
adjustbox{rotate=90, valign=c}{POI $i$} &
adjustbox{rotate=90, valign=c}{POI $j$} &
multicolumn{3}{c|}{Other POIs}
& Critical line based on $anglebar{w}_{!ij}$ or $| bar{w}_{!ij}|$
& Actual Critical Line (based on [Eq])
& $| S_{mathit{eq},i}|$
& $mathit{SDSCR}_{i}$
& $frac{max mathit{SDSCR}_{i}}{mathrm{mean},mathit{SDSCR}_{i}}$
\
hline
III & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
IV & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
III, IVtnote{a} & 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
hline
end{tabularx}
begin{tablenotes}
item[a] Angles of $angle bar{w}_{!ij}$ exist in both quadrants.
end{tablenotes}
end{threeparttable}
end{table*}
end{document}
add a comment |
You wrote,
I use
adjustbox
because I want to extend the table beyond the default margins,
For the table at hand, there is no need to make it wider than the textblock. Just issue either a small
or a footnotesize
directive. And, for sure, don't resort to the adjustbox
device.
A separate observation: you're using the fontspec
package and use the TeX Gyre Pagella
text font. To employ a compatible math font, I suggest you load the unicode-math
package (which automatically loads the fontspec
package) and issue the directive setmathfont{TeX Gyre Pagella Math}
.
And, no need to employ the C
column type for all 10 columns. In fact, you only need the C
type for two columns; for the other 8, simply use the plain c
column type.
documentclass{elsarticle}
usepackage{ragged2e}
usepackage{tabularx}
newcolumntype{C}{ >{Centeringarraybackslash }X }
renewcommand{tabularxcolumn}[1]{>{centering}m{#1}}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{amsmath,amssymb}
usepackage{unicode-math}
setmainfont{TeX Gyre Pagella}
setmathfont{TeX Gyre Pagella Math}
begin{document}
begin{table*}[htp]
setlengthtabcolsep{5pt}
setlengthextrarowheight{2pt}
footnotesize
begin{threeparttable}
caption{Determination of critical lines among RESs based on operational interaction operators}
label{table:critical_lines_w_ij_hat}
begin{tabularx}{textwidth}{@{} c | ccccc | *{2}{C} ccc @{}}
hline
adjustbox{rotate=90, valign=c}{Quadrant} &
adjustbox{rotate=90, valign=c}{POI $i$} &
adjustbox{rotate=90, valign=c}{POI $j$} &
multicolumn{3}{c|}{Other POIs}
& Critical line based on $anglebar{w}_{!ij}$ or $| bar{w}_{!ij}|$
& Actual Critical Line (based on [Eq])
& $| S_{mathit{eq},i}|$
& $mathit{SDSCR}_{i}$
& $frac{max mathit{SDSCR}_{i}}{mathrm{mean},mathit{SDSCR}_{i}}$
\
hline
III & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
IV & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
III, IVtnote{a} & 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
hline
end{tabularx}
begin{tablenotes}
item[a] Angles of $angle bar{w}_{!ij}$ exist in both quadrants.
end{tablenotes}
end{threeparttable}
end{table*}
end{document}
You wrote,
I use
adjustbox
because I want to extend the table beyond the default margins,
For the table at hand, there is no need to make it wider than the textblock. Just issue either a small
or a footnotesize
directive. And, for sure, don't resort to the adjustbox
device.
A separate observation: you're using the fontspec
package and use the TeX Gyre Pagella
text font. To employ a compatible math font, I suggest you load the unicode-math
package (which automatically loads the fontspec
package) and issue the directive setmathfont{TeX Gyre Pagella Math}
.
And, no need to employ the C
column type for all 10 columns. In fact, you only need the C
type for two columns; for the other 8, simply use the plain c
column type.
documentclass{elsarticle}
usepackage{ragged2e}
usepackage{tabularx}
newcolumntype{C}{ >{Centeringarraybackslash }X }
renewcommand{tabularxcolumn}[1]{>{centering}m{#1}}
usepackage[flushleft]{threeparttable}
usepackage{adjustbox}
usepackage{amsmath,amssymb}
usepackage{unicode-math}
setmainfont{TeX Gyre Pagella}
setmathfont{TeX Gyre Pagella Math}
begin{document}
begin{table*}[htp]
setlengthtabcolsep{5pt}
setlengthextrarowheight{2pt}
footnotesize
begin{threeparttable}
caption{Determination of critical lines among RESs based on operational interaction operators}
label{table:critical_lines_w_ij_hat}
begin{tabularx}{textwidth}{@{} c | ccccc | *{2}{C} ccc @{}}
hline
adjustbox{rotate=90, valign=c}{Quadrant} &
adjustbox{rotate=90, valign=c}{POI $i$} &
adjustbox{rotate=90, valign=c}{POI $j$} &
multicolumn{3}{c|}{Other POIs}
& Critical line based on $anglebar{w}_{!ij}$ or $| bar{w}_{!ij}|$
& Actual Critical Line (based on [Eq])
& $| S_{mathit{eq},i}|$
& $mathit{SDSCR}_{i}$
& $frac{max mathit{SDSCR}_{i}}{mathrm{mean},mathit{SDSCR}_{i}}$
\
hline
III & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
IV & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
III, IVtnote{a} & 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
hline
end{tabularx}
begin{tablenotes}
item[a] Angles of $angle bar{w}_{!ij}$ exist in both quadrants.
end{tablenotes}
end{threeparttable}
end{table*}
end{document}
answered 4 hours ago
MicoMico
282k31385774
282k31385774
add a comment |
add a comment |
Before you begin your table use begin{adjustwidth}{-0.5<text width increase>}{0em}
. In the table preamble, use 1.<textwidth increase factor>
. For example. If you want to increase the table width by 0.3 of text width, use begin{adjustwidth}{-0.15textwidth}{0em}
and {1.3textwidth}
in tabularx
preamble.
The main purpose of using begin{adjustwidth}{0.5<text width increase>}{0em}
is to move the table to the left by an amount equal to half the increase in table width, thus ensuring that the table will exceed both margins equally.
Here is full MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
usepackage{changepage}
begin{document}
begin{table*}[htp]
begin{adjustwidth}{-0.25textwidth}{0em}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
begin{tabularx}{1.5textwidth}{c ||>{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & maxsizebox{hsize}{!}{$displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$}
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustwidth}
end{table*}
end{document}
1
If you're using theelsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.
– Mico
4 hours ago
add a comment |
Before you begin your table use begin{adjustwidth}{-0.5<text width increase>}{0em}
. In the table preamble, use 1.<textwidth increase factor>
. For example. If you want to increase the table width by 0.3 of text width, use begin{adjustwidth}{-0.15textwidth}{0em}
and {1.3textwidth}
in tabularx
preamble.
The main purpose of using begin{adjustwidth}{0.5<text width increase>}{0em}
is to move the table to the left by an amount equal to half the increase in table width, thus ensuring that the table will exceed both margins equally.
Here is full MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
usepackage{changepage}
begin{document}
begin{table*}[htp]
begin{adjustwidth}{-0.25textwidth}{0em}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
begin{tabularx}{1.5textwidth}{c ||>{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & maxsizebox{hsize}{!}{$displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$}
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustwidth}
end{table*}
end{document}
1
If you're using theelsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.
– Mico
4 hours ago
add a comment |
Before you begin your table use begin{adjustwidth}{-0.5<text width increase>}{0em}
. In the table preamble, use 1.<textwidth increase factor>
. For example. If you want to increase the table width by 0.3 of text width, use begin{adjustwidth}{-0.15textwidth}{0em}
and {1.3textwidth}
in tabularx
preamble.
The main purpose of using begin{adjustwidth}{0.5<text width increase>}{0em}
is to move the table to the left by an amount equal to half the increase in table width, thus ensuring that the table will exceed both margins equally.
Here is full MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
usepackage{changepage}
begin{document}
begin{table*}[htp]
begin{adjustwidth}{-0.25textwidth}{0em}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
begin{tabularx}{1.5textwidth}{c ||>{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & maxsizebox{hsize}{!}{$displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$}
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustwidth}
end{table*}
end{document}
Before you begin your table use begin{adjustwidth}{-0.5<text width increase>}{0em}
. In the table preamble, use 1.<textwidth increase factor>
. For example. If you want to increase the table width by 0.3 of text width, use begin{adjustwidth}{-0.15textwidth}{0em}
and {1.3textwidth}
in tabularx
preamble.
The main purpose of using begin{adjustwidth}{0.5<text width increase>}{0em}
is to move the table to the left by an amount equal to half the increase in table width, thus ensuring that the table will exceed both margins equally.
Here is full MWE
documentclass{elsarticle}
usepackage{ragged2e}
% ========== Caption packages ==========
usepackage{caption}
% ========== Table packages ==========
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{L}{ >{arraybackslash RaggedRight}X }
newcolumntype{C}{ >{arraybackslash Centering}X }
newcolumntype{R}{ >{arraybackslash RaggedLeft}X }
newcolumntype{J}{ >{arraybackslashjustifying} X }
renewcommand{tabularxcolumn}[1]{ >{centering}m{#1} }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage[flushleft]{threeparttable}
% ========== Figures and tables locations packages ==========
usepackage{float}
usepackage{adjustbox}
% ========== Font encoding packages ==========
usepackage[T1]{fontenc}
usepackage{fontspec}
% BEGIN_FOLD
setmainfont{TeX Gyre Pagella}
setmonofont{Courier}
newcommand{textffam}[2]{{fontencoding{T1} fontfamily{#1} selectfont#2}}
% END_FOLD
% ========== Equations and math packages ==========
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{stackengine}
usepackage{changepage}
begin{document}
begin{table*}[htp]
begin{adjustwidth}{-0.25textwidth}{0em}
begin{threeparttable}
% Table options
% Caption
caption{Determination of Critical Lines Among RESs Based on Operational Interaction Operators}
label{table:critical_lines_w_ij_hat}
% Center the table
centering
begin{tabularx}{1.5textwidth}{c ||>{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C >{hsize=0.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C |>{hsize=1.5hsize}C}
toprule
adjustbox{rotate=90, valign=c}{Quadrant} & adjustbox{rotate=90, valign=c}{POI $i$} & adjustbox{rotate=90, valign=c}{POI $j$} & multicolumn{3}{c|}{Other POIs} &
Critical Line Based on $displaystyle angle bar{w}_{ij}$ or $displaystyle left| bar{w}_{ij} right|$ & Actual Critical Line (based on [Eq]) & $displaystyle left| S_{eq, thinspace i} right|$ & $displaystyle mathit{SDSCR}_{i}$ & maxsizebox{hsize}{!}{$displaystyle frac{mathit{Max} medspace mathit{SDSCR}_{i}}{textit{Mean} medspace mathit{SDSCR}_{i}}$}
\
Xhline{0.25mm}
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{III} & 101 & 64 & 96 & 106 & 37 & 86-87 & 86-87 & 4.38 & 2.02 & 1.41
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{IV} & 79 & 96 & 9 & 81 & 33 & 9-10 & 9-10 & 3.40 & 5.13 & 1.28
\
scalelinespace{1.3} adjustbox{rotate=90, valign=c}{
Shortstack[c]{{III} {IV textsuperscript{a}}}
}
& 97 & 60 & 39 & 37 & 86 & 43-44 & 43-44 & 3.98 & 3.18 & 1.07
\
bottomrule
end{tabularx}
begin{tablenotes}
item[a] angles of $displaystyle angle bar{w}_{ij}$ exist in both quadrants
end{tablenotes}
end{threeparttable}
end{adjustwidth}
end{table*}
end{document}
edited 4 hours ago
answered 4 hours ago
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,615312
1,615312
1
If you're using theelsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.
– Mico
4 hours ago
add a comment |
1
If you're using theelsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.
– Mico
4 hours ago
1
1
If you're using the
elsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.– Mico
4 hours ago
If you're using the
elsarticle
document class for your paper because you intend to submit the paper to an Elsevier-stable journal, it's almost certainly a very bad idea to make the table 50% wider than the text block. For instance, the journal's editorial staff will quite likely inform you that it cannot publish the paper unless you scale down the width of the table.– Mico
4 hours ago
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%2f478238%2fhow-can-i-get-a-table-to-exceed-left-and-right-margin-equally-without-changing-i%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
Your assertion that the default font size in
table
environments is 14.9pt if theelsarticle
document class is in use is false. The reason the font size is so large is because you're ill-advisedly using anadjustbox
environment, to "blow up" the tabular material so that it occupies the full width of the text block. An obvious solution is to cease using theadjustbox
device.– Mico
5 hours ago
1
@Mico. The misunderstanding about
width
option inadjustbox
package is what confused me. It basically re-scales all of its contents, but I was just looking to increase table width but let the table exceed both margins equally. Thanks a lot for your note. I learnt a lot from you in this TeX Stack Exchange.– Al-Motasem Aldaoudeyeh
4 hours ago
The usual trick is to use makebox[textwidth]{...} to overlap both margins equally. See tex.stackexchange.com/questions/16582/… for example.
– John Kormylo
3 hours ago