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

Otfried Cheong ipe at otfried.org
Tue Sep 13 15:42:33 CEST 2022


What you are asking is already implemented (those are always the nicest requests :-) ):

1. In Ipe, you can mark a page with a label by going to Pages -> Edit title and sections and setting a section heading.

2. You can then use that label instead of a page number in ipetoipe, e.g.

$ ipetoipe -pdf -pages CrescentConstruction-CrescentConstruction Figures.ipe crescentconstruction.pdf

This will export the page labeled "CrescentConstruction" to new PDF file.


Alternatively, you can actually import your figures in Latex by saying something like

\includegraphics[page=5]{Figures}

To avoid having to change the page numbers, you can again use the page labels. 

This is explained here: https://ipe.otfried.org/manual/manual_48.html

Cheers,
Otfried


On Tue, Sep 13, 2022, at 00:11, Sherif Ghali via Ipe-discuss wrote:
> 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
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss


More information about the Ipe-discuss mailing list