Make this picture in the center
up vote
2
down vote
favorite
documentclass[a4paper,10pt]{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}{0.5textwidth}
vspace*{-2em}
includegraphics[width=0.15textwidth]{picture}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
After compilation I get
However, my goal is to obtain
horizontal-alignment
add a comment |
up vote
2
down vote
favorite
documentclass[a4paper,10pt]{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}{0.5textwidth}
vspace*{-2em}
includegraphics[width=0.15textwidth]{picture}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
After compilation I get
However, my goal is to obtain
horizontal-alignment
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
documentclass[a4paper,10pt]{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}{0.5textwidth}
vspace*{-2em}
includegraphics[width=0.15textwidth]{picture}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
After compilation I get
However, my goal is to obtain
horizontal-alignment
documentclass[a4paper,10pt]{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}{0.5textwidth}
vspace*{-2em}
includegraphics[width=0.15textwidth]{picture}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
After compilation I get
However, my goal is to obtain
horizontal-alignment
horizontal-alignment
edited Dec 7 at 9:32
javadr
1,473313
1,473313
asked Dec 7 at 8:11
Schüler
24019
24019
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
You can get the desired output with the following amendments.
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}{0.5textwidth}
vspace*{-2em}
hfillmakebox[0.075textwidth][l]{includegraphics[width=0.15textwidth]{picture}}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae \ nullhfill (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
If you want to apply to your picture, you should remove demo
option.
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
1
down vote
I found a solution with begin{flushright}
command and some manual adjustment.
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}
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463648%2fmake-this-picture-in-the-center%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can get the desired output with the following amendments.
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}{0.5textwidth}
vspace*{-2em}
hfillmakebox[0.075textwidth][l]{includegraphics[width=0.15textwidth]{picture}}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae \ nullhfill (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
If you want to apply to your picture, you should remove demo
option.
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
2
down vote
accepted
You can get the desired output with the following amendments.
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}{0.5textwidth}
vspace*{-2em}
hfillmakebox[0.075textwidth][l]{includegraphics[width=0.15textwidth]{picture}}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae \ nullhfill (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
If you want to apply to your picture, you should remove demo
option.
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can get the desired output with the following amendments.
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}{0.5textwidth}
vspace*{-2em}
hfillmakebox[0.075textwidth][l]{includegraphics[width=0.15textwidth]{picture}}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae \ nullhfill (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
If you want to apply to your picture, you should remove demo
option.
You can get the desired output with the following amendments.
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}{0.5textwidth}
vspace*{-2em}
hfillmakebox[0.075textwidth][l]{includegraphics[width=0.15textwidth]{picture}}
end{wrapfigure}
%---------------------------
MyName{Name Name}
MySlogan{Curriculum Vitae \ nullhfill (today)}
%MySlogan{Curriculum Vitae (October 2016)}
%---------------------------
sepspace % Si on ajoute encore sepspace on aura plus d'espace
$$$$
%%%%%%%%%%%%%% Personal details%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
section*{Informations personelles}
end{document}
If you want to apply to your picture, you should remove demo
option.
edited Dec 7 at 9:25
answered Dec 7 at 9:04
javadr
1,473313
1,473313
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
Could you please add all the codes?Thanks
– Schüler
Dec 7 at 9:08
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
@Schüler I've just attached the whole code, as you can see I made a box with the half width of the picture because I wanted to set your picture in the center.
– javadr
Dec 7 at 9:28
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
1
down vote
I found a solution with begin{flushright}
command and some manual adjustment.
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}
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
1
down vote
I found a solution with begin{flushright}
command and some manual adjustment.
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}
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
up vote
1
down vote
up vote
1
down vote
I found a solution with begin{flushright}
command and some manual adjustment.
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}
I found a solution with begin{flushright}
command and some manual adjustment.
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}
answered Dec 7 at 9:00
ferahfeza
5,19411830
5,19411830
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
Thank you. However after compilation my picture does not appear. I get always the black picture
– Schüler
Dec 7 at 9:07
1
1
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Remove 'demo' option in 'documentclass'.
– ferahfeza
Dec 7 at 9:08
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thanks a lot. It is clear now
– Schüler
Dec 7 at 9:12
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
Thank you. I post another similar question: tex.stackexchange.com/questions/463659/…
– Schüler
Dec 7 at 9:31
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463648%2fmake-this-picture-in-the-center%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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