Vex Notebook Helper is an AppScript that automatically increments page numbers and generates Table
of Contents for Vex Notebooks on Google Slides!
What it does
This script will:
Find page number elements and increment them
Extract data from each slide
Populate a Table of Contents table with this data
Prerequisites
Vex Notebook Helper is only designed to work on notebooks that:
Have the elements you want to track be in a consistent position
Have a table of contents page (must be a table)
Must be on Google Slides (duh)
If your notebook doesn't meet these standards, well sorry :c
How to Use
Choose to generate your script, or download the code and adjust the constants at the top of the
script! On a copy of your notebook, run the script by going to Extensions > Apps Script, pasting the code
in, and running the notebook function.
In order to find the coordinates for each element, create a slide with JUST that element, and use
this code in Apps Script to log the coordinates:
It will log the coordinates of EACH element on EVERY slide, so i'd reccomend moving your test
slides to the top and ending after your test slides have been checked. You can then put these coordinates in the script! The tolerance is the amount of wiggle room
allowed for each element. I'd reccomend around 20.
Before you run the script, make sure you to check these:
Copy and paste a lot of your Table of Contents pages, it will error if not enough are created
The script will only track pages that have the page number element!
Your tolerances are high enough (if your notebook is goyslop)