Make the picture in the right and the name in the left











up vote
4
down vote

favorite












According to this answer we have:



 documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
Huge usefont{OT1}{phv}{b}{n} hfill #1
par normalsize normalfont}
newcommand{MySlogan}[1]{ % Slogan}{optional)
large usefont{OT1}{phv}{m}{n}hfill textit{#1}
par normalsize normalfont}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
begin{wrapfigure}{l}{16cm}
vspace*{-16em}
begin{center}
includegraphics[width=0.15textwidth]{picture}
end{center}
end{wrapfigure}
%---------------------------
begin{flushright}
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
end{flushright}
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



However, I think it will be better if we get like this



enter image description here










share|improve this question






















  • Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
    – thymaro
    Dec 7 at 10:52










  • Unfortunately no.
    – Schüler
    Dec 7 at 11:28















up vote
4
down vote

favorite












According to this answer we have:



 documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
Huge usefont{OT1}{phv}{b}{n} hfill #1
par normalsize normalfont}
newcommand{MySlogan}[1]{ % Slogan}{optional)
large usefont{OT1}{phv}{m}{n}hfill textit{#1}
par normalsize normalfont}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
begin{wrapfigure}{l}{16cm}
vspace*{-16em}
begin{center}
includegraphics[width=0.15textwidth]{picture}
end{center}
end{wrapfigure}
%---------------------------
begin{flushright}
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
end{flushright}
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



However, I think it will be better if we get like this



enter image description here










share|improve this question






















  • Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
    – thymaro
    Dec 7 at 10:52










  • Unfortunately no.
    – Schüler
    Dec 7 at 11:28













up vote
4
down vote

favorite









up vote
4
down vote

favorite











According to this answer we have:



 documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
Huge usefont{OT1}{phv}{b}{n} hfill #1
par normalsize normalfont}
newcommand{MySlogan}[1]{ % Slogan}{optional)
large usefont{OT1}{phv}{m}{n}hfill textit{#1}
par normalsize normalfont}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
begin{wrapfigure}{l}{16cm}
vspace*{-16em}
begin{center}
includegraphics[width=0.15textwidth]{picture}
end{center}
end{wrapfigure}
%---------------------------
begin{flushright}
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
end{flushright}
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



However, I think it will be better if we get like this



enter image description here










share|improve this question













According to this answer we have:



 documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
Huge usefont{OT1}{phv}{b}{n} hfill #1
par normalsize normalfont}
newcommand{MySlogan}[1]{ % Slogan}{optional)
large usefont{OT1}{phv}{m}{n}hfill textit{#1}
par normalsize normalfont}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
begin{wrapfigure}{l}{16cm}
vspace*{-16em}
begin{center}
includegraphics[width=0.15textwidth]{picture}
end{center}
end{wrapfigure}
%---------------------------
begin{flushright}
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
end{flushright}
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



However, I think it will be better if we get like this



enter image description here







horizontal-alignment






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 7 at 9:30









Schüler

24019




24019












  • Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
    – thymaro
    Dec 7 at 10:52










  • Unfortunately no.
    – Schüler
    Dec 7 at 11:28


















  • Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
    – thymaro
    Dec 7 at 10:52










  • Unfortunately no.
    – Schüler
    Dec 7 at 11:28
















Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
– thymaro
Dec 7 at 10:52




Have you heard about the moderncv package? Of course, I don't want to hold you back from writing your own cv from scratch, but you could also just look at what has been invented so far and see if one of the design options pleases you.
– thymaro
Dec 7 at 10:52












Unfortunately no.
– Schüler
Dec 7 at 11:28




Unfortunately no.
– Schüler
Dec 7 at 11:28










3 Answers
3






active

oldest

votes

















up vote
5
down vote



accepted










wrapfigure is the wrong tool.



Here are the two ways you mention.



documentclass[a4paper,10pt]{article}
usepackage[T1]{fontenc}

usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}

usepackage{pifont}
usepackage{sectsty}

usepackage{graphicx}
usepackage{amsmath,amsfonts,amsthm}

usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

frenchspacing
sectionfont{%
fontfamily{phv}bfseries
sectionrule{0pt}{0pt}{-5pt}{1pt}%
}
pagestyle{empty}

begin{document}

%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%

begin{flushleft}

hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
hspace*{fill}%
makebox[0pt][r]{%
fontfamily{phv}large
begin{tabular}{@{}r@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}

end{flushleft}

section*{Informations personelles}

bigskip

begin{flushleft}

makebox[0pt][l]{%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}
hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}

end{flushleft}

section*{Informations personelles}

end{document}


enter image description here



Another variation:



begin{flushleft}

hspace*{fill}%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
hspace*{fill}%
makebox[0pt][r]{%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
}

end{flushleft}


enter image description here






share|improve this answer























  • Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
    – Schüler
    Dec 8 at 5:33












  • @Schüler I added the variation
    – egreg
    Dec 8 at 9:13


















up vote
3
down vote













If I were you, I would absolutely use tikz.



    documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{tikz}
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommandmytitle[3]{%
noindentbegin{tikzpicture}
node [align=left] (name) at (0,0)
{Hugeusefont{OT1}{phv}{b}{n}#1\
largeusefont{OT1}{phv}{m}{n}textit{#2}\(#3)};
node [anchor=east, xshift=-.15textwidth] at (textwidth, 0) {includegraphics[width=0.15textwidth]{picture}};
end{tikzpicture}%
}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
mytitle{Name Name}{Curriculum Vitae}{today}
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



P.S. You can also modify your code to achieve above picture without using tikz.






share|improve this answer























  • Thank you. however your codes does not compilate even if I add end{document}
    – Schüler
    Dec 7 at 10:14










  • sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
    – javadr
    Dec 7 at 10:29










  • Yes it works. Thank you.
    – Schüler
    Dec 7 at 10:33


















up vote
3
down vote













documentclass[a4paper,10pt,demo]{article} %
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage[hmargin=2cm, lmargin=1.5cm]{geometry}
% geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%-----accent
%usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
%usepackage[T1]{fontenc}
usepackage{pifont} %bouni
%-----
usepackage[demo,
export]{adjustbox} % also load graphicx,
% enable insert and positioning images
%usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{makecell} % Table package
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n} % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
fontfamily{phv}Hugesffamilytextbf{#1}}
newcommand{MySlogan}[1]{ % Slogan}{optional)
fontfamily{phv}largesffamilyslshape #1}
%%% ------------------------------------------------------------
usepackage[colorlinks=true,
linkcolor=blue,
urlcolor=blue]{hyperref} % had to be the last in preamble

%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
pagestyle{empty} % No pagenumbers/headers/footers
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
noindentbegin{tabular*}{linewidth}{@{extracolsep{fill}} l r}
makecell[r]{
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
}
& includegraphics[width=0.15textwidth, valign=c]{picture}
end{tabular*}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


using table for your name and image placement gives you freedom to put where you like to have. just insert it to according column: (text in the first, image in the last or vice versa). i also slightly simplified and reorganized your preamble.



edit: the definition of MyName, MySlogan and table organization are changed (improved).



enter image description here






share|improve this answer























  • Thank you. However, I want to get the picture not in the center but in the extreme right.
    – Schüler
    Dec 7 at 10:11










  • @Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
    – Zarko
    Dec 7 at 10:26











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463659%2fmake-the-picture-in-the-right-and-the-name-in-the-left%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










wrapfigure is the wrong tool.



Here are the two ways you mention.



documentclass[a4paper,10pt]{article}
usepackage[T1]{fontenc}

usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}

usepackage{pifont}
usepackage{sectsty}

usepackage{graphicx}
usepackage{amsmath,amsfonts,amsthm}

usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

frenchspacing
sectionfont{%
fontfamily{phv}bfseries
sectionrule{0pt}{0pt}{-5pt}{1pt}%
}
pagestyle{empty}

begin{document}

%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%

begin{flushleft}

hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
hspace*{fill}%
makebox[0pt][r]{%
fontfamily{phv}large
begin{tabular}{@{}r@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}

end{flushleft}

section*{Informations personelles}

bigskip

begin{flushleft}

makebox[0pt][l]{%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}
hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}

end{flushleft}

section*{Informations personelles}

end{document}


enter image description here



Another variation:



begin{flushleft}

hspace*{fill}%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
hspace*{fill}%
makebox[0pt][r]{%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
}

end{flushleft}


enter image description here






share|improve this answer























  • Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
    – Schüler
    Dec 8 at 5:33












  • @Schüler I added the variation
    – egreg
    Dec 8 at 9:13















up vote
5
down vote



accepted










wrapfigure is the wrong tool.



Here are the two ways you mention.



documentclass[a4paper,10pt]{article}
usepackage[T1]{fontenc}

usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}

usepackage{pifont}
usepackage{sectsty}

usepackage{graphicx}
usepackage{amsmath,amsfonts,amsthm}

usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

frenchspacing
sectionfont{%
fontfamily{phv}bfseries
sectionrule{0pt}{0pt}{-5pt}{1pt}%
}
pagestyle{empty}

begin{document}

%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%

begin{flushleft}

hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
hspace*{fill}%
makebox[0pt][r]{%
fontfamily{phv}large
begin{tabular}{@{}r@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}

end{flushleft}

section*{Informations personelles}

bigskip

begin{flushleft}

makebox[0pt][l]{%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}
hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}

end{flushleft}

section*{Informations personelles}

end{document}


enter image description here



Another variation:



begin{flushleft}

hspace*{fill}%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
hspace*{fill}%
makebox[0pt][r]{%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
}

end{flushleft}


enter image description here






share|improve this answer























  • Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
    – Schüler
    Dec 8 at 5:33












  • @Schüler I added the variation
    – egreg
    Dec 8 at 9:13













up vote
5
down vote



accepted







up vote
5
down vote



accepted






wrapfigure is the wrong tool.



Here are the two ways you mention.



documentclass[a4paper,10pt]{article}
usepackage[T1]{fontenc}

usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}

usepackage{pifont}
usepackage{sectsty}

usepackage{graphicx}
usepackage{amsmath,amsfonts,amsthm}

usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

frenchspacing
sectionfont{%
fontfamily{phv}bfseries
sectionrule{0pt}{0pt}{-5pt}{1pt}%
}
pagestyle{empty}

begin{document}

%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%

begin{flushleft}

hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
hspace*{fill}%
makebox[0pt][r]{%
fontfamily{phv}large
begin{tabular}{@{}r@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}

end{flushleft}

section*{Informations personelles}

bigskip

begin{flushleft}

makebox[0pt][l]{%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}
hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}

end{flushleft}

section*{Informations personelles}

end{document}


enter image description here



Another variation:



begin{flushleft}

hspace*{fill}%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
hspace*{fill}%
makebox[0pt][r]{%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
}

end{flushleft}


enter image description here






share|improve this answer














wrapfigure is the wrong tool.



Here are the two ways you mention.



documentclass[a4paper,10pt]{article}
usepackage[T1]{fontenc}

usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}

usepackage{pifont}
usepackage{sectsty}

usepackage{graphicx}
usepackage{amsmath,amsfonts,amsthm}

usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

frenchspacing
sectionfont{%
fontfamily{phv}bfseries
sectionrule{0pt}{0pt}{-5pt}{1pt}%
}
pagestyle{empty}

begin{document}

%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%

begin{flushleft}

hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
hspace*{fill}%
makebox[0pt][r]{%
fontfamily{phv}large
begin{tabular}{@{}r@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}

end{flushleft}

section*{Informations personelles}

bigskip

begin{flushleft}

makebox[0pt][l]{%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
}
hspace*{fill}%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}

end{flushleft}

section*{Informations personelles}

end{document}


enter image description here



Another variation:



begin{flushleft}

hspace*{fill}%
fontfamily{phv}large
begin{tabular}{@{}l@{}}
Hugebfseries Name Name \[1ex]
Curriculum Vitae\ (today)
end{tabular}%
hspace*{fill}%
makebox[0pt][r]{%
begin{tabular}{@{}c@{}}
includegraphics[width=0.15textwidth]{example-image-9x16}
end{tabular}
}

end{flushleft}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 8 at 9:12

























answered Dec 7 at 10:20









egreg

704k8618763155




704k8618763155












  • Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
    – Schüler
    Dec 8 at 5:33












  • @Schüler I added the variation
    – egreg
    Dec 8 at 9:13


















  • Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
    – Schüler
    Dec 8 at 5:33












  • @Schüler I added the variation
    – egreg
    Dec 8 at 9:13
















Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
– Schüler
Dec 8 at 5:33






Dear Professor if I want makebox[0pt][r]{% fontfamily{phv}large begin{tabular}{@{}r@{}} Hugebfseries Name Name \[1ex] Curriculum Vitae\ (today) end{tabular}% } will be in the center. How can I modify the above codes? Thank you.
– Schüler
Dec 8 at 5:33














@Schüler I added the variation
– egreg
Dec 8 at 9:13




@Schüler I added the variation
– egreg
Dec 8 at 9:13










up vote
3
down vote













If I were you, I would absolutely use tikz.



    documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{tikz}
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommandmytitle[3]{%
noindentbegin{tikzpicture}
node [align=left] (name) at (0,0)
{Hugeusefont{OT1}{phv}{b}{n}#1\
largeusefont{OT1}{phv}{m}{n}textit{#2}\(#3)};
node [anchor=east, xshift=-.15textwidth] at (textwidth, 0) {includegraphics[width=0.15textwidth]{picture}};
end{tikzpicture}%
}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
mytitle{Name Name}{Curriculum Vitae}{today}
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



P.S. You can also modify your code to achieve above picture without using tikz.






share|improve this answer























  • Thank you. however your codes does not compilate even if I add end{document}
    – Schüler
    Dec 7 at 10:14










  • sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
    – javadr
    Dec 7 at 10:29










  • Yes it works. Thank you.
    – Schüler
    Dec 7 at 10:33















up vote
3
down vote













If I were you, I would absolutely use tikz.



    documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{tikz}
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommandmytitle[3]{%
noindentbegin{tikzpicture}
node [align=left] (name) at (0,0)
{Hugeusefont{OT1}{phv}{b}{n}#1\
largeusefont{OT1}{phv}{m}{n}textit{#2}\(#3)};
node [anchor=east, xshift=-.15textwidth] at (textwidth, 0) {includegraphics[width=0.15textwidth]{picture}};
end{tikzpicture}%
}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
mytitle{Name Name}{Curriculum Vitae}{today}
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



P.S. You can also modify your code to achieve above picture without using tikz.






share|improve this answer























  • Thank you. however your codes does not compilate even if I add end{document}
    – Schüler
    Dec 7 at 10:14










  • sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
    – javadr
    Dec 7 at 10:29










  • Yes it works. Thank you.
    – Schüler
    Dec 7 at 10:33













up vote
3
down vote










up vote
3
down vote









If I were you, I would absolutely use tikz.



    documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{tikz}
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommandmytitle[3]{%
noindentbegin{tikzpicture}
node [align=left] (name) at (0,0)
{Hugeusefont{OT1}{phv}{b}{n}#1\
largeusefont{OT1}{phv}{m}{n}textit{#2}\(#3)};
node [anchor=east, xshift=-.15textwidth] at (textwidth, 0) {includegraphics[width=0.15textwidth]{picture}};
end{tikzpicture}%
}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
mytitle{Name Name}{Curriculum Vitae}{today}
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



P.S. You can also modify your code to achieve above picture without using tikz.






share|improve this answer














If I were you, I would absolutely use tikz.



    documentclass[a4paper,10pt,demo]{article} %
usepackage{pifont} %bouni
%-----accent
usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
usepackage[T1]{fontenc}
%-----
usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
usepackage{graphicx} % Enable pdflatex
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{tikz}
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage{geometry}
geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommandmytitle[3]{%
noindentbegin{tikzpicture}
node [align=left] (name) at (0,0)
{Hugeusefont{OT1}{phv}{b}{n}#1\
largeusefont{OT1}{phv}{m}{n}textit{#2}\(#3)};
node [anchor=east, xshift=-.15textwidth] at (textwidth, 0) {includegraphics[width=0.15textwidth]{picture}};
end{tikzpicture}%
}
%%% ------------------------------------------------------------
pagestyle{empty} % No pagenumbers/headers/footers
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}
mytitle{Name Name}{Curriculum Vitae}{today}
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


enter image description here



P.S. You can also modify your code to achieve above picture without using tikz.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 7 at 10:27

























answered Dec 7 at 10:04









javadr

1,473313




1,473313












  • Thank you. however your codes does not compilate even if I add end{document}
    – Schüler
    Dec 7 at 10:14










  • sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
    – javadr
    Dec 7 at 10:29










  • Yes it works. Thank you.
    – Schüler
    Dec 7 at 10:33


















  • Thank you. however your codes does not compilate even if I add end{document}
    – Schüler
    Dec 7 at 10:14










  • sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
    – javadr
    Dec 7 at 10:29










  • Yes it works. Thank you.
    – Schüler
    Dec 7 at 10:33
















Thank you. however your codes does not compilate even if I add end{document}
– Schüler
Dec 7 at 10:14




Thank you. however your codes does not compilate even if I add end{document}
– Schüler
Dec 7 at 10:14












sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
– javadr
Dec 7 at 10:29




sorry, the end was forgotten to be put!, check it now. It must work like a charm :D.
– javadr
Dec 7 at 10:29












Yes it works. Thank you.
– Schüler
Dec 7 at 10:33




Yes it works. Thank you.
– Schüler
Dec 7 at 10:33










up vote
3
down vote













documentclass[a4paper,10pt,demo]{article} %
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage[hmargin=2cm, lmargin=1.5cm]{geometry}
% geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%-----accent
%usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
%usepackage[T1]{fontenc}
usepackage{pifont} %bouni
%-----
usepackage[demo,
export]{adjustbox} % also load graphicx,
% enable insert and positioning images
%usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{makecell} % Table package
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n} % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
fontfamily{phv}Hugesffamilytextbf{#1}}
newcommand{MySlogan}[1]{ % Slogan}{optional)
fontfamily{phv}largesffamilyslshape #1}
%%% ------------------------------------------------------------
usepackage[colorlinks=true,
linkcolor=blue,
urlcolor=blue]{hyperref} % had to be the last in preamble

%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
pagestyle{empty} % No pagenumbers/headers/footers
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
noindentbegin{tabular*}{linewidth}{@{extracolsep{fill}} l r}
makecell[r]{
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
}
& includegraphics[width=0.15textwidth, valign=c]{picture}
end{tabular*}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


using table for your name and image placement gives you freedom to put where you like to have. just insert it to according column: (text in the first, image in the last or vice versa). i also slightly simplified and reorganized your preamble.



edit: the definition of MyName, MySlogan and table organization are changed (improved).



enter image description here






share|improve this answer























  • Thank you. However, I want to get the picture not in the center but in the extreme right.
    – Schüler
    Dec 7 at 10:11










  • @Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
    – Zarko
    Dec 7 at 10:26















up vote
3
down vote













documentclass[a4paper,10pt,demo]{article} %
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage[hmargin=2cm, lmargin=1.5cm]{geometry}
% geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%-----accent
%usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
%usepackage[T1]{fontenc}
usepackage{pifont} %bouni
%-----
usepackage[demo,
export]{adjustbox} % also load graphicx,
% enable insert and positioning images
%usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{makecell} % Table package
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n} % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
fontfamily{phv}Hugesffamilytextbf{#1}}
newcommand{MySlogan}[1]{ % Slogan}{optional)
fontfamily{phv}largesffamilyslshape #1}
%%% ------------------------------------------------------------
usepackage[colorlinks=true,
linkcolor=blue,
urlcolor=blue]{hyperref} % had to be the last in preamble

%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
pagestyle{empty} % No pagenumbers/headers/footers
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
noindentbegin{tabular*}{linewidth}{@{extracolsep{fill}} l r}
makecell[r]{
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
}
& includegraphics[width=0.15textwidth, valign=c]{picture}
end{tabular*}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


using table for your name and image placement gives you freedom to put where you like to have. just insert it to according column: (text in the first, image in the last or vice versa). i also slightly simplified and reorganized your preamble.



edit: the definition of MyName, MySlogan and table organization are changed (improved).



enter image description here






share|improve this answer























  • Thank you. However, I want to get the picture not in the center but in the extreme right.
    – Schüler
    Dec 7 at 10:11










  • @Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
    – Zarko
    Dec 7 at 10:26













up vote
3
down vote










up vote
3
down vote









documentclass[a4paper,10pt,demo]{article} %
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage[hmargin=2cm, lmargin=1.5cm]{geometry}
% geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%-----accent
%usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
%usepackage[T1]{fontenc}
usepackage{pifont} %bouni
%-----
usepackage[demo,
export]{adjustbox} % also load graphicx,
% enable insert and positioning images
%usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{makecell} % Table package
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n} % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
fontfamily{phv}Hugesffamilytextbf{#1}}
newcommand{MySlogan}[1]{ % Slogan}{optional)
fontfamily{phv}largesffamilyslshape #1}
%%% ------------------------------------------------------------
usepackage[colorlinks=true,
linkcolor=blue,
urlcolor=blue]{hyperref} % had to be the last in preamble

%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
pagestyle{empty} % No pagenumbers/headers/footers
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
noindentbegin{tabular*}{linewidth}{@{extracolsep{fill}} l r}
makecell[r]{
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
}
& includegraphics[width=0.15textwidth, valign=c]{picture}
end{tabular*}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


using table for your name and image placement gives you freedom to put where you like to have. just insert it to according column: (text in the first, image in the last or vice versa). i also slightly simplified and reorganized your preamble.



edit: the definition of MyName, MySlogan and table organization are changed (improved).



enter image description here






share|improve this answer














documentclass[a4paper,10pt,demo]{article} %
%%%%%%%%%%%%% dimension ancien des marges %%%%%%%%%%%%%%%%%%%%
usepackage[hmargin=2cm, lmargin=1.5cm]{geometry}
% geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm}
%-----accent
%usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
%usepackage[T1]{fontenc}
usepackage{pifont} %bouni
%-----
usepackage[demo,
export]{adjustbox} % also load graphicx,
% enable insert and positioning images
%usepackage{wrapfig}
usepackage{amsmath,amsfonts,amsthm} % Math packages
usepackage{makecell} % Table package
%%%%%%%%%%%%% style des sections %%%%%%%%%%%%%%%%%%%%
frenchspacing % Better looking spacings after periods
usepackage{sectsty}
sectionfont{% % Change font of section command
usefont{OT1}{phv}{b}{n} % bch-b-n: CharterBT-Bold font
sectionrule{0pt}{0pt}{-5pt}{1pt}}
%%%%%%%%%%%%%%%% Macros %%%%%%%%%%%%%%%%%%%%
newcommand{sepspace}{vspace*{1em}} % Vertical space macro
newcommand{MyName}[1]{ % Name
fontfamily{phv}Hugesffamilytextbf{#1}}
newcommand{MySlogan}[1]{ % Slogan}{optional)
fontfamily{phv}largesffamilyslshape #1}
%%% ------------------------------------------------------------
usepackage[colorlinks=true,
linkcolor=blue,
urlcolor=blue]{hyperref} % had to be the last in preamble

%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%
pagestyle{empty} % No pagenumbers/headers/footers
begin{document}
%%%%%%%%%%%%%%%%%% Photo et title %%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------
noindentbegin{tabular*}{linewidth}{@{extracolsep{fill}} l r}
makecell[r]{
MyName{Name Name}
MySlogan{Curriculum Vitae\ (today)}
}
& includegraphics[width=0.15textwidth, valign=c]{picture}
end{tabular*}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}

end{document}


using table for your name and image placement gives you freedom to put where you like to have. just insert it to according column: (text in the first, image in the last or vice versa). i also slightly simplified and reorganized your preamble.



edit: the definition of MyName, MySlogan and table organization are changed (improved).



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 7 at 10:54

























answered Dec 7 at 10:04









Zarko

119k865155




119k865155












  • Thank you. However, I want to get the picture not in the center but in the extreme right.
    – Schüler
    Dec 7 at 10:11










  • @Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
    – Zarko
    Dec 7 at 10:26


















  • Thank you. However, I want to get the picture not in the center but in the extreme right.
    – Schüler
    Dec 7 at 10:11










  • @Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
    – Zarko
    Dec 7 at 10:26
















Thank you. However, I want to get the picture not in the center but in the extreme right.
– Schüler
Dec 7 at 10:11




Thank you. However, I want to get the picture not in the center but in the extreme right.
– Schüler
Dec 7 at 10:11












@Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
– Zarko
Dec 7 at 10:26




@Schüler, sorry, i was interrupted at loading answer. now i finish it and move image on the right. the last is with suggested code straightforward ;-)
– Zarko
Dec 7 at 10:26


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463659%2fmake-the-picture-in-the-right-and-the-name-in-the-left%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар