Direkt zum Hauptbereich

latex Gleitobjekte, nach welchen Regeln?

Perhaps its useful at this point to delve just a bit into the mechanism LaTeX uses to determine where a float goes.

There are several integer-valued registers (called counters in TeX jargon) that limit the number of floats on a page: the number at the top, the number at the bottom, and the total. In addition, there are limits on the fraction of a page that can be occupied by floats — again, at the top and bottom separately, as well as the page as a whole.

If there are too many floats to fit on a page, LaTeX pushes them on to the next page, and the next; eventually, floats may end up at the end of the document. If the [p] option has been provided to individual figures and tables, they may be pushed together onto a “float page” that has no text. But even here, the defaults are stingy about the amount of space taken up.

The result is often that some individual float is too big to go anywhere, and so migrates to the end of the document. Unfortunately, the rule that says all figures must appear in sequential order (and a similar rule for tables) means that the single offender sweeps away everything that should follow it.

[...]

To override the values that cause the offensive behavior, you use the \setcounter{} command to reset integer values, and \renewcommand{} to reset floating-point values. Like this:

% Alter some LaTeX defaults for better treatment of figures:
% See p.105 of "TeX Unbound" for suggested values.
% See pp. 199-200 of Lamport's "LaTeX" book for details.
% General parameters, for ALL pages:
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
\renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
% Parameters for TEXT pages (not float pages):
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4} % 2 may work better
\setcounter{dbltopnumber}{2} % for 2-column pages
\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs
% Parameters for FLOAT pages (not text pages):
\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
% N.B.: floatpagefraction MUST be less than topfraction !!
\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages

% remember to use [htp] or [htpb] for placement

These values can be reset in the preamble of your LaTeX source file; any place before the \begin{document} will do.

[...]

If you find that liberal values of the float parameters still are causing trouble, you can try forcing a float page with \clearpage to disgorge the accumulated blockage. If you don't want to force a pagebreak, use the afterpage package and tell LaTex \afterpage{clearpage}, which should force a float page when the current page comes to an end. If floats continue to pile up at the end, you probably have one too big to fit on a page; try reducing its size.


(http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html)

Kommentare

Beliebte Posts aus diesem Blog

Sterbezahlen Deutschland - Was läuft schief, bei CORRECTIV? (Samuel Eckert)

Samuel Eckert manipuliert wissend Statistiken um Aufmerksamkeit zu erzeugen, und niemand interessiert's.   https://youtu.be/rJzeZ-TRMRI Mein Kommentar zu dem Video: Hmm, ein paar Fragen:  Auf S.4 des Slides/ Minute 6 des Videos sieht man Ende 2020 einen deutlichen Anstieg der Sterberate auf 25tsd gegenüber durchschnittlich 18tsd /KW, das sind 30% mehr Tote. Aber gegen Ende des Videos behauptest Du, in keiner Altersgruppe gäbe in diesem Jahr eine Zunahme der Sterberate, woher kommt dann die Zunahme. Ist unsere Bevölkerung plötzlich um 30% gewachsen? Haben wir innerhalb weniger Wochen 30% mehr Alte?  Für Sterbefälle liegen alle Daten bis 2020 vor, aber für die Bevölkerungszahlen liegen bei den von dir genannten Quellen (Statistisches Bundesamt) für 2020 noch keine Zahlen vor. Wo kommen also Deine Zahlen auf Slide 6 / Minute 10 her, hast Du Dir die ausgedacht? Da du behauptest, die deutliche Steigerung bei den Toten kommt durch das Bevölkerungswachstum, ist es komisch, dass ...

migrating from kmail to thunderbird

While I gave up local mails and subordinated entirely to google meanwhile, my partner still wants to be independant and prefers local mails. Since KMail seemst to be wrecked, I have to migrate her mails to the old mbox format of thunderbird. This one-command-recipe worked for me. I replaced Archive/ by e.g. .kde/share/apps/kmail/mail/inbox and sarchive by sMBOXinbox . To import  MBOXinbox they simply have to be copied to   ~/.thunderbird/.....default/Mail/Local\ Folders . Converting Maildir to mbox via mutt Ran into an issue today where I needed to convert a Maildir containing over 50k messages to mbox format and couldn’t really find any good tools. So I found  this blog post  about using mutt to do it. Unfortunately, it converted one Maildir to another. =( One crucial piece is missing, so here is the one-liner in all its glory: $ mutt -f Archive/ -e 'set mbox_type=mbox; set confirmcreate=no; \ set delete=no; push "T.* ;sarchive "' The above convert...

Durch die letzte Generation erhöht sich die durchschnittlich jährliche Stauzeit deutlich weniger als von 40h auf 40,06h

  Bis zum 20. Februar 2022 registrierte die Berliner Polizei 44 Blockaden , bei denen 180 Menschen vorläufig festgenommen wurden. https://de.m.wikipedia.org/wiki/Letzte_Generation#:~:text=Bis%20zum%2020.%20Februar%202022,180%20Menschen%20vorl%C3%A4ufig%20festgenommen%20wurden. Laut diesen taz Bericht zu den extremsten Demos war der letzte Aktivist nach drei Stunden beseitigt https://taz.de/Letzte-Generation-in-Berlin/!5927344/ Verkehrs-Durchfloss Ernst Reuter Platz laut https://www.berlin.de/sen/uvk/mobilitaet-und-verkehr/verkehrsmanagement/verkehrserhebungen/#strassenverkehrszaehlung Verkehr auf den Zufahrtsstraßen in Tausend pro 24h beide Richtungen 43,4+24,1+13,5+42,7+29 =151,7 k/24h  (dadurch jedes Auto doppelt gezählt, kompensiert höheres Aufkommen morgens) in 3h: 151,7k/24h * 3h = 151,7k *3/24 = 19'000 3h warten: 57'000h  Das ist sehr grob überschätzt: diese 19000 Autos kommen ja nur peu a peu dazu und stehen nicht alle komplette 3h, außerdem weichen viele Autos aus...