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?
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:

How can these two problems be solved?
horizontal-alignment vertical-alignment longtable
add a comment |
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:

How can these two problems be solved?
horizontal-alignment vertical-alignment longtable
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
add a comment |
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:

How can these two problems be solved?
horizontal-alignment vertical-alignment longtable
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:

How can these two problems be solved?
horizontal-alignment vertical-alignment longtable
horizontal-alignment vertical-alignment longtable
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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

add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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

add a comment |
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

add a comment |
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

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

answered 7 mins ago
CarLaTeXCarLaTeX
35.3k554152
35.3k554152
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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