0

I have a logo/image which I want to the left of the page, and word CERTIFICATE written along the horizontal line crossing the center of the image.

I have been using following but it writes the text CERTIFICATE along the horizontal line passing through the bottom of the logo, not the center.

\noindent\includegraphics[width = 35 mm, height = 35 mm]{image.jpg}
\hfill CERTIFICATE

EDIT1: Also, I want this text (CERTIFICATE) to be on the center of the page.

How to write CERTIFICATE along the horizontal line passing through the center of the image.

1

Are you looking for something like this:

\documentclass[10pt]{article}

\begin{document}
\noindent\_\ \rule{35mm}{35mm}\hfil
\fbox{%
  \begin{minipage}[b][35mm][c]{35mm}\centering
    CERTIFICATE
  \end{minipage}}
\ \_
\end{document}
1
\documentclass{article}
\usepackage{showframe}
\usepackage{graphicx}
\begin{document}
\noindent\makebox[0pt][l]{\raisebox{-0.5\height}{\includegraphics[width = 35 mm, height = 35 mm]{example-image-a}}}%
\hfil CERTIFICATE

\noindent\dotfill X\dotfill
\end{document}

enter image description here

Or, with adjustbox

\documentclass{article}
\usepackage{showframe}
\usepackage[export]{adjustbox}
\begin{document}
\noindent\makebox[0pt][l]{\includegraphics[width = 35 mm, height = 35 mm,valign=c]{example-image-a}}%
\hfil CERTIFICATE

\noindent\dotfill X\dotfill
\end{document}

enter image description here

2
  • I want this CERTIFICATE to be on the center of the page, not on the right.
    – pranavk
    Apr 26 '15 at 16:03
  • @pranavk now it is.
    – user11232
    Apr 26 '15 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.