04-wrapfig2-beccari

The wrapfig2 package

(Claudio Beccari)


Sommario

Il pacchetto wrapfig è molto utile, ma è delicato. Presenta diverse limitazioni dovute alla difficoltà di calcolare correttamente di quante righe deve essere il rientro che consenta l’inserimento del materiale da contornare con il testo. Questo breve articolo descrive un nuovo pacchetto, wrapfig2, retrocompatibile con il pacchetto originale wrapfig, che consente all’utente di avere un controllo migliore sul numero di righe del rientro del testo circostante. Contemporaneamente definisce un nuovo ambiente, wraptext per inserire un blocco di testo incorniciato e su uno sfondo sfumato, in un testo che lo circonda.

Abstract

Package wrapfig is extremely useful, but is delicate. It has many limitations because it has to compute the space in terms of number of lines necessary to indent the surrounding text so that it can wrap the insertion. Its documentation explains the limitations the user should be attentive to. This short paper describes a new package, wrapfig2, that is backwards compatible with the original wrapfig, but aims to let the users have a better control on the number of lines. At the same time it defines a new environment, wraptext, that exploits the same ideas in order to insert a framed text block on a shaded background wrapped by the surrounding text.

Leggi l’articolo ad accesso libero

Go to top