Skip to content

Nelson-Gon/officetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  1. make_slides.sh

This provides a handy way to make 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.