how to align item in enumeration list that has an image so it is symmetrical
up vote
1
down vote
favorite
I'd like to add a small tiny image on the same line as an item
entry, something like
item href{index.htm}{some other link} includegraphics[...]
But having hard time getting it to look the way I want it. Here is what I do now
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
And this is how it looks like when compiled
What I want is like this
I tried using a small table, but that did not help
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item begin{tabular}{cc}
href{index.htm}{some other link}&
includegraphics[width=2cm]{example-image-a}
end{tabular}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
It got a little closer to what I want, but not exactly
What is the correct way to do this in Latex to obtain what I want as shown above?
TL 2018
horizontal-alignment enumerate
add a comment |
up vote
1
down vote
favorite
I'd like to add a small tiny image on the same line as an item
entry, something like
item href{index.htm}{some other link} includegraphics[...]
But having hard time getting it to look the way I want it. Here is what I do now
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
And this is how it looks like when compiled
What I want is like this
I tried using a small table, but that did not help
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item begin{tabular}{cc}
href{index.htm}{some other link}&
includegraphics[width=2cm]{example-image-a}
end{tabular}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
It got a little closer to what I want, but not exactly
What is the correct way to do this in Latex to obtain what I want as shown above?
TL 2018
horizontal-alignment enumerate
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'd like to add a small tiny image on the same line as an item
entry, something like
item href{index.htm}{some other link} includegraphics[...]
But having hard time getting it to look the way I want it. Here is what I do now
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
And this is how it looks like when compiled
What I want is like this
I tried using a small table, but that did not help
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item begin{tabular}{cc}
href{index.htm}{some other link}&
includegraphics[width=2cm]{example-image-a}
end{tabular}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
It got a little closer to what I want, but not exactly
What is the correct way to do this in Latex to obtain what I want as shown above?
TL 2018
horizontal-alignment enumerate
I'd like to add a small tiny image on the same line as an item
entry, something like
item href{index.htm}{some other link} includegraphics[...]
But having hard time getting it to look the way I want it. Here is what I do now
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
And this is how it looks like when compiled
What I want is like this
I tried using a small table, but that did not help
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item begin{tabular}{cc}
href{index.htm}{some other link}&
includegraphics[width=2cm]{example-image-a}
end{tabular}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
It got a little closer to what I want, but not exactly
What is the correct way to do this in Latex to obtain what I want as shown above?
TL 2018
horizontal-alignment enumerate
horizontal-alignment enumerate
asked 3 hours ago
Nasser
8,02663081
8,02663081
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
It's easy with adjustbox
:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm, valign= c]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
up vote
1
down vote
Also without packages using the TeX primitive vcenter
in a new macro for convenience:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{enumitem}
usepackage{hyperref}
newcommand{imcenter}[1]{$vcenter{hbox{#1}}$}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
imcenter{includegraphics[width=2cm]{example-image-a}}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
It's easy with adjustbox
:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm, valign= c]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
up vote
2
down vote
It's easy with adjustbox
:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm, valign= c]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
up vote
2
down vote
up vote
2
down vote
It's easy with adjustbox
:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm, valign= c]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
It's easy with adjustbox
:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{calc}
usepackage{enumitem}
usepackage{hyperref}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
includegraphics[width=2cm, valign= c]{example-image-a}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
answered 3 hours ago
Bernard
163k768192
163k768192
add a comment |
add a comment |
up vote
1
down vote
Also without packages using the TeX primitive vcenter
in a new macro for convenience:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{enumitem}
usepackage{hyperref}
newcommand{imcenter}[1]{$vcenter{hbox{#1}}$}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
imcenter{includegraphics[width=2cm]{example-image-a}}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
up vote
1
down vote
Also without packages using the TeX primitive vcenter
in a new macro for convenience:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{enumitem}
usepackage{hyperref}
newcommand{imcenter}[1]{$vcenter{hbox{#1}}$}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
imcenter{includegraphics[width=2cm]{example-image-a}}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
add a comment |
up vote
1
down vote
up vote
1
down vote
Also without packages using the TeX primitive vcenter
in a new macro for convenience:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{enumitem}
usepackage{hyperref}
newcommand{imcenter}[1]{$vcenter{hbox{#1}}$}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
imcenter{includegraphics[width=2cm]{example-image-a}}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
Also without packages using the TeX primitive vcenter
in a new macro for convenience:
documentclass[12pt]{article}
usepackage{graphicx}
usepackage{enumitem}
usepackage{hyperref}
newcommand{imcenter}[1]{$vcenter{hbox{#1}}$}
begin{document}
begin{enumerate}
item href{index.htm}{some link}
item href{index.htm}{some link}
item href{index.htm}{some other link}
imcenter{includegraphics[width=2cm]{example-image-a}}
item href{index.html}{another link}
item href{index.htm}{some link}
end{enumerate}
end{document}
answered 3 hours ago
AboAmmar
31.6k22781
31.6k22781
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.
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.
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%2f463054%2fhow-to-align-item-in-enumeration-list-that-has-an-image-so-it-is-symmetrical%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