How to put “+” and “x” after hline in tabular, and reducing space?












2














I want to write "+" and "x" after hline, and I want reducing the space between number and number.



From this
enter image description here



become



enter image description here



This is my code



documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
begin{document}
begin{center}
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}









share|improve this question



























    2














    I want to write "+" and "x" after hline, and I want reducing the space between number and number.



    From this
    enter image description here



    become



    enter image description here



    This is my code



    documentclass[a4paper,12pt,oneside]{letter}
    usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
    begin{document}
    begin{center}
    begin{tabular}{cccccccc}
    &&&&6&0&0&1\
    &&&&&2&7&2\
    hline$times$
    &&&1&4&0&0&2\
    &&5&2&0&0&7&$cdot$\
    &1&4&0&0&2&$cdot$&$cdot$\
    hline$+$
    &2&1&3&4&2&7&2
    end{tabular}
    end{center}
    end{document}









    share|improve this question

























      2












      2








      2


      1





      I want to write "+" and "x" after hline, and I want reducing the space between number and number.



      From this
      enter image description here



      become



      enter image description here



      This is my code



      documentclass[a4paper,12pt,oneside]{letter}
      usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
      begin{document}
      begin{center}
      begin{tabular}{cccccccc}
      &&&&6&0&0&1\
      &&&&&2&7&2\
      hline$times$
      &&&1&4&0&0&2\
      &&5&2&0&0&7&$cdot$\
      &1&4&0&0&2&$cdot$&$cdot$\
      hline$+$
      &2&1&3&4&2&7&2
      end{tabular}
      end{center}
      end{document}









      share|improve this question













      I want to write "+" and "x" after hline, and I want reducing the space between number and number.



      From this
      enter image description here



      become



      enter image description here



      This is my code



      documentclass[a4paper,12pt,oneside]{letter}
      usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
      begin{document}
      begin{center}
      begin{tabular}{cccccccc}
      &&&&6&0&0&1\
      &&&&&2&7&2\
      hline$times$
      &&&1&4&0&0&2\
      &&5&2&0&0&7&$cdot$\
      &1&4&0&0&2&$cdot$&$cdot$\
      hline$+$
      &2&1&3&4&2&7&2
      end{tabular}
      end{center}
      end{document}






      spacing symbols






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      Ongky Denny Wijaya

      1037




      1037






















          2 Answers
          2






          active

          oldest

          votes


















          3














          Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.



          documentclass[a4paper,12pt,oneside]{letter}
          usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
          usepackage{tikz}
          usetikzlibrary{tikzmark,calc}
          begin{document}
          begin{center}
          begin{tabular}{*{8}{@{,}c}}
          &&&&6&0&0&1\
          &&&&&2&7&tikzmarknode{2a}{2}\
          hline %$times$
          &&&1&4&0&0&tikzmarknode{2b}{2}\
          &&5&2&0&0&7&$cdot$\
          &1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
          hline%$+$
          &2&1&3&4&2&7&tikzmarknode{2c}{2}
          end{tabular}
          begin{tikzpicture}[overlay,remember picture]
          node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
          node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
          end{tikzpicture}
          end{center}
          end{document}


          enter image description here






          share|improve this answer























          • +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
            – Mico
            26 mins ago





















          0














          To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}.



          enter image description here



          documentclass[a4paper,12pt,oneside]{letter}
          usepackage[margin=2cm]{geometry}
          begin{document}
          begin{center}
          setlengthtabcolsep{0pt} % <-- new
          begin{tabular}{cccccccc}
          &&&&6&0&0&1\
          &&&&&2&7&2\
          hline$times$
          &&&1&4&0&0&2\
          &&5&2&0&0&7&$cdot$\
          &1&4&0&0&2&$cdot$&$cdot$\
          hline$+$
          &2&1&3&4&2&7&2
          end{tabular}
          end{center}
          end{document}





          share|improve this answer





















            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',
            autoActivateHeartbeat: false,
            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%2f467054%2fhow-to-put-and-x-after-hline-in-tabular-and-reducing-space%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.



            documentclass[a4paper,12pt,oneside]{letter}
            usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
            usepackage{tikz}
            usetikzlibrary{tikzmark,calc}
            begin{document}
            begin{center}
            begin{tabular}{*{8}{@{,}c}}
            &&&&6&0&0&1\
            &&&&&2&7&tikzmarknode{2a}{2}\
            hline %$times$
            &&&1&4&0&0&tikzmarknode{2b}{2}\
            &&5&2&0&0&7&$cdot$\
            &1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
            hline%$+$
            &2&1&3&4&2&7&tikzmarknode{2c}{2}
            end{tabular}
            begin{tikzpicture}[overlay,remember picture]
            node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
            node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
            end{tikzpicture}
            end{center}
            end{document}


            enter image description here






            share|improve this answer























            • +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
              – Mico
              26 mins ago


















            3














            Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.



            documentclass[a4paper,12pt,oneside]{letter}
            usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
            usepackage{tikz}
            usetikzlibrary{tikzmark,calc}
            begin{document}
            begin{center}
            begin{tabular}{*{8}{@{,}c}}
            &&&&6&0&0&1\
            &&&&&2&7&tikzmarknode{2a}{2}\
            hline %$times$
            &&&1&4&0&0&tikzmarknode{2b}{2}\
            &&5&2&0&0&7&$cdot$\
            &1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
            hline%$+$
            &2&1&3&4&2&7&tikzmarknode{2c}{2}
            end{tabular}
            begin{tikzpicture}[overlay,remember picture]
            node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
            node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
            end{tikzpicture}
            end{center}
            end{document}


            enter image description here






            share|improve this answer























            • +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
              – Mico
              26 mins ago
















            3












            3








            3






            Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.



            documentclass[a4paper,12pt,oneside]{letter}
            usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
            usepackage{tikz}
            usetikzlibrary{tikzmark,calc}
            begin{document}
            begin{center}
            begin{tabular}{*{8}{@{,}c}}
            &&&&6&0&0&1\
            &&&&&2&7&tikzmarknode{2a}{2}\
            hline %$times$
            &&&1&4&0&0&tikzmarknode{2b}{2}\
            &&5&2&0&0&7&$cdot$\
            &1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
            hline%$+$
            &2&1&3&4&2&7&tikzmarknode{2c}{2}
            end{tabular}
            begin{tikzpicture}[overlay,remember picture]
            node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
            node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
            end{tikzpicture}
            end{center}
            end{document}


            enter image description here






            share|improve this answer














            Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.



            documentclass[a4paper,12pt,oneside]{letter}
            usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
            usepackage{tikz}
            usetikzlibrary{tikzmark,calc}
            begin{document}
            begin{center}
            begin{tabular}{*{8}{@{,}c}}
            &&&&6&0&0&1\
            &&&&&2&7&tikzmarknode{2a}{2}\
            hline %$times$
            &&&1&4&0&0&tikzmarknode{2b}{2}\
            &&5&2&0&0&7&$cdot$\
            &1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
            hline%$+$
            &2&1&3&4&2&7&tikzmarknode{2c}{2}
            end{tabular}
            begin{tikzpicture}[overlay,remember picture]
            node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
            node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
            end{tikzpicture}
            end{center}
            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 3 hours ago

























            answered 4 hours ago









            marmot

            85.2k495179




            85.2k495179












            • +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
              – Mico
              26 mins ago




















            • +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
              – Mico
              26 mins ago


















            +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
            – Mico
            26 mins ago






            +1. As a "good housekeeping" measure, maybe also replace left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm with margin=2cm?
            – Mico
            26 mins ago













            0














            To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}.



            enter image description here



            documentclass[a4paper,12pt,oneside]{letter}
            usepackage[margin=2cm]{geometry}
            begin{document}
            begin{center}
            setlengthtabcolsep{0pt} % <-- new
            begin{tabular}{cccccccc}
            &&&&6&0&0&1\
            &&&&&2&7&2\
            hline$times$
            &&&1&4&0&0&2\
            &&5&2&0&0&7&$cdot$\
            &1&4&0&0&2&$cdot$&$cdot$\
            hline$+$
            &2&1&3&4&2&7&2
            end{tabular}
            end{center}
            end{document}





            share|improve this answer


























              0














              To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}.



              enter image description here



              documentclass[a4paper,12pt,oneside]{letter}
              usepackage[margin=2cm]{geometry}
              begin{document}
              begin{center}
              setlengthtabcolsep{0pt} % <-- new
              begin{tabular}{cccccccc}
              &&&&6&0&0&1\
              &&&&&2&7&2\
              hline$times$
              &&&1&4&0&0&2\
              &&5&2&0&0&7&$cdot$\
              &1&4&0&0&2&$cdot$&$cdot$\
              hline$+$
              &2&1&3&4&2&7&2
              end{tabular}
              end{center}
              end{document}





              share|improve this answer
























                0












                0








                0






                To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}.



                enter image description here



                documentclass[a4paper,12pt,oneside]{letter}
                usepackage[margin=2cm]{geometry}
                begin{document}
                begin{center}
                setlengthtabcolsep{0pt} % <-- new
                begin{tabular}{cccccccc}
                &&&&6&0&0&1\
                &&&&&2&7&2\
                hline$times$
                &&&1&4&0&0&2\
                &&5&2&0&0&7&$cdot$\
                &1&4&0&0&2&$cdot$&$cdot$\
                hline$+$
                &2&1&3&4&2&7&2
                end{tabular}
                end{center}
                end{document}





                share|improve this answer












                To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}.



                enter image description here



                documentclass[a4paper,12pt,oneside]{letter}
                usepackage[margin=2cm]{geometry}
                begin{document}
                begin{center}
                setlengthtabcolsep{0pt} % <-- new
                begin{tabular}{cccccccc}
                &&&&6&0&0&1\
                &&&&&2&7&2\
                hline$times$
                &&&1&4&0&0&2\
                &&5&2&0&0&7&$cdot$\
                &1&4&0&0&2&$cdot$&$cdot$\
                hline$+$
                &2&1&3&4&2&7&2
                end{tabular}
                end{center}
                end{document}






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 26 mins ago









                Mico

                273k30369756




                273k30369756






























                    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%2f467054%2fhow-to-put-and-x-after-hline-in-tabular-and-reducing-space%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

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    Refactoring coordinates for Minecraft Pi buildings written in Python