Scripts for extracting figures / captions from FASER papers and creating webpages from them

FASER LOI example:

The `` script in the attachments extracts the figures and captions from FASER papers. To use this, download the script and run the following at the command prompt:

./ -i path/to/input.tex

with `path/to/input.tex` replaced with the actual name of the input file.

Running this creates an output directory called `script_results` (or specify the output directory name using the -o/--output option) containing the figures (e.g. fig_01.pdf) + captions (e.g. fig_01.txt). One caveat is that any references in the captions need to be updated by hand (though the FASER-specific reference commands are still processed, e.g. `\figref{FigureReferenceName}` > `Fig. (???)`).

To squelch the warnings about the image format (.pdf or .eps are recommended), run with the `-I`/`--ignoreImageRecommendations` option. For a list of all available options, run with the `-h`/`--help` option.

Once the figures and tables are extracted into a directory using ``, they are ready to be read into a webpage using `make_webpage.rb`. Run the latter by entering the following at the command prompt:

./make_webpage.rb -i path/to/script_results

with `path/to/script_results` replaced with the actual name of the directory created by ``. This creates an output HTML file called `index.html` (or specify the output file name using the -o/--output option) that can then be opened from an internet browser. One caveat is that the following elements need to be added to the script results directory by hand:

where `Title.txt` contains the title of the paper, `Date.txt` the publication date, etc. A future version of `` will add these automatically to the output directory it creates so that these will no longer need to be added manually.

Contact Aaron if you encounter any issues.

-- JamieBoyd - 2020-01-09

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2020-01-27 - JamieBoyd
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    FASER All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback