Skip to main content

[en] Set the Last Line Alignment for Tables (PDF)

[en] With Paligo's Align text on the last line feature, you can make a centered paragraph break on to the next line for better alignment. It especially useful for centered text, as it helps to prevent a single word, or part of a single word, being on the last line.

Anmerkung

[en] The Align text on the last line feature:

  • [en] Only affects tables that have "center" or "justified" alignment set on the table columns or certain elements of the table structure. Those elements are: tbody, thead, tfoot, tr, td, th.

  • [en] Is designed for center-aligned text. We recommend that you disable the feature for justified text and other alignments.

[en] To learn how to set table alignment, see: [en] Change Column Alignment and Einzelne Zellenausrichtung einstellen.

[en] To change the Align text on the last line setting:

  1. Wählen Sie im oberen Menü Layout aus.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo zeigt eine Liste von Layouts an. Die Liste ist leer, wenn keine benutzerdefinierten Layouts in Ihrer Paligo-Instanz vorhanden sind.

  2. Wählen Sie das PDF-Layout, das Sie für die Veröffentlichung verwenden möchten. Alternativ können Sie auch ein neues erstellen (siehe Ein Layout erstellen).

  3. Wählen Sie auf der Seitenleiste Tabellen aus. New_Layout.jpg

    Select_Tables_Layout_small.jpg
  4. Wählen Sie auf der Seitenleiste das Tabellenformat aus, das Sie ändern möchten.

    Es gibt 5 Tabellenformate, die Sie verwenden können. Standardmäßig verwenden Tabellen die Einstellungen aus Tabstyle1. Sie können sie jedoch auch auf die Verwendung einer der vier anderen Einstellungen festlegen, siehe Anwenden eines Tabellenformats.

  5. [en] Set Align text on the last line to:

    • [en] Enable to turn the feature on.

      [en] Paligo will balance centered text that is longer than one line by allowing the text to flow equally over two lines. This prevents a single word or partial word being displayed on its own on the last line.

    • [en] Disable to turn the feature off.

      [en] Paligo will try to fit the centered content on a single line in a table cell. It will run on to the next line if there is not enough space.

    • Standard – um den Wert für diese Einstellung aus dem Basislayout zu übernehmen. Das Basislayout kann ein von Paligo bereitgestelltes integriertes Layout oder ein anderes kundenspezifisches Layout ein. Weitere Informationen finden Sie unter Layoutbeziehungen – Basis, Neu, Duplizieren.

  6. Drücken Sie Speichern.

Beispiel 1. [en] Effect of "Align text on the last line"

[en] Let's say you have a table and you give a row (tr) the align attribute with a value of center.

[en] In your PDF Layout, you have Align text on the last line disabled. When you publish, you get a cell like this:

A table cell with one long sentence inside it. The last word in the sentence is "obstructions". It breaks at "ob" so that "structions" appears on its own on the last line.

[en] Here, the table cell has center alignment and it contains a single paragraph. Paligo centers the text, but the final word runs over on to the last line. There is a line-break inside the word and the remaining part of the word is on its own. It looks unusual as there is a partial-word centered.

[en] You enable the Align text on the last line setting and publish again. This time, you get:

A table cell with centered content. It contains one long sentence. The sentence is positioned so that it is spread more evenly over the three lines. The last line has three words on it.

[en] Notice how Paligo still positions the text centrally but breaks the lines at different points, so that the last line has more words. This gives the cell a better balance.