Align start of table text with main textUse column-separator & (ampersand) inside newenvironmentHow to...

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

How do conventional missiles fly?

In Romance of the Three Kingdoms why do people still use bamboo sticks when papers are already invented?

Is "remove commented out code" correct English?

Can I make "comment-region" comment empty lines?

Do I have a twin with permutated remainders?

Will google still index a page if I use a $_SESSION variable?

What is the word for reserving something for yourself before others do?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Combinations of multiple lists

Anagram holiday

Can I use a neutral wire from another outlet to repair a broken neutral?

Did converts (ger tzedek) in ancient Israel own land?

How to show the equivalence between the regularized regression and their constraint formulas using KKT

Assassin's bullet with mercury

Watching something be written to a file live with tail

What killed these X2 caps?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Why is Collection not simply treated as Collection<?>

Forgetting the musical notes while performing in concert

Why are electrically insulating heatsinks so rare? Is it just cost?

What is going on with Captain Marvel's blood colour?

How much of data wrangling is a data scientist's job?

How can I make my BBEG immortal short of making them a Lich or Vampire?



Align start of table text with main text


Use column-separator & (ampersand) inside newenvironmentHow to format table with long column head entries?Know the cell width with tabular* or include a paragraph box without specifying its widthTabular and grid typesettingVertical alignment in a tabular environment with asymptote imageMaking latex table aligned with exterior article column text (on the left side)“Undefined control sequence” Regression table from StataCan't get tables to align with each other or text widthHow to place the figure caption to the left/right? Not aligning, but moving itA combination of an itemized list and a table













2















Consider this example



documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]

noindent
begin{tabular}{ll}
A & B
end{tabular}

{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}

end{document}


It has the output:



enter image description here



I would like to align the start of the text in table with the beginning of main text.



in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.



What would be a better solution?










share|improve this question


















  • 2





    begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

    – Phelype Oleinik
    4 hours ago
















2















Consider this example



documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]

noindent
begin{tabular}{ll}
A & B
end{tabular}

{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}

end{document}


It has the output:



enter image description here



I would like to align the start of the text in table with the beginning of main text.



in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.



What would be a better solution?










share|improve this question


















  • 2





    begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

    – Phelype Oleinik
    4 hours ago














2












2








2








Consider this example



documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]

noindent
begin{tabular}{ll}
A & B
end{tabular}

{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}

end{document}


It has the output:



enter image description here



I would like to align the start of the text in table with the beginning of main text.



in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.



What would be a better solution?










share|improve this question














Consider this example



documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]

noindent
begin{tabular}{ll}
A & B
end{tabular}

{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}

end{document}


It has the output:



enter image description here



I would like to align the start of the text in table with the beginning of main text.



in the second table I try to use setlength{tabcolsep}{0pt} which achieves this effect with the undesired result of disappearance of separation between table columns.



What would be a better solution?







tables alignment






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









ViestursViesturs

1,88241127




1,88241127








  • 2





    begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

    – Phelype Oleinik
    4 hours ago














  • 2





    begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

    – Phelype Oleinik
    4 hours ago








2




2





begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

– Phelype Oleinik
4 hours ago





begin{tabular}{@{}ll} will remove the tabcolsep from the beginning of the first column only.

– Phelype Oleinik
4 hours ago










2 Answers
2






active

oldest

votes


















1














To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):




The column separator can be specified with the <code>@{...}</code> construct. This command kills the inter-column space and replaces it with whatever is between the curly braces. One common use for this command is explained below in the decimal alignment problem. Another possible application is to suppress leading space in a table with <code>@{}</code>.




In your document:



documentclass{article}
usepackage{lipsum}
begin{document}
noindentlipsum[1][1-2]

noindent
begin{tabular}{ll}
A & B
end{tabular}

{
setlength{tabcolsep}{0pt}
noindent
begin{tabular}{ll}
C & D
end{tabular}
}

noindent
begin{tabular}{@{}ll}
A & B
end{tabular}

end{document}



enter image description here







share|improve this answer































    1














    Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.



    documentclass{article}
    usepackage{lipsum,tabstackengine}
    strutlongstacks{T}
    begin{document}
    noindentlipsum[1]

    noindent
    tabularLongunderstack{ll}{ Aa & B\C & Dd}

    noindent
    setstacktabulargap{2em}%
    tabularLongunderstack{ll}{ Aa & B\C & Dd}
    end{document}


    enter image description here






    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%2f483232%2falign-start-of-table-text-with-main-text%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









      1














      To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):




      The column separator can be specified with the <code>@{...}</code> construct. This command kills the inter-column space and replaces it with whatever is between the curly braces. One common use for this command is explained below in the decimal alignment problem. Another possible application is to suppress leading space in a table with <code>@{}</code>.




      In your document:



      documentclass{article}
      usepackage{lipsum}
      begin{document}
      noindentlipsum[1][1-2]

      noindent
      begin{tabular}{ll}
      A & B
      end{tabular}

      {
      setlength{tabcolsep}{0pt}
      noindent
      begin{tabular}{ll}
      C & D
      end{tabular}
      }

      noindent
      begin{tabular}{@{}ll}
      A & B
      end{tabular}

      end{document}



      enter image description here







      share|improve this answer




























        1














        To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):




        The column separator can be specified with the <code>@{...}</code> construct. This command kills the inter-column space and replaces it with whatever is between the curly braces. One common use for this command is explained below in the decimal alignment problem. Another possible application is to suppress leading space in a table with <code>@{}</code>.




        In your document:



        documentclass{article}
        usepackage{lipsum}
        begin{document}
        noindentlipsum[1][1-2]

        noindent
        begin{tabular}{ll}
        A & B
        end{tabular}

        {
        setlength{tabcolsep}{0pt}
        noindent
        begin{tabular}{ll}
        C & D
        end{tabular}
        }

        noindent
        begin{tabular}{@{}ll}
        A & B
        end{tabular}

        end{document}



        enter image description here







        share|improve this answer


























          1












          1








          1







          To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):




          The column separator can be specified with the <code>@{...}</code> construct. This command kills the inter-column space and replaces it with whatever is between the curly braces. One common use for this command is explained below in the decimal alignment problem. Another possible application is to suppress leading space in a table with <code>@{}</code>.




          In your document:



          documentclass{article}
          usepackage{lipsum}
          begin{document}
          noindentlipsum[1][1-2]

          noindent
          begin{tabular}{ll}
          A & B
          end{tabular}

          {
          setlength{tabcolsep}{0pt}
          noindent
          begin{tabular}{ll}
          C & D
          end{tabular}
          }

          noindent
          begin{tabular}{@{}ll}
          A & B
          end{tabular}

          end{document}



          enter image description here







          share|improve this answer













          To keep the tabcolsep untouched everywhere else but remove it you can use the @{...} notation. From section 2.11.6 of the The Not So Short Introduction to LaTeX2ε (texdoc lshort):




          The column separator can be specified with the <code>@{...}</code> construct. This command kills the inter-column space and replaces it with whatever is between the curly braces. One common use for this command is explained below in the decimal alignment problem. Another possible application is to suppress leading space in a table with <code>@{}</code>.




          In your document:



          documentclass{article}
          usepackage{lipsum}
          begin{document}
          noindentlipsum[1][1-2]

          noindent
          begin{tabular}{ll}
          A & B
          end{tabular}

          {
          setlength{tabcolsep}{0pt}
          noindent
          begin{tabular}{ll}
          C & D
          end{tabular}
          }

          noindent
          begin{tabular}{@{}ll}
          A & B
          end{tabular}

          end{document}



          enter image description here








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 4 hours ago









          Phelype OleinikPhelype Oleinik

          24.8k54689




          24.8k54689























              1














              Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.



              documentclass{article}
              usepackage{lipsum,tabstackengine}
              strutlongstacks{T}
              begin{document}
              noindentlipsum[1]

              noindent
              tabularLongunderstack{ll}{ Aa & B\C & Dd}

              noindent
              setstacktabulargap{2em}%
              tabularLongunderstack{ll}{ Aa & B\C & Dd}
              end{document}


              enter image description here






              share|improve this answer




























                1














                Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.



                documentclass{article}
                usepackage{lipsum,tabstackengine}
                strutlongstacks{T}
                begin{document}
                noindentlipsum[1]

                noindent
                tabularLongunderstack{ll}{ Aa & B\C & Dd}

                noindent
                setstacktabulargap{2em}%
                tabularLongunderstack{ll}{ Aa & B\C & Dd}
                end{document}


                enter image description here






                share|improve this answer


























                  1












                  1








                  1







                  Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.



                  documentclass{article}
                  usepackage{lipsum,tabstackengine}
                  strutlongstacks{T}
                  begin{document}
                  noindentlipsum[1]

                  noindent
                  tabularLongunderstack{ll}{ Aa & B\C & Dd}

                  noindent
                  setstacktabulargap{2em}%
                  tabularLongunderstack{ll}{ Aa & B\C & Dd}
                  end{document}


                  enter image description here






                  share|improve this answer













                  Depending on the particulars of the tabular, a tabular stack might be ideal. There are never any leading or trailing gaps on the stack; yet, the intercolumn gap is fully settable.



                  documentclass{article}
                  usepackage{lipsum,tabstackengine}
                  strutlongstacks{T}
                  begin{document}
                  noindentlipsum[1]

                  noindent
                  tabularLongunderstack{ll}{ Aa & B\C & Dd}

                  noindent
                  setstacktabulargap{2em}%
                  tabularLongunderstack{ll}{ Aa & B\C & Dd}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 4 hours ago









                  Steven B. SegletesSteven B. Segletes

                  161k9205415




                  161k9205415






























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483232%2falign-start-of-table-text-with-main-text%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

                      Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

                      (1602) Indiana Índice Designación y nombre Características orbitales Véase...

                      Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...