class SiSU_TeX_Pdf::UseTeX

Attributes

date[RW]
txt[RW]
url[RW]

Public Class Methods

new(md) click to toggle source
# File lib/sisu/texpdf_format.rb, line 1485
def initialize(md)
  @md=md
  @date=SiSU_Env::InfoDate.new # #{@date.year}
  @copymark='{\\begin{footnotesize}\\raisebox{1ex}{\\copyright}\\end{footnotesize}}'
end

Public Instance Methods

doc_no_sc_info() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1589
    def doc_no_sc_info
      v=SiSU_Env::InfoVersion.instance.get_version
      <<-WOK
\\\\
{\\begin{small}
Document information: \\\\
\\emph{sourcefile} \\uline{#{@md.fnstex}} \\\\
Generated by \\href{http://www.jus.uio.no/sisu}{SiSU www.jus.uio.no/sisu } \\\\ version information: \\
\\uline{ #{v.project} #{v.version} of #{v.date_stamp}}

\\end{small}}&
      WOK
    end
doc_sc_info() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1577
    def doc_sc_info
      v=SiSU_Env::InfoVersion.instance.get_version
      <<-WOK
\\\\
{\\begin{footnotesize}
Document version information: \\\\
\\emph{sourcefile} \\uline{#{@md.fnstex}}; \\emph{version} \\uline{#{@md.sc_number}}; \\emph{date} \\uline{#{@md.sc_date}}; \\emph{time} \\uline{#{@md.sc_time}} \\\\
Generated by \\href{http://www.jus.uio.no/sisu}{SiSU www.jus.uio.no/sisu }\\- version information: \\\\
\\uline{ #{v.project} #{v.version} of #{v.date_stamp}}
\\end{footnotesize}}&
      WOK
    end
doc_sc_info_footnote_brief() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1574
def doc_sc_info_footnote_brief
  " \\footnote{%\nGenerated by \\href{http://www.jus.uio.no/sisu}{SiSU} \\ \\href{http://www.jus.uio.no/sisu}{www.jus.uio.no/sisu} \\newline \\href{http://www.sisudoc.org}{www.sisudoc.org} \\\n}"
end
doc_sc_info_footnote_full() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1569
    def doc_sc_info_footnote_full
      <<-WOK
\\footnote{%\nGenerated by \\href{http://www.jus.uio.no/sisu}{SiSU \\ www.jus.uio.no/sisu }\\ \\newline \\scriptsize{Document version information: \\emph{sourcefile} \\uline{#{@md.fnstex}}; \\emph{version} \\uline{#{@md.sc_number}}; \\emph{date} \\uline{#{@md.sc_date}}; \\emph{time} \\uline{#{@md.sc_time}}}}
      WOK
    end
endnotes() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1602
    def endnotes #not used should be inserted before MetaData section which preceeds doc_tail, but is "part of document"
      <<-WOK
\\subsection*{Endnotes}
\\addcontentsline{toc}{section}{Endnotes}
\\
\\listofendnotes
      WOK
    end
header() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1516
def header
  "\\lhead[ ]{ }\n" +
  "\\chead[ \\fancyplain{} \\bfseries \\footnotesize \\leftmark ]{ \\fancyplain{} \\bfseries \\footnotesize \\rightmark }\n" +
  "\\rhead[ ]{ }\n"
end
newpage(orientation) click to toggle source

BOOK standard dimensions - 229x156

# File lib/sisu/texpdf_format.rb, line 1537
    def newpage(orientation)
      case orientation
      when :landscape # using longtable latex package
        <<-WOK
\\clearpage
        WOK
      when :portrait
        <<-WOK
\\newpage
        WOK
      end
    end
owner_chapter() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1533
def owner_chapter
  "Contact Details for Original Promulgating Authority"
end
paraskip_normal() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1493
def paraskip_normal
  '\setlength{\parskip}{1ex plus0.5ex minus0.2ex}'
end
paraskip_small() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1496
def paraskip_small
  '\setlength{\parskip}{0.5ex plus0.2ex minus0.1ex}'
end
paraskip_tiny() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1499
def paraskip_tiny
  '\setlength{\parskip}{0.1ex plus0.1ex minus0.1ex}'
end
sisu_rights() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1549
    def sisu_rights
      v=SiSU_Env::InfoVersion.instance.get_version
      base_prog_txt=if @md.base_program
        case @md.base_program
        when /kdissert/i then "\n\\\\ This document prepared using \\href{http://freehackers.org/~tnagy/kdissert/}{Kdissert \\ http://freehackers.org/~tnagy/kdissert/ } \\\\ Kdissert is Document Mapping software by Thomas Nagy"
        else ''
        end
      else ''
      end
      <<-WOK
\\\\ ~
{\\begin{footnotesize}#{base_prog_txt}
\\\\ Generated by \\href{http://www.jus.uio.no/sisu}{SiSU} \\begin{tiny}[ #{v.project} #{v.version} of #{v.date_stamp} ]\\end{tiny} \\href{http://www.jus.uio.no/sisu}{www.jus.uio.no/sisu}
\\\\ Copyright #{@copymark} 1997, current #{@date.year_static} Ralph Amissah, All Rights Reserved.
\\\\ SiSU is software for document structuring, publishing and search (with object citation numbering), \\href{http://www.sisudoc.org}{www.sisudoc.org}
\\\\ SiSU is released under \\href{http://www.fsf.org/licenses/gpl.html}{GPL 3 } or later, #{url_brace.tex_open}\\href{http://www.fsf.org/licenses/gpl.html}{http://www.fsf.org/licenses/gpl.html}#{url_brace.tex_close}.
{\\end{footnotesize}
\\\\
      WOK
    end
site() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1526
def site
  if not the_url.home.empty? \
  and not the_url.home_txt.empty?
    "\n\\date{\\begin{tiny} \\end{tiny}}"
  else ''
  end
end
skip() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1490
def skip
  "\n\\vspace*{\\smallskipamount} \n"
end
skip_dummy() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1513
def skip_dummy
  "\n"
end
skip_medium() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1510
def skip_medium
  "\n\\medskip{}\n\n"
end
skip_small() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1502
def skip_small
  "\\smallskip{}"
end
skip_small_footnote() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1508
def skip_small_footnote
end
skip_small_vspace() click to toggle source
# File lib/sisu/texpdf_format.rb, line 1505
def skip_small_vspace
  "\n\\vspace*{\\smallskipamount} \n"
end