Scribus Forums

Scribus => General Discussion => Topic started by: renato07 on December 26, 2023, 07:56:30 PM

Title: day variable
Post by: renato07 on December 26, 2023, 07:56:30 PM
Hi,
I write here, but I'm not sure it is the right place.
I've discovered in the "insert - character" menu, the voice "page number" that is what I'm looking for. I've inserted it and it works as I thought.

Now I'm still searching a variable to insert the DATE of today.
Do it exist? I've looked around on a search engine but I don't ding it, just some workaround.
Is this the right way?

Thank you

Renato
Title: Re: day variable
Post by: AdmFubar on December 26, 2023, 08:32:02 PM
From what I can tell there isn't one, yet. Perhaps in the upcoming 1.6 release..
Title: Re: day variable
Post by: a.l.e on December 26, 2023, 08:35:49 PM
you ask questions...

on the one side: scribus does not have a way to add a date field that gets automatically updated.

there are reasons for it.

but there are a few ways to add a date in a scribus document:

- add it to a header / footer in the master page,
- use a pattern / symbol,
- use a variable text.
- (there might be more ways...)

which one is the best one for you, depends on what exactly you plan to do with the date (and how you define today)

i'm taking notes in:

https://github.com/aoloe/scribus-manual-variable-content/blob/main/en/README.md
Title: Re: day variable
Post by: joseb on March 15, 2024, 11:47:38 AM
I have tried inserting a variable text mark in several places and it works correctly, even when you use different text styles in each place (changing font or alignment to left-centred-right).

But I can't manage to apply "align text forced justified" to the variable text markup.

Is it possible to apply "align text forced justified" to a variable text markup?

(https://filedn.eu/lgnU3FkGNeWSF8iGHKRwspy/CONFIG-SCRIBUS_Forums/240315_SCRIBUS_Variable-text-with-align-text-forced-justified.jpg)
Title: Re: day variable
Post by: etchedpress on May 09, 2024, 09:57:27 AM
I want to create running footer with content based on text in specific paragraph styles.

I was going to start a new topic, but since this is related, I'll try it here. I want to know if the date variable was worked out, and if so, know if this is possible yet with the "Marks > Variable Text" feature.

I'm trying to use Marks for variable text in order to have a running footer which contains a specific name based on whatever text was last assigned a specific paragraph style. It's something that's in InDesign, but I've finally freed myself of Adobe with all FOSS (Inkscape, GIMP, Kdenlive, Audacity, & Scribus). This is the one sticking point.

Use Case > Anthology Example:

These are two of the paragraph styles in the document: "Content Author", "Content Title"

On each master page is:

Running Footer
%AUTHOR_NAME% | %page_number%

Running Header
%POEM_TITLE% | [Anthology Title]

%AUTHOR_NAME% represents whatever last text was in the paragraph style "Content Author", %POEM_TITLE% represents whatever text is next formatted in the "Content Title" paragraph style.

Most everything else is in either the paragraph style "Poem Text" or "Prose Text."

Is this possible? Or am I out of luck?
Title: Re: day variable
Post by: etchedpress on May 09, 2024, 10:16:34 AM
oh wait, I'm realizing that the variable text as a mark feature is only meant for manually added text content. So I guess that I would need to write a script. I'll take a look at the documentation for the API and see what I can put together. I'll share what I come up with. If anyone has any ideas, post them here.