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:



enter image description here










share|improve this question


























    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:



    enter image description here










    share|improve this question
























      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:



      enter image description here










      share|improve this question













      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:



      enter image description here







      vertical-alignment longtable






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 19:44









      leonardo cesar

      320314




      320314






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          enter image description here



          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}





          share|improve this answer





















          • 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













          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          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

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          enter image description here



          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}





          share|improve this answer





















          • 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

















          up vote
          3
          down vote



          accepted










          enter image description here



          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}





          share|improve this answer





















          • 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















          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          enter image description here



          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}





          share|improve this answer












          enter image description here



          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}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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




















          • 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




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?