Hot answers tagged

6

The first part of Werner’s answer won’t work if the sender’s address is also specified (with the \address declaration). In my opinion, it is more robust to patch the \opening command: \documentclass[a4paper]{letter} % To avoid confusion, let me explicitly declare % the paer size. \usepackage[T1]{fontenc} % Unrelated to ...


4

My assumption here is that you want to use some letter-head that is already on a piece of paper... If you really want what you're after and insist on using the letter class, then you'll have to use a hack. To replicate your output with the top margin on the first page 0.5" bigger than the rest, add \vspace*{0.5in} as part of a new \date declaration... even ...


4

The flowfram package has no problem changing margins between pages. OTOH, it only defines the text area. \documentclass{article} \usepackage{lipsum} \usepackage[margin=1.5in,showframe]{geometry} \usepackage{flowfram} \newflowframe[1]{\textwidth}{\dimexpr \textheight-0.5in}{0pt}{0pt} \begin{document} \lipsum[1-7] \end{document}


3

Based on Christian's solution, I've introduced a magic number as left skip and the result looks like: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{xcolor} \newtcbtheorem[number within=subsection]% {theorem} % \begin.. {Theorem} % Title {%theorem style = margin apart, % Style enhanced, colback=white, colframe=lightgray, theorem ...


3

It's possible with a theorem name style and shifting a overlay out of the box with overlay={\node[...]} \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{xcolor} \newtcbtheorem[number within=subsection]% {theorem} % \begin.. {Theorem} % Title {%theorem style = margin apart, % Style enhanced, colback=white, colframe=lightgray, ...


3

You can enlarge DIV. Example: \documentclass[...,DIV=10]{scrartcl} Then the margins are smaller but with the same ratio. The default value for fontsize=10pt and paper=a4 is DIV=8. But you will get a warning by the KOMA-Script package typearea: Package typearea Warning: Bad type area settings! (typearea) The detected line width is about ...


3

You can reduce the white space of the page by setting the offsets in preamble. For e.g. \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}


2

You could test for the page size using \ifdim\paperheidht=297mm \textheight=9.21in\fi% note the space where (from article.cls) \DeclareOption{a4paper} {\setlength\paperheight {297mm}% \setlength\paperwidth {210mm}} \DeclareOption{a5paper} {\setlength\paperheight {210mm}% \setlength\paperwidth {148mm}} \DeclareOption{b5paper} {\...


2

If hyphenation is allowed, please compare corrected and uncorrected paragraph. The \-'s are the places, where hyphenation is allowed. \documentclass[12pt,a4paper]{article} \usepackage[spanish,es-noshorthands]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathptmx} \usepackage[title]{appendix} \usepackage{pdflscape} \begin{...


1

This works with both oneside and twoside documents, where the note would automaticly be placed in the outer margin, as one would expect. I think I may have overdone this, as it turned out a bit more complicated than I had originally thought. Output Code \documentclass[11pt,twoside]{article} \usepackage{geometry} \geometry{papersize={16cm,24cm},...


1

After several hours search and 'trial-and-error', I found out that apa6 class automatically loads geometry package. So when we load it separately, it produces the clash error. All we need to do is to add \geometry{bindingoffset=0.4in) in the preamble and the binding offset (gutter) will be set. For example: \documentclass{apa6} \geometry{bindingoffset=0....


1

The issue is that bookest.cls does \RequirePackage{geometry} before the package is loaded in the preamble. So there is an option class: it has been loaded with no options and later with some. There are various ways around this. Use \geometry{<options>} in the preamble, if the options are ones which can be set after the package is loaded. If ...



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