Tag Info

Hot answers tagged

6

This is the basics, adjust to suit. \documentclass[11pt, twoside=semi, titlepage]{scrreprt} \usepackage[top=2.5cm, bottom=2.5cm, left=6cm, right=2cm, heightrounded, marginparwidth=3.5cm, marginparsep=0.5cm]{geometry} \usepackage{xcolor} \renewcommand*{\othersectionlevelsformat}[1]{% \makebox[0pt][r]{% \fcolorbox{blue}{blue}{\color{white}\csname ...


6

You're probably misunderstanding what total= is for: it specifies the width and height of the text block, not the paper size. The paper size is already specified by the global option a4paper (you don't need to pass it to geometry if it's already in the \documentclass options). Thus you have specified a text width of 210mm, but also left and right margins of ...


3

Since you are using memoir you should use its facilities to layout your page. I am not very familiar with this class but the documentation seems extremely helpful so I'd suggest looking through it. A rather selective reading suggests the following: \documentclass[11pt, a4paper, oneside, oldfontcommands]{memoir} \setlrmarginsandblock{25mm}{25mm}{*} ...


3

Specify both xmin and xmax.Then enlarge both sides (left and right of x) equally (i.e., remove upper). To remove dashes on left and right add this: ytick style={line width=0.0001pt}, in axis options. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{tikzpicture} \begin{axis}[ xbar, y=-0.5cm, bar ...


3

If you are using bookest and are unable or unwilling to switch to a newer class or package, you should use its facilities to set the page layout dimensions where possible. You can supplement these with a call to geometry if necessary. bookest requires geometry itself so you do not need a \usepackage{}. You can just say e.g. \geometry{paperwidth=4.25in, ...


3

You need to calculate where you are on the page in order to "jump around" (left/right) correctly. For that you can save the current left-margin position using zref's savepos module. \documentclass{article} \usepackage{fancyhdr,xcolor,zref-savepos} \AtBeginDocument{\zsavepos{lmarginmark}}% Store left margin mark \fancyhf{} \makeatletter ...


3

longtable lets you set the left and right margins but unfortunately the tabu wrapper around longtable always passes in an optional argument which sets the margins to 0pt or \fill depending on the lcr alignment. So for longtabu as well as setting the margins to -1in you need to patch tabu not to default c alignment (which would reset them back to \fill). ...


2

That llncs is standard is not true, in my opinion. However, nothing prevents you from using geometry with it. Adjust to your needs the parameters I set. Of course, submitting such a document to Springer will cause rejection. \documentclass{llncs} \usepackage{geometry} \geometry{ a4paper, % or letterpaper textwidth=15cm, % llncs has 12.2cm ...


2

If you like, there is a solution using the tcolorbox package: \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage[francais]{babel} \usepackage{slantsc} \usepackage{array} \usepackage{multirow} \pagestyle{empty} \usepackage[T1]{fontenc} \usepackage[default]{raleway} \usepackage{amssymb} \usepackage{layout} \usepackage{fancyhdr} ...


2

The left margin is 1inch plus \oddsidemargin: \documentclass{article} \usepackage[showframe]{geometry} \begin{document} \noindent\hspace*{\dimexpr-1in-\oddsidemargin}% \rule{\dimexpr1in+\oddsidemargin+\textwidth}{2pt} \end{document}


2

This is due because geometry calculates on his own the missing dimensions for your document. It complains when you specify too many parameters, thus resulting in an Over-specification warning. This code should work fine: \documentclass[11pt,oneside,oldfontcommands]{memoir} \usepackage[a4paper,left=25mm,top=25mm,textwidth=160mm,textheight=249.7mm]{geometry} ...


2

The simplest implementation would combine a custom counter with a \marginpar. You can define a command that sets the counter to the start page, and another that both increments the counter and prints it in the margins in the style of your choice. \documentclass{article} % count source pages \newcounter{spp} % format marginal note ...


1

Here's an example which shows how to pass roughly your existing settings to geometry. \documentclass[12pt,a4paper]{report} \usepackage[hoffset=2mm,textwidth=150mm,textheight=220mm,voffset=-7mm,left=10mm,verbose,showframe]{geometry} \usepackage{setspace} \setstretch{1.3} \pagestyle{empty} \begin{document} Some text \end{document} verbose shows the ...


1

A quick and dirty solution is to add a \vspace{} after the frametitle % Now that we have changed the headline, we will need to orient the frame titles in a way that the come at the right stop just above the horizontal line. \setbeamertemplate{frametitle}{ \vspace*{4mm}\hspace*{0mm}\insertframetitle \vspace*{1cm}} Full code: %% beamerthemeMedian.sty %% ...


1

May be you can organize them with columns environment help. \documentclass{beamer} \usepackage{mwe} \begin{document} \begin{frame}{Organizing figures} \begin{columns}[onlytextwidth] \column[T]{.7\textwidth} \includegraphics[width=\linewidth]{example-image-a} \column[T]{.3\textwidth} \includegraphics[width=\linewidth]{example-image-b}\\ ...


1

The [pass] option to the geometry package will load the features of the package, while leaving the existing settings of the underlying class intact. When using the pass option, most of the other package options (not features) are disabled. The MWE below shows how the default article settings are adopted on page 1, but that a \newgeometry command is ...


1

My preferred solution would be to use a better behaved class. However, I'm assuming you are asking because that is not an option. If so, I recommend dropping the use of geometry and setting the page dimensions manually. I wouldn't normally recommend this, but the class does very odd things which I do not pretend to understand. Note that if the class offers ...


1

Here is one option to obtain the output you're after. Without more information on its usage, it should be sufficient: \documentclass{res} \usepackage{tabularx} % \newitem{<what>}{<where>}{<when>}{<description>} \newcommand{\newitem}[4]{% \noindent \begin{tabularx}{\textwidth}{@{} X l @{}} \textbf{#1}, #2 & #3 ...



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