how to align dotfill in a wrapped line
up vote
3
down vote
favorite
how to align dotfill and square symbol in a longtable with wrapped lines?
I wrote this mwe:
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}p{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
result:
vertical-alignment longtable
add a comment |
up vote
3
down vote
favorite
how to align dotfill and square symbol in a longtable with wrapped lines?
I wrote this mwe:
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}p{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
result:
vertical-alignment longtable
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
how to align dotfill and square symbol in a longtable with wrapped lines?
I wrote this mwe:
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}p{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
result:
vertical-alignment longtable
how to align dotfill and square symbol in a longtable with wrapped lines?
I wrote this mwe:
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}p{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
result:
vertical-alignment longtable
vertical-alignment longtable
asked Nov 21 at 19:44
leonardo cesar
320314
320314
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
change p
to b
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}b{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by@{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)
– David Carlisle
Nov 22 at 12:23
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
change p
to b
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}b{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by@{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)
– David Carlisle
Nov 22 at 12:23
add a comment |
up vote
3
down vote
accepted
change p
to b
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}b{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by@{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)
– David Carlisle
Nov 22 at 12:23
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
change p
to b
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}b{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
change p
to b
documentclass{report}
usepackage{longtable}
usepackage{booktabs}
usepackage{multicol}
usepackage{wasysym}
usepackage{array}
begin{document}
newcommand{lsquare}{LargeSquare}
newcommand{lcheck}{LargeCheckedBox}
begin{longtable}{@{hspace{1cm}}b{12cm}<{dotfill}>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}}
caption{Criteria for risk classification of petrol filling stations according vicinity}
label{tab:criteria}\
toprule
multicolumn{1}{c}{} & textbf{Yes/No} \ midrule
endfirsthead
caption{Criteria for risk classification of petrol filling stations according vicinity (continuation)}\
multicolumn{1}{c}{} & textbf{Yes/No} \midrule
endhead
midrule
multicolumn{2}{r}{textit{footnotesize continues on the next page}} \
endfoot
midrule
multicolumn{2}{l}{Classification of petrol filling station:}\
multicolumn{2}{l}{hfill small{0} lsquare hfill small{1} lsquare hfill small{2} lsquare hfill small{3} lcheck}\
bottomrule
endlastfoot
multicolumn{2}{l}{bfseries Class 0} \cmidrule(r{9cm}){1-1}
There are none of the worsening factors of the following classes & lsquare \
multicolumn{2}{l}{bfseries Class 1} \cmidrule(r{9cm}){1-1}
Rainwater drainage network & lcheck \
Underground service network (water, sewage, telephone, electricity, etc.) & lcheck \
Septic tank in urban areas & lsquare \
Multi-family building with four floors & lsquare \
Asylum & lsquare \
Nursery & lsquare \
multicolumn{2}{l}{bfseries Class 2} \cmidrule(r{9cm}){1-1}
Multifamily building with more than four floors & lsquare \
Slum in elevation equal to or greater than the rank & lsquare \
Commercial office building with four or more floors & lsquare \
Well of water, artesian or not for domestic consumption & lsquare \
House of shows or temple & lsquare \
School & lsquare \
Hospital & lsquare \
multicolumn{2}{l}{bfseries Class 3} \cmidrule(r{9cm}){1-1}
Slum in lower quota than the petrol fuel station & lsquare \
Subway at lower level than the ground & lsquare \
Residential or commercial building built on a plot below ground & lsquare \
Tunnel below ground level & lsquare \
Residential, commercial or industrial building built in lower ground level & lsquare \
Industrial activities and risk operations & lsquare \
Subsoil water used to elevate the city's perimeter & lcheck \
multicolumn{1}{p{13cm}}{hspace{0.7cm} Superficial natural bodies of water to:} & multicolumn{1}{c}{} \
%begin{tabular}{@{hspace{0.5cm}}p{12cm}c}
hspace{0.5cm} Domestic Supply & lsquare \
hspace{0.5cm} Aquatic Community Protection & lsquare \
hspace{0.5cm} Contact Recreation (swimming, water skiing and diving) & lsquare \
hspace{0.5cm} Irrigation & lsquare \
hspace{0.5cm} Natural and intensive food production for human (National Environment Council (NEC) 20/2010) & lsquare \
%end{tabular}
end{longtable}
end{document}
answered Nov 21 at 19:58
David Carlisle
478k3811071841
478k3811071841
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by@{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)
– David Carlisle
Nov 22 at 12:23
add a comment |
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by@{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)
– David Carlisle
Nov 22 at 12:23
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
is it easy for the dotfill command to complete up to the symbol? @david-carlisle
– leonardo cesar
Nov 22 at 10:43
1
1
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace
>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by @{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)– David Carlisle
Nov 22 at 12:23
@leonardocesar you are forcing the final column to be final column to be 1cm wiide which is a lot wider than the symbol, so there is a gap, you could replace
>{centeringletnewline\arraybackslashhspace{0pt}}m{1cm}
by @{}c
so that column is as wide as the content with no inter-column space (and hide the width of the heading)– David Carlisle
Nov 22 at 12:23
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461185%2fhow-to-align-dotfill-in-a-wrapped-line%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