Add “This version” and “First version” in abstract
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:

abstract
add a comment |
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:

abstract
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
add a comment |
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:

abstract
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:

abstract
abstract
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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:

You can later change the arguments of the commands thisdraft and firstdraft according to your needs.
1
In fact you can even automate the date in the commandthisdraftto print out the current month and year of your current document. To do this you shall need a little more details and usingdatetimeordatetime2package 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
add a comment |
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).
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
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
});
}
});
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%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
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:

You can later change the arguments of the commands thisdraft and firstdraft according to your needs.
1
In fact you can even automate the date in the commandthisdraftto print out the current month and year of your current document. To do this you shall need a little more details and usingdatetimeordatetime2package 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
add a comment |
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:

You can later change the arguments of the commands thisdraft and firstdraft according to your needs.
1
In fact you can even automate the date in the commandthisdraftto print out the current month and year of your current document. To do this you shall need a little more details and usingdatetimeordatetime2package 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
add a comment |
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:

You can later change the arguments of the commands thisdraft and firstdraft according to your needs.
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:

You can later change the arguments of the commands thisdraft and firstdraft according to your needs.
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 commandthisdraftto print out the current month and year of your current document. To do this you shall need a little more details and usingdatetimeordatetime2package 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
add a comment |
1
In fact you can even automate the date in the commandthisdraftto print out the current month and year of your current document. To do this you shall need a little more details and usingdatetimeordatetime2package 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
add a comment |
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).
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
add a comment |
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).
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
add a comment |
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).
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).
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
add a comment |
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
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.
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%2f472015%2fadd-this-version-and-first-version-in-abstract%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
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