What is the correct calculation to span some columns?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I want to create a column spanning 5 columns with m
column specifier. It seems my calculation multicolumn5hrulefill
is wrong as the rule does not occupy the left space. What is the correct calculation?
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
lengths
add a comment |Â
up vote
2
down vote
favorite
I want to create a column spanning 5 columns with m
column specifier. It seems my calculation multicolumn5hrulefill
is wrong as the rule does not occupy the left space. What is the correct calculation?
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
lengths
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to create a column spanning 5 columns with m
column specifier. It seems my calculation multicolumn5hrulefill
is wrong as the rule does not occupy the left space. What is the correct calculation?
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
lengths
I want to create a column spanning 5 columns with m
column specifier. It seems my calculation multicolumn5hrulefill
is wrong as the rule does not occupy the left space. What is the correct calculation?
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
lengths
lengths
asked 55 mins ago


Artificial Stupidity
3,9931828
3,9931828
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
4
down vote
No calculation necessary:
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
add a comment |Â
up vote
0
down vote
I found the solution:
multicolumn5hrulefill
add a comment |Â
up vote
0
down vote
For the table you're creating, no (human) calculations of any kind are required: Just (a) employ a tabularx
environment instead of a tabular
environment and (b) the c
column type for the cell that spans multiple columns of type X
.
documentclass[12pt]article
usepackage[a6paper,landscape,hmargin=3mm,top=3mm,bottom=12mm]geometry
usepackagetabularx
renewcommandtabularxcolumn[1]m#1 % use "m" rather than "p" raw column type
setlengthtabcolsep1mm % default value: 6pt=2.11mm
setlengtharrayrulewidth1pt % default value: 0.4pt
renewcommand*arraystretch2.5
begindocument
noindent
begintabularxtextwidth hline
1 & 2 & 3 & 4 & 5 & 6 \ hline
LaTeX &multicolumn5hrulefill\ hline
endtabularx
enddocument
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
No calculation necessary:
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
add a comment |Â
up vote
4
down vote
No calculation necessary:
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
add a comment |Â
up vote
4
down vote
up vote
4
down vote
No calculation necessary:
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
No calculation necessary:
documentclass[12pt]article
usepackage[a6paper,landscape,left=3mm,right=3mm,top=3mm,bottom=12mm]geometry
usepackagelongtable,array
tabcolsep=1mmrelax
arrayrulewidth=1ptrelax
renewcommand*arraystretch2.5
newlengthtemp
temp=dimexprdimexprtextwidth-7arrayrulewidth-12tabcolseprelax/6relax
begindocument
beginlongtable*6hline
1 & 2 & 3 & 4 & 5 & 6 \hline
LaTeX &multicolumn5hrulefill\hline
endlongtable
enddocument
answered 42 mins ago
Bernard
157k764190
157k764190
add a comment |Â
add a comment |Â
up vote
0
down vote
I found the solution:
multicolumn5hrulefill
add a comment |Â
up vote
0
down vote
I found the solution:
multicolumn5hrulefill
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I found the solution:
multicolumn5hrulefill
I found the solution:
multicolumn5hrulefill
answered 41 mins ago
community wiki
Artificial Stupidity
add a comment |Â
add a comment |Â
up vote
0
down vote
For the table you're creating, no (human) calculations of any kind are required: Just (a) employ a tabularx
environment instead of a tabular
environment and (b) the c
column type for the cell that spans multiple columns of type X
.
documentclass[12pt]article
usepackage[a6paper,landscape,hmargin=3mm,top=3mm,bottom=12mm]geometry
usepackagetabularx
renewcommandtabularxcolumn[1]m#1 % use "m" rather than "p" raw column type
setlengthtabcolsep1mm % default value: 6pt=2.11mm
setlengtharrayrulewidth1pt % default value: 0.4pt
renewcommand*arraystretch2.5
begindocument
noindent
begintabularxtextwidth hline
1 & 2 & 3 & 4 & 5 & 6 \ hline
LaTeX &multicolumn5hrulefill\ hline
endtabularx
enddocument
add a comment |Â
up vote
0
down vote
For the table you're creating, no (human) calculations of any kind are required: Just (a) employ a tabularx
environment instead of a tabular
environment and (b) the c
column type for the cell that spans multiple columns of type X
.
documentclass[12pt]article
usepackage[a6paper,landscape,hmargin=3mm,top=3mm,bottom=12mm]geometry
usepackagetabularx
renewcommandtabularxcolumn[1]m#1 % use "m" rather than "p" raw column type
setlengthtabcolsep1mm % default value: 6pt=2.11mm
setlengtharrayrulewidth1pt % default value: 0.4pt
renewcommand*arraystretch2.5
begindocument
noindent
begintabularxtextwidth hline
1 & 2 & 3 & 4 & 5 & 6 \ hline
LaTeX &multicolumn5hrulefill\ hline
endtabularx
enddocument
add a comment |Â
up vote
0
down vote
up vote
0
down vote
For the table you're creating, no (human) calculations of any kind are required: Just (a) employ a tabularx
environment instead of a tabular
environment and (b) the c
column type for the cell that spans multiple columns of type X
.
documentclass[12pt]article
usepackage[a6paper,landscape,hmargin=3mm,top=3mm,bottom=12mm]geometry
usepackagetabularx
renewcommandtabularxcolumn[1]m#1 % use "m" rather than "p" raw column type
setlengthtabcolsep1mm % default value: 6pt=2.11mm
setlengtharrayrulewidth1pt % default value: 0.4pt
renewcommand*arraystretch2.5
begindocument
noindent
begintabularxtextwidth hline
1 & 2 & 3 & 4 & 5 & 6 \ hline
LaTeX &multicolumn5hrulefill\ hline
endtabularx
enddocument
For the table you're creating, no (human) calculations of any kind are required: Just (a) employ a tabularx
environment instead of a tabular
environment and (b) the c
column type for the cell that spans multiple columns of type X
.
documentclass[12pt]article
usepackage[a6paper,landscape,hmargin=3mm,top=3mm,bottom=12mm]geometry
usepackagetabularx
renewcommandtabularxcolumn[1]m#1 % use "m" rather than "p" raw column type
setlengthtabcolsep1mm % default value: 6pt=2.11mm
setlengtharrayrulewidth1pt % default value: 0.4pt
renewcommand*arraystretch2.5
begindocument
noindent
begintabularxtextwidth hline
1 & 2 & 3 & 4 & 5 & 6 \ hline
LaTeX &multicolumn5hrulefill\ hline
endtabularx
enddocument
answered 11 mins ago


Mico
265k30357736
265k30357736
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453959%2fwhat-is-the-correct-calculation-to-span-some-columns%23new-answer', 'question_page');
);
Post as a guest
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
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
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