TeX - LaTeX Asked by Ram Sharma on June 6, 2021
I am new to LaTeX, using Overleaf to compose my new CV.
My question is that i would like to add a passport size photo to the right end of the namesection (i.e. right top corner of the document), so i would like to be able to left-align the name and email address line in a way that the space occupied by the photo be considered as part of the right margin for this section and the document looks even.
Right now it is with the original alignment, meaning that the white space on the right side of name & email address lines is same as the white space on the left side.
P.S: I’m attaching the start of the latex code, to give you some insights about the template and style I’m using:
documentclass[]{deedy-resume-openfont}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% TITLE NAME
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
namesection{RAM}{SHARMA}{
urlstyle{same}href{https://github.com/ramXYZ}{GitHub} |href{mailto:[email protected]}{[email protected]} | (+91)8tabcdef9}
%This is the section(name and email) which want to move to the left, so that I can add my image.
You could adapt the code below to your liking--date can be inserted as per choice
documentclass{article}
usepackage[showframe]{geometry}%<------------only for check, remove for finals
author{RAM SHARMA mailto:[email protected] [email protected]}
title{textbf{XXX YYYY ZZZZ}}
usepackage{array}
usepackage[demo]{graphicx}
date{}
newcolumntype{C}[1]{>{centeringletnewlinearraybackslashhspace{0pt}}m{#1}}
newcolumntype{L}[1]{>{raggedrightletnewlinearraybackslashhspace{0pt}}m{#1}}
begin{document}noindent
begin{tabular}{C{11cm}L{3.5cm}}
{maketitle} & raisebox{-3baselineskip}{includegraphics[width=linewidth]
{example-image-a}}
end{tabular}
end{document}
Answered by js bibra on June 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP