Module: LatexCurriculumVitae::Cover

Defined in:
lib/latex_curriculum_vitae/cover.rb

Overview

Cover module

Class Method Summary collapse

Class Method Details

.create_cover(name_of_cover, tmp_dir) ⇒ Object

Create cover method

Parameters:

  • name_of_cover (String)

    Name of the cover file


25
26
27
28
29
30
# File 'lib/latex_curriculum_vitae/cover.rb', line 25

def self.create_cover(name_of_cover, tmp_dir)
  puts 'Creating cover'.color(:yellow)
  system("pdflatex #{name_of_cover}.tex")
  system("cp #{name_of_cover}.pdf #{tmp_dir}/#{name_of_cover}.pdf")
  puts 'Creating cover done'.color(:green)
end