Hot answers tagged

20

KOMA-Script supports several ways to set the font size. First of all, if you want fontsize=<value> it tries to load a font size definition file \@fontsizefilebase<value>.clo. If this is not found, it tries \@fontsizefilebase<value>pt.clo. If this is not found, it tries size<adapted value>.clo. <adapted value> is the font size in pt but with ...


15

KOMA has two different systems to setup the font sizes: A (small) number of fontsize options (8pt, 9pt, 10pt, 11pt, 12pt, 14pt 17pt, 20pt) load a scrsizeXX.clo (from KOMA) or (if found) sizeXX.clo (from the extsize package) where designated fontsizes are declared. You can add more options to this list by writing a suitable sizeXX.clo or scrsizeXX.clo. In ...


6

Update It is also possible to use style=chapter for parts. Then \chapterlineswithprefixformat can also be used to set the layout for the part titles. \documentclass[chapterprefix,numbers=noenddot]{scrbook} \usepackage{xcolor} % part and chapter \RedeclareSectionCommand[ style=chapter, beforeskip=-1sp, afterskip=1sp, innerskip=0pt, ...


6

You will get these warnings if you are using option fontsize=16pt before setting a scalable font. To avoid the warnings you can load package fix-cm before the document class. Then the default font will be also scalable. \RequirePackage{fix-cm} \documentclass[fontsize=16pt,DIV=calc]{scrbook} \usepackage{ebgaramond} \begin{document} Textt \end{document} ...


5

The fix by egreg in the question you linked too works perfectly also with scrartcl. If you want a larger integral you can load the excale package (after lmodern!): \documentclass{scrreprt} \usepackage{amsmath} \usepackage{lmodern} \usepackage{exscale} \KOMAoptions{fontsize=20pt} \makeatletter % Load the OT1 definitions for lmodern \input{ot1lmr.fd} % Change ...


4

You can \RedeclareSectionCommand to change the skips before and after the heading. A negative value of afterskip will result in a horizontal skip. So you get a runin heading. To change the format of the subsection number in the heading you can redefine \subsectionformat. To insert the dot at the end of the subsection title redefine \sectioncatchphraseformat. ...


4

To add the chapters to the List of Corrections you can use \KOMAoptions{chapteratlists=entry} \addtotoclist[fixme.sty]{lox} \setuptoc{lox}{chapteratlist} \makeatletter \renewcommand*{\listoffixmes}{\listoftoc[{\@fxlistfixmename}]{lox}} \makeatother Result: To remove the chapter entries without fixmes you can use this solution of Markus Kohm (German): ...


3

I noticed that the appearance of the same mathematical text is not the same with different font sizes. I think it is a bug this is expected behaviour rather than a bug, latex does scream at you LaTeX Font Warning: Font shape `OMX/cmex/m/n' in size <50> not available (Font) size <24.88> substituted on input line 7. because by ...


3

There are four predefined page styles that can be used with KOMA-Script class without loading an additional package for header and footer. You can use \pagestyle{plain} to get the page number in footer but an empty header. empty: header and footer are empty headings: page number in footer, headings will be set by chapters, sections etc. myheadings: page ...


3

I do not really understand want you want to do and version 3.12 is really old. My oldest version for testing is 3.16, current version on CTAN is 3.19a. But you have to change the font element chapter to get it visible on the black background. To shift it up use a negative value for \vspace*. \documentclass{scrbook} \usepackage{lmodern}% <- added ...


3

The name of the bibliography in the standard article class is defined by the \refname command, not the \bibname command (which is used by report and book classes). Thus \renewcommand{\refname}{Bibliography} changes "References" to "Bibliography".


3

Disclaimer: I do not recommend such a strange page numbering, certainly not without changing \thepage. But it is possible using the current prerelease of KOMA-Script 3.20. \documentclass[english,footsepline,plainfootsepline,listof=totoc, footheight=1cm,% <- added oneside,% <- added headings=small% <- added ]{scrbook}[2016/04/01]% <- ...


2

Change the pseudolength sigbeforevskip (default is 2\baselineskip) to your needs. Example: \makeatletter \@setplength{sigbeforevskip}{.5\baselineskip} \makeatother Code: \documentclass{scrartcl} \usepackage{scrletter} % Package import declarations \usepackage{graphicx} % Include graphics for LaTeX \makeatletter ...


2

You can change the alignment of all section levels redefining \raggedsection. Default is \raggedright. But if you want to center the section titles do not set an indentf for it. \documentclass{scrbook} \renewcommand*\raggedsection{\centering} \RedeclareSectionCommand[ font=\fontsize{15}{10}\selectfont ]{section} \usepackage{blindtext} \begin{document} ...


1

You could hack \chapterformat to add it, although I don't know what side-effects this might have. Note that \fixme is deprecated and the package tells you this when you try to use it. Also, KOMA Script is not at all happy about one of the packages - presumably fixme. See the console output for information and recommendations. \documentclass{scrreprt} ...


1

If I interpret your question and answer correctly then you have to add option cleardoublepage=plain and to remove plainheadsepline (if it is in your original code). \documentclass[ a4paper, headsepline, footsepline, plainfootsepline, cleardoublepage=plain% <- added ]{scrbook} \usepackage{blindtext}% dummy text \begin{document} ...


1

Key things that can change the size/location of the figure are 1) the first two arguments to \atxy which govern the x and y placement of the sideways page number. 2) the width= and height= specification of the axis specification, which govern the size of the graph. 3) the value of the downward shift of the image as the first argument to the \raisebox 4) ...


1

You could try something like this: \documentclass{scrbook} \usepackage{graphicx} \usepackage{lipsum,atbegshi} \usepackage{floatpag} \usepackage{zref-abspage,zref-user} \AtBeginShipout{\MyShipoutHook} \makeatletter \newlength\oripaperwidth \oripaperwidth\paperwidth \newcommand\MyShipoutHook{% \ifnum\c@page=\zref@extractdefault{mylargefigure}{abspage}{0} ...


1

You can redefine \sectionlinesformat (needs KOMA-Script Version 3.19 or newer) and \subsectionformat. \documentclass[a5paper]{scrbook}[2015/10/03] \usepackage{xcolor,soul} \sethlcolor{black} \makeatletter \renewcommand\sectionlinesformat[4]{% \ifstr{#1}{subsection}% only subsections should be changed {\@hangfrom{\hskip#2 #3}{\hl{#4}}}% subsection ...


1

Here is an suggestion which needs KOMA-Script version 3.20 or newer. No additional toc package is needed. \documentclass{scrartcl}[2016/05/10] \usepackage{fontspec} \setmainfont[Numbers=OldStyle]{Cambria} \setsansfont{Calibri} \newfontfamily\NoOldStyleNumsSerif{Cambria} \newcommand\tocmainfont[1]{% \NoOldStyleNumsSerif #1% } \RedeclareSectionCommands[ ...


1

You can do global change by keeping the following three lines in the preamble: \usepackage[font=normalsize]{caption} %% make caption in normal size \usepackage{etoolbox} \AtBeginEnvironment{longtabu}{\footnotesize}{}{} %% change all longtabu content to foot note size as answered by Harish Kumar here in this question



Only top voted, non community-wiki answers of a minimum length are eligible