Place, date, signature in one line
I want to put the place on the left side, the date on the center and the signature on the right side. And above them, a line should come. I am trying this on Sharelatex. I couldn't control the alignment and the names
My Code looks like:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{tikz}
usepackage{geometry}
geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
setlength{parindent}{0em}
setlength{parskip}{1.4em}
newcommand{HRule}{rule{linewidth}{0.5mm}}
makeatletter% since there's an at-sign (@) in the command name
renewcommand{@maketitle}{%
%parindent=0pt% don't indent paragraphs in the title block
{begin{minipage}[t]{.5textwidth}@authorend{minipage}begin{minipage}[t]{.5textwidth}raggedleft@dateend{minipage}}
par
centering
{Large bfseriestextsc{@title}}
HRulepar%
}
makeatother% resets the meaning of the at-sign (@)
title{Motivation Letter}
author{}
date{}
newcommand{namesigdatehrule}[1]{partikz draw [black, ultra thick] (0,0) -- (#1,0);par}
newcommand{namesigdate}[2][5cm]{%
begin{minipage}{#1}%
vspace{1.0cm}namesigdatehrule{#1}smallskip
small noindenttextit{Signature}
end{minipage}
}
begin{document}
maketitle
Lorem lipsum...
namesigdate{} namesigdate{} namesigdate{}
end{document}
And my output is like this:
rules
New contributor
add a comment |
I want to put the place on the left side, the date on the center and the signature on the right side. And above them, a line should come. I am trying this on Sharelatex. I couldn't control the alignment and the names
My Code looks like:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{tikz}
usepackage{geometry}
geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
setlength{parindent}{0em}
setlength{parskip}{1.4em}
newcommand{HRule}{rule{linewidth}{0.5mm}}
makeatletter% since there's an at-sign (@) in the command name
renewcommand{@maketitle}{%
%parindent=0pt% don't indent paragraphs in the title block
{begin{minipage}[t]{.5textwidth}@authorend{minipage}begin{minipage}[t]{.5textwidth}raggedleft@dateend{minipage}}
par
centering
{Large bfseriestextsc{@title}}
HRulepar%
}
makeatother% resets the meaning of the at-sign (@)
title{Motivation Letter}
author{}
date{}
newcommand{namesigdatehrule}[1]{partikz draw [black, ultra thick] (0,0) -- (#1,0);par}
newcommand{namesigdate}[2][5cm]{%
begin{minipage}{#1}%
vspace{1.0cm}namesigdatehrule{#1}smallskip
small noindenttextit{Signature}
end{minipage}
}
begin{document}
maketitle
Lorem lipsum...
namesigdate{} namesigdate{} namesigdate{}
end{document}
And my output is like this:
rules
New contributor
1
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:bibtex
andpdftex
?
– Sebastiano
21 hours ago
The simple solution would be to copy the definition ofnamesigdate
(thenewcommand{namesigdate}[2][5cm]{...}
bit) and replaceSignature
withPlace
andDate
.
– moewe
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago
add a comment |
I want to put the place on the left side, the date on the center and the signature on the right side. And above them, a line should come. I am trying this on Sharelatex. I couldn't control the alignment and the names
My Code looks like:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{tikz}
usepackage{geometry}
geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
setlength{parindent}{0em}
setlength{parskip}{1.4em}
newcommand{HRule}{rule{linewidth}{0.5mm}}
makeatletter% since there's an at-sign (@) in the command name
renewcommand{@maketitle}{%
%parindent=0pt% don't indent paragraphs in the title block
{begin{minipage}[t]{.5textwidth}@authorend{minipage}begin{minipage}[t]{.5textwidth}raggedleft@dateend{minipage}}
par
centering
{Large bfseriestextsc{@title}}
HRulepar%
}
makeatother% resets the meaning of the at-sign (@)
title{Motivation Letter}
author{}
date{}
newcommand{namesigdatehrule}[1]{partikz draw [black, ultra thick] (0,0) -- (#1,0);par}
newcommand{namesigdate}[2][5cm]{%
begin{minipage}{#1}%
vspace{1.0cm}namesigdatehrule{#1}smallskip
small noindenttextit{Signature}
end{minipage}
}
begin{document}
maketitle
Lorem lipsum...
namesigdate{} namesigdate{} namesigdate{}
end{document}
And my output is like this:
rules
New contributor
I want to put the place on the left side, the date on the center and the signature on the right side. And above them, a line should come. I am trying this on Sharelatex. I couldn't control the alignment and the names
My Code looks like:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{tikz}
usepackage{geometry}
geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
setlength{parindent}{0em}
setlength{parskip}{1.4em}
newcommand{HRule}{rule{linewidth}{0.5mm}}
makeatletter% since there's an at-sign (@) in the command name
renewcommand{@maketitle}{%
%parindent=0pt% don't indent paragraphs in the title block
{begin{minipage}[t]{.5textwidth}@authorend{minipage}begin{minipage}[t]{.5textwidth}raggedleft@dateend{minipage}}
par
centering
{Large bfseriestextsc{@title}}
HRulepar%
}
makeatother% resets the meaning of the at-sign (@)
title{Motivation Letter}
author{}
date{}
newcommand{namesigdatehrule}[1]{partikz draw [black, ultra thick] (0,0) -- (#1,0);par}
newcommand{namesigdate}[2][5cm]{%
begin{minipage}{#1}%
vspace{1.0cm}namesigdatehrule{#1}smallskip
small noindenttextit{Signature}
end{minipage}
}
begin{document}
maketitle
Lorem lipsum...
namesigdate{} namesigdate{} namesigdate{}
end{document}
And my output is like this:
rules
rules
New contributor
New contributor
edited 2 hours ago
Sourav Chakraborty
New contributor
asked 21 hours ago
Sourav ChakrabortySourav Chakraborty
62
62
New contributor
New contributor
1
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:bibtex
andpdftex
?
– Sebastiano
21 hours ago
The simple solution would be to copy the definition ofnamesigdate
(thenewcommand{namesigdate}[2][5cm]{...}
bit) and replaceSignature
withPlace
andDate
.
– moewe
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago
add a comment |
1
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:bibtex
andpdftex
?
– Sebastiano
21 hours ago
The simple solution would be to copy the definition ofnamesigdate
(thenewcommand{namesigdate}[2][5cm]{...}
bit) and replaceSignature
withPlace
andDate
.
– moewe
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago
1
1
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:
bibtex
and pdftex
?– Sebastiano
21 hours ago
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:
bibtex
and pdftex
?– Sebastiano
21 hours ago
The simple solution would be to copy the definition of
namesigdate
(the newcommand{namesigdate}[2][5cm]{...}
bit) and replace Signature
with Place
and Date
.– moewe
7 hours ago
The simple solution would be to copy the definition of
namesigdate
(the newcommand{namesigdate}[2][5cm]{...}
bit) and replace Signature
with Place
and Date
.– moewe
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I understand that you need three lines with equal length and with quad
space between them. The lines fill the width of the typesetting area. Each line has a word below at left side of the line and with one space. It can be done as follows:
defsign#1{rlap{lower2.7exhbox{ #1}}leadershrulehfil}
hbox tohsize{sign{Place}quad sign{Date}quad sign{Signature}}
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',
autoActivateHeartbeat: false,
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
});
}
});
Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.
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%2f481864%2fplace-date-signature-in-one-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I understand that you need three lines with equal length and with quad
space between them. The lines fill the width of the typesetting area. Each line has a word below at left side of the line and with one space. It can be done as follows:
defsign#1{rlap{lower2.7exhbox{ #1}}leadershrulehfil}
hbox tohsize{sign{Place}quad sign{Date}quad sign{Signature}}
add a comment |
I understand that you need three lines with equal length and with quad
space between them. The lines fill the width of the typesetting area. Each line has a word below at left side of the line and with one space. It can be done as follows:
defsign#1{rlap{lower2.7exhbox{ #1}}leadershrulehfil}
hbox tohsize{sign{Place}quad sign{Date}quad sign{Signature}}
add a comment |
I understand that you need three lines with equal length and with quad
space between them. The lines fill the width of the typesetting area. Each line has a word below at left side of the line and with one space. It can be done as follows:
defsign#1{rlap{lower2.7exhbox{ #1}}leadershrulehfil}
hbox tohsize{sign{Place}quad sign{Date}quad sign{Signature}}
I understand that you need three lines with equal length and with quad
space between them. The lines fill the width of the typesetting area. Each line has a word below at left side of the line and with one space. It can be done as follows:
defsign#1{rlap{lower2.7exhbox{ #1}}leadershrulehfil}
hbox tohsize{sign{Place}quad sign{Date}quad sign{Signature}}
answered 32 mins ago
wipetwipet
35.3k4983
35.3k4983
add a comment |
add a comment |
Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.
Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.
Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.
Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f481864%2fplace-date-signature-in-one-line%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
1
Welcome to the TeX Stackexchange. Can you explain, please, why the tags are:
bibtex
andpdftex
?– Sebastiano
21 hours ago
The simple solution would be to copy the definition of
namesigdate
(thenewcommand{namesigdate}[2][5cm]{...}
bit) and replaceSignature
withPlace
andDate
.– moewe
7 hours ago
@moewe Thank you for your edit. I didn't edit for several reasons.
– Sebastiano
7 hours ago
@moewe would you give me the code for alignment?
– Sourav Chakraborty
2 hours ago