Scribusoid

Recent Posts

Pages: 1 [2] 3 4 5 6 7 8 9 10
11
Scripts and Plugins / Re: a python script for the table of contents
« Last post by a.l.e on January 27, 2023, 11:50:26 pm »
it worked here also with your document.

both with 1.6 and 1.5.8...

mmm....
12
Beginner Talk / Re: The image covers the page number
« Last post by Nermander on January 27, 2023, 09:39:28 pm »
What version of Scribus are you using? I have a slight memory that in earlier versions the Master pages were always behind the main contents, but that this was fixed in a later version.

I just did a quick search and found this post:
https://forums.scribus.net/index.php/topic,3938.0.html
13
Scripts and Plugins / Re: a python script for the table of contents
« Last post by utnik on January 27, 2023, 05:54:53 pm »
oh - sorry!

here is the attachment…
14
Beginner Talk / Re: The image covers the page number
« Last post by PatJr on January 27, 2023, 05:13:32 pm »
have you tried putting the page number on the master page on a layer that is above the other layers?
15
Beginner Talk / The image covers the page number
« Last post by kaspar@rammo.net on January 27, 2023, 03:50:39 pm »
Hi,
problem - the image covers the page number.
The page number is located in the Master Page. If I add an image to the page that covers the entire page, the page number is not visible (see the attached image). Is there any way to make the page number visible?
Can anyone help?
16
Scripts and Plugins / Re: a python script for the table of contents
« Last post by a.l.e on January 27, 2023, 02:51:31 pm »
hi utnik

i've patched the script to avoid the empty line at the end.
thanks for pointing to this "small" glitch : - )

on the other side, in my document, i seem to get the toc# styles to be correctly applied in the toc.
i'm using a somehow actual version of 1.6svn but it should not make a difference...

so, now, i wonder what is in the file you planned to attach : - )

ciao
a.l.e
17
Scripts and Plugins / Re: a python script for the table of contents
« Last post by utnik on January 27, 2023, 01:49:03 pm »
hi ale

i tested the latest version of your script vith scribus 1.5.8 on macos 11.7.2. (see attached file)
there are two strange things:
  • the whole toc is formatted as 'toc1' (instead of 'toc1', 'toc2' and 'toc3' according to 'h1', 'h2' and 'h3')
  • there is an empty line in the toc.
it's no big deal to maintain manually but there might be an easy fix…

thanks for your work
utnik
18
Layout Issues / Re: Resize multiple text frames simultaneously
« Last post by Hakanost on January 26, 2023, 12:42:54 am »
I found this thread while looking for a solution to resize multiple objects to the same fixed values.
The scripts I could find all scaled the objects existing size by a percentage, not to a fixed value as I wanted.
I solved this by modifying an existing script by Alessandro Rimoldi.
https://wiki.scribus.net/canvas/Script_Resize_selected_objects

Code: [Select]
import sys
try:
   import scribus
except ImportError:
   print "This script only works from within Scribus"
   sys.exit(1)

n = scribus.selectionCount()

if n == 0 :
    scribus.messageBox('Error:', 'No frame selected');
    sys.exit(1)

w = int(scribus.valueDialog('Width', 'New width (in current unit)', '10'))
h = int(scribus.valueDialog('Height', 'New height (in current unit)', '10'))

for i in range(0, n):
    frame = scribus.getSelectedObject(i)
    scribus.sizeObject(w, h, frame)
19
Scripts and Plugins / Re: a python script for the table of contents
« Last post by a.l.e on January 25, 2023, 11:18:14 pm »
some more work...

- scribus is returning the frames in their order of creation... now, i'm sorting them by position before looking for the heading styles.
- if the heading and paragraph styles do not exist, they are automatically created
- if you want to use specific styles or create multiple table of contents with different styles, now you can define the styles to be used for a specific TOC, by setting the attributes of the frame (see the README file for some short instructions)

also, craig has added an API function for getting the "real" page number (formatted according to the settings in the section). if it works correctly and it has also been added to 1.6, then i will use it also for the TOC script (and remove the code faking the sections as soon as most people can have a scribus version with that function)

the current version of the script is (still) here:

https://github.com/aoloe/scribus-script-repository/tree/master/table-of-contents
20
Beginner Talk / Re: Configuring Render Frames
« Last post by PatJr on January 25, 2023, 08:22:59 pm »
I get the same error message with 1.5.8 from a flatpak install
the render frame does not work

in 1.5.7 from the fedora 36 repo the render frame will work
now, how to get uniconvertor working in fedora ??? can't find a libmagickwand-dev
Pages: 1 [2] 3 4 5 6 7 8 9 10