Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
910 views
in Technique[技术] by (71.8m points)

tex core - How to center includegraphics with text? - TeX - LaTeX Stack Exchange


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You are looking for valign=c from the adjustbox package:

documentclass[letterpaper,11pt]{article}

usepackage{latexsym}
usepackage[empty]{fullpage}

usepackage[usenames,dvipsnames]{color}
usepackage{verbatim}
usepackage{enumitem}
usepackage{fancyhdr}
usepackage{graphicx}

graphicspath{{./images/}}

setlist{leftmargin=2.5mm}

pagestyle{fancy}
fancyhf{}
fancyfoot{}

enewcommand{headrulewidth}{0pt}

enewcommand{footrulewidth}{0pt}

usepackage[margin=0.1in]{geometry}


aggedbottom

aggedright
setlength{abcolsep}{0in}


ewcommand{
esumeItem}[2]{
  itemsmall{
    extbf{#1}{: #2 vspace{-2pt}}
  }
}


ewcommand{
esumeSubheadingSecond}[6]{
  vspace{-1pt}item
    egin{tabular*}{0.97extwidth}[t]{l@{extracolsep{fill}}r}
      extbf{#1} & #2 \
      extit{small#3} & extit{small #4} \
      extit{small#5} & extit{small #6} \
    end{tabular*}vspace{-5pt}
}


ewcommand{
esumeSubItem}[2]{
esumeItem{#1}{#2}vspace{-4pt}}


enewcommand{labelitemii}{$circ$}


ewcommand{
esumeSubHeadingListStart}{egin{itemize}[leftmargin=*]}

ewcommand{
esumeSubHeadingListEnd}{end{itemize}}

ewcommand{
esumeItemListStart}{egin{itemize}}

ewcommand{
esumeItemListEnd}{end{itemize}vspace{-5pt}}

usepackage[export]{adjustbox}

egin{document}

section{Experience}
{small
  
esumeSubHeadingListStart
      
esumeSubheadingSecond
      {includegraphics[width=1cm, height=1cm,valign=c]{example-image-duck} Google}{Blah blah}
      {Blah blah}{Blah Blah}
      {Blah blah}{}
        egin{itemize}
        item Blah blah blah
        end{itemize}
  
esumeSubHeadingListEnd
}
end{document}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...