Discussion:
[scribus] Render Frame Variables
Br. Samuel Springuel
2018-04-13 00:53:01 UTC
Permalink
Is there a complete list of the available $scribus_xxx$ variables for a
render frame somewhere? I found this:

https://wiki.scribus.net/canvas/Working_with_latex_frames#Specials

But the page is so out of date (30 July 2013) that I'm not sure if the
information is correct.

In particular I'm wondering if there is a variable that will expand to
the name of the temporary file created by the render frame.
--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http:
Václav Šmilauer
2018-04-13 16:02:04 UTC
Permalink
Post by Br. Samuel Springuel
Is there a complete list of the available $scribus_xxx$ variables for a
<a href="https://wiki.scribus.net/canvas/Working_with_latex_frames#Specials">https://wiki.scribus.net/canvas/Working_with_latex_frames#Specials</a>
But the page is so out of date (30 July 2013) that I'm not sure if the
information is correct.
For sure this is the best place to look: https://github.com/scribusproj
ect/scribus/blob/master/scribus/pageitem_latexframe.cpp#L352
Post by Br. Samuel Springuel
In particular I'm wondering if there is a variable that will expand to
the name of the temporary file created by the render frame.
Yes, it is $scribus_file$ :)

Cheers! v.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180413/5f1ae02e/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Br. Samuel Springuel
2018-04-13 21:20:13 UTC
Permalink
Perfect. Thanks.

However, it doesn't seem to be working the way I would expect. I'm
updating a render frame tool (attached) to simplify it's process. Part
of the process is to write an auxiliary file and I'm trying to make each
instance of the render frame using this tool write its own file set by
using $scribus_file$ as part of the name of the auxilary file. However,
when I attempt this I get a permission error indicating that the
auxiliary file cannot be written. When I don't use the variable, the
file is written just fine, but of course it's the same file for all
instances of the tool use (not so important because the file is
overwritten each time the frame is updated) and said file persists after
Scribus is closed (more important as this will lead to lots of left
overs building up if Scribus is being actively used and the machine is
not rebooted frequently). Does anyone have any ideas why
`$scribus_file$-score.gabc` is not writable while
`scribus_file-score.gabc` is?


macOS 10.13.4
Scribus 1.4.6, modified as described here:
https://bugs.scribus.net/view.php?id=15259#c45161
--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 900_gregorio.xml
Type: text/xml
Size: 4204 bytes
Desc: not available
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180413/046329c4/attachment.xml>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus
Václav Šmilauer
2018-04-16 04:26:32 UTC
Permalink
Post by Br. Samuel Springuel
Perfect. Thanks.
However, it doesn't seem to be working the way I would expect. I'm
updating a render frame tool (attached) to simplify it's process. Part
of the process is to write an auxiliary file and I'm trying to make each
instance of the render frame using this tool write its own file set by
using $scribus_file$ as part of the name of the auxilary file. However,
when I attempt this I get a permission error indicating that the
auxiliary file cannot be written. When I don't use the variable, the
file is written just fine, but of course it's the same file for all
instances of the tool use (not so important because the file is
overwritten each time the frame is updated) and said file persists after
Scribus is closed (more important as this will lead to lots of left
overs building up if Scribus is being actively used and the machine is
not rebooted frequently). Does anyone have any ideas why
`$scribus_file$-score.gabc` is not writable while
`scribus_file-score.gabc` is?
As far as I can tell, $scribus_file$ contains also the path, not just
the base file name. Can you attach TeX .log file? You might be lucky to
find it as something like /tmp/scribus_render_XXXXXX/something.log :) I
am just reading the source for you and cannot help you more at this
point. v.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180416/b40e180d/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net

Loading...