Place, date, signature in one line












1















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 Expected Output



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:



my output










share|improve this question









New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    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











  • @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















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 Expected Output



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:



my output










share|improve this question









New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    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











  • @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








1








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 Expected Output



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:



my output










share|improve this question









New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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 Expected Output



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:



my output







rules






share|improve this question









New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago







Sourav Chakraborty













New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 21 hours ago









Sourav ChakrabortySourav Chakraborty

62




62




New contributor




Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sourav Chakraborty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    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











  • @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





    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











  • @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










1 Answer
1






active

oldest

votes


















1














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}}





share|improve this answer
























    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.










    draft saved

    draft discarded


















    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









    1














    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}}





    share|improve this answer




























      1














      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}}





      share|improve this answer


























        1












        1








        1







        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}}





        share|improve this answer













        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}}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 32 mins ago









        wipetwipet

        35.3k4983




        35.3k4983






















            Sourav Chakraborty is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            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.




            draft saved


            draft discarded














            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





















































            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

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)