Document ClassesHeader via classicthesis

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Header via classicthesis

Post by Montag »

Hello,

could someone please enhance my MWE so that it gets a header like the classicthesis manual (classicthesis.pdf)? :)
Attachments
LaTeX1.tex
(700 Bytes) Downloaded 309 times
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

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

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Header via classicthesis

Post by Montag »

*bump*? :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header via classicthesis

Post by localghost »

The code below works but produces some font shape warnings. Credits to the KOMA Script maintainer [1].

Code: Select all

\documentclass[12pt,BCOR=5mm,headinclude,twoside]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[automark]{scrpage2}
\usepackage[%
  beramono,
  linedheaders,
  pdfspacing,
%  nochapters
]{classicthesis}
\usepackage{blindtext}

\setheadwidth[0pt]{textwithmarginpar}
\clearscrheadfoot
\lehead[{\makebox[\marginparwidth][r]{\pagemark}}]{\makebox[\marginparwidth][r]{\pagemark}\hspace{\marginparsep}\headmark}
\rohead[{\makebox[\marginparwidth][l]{\pagemark}}]{\headmark\hspace{\marginparsep}\makebox[\marginparwidth][l]{\pagemark}}
\pagestyle{scrheadings}
\renewcommand*{\chaptermarkformat}[1]{#1}
\renewcommand*{\sectionmarkformat}[1]{#1}
\setkomafont{pagehead}{\bfseries}
\setkomafont{pagenumber}{\bfseries}

\begin{document}
  \blinddocument
\end{document}
Just a remark concerning bumping of topics. You (and only you) as the "owner" of the thread should see a »Bump Topic« item near the foot of this page. This button can be used for future requests. I discovered that recently.

[1] Seitenzahl im Seitenrand und laufende Kolumne oben außen .:. goLaTeX.de - Mein LaTeX-Forum


Best regards
Thorsten
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Header via classicthesis

Post by Montag »

I'm sorry but I do not see a link or button to "bump" this thread (or any thread created by myself).

You see, I've compiled the classicthesis main document itself and it had the header again. But I simply don't get it how they are created/placed because I've looked everywhere in the files that come with the .zip-archive from CTAN, I do not find any command or hint at how the header is created. :cry:

But I could use the code you included. Thanks for that!
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header via classicthesis

Post by localghost »

enrico wrote:I'm sorry but I do not see a link or button to "bump" this thread (or any thread created by myself).[...]
It doesn't really attract attention. I did a small screenshot. The button can be seen in the lower right corner. Another user saw it and used it before I did [1].
Small navigation list with »Bump topic« item.
Small navigation list with »Bump topic« item.
bump.png (11.43 KiB) Viewed 4543 times
enrico wrote:[...] You see, I've compiled the classicthesis main document itself and it had the header again. But I simply don't get it how they are created/placed because I've looked everywhere in the files that come with the .zip-archive from CTAN, I do not find any command or hint at how the header is created. [...]
I didn't try to compile the sources of the manual because I just remembered the forum thread linked in my last reply.

[1] View topic: Open DVI at cursor position
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Header via classicthesis

Post by Montag »

What I would like to achieve is to get headers as I mentioned without any additional code. :)
Of course, the last resort would be use other code, but I would like to try to understand the example by Andre Miede first. So, if anyone got any helpful, please come forward. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply