Tag Info

Hot answers tagged

6

Add the pagesize option. Here is a quote from the manual, end of section 2.7, page 45 and 46: The above-mentioned mechanisms for choice of paper format only affect the output insofar as internal LaTeX lengths are set. The typearea package then uses them in the division of the page into type area and margins. The specification of the DVI formats, ...


5

\marginfigure actually uses \marginnote. Therefore, you can simply use \reversemarginpar and adjust the left margin appropriately. Further you have to tweak these \makeatletter \renewcommand{\@sidenotes@adjust}{% \hspace*{-120pt}% %% this = marginparwidth + marginparsep } \DeclareCaptionStyle{widefigure}{margin={-120pt,0pt},font=footnotesize} ...


4

Add the option backaddress=plain, as explained on page 172 of the current documentation: \documentclass[ standard, a4paper, pagesize, backaddress=plain, ]{scrlttr2} (this way of typing options is handier because it clearly shows all of them). The error is because you're missing a closing brace: \setkomavar{firstfoot}{ \centering ...


4

Using a \Longstack will work for a two line chapter name, with breaks inserted manually. If you get to three lines, though, no method will prove suitable to look at. \documentclass{scrbook} \usepackage{mwe} \renewcommand*{\chapterformat}{\mbox{\chapappifchapterprefix{\nobreakspace}\scalebox{3}{\thechapter}\enskip}} \usepackage{lipsum} ...


4

\documentclass[a4paper,backaddress=off,foldmarks=false,parskip=half,addrfield=false]{scrlttr2} \usepackage{fontspec} % Allows font customization \usepackage{marvosym} % Allows the use of symbol \usepackage{csquotes} \defaultfontfeatures{Mapping=tex-text} \renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont} \let\raggedsignature\raggedright ...


4

Try this code: \documentclass{scrreprt} \usepackage{blindtext} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usepackage{eso-pic} \AddToShipoutPicture{% \begin{tikzpicture}[remember picture, overlay] \draw[line width=1pt] ($(current page.north west) +(25mm,-25mm)$) rectangle ($(current page.south east) +(-25mm,25mm)$); ...


4

With background: \documentclass{scrreprt} \usepackage{blindtext} \usepackage{background} \backgroundsetup{ angle=0, scale=1, opacity=1, color=black, contents={% \begin{tikzpicture}[remember picture, overlay] \draw ([xshift=25mm,yshift=25mm]current page.south west) rectangle ([xshift=-25mm,yshift=-25mm)]current page.north east); \end{tikzpicture}% } } ...


2

After a few modification of the karlkoeller's code I came up with the solution I was looking for: \documentclass{scrreprt} \usepackage{blindtext} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usepackage{eso-pic} \AddToShipoutPicture{% \begin{tikzpicture}[remember picture, overlay] \draw[line width=1pt] ($(current page.north west) ...


2

Use option toc=indentunnumbered to setup the table of contents to indent entries without number and command \addsec to add such sections automatically to the table of contents: \documentclass[toc=indentunnumbered]{scrreprt} \begin{document} \tableofcontents \chapter{Test Chapter One} \section{Test Section One One} \section{Test Section One Two} ...


2

As per Andrew Swann comment i changed, it works well \documentclass{scrbook} \usepackage{lmodern}% for sans-serif plus bold plus italic \usepackage{tocstyle} \usetocstyle{standard} \usetocstyle{nopagecolumn} \settocstylefeature[0]{leaders}{\hfill}% \settocstylefeature{pagenumberhook}{\itshape~} \usepackage{blindtext} \makeatletter ...


2

The file scrlttr2.cls defines the letter environment in the following way: \newenvironment{letter}[2][]{% \newpage \if@twoside\ifodd\c@page\else\thispagestyle{empty}\null\newpage\fi\fi \setcounter{page}{\@ne}% \setcounter{footnote}{0}% \interlinepenalty=200\@processto{#2}% \KOMAoptions{#1}% \@beginletterhook }{% ...


2

I would choose ConTeXt in your situation. If you want to adapt the document layout dimensions it can be very easily done in ConTeXt (one caveat though, read very carefully \setuplayout documentation, it does not work as you would expect it to). If you are more ambitious there are available examples of real book styles, that you can tweak to your needs.


2

Your code results in essentially two \parskips before and after the definition. Before the theorem you can set the spacing to \parskip by using \setlength rather than \addtolength in the adjustment of \thm@preskip. For after the theorem the relevant quantity is \thm@postskip, but this needs to be put to zero, as there comes a \parskip anyway: ...


2

Edit: OP changed his question, so this answer is out of date. I don't delete it, because the code may serve as a starting point. I have to confess, I did not quite understand your design, but this code seems to come quite close: \documentclass[12pt, twoside=semi]{scrbook} \usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, ...


2

I have informed Markus Kohm by e-mail yesterday. He already has mailed back, and now I’m a bit upset that I did not think myself on this before writing mail … The reason is that you’ve misused \setkomafont for a command that does not change font properties, but the alignment. Read what is written in scrguien.pdf (you could, of course, also read ...


1

I solved with fancyhr package \documentclass[twoside=semi]{scrbook} \usepackage{calc} % Page layout \usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt %,bindingoffset=30pt %,asymmetric ,reversemarginpar ,showframe]{geometry} % Head and foot of ...


1

A solution with automatic line breaking using minipages: Minipages need a width specification. Thus I defined a new command \chapmark containing most of the \chapterformat definition, whose length I can measure. For this I used two features of package calc: the command \widthof and the possibility to make computations of lengths. The baseline orientation is ...


1

If you set the pagestyle to empty for just that page, then you can add the page number into the figure using \thepage. \documentclass{scrreprt} \usepackage[demo]{graphicx} \begin{document} \thispagestyle{empty} \begin{figure} \centering \includegraphics[height=24cm]{name}\\ \thepage \end{figure} \pagebreak \begin{figure} \centering ...


1

\documentclass{scrbook} \usepackage{lmodern} \usepackage{tocstyle} \usetocstyle{standard} \usetocstyle{nopagecolumn} \settocstylefeature[0]{leaders}{\hfill}% \settocstylefeature{pagenumberhook}{\itshape\nobreakspace} \usepackage{etoolbox} \usepackage{lipsum} \makeatletter \newif\if@chap@enddc \@chap@enddctrue \let\ltx@@chapter=\@chapter ...


1

It’s the documented behaviour, so you do not understand or misread the documentation. Read again (emphasis by me): With setting topbeside the topmost base lines of the environment contents and caption will be aligned. […] In this context it should be known, that the base line of a pictures (sic!) is mostly at the bottom of the picture. This may be ...



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