Tag Info

Hot answers tagged

13

The warning is due to the fact that Computer Modern fonts are only available at “discrete” sizes. The problem is that, apparently, Koma classes process the fontsize option too early, when Computer Modern is still the default font. You can remove the spurious warning by loading fix-cm before starting: \RequirePackage{fix-cm} ...


8

If you modify your example to \documentclass[fontsize=13pt,DIV=12]{scrartcl} \stop \usepackage{lmodern} \usepackage[T1]{fontenc} \begin{document} test \end{document} You see the warning about cmr comes before lmodern is loaded. So the class sets up some fonts which are over-ridden later but still generate some warnings. It's probably safe to do this ...


6

utf8.def from package inputenc only supports characters, which are used in one of the declared output encodings. Otherwise LaTeX would not know, how to print the character. ° is defined in TS1 encoding, which can be loaded by package textcomp: \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage[utf8]{inputenc} Complete example: ...


4

Using \LoadClass with options is a tricky thing as none of the options are passed to packages, all are meant to be for the class. The paper option is unknown to a KOMA-sclass, as package typearea deals with the layout stuff, hence the warning. Using documentclass option parsing down to packages is allowed, so this approach works perfectly fine. If you ...


4

You can use siunitx which offers \degree and \celsius \documentclass[fontsize=10pt,paper=a4,DIN]{scrlttr2} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{siunitx} \setkomavar{fromaddress}{% Main Street 1\\ 55555 Springfield)} \setkomavar{fromname}{John Doe} \begin{document} \begin{letter}{Jack \si{\degree} Jones \\ 2nd Street ...


3

You can load the DINmtext.lco to save space. See the KOMA-Script documentation, section "Letter Class Option Files" for more information. If there is no firstfoot you can set firstfoot=false and enlargefirstpage. Use the package geometry to change the pagelayout: \usepackage{geometry} \geometry{hmargin=\useplength{toaddrhpos},bottom=2cm} Code: ...


3

Here is a suggestion but note that \MakeUppercase inside \setkomafont or \addtokomafont can be problematic. In any case \MakeUppercase have to be the last command added to the komafont of a fontelement because it needs an argument. \documentclass[english]{scrreprt}[2015/02/07] \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{blindtext} ...


3

\areaset has an optional argument to handle BCOR. \documentclass[10pt,twoside, paper=18cm:19cm,pagesize ]{scrreprt} \areaset[5cm]{12cm}{16cm} \usepackage{lipsum} \begin{document} \lipsum[1-10] \end{document} If BCOR is already set you can use the symbolic value current: \documentclass[10pt,twoside, BCOR=5cm,paper=18cm:19cm,pagesize ...


3

Well, really no need to go into source code surfing here. \KOMAoption{chapteratlists}{0pt} will set the chaptergap to zero point. All lists controlled by package tocbasic are influenced. Alternatively, you could use \KOMAoption{listof}{nochaptergap}.


3

Use the tocstyle package from the KOMA bundle and the pagenumberhook: \documentclass{scrreprt} \usepackage{xcolor, tocstyle} \setkomafont{chapterentrypagenumber}{\color{red}} \setkomafont{disposition}{\color{teal}} \settocstylefeature{pagenumberhook}{\sffamily{}} \begin{document} {\color{blue}\tableofcontents} \chapter{Chapter} \section{Section} ...


2

Since KOMA-Script Version 3.17 (current version on CTAN) you can use \RedeclareSectionCommand[...]{chapter} to change the skips before, after and inside the chapterheading. \documentclass[12pt,letterpaper,oneside,chapterprefix=on]{scrbook}[2015/04/23] %Margins \usepackage[letterpaper,left=1.5in,top=1in,right=1in,bottom=1in]{geometry} %Type ...


2

Since KOMA-Script version 3.17 (current version on CTAN) you have to redefine the commands \sectionformat, \subsectionformat etc. instead \othersectionlevelsformat. \documentclass{scrartcl}[2015/04/23] \renewcommand\sectionformat{\makebox[0pt][r]{\thesection\autodot\enskip}} \renewcommand\subsectionformat{\makebox[0pt][r]{\thesubsection\autodot\enskip}} ...


2

There is an option headers that can be set by \indexsetup: \indexsetup{headers={\indexname}{\indexname}} Code: \documentclass[headsepline]{scrreprt} \usepackage[splitindex]{imakeidx} \makeindex[name=stichwortA,title=Stichwort-VerzeichnisA] \makeindex[name=stichwortB,title=Stichwort-VerzeichnisB,columns=4] \indexsetup{ firstpagestyle=headings,% only ...


2

The vertical spacing between chapters in a ToC is controlled by \@chapterlistsgap, having the default value of 10\p@. This could be redefined to any value > 0\p@ (Currently this done for all LoF/LoT, perhaps for the ToC too) \documentclass[a4paper,fontsize=11pt,oneside,parskip=half]{scrreprt} \usepackage[demo]{graphicx} \usepackage{scrhack} ...


2

I guess your document is oneside? Then you can use \documentclass[oneside]{scrbook} \usepackage[headsepline,footsepline,manualmark]{scrlayer-scrpage} \clearpairofpagestyles \ihead{TEMA 13} \chead{Polinomios} \ohead{\pagemark} \ofoot{Oposiciones} \cfoot[\pagemark]{} \addtokomafont{pageheadfoot}{\upshape} \usepackage{blindtext}% dummy text \begin{document} ...


2

The package typearea is loaded by scrreprt and sets the page layout. \documentclass[ ... headsepline, % horizontale Linie unter Kolumnentitel ... BCOR=6mm, % Bindekorrektur, die den Seitenspiegel um 6mm nach rechts verschiebt, ]{scrreprt} BCOR=6mm is the binding offset and the option headsepline sets ...


1

There are times when squeezing isn't worth the trouble. \documentclass[paper=4.25in:6.88in,pagesize=auto,fontsize=10pt,headings=small,BCOR=.25mm,openany,DIV=16]{scrbook} \usepackage{showframe} \addtokomafont{disposition}{\rmfamily} \usepackage[english]{babel} \linespread{.9} \raggedbottom \RedeclareSectionCommand[beforeskip=0pt]{chapter} ...


1

I got this code snippet many, many years ago from I don't remember where, so unfortunately I can't credit its originator; but it certainly isn't mine. \makeatletter \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \hbox{} \vspace*{\fill} \thispagestyle{empty} \newpage \if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother All this really does is ...


1

You can work with enlargefirstpage as documented, but please don't. Sometimes, you have to accept, that some things don't fit. I don't know about Mr. Sausage, but tfl gets furious looking at this.


1

There are a few caveats in your code. First some general hints: do not use \\ in text. It is not a marker for a new paragraph. Just leave a single empty line in the code. Your comments are misleading mostly. you should also use \usepackage[T1]{fontenc} when using pdflatex. never use \setlength{evensidemargin}{} or \setlength{oddsidemargin}{}, especially in ...



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