[Ipe-discuss] Request for feature: iperender by page title

Sherif Ghali shghali at gmail.com
Tue Sep 13 00:11:08 CEST 2022


When a document contains n figures, (1+n) source files are needed. One
file for the text, and one ipe file for each figure.

This can be greatly simplified by using just one file for the text and
one file for the drawings, and running a script such as:

    #!/bin/bash

    IPERENDER="/Applications/Ipe.app/Contents/MacOS/iperender"
    IPESOURCE="drawings.ipe"
    OPTSPREFIX="-pdf"
    FILEEXT=".pdf"

    for num in $(seq 1 7)
    do
        set -x
        zero_leading_num=$(printf "%02d" $num)
        ${IPERENDER} ${OPTSPREFIX} -page ${num} ${IPESOURCE}
"pdf/d"${zero_leading_num}${FILEEXT}
        set +x
    done

The files "d01.pdf", "d02.pdf", ... can then be used in the text file.
(If you want, you can count the number of <page> nodes in the XML file
and use that in the script.)

All is good, except that as you edit the source and figures documents,
the numbers go out of sync.

Feature request: could you add a feature to enable saving by a unique
page tag? It would work like this. Each page already has a title
("Pages" \ "Edit title & sections"). Iperender would have an
additional option ("-savebytitle", say) that would take the directory
name, rather than the filename, where the output would go.
Alternatively, and to continue reading existing documents that have
multiple pages with the same title (without issuing a warning), add a
"page tag" box to the UI.

Thank you,
Sherif Ghali


More information about the Ipe-discuss mailing list