That is what I'm looking for but I was hoping to be able to do it without having to use a separate text frame for the number. Some of the reports go up to number s like 7.32 so it would mean a lot of extra text frames and annoyingly not all paras have a number. I don't always get a lot of time to layout so extra text frames is going to be a bit of a pain. I'll give it a go though and see how quickly it can be done.
This is not a valid argument because the regex will "automate" the process. So the Salah's solution is quite correct.
If you want to directly apply an auto-num para style, you can use a little bit different way but the tip will be the same.
I currently use auto para numbers for section heads and paragraphs but am hoping that I can get them to appear more like a drop cap over a few lines rather than the current indent (just want to try something different for the paragraphs). I can see what Salah's solution is doing and will play with it a bit more but on first impressions it's not what I was hoping to be able to do. Unfortunately for me speed is of the essence and adding another process is going to cause me issues. Reports typically go in excess of 30 pages plus appendices, and as fate would have it I get about 30mins to layout prior to submission.
I will persist with Salah's solution and see if I can make it work.
Thanks for the advice
No need! I going to post you how to play with your actual layout. Give me 5 min.
Actually, "Num" para style uses a standard auto-numbering:
Use a "DropCaps" char style to fix the drop cap settings:
I've created a "Num" object style (see below) that I've applied to a box I've put in a library.
So, Now, I import it at the beginning of a para (with Num para style).
I cut the anchor marker and then I launch the following regex and replace all.
As Salah did, the process is very simple and in fact done in one step with a simple regex.
About the block I use with the "Num" object style, It's a empty block with no attribute and nothing in it. Only useful to simulate the drop cap.
Don't forget to prevent manual movement (forgotten setting) to lock the block.
That's closer to what I'm after so will tinker with it and get it up and running.
Thanks you again.
Obi-wan, how is this easier than
1. convert Numbers to Text
2. apply standard Drop Caps?
BTW: while it seems Step #1 is necessary, you can do without. You have to fake the Drop Cap -- set the Numbering List character style to 270% horizontal and vertical scale and lower the baseline by 12 pt (exact values depend on your font, text size, and number of lines to span), and then force an indent of x lines by inserting a wrapping Anchored Object at the start of each paragraph. (Which, famously, will not work for the first line, but since the number itself is on that line the text will "indent" anyway!)
The disadvantage of this method is you have to do some calculating yourself and insert the anchored objects. The advantage ... Auto Numbering still works!
That is exactly what I've written! Aha! I know my english is awful!
Obi-wan, my apologies. In the default view, your images are dreadfully downsampled (either that, or my eyes are starting to go), and when I glanced over them I got the idea you created separate boxes to put each of the numbers in (which was my initial idea of solving this). You are entirely correct, and I repeated exactly what you describe above.
(But yours is better, because storing as much as possible settings into an object style is always a good idea.)
((Here, have a +1 Like from me. Although I don't know what it's good for ))
That must be a secret improvement -- it does not work with CS4 ...
It works with CS4. It's not a secret improvement. It's only a funny tip I've just thought: the drop cap is applied to the first character of the paragraph and this first character is the space we insert with the regex!
Perfect thank you.
Hi Obi-wan, that's excellent solution.
Thank you all 2!
It really was not so obvious. I persisted in thinking that our first two solutions (one of Salah and mine) were relevant but …