Removed most of header configuration
This commit is contained in:
parent
4e8fbded8f
commit
d81b8f4438
2 changed files with 13 additions and 6 deletions
6
Rakefile
6
Rakefile
|
@ -94,7 +94,6 @@ task :html do
|
|||
html_template.title=@title
|
||||
html_template.subtitle=@subtitle
|
||||
html_template.author=@author
|
||||
html_template.html_headers=@html_headers
|
||||
html_template.homeURL="index.html"
|
||||
@postfilters<<=Links.new
|
||||
@postfilters<<=html_template
|
||||
|
@ -148,8 +147,6 @@ task :html do
|
|||
txt.gsub!(%r{<!-- Title -->},@title)
|
||||
txt.gsub!(%r{<!-- Subtitle -->},@subtitle)
|
||||
# puts "AFTER TITLE: " + txt
|
||||
txt.sub!( %r{<!-- HTML HEADER -->},@html_headers)
|
||||
# puts "AFTER HTML HEADER: " + txt
|
||||
fic=File.new("site/index.html","w")
|
||||
fic.write(txt)
|
||||
fic.close
|
||||
|
@ -236,8 +233,7 @@ task :compile do
|
|||
end.join("\n")
|
||||
end.
|
||||
sub!(%{\\author\{\}},'\author{'+@author+'}').
|
||||
sub!(%{\\title\{\}},'\title{'+@title+'}').
|
||||
sub!( /%%# LATEX HEADER FROM config\.rb #%%/,@latex_headers)
|
||||
sub!(%{\\title\{\}},'\title{'+@title+'}')
|
||||
fic=File.new("tmp/#{@pdfname}.tex","w")
|
||||
fic.write(txt)
|
||||
fic.close
|
||||
|
|
|
@ -1,7 +1,18 @@
|
|||
\include{include/main}
|
||||
|
||||
% -- Personal style --
|
||||
%%# LATEX HEADER FROM config.rb #%%
|
||||
% -- Comment the following line if you haven't
|
||||
% -- Hoefler Text font installed on your system
|
||||
\setmainfont{Hoefler Text}
|
||||
|
||||
% colors
|
||||
\usepackage{color}
|
||||
\definecolor{italiccolor}{rgb}{0.4,0.4,0.4}
|
||||
\definecolor{boxcolor}{rgb}{0.96,0.96,0.96}
|
||||
|
||||
% Make italic and emphasis text gray
|
||||
\renewcommand{\textit}[1]{\textcolor{italiccolor}{\it #1}}
|
||||
\renewcommand{\emph}[1]{\textcolor{italiccolor}{\em #1}}
|
||||
|
||||
% -- Redefinition of memoir chapters --
|
||||
%
|
||||
|
|
Loading…
Reference in a new issue