Showing posts with label GraphicX. Show all posts
Showing posts with label GraphicX. Show all posts

Saturday, December 12, 2020

Positioning a image at the top of the page in LaTeX

 
To position an image at the top of the page first begin the page with that image and use the following packages 
  • seqsplit
  • textpos
  • graphicx   
 
To position the image as a text block, it follows the syntax

\textblockorigin{x}{y} % co-ordinates for  origin
 \begin{textblock*}{x}{x,y}% co-ordinates
\end{textblock*}
 
Now type the following code  in  your document

\begin{center}
        \textblockorigin{-18pt}{-2pt}
        \begin{textblock*}{10cm}(3cm,1cm)
            \centering
            \includegraphics[width=16.2cm]{front.jpg}
            %\noindent\hfill{\rule{\textwidth}{0.8pt}}
                \line(1,0){450}
        \end{textblock*} ~\\[3em]
    \end{center}


Popular Posts