Subtitle with the maketitle page?












45















Does there exist some command for subtitles in the maketitle thing?










share|improve this question




















  • 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
















45















Does there exist some command for subtitles in the maketitle thing?










share|improve this question




















  • 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














45












45








45


16






Does there exist some command for subtitles in the maketitle thing?










share|improve this question
















Does there exist some command for subtitles in the maketitle thing?







titles






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





    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














  • 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








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










3 Answers
3






active

oldest

votes


















40














In the standard classes: no. In the KOMA-Script classes: yes.



documentclass{scrartcl}

begin{document}

title{(Title)}
subtitle{(Subtitle)}
author{(Author)}

maketitle

end{document}


enter image description here






share|improve this answer
























  • 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



















49














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.



enter image description here






share|improve this answer
























  • ...how about subsubsub...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 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





    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



















1














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}





share|improve this answer





















  • 3





    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






  • 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











  • That's extremely helpful; thank you!

    – Andrew Dunning
    Jan 11 at 4:30











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









40














In the standard classes: no. In the KOMA-Script classes: yes.



documentclass{scrartcl}

begin{document}

title{(Title)}
subtitle{(Subtitle)}
author{(Author)}

maketitle

end{document}


enter image description here






share|improve this answer
























  • 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
















40














In the standard classes: no. In the KOMA-Script classes: yes.



documentclass{scrartcl}

begin{document}

title{(Title)}
subtitle{(Subtitle)}
author{(Author)}

maketitle

end{document}


enter image description here






share|improve this answer
























  • 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














40












40








40







In the standard classes: no. In the KOMA-Script classes: yes.



documentclass{scrartcl}

begin{document}

title{(Title)}
subtitle{(Subtitle)}
author{(Author)}

maketitle

end{document}


enter image description here






share|improve this answer













In the standard classes: no. In the KOMA-Script classes: yes.



documentclass{scrartcl}

begin{document}

title{(Title)}
subtitle{(Subtitle)}
author{(Author)}

maketitle

end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 31 '12 at 12:17









locksteplockstep

190k52587719




190k52587719













  • 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



















  • 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

















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











49














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.



enter image description here






share|improve this answer
























  • ...how about subsubsub...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 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





    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
















49














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.



enter image description here






share|improve this answer
























  • ...how about subsubsub...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 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





    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














49












49








49







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.



enter image description here






share|improve this answer













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.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 31 '12 at 12:45









egregegreg

713k8618943182




713k8618943182













  • ...how about subsubsub...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 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





    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











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








  • 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











1














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}





share|improve this answer





















  • 3





    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






  • 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











  • That's extremely helpful; thank you!

    – Andrew Dunning
    Jan 11 at 4:30
















1














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}





share|improve this answer





















  • 3





    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






  • 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











  • That's extremely helpful; thank you!

    – Andrew Dunning
    Jan 11 at 4:30














1












1








1







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}





share|improve this answer















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}






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 11 at 4:48

























answered Jan 11 at 2:52









Andrew DunningAndrew Dunning

466211




466211








  • 3





    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






  • 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











  • That's extremely helpful; thank you!

    – Andrew Dunning
    Jan 11 at 4:30














  • 3





    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






  • 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











  • 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


















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%2f50182%2fsubtitle-with-the-maketitle-page%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

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?