Why do spaces stop my hrules from all being flush with each other?











up vote
0
down vote

favorite












I'm trying to make a typeset form using some custom commands that I've
built. Part of that effort is making "blanks": macros for blank space
where someone can write something in after the document has been
printed. Their definition is in the formfields package (information about how to get that is at the bottom of the post).



I ran into the following issue: I had some of the blanks inside of
tables, and the blanks in the left column weren't coming up flush to
the end of first column. Eventually, I traced that to the following
change, demonstrated in these two tables from this MWE:



documentclass[draft]{article}
usepackage{tabu}
usepackage{formfields}
usepackage[left=1.0in, right=.5in, top=.7in, bottom=.7in]{geometry}

begin{document}
% not flush, and blanks don't all come up to same place.
begin{tabu} {X<{ hspace{.5em} }>{ hspace{.5em} }X}
field{thing}& hrulefill\
blank & hrulefill\
field{thing}& hrulefill\
end{tabu}

% all blanks flush with each other at right end of 1st column.
begin{tabu} {X<{hspace{.5em}}>{hspace{.5em}}X}
field{thing}& hrulefill\
blank & hrulefill\
field{thing}& hrulefill\
end{tabu}

% same as second table.
begin{tabu} {XX}
field{thing}& hrulefill\
blank & hrulefill\
field{thing}& hrulefill\
end{tabu}
end{document}


Why do the blanks and fields all come up flush against the end of the
first column in the second and third tables, but not the first? I
could understand if I were doing something different to each row, but
in both of these tables, I don't think I'm doing anything different.



Part of the problem seems to be the spaces within the < and >
column specifiers in my table, because the second table from the MWE
has the spaces removed, and all the blanks come up flush with the end
of the first column. I'm not suprised the spaces stop the blanks from becoming flush with the right end of the 1st column, but I don't understand why the different blanks would act differently.



Additional Resources



formfields.sty can be obtained from this



Picture of the trouble



formfields.sty can be obtained
here









share


























    up vote
    0
    down vote

    favorite












    I'm trying to make a typeset form using some custom commands that I've
    built. Part of that effort is making "blanks": macros for blank space
    where someone can write something in after the document has been
    printed. Their definition is in the formfields package (information about how to get that is at the bottom of the post).



    I ran into the following issue: I had some of the blanks inside of
    tables, and the blanks in the left column weren't coming up flush to
    the end of first column. Eventually, I traced that to the following
    change, demonstrated in these two tables from this MWE:



    documentclass[draft]{article}
    usepackage{tabu}
    usepackage{formfields}
    usepackage[left=1.0in, right=.5in, top=.7in, bottom=.7in]{geometry}

    begin{document}
    % not flush, and blanks don't all come up to same place.
    begin{tabu} {X<{ hspace{.5em} }>{ hspace{.5em} }X}
    field{thing}& hrulefill\
    blank & hrulefill\
    field{thing}& hrulefill\
    end{tabu}

    % all blanks flush with each other at right end of 1st column.
    begin{tabu} {X<{hspace{.5em}}>{hspace{.5em}}X}
    field{thing}& hrulefill\
    blank & hrulefill\
    field{thing}& hrulefill\
    end{tabu}

    % same as second table.
    begin{tabu} {XX}
    field{thing}& hrulefill\
    blank & hrulefill\
    field{thing}& hrulefill\
    end{tabu}
    end{document}


    Why do the blanks and fields all come up flush against the end of the
    first column in the second and third tables, but not the first? I
    could understand if I were doing something different to each row, but
    in both of these tables, I don't think I'm doing anything different.



    Part of the problem seems to be the spaces within the < and >
    column specifiers in my table, because the second table from the MWE
    has the spaces removed, and all the blanks come up flush with the end
    of the first column. I'm not suprised the spaces stop the blanks from becoming flush with the right end of the 1st column, but I don't understand why the different blanks would act differently.



    Additional Resources



    formfields.sty can be obtained from this



    Picture of the trouble



    formfields.sty can be obtained
    here









    share
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to make a typeset form using some custom commands that I've
      built. Part of that effort is making "blanks": macros for blank space
      where someone can write something in after the document has been
      printed. Their definition is in the formfields package (information about how to get that is at the bottom of the post).



      I ran into the following issue: I had some of the blanks inside of
      tables, and the blanks in the left column weren't coming up flush to
      the end of first column. Eventually, I traced that to the following
      change, demonstrated in these two tables from this MWE:



      documentclass[draft]{article}
      usepackage{tabu}
      usepackage{formfields}
      usepackage[left=1.0in, right=.5in, top=.7in, bottom=.7in]{geometry}

      begin{document}
      % not flush, and blanks don't all come up to same place.
      begin{tabu} {X<{ hspace{.5em} }>{ hspace{.5em} }X}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}

      % all blanks flush with each other at right end of 1st column.
      begin{tabu} {X<{hspace{.5em}}>{hspace{.5em}}X}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}

      % same as second table.
      begin{tabu} {XX}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}
      end{document}


      Why do the blanks and fields all come up flush against the end of the
      first column in the second and third tables, but not the first? I
      could understand if I were doing something different to each row, but
      in both of these tables, I don't think I'm doing anything different.



      Part of the problem seems to be the spaces within the < and >
      column specifiers in my table, because the second table from the MWE
      has the spaces removed, and all the blanks come up flush with the end
      of the first column. I'm not suprised the spaces stop the blanks from becoming flush with the right end of the 1st column, but I don't understand why the different blanks would act differently.



      Additional Resources



      formfields.sty can be obtained from this



      Picture of the trouble



      formfields.sty can be obtained
      here









      share













      I'm trying to make a typeset form using some custom commands that I've
      built. Part of that effort is making "blanks": macros for blank space
      where someone can write something in after the document has been
      printed. Their definition is in the formfields package (information about how to get that is at the bottom of the post).



      I ran into the following issue: I had some of the blanks inside of
      tables, and the blanks in the left column weren't coming up flush to
      the end of first column. Eventually, I traced that to the following
      change, demonstrated in these two tables from this MWE:



      documentclass[draft]{article}
      usepackage{tabu}
      usepackage{formfields}
      usepackage[left=1.0in, right=.5in, top=.7in, bottom=.7in]{geometry}

      begin{document}
      % not flush, and blanks don't all come up to same place.
      begin{tabu} {X<{ hspace{.5em} }>{ hspace{.5em} }X}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}

      % all blanks flush with each other at right end of 1st column.
      begin{tabu} {X<{hspace{.5em}}>{hspace{.5em}}X}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}

      % same as second table.
      begin{tabu} {XX}
      field{thing}& hrulefill\
      blank & hrulefill\
      field{thing}& hrulefill\
      end{tabu}
      end{document}


      Why do the blanks and fields all come up flush against the end of the
      first column in the second and third tables, but not the first? I
      could understand if I were doing something different to each row, but
      in both of these tables, I don't think I'm doing anything different.



      Part of the problem seems to be the spaces within the < and >
      column specifiers in my table, because the second table from the MWE
      has the spaces removed, and all the blanks come up flush with the end
      of the first column. I'm not suprised the spaces stop the blanks from becoming flush with the right end of the 1st column, but I don't understand why the different blanks would act differently.



      Additional Resources



      formfields.sty can be obtained from this



      Picture of the trouble



      formfields.sty can be obtained
      here







      spacing





      share












      share










      share



      share










      asked 6 mins ago









      Beelzebielsk

      306




      306



























          active

          oldest

          votes











          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%2f463456%2fwhy-do-spaces-stop-my-hrules-from-all-being-flush-with-each-other%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463456%2fwhy-do-spaces-stop-my-hrules-from-all-being-flush-with-each-other%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt