Text FormattingLatin page numbers and tocstyle

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Latin page numbers and tocstyle

Post by justincase »

Hey everybody

I started to build my thesis skeleton and I've decided for Koma Script. After looking for a way to get dots into the table of contents I found the package tocstyle.

This package is making what I want: Dots inside my toc. But: Everytime I compile my document it says
Package tocstyle Warning: THIS IS AN ALPHA VERSION!
(tocstyle) USAGE OF THIS VERSION IS ON YOUR OWN RISK!
(tocstyle) EVERYTHING MAY HAPPEN!
(tocstyle) EVERYTHING MAY CHANGE IN FUTURE!
(tocstyle) THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
(tocstyle) Maybe it would be better, not to load this package.
What can I expect of this? A package which is telling me that I should not use it cause it would be better!? And which alternatives do I have?

Second thing I want to know is how do I get latin page numbers beginning at abstract (or rather the page before which says that I was the only one working on the thesis) to the end of the list of figures?

Thanks for helping me out again :)

Cheers
Last edited by justincase on Thu Sep 30, 2010 4:01 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Latin page numbers and tocstyle

Post by gmedina »

Well, the package warning is self-explanatory: the package is an at alpha (unstable) stage, so you should use it at your own risk.

As an alternative you could use the tocloft package; a little example:

Code: Select all

\documentclass{scrbook}
\usepackage{tocloft}

\renewcommand\cftpartdotsep{1}
\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}

\begin{document}
\tableofcontents

\part{Part one}
\chapter{Chapter one one}
\chapter{Chapter one two}
\section{test section}

\end{document}
To get roman numerals, if you are using the scrbook document class, you can use \frontmatter and then \mainmatter to restore the arabic numbering; refer to the bundle documentation for details.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Latin page numbers and tocstyle

Post by justincase »

Tocloft was helpful thank you.

As for the numbers:
I try it like this

Code: Select all

\begin{document}
    \input{deckblatt}
    
    \maketitle[-3]
    \pagestyle{scrheadings}
    \pagenumbering{roman}
    \begin{abstract}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
    
    \tableofcontents
    
    \pagenumbering{arabic}
    \input{introduction}
    
    \input{background}
    
    \input{architecture}
    
    \input{implementation}
    
    \input{evaluation}
    
    \input{conclusion}

\end{document}
But this doesn't work at all. The page with the number 1 is the table of contents and this number is in arabic letters instead of roman letters.

What I also miss is that my seperation lines at the head and footline are beginning at the table of contents. I would like to start them at page 1 after the tile page (deckblatt)

I produce the sep-lines with this:

Code: Select all

\usepackage{scrpage2}
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]
Thanks for helping me out

cheers

Edit: I'm using screprt
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Latin page numbers and tocstyle

Post by gmedina »

You could try something like this:

Code: Select all

\documentclass{scrreprt}
\usepackage{tocloft}
\usepackage{scrpage2}

% dotted lines in ToC
\renewcommand\cftpartdotsep{1}
\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}

% some rules in headings and footers
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]

\begin{document}
\pagenumbering{roman}
\begin{abstract}
  The abstract contents goes here...
\end{abstract}
\tableofcontents

\clearpage
\pagestyle{scrheadings}
\pagenumbering{arabic}

\chapter{Chapter one}
\section{test section one one}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Latin page numbers and tocstyle

Post by justincase »

Hm no this doesn't work at all. I have the number "ii" on my table of contents but neither a number on my abstract nor sep lines at the top and bottom ...

Code: Select all

\begin{document}

    \input{deckblatt}
    
    \maketitle[-3]
    \pagestyle{scrheadings}
    \pagenumbering{roman}
    \begin{abstract}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
    
    \tableofcontents
    
    \clearpage
    \pagenumbering{arabic}
    \input{introduction}
    
    \input{background}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Latin page numbers and tocstyle

Post by gmedina »

Please post complete, minimal and compilable code showing the relevant information needed for this particular problem.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Latin page numbers and tocstyle

Post by justincase »

Sorry

Code: Select all

\documentclass[12pt,a4paper, twoside, abstracton]{scrreprt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{scrpage2}

\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]

\begin{document}

    \title{Test}
    
    \maketitle[-3]
    \pagestyle{scrheadings}
    \pagenumbering{roman}
    \begin{abstract}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
    
    \tableofcontents
    
    \clearpage
    \pagenumbering{arabic}

    \chapter{Introduction}
    \section{Test}    
\end{document}

Another point I am wondering on: When I put text between pagenumbering and begin{abstract} the sep-lines are looking odd and different to the others. Only if I put a \chapter{} befor the text the lines look like the same ...
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Latin page numbers and tocstyle

Post by gmedina »

Perhaps something like the following is what you're trying to achieve?

Code: Select all

\documentclass[12pt,a4paper, twoside,abstract]{scrreprt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{scrpage2}

\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]

\begin{document}
    \pagestyle{scrheadings}
    \pagenumbering{roman}

    \title{Test}
    
    \maketitle[-3]
    \begin{abstract}\thispagestyle{scrheadings}\pagenumbering{roman}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
    
    {\addtocontents{toc}{\protect\thispagestyle{scrheadings}}\tableofcontents}
    
    \clearpage
    \pagenumbering{arabic}

    \chapter{Introduction}
    \section{Test}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Latin page numbers and tocstyle

Post by justincase »

Hey

Thank you, that helped. Just two more things: The sep-lines in the abstract part are different to the others. It looks like that there are two lines.
Second: When I put a text before abstract, this text has the same odd separation lines and no page numbering.
Like this:

Code: Select all

\documentclass[12pt,a4paper, twoside,abstract]{scrreprt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{scrpage2}

\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]

\begin{document}
    \pagestyle{scrheadings}
    \pagenumbering{roman}

    \title{Test}
   
    \maketitle[-3]

    Test

    \begin{abstract}\thispagestyle{scrheadings}\pagenumbering{roman}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
   
    {\addtocontents{toc}{\protect\thispagestyle{scrheadings}}\tableofcontents}
   
    \clearpage
    \pagenumbering{arabic}

    \chapter{Introduction}
    \section{Test}
\end{document}
Is there a chance to give the text above a own environment like abstract?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Latin page numbers and tocstyle

Post by gmedina »

justincase wrote:...Thank you, that helped. Just two more things: The sep-lines in the abstract part are different to the others. It looks like that there are two lines.
But that is so because you defined the lines to produce double rules; if you want a single line, replace

Code: Select all

\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt
with

Code: Select all

\setheadsepline{0.4pt}
\setfootsepline{0.4pt}
[/quote]...Second: When I put a text before abstract, this text has the same odd separation lines and no page numbering.
Like this:

Code: Select all

\documentclass[12pt,a4paper, twoside,abstract]{scrreprt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{scrpage2}

\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}
\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]
\setfootsepline{0.4pt}[\hrule \vskip 1.5pt]

\begin{document}
    \pagestyle{scrheadings}
    \pagenumbering{roman}

    \title{Test}
   
    \maketitle[-3]

    Test

    \begin{abstract}\thispagestyle{scrheadings}\pagenumbering{roman}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
   
    {\addtocontents{toc}{\protect\thispagestyle{scrheadings}}\tableofcontents}
   
    \clearpage
    \pagenumbering{arabic}

    \chapter{Introduction}
    \section{Test}
\end{document}
Is there a chance to give the text above a own environment like abstract?[/quote]
I'm not sure about your question here. Do you want to define a new environment that behaves like the abstract environment but having a new name? If this is so, the code below shows how to do this definition:

Code: Select all

\documentclass[12pt,a4paper, twoside,abstract]{scrreprt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{scrpage2}
\usepackage{lipsum}

\renewcommand\cftchapdotsep{1}
\renewcommand\cftsecdotsep{1}
\setheadsepline{0.4pt}
\setfootsepline{0.4pt}

\let\MyAbstract\abstract
\newenvironment{MyEnvironment}
  {\renewcommand\abstractname{The Name}\begin{MyAbstract}}
  {\end{MyAbstract}}

\begin{document}
    \pagestyle{scrheadings}
    \pagenumbering{roman}

    \title{Test}
   
    \maketitle[-3]

    \begin{MyEnvironment}\thispagestyle{scrheadings}\pagenumbering{roman}
     Test text
    \end{MyEnvironment}

    \begin{abstract}\thispagestyle{scrheadings}
        This is a test. Hello World.\\
        I'm a abstract chapter!
    \end{abstract}
   
    {\addtocontents{toc}{\protect\thispagestyle{scrheadings}}\tableofcontents}
   
    \clearpage
    \pagenumbering{arabic}

    \chapter{Introduction}
    \section{Test}
\lipsum[1-40]
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply