Skip to main content
replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/
Source Link

Book classes do not provide an abstract environment as it is usual for books to have a whole chapter to sum up the contents. I defined a \fakechap command to have both on the same page and look alike. To be honest, it is a bit of a hack, a chapter should be of its own. Please note the difference in using \addchap. If you are interested, you can find out more at How to use unnumbered chapters with KOMA-script?How to use unnumbered chapters with KOMA-script?.

 \begin{filecontents}{domititlepage.sty} \ProvidesPackage{domititlepage}[2014/11/03 titlepages domi style] %There is absolutely no warranty for this demo package % httphttps://tex.stackexchange.com/questions/209993/how-to-add-a-flyleaf-code/210280#210280 \RequirePackage{etoolbox} \ifundef{\KOMAClassName}{ \@ifclassloaded{memoir}{\PackageWarningNoLine{domititlepage}{Using memoir. Memoir has its own mechanism of generating stuff. Not loading `scrextend'. Aborting now} \endinput }{ \typeout{You seem to be using a standard class. Using package `scrextend' for nice features} \RequirePackage[extendedfeature=title]{scrextend} } \typeout{non-KOMA branch} }{ \typeout{Using a KOMA class, no need to load package scrextend} } \newcommand{\@supervisor}{} \newcommand{\supervisor}[1]{\gdef\@supervisor{#1}} \newkomafont{supervisor}{\normalfont\normalsize} \newcommand{\@degree}{} \newcommand{\degree}[1]{\gdef\@degree{#1}} \newkomafont{degree}{\normalfont\normalsize} \newcommand*{\@thanksnote}{} \newcommand*{\thanksnote}[1]{\gdef\@thanksnote{#1}} \newkomafont{thanksnote}{\small\itshape} \newcommand{\@@thanksnote}{\begin{minipage}{\linewidth} \usekomafont{thanksnote}\@thanksnote\par\end{minipage}\par} \renewcommand{\maketitle}{% \begin{titlepage} \setlength{\parindent}{\z@} \setlength{\parskip}{\z@} \typeout{Typesetting the titlepage} \vspace{-1em} \begin{minipage}[t]{\textwidth} \centering University for theoretical and applied animal dance in Duckburg\par \end{minipage}\par \vspace{7em} {\LARGE\centering\usefont{T1}{qcs}{b}{n} \@title\par} \vspace{5em} {\usekomafont{author}\centering \@author\par} \vspace{2em} \ifx\@degree\@empty \else {\centering\usekomafont{degree}\@degree\par} \fi \next@tpage \ifx\@thanksnote\@empty\hbox{} \else {\@@thanksnote} \fi \vfill \begin{minipage}{10em} \raggedright \usefont{T1}{qcr}{m}{n} No animals were harmed during the production of this printed work\par \end{minipage} \end{titlepage}% } \end{filecontents} \documentclass{scrbook} \usepackage{domititlepage} \usepackage{blindtext} \author{Paulo Lee Peterson} \title{Polka loving Platypus} %\degree{Master of Stuff} %\thanksnote{Thanks to Daisy for her support} \begin{document} \maketitle \chapter{Introduction to Polka dancing} \blindtext \end{document} 

Book classes do not provide an abstract environment as it is usual for books to have a whole chapter to sum up the contents. I defined a \fakechap command to have both on the same page and look alike. To be honest, it is a bit of a hack, a chapter should be of its own. Please note the difference in using \addchap. If you are interested, you can find out more at How to use unnumbered chapters with KOMA-script?.

 \begin{filecontents}{domititlepage.sty} \ProvidesPackage{domititlepage}[2014/11/03 titlepages domi style] %There is absolutely no warranty for this demo package % http://tex.stackexchange.com/questions/209993/how-to-add-a-flyleaf-code/210280#210280 \RequirePackage{etoolbox} \ifundef{\KOMAClassName}{ \@ifclassloaded{memoir}{\PackageWarningNoLine{domititlepage}{Using memoir. Memoir has its own mechanism of generating stuff. Not loading `scrextend'. Aborting now} \endinput }{ \typeout{You seem to be using a standard class. Using package `scrextend' for nice features} \RequirePackage[extendedfeature=title]{scrextend} } \typeout{non-KOMA branch} }{ \typeout{Using a KOMA class, no need to load package scrextend} } \newcommand{\@supervisor}{} \newcommand{\supervisor}[1]{\gdef\@supervisor{#1}} \newkomafont{supervisor}{\normalfont\normalsize} \newcommand{\@degree}{} \newcommand{\degree}[1]{\gdef\@degree{#1}} \newkomafont{degree}{\normalfont\normalsize} \newcommand*{\@thanksnote}{} \newcommand*{\thanksnote}[1]{\gdef\@thanksnote{#1}} \newkomafont{thanksnote}{\small\itshape} \newcommand{\@@thanksnote}{\begin{minipage}{\linewidth} \usekomafont{thanksnote}\@thanksnote\par\end{minipage}\par} \renewcommand{\maketitle}{% \begin{titlepage} \setlength{\parindent}{\z@} \setlength{\parskip}{\z@} \typeout{Typesetting the titlepage} \vspace{-1em} \begin{minipage}[t]{\textwidth} \centering University for theoretical and applied animal dance in Duckburg\par \end{minipage}\par \vspace{7em} {\LARGE\centering\usefont{T1}{qcs}{b}{n} \@title\par} \vspace{5em} {\usekomafont{author}\centering \@author\par} \vspace{2em} \ifx\@degree\@empty \else {\centering\usekomafont{degree}\@degree\par} \fi \next@tpage \ifx\@thanksnote\@empty\hbox{} \else {\@@thanksnote} \fi \vfill \begin{minipage}{10em} \raggedright \usefont{T1}{qcr}{m}{n} No animals were harmed during the production of this printed work\par \end{minipage} \end{titlepage}% } \end{filecontents} \documentclass{scrbook} \usepackage{domititlepage} \usepackage{blindtext} \author{Paulo Lee Peterson} \title{Polka loving Platypus} %\degree{Master of Stuff} %\thanksnote{Thanks to Daisy for her support} \begin{document} \maketitle \chapter{Introduction to Polka dancing} \blindtext \end{document} 

Book classes do not provide an abstract environment as it is usual for books to have a whole chapter to sum up the contents. I defined a \fakechap command to have both on the same page and look alike. To be honest, it is a bit of a hack, a chapter should be of its own. Please note the difference in using \addchap. If you are interested, you can find out more at How to use unnumbered chapters with KOMA-script?.

 \begin{filecontents}{domititlepage.sty} \ProvidesPackage{domititlepage}[2014/11/03 titlepages domi style] %There is absolutely no warranty for this demo package % https://tex.stackexchange.com/questions/209993/how-to-add-a-flyleaf-code/210280#210280 \RequirePackage{etoolbox} \ifundef{\KOMAClassName}{ \@ifclassloaded{memoir}{\PackageWarningNoLine{domititlepage}{Using memoir. Memoir has its own mechanism of generating stuff. Not loading `scrextend'. Aborting now} \endinput }{ \typeout{You seem to be using a standard class. Using package `scrextend' for nice features} \RequirePackage[extendedfeature=title]{scrextend} } \typeout{non-KOMA branch} }{ \typeout{Using a KOMA class, no need to load package scrextend} } \newcommand{\@supervisor}{} \newcommand{\supervisor}[1]{\gdef\@supervisor{#1}} \newkomafont{supervisor}{\normalfont\normalsize} \newcommand{\@degree}{} \newcommand{\degree}[1]{\gdef\@degree{#1}} \newkomafont{degree}{\normalfont\normalsize} \newcommand*{\@thanksnote}{} \newcommand*{\thanksnote}[1]{\gdef\@thanksnote{#1}} \newkomafont{thanksnote}{\small\itshape} \newcommand{\@@thanksnote}{\begin{minipage}{\linewidth} \usekomafont{thanksnote}\@thanksnote\par\end{minipage}\par} \renewcommand{\maketitle}{% \begin{titlepage} \setlength{\parindent}{\z@} \setlength{\parskip}{\z@} \typeout{Typesetting the titlepage} \vspace{-1em} \begin{minipage}[t]{\textwidth} \centering University for theoretical and applied animal dance in Duckburg\par \end{minipage}\par \vspace{7em} {\LARGE\centering\usefont{T1}{qcs}{b}{n} \@title\par} \vspace{5em} {\usekomafont{author}\centering \@author\par} \vspace{2em} \ifx\@degree\@empty \else {\centering\usekomafont{degree}\@degree\par} \fi \next@tpage \ifx\@thanksnote\@empty\hbox{} \else {\@@thanksnote} \fi \vfill \begin{minipage}{10em} \raggedright \usefont{T1}{qcr}{m}{n} No animals were harmed during the production of this printed work\par \end{minipage} \end{titlepage}% } \end{filecontents} \documentclass{scrbook} \usepackage{domititlepage} \usepackage{blindtext} \author{Paulo Lee Peterson} \title{Polka loving Platypus} %\degree{Master of Stuff} %\thanksnote{Thanks to Daisy for her support} \begin{document} \maketitle \chapter{Introduction to Polka dancing} \blindtext \end{document} 
link to wikibook
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255

Further reading

The Wikibook page on Title Creation, you can find some more examples linked there


Further reading

The Wikibook page on Title Creation, you can find some more examples linked there

added an article example
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255
 
\documentclass{scrreprt} \usepackage{graphicx} \begin{document} \begin{titlepage} \begin{addmargin}[4cm]{-1cm} \centering \hfill\includegraphics[width=2cm]{example-image-1x1}\par \vspace{4\baselineskip} {\Huge Peter Piper picked a peck\\ of pickled peppers\par} \vspace{4\baselineskip} by\par {\Large\textsc{Crazy Capybara}\par} \vfill in order to get a fancy degree at\par {\em The university of applied dice rolling} \end{addmargin} \end{titlepage} \end{document} 

A titlepage for a scientific article is also possible. If the journal provides no template, there is mostly no use in bothering to implement their style, they will happily do it for you.

This will be just an example, if you are really working on a titlepage for a journal, take the solid approach as mentioned later on. Al this manual fixing up should not been done twice to get the same output.

\documentclass[twoside,ngerman]{article} \usepackage{blindtext} \usepackage{babel} \usepackage{hyperref} \begin{document} \twocolumn[% \centering \begin{minipage}{.75\textwidth} \begin{center} {\large Pendulum\par} presents\par {\Large The sonic recreation of \\the end of the world\par} \end{center} \vspace{\baselineskip} \setlength{\parskip}{\smallskipamount} Ladies and gentlemen, We understand that you Have come tonight To bear witness to the sound Of drum And Bass. We regret to announce That this is not the case, As instead We come tonight to bring you The sonic recreation of the end of the world. Ladies and gentlemen, Prepare To \dots\par \rule{7em}{.4pt}\par Rob Swire, Gareth McGrillen, and Paul Harding;\par \href{mailto:[email protected]}{Mail the authors} \end{minipage} \vspace{2\baselineskip} ] \section{Hold Your Colour} \blindtext \blindtext \end{document} 

domiTitlepageArticleDocument

\documentclass{scrreprt} \usepackage{graphicx} \begin{document} \begin{titlepage} \begin{addmargin}[4cm]{-1cm} \centering \hfill\includegraphics[width=2cm]{example-image-1x1}\par \vspace{4\baselineskip} {\Huge Peter Piper picked a peck\\ of pickled peppers\par} \vspace{4\baselineskip} by\par {\Large\textsc{Crazy Capybara}\par} \vfill in order to get a fancy degree at\par {\em The university of applied dice rolling} \end{addmargin} \end{titlepage} \end{document} 
 
\documentclass{scrreprt} \usepackage{graphicx} \begin{document} \begin{titlepage} \begin{addmargin}[4cm]{-1cm} \centering \hfill\includegraphics[width=2cm]{example-image-1x1}\par \vspace{4\baselineskip} {\Huge Peter Piper picked a peck\\ of pickled peppers\par} \vspace{4\baselineskip} by\par {\Large\textsc{Crazy Capybara}\par} \vfill in order to get a fancy degree at\par {\em The university of applied dice rolling} \end{addmargin} \end{titlepage} \end{document} 

A titlepage for a scientific article is also possible. If the journal provides no template, there is mostly no use in bothering to implement their style, they will happily do it for you.

This will be just an example, if you are really working on a titlepage for a journal, take the solid approach as mentioned later on. Al this manual fixing up should not been done twice to get the same output.

\documentclass[twoside,ngerman]{article} \usepackage{blindtext} \usepackage{babel} \usepackage{hyperref} \begin{document} \twocolumn[% \centering \begin{minipage}{.75\textwidth} \begin{center} {\large Pendulum\par} presents\par {\Large The sonic recreation of \\the end of the world\par} \end{center} \vspace{\baselineskip} \setlength{\parskip}{\smallskipamount} Ladies and gentlemen, We understand that you Have come tonight To bear witness to the sound Of drum And Bass. We regret to announce That this is not the case, As instead We come tonight to bring you The sonic recreation of the end of the world. Ladies and gentlemen, Prepare To \dots\par \rule{7em}{.4pt}\par Rob Swire, Gareth McGrillen, and Paul Harding;\par \href{mailto:[email protected]}{Mail the authors} \end{minipage} \vspace{2\baselineskip} ] \section{Hold Your Colour} \blindtext \blindtext \end{document} 

domiTitlepageArticleDocument

added an example using a picture
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255
Loading
added 1983 characters in body
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255
Loading
testing for classes and deciding what to do, making the demo package more robust.
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255
Loading
Source Link
Johannes_B
  • 24.8k
  • 10
  • 100
  • 255
Loading