lib/softcover/builder.rb in softcover-1.6.3 vs lib/softcover/builder.rb in softcover-1.6.4

- old
+ new

@@ -29,29 +29,14 @@ # Ensures the style files are in the right location. # This is for backwards compatibility. def ensure_style_file_locations styles_dir = Softcover::Directories::STYLES mkdir styles_dir - fix_custom_include files = Dir.glob('*.sty') FileUtils.mv(files, styles_dir) end - # Fixes the custom include. - # The template includes the custom style file as an example - # of file inclusion. Unfortunately, the location of 'custom.sty', has - # changed, which will result in older templates spontaneously breaking. - def fix_custom_include - first_chapter = File.join('chapters', 'a_chapter.tex') - if File.exist?(first_chapter) - text = File.read(first_chapter) - text.gsub!('<<(custom.sty', - "<<(#{Softcover::Directories::STYLES}/custom.sty" ) - File.write(first_chapter, text) - end - end - # Writes out the PolyTeXnic commands from polytexnic. def write_polytexnic_commands_file Polytexnic.write_polytexnic_style_file(styles_dir) end @@ -81,6 +66,6 @@ \\newcommand{\\codecaption}[1]{\\captionof{#{listing}}{#1}} EOS end end -end \ No newline at end of file +end