Scrbook headings style


I am trying to simplify the heading styles of the scrbook-class for use in my thesis, but am unable to find a way to stop the headings from being underlined and chapters being marked by their numbers. Here is the class-specification I am using:

documentclass[
12pt,
a4paper,
oneside,
headinclude,
footinclude,
headnosepline,
BCOR5mm,
]{scrbook}

Below is an example of the current output. What I essentially want to achieve is get rid of the line underneath the chapter title, and the number to the right.

Scrbook Example

Any thoughts on doing this would be greatly appreciated.

Added MWE:

main.tex

documentclass[
12pt,
a4paper,
oneside,
headinclude,
footinclude,
headnosepline,
BCOR5mm,
]{scrbook}
input{structure.tex}
hyphenation{Fortran hy-phen-ation}

begin{document}

makeatletter
begin{titlepage}
pagenumbering{gobble}
thispagestyle{empty}
title{Title}
author{Author}
date{Spring theyear}
end{titlepage}
makeatother

newpagepagestyle{scrheadings}pagenumbering{Roman}
chapter*{Contents}singlespacing
tableofcontents
onehalfspacing
pagestyle{plain}
newpagechapter{Introduction} label{part:Introduction}
end{document}

structure.tex

usepackage[parts,beramono,eulermath,pdfspacing,dottedtoc]{classicthesis}
usepackage[english]{babel}
usepackage[round, longnamesfirst]{natbib}
setcitestyle{aysep={}}
bibliographystyle{plainnat}
setcitestyle{notesep={: }}

setlength{parindent}{0em}
setlength{parskip}{1em}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}
titlespacingsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
titlespacingsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
titlespacingsubsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
titlespacing*{paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{1em}
titlespacing*{subparagraph} {parindent}{3.25ex plus 1ex minus .2ex}{1em}

usepackage{geometry}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{tikz}
usetikzlibrary{arrows}
usepackage{grffile}
usepackage{pgfplots}
usepackage{gnuplottex}%[miktex]%[shell]
usepackage{pgfplotstable}
pgfplotstableset{col sep = comma}
pgfplotsset{width=textwidth,compat=1.9}
usetikzlibrary{pgfplots.groupplots}
usepackage{filecontents}
graphicspath{{Figures/}}
usepackage{enumitem}
usepackage{subfig}
usepackage{amsmath,amssymb,amsthm}
makeatletter
defthmhead@plain#1#2#3{%
  thmname{#1}thmnumber{@ifnotempty{#1}{ }@upn{#2}}%
  thmnote{: {thethm@notefont#3}}}
letthmheadthmhead@plain
makeatother
usepackage{varioref}
usepackage{times}
usepackage{chngpage}
usepackage{tabulary}
usepackage{rotating}
usepackage{tabularx}
usepackage{placeins}
usepackage{float}
usepackage{floatpag}
usepackage{booktabs}
usepackage{multirow}
usepackage{caption}
usepackage{setspace}
usepackage[flushleft]{threeparttable}
usepackage[normalem]{ulem}
newcommand{msout}[1]{text{sout{ensuremath{#1}}}}
usepackage{chronology}
usepackage{easy-todo}
input{PgfplotNan.tex}
usepackage{titletoc}
makeatletter
renewcommandtableofcontents{%
    @starttoc{toc}%
}
makeatother
usepackage{setspace}
setcounter{secnumdepth}{2}
setcounter{tocdepth}{2}

usepackage{amsfonts}
usepackage{datagloss}
selectcolormodel{gray}

newenvironment{blockquote}{%
  par%
  em
  medskip
  leftskip=4emrightskip=2em%
  noindentignorespaces}{%
  parmedskip}

makeatletter
pgfplotsset{
    every axis x label/.append style={
        alias=current axis xlabel
    },
    legend pos/outer south/.style={
        /pgfplots/legend style={
            at={%
                (%
                @ifundefined{pgf@sh@ns@current axis xlabel}%
                {xticklabel cs:0.5}%
                {current axis xlabel.south}%
                )%
            },
            anchor=north
        }
    }
}
makeatother

newlengthfigureheight
newlengthfigurewidth

pgfplotscreateplotcyclelist{black-white-mark}{%
    solid, every mark/.append style={solid, fill=gray}, mark=*\%
    dotted, every mark/.append style={solid, fill=gray}, mark=square*\%
    densely dotted, every mark/.append style={solid, fill=gray}, mark=otimes*\%
    loosely dotted, every mark/.append style={solid, fill=gray}, mark=triangle*\%
    dashed, every mark/.append style={solid, fill=gray},mark=diamond*\%
    loosely dashed, every mark/.append style={solid, fill=gray},mark=*\%
    densely dashed, every mark/.append style={solid, fill=gray},mark=square*\%
    dashdotted, every mark/.append style={solid, fill=gray},mark=otimes*\%
    dasdotdotted, every mark/.append style={solid},mark=star\%
    densely dashdotted,every mark/.append style={solid, fill=gray},mark=diamond*\%
}
pgfplotscreateplotcyclelist{black-white-nomark}{%
    solid\%
    dotted\%
    densely dotted\%
    loosely dotted\%
    dashed\%
    loosely dashed\%
    densely dashed\%
    dashdotted\%
    dasdotdotted\%
    densely dashdotted\%
}
newcommand{chartstyle}{
    /pgf/number format/.cd,
    use comma,
    1000 sep={},
    ymajorgrids=true,
    grid style=dashed,
    % legend style={at={(0,0)}, anchor=north east, align=left}, % Lower left corner
    legend pos=outer south, % Below
    % legend pos=north east, % Top right corner
    cycle list name=black-white-nomark,
}
newcommand{nochartstyle}{
    /pgf/number format/.cd,
    use comma,
    1000 sep={},
    ymajorgrids=false,
    grid style=dashed,
    % legend style={at={(0,0)}, anchor=north east, align=left}, % Lower left corner
    legend pos=outer south, % Below
    % legend pos=north east, % Top right corner
    cycle list name=black-white-nomark,
    xlabel={},
    xticklabels={,,}
    ylabel={},
    yticklabels={,,},
    axis y line*=left,
    scaled y ticks = false
}

theoremstyle{definition}
newtheorem{definition}{Definition}

theoremstyle{plain}
newtheorem{theorem}{Theorem}

theoremstyle{remark}
newtheorem*{remark}{Remark}

theoremstyle{plain}
newtheorem{hyp}{Hypothesis} 
newtheorem{subhyp}{Hypothesis}[hyp]

hypersetup{
colorlinks=true, breaklinks=true, bookmarks=true,bookmarksnumbered,
urlcolor=black, linkcolor=black, citecolor=black,
pdftitle={},
pdfauthor={textcopyright},
pdfsubject={},
pdfkeywords={},
pdfcreator={pdfLaTeX},
pdfproducer={LaTeX with hyperref and ClassicThesis}
}

How to change the size of the right/main column in the koma-moderncvclassic?


I am using the koma-moderncvclassic package to re-create my CV. How can I manipulate the size of the right side column using so the column width matches the page layout respectively the width of the header? Here my MWS:

documentclass[%
parskip=half,%
fontsize=11pt,%
a4paper,%
pagesize,%
headinclude,footinclude,%
headings=normal,%
]{scrreprt}

newcommand*{firstname}{Max}
newcommand*{familyname}{Muster}
newcommand*{addressstreet}{Muster Allee 111}
newcommand*{addresscity}{11111 Musterstadt}
newcommand*{address}[2]{addressstreet{#1}addresscity{#2}}
newcommand*{mobile}{+49 1234567}
newcommand*{email}{mustermann@muster.de}

%left column width (default value: 2,79cm)
newlengthmyhintscolumnwidth%
setlengthmyhintscolumnwidth{.21textwidth}

usepackage[myblue]{koma-moderncvclassic} 

usepackage{geometry}
geometry{left=2cm,right=2cm,top=2cm,bottom=2cm} 

usepackage{scrpage2}
pagestyle{scrheadings}
clearscrheadfoot
ohead{footnotesize firstname~familyname\ addressstreet,~addresscity \emailsymbol~email~phonesymbol~mobile}
setheadsepline{0.3pt} 

begin{document}

section{Work experience}
cventry{01/2015 - 04/2015}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
cventry{01/2015 - 04/2015}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}

section{Education}
cventry{01/2015 - 04/2015}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
cventry{01/2015 - 04/2015}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}

section{IT Skills}
cvline{Very good}{MS Office (Excel, Word, PowerPoint, Outlook), OpenOffice. MS Office (Excel, Word, PowerPoint, Outlook), OpenOffice.}
cvline{Good}{MS SharePoint, MS Project, MS Office (Excel, Word, PowerPoint, Outlook) MS Office (Excel, Word, PowerPoint, Outlook)}

end{document}

Uppercase chapter with KOMA-script


It has already been mentioned that it could be tricky to get uppercase letters in chapter for scrbook. However, the solution in Using MakeUppercase in @startsection works for scrreprt.

The solution used in tudscr adds a custom command to make the text uppercase, but then chapter has to be redefined.

makeatletter
    newcommand*mymakeuppercase[1]{%
        ifdin{begingroupMakeTextUppercase{#1}endgroup}{#1}%
    }
makeatother

Any other alternative, that would be applicable to all koma scripts?

MWE:

documentclass[chapterprefix=on]{scrbook}

% Fix MakeUppercase
usepackage{makerobust}
makeatletter
MakeRobustCommand@hangfrom
newcommand*{ModMakeUppercase}{%
    MakeRobustCommand@svsec
    MakeUppercase
}
makeatother

addtokomafont{part}{MakeUppercase}
addtokomafont{chapter}{MakeUppercase} % <- doesn't work
addtokomafont{section}{ModMakeUppercase}
addtokomafont{subsection}{ModMakeUppercase}


begin{document}
tableofcontents
end{document}

Adjusting spacing around section/subsection titles with koma-script


With the KOMA-script scrreprt class the vertical spacing before and after chapter titles can be adjusted the following way:

renewcommand*{chapterheadstartvskip}{vspace*{0cm}}
renewcommand*{chapterheadendvskip}{vspace*{70.9pt}}

However, I can’t find a way to do the same with section, subsection (and, possibly, subsubsection) titles. I know there is the titlesec package with the command

titlespacing*{section}{0pt}{28.35pt}{0pt}

but using KOMA-Script with titlesec gives me the warning “Usage of package `titlesec’ together with a KOMA-Script class is not recommended”. Is there some other way to adjust the vertical spacing around section headings that is compatible with the KOMA-Script classes?

Writing equations with neatly defined parameters [duplicate]


This question already has an answer here:

KOMA + bigfoot + lineno seem to produce vertical gaps in some cases


in a lengthy critical edition, I am using KOMA-Script, bigfoot and lineno. In certain cases, all involving footnotes, there are vertical gaps on the page containing the footnotes. This affects roughly 10-15% of the pages with footnotes (which is why I had some trouble to create a MWE or to isolate which packages might be the culprit).

I have been excluding packages one by one to track it down and it seems, that the problem is connected to these three packages. The following example will result in the last line of page 1 (line no. 42) to have an extra gap above it.
If you remove either of the footnoteB, or disable line numbering, the gap will disappear (which is why I assume that it might be the combination of lineno and bigfoot).

It took me some time to figure out the following example, it is the shortest I could so far come up with; I have not yet been able to pin-point one specific reason, hence I cannot even say for certain whether this is the “right” example or just one showing the phenomenon more or less ‘by accident’.

documentclass[fontsize=10pt, twoside, paper=b5, headings=normal,
open=any, DIV=11, footlines=1, BCOR=10mm, index=totoc]{scrbook}
usepackage[pagewise, switch*, modulo]{lineno}

usepackage{bigfoot}
DeclareNewFootnote[para]{B}[alph]
DeclareNewFootnote{A}

usepackage{fontspec}
setmainfont{Junicode}

begin{document}
begin{linenumbers*}
intelligunt confuse et absque distinctione quod | patet in prima operatione. quia
ideote eodem modo intelligunt hominem animal et | rationale et album. sed logica
docet quod etiam primarii conceptus qui sunt primi | intentiones sunt ab
invicem distinguibiles intelligibiliter. quia animal | habet intelligi sub communiori
conceptu 5 quam homo. Septima ratio quia | praedicamenta sunt entia realia. et
tamen sub ordine ad aliquod accidens | rationis in logica considerantur. Unde infootnoteB{dfg}
predicamentis ponuntur alique propri|etates predicamentorum reales ad denotandum
quod sunt encia realia | ut in predicamento substantie. Commune est omni
substantie in subiecto non esse〈.〉 | Hec sunt argumenta Montanorum Thomis10
tarum〈.〉 Et est unus de illis | qui dixit quod universale capitur dupliciter〈.〉 Uno
modo pro significato. sic universale est secunda inten|tio concretive sumpta et
universalitas abstractive sumpta. Alio modo pro de|nominato id est pro subiectofootnoteB{test}
quod denominat. Dixit secundo quod intentio prima | est essentia naturaea vel
quidditas absolutab et secundum se apprehensa. In|tentio secunda dicitur concep15
tus comparativus secundum quod intellectus comparat naturas〈.〉 | Et dixit quod
natura universalis dupliciter concipitur per intellectum. Uno modo abso|lute. sic
omnis scientia considerat naturam universalem. Alio modo concipit natura universalis
ab | intellectu per eius speciem intelligibilem comparative. inquantum
comparatur ad in|tellectum a quo capit unitatem. et ad inferiora a quibus capit
20 multipli|citatem. sic solum in logica consideratur et substat intentionibus. hec
ille. | Et ego arguo sic. Omnis scientia habetur per demonstrationem. logica
est | scientia. ergo logica habetur per demonstrationem. Maior est nota. quia
scien|tia est habitus conclusionis per demonstationem acquisitus. sed nulla demonstra|
tio potest fieri ex secundis intentionibus. ergo logica non est de secundis
25 intenti|onibus. quia scientia per eadem acquiritur circa que est. Minor syllogismi
pro|batur. quia Omnis demonstratio fit ex necessariis veris primis. sed secunde
in|tentiones sunt ultime in ordine entium. et non sunt necessarie. quia depen- ||
[5v [A5v]] denta contingenti operatione intellectus. Secundo. Nullum ens intentio|
nale potest concurrere ad generationem entis realis. sed secunde intentiones
30 sunt | entia rationis. et logica est habitus realis. ergo non possunt concurrere ad
ac|quisitionem logice〈.〉 Tertio propter quod unumquodque tale et illud magis.
sed secunde | intentiones considerantur in logica propter primas. ergo prima magis.
Maior | 3 topicorum. 1 posteriorum
Avicenna.
patet 3 Topicorum in fine et 1 posteriorum. Minor probatur. quia
dicit Avicen|na quod logica est de secundis adiunctis primis quasi consideraret se35
cundas propter | primas. Quarto Secunde intentiones principaliter accipiuntur a
proprieta|tibus rerum. ergo proprietates rerum principaliter considerantur in logica.
sed pro|prietates rerum sunt reales. ergo res sunt cause intentionum. probatur
| prima pars maioris per S anctum Tho mam de universalibus trac. 2 opus 2⒍ B eatus Tho mas
Quinto | Quero ex te quare intellectus tuus non potest attribuere homini hanc |
40 intentionem secundam genus. Si dicis quia proprietas hominis non est talis quod
| multiplicetur per species. ergo convenit homini ex natura rei illa intentio species
| et non genus. Ex illo arguo sic Quicumque considerat aliquod accidens | propter
principium. ille magis considerat principium et radicem super qua fun|datur.
et ex qua sequitur hoc accidens. Sed logicus considerat secundas intentiones |
propter unam radicem vel fecunditatem sive sit .a. sive .b. ergo principaliter con- 5
si|derat hoc principium vel formale primarum intentionum. Confirmatur per |
B eatus Tho mas S anctum Tho mam de natura generis ca. ⒌ ubi dicit quod universale capitur
dupliciter Uno | modo pro ipsa natura cui intellectus propter aliquid in ea inventum
inten|tionem attribuit. et sic universalia que rerum naturas significant
7 metaphi sice predicantur in quid. | animal namque est substantia illius de quo predicatur et 10
B eatus Tho mas similiter homo. Idem patet 7 metaphisi|ce. lec. ⒔ In oppositum tamen et pro
veritate est D octoris S ancti 4 meta|phisice. lec. 4 in opusculo de universalibus
trac. 2 Et quia h oc magis Thoma|stris aliquibus reluctabor. ideo eum inferius
in testem vocabo. Et | arguo sic. Si logica est de primis intentionibus. vel natura
considera|ta in logica consideratur sub eadem ratione sicut in aliis scientiis. vel 15
non | Si primum. sequitur quod logica ratione obiecti erit scientia realis quod est
4 metaphi sice contra Aristotelem 4 metaphisice. et contra S anctum Tho mam undiquaque. Si
secundum Tunc | quero vel illa natura realis universalis consideratur sub eadem
unitate. vel sub alia | unitate Si dicis sub alia unitate Quero Utrum sit unitas
rationis vel | unitas rei. Utrum sit absoluta vel respectiva. Non potes dicere quod
end{linenumbers*}
end{document}

Any help is highly appreciated; if there is another way to provide a line numbering that will work around this problem, I’ll be glad to give it a try.

TIA,
Dario

As requested, here is a snapshot of the last few lines including the footnote:
The gap is between lines 41 and 42

Include logo in title page with KOMA-script


I would like to ask if there is an easy way how to include some graphics (logo) on the title page (I’m using scrreprt class from KOMA-script). Until now I’ve done it like this:

title {
  normalfont normalsize includegraphics[width=0.3textwidth]{img/logo}
  horrule{0.5pt}
  huge ARIO project
  horrule{2pt}
}

But I feel that this is not the right way. And I wasn’t able to find any tutorial. Thanks.

How to remove period after part number in TOC (KOMA used)


How to remove period after part number in TOC (KOMA used)?
My solution was to set tocloft package, which is provide command cftpartaftersnum but I do not want to use it for some compatibility reasons.
enter image description here

documentclass{scrbook}
usepackage{polyglossia}
%usepackage{tocloft}
%setmainlanguage{ukrainian}
usepackage{etoolbox}
renewcommand*{figureformat}{%
  figurename~thefigure%
%  autodot% DELETED
}
makeatletter
makeatother
begin{document}
tableofcontents
part{One}
part{Two}
end{document}

RaggedRightParindent also indents caption titles with subcaption package


I am using the KOMA-Script class scrreprt with the ragged2e package to achieve ragged right document text. I still want to retain paragraph indentation (and have no inter-paragraph spacing, i.e., parskip=0), so I set RaggedRightParindent{2em}, but this seems to also affect my float captions when the subcaption package is loaded.

Example:

documentclass{scrreprt}
usepackage {mwe}%
usepackage[document]{ragged2e} % for creating ragged right edge etc
setlength{RaggedRightParindent}{2em}% sets the indent size of the first line
usepackage{subcaption}% for creating figures in figures

setcapindent{0em}

begin{document}

section{title}

lipsum[11]


  begin{figure}[tbh]
  setcapindent{0em}
  centering
    includegraphics[width=0.4linewidth]{example-image}
      caption{The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. }
  end{figure}


end{document}

which produces:

enter image description here

How can I get rid of this indentation? (I still want to keep these packages if possible…)

Patch part to do something with optional and mandatory argument


I am basically trying to patch part of scrreprt to do something with the optional argument (if present) or the mandatory argument instead. In the example below the short caption would be added in red to the TOC and the long caption in blue (underneath its respective part).

But my code below basically doesn’t do anything. This seems very related to this problem, and I have tried something similar with regexpatch, but without success. I am trying to get to a solution where part can be used by other packages, e.g. hyperref without interference.

documentclass{scrreprt}

usepackage{xcolor}
usepackage{xpatch}

makeatletter

catcode`#=12

xapptocmd{@part}%
    {#1}%
    {addcontentsline{toc}{chapter}{textcolor{red}{#1}}}%  
    {}%

xapptocmd{@part}%
    {#2}%
    {addcontentsline{toc}{chapter}{textcolor{blue}{#2}}}% 
    {}%

catcode`#=6

makeatother

begin{document}

tableofcontents

part{Only Long Caption}

part[Short Caption]{Long Caption}

end{document}
Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam