Add “This version” and “First version” in abstract












0















I am trying to add on separate lines "This version" and "First version". I have tried the following code, but it does not seem to work:



renewcommand*{today}{normalsize{This draft: December 2018}} 
renewcommand*{newline}{normalsize{First draft: March 2015}}


Any help will be greatly appreciated.



The ideal outcome would look like as follows:



enter image description here










share|improve this question




















  • 3





    It would also be more helpful if you post a pic of how you want your final output looks like.

    – hesham
    Jan 26 at 21:11






  • 1





    Thanks. I will certainly do that now.

    – Job
    Jan 27 at 4:03
















0















I am trying to add on separate lines "This version" and "First version". I have tried the following code, but it does not seem to work:



renewcommand*{today}{normalsize{This draft: December 2018}} 
renewcommand*{newline}{normalsize{First draft: March 2015}}


Any help will be greatly appreciated.



The ideal outcome would look like as follows:



enter image description here










share|improve this question




















  • 3





    It would also be more helpful if you post a pic of how you want your final output looks like.

    – hesham
    Jan 26 at 21:11






  • 1





    Thanks. I will certainly do that now.

    – Job
    Jan 27 at 4:03














0












0








0








I am trying to add on separate lines "This version" and "First version". I have tried the following code, but it does not seem to work:



renewcommand*{today}{normalsize{This draft: December 2018}} 
renewcommand*{newline}{normalsize{First draft: March 2015}}


Any help will be greatly appreciated.



The ideal outcome would look like as follows:



enter image description here










share|improve this question
















I am trying to add on separate lines "This version" and "First version". I have tried the following code, but it does not seem to work:



renewcommand*{today}{normalsize{This draft: December 2018}} 
renewcommand*{newline}{normalsize{First draft: March 2015}}


Any help will be greatly appreciated.



The ideal outcome would look like as follows:



enter image description here







abstract






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 27 at 4:05







Job

















asked Jan 26 at 20:46









JobJob

297




297








  • 3





    It would also be more helpful if you post a pic of how you want your final output looks like.

    – hesham
    Jan 26 at 21:11






  • 1





    Thanks. I will certainly do that now.

    – Job
    Jan 27 at 4:03














  • 3





    It would also be more helpful if you post a pic of how you want your final output looks like.

    – hesham
    Jan 26 at 21:11






  • 1





    Thanks. I will certainly do that now.

    – Job
    Jan 27 at 4:03








3




3





It would also be more helpful if you post a pic of how you want your final output looks like.

– hesham
Jan 26 at 21:11





It would also be more helpful if you post a pic of how you want your final output looks like.

– hesham
Jan 26 at 21:11




1




1





Thanks. I will certainly do that now.

– Job
Jan 27 at 4:03





Thanks. I will certainly do that now.

– Job
Jan 27 at 4:03










2 Answers
2






active

oldest

votes


















1














At first you need to define two commands in the preamble thisdraft and firstdraft which you are supposed to use later in your document. These commands includes the words of your choice (in your case "This draft: December 2018" and "First draft: March 2015"). Then
place the commands as an arguments in the date{} commands of the article so that you ensure the commands output will be printed in the place designated for the date{} in the article title. The code will be as follows:



documentclass{article}
%
%
newcommand*{thisdraft}{This draft: December 2018} % define command
newcommand*{firstdraft}{First draft: March 2015} % define command
%
title{Title}
author{Name}
%
date{thisdraft \ firstdraft}

begin{document}

maketitle

hrule % optional rule after title

begin{abstract}
Type your abstract here.
end{abstract}

section{Sec One}

end{document}


The output will be:
enter image description here



You can later change the arguments of the commands thisdraft and firstdraft according to your needs.






share|improve this answer





















  • 1





    In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

    – hesham
    Jan 27 at 20:19













  • Thank you very much @hesham!! You were extremely helpful.

    – Job
    Jan 28 at 0:38



















2














Why redefine such important commands? The commands today and newline that you are trying to re-define are mainly used in latex in many classes and packages definitions. Re-defining them may cause unnecessary issues.



You can use newcommand*{mytoday} and newcommand*{mynewline} instead a follows.



newcommand*{mytoday}{normalsize{This draft: December 2018}} 
newcommand*{mynewline}{normalsize{First draft: March 2015}}


and then use them in the text as mytoday{} and mynewline{}.



I would also suggest choosing a better command name (e.g. mytoday --> myversion and mynewline --> myfirstversion).






share|improve this answer
























  • Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

    – Job
    Jan 27 at 4:05











  • Any further suggestions will be greatly appreciated, @hesham!

    – Job
    Jan 27 at 19:47








  • 1





    yes there is. plz wait

    – hesham
    Jan 27 at 20:03











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472015%2fadd-this-version-and-first-version-in-abstract%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









1














At first you need to define two commands in the preamble thisdraft and firstdraft which you are supposed to use later in your document. These commands includes the words of your choice (in your case "This draft: December 2018" and "First draft: March 2015"). Then
place the commands as an arguments in the date{} commands of the article so that you ensure the commands output will be printed in the place designated for the date{} in the article title. The code will be as follows:



documentclass{article}
%
%
newcommand*{thisdraft}{This draft: December 2018} % define command
newcommand*{firstdraft}{First draft: March 2015} % define command
%
title{Title}
author{Name}
%
date{thisdraft \ firstdraft}

begin{document}

maketitle

hrule % optional rule after title

begin{abstract}
Type your abstract here.
end{abstract}

section{Sec One}

end{document}


The output will be:
enter image description here



You can later change the arguments of the commands thisdraft and firstdraft according to your needs.






share|improve this answer





















  • 1





    In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

    – hesham
    Jan 27 at 20:19













  • Thank you very much @hesham!! You were extremely helpful.

    – Job
    Jan 28 at 0:38
















1














At first you need to define two commands in the preamble thisdraft and firstdraft which you are supposed to use later in your document. These commands includes the words of your choice (in your case "This draft: December 2018" and "First draft: March 2015"). Then
place the commands as an arguments in the date{} commands of the article so that you ensure the commands output will be printed in the place designated for the date{} in the article title. The code will be as follows:



documentclass{article}
%
%
newcommand*{thisdraft}{This draft: December 2018} % define command
newcommand*{firstdraft}{First draft: March 2015} % define command
%
title{Title}
author{Name}
%
date{thisdraft \ firstdraft}

begin{document}

maketitle

hrule % optional rule after title

begin{abstract}
Type your abstract here.
end{abstract}

section{Sec One}

end{document}


The output will be:
enter image description here



You can later change the arguments of the commands thisdraft and firstdraft according to your needs.






share|improve this answer





















  • 1





    In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

    – hesham
    Jan 27 at 20:19













  • Thank you very much @hesham!! You were extremely helpful.

    – Job
    Jan 28 at 0:38














1












1








1







At first you need to define two commands in the preamble thisdraft and firstdraft which you are supposed to use later in your document. These commands includes the words of your choice (in your case "This draft: December 2018" and "First draft: March 2015"). Then
place the commands as an arguments in the date{} commands of the article so that you ensure the commands output will be printed in the place designated for the date{} in the article title. The code will be as follows:



documentclass{article}
%
%
newcommand*{thisdraft}{This draft: December 2018} % define command
newcommand*{firstdraft}{First draft: March 2015} % define command
%
title{Title}
author{Name}
%
date{thisdraft \ firstdraft}

begin{document}

maketitle

hrule % optional rule after title

begin{abstract}
Type your abstract here.
end{abstract}

section{Sec One}

end{document}


The output will be:
enter image description here



You can later change the arguments of the commands thisdraft and firstdraft according to your needs.






share|improve this answer















At first you need to define two commands in the preamble thisdraft and firstdraft which you are supposed to use later in your document. These commands includes the words of your choice (in your case "This draft: December 2018" and "First draft: March 2015"). Then
place the commands as an arguments in the date{} commands of the article so that you ensure the commands output will be printed in the place designated for the date{} in the article title. The code will be as follows:



documentclass{article}
%
%
newcommand*{thisdraft}{This draft: December 2018} % define command
newcommand*{firstdraft}{First draft: March 2015} % define command
%
title{Title}
author{Name}
%
date{thisdraft \ firstdraft}

begin{document}

maketitle

hrule % optional rule after title

begin{abstract}
Type your abstract here.
end{abstract}

section{Sec One}

end{document}


The output will be:
enter image description here



You can later change the arguments of the commands thisdraft and firstdraft according to your needs.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 27 at 21:11

























answered Jan 27 at 20:13









heshamhesham

1738




1738








  • 1





    In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

    – hesham
    Jan 27 at 20:19













  • Thank you very much @hesham!! You were extremely helpful.

    – Job
    Jan 28 at 0:38














  • 1





    In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

    – hesham
    Jan 27 at 20:19













  • Thank you very much @hesham!! You were extremely helpful.

    – Job
    Jan 28 at 0:38








1




1





In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

– hesham
Jan 27 at 20:19







In fact you can even automate the date in the command thisdraft to print out the current month and year of your current document. To do this you shall need a little more details and using datetime or datetime2 package and defining the desired format for date. Anyway just wanted to keep things simple at least to your present needs.

– hesham
Jan 27 at 20:19















Thank you very much @hesham!! You were extremely helpful.

– Job
Jan 28 at 0:38





Thank you very much @hesham!! You were extremely helpful.

– Job
Jan 28 at 0:38











2














Why redefine such important commands? The commands today and newline that you are trying to re-define are mainly used in latex in many classes and packages definitions. Re-defining them may cause unnecessary issues.



You can use newcommand*{mytoday} and newcommand*{mynewline} instead a follows.



newcommand*{mytoday}{normalsize{This draft: December 2018}} 
newcommand*{mynewline}{normalsize{First draft: March 2015}}


and then use them in the text as mytoday{} and mynewline{}.



I would also suggest choosing a better command name (e.g. mytoday --> myversion and mynewline --> myfirstversion).






share|improve this answer
























  • Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

    – Job
    Jan 27 at 4:05











  • Any further suggestions will be greatly appreciated, @hesham!

    – Job
    Jan 27 at 19:47








  • 1





    yes there is. plz wait

    – hesham
    Jan 27 at 20:03
















2














Why redefine such important commands? The commands today and newline that you are trying to re-define are mainly used in latex in many classes and packages definitions. Re-defining them may cause unnecessary issues.



You can use newcommand*{mytoday} and newcommand*{mynewline} instead a follows.



newcommand*{mytoday}{normalsize{This draft: December 2018}} 
newcommand*{mynewline}{normalsize{First draft: March 2015}}


and then use them in the text as mytoday{} and mynewline{}.



I would also suggest choosing a better command name (e.g. mytoday --> myversion and mynewline --> myfirstversion).






share|improve this answer
























  • Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

    – Job
    Jan 27 at 4:05











  • Any further suggestions will be greatly appreciated, @hesham!

    – Job
    Jan 27 at 19:47








  • 1





    yes there is. plz wait

    – hesham
    Jan 27 at 20:03














2












2








2







Why redefine such important commands? The commands today and newline that you are trying to re-define are mainly used in latex in many classes and packages definitions. Re-defining them may cause unnecessary issues.



You can use newcommand*{mytoday} and newcommand*{mynewline} instead a follows.



newcommand*{mytoday}{normalsize{This draft: December 2018}} 
newcommand*{mynewline}{normalsize{First draft: March 2015}}


and then use them in the text as mytoday{} and mynewline{}.



I would also suggest choosing a better command name (e.g. mytoday --> myversion and mynewline --> myfirstversion).






share|improve this answer













Why redefine such important commands? The commands today and newline that you are trying to re-define are mainly used in latex in many classes and packages definitions. Re-defining them may cause unnecessary issues.



You can use newcommand*{mytoday} and newcommand*{mynewline} instead a follows.



newcommand*{mytoday}{normalsize{This draft: December 2018}} 
newcommand*{mynewline}{normalsize{First draft: March 2015}}


and then use them in the text as mytoday{} and mynewline{}.



I would also suggest choosing a better command name (e.g. mytoday --> myversion and mynewline --> myfirstversion).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 26 at 21:08









heshamhesham

1738




1738













  • Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

    – Job
    Jan 27 at 4:05











  • Any further suggestions will be greatly appreciated, @hesham!

    – Job
    Jan 27 at 19:47








  • 1





    yes there is. plz wait

    – hesham
    Jan 27 at 20:03



















  • Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

    – Job
    Jan 27 at 4:05











  • Any further suggestions will be greatly appreciated, @hesham!

    – Job
    Jan 27 at 19:47








  • 1





    yes there is. plz wait

    – hesham
    Jan 27 at 20:03

















Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

– Job
Jan 27 at 4:05





Thanks very much, @hesham. I just tried your suggestion and still do not get the outcome.

– Job
Jan 27 at 4:05













Any further suggestions will be greatly appreciated, @hesham!

– Job
Jan 27 at 19:47







Any further suggestions will be greatly appreciated, @hesham!

– Job
Jan 27 at 19:47






1




1





yes there is. plz wait

– hesham
Jan 27 at 20:03





yes there is. plz wait

– hesham
Jan 27 at 20:03


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472015%2fadd-this-version-and-first-version-in-abstract%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

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?