Tag Info

New answers tagged

1

Another solution would be to use the \xentrystretch{<decimal-fraction>} command and set it to a negative number. From the xtab manual: The command \xentrystretch{<decimal-fraction>} can be used before a table to modify the amount of vertical space apparently consumed by each entry in the subsequent table(s). The default is ...


1

\include{filename} and input{filename} both import the file with the filename into the document. The most important difference of these commands in your case is, that \include inserts a \clearpage after the file (which creates a pagebreak), while \input only inserts the content of your file. So you should use \input to avoid pagebreaks. More detailed ...


2

You can also use a minipage. A minipage won't allow page breaks. \documentclass{article} \begin{document} \noindent \begin{minipage}{\textwidth} \textbf{Modest Mouse, Jimmy Eat World, Angels and Airwaves}\par \textit{LIVE105 Not So Silent Night}\par Bill Graham Civic Auditorium\par San Francisco, CA\par 12/7/2007 \end{minipage} ...


2

Use a tabular structure: \noindent \begin{tabular}{@{}l@{}} \textbf{Modest Mouse, Jimmy Eat World, Angels and Airwaves} \\ \textit{LIVE105 Not So Silent Night} \\ Bill Graham Civic Auditorium \\ San Francisco, CA \\ 12/7/2007 \end{tabular} If your titles are wider than the text block, then you might be interested in a {@{}p{\linewidth}@{}} ...


0

I use a similar solution to the one proposed by werner. However I prefer to define the minipage with text instead of line width: \begin{minipage}[c]{0.95\textwidth} \begin{lstlisting} \end{lstlisting} \end{minipage} "c" for centering and "0.95\textwidth" to make the listing a little bit smaller than the rest of the text.


0

It turns out that tikz uses aux to compute the page number already. \documentclass{article} \usepackage{tikzpagenodes} \makeatletter \let\tikzpage=\oddpage@page \makeatother \newcommand{\pagetest}{\noindent \begin{tikzpicture}[remember picture,overlay] \node[right]{current page = \tikzpage{} which may not equal \thepage}; \end{tikzpicture} } ...


4

The \allowdisplaybreaks macro changes the \interdisplaylinepenalty parameter. You can undo the effect of \allowdisplaybreaks using \interdisplaylinepenalty=10000 Try commenting \interdisplaylinepenalty=10000 in the example below to see the effect. \documentclass{article} \addtolength\textheight{1cm} \usepackage{amsmath} \usepackage{lipsum} ...


4

use \begin{landscape} \resizebox{!}{0.95\textheight}{\input{erd.tikz.tex}} \end{landscape} The image is too big. The reason why it is placed on the following page.


1

A proposition: Store one tabular (PanelA) in a savebox, call it inside a longtable environment and then introduce a \newpage for the next page, use a \phantom{\usebox{....}} (see code) and then continue with the second panel tabular. As long as there is no precise information, what fills the place on the second page, I took the spacing produced by PanelA. ...


1

Ah okay, only a few minutes after asking the question, I found the answer (creating the MWE helped). The problem was with the picins package loaded (I think) in the template class. If you load picins, the mdframed environments will no longer break over pages, as per this M(N)WE: \documentclass{article} \usepackage{picins} \usepackage{mdframed} ...


5

To have the chapter heading to appear on a page of its own, add a \clearpage in the last optional argument for \titleformat. To have the heading vertically centered, add \vfill before and after the title is typeset: \documentclass[11pt]{report} \usepackage[T1]{fontenc} \usepackage{titlesec} \usepackage{calc} \usepackage{lmodern} \usepackage{lipsum} ...


0

since I was suggested to answer my question for the purpose of knowledge sharing, here is my answer. \begin{figure}[H] \makebox[\linewidth]{ \includegraphics[width=20cm ]{img/myImage.jpg}} \caption{This is my image} \label{fig:ToUseWithReference} \end{figure} I solved this by changing the parameter [p] to [H] where H Places the float ...


3

You can do this using the atbegshi package, together with an \if... statement where you set the \if... equal to true at the start of the option and then to false at the end using \setlist. Here's a MWE. I have used the same continuation message that you used above. \documentclass{book} \usepackage{enumitem} \usepackage{atbegshi} ...


2

EDIT II Here is a fully functional solution. The MWE example is yours. My code puts the watermarks on pages 2,4,5,6 and 7 and adds hyperlinks back to them at the end of the document. I'll make some comments below. \documentclass{article} \usepackage[contents={Watermarked!},pages=some]{background} \usepackage[colorlinks]{hyperref} \pagenumbering{arabic} ...


1

It occurred to me that \tikz[remember page,overlay] must already wait until the page is laid out in order to work right. Nor will it change the layout since it overlays the existing text. \documentclass{memoir} \usepackage{tikzpagenodes} \newlength{\tempx} \newlength{\tempy} \newcommand*\shybar{\ifvmode\tikz[remember picture,overlay]% start of paragraph ...


1

I would use a different tactic that makes the images not interfere with the placement of the text: Place them in the foreground as an overlay using eso-pic. \documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook} \usepackage{graphicx,eso-pic} \begin{document} Here is some regular text. \clearpage \mbox{}% Just to put something on ...


3

Deleting \newcommand*\NewPage{\clearpage\thispagestyle{empty}\null} \NewPage Should have the desired effect (the definition leaving \null at the top of the following page seems to be incorrect in all cases, and certainly is not wanted before a chapter heading)


0

Well, eventually I do hope for an erudite answer to this - but for the time being, I did somewhat solve the specific case in the OP; so I thought I'd post, as a reminder of how complicated this can get :). Now both document classes show fig:one on pg3, and fig:two on pg5, and otherwise the text flows in between; in particular test-article is now as required, ...



Top 50 recent answers are included