Hot answers tagged

6

Note that \usekomavar has a starred version and can take an optional argument. So it is not fully expandable. So it can not be used inside \pdfstrcmp or the KOMA-script command \ifstr. I have asked Markus. The optional argument can be used for commands like \MakeUppercase which influences the contents of its argument (that is explained in the manual) but ...


6

Here is an example without package titlesec. \documentclass{scrbook}[2015/10/03] \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{charter} \definecolor{mybluei}{RGB}{28,138,207} \definecolor{myblueii}{RGB}{131,197,231} \addtokomafont{disposition}{\usefont{T1}{qhv}{b}{n}\selectfont\color{myblueii}} ...


5

KOMA-Script's reasoning for that is: There is a rule in typography which states that one should mix as few fonts as possible. Using sans serif for headings already seems to be a breach of this rule. However, one should know that bold, large serif letters are much too heavy for headings. Strictly speaking, one would then have to at least use a ...


5

Since version 3.12 there is also an undocumented class option that results in a similar layout to the standard classes including serif font for the headings: \documentclass[emulatestandardclasses]{scrbook} \usepackage{blindtext}% dummy text \begin{document} \tableofcontents \Blinddocument \end{document} Note that this option needs package ...


5

It is not possible to use both packages geometry and typearea to set the page layout. Package typearea knows an option to set the paper size: paper=<width>:<height>. So you could use \usepackage[pagesize,paper=4.25in:7in,BCOR=10mm,DIV=calc]{typearea} But note that your fontsize is to large for this small paper.


4

If you only wish to remove the \date-related entry in the title, then you can patch \@maketitle and remove the relevant content (using etoolbox): \documentclass{scrartcl} \usepackage{scrlayer-scrpage,etoolbox} \automark[subsection]{section} \pagestyle{scrheadings} \title{Something} \author{Some Body} \ofoot{\today} \usepackage{blindtext} \makeatletter ...


4

As far as I have learned, the whole point of using serif font is to help the reader find the next line in justified text, i.e., not skipping one or reading the same line again. Serif fonts accomplish this through a strong emphasis on the baseline. On the other hand, headings are a) not justified b) usually not longer than one or two lines and c) ...


4

Note that \centering is a command and not an environment. Use the center environment instead. KOMA-Script defines the commands \captionof, \captionaboveof and \captionbelowof for figures or tables etc. outside floats. I would suggest to use a minipage to ensure that there is no column break or page break between the caption and the table. \begin{center}% ...


3

Despite the name \chapterheadstartvskip is not a skip but a macro, which is defined by defaults as \vspace{\@tempskipa}. \@tempskipa is calculated inside the chapter command from \scr@chapter@beforeskip which depends beside other on the baselineskip (and so the font size of chapter). The easiest way to get the exact value used in a concrete document is ...


3

With your code I get the warning address field is 155.80432pt to high So I would know I have to enlarge both the height of the address field and the space above the refline by 156pt: \makeatletter \@addtoplength{toaddrheight}{156pt}% enlarge the height of the address field \@addtoplength{refvpos}{156pt}% shift the refline down \makeatother The ...


3

You can't use the packages geometry and typearea in the same document. There is currently (Jan. 2016) a beta of the komascript bundle which includes a kind of coexistence, but you probably do not use the beta, do you? If you describe what you whish to do, maybe there is another solution. By the way, why are you using book as a documentclass and ...


2

In have in remembrance, that multicol doesn't support floats. A solution seems to be something like this: \begin{centering} \begin{tabular}{lllll} & \multicolumn{2}{l}{XYZ} & \multicolumn{2}{l}{ABC} \\ & Sex & P & Sex & P \\ AGE1 & 0.5 & 1 & 0.6 ...


2

Does this meet your conditions? \documentclass[ 11pt, pagesize=auto, version=last, chapterprefix=true ]{scrbook} \usepackage[T1]{fontenc} \usepackage[explicit]{titlesec} \usepackage{xcolor} \usepackage{charter} \definecolor{mybluei}{RGB}{28,138,207} \definecolor{myblueii}{RGB}{131,197,231} ...


2

So, I'm pretty new to LaTeX. I've been told in many places to use KOMA-Script document-classes instead of the standard ones; but it's also been mentioned that after doing so, you can't use a plethora of the standard functions of LaTeX safely once you do so, and you should use the ‘KOMA way’ of doing things instead? I have no idea which command of LaTeX ...


1

You can try by removing all list-related spacing, as well as remove the way the \@biblabel is being printed (just make if \@gobble it's argument): \documentclass{scrreprt} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @article{article001, author = {Hans Mustermann}, title = {Einfach nur ein Titel}, number = ...


1

I will only answer the question how to get a header and footer on the second page in a letter using the scrlttr2 class. So I remove all the not related stuff from the code. The default page style of the first page in a KOMA-Script letter is empty. So the layout of this page is defined in a completly different way using pseudolength, options and the ...


1

Perhaps this might work: \documentclass{article} \usepackage{lipsum} \usepackage{fancyhdr} \fancyhf{} \fancyfoot[L]{\today\ -Page \thepage} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \author{Me} \title{Foo} \date{\vspace{-5ex}} \begin{document} \maketitle \pagenumbering{gobble} \newpage \pagenumbering{arabic} \lipsum \end{document}


1

Your goal can be accomplished by 'titleps' package. Below I am including your example with changes. \newpage seems to be interfering with the header. I replaced it with text from 'lipsum' package. In the third section the text is enlarged to force the title of the fourth section to the top of next page. The example compiles into four pages with headers ...



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