Subtitle with the maketitle page?
Does there exist some command for subtitles in the maketitle
thing?
titles
add a comment |
Does there exist some command for subtitles in the maketitle
thing?
titles
11
Thetitlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at thetitling
package for getting aid in designing a title.
– egreg
Mar 31 '12 at 12:15
add a comment |
Does there exist some command for subtitles in the maketitle
thing?
titles
Does there exist some command for subtitles in the maketitle
thing?
titles
titles
edited Mar 31 '12 at 13:59
Torbjørn T.
155k13250437
155k13250437
asked Mar 31 '12 at 12:09
hhhhhh
3,57173262
3,57173262
11
Thetitlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at thetitling
package for getting aid in designing a title.
– egreg
Mar 31 '12 at 12:15
add a comment |
11
Thetitlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at thetitling
package for getting aid in designing a title.
– egreg
Mar 31 '12 at 12:15
11
11
The
titlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at the titling
package for getting aid in designing a title.– egreg
Mar 31 '12 at 12:15
The
titlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at the titling
package for getting aid in designing a title.– egreg
Mar 31 '12 at 12:15
add a comment |
3 Answers
3
active
oldest
votes
In the standard classes: no. In the KOMA-Script
classes: yes.
documentclass{scrartcl}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
How aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
add a comment |
With the titling
package one can define a subtitle
command as follows:
documentclass[a4paper]{article}
usepackage{titling}
newcommand{subtitle}[1]{%
posttitle{%
parend{center}
begin{center}large#1end{center}
vskip0.5em}%
}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
The trick is that titling
redefines maketitle
so that it executes, among other things
<pretitle tokens> <title tokens> <posttitle tokens>
and what goes in <posttitle tokens>
is set by
posttitle{tokens}
The default, as made clear in the documentation, is
posttitle{parend{center}vskip0.5em}
so what's needed is to insert something in between.
...how aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to havesubsubtitle{...}
? At least with thetitle{...}
linebreaks do not work in title -elementtitle{oneLinen newLine}
.
– hhh
Mar 31 '12 at 14:29
5
Use\
to force a line break.
– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
|
show 5 more comments
I was inspired by Enrico's suggestion, but didn't want to use the titling
package because it's not included in BasicTeX and some other minimal TeX distributions, so I added a subtitle using etoolbox
instead. This also won't clash with KOMA-Script or other classes that add their own version of subtitle
:
documentclass{article}
usepackage{etoolbox}
makeatletter
providecommand{subtitle}[1]{% add subtitle to maketitle
apptocmd{@title}{par {large #1}}{}{}
}
makeatother
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
3
Don't place theusepackage{etoolbox}
inside the definition ofsubtitle
.
– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to loadetoolbox
only if the command were used.
– Andrew Dunning
Jan 11 at 2:59
2
You calltitle
inside the preamble (beforebegin{document}
). However, without your patch, you can calltitle
afterbegin{document}
. One issue,usepackage
can only be used inside the preamble which forcestitle
to be used in the preamble. It's just not common practice.
– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
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%2f50182%2fsubtitle-with-the-maketitle-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
In the standard classes: no. In the KOMA-Script
classes: yes.
documentclass{scrartcl}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
How aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
add a comment |
In the standard classes: no. In the KOMA-Script
classes: yes.
documentclass{scrartcl}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
How aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
add a comment |
In the standard classes: no. In the KOMA-Script
classes: yes.
documentclass{scrartcl}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
In the standard classes: no. In the KOMA-Script
classes: yes.
documentclass{scrartcl}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
answered Mar 31 '12 at 12:17
locksteplockstep
190k52587719
190k52587719
How aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
add a comment |
How aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
How about
subsubsub...title
?– hhh
Mar 31 '12 at 14:03
How about
subsubsub...title
?– hhh
Mar 31 '12 at 14:03
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
@hhh AFAIK, no class/package offers this.
– lockstep
Apr 1 '12 at 11:05
add a comment |
With the titling
package one can define a subtitle
command as follows:
documentclass[a4paper]{article}
usepackage{titling}
newcommand{subtitle}[1]{%
posttitle{%
parend{center}
begin{center}large#1end{center}
vskip0.5em}%
}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
The trick is that titling
redefines maketitle
so that it executes, among other things
<pretitle tokens> <title tokens> <posttitle tokens>
and what goes in <posttitle tokens>
is set by
posttitle{tokens}
The default, as made clear in the documentation, is
posttitle{parend{center}vskip0.5em}
so what's needed is to insert something in between.
...how aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to havesubsubtitle{...}
? At least with thetitle{...}
linebreaks do not work in title -elementtitle{oneLinen newLine}
.
– hhh
Mar 31 '12 at 14:29
5
Use\
to force a line break.
– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
|
show 5 more comments
With the titling
package one can define a subtitle
command as follows:
documentclass[a4paper]{article}
usepackage{titling}
newcommand{subtitle}[1]{%
posttitle{%
parend{center}
begin{center}large#1end{center}
vskip0.5em}%
}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
The trick is that titling
redefines maketitle
so that it executes, among other things
<pretitle tokens> <title tokens> <posttitle tokens>
and what goes in <posttitle tokens>
is set by
posttitle{tokens}
The default, as made clear in the documentation, is
posttitle{parend{center}vskip0.5em}
so what's needed is to insert something in between.
...how aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to havesubsubtitle{...}
? At least with thetitle{...}
linebreaks do not work in title -elementtitle{oneLinen newLine}
.
– hhh
Mar 31 '12 at 14:29
5
Use\
to force a line break.
– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
|
show 5 more comments
With the titling
package one can define a subtitle
command as follows:
documentclass[a4paper]{article}
usepackage{titling}
newcommand{subtitle}[1]{%
posttitle{%
parend{center}
begin{center}large#1end{center}
vskip0.5em}%
}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
The trick is that titling
redefines maketitle
so that it executes, among other things
<pretitle tokens> <title tokens> <posttitle tokens>
and what goes in <posttitle tokens>
is set by
posttitle{tokens}
The default, as made clear in the documentation, is
posttitle{parend{center}vskip0.5em}
so what's needed is to insert something in between.
With the titling
package one can define a subtitle
command as follows:
documentclass[a4paper]{article}
usepackage{titling}
newcommand{subtitle}[1]{%
posttitle{%
parend{center}
begin{center}large#1end{center}
vskip0.5em}%
}
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
The trick is that titling
redefines maketitle
so that it executes, among other things
<pretitle tokens> <title tokens> <posttitle tokens>
and what goes in <posttitle tokens>
is set by
posttitle{tokens}
The default, as made clear in the documentation, is
posttitle{parend{center}vskip0.5em}
so what's needed is to insert something in between.
answered Mar 31 '12 at 12:45
egregegreg
713k8618943182
713k8618943182
...how aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to havesubsubtitle{...}
? At least with thetitle{...}
linebreaks do not work in title -elementtitle{oneLinen newLine}
.
– hhh
Mar 31 '12 at 14:29
5
Use\
to force a line break.
– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
|
show 5 more comments
...how aboutsubsubsub...title
?
– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to havesubsubtitle{...}
? At least with thetitle{...}
linebreaks do not work in title -elementtitle{oneLinen newLine}
.
– hhh
Mar 31 '12 at 14:29
5
Use\
to force a line break.
– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
...how about
subsubsub...title
?– hhh
Mar 31 '12 at 14:18
...how about
subsubsub...title
?– hhh
Mar 31 '12 at 14:18
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
@hhh What do you mean?
– egreg
Mar 31 '12 at 14:19
Like is it possible to have
subsubtitle{...}
? At least with the title{...}
linebreaks do not work in title -element title{oneLinen newLine}
.– hhh
Mar 31 '12 at 14:29
Like is it possible to have
subsubtitle{...}
? At least with the title{...}
linebreaks do not work in title -element title{oneLinen newLine}
.– hhh
Mar 31 '12 at 14:29
5
5
Use
\
to force a line break.– egreg
Mar 31 '12 at 14:49
Use
\
to force a line break.– egreg
Mar 31 '12 at 14:49
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
@egreg Thanks for the helpful solution here. Unfortunately I'm running into an error when trying to include an abstract and multiple authors. I posted a separate question about the issue here: tex.stackexchange.com/questions/285711/…
– Mathemanic
Jan 3 '16 at 5:22
|
show 5 more comments
I was inspired by Enrico's suggestion, but didn't want to use the titling
package because it's not included in BasicTeX and some other minimal TeX distributions, so I added a subtitle using etoolbox
instead. This also won't clash with KOMA-Script or other classes that add their own version of subtitle
:
documentclass{article}
usepackage{etoolbox}
makeatletter
providecommand{subtitle}[1]{% add subtitle to maketitle
apptocmd{@title}{par {large #1}}{}{}
}
makeatother
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
3
Don't place theusepackage{etoolbox}
inside the definition ofsubtitle
.
– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to loadetoolbox
only if the command were used.
– Andrew Dunning
Jan 11 at 2:59
2
You calltitle
inside the preamble (beforebegin{document}
). However, without your patch, you can calltitle
afterbegin{document}
. One issue,usepackage
can only be used inside the preamble which forcestitle
to be used in the preamble. It's just not common practice.
– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
add a comment |
I was inspired by Enrico's suggestion, but didn't want to use the titling
package because it's not included in BasicTeX and some other minimal TeX distributions, so I added a subtitle using etoolbox
instead. This also won't clash with KOMA-Script or other classes that add their own version of subtitle
:
documentclass{article}
usepackage{etoolbox}
makeatletter
providecommand{subtitle}[1]{% add subtitle to maketitle
apptocmd{@title}{par {large #1}}{}{}
}
makeatother
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
3
Don't place theusepackage{etoolbox}
inside the definition ofsubtitle
.
– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to loadetoolbox
only if the command were used.
– Andrew Dunning
Jan 11 at 2:59
2
You calltitle
inside the preamble (beforebegin{document}
). However, without your patch, you can calltitle
afterbegin{document}
. One issue,usepackage
can only be used inside the preamble which forcestitle
to be used in the preamble. It's just not common practice.
– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
add a comment |
I was inspired by Enrico's suggestion, but didn't want to use the titling
package because it's not included in BasicTeX and some other minimal TeX distributions, so I added a subtitle using etoolbox
instead. This also won't clash with KOMA-Script or other classes that add their own version of subtitle
:
documentclass{article}
usepackage{etoolbox}
makeatletter
providecommand{subtitle}[1]{% add subtitle to maketitle
apptocmd{@title}{par {large #1}}{}{}
}
makeatother
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
I was inspired by Enrico's suggestion, but didn't want to use the titling
package because it's not included in BasicTeX and some other minimal TeX distributions, so I added a subtitle using etoolbox
instead. This also won't clash with KOMA-Script or other classes that add their own version of subtitle
:
documentclass{article}
usepackage{etoolbox}
makeatletter
providecommand{subtitle}[1]{% add subtitle to maketitle
apptocmd{@title}{par {large #1}}{}{}
}
makeatother
begin{document}
title{(Title)}
subtitle{(Subtitle)}
author{(Author)}
maketitle
end{document}
edited Jan 11 at 4:48
answered Jan 11 at 2:52
Andrew DunningAndrew Dunning
466211
466211
3
Don't place theusepackage{etoolbox}
inside the definition ofsubtitle
.
– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to loadetoolbox
only if the command were used.
– Andrew Dunning
Jan 11 at 2:59
2
You calltitle
inside the preamble (beforebegin{document}
). However, without your patch, you can calltitle
afterbegin{document}
. One issue,usepackage
can only be used inside the preamble which forcestitle
to be used in the preamble. It's just not common practice.
– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
add a comment |
3
Don't place theusepackage{etoolbox}
inside the definition ofsubtitle
.
– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to loadetoolbox
only if the command were used.
– Andrew Dunning
Jan 11 at 2:59
2
You calltitle
inside the preamble (beforebegin{document}
). However, without your patch, you can calltitle
afterbegin{document}
. One issue,usepackage
can only be used inside the preamble which forcestitle
to be used in the preamble. It's just not common practice.
– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
3
3
Don't place the
usepackage{etoolbox}
inside the definition of subtitle
.– Werner
Jan 11 at 2:55
Don't place the
usepackage{etoolbox}
inside the definition of subtitle
.– Werner
Jan 11 at 2:55
Is there a reason for that? The idea was to load
etoolbox
only if the command were used.– Andrew Dunning
Jan 11 at 2:59
Is there a reason for that? The idea was to load
etoolbox
only if the command were used.– Andrew Dunning
Jan 11 at 2:59
2
2
You call
title
inside the preamble (before begin{document}
). However, without your patch, you can call title
after begin{document}
. One issue, usepackage
can only be used inside the preamble which forces title
to be used in the preamble. It's just not common practice.– Werner
Jan 11 at 3:53
You call
title
inside the preamble (before begin{document}
). However, without your patch, you can call title
after begin{document}
. One issue, usepackage
can only be used inside the preamble which forces title
to be used in the preamble. It's just not common practice.– Werner
Jan 11 at 3:53
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
That's extremely helpful; thank you!
– Andrew Dunning
Jan 11 at 4:30
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%2f50182%2fsubtitle-with-the-maketitle-page%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
11
The
titlepage
environment can be used to create a title page with everything you need. The standard classes don't even try to provide "everything" one could need. You can look at thetitling
package for getting aid in designing a title.– egreg
Mar 31 '12 at 12:15