Tag Info

Hot answers tagged

5

There are some options to improve this: Use a p columntype with some width specification for the simplest solution. This uses a \parbox and wraps the content at the box width. Alternatively use a \newcolumntype from array package (Please note that p{0.8\linewidth} is still too wide in this case) Package tabularx provides the automatic adaption of cell ...


4

If I run this sample document \documentclass{book} \usepackage[a4paper,pass,verbose]{geometry} \usepackage{lipsum} \begin{document} \lipsum \end{document} I get, in the log file and on the console, the relevant lengths: * \textheight=550.0pt * \topmargin=22.0pt * \headheight=12.0pt * \headsep=18.06749pt Rounding \headsep is irrelevant, so I'll use ...


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

Set margins by adjusting the bounding box via \pgfresetboundingbox and scale only axis Pgfplots manual describes adjusting the bounding box in Chapter 4.20.1 Bounding Box Restrictions (v1.12) % Measures: % --------- % total width = \columnwidth = 252pt = 3.49in % total height = 4in = 288pt % lmargin = 0.4in % rmargin = 0.1in % bmargin = ...


2

My interpretation of the question: \documentclass[fontsize=10pt]{scrartcl} \usepackage{geometry,lipsum,calc} \geometry{% a4paper, hcentering, textwidth=14cm, lines=52, includemp=true, showframe} \usepackage[automark]{scrlayer-scrpage} \KOMAoptions{% headsepline, footsepline, plainheadsepline, plainfootsepline, headwidth=textwithmarginpar, ...


2

To move everything to the right do not use adjustwidth just set \hoffset to the required length.


2

loading geometry befor fancyhdr will fix it \usepackage[margin=3.0cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy}


2

Use tcolorbox instead of mdframed: \documentclass{article} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox}[arc=0mm,boxrule=1pt,colback=white] Test frame\footnote{Test footnote} \begin{tcolorbox}[arc=0mm,boxrule=1pt,colback=white] Test nested frame \end{tcolorbox} \end{tcolorbox} \end{document}


1

It's easy with geometry; the showframe option is just for showing the various parts of the page. \documentclass[oneside]{scrbook} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{includemp,showframe} \usepackage{lipsum} \usepackage{marginnote} \begin{document} \section{Introduction} \marginnote{Hello! This is a long margin note to see what ...


1

Menu Document ⇢ Configuration ⇢Documment class ⇢ Option class ⇢ Write here the twoside option, so after fix the margins, the LaTeX source show something like this: \documentclass[twocolumn,english,twoside]{article} ... \usepackage{geometry} \geometry{verbose,lmargin=4cm,rmargin=2cm} Then add some content and voilá. If you ...


1

Probably, this is one of those rare cases in which it is preferable to add another answer, rather then editing the one I already gave; indeed, I dislike my previous answer so much that I’ll probably remove it. The following, obvious solution is much neater: \documentclass[a4paper,twoside,titlepage]{article} \usepackage[T1]{fontenc} \usepackage[ a4paper, ...


1

I improved upon my own question by taking some bits from this SO question. My code for Python syntax coloring and layout is now like this: \usepackage{color} \DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{12} % for bold \DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{12} % for normal \definecolor{deepblue}{rgb}{0,0,0.5} \definecolor{deepred}{rgb}{0.6,0,0} ...


1

Here's a way, based on my answer at What are the ways to position things absolutely on the page?. The horizontal/vertical locations of the marks can be adjusted to suit, using the first two arguments of \atxy. \documentclass{article} \usepackage{everypage} \usepackage{xcolor} \usepackage{lipsum} % THESE ARE LaTeX DEFAULTS; CAN CHANGE IF NEEDED. ...


1

Here is another suggestion useing the package scrlayer-scrpage for the header and footer. Then it is possible to define additional layers and add them to all (or to selected) page styles. \documentclass[a4paper,twoside]{article} \usepackage{blindtext}% dummy text \usepackage{scrlayer-scrpage} \newcommand\foldmarklength{2mm} ...



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