Table formatting with multicolumntable header problems with multicolumnTable width with multicolumnmulticolumn tableMulticolumn table with different alignmentsTable centering with multicolumnProblem with table and multicolumndifficulty formatting with multirow and multicolumnlatex multicolumn formatting errorDrawing table multicolumn in LatexTable: problem with multicolumn
Generating numbers with cubes
Writing about real people - not giving offence
Bothered by watching coworkers slacking off
What's the correct way to determine turn order in this situation?
Where does the image of a data connector as a sharp metal spike originate from?
As an interviewer, how to conduct interviews with candidates you already know will be rejected?
Is there a pattern for handling conflicting function parameters?
Single tx included in two different blocks
How does case-insensitive collation work?
Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?
Anonymous reviewer disclosed his identity. Should I thank him by name?
Quote to show students don't have to fear making mistakes
Why does the Pilatus PC-24 have such a large "Wing Support"?
Realistically, how much do you need to start investing?
Check if number is in list of numbers
How to plausibly write a character with a hidden skill
Is there a way to double indent equations
Canteen Cutlery Issue
Why is ECB+CTR not a thing?
Can Fabled Passage generate two mana with Amulet of Vigor?
What are one's options when facing religious discrimination at the airport?
What makes a character irredeemable?
Duck, duck, gone!
Why is music is taught by reading sheet music?
Table formatting with multicolumn
table header problems with multicolumnTable width with multicolumnmulticolumn tableMulticolumn table with different alignmentsTable centering with multicolumnProblem with table and multicolumndifficulty formatting with multirow and multicolumnlatex multicolumn formatting errorDrawing table multicolumn in LatexTable: problem with multicolumn
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I am struggling with multicolumn. What I want is equal spacing between the three columns. Without multicolumn, there is not enough space because of the Panel rows. With multicolumn, it just Looks bad. Does anyone know how I could handle this? I guess the first column just has to move a bit to the right that the table Looks at least decent...
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
usepackageapacite
usepackagemakecell
usepackageafterpage
usepackagedblfloatfix
usepackage[referable]threeparttablex
usepackage[paper=portrait,pagesize]typearea
usepackagemleftright
usepackagelscape
usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackagefloat, afterpage, rotating, graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, epstopdf,pgfplots
usepackagelongtable, booktabs, tabularx
usepackagefancyvrb, moreverb, relsize
usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, amsfonts, amsthm, bm
usepackagemathtools
DeclareMathOperator*argminarg,min
DeclareMathOperator*argmaxarg,max
usepackage[labelfont=bf, skip=5pt]caption
usepackagemdwlist
usepackagetabularx, booktabs
newcolumntypeC>centeringarraybackslashX
usepackagexfrac
usepackagesetspace,geometry
usepackagexcolor
usepackagelmodern
usepackageupgreek
usepackageafterpage
usepackagewrapfig
usepackagepdflscape
usepackagemultirow, booktabs, makecell, caption
usepackagefancyhdr
usepackage[toc]glossaries
usepackagesubcaption
usepackagelipsum
usepackageamsmath
usepackageamssymb
usepackageeurosym
usepackageamsfonts
usepackagebooktabs
usepackageabstract
usepackagedcolumn
usepackagegraphicx
usepackage[hyphens]url
usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib %sort&compress orders in text citation automatically
usepackagepgfplots
usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[export]adjustbox
usepackageetoolbox
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc %footnotes always appear on bottom and not end of text on single page
geometrya4paper, top=30mm, left=30mm, right=30mm, bottom=30mm,headsep=10mm, footskip=12mm
%try to prevent widows and orphans (single lines on top/bottom of page)
widowpenalty10000
clubpenalty10000
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
itemhspace-2.5ptnoindenttextitNote: The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
multicolumn
add a comment
|
I am struggling with multicolumn. What I want is equal spacing between the three columns. Without multicolumn, there is not enough space because of the Panel rows. With multicolumn, it just Looks bad. Does anyone know how I could handle this? I guess the first column just has to move a bit to the right that the table Looks at least decent...
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
usepackageapacite
usepackagemakecell
usepackageafterpage
usepackagedblfloatfix
usepackage[referable]threeparttablex
usepackage[paper=portrait,pagesize]typearea
usepackagemleftright
usepackagelscape
usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackagefloat, afterpage, rotating, graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, epstopdf,pgfplots
usepackagelongtable, booktabs, tabularx
usepackagefancyvrb, moreverb, relsize
usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, amsfonts, amsthm, bm
usepackagemathtools
DeclareMathOperator*argminarg,min
DeclareMathOperator*argmaxarg,max
usepackage[labelfont=bf, skip=5pt]caption
usepackagemdwlist
usepackagetabularx, booktabs
newcolumntypeC>centeringarraybackslashX
usepackagexfrac
usepackagesetspace,geometry
usepackagexcolor
usepackagelmodern
usepackageupgreek
usepackageafterpage
usepackagewrapfig
usepackagepdflscape
usepackagemultirow, booktabs, makecell, caption
usepackagefancyhdr
usepackage[toc]glossaries
usepackagesubcaption
usepackagelipsum
usepackageamsmath
usepackageamssymb
usepackageeurosym
usepackageamsfonts
usepackagebooktabs
usepackageabstract
usepackagedcolumn
usepackagegraphicx
usepackage[hyphens]url
usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib %sort&compress orders in text citation automatically
usepackagepgfplots
usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[export]adjustbox
usepackageetoolbox
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc %footnotes always appear on bottom and not end of text on single page
geometrya4paper, top=30mm, left=30mm, right=30mm, bottom=30mm,headsep=10mm, footskip=12mm
%try to prevent widows and orphans (single lines on top/bottom of page)
widowpenalty10000
clubpenalty10000
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
itemhspace-2.5ptnoindenttextitNote: The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
multicolumn
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
1
Off-topic: It's a pure and simple error to load both theapacite
package and thenatbib
. Load one or the other, but not both. And don't load thea4wide
package if you load thegeometry
package.
– Mico
9 hours ago
add a comment
|
I am struggling with multicolumn. What I want is equal spacing between the three columns. Without multicolumn, there is not enough space because of the Panel rows. With multicolumn, it just Looks bad. Does anyone know how I could handle this? I guess the first column just has to move a bit to the right that the table Looks at least decent...
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
usepackageapacite
usepackagemakecell
usepackageafterpage
usepackagedblfloatfix
usepackage[referable]threeparttablex
usepackage[paper=portrait,pagesize]typearea
usepackagemleftright
usepackagelscape
usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackagefloat, afterpage, rotating, graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, epstopdf,pgfplots
usepackagelongtable, booktabs, tabularx
usepackagefancyvrb, moreverb, relsize
usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, amsfonts, amsthm, bm
usepackagemathtools
DeclareMathOperator*argminarg,min
DeclareMathOperator*argmaxarg,max
usepackage[labelfont=bf, skip=5pt]caption
usepackagemdwlist
usepackagetabularx, booktabs
newcolumntypeC>centeringarraybackslashX
usepackagexfrac
usepackagesetspace,geometry
usepackagexcolor
usepackagelmodern
usepackageupgreek
usepackageafterpage
usepackagewrapfig
usepackagepdflscape
usepackagemultirow, booktabs, makecell, caption
usepackagefancyhdr
usepackage[toc]glossaries
usepackagesubcaption
usepackagelipsum
usepackageamsmath
usepackageamssymb
usepackageeurosym
usepackageamsfonts
usepackagebooktabs
usepackageabstract
usepackagedcolumn
usepackagegraphicx
usepackage[hyphens]url
usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib %sort&compress orders in text citation automatically
usepackagepgfplots
usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[export]adjustbox
usepackageetoolbox
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc %footnotes always appear on bottom and not end of text on single page
geometrya4paper, top=30mm, left=30mm, right=30mm, bottom=30mm,headsep=10mm, footskip=12mm
%try to prevent widows and orphans (single lines on top/bottom of page)
widowpenalty10000
clubpenalty10000
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
itemhspace-2.5ptnoindenttextitNote: The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
multicolumn
I am struggling with multicolumn. What I want is equal spacing between the three columns. Without multicolumn, there is not enough space because of the Panel rows. With multicolumn, it just Looks bad. Does anyone know how I could handle this? I guess the first column just has to move a bit to the right that the table Looks at least decent...
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
usepackageapacite
usepackagemakecell
usepackageafterpage
usepackagedblfloatfix
usepackage[referable]threeparttablex
usepackage[paper=portrait,pagesize]typearea
usepackagemleftright
usepackagelscape
usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackagefloat, afterpage, rotating, graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, epstopdf,pgfplots
usepackagelongtable, booktabs, tabularx
usepackagefancyvrb, moreverb, relsize
usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, amsfonts, amsthm, bm
usepackagemathtools
DeclareMathOperator*argminarg,min
DeclareMathOperator*argmaxarg,max
usepackage[labelfont=bf, skip=5pt]caption
usepackagemdwlist
usepackagetabularx, booktabs
newcolumntypeC>centeringarraybackslashX
usepackagexfrac
usepackagesetspace,geometry
usepackagexcolor
usepackagelmodern
usepackageupgreek
usepackageafterpage
usepackagewrapfig
usepackagepdflscape
usepackagemultirow, booktabs, makecell, caption
usepackagefancyhdr
usepackage[toc]glossaries
usepackagesubcaption
usepackagelipsum
usepackageamsmath
usepackageamssymb
usepackageeurosym
usepackageamsfonts
usepackagebooktabs
usepackageabstract
usepackagedcolumn
usepackagegraphicx
usepackage[hyphens]url
usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib %sort&compress orders in text citation automatically
usepackagepgfplots
usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[export]adjustbox
usepackageetoolbox
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc %footnotes always appear on bottom and not end of text on single page
geometrya4paper, top=30mm, left=30mm, right=30mm, bottom=30mm,headsep=10mm, footskip=12mm
%try to prevent widows and orphans (single lines on top/bottom of page)
widowpenalty10000
clubpenalty10000
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
itemhspace-2.5ptnoindenttextitNote: The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
multicolumn
multicolumn
asked 9 hours ago
MANGo 92MANGo 92
744 bronze badges
744 bronze badges
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
1
Off-topic: It's a pure and simple error to load both theapacite
package and thenatbib
. Load one or the other, but not both. And don't load thea4wide
package if you load thegeometry
package.
– Mico
9 hours ago
add a comment
|
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
1
Off-topic: It's a pure and simple error to load both theapacite
package and thenatbib
. Load one or the other, but not both. And don't load thea4wide
package if you load thegeometry
package.
– Mico
9 hours ago
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
1
1
Off-topic: It's a pure and simple error to load both the
apacite
package and the natbib
. Load one or the other, but not both. And don't load the a4wide
package if you load the geometry
package.– Mico
9 hours ago
Off-topic: It's a pure and simple error to load both the
apacite
package and the natbib
. Load one or the other, but not both. And don't load the a4wide
package if you load the geometry
package.– Mico
9 hours ago
add a comment
|
3 Answers
3
active
oldest
votes
your question is primary opinion based ... so the main contribution of MWE below is cleanup of your code from all unnecessary repetition of textbf
, use thead
instead of makecell
in column headers and introduction threepartablex
package for writing table notes:
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
usepackagebooktabs, makecell, multirow, tabularx
renewcommandtheadfontsmallbfseries
usepackage[referable]threeparttablex
usepackagecaption
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[a4paper,
margin=30mm,headsep=10mm, footskip=12mm]geometry
begindocument
begintable[ht]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabularxlinewidthl*3>bfseriescenteringarraybackslashX
toprule
& theadIndividual\ Cryptocurrencies
& theadEqually-weighted\ benchmark
& theadRisk-based\ Strategies \
midrule
multicolumn4ctextitPanel A: Risk and Return \
midrule
Mean & -- & + & -- \
SD & -- & -- & + \
SR & -- & -- & + \
Min & -- & -- & + \
Max & -- & -- & + \
Skew & -- & -- & + \
Kurt & -- & -- & + \
addlinespace
multicolumn4ctextitPanel B: Tail and Extreme Risk \
midrule
VaR (5%) & -- & -- & + \
VaR (1%) & -- & -- & + \
CVaR(5%) & -- & -- & + \
CVaR (1%)& -- & -- & + \
DD & -- & -- & + \
MD & -- & -- & + \
LPM & -- & -- & + \
addlinespace
multicolumn4ctextitPanel C: Conditional Performance\
midrule
Bull market & -- & -- & + \
Bear market & -- & -- & + \
bottomrule
endtabularx
begintablenotes[para,flushleft]
footnotesize
note The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Above MWE gives:
add a comment
|
Probably you are more satisfied with the following. I have used @quadquad
to indent the first column while leaving the entries of the multicolumns unindented. I have also replaced itemhspace-2.5ptnoindenttextitNote:
with note
.
documentclass[a4paper, 12pt]article
usepackagemakecell
usepackage[referable]threeparttablex
usepackagebooktabs
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidth@quadquadl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
note The table provides xx
endtablenotes
endthreeparttable
endtable
enddocument
add a comment
|
I suggest you start by changing all three instances of
multicolumn2ltextitPanel ... & & \
to
multicolumn4ltextitPanel ... \
To spruce up the "look" of the table, I would also replace the interior instances of midrule
with addlinespace
, and I would replace all instances of textbf+
and textbf--
with $bm+$
and $bm-$
, respectively. Furthermore, I can't see any (typographic) justification for rendering the header cells in bold, and using the threeparttable
machinery seems pointless since there aren't any tnote
directives.
documentclass[a4paper, 12pt]article
%%% I tried to simplify the preamble considerably...
%DeclareUnicodeCharacterFB01fi
%DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
%usepackageapacite
usepackagemakecell
%usepackageafterpage
%usepackagedblfloatfix
%usepackage[referable]threeparttablex
%usepackage[paper=portrait,pagesize]typearea
%usepackagemleftright
%usepackagelscape
%usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackage%float, afterpage, rotating,
graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, %epstopdf,
pgfplots
usepackage%longtable,
booktabs, tabularx
%usepackagefancyvrb, moreverb, relsize
%usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, %amsfonts,
amsthm, bm
%usepackagemathtools
%DeclareMathOperator*argminarg,min
%DeclareMathOperator*argmaxarg,max
usepackage[%labelfont=bf,
skip=5pt]caption
%usepackagemdwlist
%usepackagetabularx, booktabs
%newcolumntypeC>centeringarraybackslashX
%usepackagexfrac
usepackage%setspace,
geometry
%usepackagexcolor
usepackagelmodern
usepackageupgreek
%usepackageafterpage
%usepackagewrapfig
%usepackagepdflscape
%usepackagemultirow, booktabs, makecell, caption
%usepackagefancyhdr
%usepackage[toc]glossaries
%usepackagesubcaption
%usepackagelipsum
%usepackageamsmath
%usepackageamssymb
%usepackageeurosym
%usepackageamsfonts
%usepackagebooktabs
%usepackageabstract
%usepackagedcolumn
%usepackagegraphicx
usepackage[hyphens]url
%usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib
%sort&compress orders in-text citations automatically
%usepackagepgfplots
%usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
%usepackage[export]adjustbox
%usepackageetoolbox
%usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc
% make footnotes appear on bottom and not end of text on single page
geometrya4paper, margin =30mm, headsep = 10mm, footskip = 12mm
% prevent typographic widows and orphans:
widowpenalty10000
clubpenalty10000
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
begindocument
begintable[t!]
%centering % redundant
setlengthtabcolsep0pt % <-- new
captionSummary of strategy performances
labeltab2:summary
%beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecellIndividual \ Cryptocurrencies
& makecellEqually-weighted \ benchmark
& makecellRisk-based \ Strategies \
midrule
multicolumn4ltextitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabular*
%begintablenotes[para,flushleft]
smallskip
footnotesize
textitNote: The table provides dots
%endtablenotes
%endthreeparttable
endtable
enddocument
Addendum: If you really don't want to let the headers in the first column protrude into the data columns, I suggest you switch from a tabular*
to a tabularx
environment, with modified forms of the X
column type for all four columns:
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagelmodern, booktabs
usepackagetabularx
%% new: define 2 new column types: L and C
newcolumntypeL[1]%
>raggedrightarraybackslashhsize=#1hsize%
hangafter=1hangindent=1.5emX % automatic hanging indentation
newcolumntypeC[1]%
>centeringarraybackslashhsize=#1hsizeX
usepackageamsmath, amssymb, amsthm, bm
usepackage[skip=0.333baselineskip]caption
usepackagegeometry
geometrya4paper,margin=30mm,headsep=10mm,footskip=12mm
begindocument
begintable[t!]
captionSummary of strategy performances
labeltab:summary
begintabularxlinewidth@ L1.45 *2C0.95 C0.65 @
% 1.45+2*0.95+0.65 = 4 = # of columns of type "X"
toprule
& Individual Cryptocurrencies & Equally-weighted benchmark & Risk-based Strategies \
midrule
textitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabularx
smallskip
footnotesize
textitNote: The table provides dots
endtable
enddocument
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.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%2f509919%2ftable-formatting-with-multicolumn%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
your question is primary opinion based ... so the main contribution of MWE below is cleanup of your code from all unnecessary repetition of textbf
, use thead
instead of makecell
in column headers and introduction threepartablex
package for writing table notes:
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
usepackagebooktabs, makecell, multirow, tabularx
renewcommandtheadfontsmallbfseries
usepackage[referable]threeparttablex
usepackagecaption
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[a4paper,
margin=30mm,headsep=10mm, footskip=12mm]geometry
begindocument
begintable[ht]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabularxlinewidthl*3>bfseriescenteringarraybackslashX
toprule
& theadIndividual\ Cryptocurrencies
& theadEqually-weighted\ benchmark
& theadRisk-based\ Strategies \
midrule
multicolumn4ctextitPanel A: Risk and Return \
midrule
Mean & -- & + & -- \
SD & -- & -- & + \
SR & -- & -- & + \
Min & -- & -- & + \
Max & -- & -- & + \
Skew & -- & -- & + \
Kurt & -- & -- & + \
addlinespace
multicolumn4ctextitPanel B: Tail and Extreme Risk \
midrule
VaR (5%) & -- & -- & + \
VaR (1%) & -- & -- & + \
CVaR(5%) & -- & -- & + \
CVaR (1%)& -- & -- & + \
DD & -- & -- & + \
MD & -- & -- & + \
LPM & -- & -- & + \
addlinespace
multicolumn4ctextitPanel C: Conditional Performance\
midrule
Bull market & -- & -- & + \
Bear market & -- & -- & + \
bottomrule
endtabularx
begintablenotes[para,flushleft]
footnotesize
note The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Above MWE gives:
add a comment
|
your question is primary opinion based ... so the main contribution of MWE below is cleanup of your code from all unnecessary repetition of textbf
, use thead
instead of makecell
in column headers and introduction threepartablex
package for writing table notes:
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
usepackagebooktabs, makecell, multirow, tabularx
renewcommandtheadfontsmallbfseries
usepackage[referable]threeparttablex
usepackagecaption
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[a4paper,
margin=30mm,headsep=10mm, footskip=12mm]geometry
begindocument
begintable[ht]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabularxlinewidthl*3>bfseriescenteringarraybackslashX
toprule
& theadIndividual\ Cryptocurrencies
& theadEqually-weighted\ benchmark
& theadRisk-based\ Strategies \
midrule
multicolumn4ctextitPanel A: Risk and Return \
midrule
Mean & -- & + & -- \
SD & -- & -- & + \
SR & -- & -- & + \
Min & -- & -- & + \
Max & -- & -- & + \
Skew & -- & -- & + \
Kurt & -- & -- & + \
addlinespace
multicolumn4ctextitPanel B: Tail and Extreme Risk \
midrule
VaR (5%) & -- & -- & + \
VaR (1%) & -- & -- & + \
CVaR(5%) & -- & -- & + \
CVaR (1%)& -- & -- & + \
DD & -- & -- & + \
MD & -- & -- & + \
LPM & -- & -- & + \
addlinespace
multicolumn4ctextitPanel C: Conditional Performance\
midrule
Bull market & -- & -- & + \
Bear market & -- & -- & + \
bottomrule
endtabularx
begintablenotes[para,flushleft]
footnotesize
note The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Above MWE gives:
add a comment
|
your question is primary opinion based ... so the main contribution of MWE below is cleanup of your code from all unnecessary repetition of textbf
, use thead
instead of makecell
in column headers and introduction threepartablex
package for writing table notes:
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
usepackagebooktabs, makecell, multirow, tabularx
renewcommandtheadfontsmallbfseries
usepackage[referable]threeparttablex
usepackagecaption
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[a4paper,
margin=30mm,headsep=10mm, footskip=12mm]geometry
begindocument
begintable[ht]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabularxlinewidthl*3>bfseriescenteringarraybackslashX
toprule
& theadIndividual\ Cryptocurrencies
& theadEqually-weighted\ benchmark
& theadRisk-based\ Strategies \
midrule
multicolumn4ctextitPanel A: Risk and Return \
midrule
Mean & -- & + & -- \
SD & -- & -- & + \
SR & -- & -- & + \
Min & -- & -- & + \
Max & -- & -- & + \
Skew & -- & -- & + \
Kurt & -- & -- & + \
addlinespace
multicolumn4ctextitPanel B: Tail and Extreme Risk \
midrule
VaR (5%) & -- & -- & + \
VaR (1%) & -- & -- & + \
CVaR(5%) & -- & -- & + \
CVaR (1%)& -- & -- & + \
DD & -- & -- & + \
MD & -- & -- & + \
LPM & -- & -- & + \
addlinespace
multicolumn4ctextitPanel C: Conditional Performance\
midrule
Bull market & -- & -- & + \
Bear market & -- & -- & + \
bottomrule
endtabularx
begintablenotes[para,flushleft]
footnotesize
note The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Above MWE gives:
your question is primary opinion based ... so the main contribution of MWE below is cleanup of your code from all unnecessary repetition of textbf
, use thead
instead of makecell
in column headers and introduction threepartablex
package for writing table notes:
documentclass[a4paper, 12pt]article
DeclareUnicodeCharacterFB01fi
DeclareUnicodeCharacterFB02fl
usepackagebooktabs, makecell, multirow, tabularx
renewcommandtheadfontsmallbfseries
usepackage[referable]threeparttablex
usepackagecaption
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
usepackage[a4paper,
margin=30mm,headsep=10mm, footskip=12mm]geometry
begindocument
begintable[ht]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabularxlinewidthl*3>bfseriescenteringarraybackslashX
toprule
& theadIndividual\ Cryptocurrencies
& theadEqually-weighted\ benchmark
& theadRisk-based\ Strategies \
midrule
multicolumn4ctextitPanel A: Risk and Return \
midrule
Mean & -- & + & -- \
SD & -- & -- & + \
SR & -- & -- & + \
Min & -- & -- & + \
Max & -- & -- & + \
Skew & -- & -- & + \
Kurt & -- & -- & + \
addlinespace
multicolumn4ctextitPanel B: Tail and Extreme Risk \
midrule
VaR (5%) & -- & -- & + \
VaR (1%) & -- & -- & + \
CVaR(5%) & -- & -- & + \
CVaR (1%)& -- & -- & + \
DD & -- & -- & + \
MD & -- & -- & + \
LPM & -- & -- & + \
addlinespace
multicolumn4ctextitPanel C: Conditional Performance\
midrule
Bull market & -- & -- & + \
Bear market & -- & -- & + \
bottomrule
endtabularx
begintablenotes[para,flushleft]
footnotesize
note The table
provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Above MWE gives:
answered 9 hours ago
ZarkoZarko
148k8 gold badges85 silver badges195 bronze badges
148k8 gold badges85 silver badges195 bronze badges
add a comment
|
add a comment
|
Probably you are more satisfied with the following. I have used @quadquad
to indent the first column while leaving the entries of the multicolumns unindented. I have also replaced itemhspace-2.5ptnoindenttextitNote:
with note
.
documentclass[a4paper, 12pt]article
usepackagemakecell
usepackage[referable]threeparttablex
usepackagebooktabs
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidth@quadquadl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
note The table provides xx
endtablenotes
endthreeparttable
endtable
enddocument
add a comment
|
Probably you are more satisfied with the following. I have used @quadquad
to indent the first column while leaving the entries of the multicolumns unindented. I have also replaced itemhspace-2.5ptnoindenttextitNote:
with note
.
documentclass[a4paper, 12pt]article
usepackagemakecell
usepackage[referable]threeparttablex
usepackagebooktabs
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidth@quadquadl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
note The table provides xx
endtablenotes
endthreeparttable
endtable
enddocument
add a comment
|
Probably you are more satisfied with the following. I have used @quadquad
to indent the first column while leaving the entries of the multicolumns unindented. I have also replaced itemhspace-2.5ptnoindenttextitNote:
with note
.
documentclass[a4paper, 12pt]article
usepackagemakecell
usepackage[referable]threeparttablex
usepackagebooktabs
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidth@quadquadl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
note The table provides xx
endtablenotes
endthreeparttable
endtable
enddocument
Probably you are more satisfied with the following. I have used @quadquad
to indent the first column while leaving the entries of the multicolumns unindented. I have also replaced itemhspace-2.5ptnoindenttextitNote:
with note
.
documentclass[a4paper, 12pt]article
usepackagemakecell
usepackage[referable]threeparttablex
usepackagebooktabs
begindocument
begintable[t!]
centering
captionSummary of strategy performances
labeltab2:summary
beginthreeparttable
begintabular*linewidth@quadquadl@extracolsepfill*3c
toprule
& makecelltextbfIndividual \ textbfCryptocurrencies & makecelltextbfEqually-weighted \ textbfbenchmark & makecelltextbfRisk-based \ textbfStrategies \
midrule
multicolumn2ltextitPanel A: Risk and Return & & \
Mean & textbf-- & textbf+ & textbf-- \
SD & textbf-- & textbf-- & textbf+ \
SR & textbf-- & textbf-- & textbf+ \
Min & textbf-- & textbf-- & textbf+ \
Max & textbf-- & textbf-- & textbf+ \
Skew & textbf-- & textbf-- & textbf+ \
Kurt & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel B: Tail and Extreme Risk & & \
VaR (5%) & textbf-- & textbf-- & textbf+ \
VaR (1%) & textbf-- & textbf-- & textbf+ \
CVaR(5%) & textbf-- & textbf-- & textbf+ \
CVaR (1%)& textbf-- & textbf-- & textbf+ \
DD & textbf-- & textbf-- & textbf+ \
MD & textbf-- & textbf-- & textbf+ \
LPM & textbf-- & textbf-- & textbf+ \
midrule
multicolumn2ltextitPanel C: Conditional Performance & & \
Bull market & textbf-- & textbf-- & textbf+ \
Bear market & textbf-- & textbf-- & textbf+ \
bottomrule
endtabular*
begintablenotes[para,flushleft]
footnotesize
note The table provides xx
endtablenotes
endthreeparttable
endtable
enddocument
answered 9 hours ago
leandriisleandriis
20.7k1 gold badge11 silver badges40 bronze badges
20.7k1 gold badge11 silver badges40 bronze badges
add a comment
|
add a comment
|
I suggest you start by changing all three instances of
multicolumn2ltextitPanel ... & & \
to
multicolumn4ltextitPanel ... \
To spruce up the "look" of the table, I would also replace the interior instances of midrule
with addlinespace
, and I would replace all instances of textbf+
and textbf--
with $bm+$
and $bm-$
, respectively. Furthermore, I can't see any (typographic) justification for rendering the header cells in bold, and using the threeparttable
machinery seems pointless since there aren't any tnote
directives.
documentclass[a4paper, 12pt]article
%%% I tried to simplify the preamble considerably...
%DeclareUnicodeCharacterFB01fi
%DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
%usepackageapacite
usepackagemakecell
%usepackageafterpage
%usepackagedblfloatfix
%usepackage[referable]threeparttablex
%usepackage[paper=portrait,pagesize]typearea
%usepackagemleftright
%usepackagelscape
%usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackage%float, afterpage, rotating,
graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, %epstopdf,
pgfplots
usepackage%longtable,
booktabs, tabularx
%usepackagefancyvrb, moreverb, relsize
%usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, %amsfonts,
amsthm, bm
%usepackagemathtools
%DeclareMathOperator*argminarg,min
%DeclareMathOperator*argmaxarg,max
usepackage[%labelfont=bf,
skip=5pt]caption
%usepackagemdwlist
%usepackagetabularx, booktabs
%newcolumntypeC>centeringarraybackslashX
%usepackagexfrac
usepackage%setspace,
geometry
%usepackagexcolor
usepackagelmodern
usepackageupgreek
%usepackageafterpage
%usepackagewrapfig
%usepackagepdflscape
%usepackagemultirow, booktabs, makecell, caption
%usepackagefancyhdr
%usepackage[toc]glossaries
%usepackagesubcaption
%usepackagelipsum
%usepackageamsmath
%usepackageamssymb
%usepackageeurosym
%usepackageamsfonts
%usepackagebooktabs
%usepackageabstract
%usepackagedcolumn
%usepackagegraphicx
usepackage[hyphens]url
%usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib
%sort&compress orders in-text citations automatically
%usepackagepgfplots
%usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
%usepackage[export]adjustbox
%usepackageetoolbox
%usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc
% make footnotes appear on bottom and not end of text on single page
geometrya4paper, margin =30mm, headsep = 10mm, footskip = 12mm
% prevent typographic widows and orphans:
widowpenalty10000
clubpenalty10000
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
begindocument
begintable[t!]
%centering % redundant
setlengthtabcolsep0pt % <-- new
captionSummary of strategy performances
labeltab2:summary
%beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecellIndividual \ Cryptocurrencies
& makecellEqually-weighted \ benchmark
& makecellRisk-based \ Strategies \
midrule
multicolumn4ltextitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabular*
%begintablenotes[para,flushleft]
smallskip
footnotesize
textitNote: The table provides dots
%endtablenotes
%endthreeparttable
endtable
enddocument
Addendum: If you really don't want to let the headers in the first column protrude into the data columns, I suggest you switch from a tabular*
to a tabularx
environment, with modified forms of the X
column type for all four columns:
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagelmodern, booktabs
usepackagetabularx
%% new: define 2 new column types: L and C
newcolumntypeL[1]%
>raggedrightarraybackslashhsize=#1hsize%
hangafter=1hangindent=1.5emX % automatic hanging indentation
newcolumntypeC[1]%
>centeringarraybackslashhsize=#1hsizeX
usepackageamsmath, amssymb, amsthm, bm
usepackage[skip=0.333baselineskip]caption
usepackagegeometry
geometrya4paper,margin=30mm,headsep=10mm,footskip=12mm
begindocument
begintable[t!]
captionSummary of strategy performances
labeltab:summary
begintabularxlinewidth@ L1.45 *2C0.95 C0.65 @
% 1.45+2*0.95+0.65 = 4 = # of columns of type "X"
toprule
& Individual Cryptocurrencies & Equally-weighted benchmark & Risk-based Strategies \
midrule
textitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabularx
smallskip
footnotesize
textitNote: The table provides dots
endtable
enddocument
add a comment
|
I suggest you start by changing all three instances of
multicolumn2ltextitPanel ... & & \
to
multicolumn4ltextitPanel ... \
To spruce up the "look" of the table, I would also replace the interior instances of midrule
with addlinespace
, and I would replace all instances of textbf+
and textbf--
with $bm+$
and $bm-$
, respectively. Furthermore, I can't see any (typographic) justification for rendering the header cells in bold, and using the threeparttable
machinery seems pointless since there aren't any tnote
directives.
documentclass[a4paper, 12pt]article
%%% I tried to simplify the preamble considerably...
%DeclareUnicodeCharacterFB01fi
%DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
%usepackageapacite
usepackagemakecell
%usepackageafterpage
%usepackagedblfloatfix
%usepackage[referable]threeparttablex
%usepackage[paper=portrait,pagesize]typearea
%usepackagemleftright
%usepackagelscape
%usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackage%float, afterpage, rotating,
graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, %epstopdf,
pgfplots
usepackage%longtable,
booktabs, tabularx
%usepackagefancyvrb, moreverb, relsize
%usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, %amsfonts,
amsthm, bm
%usepackagemathtools
%DeclareMathOperator*argminarg,min
%DeclareMathOperator*argmaxarg,max
usepackage[%labelfont=bf,
skip=5pt]caption
%usepackagemdwlist
%usepackagetabularx, booktabs
%newcolumntypeC>centeringarraybackslashX
%usepackagexfrac
usepackage%setspace,
geometry
%usepackagexcolor
usepackagelmodern
usepackageupgreek
%usepackageafterpage
%usepackagewrapfig
%usepackagepdflscape
%usepackagemultirow, booktabs, makecell, caption
%usepackagefancyhdr
%usepackage[toc]glossaries
%usepackagesubcaption
%usepackagelipsum
%usepackageamsmath
%usepackageamssymb
%usepackageeurosym
%usepackageamsfonts
%usepackagebooktabs
%usepackageabstract
%usepackagedcolumn
%usepackagegraphicx
usepackage[hyphens]url
%usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib
%sort&compress orders in-text citations automatically
%usepackagepgfplots
%usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
%usepackage[export]adjustbox
%usepackageetoolbox
%usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc
% make footnotes appear on bottom and not end of text on single page
geometrya4paper, margin =30mm, headsep = 10mm, footskip = 12mm
% prevent typographic widows and orphans:
widowpenalty10000
clubpenalty10000
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
begindocument
begintable[t!]
%centering % redundant
setlengthtabcolsep0pt % <-- new
captionSummary of strategy performances
labeltab2:summary
%beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecellIndividual \ Cryptocurrencies
& makecellEqually-weighted \ benchmark
& makecellRisk-based \ Strategies \
midrule
multicolumn4ltextitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabular*
%begintablenotes[para,flushleft]
smallskip
footnotesize
textitNote: The table provides dots
%endtablenotes
%endthreeparttable
endtable
enddocument
Addendum: If you really don't want to let the headers in the first column protrude into the data columns, I suggest you switch from a tabular*
to a tabularx
environment, with modified forms of the X
column type for all four columns:
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagelmodern, booktabs
usepackagetabularx
%% new: define 2 new column types: L and C
newcolumntypeL[1]%
>raggedrightarraybackslashhsize=#1hsize%
hangafter=1hangindent=1.5emX % automatic hanging indentation
newcolumntypeC[1]%
>centeringarraybackslashhsize=#1hsizeX
usepackageamsmath, amssymb, amsthm, bm
usepackage[skip=0.333baselineskip]caption
usepackagegeometry
geometrya4paper,margin=30mm,headsep=10mm,footskip=12mm
begindocument
begintable[t!]
captionSummary of strategy performances
labeltab:summary
begintabularxlinewidth@ L1.45 *2C0.95 C0.65 @
% 1.45+2*0.95+0.65 = 4 = # of columns of type "X"
toprule
& Individual Cryptocurrencies & Equally-weighted benchmark & Risk-based Strategies \
midrule
textitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabularx
smallskip
footnotesize
textitNote: The table provides dots
endtable
enddocument
add a comment
|
I suggest you start by changing all three instances of
multicolumn2ltextitPanel ... & & \
to
multicolumn4ltextitPanel ... \
To spruce up the "look" of the table, I would also replace the interior instances of midrule
with addlinespace
, and I would replace all instances of textbf+
and textbf--
with $bm+$
and $bm-$
, respectively. Furthermore, I can't see any (typographic) justification for rendering the header cells in bold, and using the threeparttable
machinery seems pointless since there aren't any tnote
directives.
documentclass[a4paper, 12pt]article
%%% I tried to simplify the preamble considerably...
%DeclareUnicodeCharacterFB01fi
%DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
%usepackageapacite
usepackagemakecell
%usepackageafterpage
%usepackagedblfloatfix
%usepackage[referable]threeparttablex
%usepackage[paper=portrait,pagesize]typearea
%usepackagemleftright
%usepackagelscape
%usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackage%float, afterpage, rotating,
graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, %epstopdf,
pgfplots
usepackage%longtable,
booktabs, tabularx
%usepackagefancyvrb, moreverb, relsize
%usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, %amsfonts,
amsthm, bm
%usepackagemathtools
%DeclareMathOperator*argminarg,min
%DeclareMathOperator*argmaxarg,max
usepackage[%labelfont=bf,
skip=5pt]caption
%usepackagemdwlist
%usepackagetabularx, booktabs
%newcolumntypeC>centeringarraybackslashX
%usepackagexfrac
usepackage%setspace,
geometry
%usepackagexcolor
usepackagelmodern
usepackageupgreek
%usepackageafterpage
%usepackagewrapfig
%usepackagepdflscape
%usepackagemultirow, booktabs, makecell, caption
%usepackagefancyhdr
%usepackage[toc]glossaries
%usepackagesubcaption
%usepackagelipsum
%usepackageamsmath
%usepackageamssymb
%usepackageeurosym
%usepackageamsfonts
%usepackagebooktabs
%usepackageabstract
%usepackagedcolumn
%usepackagegraphicx
usepackage[hyphens]url
%usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib
%sort&compress orders in-text citations automatically
%usepackagepgfplots
%usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
%usepackage[export]adjustbox
%usepackageetoolbox
%usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc
% make footnotes appear on bottom and not end of text on single page
geometrya4paper, margin =30mm, headsep = 10mm, footskip = 12mm
% prevent typographic widows and orphans:
widowpenalty10000
clubpenalty10000
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
begindocument
begintable[t!]
%centering % redundant
setlengthtabcolsep0pt % <-- new
captionSummary of strategy performances
labeltab2:summary
%beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecellIndividual \ Cryptocurrencies
& makecellEqually-weighted \ benchmark
& makecellRisk-based \ Strategies \
midrule
multicolumn4ltextitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabular*
%begintablenotes[para,flushleft]
smallskip
footnotesize
textitNote: The table provides dots
%endtablenotes
%endthreeparttable
endtable
enddocument
Addendum: If you really don't want to let the headers in the first column protrude into the data columns, I suggest you switch from a tabular*
to a tabularx
environment, with modified forms of the X
column type for all four columns:
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagelmodern, booktabs
usepackagetabularx
%% new: define 2 new column types: L and C
newcolumntypeL[1]%
>raggedrightarraybackslashhsize=#1hsize%
hangafter=1hangindent=1.5emX % automatic hanging indentation
newcolumntypeC[1]%
>centeringarraybackslashhsize=#1hsizeX
usepackageamsmath, amssymb, amsthm, bm
usepackage[skip=0.333baselineskip]caption
usepackagegeometry
geometrya4paper,margin=30mm,headsep=10mm,footskip=12mm
begindocument
begintable[t!]
captionSummary of strategy performances
labeltab:summary
begintabularxlinewidth@ L1.45 *2C0.95 C0.65 @
% 1.45+2*0.95+0.65 = 4 = # of columns of type "X"
toprule
& Individual Cryptocurrencies & Equally-weighted benchmark & Risk-based Strategies \
midrule
textitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabularx
smallskip
footnotesize
textitNote: The table provides dots
endtable
enddocument
I suggest you start by changing all three instances of
multicolumn2ltextitPanel ... & & \
to
multicolumn4ltextitPanel ... \
To spruce up the "look" of the table, I would also replace the interior instances of midrule
with addlinespace
, and I would replace all instances of textbf+
and textbf--
with $bm+$
and $bm-$
, respectively. Furthermore, I can't see any (typographic) justification for rendering the header cells in bold, and using the threeparttable
machinery seems pointless since there aren't any tnote
directives.
documentclass[a4paper, 12pt]article
%%% I tried to simplify the preamble considerably...
%DeclareUnicodeCharacterFB01fi
%DeclareUnicodeCharacterFB02fl
%usepackage[space]grffile
%usepackageapacite
usepackagemakecell
%usepackageafterpage
%usepackagedblfloatfix
%usepackage[referable]threeparttablex
%usepackage[paper=portrait,pagesize]typearea
%usepackagemleftright
%usepackagelscape
%usepackagea4wide
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[onehalfspacing]setspace
usepackage%float, afterpage, rotating,
graphicx
usepackage[dvipsnames]xcolor
usepackagetikz, %epstopdf,
pgfplots
usepackage%longtable,
booktabs, tabularx
%usepackagefancyvrb, moreverb, relsize
%usepackageeurosym, calc, chngcntr
usepackageamsmath, amssymb, %amsfonts,
amsthm, bm
%usepackagemathtools
%DeclareMathOperator*argminarg,min
%DeclareMathOperator*argmaxarg,max
usepackage[%labelfont=bf,
skip=5pt]caption
%usepackagemdwlist
%usepackagetabularx, booktabs
%newcolumntypeC>centeringarraybackslashX
%usepackagexfrac
usepackage%setspace,
geometry
%usepackagexcolor
usepackagelmodern
usepackageupgreek
%usepackageafterpage
%usepackagewrapfig
%usepackagepdflscape
%usepackagemultirow, booktabs, makecell, caption
%usepackagefancyhdr
%usepackage[toc]glossaries
%usepackagesubcaption
%usepackagelipsum
%usepackageamsmath
%usepackageamssymb
%usepackageeurosym
%usepackageamsfonts
%usepackagebooktabs
%usepackageabstract
%usepackagedcolumn
%usepackagegraphicx
usepackage[hyphens]url
%usepackageacronym
usepackage[english]babel
usepackage[round, sort&compress]natbib
%sort&compress orders in-text citations automatically
%usepackagepgfplots
%usepackagethreeparttable
usepackagesiunitx %setze S in Tabelle, um nach dem Punkt auszurichten
%usepackage[export]adjustbox
%usepackageetoolbox
%usepackageappendix
usepackage[bottom,hang,flushmargin]footmisc
% make footnotes appear on bottom and not end of text on single page
geometrya4paper, margin =30mm, headsep = 10mm, footskip = 12mm
% prevent typographic widows and orphans:
widowpenalty10000
clubpenalty10000
usepackage[hyperfootnotes=false]hyperref
usepackagefootnotebackref
begindocument
begintable[t!]
%centering % redundant
setlengthtabcolsep0pt % <-- new
captionSummary of strategy performances
labeltab2:summary
%beginthreeparttable
begintabular*linewidthl@extracolsepfill*3c
toprule
& makecellIndividual \ Cryptocurrencies
& makecellEqually-weighted \ benchmark
& makecellRisk-based \ Strategies \
midrule
multicolumn4ltextitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
%midrule
addlinespace
multicolumn4ltextitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabular*
%begintablenotes[para,flushleft]
smallskip
footnotesize
textitNote: The table provides dots
%endtablenotes
%endthreeparttable
endtable
enddocument
Addendum: If you really don't want to let the headers in the first column protrude into the data columns, I suggest you switch from a tabular*
to a tabularx
environment, with modified forms of the X
column type for all four columns:
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagelmodern, booktabs
usepackagetabularx
%% new: define 2 new column types: L and C
newcolumntypeL[1]%
>raggedrightarraybackslashhsize=#1hsize%
hangafter=1hangindent=1.5emX % automatic hanging indentation
newcolumntypeC[1]%
>centeringarraybackslashhsize=#1hsizeX
usepackageamsmath, amssymb, amsthm, bm
usepackage[skip=0.333baselineskip]caption
usepackagegeometry
geometrya4paper,margin=30mm,headsep=10mm,footskip=12mm
begindocument
begintable[t!]
captionSummary of strategy performances
labeltab:summary
begintabularxlinewidth@ L1.45 *2C0.95 C0.65 @
% 1.45+2*0.95+0.65 = 4 = # of columns of type "X"
toprule
& Individual Cryptocurrencies & Equally-weighted benchmark & Risk-based Strategies \
midrule
textitPanel A: Risk and Return \
Mean & $bm-$ & $bm+$ & $bm-$ \
SD & $bm-$ & $bm-$ & $bm+$ \
SR & $bm-$ & $bm-$ & $bm+$ \
Min & $bm-$ & $bm-$ & $bm+$ \
Max & $bm-$ & $bm-$ & $bm+$ \
Skew & $bm-$ & $bm-$ & $bm+$ \
Kurt & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel B: Tail and Extreme Risk \
VaR (5%) & $bm-$ & $bm-$ & $bm+$ \
VaR (1%) & $bm-$ & $bm-$ & $bm+$ \
CVaR(5%) & $bm-$ & $bm-$ & $bm+$ \
CVaR (1%)& $bm-$ & $bm-$ & $bm+$ \
DD & $bm-$ & $bm-$ & $bm+$ \
MD & $bm-$ & $bm-$ & $bm+$ \
LPM & $bm-$ & $bm-$ & $bm+$ \
addlinespace
textitPanel C: Conditional Performance \
Bull market & $bm-$ & $bm-$ & $bm+$ \
Bear market & $bm-$ & $bm-$ & $bm+$ \
bottomrule
endtabularx
smallskip
footnotesize
textitNote: The table provides dots
endtable
enddocument
edited 8 hours ago
answered 9 hours ago
MicoMico
306k33 gold badges422 silver badges835 bronze badges
306k33 gold badges422 silver badges835 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f509919%2ftable-formatting-with-multicolumn%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
...for future reference: Is loading all of the packages you list necessary for this example? If not, remove all unnecessary loading for the sake of providing something that is minimal yet working but still highlights the problem.
– Werner
9 hours ago
1
Off-topic: It's a pure and simple error to load both the
apacite
package and thenatbib
. Load one or the other, but not both. And don't load thea4wide
package if you load thegeometry
package.– Mico
9 hours ago