Tag Info

New answers tagged

1

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, ...


0

I did it! It is possible to measure the width of a formula in points, compare it to pagewidth and output different strings depending on the result of the comparison. \documentclass{article} \usepackage{amsmath} \usepackage{ifthen} \makeatletter \def\measure#1{ \settowidth{\length}{$#1$} ...


0

I'm starting to think that the best solution is the approach described in @lockstep's answer to the original question (How to prevent a page break before an itemize list?). To summarize: the environments like itemize and enumerate automatically put \@beginparpenalty between the list and previous paragrapth, \@itempenalty between the items, and ...


1

\documentclass[12pt, a4paper]{article} \usepackage{blindtext} \begin{document} \blindtext[3] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobor- tis facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales commodo, lec- tus velit ultrices augue, a dignissim nibh ...


1

Well, with the lack of judgement of a mere user: \documentclass[12pt, a4paper]{article} \makeatletter \newcommand*{\NoBreakPar}{\vspace{\baselineskip}\par\nobreak\@afterheading} \makeatother \begin{document} Let's see the following list:\NoBreakPar \begin{itemize} \item First. \item Second. \item Third. \end{itemize} ...


7

This modifies multline to do (I think) as you ask. The result looks fairly unreadable to me, but perhaps I'm just not used to reading Russian articles. multline like all AMS alignments grabs the environment body and sets it twice to measure it, this just modifies it so that if it is too wide on that first pass, = is redefined and the measuring pass is ...


8

Never use undocumented commands without knowing what they do. In particular, \vbox is a primitive command that misses several adjustments minipage or \parbox do in order to be as compatible as possible with the surrounding context. Also the reference point of \vbox is on the bottom line inside it. Here's a better solution. \documentclass{article} ...


1

I would use a tabbing here. Much easier, not floating and behaves like normal text when it comes to page breaks. When your explanation is getting long, you will need to do a page break anyway. But like this, you are keeping equation an explanation together with nice spacing. If you really want to stay on one page with all of it, just uncomment the two ...


2

You can just enclose both the equation and the table in a figure environment, and use some labeling that is : \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \section{Penman-Monteith} [...] The resulting standard equation for the ASCE-PM method is displayed in figure~\ref{figASCE-PM}. \begin{figure} \begin{equation} [...] ...


2

I'm using version 1.5 (2013) of the listings package. I use lstinputlisting to include the code from the file, and I just put float inside the options of the environment. It works fine. For example, this goes in my preamble: \lstdefinestyle{freefempp}{ language=C++, basicstyle=\footnotesize\ttfamily, commentstyle=\itshape\color{violet}, ...


4

One way is to relax \clearpage, such that is doing nothing when called. Other possibilities (not in here): Redefine the commands \listoftables etc. and remove the \clearpage in there or use etoolbox package in order to patch them or the answer given in the link in LariFaRi's comment. Of course, the content lists will not fit on one page if there are a lot ...


1

\clearpage must be \relaxed in order to prevent the \clearpage call of \bibliography. The command \addcontentsline should appear in almost any case after the sectioning command, i.e. \chapter* or \bibliography. If hyperref is used, there should be a \phantomsection before the sectioning command. Hint: You can use \bibname in order to use the name of your ...


2

Have you checked this simple solution? I had a big, page-filling table and the landscape environment caused a blank page before the table. I noticed that the option [H] in \begin{table}[H] caused the blank page. If you use \begin{table}[htbp] instead, the annoying blank page is gone. [H] is useful to place the tables exactly where you position the command, ...


1

If you really need the large caption, this is an alternative. My study shows that if the floating feature is disabled, then the caption can continue to the next page, as shown below. Here a new environment called figurhere is defined \makeatletter \newenvironment{figurehere} {\def\@captype{figure}} {} \makeatletter Note: remove the demo option for ...


0

This seems not to be possible with paracol, because the paracol env can't be nested. But the parallel package does it: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage[table]{xcolor} \usepackage{lipsum,parallel, framed} \newcommand\LR[2]{\begin{Parallel}[v]{0.35\textwidth}{0.55\textwidth} \ParallelLText{#1}% \ParallelRText{% ...


2

Here is a solution: it consists in replacing the \subsection and \paragraph sectioning command with theorem environmentsthat have an empty name and just a label . Using the ntheorem package, I defined a Rule and a subRule theorem environments. It's easy to have different indentation for different theorems and to have the ad hoc counters. Finally, it is ...


4

The problem is not confined to booktabs: Also with a standard \hline you would get a break. longtable redefines \hline so that it actually inserts two lines with a break point between them. This way a line at the bottom of a page is repeated on the top of the next page. You could define you a command which changes the penalty used by the \hline and the width ...


4

easiest os to force a break where you want a break \documentclass[12pt,a4paper]{article} \usepackage{longtable,booktabs} \begin{document} \begin{longtable}{c} bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla ...


2

Add the columns=1 option to the index definition command: \makeindex[ name=ICC, columns=1, title={International Criminal Court} ]


2

You can temporarily make \newpage a no-op by using \inlinemaketitle instead of the regular \maketitle, where \newcommand{\inlinemaketitle}{{\let\newpage\relax\maketitle}} The surrounding {...} limits the scope of the redefinition of \newpage to \relax.



Top 50 recent answers are included