Tag Info

Hot answers tagged

6

The report class uses \raggedbottom, so it's normal that the bottom line is not at 3cm exactly from the bottom side of the paper. The distance is measured from the baseline, so where the “e” sits. If you measure the top distance, you should get that the first baseline sits 3cm + 12pt (the value of the \topskip parameter). An uppercase letter is (with the ...


6

\documentclass{article} % loads of unknown author specific packages, settings, layouting \usepackage[textwidth=\dimexpr\marginparsep+4cm\relax]{todonotes} \begin{document} This is some text to review. \todo{This would be my comment on some extra wide margin just for todonotes.} \end{document}


5

Set headsep=1.05cm, headheight=0.75cm, top=1.2cm. The sum of them is 3cm and the layout is the one you want. MWE (I've added two lines, one at 1.5cm and one at 3cm just to show that it works, remove them): \documentclass[12pt, a4paper, onecolumn, oneside, final]{report} ...


5

The techniques explained at the linked answer work with subfigure package also. \documentclass{article} \usepackage{graphicx,showframe} %% remove showframe \usepackage[hang]{subfigure} \begin{document} \begin{figure*} \makebox[\linewidth][c]{% \centering \subfigure[Caption]{\label{fig:a}\includegraphics[width=0.35\textwidth]{example-image-a}}% ...


5

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}% } } ...


5

Using \address{} will give original definition of address. Using \address[]{} will give blank invoice box to the left, and using \address[comment\\comment]{} will add comment to the invoice box. \documentclass[standard]{letter} \usepackage[usestackEOL]{stackengine} \edef\tmpbs{\the\baselineskip} \setstackgap{L}{\tmpbs} \newlength\tmpwd \newlength\tmpht ...


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

Place the proof inside the figure environment, or else the "fact" may end up in a different location than the figure. EDITED to allow for multi-figures and page breaks in proofs (by using the \captionof{figure}{} approach). \documentclass{article} \usepackage{caption} \usepackage{xcolor} \usepackage{framed} \usepackage{lipsum} ...


4

You can accomplish that by removing the spurious spaces: Notes: As per @TorbjørnT.'s suggestion I added used the changepage package to eliminate the Overfull \hbox message. Code: \documentclass[11pt]{book} %\usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage[letterpaper ,inner=.75in ,top=.5in ,bottom=.5in ,includeheadfoot ...


3

Vertical space is always discarded at the start of a page but if the document has incorrect input consisting of blank lines before displayed math, then the "space" above the equation is not a vertical skip but is in fact a spurious single line paragraph, with the line consisting just if the indentation box and \parfillskip glue. As a horizontal box it is not ...


3

Classically (La)TeX has no knowledge of the physical paper size, it just sets up a text block area of a give width and height. The "page margins" were just an artifact of where the dvi driver positioned that text block on the page. PDF and pdftex change that a bit as pdftex is essentially its own driver so needs to be concerned with that aspect and the pdf ...


2

I am assuming you are referring to the \ChapFrame command as given in this answer to Chapter Title in rotated vertical box at the margin. In that case, the answer is yes, you can conditionally activate/deactivate the frames. A little example: \documentclass{book} \usepackage{background} \usetikzlibrary{calc} \usepackage{ifthen} \usepackage{lipsum} ...


2

You can use the \newgeometry and \restoregeometry commands from the geometry package with a code like this one: \newgeometry{centering,margin=1.5cm} \thispagestyle{empty} \mbox{}\vfill \begin{center} \Huge\bfseries My Lovely Title \end{center} \vfill \mbox{} \restoregeometry These commands start a new page:


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

LaTeX complains a bit but: \documentclass{article} \usepackage{longtable} \usepackage{lscape} \usepackage{array} \begin{document} {\addtolength\textwidth{5cm} \begin{landscape} \section{My First Section} \begin{longtable}{|>{\raggedright}m{2in} |>{}m{3.5in} | >{}m{0.8in}| >{}m{0.3in} |>{}m{0.7in} |} \hline \textbf{Author(s)} & ...


2

REVISED answer: Here, I use the geometry package to temporarily reset the page dimensions and then reset them back after the table. In this way, the longtable should still be able to break across pages, unlike my original solution below. \documentclass{article} \usepackage[pass]{geometry} \usepackage{longtable} \usepackage{lscape} \usepackage{array} ...


1

After loading apacite and multibib, you could execute the commands \setlength{\bibleftmargin}{0em} \setlength{\bibindent}{2em} to get the first line of every entry to be indented by 2em relative to any further lines. The amount of indentation of the remaining lines with respect to the left hand edge of the text block is governed by \bibleftmargin. How to ...


1

Use scalable p{<width>} column. aaa... and bbb... are bad examples for long text, as TeX can't hyphenate them, due to not being actual words. \documentclass{standalone} \usepackage{blindtext}% \blindtext creates a paragraph of dummy text \begin{document} \begin{tabular}{lp{0.6\textwidth}} \textbf{P1.1} & \blindtext \cr \textbf{P4.1} ...


1

The problem is where in your tex file, there is no indiction of paper size. So you can add a4paper option to your geometry package option list like this: \usepackage[a4paper,margin=1in,footskip=0.25in]{geometry} or you can specify it in your document class options.



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