Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Johannes Knödtel
workoutcard
Commits
18b76d99
Commit
18b76d99
authored
Aug 05, 2014
by
derrotebaron
Browse files
Fix indentation in README.md
parent
acb1b735
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
18b76d99
...
...
@@ -11,58 +11,58 @@ Example
1.
Specify your Workout
```
$ cat upper.workout
```
```
ruby
{
:year
=>
2014
,
:title
=>
"Upper Body Workout"
,
:exercises
=>
[[{
:name
=>
"Bench Press"
,
:variant
=>
"Dumbbells"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Seated Rows"
,
:variant
=>
"Lever"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Fly"
,
:variant
=>
"Pec Deck"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Cable Pulldown"
,
:variant
=>
"Close Grip"
,
:sets
=>
3
,
:reps
=>
8
}],
[{
:name
=>
"Military Press"
,
:variant
=>
"Barbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Upright Row"
,
:variant
=>
"Barbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Preacher Curl"
,
:variant
=>
"EZ-Bar"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Triceps Extension"
,
:variant
=>
"Dumbbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Shrug"
,
:variant
=>
"Dumbbell"
,
```
$ cat upper.workout
```
```
ruby
{
:year
=>
2014
,
:title
=>
"Upper Body Workout"
,
:exercises
=>
[[{
:name
=>
"Bench Press"
,
:variant
=>
"Dumbbells"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Seated Rows"
,
:variant
=>
"Lever"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Fly"
,
:variant
=>
"Pec Deck"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Cable Pulldown"
,
:variant
=>
"Close Grip"
,
:sets
=>
3
,
:reps
=>
8
}],
[{
:name
=>
"Military Press"
,
:variant
=>
"Barbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Upright Row"
,
:variant
=>
"Barbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Preacher Curl"
,
:variant
=>
"EZ-Bar"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Triceps Extension"
,
:variant
=>
"Dumbbell"
,
:sets
=>
3
,
:reps
=>
8
},
{
:name
=>
"Shrug"
,
:variant
=>
"Dumbbell"
,
:sets
=>
3
,
:reps
=>
8
}]]
}
```
```
2.
Build the LaTeX-Source
```
$ ./workoutcard.rb lower.workout > lower.tex
```
```
$ ./workoutcard.rb lower.workout > lower.tex
```
3.
Compile it
```
$ pdflatex lower.tex
```
```
$ pdflatex lower.tex
```
4.
Print it
```
lpr lower.pdf
```
```
lpr lower.pdf
```
Dependencies
------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment