Jump to content

Recommended Posts

Posted

I'm merging a bunch of pages and want to have a title box with a border at the top of each page that says "Title # 1", "Title # 2" etc for over a thousand pages.

I want the text box to resize with the text as the numbers in the title get bigger, so I used the trick where you double click the center handles of the text box frame.

However, this method seems to make the box exactly the size of the text with no extra space between the border and the text.

Is there a way to add some padding between the text and the text frame while still having the "auto-size" function turned on?

Posted

Welcome to the Serif Affinity forums.

55 minutes ago, tcwiggins03 said:

Is there a way to add some padding between the text and the text frame while still having the "auto-size" function turned on?

There's no "auto-size" function, if you're thinking it is some kind of setting. When you double-click a Text Frame center handle it is an immediate resize action, not a setting that continues to be applied after that. You can get it to be applied to all of your pages at once if you use the trick on a Master Page that is applied to all of them, but that will result in text overflow on any pages where the text takes more room than the text on that Master Page.

Why not just make the Text Frame big enough on your Master Page (if you're using one) to hold the text with the biggest number?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.4

Posted
7 hours ago, tcwiggins03 said:

Is there a way to add some padding between the text and the text frame while still having the "auto-size" function turned on?

In APu you can set a padding via the Text Frame panel, in AP and AD not. Within AP and AD you have to do some extra work. Use the Paragraph panel to add Left and Right Indent and Space before Paragraph and from the pulldown Use space before select Only at Column Top or Always and add a soft or hard linebreak at the end of the text frame.

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Posted
15 hours ago, Joachim_L said:

In APu you can set a padding via the Text Frame panel, in AP and AD not. Within AP and AD you have to do some extra work. Use the Paragraph panel to add Left and Right Indent and Space before Paragraph and from the pulldown Use space before select Only at Column Top or Always and add a soft or hard linebreak at the end of the text frame.

In APu I couldn't find any way to set padding via the Text Frame panel. I did try using Left and Right Indents as well as Space Before Paragraph set to Always, but these did not seem to make the text box resize at all. For example if I added an inch of Space Before Paragraph it just pushed the text down outside of the box. It didn't make the box resize to always have an inch of padded space between the text and text frame border which is the kind of thing I'm looking to do.

14 hours ago, Lagarto said:

If your titles are part of a longer text flow, one possibility would also be using Paragraph Decoration with a paragraph text style:

 

title_decoration.jpg.400934dbee1cb16e8cd3301a023f5ded.jpg

Title Decoration.afpub

Thanks for this, I was unaware of text decorations. This works perfectly, I just wish there was an option for rounded corners. Regardless, this seems to be the best solution so far. Thanks!

Posted
8 hours ago, tcwiggins03 said:

In APu I couldn't find any way to set padding via the Text Frame panel. I did try using Left and Right Indents as well as Space Before Paragraph set to Always, but these did not seem to make the text box resize at all.

You use Inset values to add padding. It does not change the size of text box but pushes text inner (thus "inset").

Paragraph Decoration is workable solution also, it all depends if you have text as longer run (as is usually preferable in normal publications), or if it is cut to snippets (as in posters and such single page layouts).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.