Tag Info

Hot answers tagged

6

The bounty has already been awarded, but here's the beamer way: beamer uses six horizontal lengths: \beamer@leftsidebar and \beamer@rightsidebar store the (horizontal) sizes of the side bars. \beamer@leftmargin and \beamer@rightmargin store the distance between sidebar and text. The macros \Gm@lmargin and \Gm@rmargin store the distance from the edge of ...


5

margins are never “enforced”, but if you write something that can't fit in the printing area, you get a warning (“overful \hbox”). the optimum solution is to rewrite so the problem doesn't occur in the first place. in default of that, put \linebreak[4] before your bit of maths; the line will now be under-full (with an appropriate warning), but that’s as ...


5

You shouldn't use titlesec with KOMA-script generally. Assuming that you have needs, here is a way. We can use a \parbox or minipage to enclose the chapter title and fix the height of the \parbox/minipage. I have used explicit option for titlesec and used \parbox[t][2\baselineskip][t]{\textwidth} {\MakeUppercase{#1}} Here the height of the box is ...


4

It's not the case that the table is "shifted" to the right in the MWE. Instead, the MWE's table is wider than \textwidth, i..e, the width of the text block. This makes its material stick out to the right of the text block. Assuming the document's left-hand and right-hand margins are actually 1 inch (2.54 cm) wide each, you can get the longtable environment ...


4

A good way to easily identify bad boxes is to use the draft option of most document classes, which prints a black box to the right of every overful box. The code below shows you where is the bad box: \documentclass[a4paper,draft]{article} \begin{document} \begin{table} \caption{ \textit{Title}. Some comments.} \centering \begin{tabular}{llllllll} ...


4

A simple solution is change the \hoffset: \documentclass{beamer} \usetheme{Berkeley} \begin{document} \section{foo} \begin{frame}[t] Text \end{frame} \hoffset=-.8in % no left margin \begin{frame}[plain,t] Text \end{frame} \hoffset=0in % restore left margin \begin{frame}[t] Text \end{frame} \end{document} Edit Determine automatically ...


3

Try [onlytextwidth,t] instead of [T] (p. 125, beamer manual): \documentclass[t]{beamer} \usepackage{lipsum} \begin{document} \begin{frame} \lipsum[6] \end{frame} \begin{frame} \begin{columns}[onlytextwidth,t] \begin{column}{0.49\linewidth} \lipsum[6] \end{column} \begin{column}{0.49\linewidth} \lipsum[6] \end{column} ...


3

A solution based on tabularx. I also use the array package, for its *{n}{} and >{…} constructs that saves typing, and booktabsto improve the look of the table. The siunitx package is used to align columns of numbers. Finally, I've automated row numbering and the GO: label. \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} ...


3

The first thing to try is, of course, reducing the arrow lengths. If all else fails, use \mathclap that, however, requires ampersand replacement; or enclose the diagram in an lrbox. I'll show all three possibilities. \documentclass[12pt,a4paper]{article} \usepackage{mathtools} \usepackage{tikz-cd} \newsavebox{\wideeqbox} \newcommand{\sample}{Lorem ipsum ...


3

The titlesec package is used for this. With the option of raggedright, you can get what you mean. See this code, \documentclass{report} \usepackage{blindtext} \usepackage[raggedright]{titlesec} \begin{document} \chapter{Hope} \section{Hope of the Essential Trigonometry TRIGTEST} \blindtext \section{Hope of the Essential Trigonometry TRIGOTEST} \blindtext ...


2

\documentclass[a3paper, 14pt, twoside, showtrims]{memoir} \settrimmedsize{340mm}{210mm}{*} %\settrims{10mm}{10mm} %\settypeblocksize{261.8mm}{140mm}{*} %\setlrmargins{23.3mm}{46.7mm}{*} \setlrmarginsandblock{23.3mm}{46.7mm}{*} \setulmarginsandblock{23.3mm}{54.9mm}{*} \setmarginnotes{2.8mm}{23.3mm}{1em} \settypeoutlayoutunit{mm} % <-- remember ...


2

geometry gives you a great deal of easy-to-use control over page layout. This is the default layout used by the package for book: Here is the effect of inverting the ratio of the inner to outer margin: \documentclass[11pt]{book} \usepackage[showframe, hmarginratio=3:2]{geometry} \usepackage{kantlipsum} \begin{document} \setcounter{chapter}{0} ...


2

What you intend to do will look really ugly in a binded book, please read the first chapter of the koma script documentation about typography. The option you need is not too invert the margins. Just add an appropriate binding correction with the option BCOR=space E. G. BCOR=12mm


2

The problem is that the table is wider than the textwidth. When you use \usepackage[showframe]{geometry} then you see the borders: \documentclass[a4paper]{article} \usepackage{longtable} \usepackage[showframe]{geometry} \begin{document} \begin{longtable}{cccccccp{5cm}} \hline Row & GO term & P-value & OR & Exp Count & Count & ...


2

But the values your LaTeX document produces and the values from the table do agree. I don't see a problem. \textwidth, \textheight, and \topmargin are almost as predicted. And the inner margin, which is 1in + \oddsidemargin on odd pages, is 25.4 - 7.9 = 17.5mm and thus also as predicted. For an even page, the inner margin is \paperwidth - 1in - ...


2

You should consider using TikZ with fancyhdr \fancypagestyle{plain}{% \fancyhf{} \fancyfoot[EC]{% \begin{tikz}[overlay] \node[font=\textbf,xshift=0.5cm] (number) at (current page.west) {\[~\thepage~\]} \end{tikz} }% \fancyfoot[OC]{% \begin{tikz}[overlay] \node[font=\textbf,xshift=0.5cm] (number) at (current ...


2

I'm afraid this is 'status bydesign': looking over the code, the decision to have different margins is one that was made deliberately and not an accident/bug. As such, and because a change would affect many documents, it has to be viewed as a 'feature' of beamer. (There is no clue in the code as to why this decision was made!)


2

As one option, you can use adjustbox package and provide max width as 1.1\textwidth. Then the table is restricted to that width only if it is wider than 1.1\textwidth. Also use center option to center that table. \documentclass[a4paper]{article} \usepackage{adjustbox} \usepackage{kantlipsum} %% just for demo \usepackage{showframe} %% just for demo ...


2

TeX does not know how to hyphenate the word 'trigtest' so you will need to tell it how to do so in the preamble: \documentclass{report} \usepackage{blindtext} \hyphenation{trig-test} \begin{document} \chapter{Hope} \section{Hope of the Essential Trigonometry TRIGTEST} \blindtext \section{Hope of the Essential Trigonometry TRIGOTEST} \blindtext ...


2

I have followed up on the solution proposed by alexises, completing the code. \documentclass[twoside]{article} \usepackage{lipsum} \usepackage{tikz} \usepackage{fancyhdr} \fancypagestyle{Plain}{% \fancyhf{} \fancyfoot[EC]{% \begin{tikzpicture}[remember picture,overlay] \node[xshift=3cm,font=\bfseries] (number) at (current page.west) ...


2

This solution provides a possible workaround. Use of adjustwidth from changepage package. Within an adjustwidth environment the left and right margins can be adjusted. The environment takes two required length arguments: \begin{adjustwidth}{<leftmargin>}{<rightmargin>} ... \end{adjustwidth} A positive length value will increase the relevant ...


1

The point here is that LaTeX is in trouble because it won't stretch the spaces before the equation in a non-exaggerated way (I can't explain what it "exaggerated" to LaTeX) that sends the equation down, so it keeps the equation up and gives you an Overfull \hbox warning. One way to solve this is to force the linebreak, thus generating the opposite warning ...


1

I tried some more and found the following solution. It is not perfect since I do not have direct control of the size and location of the text block, but it fits the large table almost where I want it. \documentclass[b5paper,10pt]{memoir} \settypeblocksize{*}{11.5cm}{1.61803} \setulmarginsandblock{3.2cm}{*}{*} \checkandfixthelayout[nearest] ...


1

Due to the \oddsidemargin/\evensidemargin problem, \PFwidth is calculated as the largest possible width that will fit on both odd and even pages. I found it easier to emulate sidewaystable than use it. The key is that \caption will only work in a minipage. The table will automatically be centered on the page. No additional \centering is required. ...


1

This demonstrates left and right shifted images with captions aligned with both the text and with the images. \documentclass{scrartcl} \usepackage{scrextend} \usepackage{geometry} \geometry{ top=3.5cm, bottom=3.5cm, outer=6cm, inner=2cm, heightrounded, marginparsep=0.8cm, marginparwidth=4.7cm, twoside=true, ...


1

You can also achieve this by adding the showframe package to your preamble: \usepackage{showframe}


1

Another way of doing this using the background package. Stealing from the manual a little, you can get: (I could only display an even page next to an odd page...) The LaTeX for this is fairly easy: \documentclass{article} \usepackage{lipsum} \usepackage[pages=all,color=black,opacity=1,scale=4,contents={},angle=0,% contents={}]{background} ...


1

As Manuel Kuehner mentioned, your table is wider than the \textwidth. You may either Enlarge \textwidth by simply \usepackage[cm]{fullpage} or, as mentioned, using geometry. Add a negative space manually on the left of the table, as following: \documentclass[a4paper]{article} \usepackage{longtable} \begin{document} \begin{longtable}{cccccccp{5cm}} ...


1

This does what you ask, though you may consider an alternative, since it pushes up to the paper edge. Nonetheless, I did two things to your MWE. First, I wrapped the \smash{} in an \rlap, as in \rlap{\smash{}}. This has the effect of ignoring the horizontal space taken by the argument of \rlap as it laps rightward from the current position (thus it ...


1

Using \mathrlap (from mathtools), you can achieve what you want. It is not an advisable practice, but maybe acceptable in some situations. One can place the \Rightarrow more leftwise inserting a relevant horizontal space in the third column of the alignment (to be determined experimentally). Here are the details: \documentclass[leqno,10pt]{article} ...



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