• No results found

\raggedend This macro switches off column balancing on the last page

N/A
N/A
Protected

Academic year: 2021

Share "\raggedend This macro switches off column balancing on the last page"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The flushend package

Sigitas Toluˇsis sigitas@vtex.lt v4.0 from 2021/10/04

1 Introduction

The package is used to balance columns on any page in twocolumn mode. By default it is switched on at the end of document. It is expected to work with leftcolumn footnotes (option checkfootnote) and rightcolumn top floats (option checkfloat).

To compare with the previous version the package is completely rewritten with new balancing algorithm and new options, removed dependency on other packages.

2 Usage

Just load the package to balance the last page: that’s all. To balance some page in middle of document use command \flushcolsend at that page.

Available commands:

\flushend This macro switches on column balancing on the last page. It is used by default.

\raggedend This macro switches off column balancing on the last page.

\flushcolsend This macro switches on column balancing on the current page.

\raggedcolsend This macro switches off column balancing on the current page.

\atColsBreakhtokensi Adds htokensi in place of the original column break (made without balancing).

Example: \atColsBreak{\vskip-2pt}

\atColsEndhtokensi Adds htokensi at the end of right column.

\showcolsendrule It can be used just for debugging: adds rule to the bottom of columns.

2.1 Package options

hspread i [default] It enables columns spreading trying to balance.

hnospread i It disables columns spreading trying to balance.

hshrink i [default] It enables columns shrinking trying to balance.

1

(2)

hnoshrink i It disables columns shrinking trying to balance.

Similiar options exist for single column separatly:

lspread, nolspread, lshrink, nolshrink – for left column rspread, norspread, rshrink, norshrink – for right column

hcheckfootnote i [default] Adds guess and checking for possible footnote on left column.

hnocheckfootnote i Skips guess for possible footnote and ignores any existing one.

hcheckfloat i Adds guess for top float on right column. Any box with height bigger then 5\topskip is considered as float. There are no user interface to change this limit except internal macro definition: \gdef\top@@floatbox@min@default{5\topskip}

As guess is too brutal, not accurate, and somehow dangerous in case for text misplacement it is switched off by default.

hnocheckfloat i [default] Skips guess for top float on right column.

hdebug i Adds rules to the bottom of columns (just for debugging) and leftcolumn break place.

Adds some additional log info.

hnodebug i [default] Skips putting debuging lines and additional info.

3 Implementation

Improved balancing (at least it is expected so) is based on using possible spread and shrink in both columns checking constructed columns badness. Hard coded limit for badness is 101. Avail- able only as internal macro: \def\flushend@@column@badness{101}. \pagediscards material dimensions are used to restore original vertical skip at original columns break.

Expected usecase (with options [checkfootnote,checkfloat]):

--- ---

|xxxxxxxxxx ++++++++++| |xxxxxxxxxx ++++++++++|

|xxxxxxxxxx + +| |xxxxxxxxxx + +|

|xxxxxxxxxx + +| |xxxxxxxxxx + +|

|xxxxxxxxxx ++++++++++| |xxxxxxxxxx ++++++++++|

|xxxxxxxxxx figure | |xxxxxxxxxx figure |

| | | |

|section xxxxxxxxxx| |section yyyyyyyyyy|

| xxxxxxxxxx| ---> | yyyyyyyyyy|

|xxxxxxxxxx xxxxxxxxxx| |xxxxxxxxxx xxxxxxxxxx|

|xxxxxxxxxx xxxxxxxxxx| |xxxxxxxxxx xxxxxxxxxx|

|yyyyyyyyyy xxxxxxxxxx| | xxxxxxxxxx|

|yyyyyyyyyy | |--- xxxxxxxxxx|

| | |footnote xxxxxxxxxx|

|--- | | |

|footnote | | |

--- ---

2

Referenties

GERELATEERDE DOCUMENTEN

- De lezers en schrijvers realiseren zich onvol­ doende dat winst het soms kleine verschil is tus­ sen opbrengsten en kosten.. Een kleine wijziging in de verhouding

With v0.5, for the first time we try to get a “pagewise” numbering such that, if a main text line has a footnote, (i ) its printed number is just the natural succes- sor of the

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version

The command \bibliography has the usual effect of producing a final section (or chapter) for ‘References.’ According to the BibTEX style used, the format of the entries is different

The \balance command should be given for each page that needs balancing, and then turned off at the end of the second column. It might well be that \balance can be left on all the

parte essem aliquando liberatus, rettuli me, Brute, te hortante maxime ad ea studia, quae retenta animo, remissa temporibus, longo intervallo intermissa revocavi, et cum omnium

De literatuurstudie R-2005-3 'Jonge beginnende automobilisten, hun hoge ongevalsrisico en maatregelen om dit terug te dringen; een literatuur- studie', kan worden geraadpleegd

- Voor waardevolle archeologische vindplaatsen die bedreigd worden door de geplande ruimtelijke ontwikkeling en die niet in situ bewaard kunnen blijven:.. Wat is