summaryrefslogtreecommitdiff
path: root/ksh-report-header.el
blob: 11776620b18342f4480ae5c05568d4e3aaf1ba24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(defun latex-use-package (package &optional arguments)
  (if arguments
      (format "\\usepackage[%s]{%s}" arguments package)
    (format "\\usepackage{%s}" package)))

(defun make-report-header (title)
  (org-keywords
   '(("TITLE" . "Kuzhanthai Sanjeevi Hospital")
     ("AUTHOR" . "Dr. Serene Isaac, MD, DGO, DNB")))
  (org-latex-headers
   (list (latex-use-package "fullpage")
         (latex-use-package "nopageno")
         (latex-use-package "datetime" "ddmmyyyy")
         "\\renewcommand{\\dateseparator}{-}"
         "\\setlength{\\parindent}{0cm}"
         (latex-use-package "titlesec" "tiny")
         (latex-use-package "wasysym")
         (latex-use-package "titling")
         ,(format "\\pretitle{\\hrule \\begin{center} {\\Large \\textbf{%s}} \\par \\small \\sc}" title)
         "\\posttitle{\\par 17, Jawahar Street, Ramavarmapuram, Nagercoil - 629001 \\par \\phone \\, 223374 \\end{center}}"
         "\\preauthor{}"
         "\\postauthor{\\par Obstetrician and Gynaecologist}"
         "\\predate{\\hfill \\textbf{Date: }}"
         "\\date{\\today}"
         "\\postdate{\\vspace{1em} \\hrule \\par}")))