derric / cleanthesis

Clean Thesis is a clean, simple, and elegant LaTeX style (or template) for thesis documents.
http://cleanthesis.der-ric.de/
909 stars 115 forks source link

Hangsection and hangsubsection settings fail on texlive 2016 #66

Closed lgeiger closed 8 years ago

johannesbottcher commented 8 years ago

I don't upgraded to 2016 yet, but i'm wondering: How does it fail? Is no pdf produced, is the computer shutting down, are frogs falling from the sky?
And where is the minimal example to reproduce the problem?

lgeiger commented 8 years ago

Thanks for you answer and sorry for the missing details ;)

If I run your expample my-thesis.tex, hangsection=false works as expected but hangsection=true doesn't activate the hanging sections. The strange thing is that hangsection=false and hangsection=true produce an identical pdf.

derric commented 8 years ago

Hey, which version do you use, CTAN, master Github? Please try the version from the develop branch https://github.com/derric/cleanthesis/tree/develop.

lgeiger commented 8 years ago

I used the master branch (I didn't noticed that there is a development branch).

The development branch works. Thank you a lot for this awesome package!

derric commented 8 years ago

You are welcome. Good luck with your writing.

bencfd commented 8 years ago

Thanks for the hang section fix derric. But using the develop branch cause the chapter number (the big one at the top right of a chapter first page) to appear on the top left corner. See the thesis-example.tex file for an example. Any idea why?

derric commented 8 years ago

Sorry, but I cannot reproduce the issue.

lgeiger commented 8 years ago

For me the chapter number appears on the top right corner.

bencfd commented 8 years ago

Very strange. Here the very minimal example I'm using:

% **************************************************
% Document Class Definition
% **************************************************
\documentclass[%
    paper=A4,                   % paper size --> A4 is default in Germany
    twoside=true,               % onesite or twoside printing
    openright,                  % doublepage cleaning ends up right side
    parskip=full,               % spacing value / method for paragraphs
    chapterprefix=true,         % prefix for chapter marks
    11pt,                       % font size
    headings=normal,            % size of headings
    bibliography=totoc,         % include bib in toc
    listof=totoc,               % include listof entries in toc
    titlepage=on,               % own page for each title page
    captions=tableabove,        % display table captions above the float env
    draft=false,                % value for draft version
]{scrreprt}%

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles

% **************************************************
% Information and Commands for Reuse
% **************************************************
\newcommand{\thesisTitle}{The Clean Thesis Style}
\newcommand{\thesisName}{Ricardo Langner}
\newcommand{\thesisSubject}{Documentation}

% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[utf8]{inputenc}     % defines file's character encoding
\usepackage[english]{babel} % babel system, adjust the language of the content
\usepackage[                    % clean thesis style
    figuresep=colon,%
    sansserif=false,%
    hangfigurecaption=false,%
    hangsection=true,%
    hangsubsection=true,%
    colorize=full,%
    colortheme=bluemagenta,%
    bibsys=bibtex,%
    bibfile=bib-refs,%
    bibstyle=alphabetic,%
]{cleanthesis}

\hypersetup{                    % setup the hyperref-package options
    pdftitle={\thesisTitle},    %   - title (PDF meta)
    pdfsubject={\thesisSubject},%   - subject (PDF meta)
    pdfauthor={\thesisName},    %   - author (PDF meta)
    plainpages=false,           %   -
    colorlinks=false,           %   - colorize links?
    pdfborder={0 0 0},          %   -
    breaklinks=true,            %   - allow line break inside links
    bookmarksnumbered=true,     %
    bookmarksopen=true          %
}

% **************************************************
% Document CONTENT
% **************************************************
\begin{document}

\chapter{test}

\end{document}

And the only warning message issued is Usage of package 'fancyhdr' together(scrreprt) with a KOMA-Script class is not recommended.

thesis-example.pdf

bencfd commented 8 years ago

Comparing my-thesis.tex and thesis-example.tex, it seems to be caused by the missing option chapterprefix=false (or by option chapterprefix=true) for scrreprt. With that option, everything is fine :)

dgsiegel commented 6 years ago

on my system with texlive 2016, the section numbers do appear inside the text and not in the margin. this is the example i'm using:

% **************************************************
% Document Class Definition
% **************************************************
\documentclass[%
    paper=A4,                   % paper size --> A4 is default in Germany
    twoside=true,               % onesite or twoside printing
    openright,                  % doublepage cleaning ends up right side
    parskip=full,               % spacing value / method for paragraphs
    chapterprefix=true,         % prefix for chapter marks
    11pt,                       % font size
    headings=normal,            % size of headings
    bibliography=totoc,         % include bib in toc
    listof=totoc,               % include listof entries in toc
    titlepage=on,               % own page for each title page
    captions=tableabove,        % display table captions above the float env
    draft=false,                % value for draft version
]{scrreprt}%

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles

% **************************************************
% Information and Commands for Reuse
% **************************************************
\newcommand{\thesisTitle}{The Clean Thesis Style}
\newcommand{\thesisName}{Ricardo Langner}
\newcommand{\thesisSubject}{Documentation}

% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[utf8]{inputenc}     % defines file's character encoding
\usepackage[english]{babel} % babel system, adjust the language of the content
\usepackage[                    % clean thesis style
    figuresep=colon,%
    sansserif=false,%
    hangfigurecaption=false,%
    hangsection=true,%
    hangsubsection=true,%
    colorize=full,%
    colortheme=bluemagenta,%
    bibsys=bibtex,%
    bibfile=bib-refs,%
    bibstyle=alphabetic,%
]{cleanthesis}

\hypersetup{                    % setup the hyperref-package options
    pdftitle={\thesisTitle},    %   - title (PDF meta)
    pdfsubject={\thesisSubject},%   - subject (PDF meta)
    pdfauthor={\thesisName},    %   - author (PDF meta)
    plainpages=false,           %   -
    colorlinks=false,           %   - colorize links?
    pdfborder={0 0 0},          %   -
    breaklinks=true,            %   - allow line break inside links
    bookmarksnumbered=true,     %
    bookmarksopen=true          %
}

% **************************************************
% Document CONTENT
% **************************************************
\begin{document}

\chapter{test}

\section{section test}

some text

\end{document}

result: minimal.pdf