How to align the contents in longtable? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)how to align longtable at the left sideHow to get longtable to make the rows flushbottom?How to vertically align cell in a longtable environmentVertical align in longtableHow to make whole longtable align to the top?How working position label longtable?How to get a “thousands” separator in `spreadtab` (wrapping `longtable`)?Top align cell in longtable with variable heightCant align longtable cell to the topHow to align contents in tabbing in longtable?

Did pre-Columbian Americans know the spherical shape of the Earth?

Is a copyright notice with a non-existent name be invalid?

Can two people see the same photon?

Weaponising the Grasp-at-a-Distance spell

Is it OK if I do not take the receipt in Germany?

Searching extreme points of polyhedron

How many time has Arya actually used Needle?

Is there night in Alpha Complex?

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Does the universe have a fixed centre of mass?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Why are current probes so expensive?

Centre cell vertically in tabularx across multiple multiline rows

Improvising over quartal voicings

Keep at all times, the minus sign above aligned with minus sign below

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

How to name indistinguishable henchmen in a screenplay?

Is the Mordenkainen's Sword spell underpowered?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

draw a pulley system

Why does BitLocker not use RSA?

Fit odd number of triplets in a measure?

Can I take recommendation from someone I met at a conference?

Can gravitational waves pass through a black hole?



How to align the contents in longtable?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)how to align longtable at the left sideHow to get longtable to make the rows flushbottom?How to vertically align cell in a longtable environmentVertical align in longtableHow to make whole longtable align to the top?How working position label longtable?How to get a “thousands” separator in `spreadtab` (wrapping `longtable`)?Top align cell in longtable with variable heightCant align longtable cell to the topHow to align contents in tabbing in longtable?










1















I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text.



documentclass[a4paper, pdftex, english, 10.25pt]scrartcl
usepackagetimes
usepackage[top=1cm, bottom=1cm]geometry
usepackage[utf8]inputenc
usepackage[english]babel
usepackagelmodern
usepackagelongtable
usepackagelistings
usepackageenumitem
usepackage[table]xcolor
usepackage[export]adjustbox
usepackagebooktabs
usepackagepdfpages
usepackagesetspace


newcommandtabitem~~llaptextbullet~~~~~


definecolorcolorRGB0,0,225
setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
pagenumberinggobble

begindocument


LARGE textbfCurriculum Vitae\
normalsize
setlengthLTpre0ptsetlengthLTpost0pt
beginspacing0.9
beginlongtable[l]@p49mmp110mm
arrayrulecolorcolortoprule
vspace3mm
underlinetextbfPersonal Data \

textbfName & abcde\

endlongtable
endspacing

enddocument


I tried around with option in longtable indent, noindent and so on, but can still not obtain the effect I want.



Current pdf:



enter image description here



How can these two problems be solved?










share|improve this question



















  • 2





    To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

    – leandriis
    Dec 31 '18 at 9:24







  • 2





    the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

    – David Carlisle
    Dec 31 '18 at 9:54











  • @leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

    – Aqqqq
    Jan 4 at 5:15











  • @DavidCarlisle Sorry, I just had time to correct the question.

    – Aqqqq
    Jan 4 at 5:29















1















I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text.



documentclass[a4paper, pdftex, english, 10.25pt]scrartcl
usepackagetimes
usepackage[top=1cm, bottom=1cm]geometry
usepackage[utf8]inputenc
usepackage[english]babel
usepackagelmodern
usepackagelongtable
usepackagelistings
usepackageenumitem
usepackage[table]xcolor
usepackage[export]adjustbox
usepackagebooktabs
usepackagepdfpages
usepackagesetspace


newcommandtabitem~~llaptextbullet~~~~~


definecolorcolorRGB0,0,225
setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
pagenumberinggobble

begindocument


LARGE textbfCurriculum Vitae\
normalsize
setlengthLTpre0ptsetlengthLTpost0pt
beginspacing0.9
beginlongtable[l]@p49mmp110mm
arrayrulecolorcolortoprule
vspace3mm
underlinetextbfPersonal Data \

textbfName & abcde\

endlongtable
endspacing

enddocument


I tried around with option in longtable indent, noindent and so on, but can still not obtain the effect I want.



Current pdf:



enter image description here



How can these two problems be solved?










share|improve this question



















  • 2





    To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

    – leandriis
    Dec 31 '18 at 9:24







  • 2





    the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

    – David Carlisle
    Dec 31 '18 at 9:54











  • @leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

    – Aqqqq
    Jan 4 at 5:15











  • @DavidCarlisle Sorry, I just had time to correct the question.

    – Aqqqq
    Jan 4 at 5:29













1












1








1


0






I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text.



documentclass[a4paper, pdftex, english, 10.25pt]scrartcl
usepackagetimes
usepackage[top=1cm, bottom=1cm]geometry
usepackage[utf8]inputenc
usepackage[english]babel
usepackagelmodern
usepackagelongtable
usepackagelistings
usepackageenumitem
usepackage[table]xcolor
usepackage[export]adjustbox
usepackagebooktabs
usepackagepdfpages
usepackagesetspace


newcommandtabitem~~llaptextbullet~~~~~


definecolorcolorRGB0,0,225
setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
pagenumberinggobble

begindocument


LARGE textbfCurriculum Vitae\
normalsize
setlengthLTpre0ptsetlengthLTpost0pt
beginspacing0.9
beginlongtable[l]@p49mmp110mm
arrayrulecolorcolortoprule
vspace3mm
underlinetextbfPersonal Data \

textbfName & abcde\

endlongtable
endspacing

enddocument


I tried around with option in longtable indent, noindent and so on, but can still not obtain the effect I want.



Current pdf:



enter image description here



How can these two problems be solved?










share|improve this question
















I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text.



documentclass[a4paper, pdftex, english, 10.25pt]scrartcl
usepackagetimes
usepackage[top=1cm, bottom=1cm]geometry
usepackage[utf8]inputenc
usepackage[english]babel
usepackagelmodern
usepackagelongtable
usepackagelistings
usepackageenumitem
usepackage[table]xcolor
usepackage[export]adjustbox
usepackagebooktabs
usepackagepdfpages
usepackagesetspace


newcommandtabitem~~llaptextbullet~~~~~


definecolorcolorRGB0,0,225
setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
pagenumberinggobble

begindocument


LARGE textbfCurriculum Vitae\
normalsize
setlengthLTpre0ptsetlengthLTpost0pt
beginspacing0.9
beginlongtable[l]@p49mmp110mm
arrayrulecolorcolortoprule
vspace3mm
underlinetextbfPersonal Data \

textbfName & abcde\

endlongtable
endspacing

enddocument


I tried around with option in longtable indent, noindent and so on, but can still not obtain the effect I want.



Current pdf:



enter image description here



How can these two problems be solved?







horizontal-alignment vertical-alignment longtable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 5:28







Aqqqq

















asked Dec 31 '18 at 6:05









AqqqqAqqqq

1406




1406







  • 2





    To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

    – leandriis
    Dec 31 '18 at 9:24







  • 2





    the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

    – David Carlisle
    Dec 31 '18 at 9:54











  • @leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

    – Aqqqq
    Jan 4 at 5:15











  • @DavidCarlisle Sorry, I just had time to correct the question.

    – Aqqqq
    Jan 4 at 5:29












  • 2





    To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

    – leandriis
    Dec 31 '18 at 9:24







  • 2





    the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

    – David Carlisle
    Dec 31 '18 at 9:54











  • @leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

    – Aqqqq
    Jan 4 at 5:15











  • @DavidCarlisle Sorry, I just had time to correct the question.

    – Aqqqq
    Jan 4 at 5:29







2




2





To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

– leandriis
Dec 31 '18 at 9:24






To me it is a bit unclear how exactly the desired alignment should look like. Is this what you want to achieve? i.stack.imgur.com/cj16w.png

– leandriis
Dec 31 '18 at 9:24





2




2





the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

– David Carlisle
Dec 31 '18 at 9:54





the code you post does not produce the output that you show, Name and abcde are on the same line, also you get warnings from the incorrect option 1.25pt and from the incorrect \ after Curriculum Vitae.

– David Carlisle
Dec 31 '18 at 9:54













@leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

– Aqqqq
Jan 4 at 5:15





@leandriis Yes. I want all lines to be aligned vertically (Sorry for the late reply.) (Although I think that the first line is a little to the right instead of being completely aligned to the other two lines.)

– Aqqqq
Jan 4 at 5:15













@DavidCarlisle Sorry, I just had time to correct the question.

– Aqqqq
Jan 4 at 5:29





@DavidCarlisle Sorry, I just had time to correct the question.

– Aqqqq
Jan 4 at 5:29










1 Answer
1






active

oldest

votes


















1














Put the title within the longtable with a multicolumn.



Leave out the vspace3mm and use \[3mm] instead.



Shorten the column width to avoid Overfull hbox warning.



documentclass[a4paper, english]scrartcl
usepackagetimes
usepackage[top=1cm, bottom=1cm]geometry
usepackage[utf8]inputenc
usepackage[english]babel
usepackagelmodern
usepackagelongtable
usepackagelistings
usepackageenumitem
usepackage[table]xcolor
usepackage[export]adjustbox
usepackagebooktabs
usepackagepdfpages
usepackagesetspace

newcommandtabitem~~llaptextbullet~~~~~

definecolorcolorRGB0,0,225
setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
pagenumberinggobble

begindocument
setlengthLTpre0ptsetlengthLTpost0pt
beginspacing0.9
beginlongtable[l]@p40mmp100mm
multicolumn2@lLARGEtextbfCurriculum Vitae\
arrayrulecolorcolortoprule
underlinetextbfPersonal Data\[3mm]
textbfName & abcde\
endlongtable
endspacing
enddocument


enter image description here





share























    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%2f467992%2fhow-to-align-the-contents-in-longtable%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









    1














    Put the title within the longtable with a multicolumn.



    Leave out the vspace3mm and use \[3mm] instead.



    Shorten the column width to avoid Overfull hbox warning.



    documentclass[a4paper, english]scrartcl
    usepackagetimes
    usepackage[top=1cm, bottom=1cm]geometry
    usepackage[utf8]inputenc
    usepackage[english]babel
    usepackagelmodern
    usepackagelongtable
    usepackagelistings
    usepackageenumitem
    usepackage[table]xcolor
    usepackage[export]adjustbox
    usepackagebooktabs
    usepackagepdfpages
    usepackagesetspace

    newcommandtabitem~~llaptextbullet~~~~~

    definecolorcolorRGB0,0,225
    setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
    pagenumberinggobble

    begindocument
    setlengthLTpre0ptsetlengthLTpost0pt
    beginspacing0.9
    beginlongtable[l]@p40mmp100mm
    multicolumn2@lLARGEtextbfCurriculum Vitae\
    arrayrulecolorcolortoprule
    underlinetextbfPersonal Data\[3mm]
    textbfName & abcde\
    endlongtable
    endspacing
    enddocument


    enter image description here





    share



























      1














      Put the title within the longtable with a multicolumn.



      Leave out the vspace3mm and use \[3mm] instead.



      Shorten the column width to avoid Overfull hbox warning.



      documentclass[a4paper, english]scrartcl
      usepackagetimes
      usepackage[top=1cm, bottom=1cm]geometry
      usepackage[utf8]inputenc
      usepackage[english]babel
      usepackagelmodern
      usepackagelongtable
      usepackagelistings
      usepackageenumitem
      usepackage[table]xcolor
      usepackage[export]adjustbox
      usepackagebooktabs
      usepackagepdfpages
      usepackagesetspace

      newcommandtabitem~~llaptextbullet~~~~~

      definecolorcolorRGB0,0,225
      setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
      pagenumberinggobble

      begindocument
      setlengthLTpre0ptsetlengthLTpost0pt
      beginspacing0.9
      beginlongtable[l]@p40mmp100mm
      multicolumn2@lLARGEtextbfCurriculum Vitae\
      arrayrulecolorcolortoprule
      underlinetextbfPersonal Data\[3mm]
      textbfName & abcde\
      endlongtable
      endspacing
      enddocument


      enter image description here





      share

























        1












        1








        1







        Put the title within the longtable with a multicolumn.



        Leave out the vspace3mm and use \[3mm] instead.



        Shorten the column width to avoid Overfull hbox warning.



        documentclass[a4paper, english]scrartcl
        usepackagetimes
        usepackage[top=1cm, bottom=1cm]geometry
        usepackage[utf8]inputenc
        usepackage[english]babel
        usepackagelmodern
        usepackagelongtable
        usepackagelistings
        usepackageenumitem
        usepackage[table]xcolor
        usepackage[export]adjustbox
        usepackagebooktabs
        usepackagepdfpages
        usepackagesetspace

        newcommandtabitem~~llaptextbullet~~~~~

        definecolorcolorRGB0,0,225
        setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
        pagenumberinggobble

        begindocument
        setlengthLTpre0ptsetlengthLTpost0pt
        beginspacing0.9
        beginlongtable[l]@p40mmp100mm
        multicolumn2@lLARGEtextbfCurriculum Vitae\
        arrayrulecolorcolortoprule
        underlinetextbfPersonal Data\[3mm]
        textbfName & abcde\
        endlongtable
        endspacing
        enddocument


        enter image description here





        share













        Put the title within the longtable with a multicolumn.



        Leave out the vspace3mm and use \[3mm] instead.



        Shorten the column width to avoid Overfull hbox warning.



        documentclass[a4paper, english]scrartcl
        usepackagetimes
        usepackage[top=1cm, bottom=1cm]geometry
        usepackage[utf8]inputenc
        usepackage[english]babel
        usepackagelmodern
        usepackagelongtable
        usepackagelistings
        usepackageenumitem
        usepackage[table]xcolor
        usepackage[export]adjustbox
        usepackagebooktabs
        usepackagepdfpages
        usepackagesetspace

        newcommandtabitem~~llaptextbullet~~~~~

        definecolorcolorRGB0,0,225
        setitemizeitemsep=0em,leftmargin=*,labelsep=6.3mm
        pagenumberinggobble

        begindocument
        setlengthLTpre0ptsetlengthLTpost0pt
        beginspacing0.9
        beginlongtable[l]@p40mmp100mm
        multicolumn2@lLARGEtextbfCurriculum Vitae\
        arrayrulecolorcolortoprule
        underlinetextbfPersonal Data\[3mm]
        textbfName & abcde\
        endlongtable
        endspacing
        enddocument


        enter image description here






        share











        share


        share










        answered 7 mins ago









        CarLaTeXCarLaTeX

        35.3k554152




        35.3k554152



























            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%2f467992%2fhow-to-align-the-contents-in-longtable%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

            Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

            Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

            Compiling documents onlineAre any web base TEX editors with live collaboration available?Is there a web-based LaTeX or TeX editor?Creating a PDF file online from a LaTeX templateAre there any online LaTeX editors that provide the latest packages?Comparison of browser-based latex processorsCan I find something like this online?Is there a site where I can enter a latex expression, and it shows me an image of the compiled expression?Automatic online compiling systemA resource for converting LaTeX within the browserIs there an equivalent of jsfiddle for LaTeX?Online LaTeX syntax highlighterComparison of browser-based latex processorsDo the online LaTeX compilers use a TeX daemon to speed up their compilation?Undefined control sequence documentclassLaTeX Syntax Highlighting in Google DriveWhy are my Latex compile times varying massively?Online compilation with commercial fontsCompiling multiple LaTeX filesSlow compiling of large documents in TeXstudiodocument not compiling with custom .cls