-
assigned issue to
How to get numbered sections
I have a small questions that I could't solve using the provided documentation. I simply want my sections, subsections and subsubsections to be numbered. How can I do that?
Comments (18)
-
reporter -
reporter - removed responsible
-
repo owner Sorry, I do not understand the problem. Sections and subsections are numbered by default, i.e., see Chapter 2 of the documentation.
-
reporter In my case, when downloading the package at https://ctan.org/tex-archive/macros/latex/contrib/classicthesis/ and compiling the file "ClassicThesis.tex" the sections aren't labeled.
-
1) Download the package from bitbucket, the Downloads section here. Do not change anything.
2) How many times have you run "pdflatex ClassicThesis.tex"? Do it two or three times. You also need to run biber after the first compilation. Check for errors in the log.
3) Is your tex distribution up to date?
-
reporter 1) Done
2) I'm using TexStudio to run the files. Shouldn't that work as well? Running "pdflatex ClassicThesis.tex" from the command line doesn't work. I'm getting the following error:
3) Yes, my tex distribution is up to date
-
I'd remove all commands before \documentclass (silence, filter...). Compile from the directory where ClassicThesis.tex is, if that's why pdflatex is not finding classicthesis-config.tex.
-
reporter When removing the commands before \documentclass the error "! Undefined control sequence l.35 \documentclass ..." and the remaining errors from the image above are still showing up.
I am compiling from the directory where ClassicThesis.tex is located.
-
IDK. Something might be wrong with your latex installation. How does this compile:
\documentclass[english]{report} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \begin{document} \chapter{Dolore} \section{Dolorem ipsum quia} Neque porro quisquam est qui dolorem ipsum quia \subsection{dolor sit amet} Quisquam est qui dolorem ipsum quia \end{document}
-
reporter Ok, pdflatex is working now, I reinstalled everything. So running "pdflatex ClassicThesis.tex" is working!
What file(s) do I need to run biber on? There is no .bcf file in the folder.
-
First let biblatex use biber by uncommenting "backend=biber" line and commenting out the bibtex9 line in classicthesis-config.tex. Next:
pdflatex ClassicThesis biber ClassicThesis pdflatex ClassicThesis
-
reporter The compiling is working fine now. However, the sections are still not numbered, even after running "pdflatex ClassicThesis" several times...
-
Are they numbered in my simple example above? Can't reproduce, you'll need to find the error by yourself. Start by removing pieces of code.
-
reporter Yes, they show up in the simple example and in every other tex document I have used up till now. I have tried finding the error myself for two days before asking. I will try running it on a different machine tonight, maybe that helps
-
reporter As an info: the section numbers show up when working on a different machine. Just in case someone else has the same issue. Thanks for your help!
-
repo owner Thanks for letting us know! (And thanks to Ivo for the help.)
-
repo owner - changed status to wontfix
-
repo owner - changed status to closed
- Log in to comment