Specific column width for multicolumn table
up vote
0
down vote
favorite
I am trying to create a multicolumn long table as shown below
I want to make first column wider; and reduce the width of column 2 and 4. Here is the latex file I tried. Please help me out.
documentclass[10pt,a4paper,landscape]{article}
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[nottoc]{tocbibind}
usepackage[margin=24mm,
bottom= 5mm,%
footskip=4baselineskip,
includefoot,
headheight=65pt
]{geometry}
usepackage{tikz}
usetikzlibrary{backgrounds, positioning, scopes}
tikzset{FOOT/.style = {
every node/.append style = {font=sffamilybfseries,
text=white,
align=center,
minimum height=15mm,
outer sep=0pt,
},
sx/.style = {xshift=##1mm}
}
}
usepackage{color,soul}
usepackage[usestackEOL]{stackengine}
usepackage{caption}
usepackage{placeins}
usepackage{subcaption}
usepackage{tcolorbox}
%The following package is used to write transpose of a matrix in nicer way
usepackage{amssymb}
%The following package is used to number items with alpha & roman
usepackage{enumitem}
usepackage{multirow}
% Set line spacing using the following package
usepackage{setspace}
usepackage{lastpage}
%% Useful packages
usepackage{amsmath}
%
usepackage{ragged2e} % <---
usepackage{array, ltablex, makecell, multirow}
keepXColumns
renewcommandtheadfont{bfseries}
renewcommandtheadgape{}
newcolumntype{L}{>{RaggedRighthspace{0pt}}X}
newcolumntype{C}{>{Centering arraybackslash}X}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
renewcommand{headrulewidth}{2pt}
fancyhead[RO]{Personal Development Record}
fancyfoot{} % clear all footer fields
%%========================= Footer template ============================
fancyfoot[O]{% odd pages
begin{tikzpicture}[FOOT,
remember picture, overlay,
node distance=0pt]
node (O1) [minimum width=25mm,
above right=of current page.south west]
{};
node (O2) [minimum width=0.5textwidth, align=left,
right=of O1]
{ Continuing Professional Development\
footnotesize
January 2019};
node (O3) [minimum width=0.5textwidth,
align=center,
right=of O2]
{ LarCoS\
footnotesize
Membership no. 123456qquad};
node (O4) [minimum width=25mm, font=sffamilybfseries,
right=of O3]
{thepage~of~pageref{LastPage}};
begin{scope}[on background layer]
fill[teal] (O1.south west) |- ([sx= 3] O3.north east)
-- ([sx=-3] O3.south east)
-- cycle;
fill[black] ([sx=-3] O2.south east) -- ([sx= 3] O2.north east) -|
(O4.south east) -- cycle;
path[white, line width=1mm, shorten >=-0.5mm, shorten < =-0.5mm]
([sx=-3] O2.south east) edge ([sx=3] O2.north east)
([sx=-3] O4.south west) edge ([sx=3] O4.north west);
end{scope}
end{tikzpicture}
} %odd page
%%%%==========================================
%%========================= Footer template ============================
begin{document}
begingroup
setcellgapes{5pt}
makegapedcells
setlengthtabcolsep{4pt}
small
begin{tabularx}{linewidth}{|L|c|c|c|*{3}{L|}>{raggedrightarraybackslash}p{6em}|}
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities:}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endfirsthead
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities (cont.):}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endhead
multicolumn{7}{r}{textit{Continue to the next page:}} \
endfoot
endlastfoot
Study of structural detailing from design drawings and 'As built' drawings for several structures and its components from previous projects & makecell[tl]{Jul\2006\to\Sep\2006}
& 20~hrs
& makecell[tl]{RB-\DAP-\01}
& From total structural arrangements to detail drawing of each components, welding and bolt symbols
& To visualize the structure as well as the connections, to understand the erection scheme from design drawing e.g. splice detail & I had successfully completed my action plan. I shall be able to improve it through continuous learning from my job responsibility \
hline
& & & & & & \ hline
& & & & & & \ hline
& & & & & & \ hline
end{tabularx}
endgroup
end{document}
tables
add a comment |
up vote
0
down vote
favorite
I am trying to create a multicolumn long table as shown below
I want to make first column wider; and reduce the width of column 2 and 4. Here is the latex file I tried. Please help me out.
documentclass[10pt,a4paper,landscape]{article}
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[nottoc]{tocbibind}
usepackage[margin=24mm,
bottom= 5mm,%
footskip=4baselineskip,
includefoot,
headheight=65pt
]{geometry}
usepackage{tikz}
usetikzlibrary{backgrounds, positioning, scopes}
tikzset{FOOT/.style = {
every node/.append style = {font=sffamilybfseries,
text=white,
align=center,
minimum height=15mm,
outer sep=0pt,
},
sx/.style = {xshift=##1mm}
}
}
usepackage{color,soul}
usepackage[usestackEOL]{stackengine}
usepackage{caption}
usepackage{placeins}
usepackage{subcaption}
usepackage{tcolorbox}
%The following package is used to write transpose of a matrix in nicer way
usepackage{amssymb}
%The following package is used to number items with alpha & roman
usepackage{enumitem}
usepackage{multirow}
% Set line spacing using the following package
usepackage{setspace}
usepackage{lastpage}
%% Useful packages
usepackage{amsmath}
%
usepackage{ragged2e} % <---
usepackage{array, ltablex, makecell, multirow}
keepXColumns
renewcommandtheadfont{bfseries}
renewcommandtheadgape{}
newcolumntype{L}{>{RaggedRighthspace{0pt}}X}
newcolumntype{C}{>{Centering arraybackslash}X}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
renewcommand{headrulewidth}{2pt}
fancyhead[RO]{Personal Development Record}
fancyfoot{} % clear all footer fields
%%========================= Footer template ============================
fancyfoot[O]{% odd pages
begin{tikzpicture}[FOOT,
remember picture, overlay,
node distance=0pt]
node (O1) [minimum width=25mm,
above right=of current page.south west]
{};
node (O2) [minimum width=0.5textwidth, align=left,
right=of O1]
{ Continuing Professional Development\
footnotesize
January 2019};
node (O3) [minimum width=0.5textwidth,
align=center,
right=of O2]
{ LarCoS\
footnotesize
Membership no. 123456qquad};
node (O4) [minimum width=25mm, font=sffamilybfseries,
right=of O3]
{thepage~of~pageref{LastPage}};
begin{scope}[on background layer]
fill[teal] (O1.south west) |- ([sx= 3] O3.north east)
-- ([sx=-3] O3.south east)
-- cycle;
fill[black] ([sx=-3] O2.south east) -- ([sx= 3] O2.north east) -|
(O4.south east) -- cycle;
path[white, line width=1mm, shorten >=-0.5mm, shorten < =-0.5mm]
([sx=-3] O2.south east) edge ([sx=3] O2.north east)
([sx=-3] O4.south west) edge ([sx=3] O4.north west);
end{scope}
end{tikzpicture}
} %odd page
%%%%==========================================
%%========================= Footer template ============================
begin{document}
begingroup
setcellgapes{5pt}
makegapedcells
setlengthtabcolsep{4pt}
small
begin{tabularx}{linewidth}{|L|c|c|c|*{3}{L|}>{raggedrightarraybackslash}p{6em}|}
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities:}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endfirsthead
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities (cont.):}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endhead
multicolumn{7}{r}{textit{Continue to the next page:}} \
endfoot
endlastfoot
Study of structural detailing from design drawings and 'As built' drawings for several structures and its components from previous projects & makecell[tl]{Jul\2006\to\Sep\2006}
& 20~hrs
& makecell[tl]{RB-\DAP-\01}
& From total structural arrangements to detail drawing of each components, welding and bolt symbols
& To visualize the structure as well as the connections, to understand the erection scheme from design drawing e.g. splice detail & I had successfully completed my action plan. I shall be able to improve it through continuous learning from my job responsibility \
hline
& & & & & & \ hline
& & & & & & \ hline
& & & & & & \ hline
end{tabularx}
endgroup
end{document}
tables
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to create a multicolumn long table as shown below
I want to make first column wider; and reduce the width of column 2 and 4. Here is the latex file I tried. Please help me out.
documentclass[10pt,a4paper,landscape]{article}
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[nottoc]{tocbibind}
usepackage[margin=24mm,
bottom= 5mm,%
footskip=4baselineskip,
includefoot,
headheight=65pt
]{geometry}
usepackage{tikz}
usetikzlibrary{backgrounds, positioning, scopes}
tikzset{FOOT/.style = {
every node/.append style = {font=sffamilybfseries,
text=white,
align=center,
minimum height=15mm,
outer sep=0pt,
},
sx/.style = {xshift=##1mm}
}
}
usepackage{color,soul}
usepackage[usestackEOL]{stackengine}
usepackage{caption}
usepackage{placeins}
usepackage{subcaption}
usepackage{tcolorbox}
%The following package is used to write transpose of a matrix in nicer way
usepackage{amssymb}
%The following package is used to number items with alpha & roman
usepackage{enumitem}
usepackage{multirow}
% Set line spacing using the following package
usepackage{setspace}
usepackage{lastpage}
%% Useful packages
usepackage{amsmath}
%
usepackage{ragged2e} % <---
usepackage{array, ltablex, makecell, multirow}
keepXColumns
renewcommandtheadfont{bfseries}
renewcommandtheadgape{}
newcolumntype{L}{>{RaggedRighthspace{0pt}}X}
newcolumntype{C}{>{Centering arraybackslash}X}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
renewcommand{headrulewidth}{2pt}
fancyhead[RO]{Personal Development Record}
fancyfoot{} % clear all footer fields
%%========================= Footer template ============================
fancyfoot[O]{% odd pages
begin{tikzpicture}[FOOT,
remember picture, overlay,
node distance=0pt]
node (O1) [minimum width=25mm,
above right=of current page.south west]
{};
node (O2) [minimum width=0.5textwidth, align=left,
right=of O1]
{ Continuing Professional Development\
footnotesize
January 2019};
node (O3) [minimum width=0.5textwidth,
align=center,
right=of O2]
{ LarCoS\
footnotesize
Membership no. 123456qquad};
node (O4) [minimum width=25mm, font=sffamilybfseries,
right=of O3]
{thepage~of~pageref{LastPage}};
begin{scope}[on background layer]
fill[teal] (O1.south west) |- ([sx= 3] O3.north east)
-- ([sx=-3] O3.south east)
-- cycle;
fill[black] ([sx=-3] O2.south east) -- ([sx= 3] O2.north east) -|
(O4.south east) -- cycle;
path[white, line width=1mm, shorten >=-0.5mm, shorten < =-0.5mm]
([sx=-3] O2.south east) edge ([sx=3] O2.north east)
([sx=-3] O4.south west) edge ([sx=3] O4.north west);
end{scope}
end{tikzpicture}
} %odd page
%%%%==========================================
%%========================= Footer template ============================
begin{document}
begingroup
setcellgapes{5pt}
makegapedcells
setlengthtabcolsep{4pt}
small
begin{tabularx}{linewidth}{|L|c|c|c|*{3}{L|}>{raggedrightarraybackslash}p{6em}|}
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities:}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endfirsthead
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities (cont.):}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endhead
multicolumn{7}{r}{textit{Continue to the next page:}} \
endfoot
endlastfoot
Study of structural detailing from design drawings and 'As built' drawings for several structures and its components from previous projects & makecell[tl]{Jul\2006\to\Sep\2006}
& 20~hrs
& makecell[tl]{RB-\DAP-\01}
& From total structural arrangements to detail drawing of each components, welding and bolt symbols
& To visualize the structure as well as the connections, to understand the erection scheme from design drawing e.g. splice detail & I had successfully completed my action plan. I shall be able to improve it through continuous learning from my job responsibility \
hline
& & & & & & \ hline
& & & & & & \ hline
& & & & & & \ hline
end{tabularx}
endgroup
end{document}
tables
I am trying to create a multicolumn long table as shown below
I want to make first column wider; and reduce the width of column 2 and 4. Here is the latex file I tried. Please help me out.
documentclass[10pt,a4paper,landscape]{article}
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[nottoc]{tocbibind}
usepackage[margin=24mm,
bottom= 5mm,%
footskip=4baselineskip,
includefoot,
headheight=65pt
]{geometry}
usepackage{tikz}
usetikzlibrary{backgrounds, positioning, scopes}
tikzset{FOOT/.style = {
every node/.append style = {font=sffamilybfseries,
text=white,
align=center,
minimum height=15mm,
outer sep=0pt,
},
sx/.style = {xshift=##1mm}
}
}
usepackage{color,soul}
usepackage[usestackEOL]{stackengine}
usepackage{caption}
usepackage{placeins}
usepackage{subcaption}
usepackage{tcolorbox}
%The following package is used to write transpose of a matrix in nicer way
usepackage{amssymb}
%The following package is used to number items with alpha & roman
usepackage{enumitem}
usepackage{multirow}
% Set line spacing using the following package
usepackage{setspace}
usepackage{lastpage}
%% Useful packages
usepackage{amsmath}
%
usepackage{ragged2e} % <---
usepackage{array, ltablex, makecell, multirow}
keepXColumns
renewcommandtheadfont{bfseries}
renewcommandtheadgape{}
newcolumntype{L}{>{RaggedRighthspace{0pt}}X}
newcolumntype{C}{>{Centering arraybackslash}X}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
renewcommand{headrulewidth}{2pt}
fancyhead[RO]{Personal Development Record}
fancyfoot{} % clear all footer fields
%%========================= Footer template ============================
fancyfoot[O]{% odd pages
begin{tikzpicture}[FOOT,
remember picture, overlay,
node distance=0pt]
node (O1) [minimum width=25mm,
above right=of current page.south west]
{};
node (O2) [minimum width=0.5textwidth, align=left,
right=of O1]
{ Continuing Professional Development\
footnotesize
January 2019};
node (O3) [minimum width=0.5textwidth,
align=center,
right=of O2]
{ LarCoS\
footnotesize
Membership no. 123456qquad};
node (O4) [minimum width=25mm, font=sffamilybfseries,
right=of O3]
{thepage~of~pageref{LastPage}};
begin{scope}[on background layer]
fill[teal] (O1.south west) |- ([sx= 3] O3.north east)
-- ([sx=-3] O3.south east)
-- cycle;
fill[black] ([sx=-3] O2.south east) -- ([sx= 3] O2.north east) -|
(O4.south east) -- cycle;
path[white, line width=1mm, shorten >=-0.5mm, shorten < =-0.5mm]
([sx=-3] O2.south east) edge ([sx=3] O2.north east)
([sx=-3] O4.south west) edge ([sx=3] O4.north west);
end{scope}
end{tikzpicture}
} %odd page
%%%%==========================================
%%========================= Footer template ============================
begin{document}
begingroup
setcellgapes{5pt}
makegapedcells
setlengthtabcolsep{4pt}
small
begin{tabularx}{linewidth}{|L|c|c|c|*{3}{L|}>{raggedrightarraybackslash}p{6em}|}
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities:}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endfirsthead
hline
multicolumn{7}{|l|}{textbf{Job role and responsibilities (cont.):}} \
hline
multicolumn{4}{|c|}{textbf{Development Activity}}
& multicolumn{3}{c|}{textbf{Evaluation}} \
hline
textbf{Details of CPD activity}
& textbf{Dates} & textbf{Effective learning time}
& textbf{Dev. Plan ref.}
& textbf{Key learning points}
& textbf{Key benefits/value added}
& textbf{Further comments: was the plan successful? How can I improve it in future??}\
hline
endhead
multicolumn{7}{r}{textit{Continue to the next page:}} \
endfoot
endlastfoot
Study of structural detailing from design drawings and 'As built' drawings for several structures and its components from previous projects & makecell[tl]{Jul\2006\to\Sep\2006}
& 20~hrs
& makecell[tl]{RB-\DAP-\01}
& From total structural arrangements to detail drawing of each components, welding and bolt symbols
& To visualize the structure as well as the connections, to understand the erection scheme from design drawing e.g. splice detail & I had successfully completed my action plan. I shall be able to improve it through continuous learning from my job responsibility \
hline
& & & & & & \ hline
& & & & & & \ hline
& & & & & & \ hline
end{tabularx}
endgroup
end{document}
tables
tables
asked 1 hour ago
LarCos
425
425
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f464438%2fspecific-column-width-for-multicolumn-table%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