How to align top tables row?
I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ?
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}{textwidth}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{itemize}
end{minipage}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
Thank in advanced !!
tables vertical-alignment
add a comment |
I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ?
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}{textwidth}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{itemize}
end{minipage}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
Thank in advanced !!
tables vertical-alignment
please, next time provide complete small document beginning witdocumentclass{...}
and ending withend{document}
containing your table. now people who like to help you should guessing about your document preamble ...
– Zarko
Mar 31 at 9:53
add a comment |
I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ?
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}{textwidth}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{itemize}
end{minipage}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
Thank in advanced !!
tables vertical-alignment
I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ?
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}{textwidth}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{itemize}
end{minipage}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
Thank in advanced !!
tables vertical-alignment
tables vertical-alignment
edited Mar 31 at 9:41
leandriis
11.2k1733
11.2k1733
asked Mar 31 at 9:25
dmxdmx
14716
14716
please, next time provide complete small document beginning witdocumentclass{...}
and ending withend{document}
containing your table. now people who like to help you should guessing about your document preamble ...
– Zarko
Mar 31 at 9:53
add a comment |
please, next time provide complete small document beginning witdocumentclass{...}
and ending withend{document}
containing your table. now people who like to help you should guessing about your document preamble ...
– Zarko
Mar 31 at 9:53
please, next time provide complete small document beginning wit
documentclass{...}
and ending with end{document}
containing your table. now people who like to help you should guessing about your document preamble ...– Zarko
Mar 31 at 9:53
please, next time provide complete small document beginning wit
documentclass{...}
and ending with end{document}
containing your table. now people who like to help you should guessing about your document preamble ...– Zarko
Mar 31 at 9:53
add a comment |
2 Answers
2
active
oldest
votes
Just change
begin{minipage}{textwidth}
to
begin{minipage}[t]{textwidth}
i.e., add the [t]
positioning specifier.
A full MWE (minimum working example), with some additional tweaks to your code to make the tabular material more appealing from a purely aesthetic point of view.
documentclass{article}
usepackage{array}
setlengthextrarowheight{2pt}
begin{document}
begin{tabular}{ | l | l | l | >{raggedrightarraybackslash}p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}[t]{hsize}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2strut
end{itemize}
end{minipage} \
hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \
hline
end{tabular}
end{document}
add a comment |
With the enumitem
package you can define your own itemize
environment for tables. In the second example I have used tabularx
to make the table as wide as the textwidth:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
begin{document}
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
bigskip
begin{tabularx}{textwidth}{ | l | l | l | X |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabularx}
end{document}
For a more open look of the table, you could also use the booktabs
package:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
usepackage{booktabs}
begin{document}
begin{tabularx}{textwidth}{ l l l X }
toprule
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ midrule
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ bottomrule
end{tabularx}
end{document}
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing frombefore=vspace{-0.75baselineskip}
tobefore=vspace{-0.7baselineskip}
should improve the alignment.
– leandriis
Mar 31 at 9:59
Another approach would consist of addingnewenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and usingbegin{mylist}
andend{mylist}
in the body of the document. This would obviate the need to specify any kind ofbefore=...
adjustments.
– Mico
Mar 31 at 10:08
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%2f482389%2fhow-to-align-top-tables-row%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
Just change
begin{minipage}{textwidth}
to
begin{minipage}[t]{textwidth}
i.e., add the [t]
positioning specifier.
A full MWE (minimum working example), with some additional tweaks to your code to make the tabular material more appealing from a purely aesthetic point of view.
documentclass{article}
usepackage{array}
setlengthextrarowheight{2pt}
begin{document}
begin{tabular}{ | l | l | l | >{raggedrightarraybackslash}p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}[t]{hsize}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2strut
end{itemize}
end{minipage} \
hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \
hline
end{tabular}
end{document}
add a comment |
Just change
begin{minipage}{textwidth}
to
begin{minipage}[t]{textwidth}
i.e., add the [t]
positioning specifier.
A full MWE (minimum working example), with some additional tweaks to your code to make the tabular material more appealing from a purely aesthetic point of view.
documentclass{article}
usepackage{array}
setlengthextrarowheight{2pt}
begin{document}
begin{tabular}{ | l | l | l | >{raggedrightarraybackslash}p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}[t]{hsize}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2strut
end{itemize}
end{minipage} \
hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \
hline
end{tabular}
end{document}
add a comment |
Just change
begin{minipage}{textwidth}
to
begin{minipage}[t]{textwidth}
i.e., add the [t]
positioning specifier.
A full MWE (minimum working example), with some additional tweaks to your code to make the tabular material more appealing from a purely aesthetic point of view.
documentclass{article}
usepackage{array}
setlengthextrarowheight{2pt}
begin{document}
begin{tabular}{ | l | l | l | >{raggedrightarraybackslash}p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}[t]{hsize}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2strut
end{itemize}
end{minipage} \
hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \
hline
end{tabular}
end{document}
Just change
begin{minipage}{textwidth}
to
begin{minipage}[t]{textwidth}
i.e., add the [t]
positioning specifier.
A full MWE (minimum working example), with some additional tweaks to your code to make the tabular material more appealing from a purely aesthetic point of view.
documentclass{article}
usepackage{array}
setlengthextrarowheight{2pt}
begin{document}
begin{tabular}{ | l | l | l | >{raggedrightarraybackslash}p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{minipage}[t]{hsize}
begin{itemize}
setlength{itemindent}{-.2in}
setlengthitemsep{-0.5em}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2strut
end{itemize}
end{minipage} \
hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \
hline
end{tabular}
end{document}
edited Mar 31 at 9:50
answered Mar 31 at 9:42
MicoMico
286k32390779
286k32390779
add a comment |
add a comment |
With the enumitem
package you can define your own itemize
environment for tables. In the second example I have used tabularx
to make the table as wide as the textwidth:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
begin{document}
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
bigskip
begin{tabularx}{textwidth}{ | l | l | l | X |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabularx}
end{document}
For a more open look of the table, you could also use the booktabs
package:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
usepackage{booktabs}
begin{document}
begin{tabularx}{textwidth}{ l l l X }
toprule
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ midrule
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ bottomrule
end{tabularx}
end{document}
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing frombefore=vspace{-0.75baselineskip}
tobefore=vspace{-0.7baselineskip}
should improve the alignment.
– leandriis
Mar 31 at 9:59
Another approach would consist of addingnewenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and usingbegin{mylist}
andend{mylist}
in the body of the document. This would obviate the need to specify any kind ofbefore=...
adjustments.
– Mico
Mar 31 at 10:08
add a comment |
With the enumitem
package you can define your own itemize
environment for tables. In the second example I have used tabularx
to make the table as wide as the textwidth:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
begin{document}
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
bigskip
begin{tabularx}{textwidth}{ | l | l | l | X |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabularx}
end{document}
For a more open look of the table, you could also use the booktabs
package:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
usepackage{booktabs}
begin{document}
begin{tabularx}{textwidth}{ l l l X }
toprule
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ midrule
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ bottomrule
end{tabularx}
end{document}
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing frombefore=vspace{-0.75baselineskip}
tobefore=vspace{-0.7baselineskip}
should improve the alignment.
– leandriis
Mar 31 at 9:59
Another approach would consist of addingnewenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and usingbegin{mylist}
andend{mylist}
in the body of the document. This would obviate the need to specify any kind ofbefore=...
adjustments.
– Mico
Mar 31 at 10:08
add a comment |
With the enumitem
package you can define your own itemize
environment for tables. In the second example I have used tabularx
to make the table as wide as the textwidth:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
begin{document}
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
bigskip
begin{tabularx}{textwidth}{ | l | l | l | X |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabularx}
end{document}
For a more open look of the table, you could also use the booktabs
package:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
usepackage{booktabs}
begin{document}
begin{tabularx}{textwidth}{ l l l X }
toprule
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ midrule
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ bottomrule
end{tabularx}
end{document}
With the enumitem
package you can define your own itemize
environment for tables. In the second example I have used tabularx
to make the table as wide as the textwidth:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
begin{document}
begin{tabular}{ | l | l | l | p{8cm} |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabular}
bigskip
begin{tabularx}{textwidth}{ | l | l | l | X |}
hline
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ hline
end{tabularx}
end{document}
For a more open look of the table, you could also use the booktabs
package:
documentclass{article}
usepackage{enumitem}
newlist{tabitemize}{itemize}{1}
setlist[tabitemize]{label=textbullet,nosep,after=strut,align=parleft,leftmargin=*,after=vspace{-baselineskip},before=vspace{-0.75baselineskip}}
usepackage{tabularx}
usepackage{booktabs}
begin{document}
begin{tabularx}{textwidth}{ l l l X }
toprule
Day & Min Temp & Max Temp &
begin{tabitemize}
item El 1
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
item El 2
end{tabitemize}
\ midrule
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \ bottomrule
end{tabularx}
end{document}
answered Mar 31 at 9:37
leandriisleandriis
11.2k1733
11.2k1733
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing frombefore=vspace{-0.75baselineskip}
tobefore=vspace{-0.7baselineskip}
should improve the alignment.
– leandriis
Mar 31 at 9:59
Another approach would consist of addingnewenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and usingbegin{mylist}
andend{mylist}
in the body of the document. This would obviate the need to specify any kind ofbefore=...
adjustments.
– Mico
Mar 31 at 10:08
add a comment |
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing frombefore=vspace{-0.75baselineskip}
tobefore=vspace{-0.7baselineskip}
should improve the alignment.
– leandriis
Mar 31 at 9:59
Another approach would consist of addingnewenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and usingbegin{mylist}
andend{mylist}
in the body of the document. This would obviate the need to specify any kind ofbefore=...
adjustments.
– Mico
Mar 31 at 10:08
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
The baselines of "El 1" and of the other header items don't seem to matched up perfectly in either of the screenshots. Can you think of a way to fix this?
– Mico
Mar 31 at 9:52
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing from
before=vspace{-0.75baselineskip}
to before=vspace{-0.7baselineskip}
should improve the alignment.– leandriis
Mar 31 at 9:59
@Mico: Thanks for pointing this out. I did not notice that. Aparently, changing from
before=vspace{-0.75baselineskip}
to before=vspace{-0.7baselineskip}
should improve the alignment.– leandriis
Mar 31 at 9:59
Another approach would consist of adding
newenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and using begin{mylist}
and end{mylist}
in the body of the document. This would obviate the need to specify any kind of before=...
adjustments.– Mico
Mar 31 at 10:08
Another approach would consist of adding
newenvironment{mylist}{begin{minipage}[t]{hsize}begin{tabitemize}}{end{tabitemize}end{minipage}}
in the preamble and using begin{mylist}
and end{mylist}
in the body of the document. This would obviate the need to specify any kind of before=...
adjustments.– Mico
Mar 31 at 10:08
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%2f482389%2fhow-to-align-top-tables-row%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
please, next time provide complete small document beginning wit
documentclass{...}
and ending withend{document}
containing your table. now people who like to help you should guessing about your document preamble ...– Zarko
Mar 31 at 9:53