Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
902 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 Answer

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}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...