An open API service indexing awesome lists of open source software.

https://github.com/nelson-gon/officetools

Handy bash scripts for use at the office.
https://github.com/nelson-gon/officetools

bash beamer command-line linux linux-shell office pdf pptx slides terminal unix-shell

Last synced: about 1 month ago
JSON representation

Handy bash scripts for use at the office.

Awesome Lists containing this project

README

          

# officetools
Handy bash scripts for use at the office.

This repository holds a number of bash scripts that I have written to help reduce the amount of time that would be spent if I did what the scripts do manually.

**List of scripts**

1. **make_pdf.sh**

This provides an automated way to convert a variable number of powerpoint(pptx) slides to pdf. It is useful because you can simply provide a file name and have it converted to pdf. It is more opinionated because I personally prefer having files as pdf instead of pptx.

To use the script, clone the repository as follows:

* **Adding the script to your path(or not)**

```

#install git if not installed
git clone https://github.com/Nelson-Gon/officetools.git
# change directory to the directory where you cloned the repo
# We will assume it's in the home directory
# don't run this if otherwise
cd ~/officetools
# chmod of the script to make it executable, choose desired permissions
# make everything executable
sudo chmod +rwx *.sh
# copy contents to /bin
# copies all scripts to the binaries directory
sudo cp -rf *.sh /bin

```

* **Example usage**

Say I have a file named test.pptx and need to convert it to pdf, then I will simply call:

```
# it is assumed that everything was copied to the binaries directory

make_pdf.sh test.pptx
# use a wildcard

make_pdf.sh *.pptx
```

That's it.

2. **make_slides.sh**

This provides a handy way to make [Beamer](https://github.com/josephwright/beamer) slides.

**Usage**

Assuming you have up to this point followed the README as is, you can simply provide(in order) the beamer theme to use and the file(currently only markdown) that needs to be turned into a beamer slide. You can optionally supply a third argument for the desired filename.

To show usage practically, try running:

```
# uses defaults
# uses test.md in officetools
# provide a theme ie Copenhagen and an input file name ie test.md
make_slides.sh Copenhagen test.md && evince test.pdf

```

That's it.