summaryrefslogtreecommitdiff
path: root/README.md
blob: d45c4914278373474ffe3a2f2defa03dd0047d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# LaTeX Templates

Templates I've designed for LaTeX documents

[TOC]


## Article

![Cover page of the article document](article/article-1.png)
![Table of contents of the article document](article/article-2.png)
![Content page for the article document](article/article-3.png)

The article uses the three following files:

* **article.tex**- This is the main document file where document content goes.
  I've different lines of this to explain what they do and what editing them changes.
* **commands.tex**- This file has my custom commands to style the headings, title, and lists.
  This file has a commented out section (lines that start with `%`) that can number each section in the body of the document if you'd like them numbered.
  Also change the line `\setcounter{secnumberdepth}{0}` to the section numbering depth you'd like in your document  table of contents (TOC). `0` means show no numbers at any level, where `3` would number the sections, subsections, and subsubsections in the TOC.
* **packages.tex**- This file contains all the packages I use in this template.
  More packages may need to be added to extend the functionality of this template if you'd like it to do more.
  I did already include the table and graphics packages you need to include tables and images in the document.


## Resume

![Resume screenshot](resume/resume.png)

The resume is made up of the three following files:

* **resume.tex**- Edit this file with information you want to appear on your resume.
  The file is filled with template information you can use as examples.
* **commands.tex**- This file has my custom commands to style the headings, title, and lists.
  This file shouldn't need to be edited unless you want to change the document style.
* **packages.tex**- This file contains all the packages I use in this template.

The main resume file needs the commands.tex and packages.tex file in order to work, so you should copy the entire folder when you want to make another copy of this resume (this is a good idea with any LaTeX document).


## pdf2png.sh

This shell script is what I used to generate the document screenshots for this README.
I included it for anyone who might be interested in doing the same.

These are the dependencies for this script: 

* pdftoppm
* imagemagick
* optipng

Follow these steps to use the script:

1. Make the script executable with `chmod +x pdf2png.sh`
2. `cd` into the input PDF's directory
3. Use the command syntax `pdf2png.sh input.pdf first_page_to_convert last_page_to_convert`

If you didn't add pdf2png.sh to your $PATH, make sure to include the path to the script in your command like `path/to/pdf2png.sh file.pdf 1 3`

**Examples**

Turn pages 1-3 from example.pdf into 3 separate PNG images

`pdf2png.sh example.pdf 1 3`


Convert the first page of example.pdf into a PNG image

`pdf2png.sh example.pdf 1 1`

or

`pdf2png.sh example.pdf`


Convert the third page of example.pdf into a PNG image

`pdf2png.sh example.pdf 3 3`

or

`pdf2png.sh example.pdf 3`


I've only tested this script on Linux; I can't speak to how well it will work on Mac.
This script should work on Windows through Windows Subsystem for Linux (WSL), but I haven't tested that either.