fplatex 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00759f874775732822b764a4e8e58a234769874a
4
- data.tar.gz: 5527525895755b9f141f4d542c7f7d843c541c26
3
+ metadata.gz: 899fbd10e8cbb11c14f04d837d285c8f36358b4a
4
+ data.tar.gz: f781e2d6e9cb08bb1922518c4dbf82dc9391005e
5
5
  SHA512:
6
- metadata.gz: ebfee34d140190875adfed11660a3622235c61a74627b1a84f35d25bbbd9ec34694745fc70e6a17c2bf24e98baeabea01a4e3b0ccc856b71fe51b39467c3988a
7
- data.tar.gz: eeb8a99747d5c6f5e48819c02ca44abd783a60ff7411dd00f85f44ebf0525721c0b6f560041cb44f65c58409c66131430e1a8f9e986538cf833ae04512f6863a
6
+ metadata.gz: a5d7fca5faa8495dc3cfb5a4b71273a8e5969efebb41efcfb7afc4a432c4da1bab098300d8a88f8d4a33f99865162cbe5e623de35a39779a9570e02117c624e5
7
+ data.tar.gz: ff46eafed5d791c19a199e61c41fb8b0122440491c26040089ae1bde4e71116b1259f34be0461fc676c57c376d561a4587d6bf9d77bc025999dfe3401e3cdb26
@@ -138,7 +138,7 @@ class LatexVariables
138
138
 
139
139
  def execute
140
140
  text = File.read(@filename)
141
- new_text = text.gsub(/HOMEWORKTITLE/, @title).gsub(/DUEDATE/, @due_date).gsub(/COURSE/, @course).gsub(/PROFESSOR/, @professor).gsub(/AUTHOR/,@author)
141
+ new_text = text.gsub(/HOMEWORKTITLE/, @title).gsub(/DUEDATE/, @due_date).gsub(/COURSE/, @course).gsub(/PROFESSOR/, @professor).gsub(/AUTHOR/,@author).gsub(/GRAPHICSPATH/, Dir.pwd)
142
142
  File.write(@filename, new_text)
143
143
  system "latex #{@filename}" if system "which latex"
144
144
  system "pdflatex #{@filename}" if system "which pdflatex"
@@ -10,7 +10,7 @@
10
10
  %
11
11
  % Note:
12
12
  % The \lipsum[#] commands throughout this template generate dummy text
13
- % to fill the template out. These commands should all be removed when
13
+ % to fill the template out. These commands should all be removed when
14
14
  % writing assignment content.
15
15
  %
16
16
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -27,7 +27,7 @@
27
27
  \usepackage{cancel}
28
28
  \usepackage{tikz}
29
29
  \usepackage{graphicx}
30
- \usepackage[margin=1in]{geometry}
30
+ \usepackage[margin=1in]{geometry}
31
31
  \usetikzlibrary{automata,positioning}
32
32
  \usepackage{fancyhdr} % Required for custom headers
33
33
  \usepackage{lastpage} % Required to determine the last page for the footer
@@ -36,13 +36,14 @@
36
36
  \usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
37
37
  \usepackage{enumitem}
38
38
  \usepackage{graphicx}
39
+ \graphicspath{GRAPHICSPATH}
39
40
  % Margins
40
41
  \topmargin=-0.45in
41
42
  \evensidemargin=0in
42
43
  \oddsidemargin=0in
43
44
  \textwidth=6.5in
44
45
  \textheight=9.0in
45
- \headsep=0.25in
46
+ \headsep=0.25in
46
47
 
47
48
  \linespread{1.1} % Line spacing
48
49
 
@@ -99,7 +100,7 @@
99
100
  }{
100
101
  \enterProblemHeader{} % Header and footer after the environment
101
102
  }
102
-
103
+
103
104
  %----------------------------------------------------------------------------------------
104
105
  % NAME AND CLASS SECTION
105
106
  %----------------------------------------------------------------------------------------
@@ -152,4 +153,4 @@
152
153
  \clearpage
153
154
  %----------------------------------------------------------------------------------------
154
155
 
155
- \end{document}
156
+ \end{document}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fplatex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Phan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-18 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline