This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. # -*- tcl -*-
  2. ### WRITE HEADER OF TEX FILE ###
  3. proc produce_head_latex {} {
  4. global title authors
  5. puts {\documentclass[twoside]{article}}
  6. puts {\special{papersize=8.5in,11in} % Letter paper - for `dvips'}
  7. puts {\usepackage[T1]{fontenc}}
  8. puts {\usepackage[utf8]{inputenc}}
  9. #puts {\input macros.tex}
  10. puts {\date{\today}}
  11. if {$title != ""} {
  12. puts "\\title{[out_latex $title]}"
  13. if {$authors != ""} {
  14. puts "\\author{[out_latex $authors]}"
  15. }
  16. }
  17. puts {\begin{document}}
  18. if {$title != ""} {
  19. puts {\maketitle}
  20. }
  21. puts { \tableofcontents \clearpage}
  22. }
  23. ### WRITE TAIL OF TEX FILE ###
  24. proc produce_tail_latex {} {
  25. # puts "\\clearpage"
  26. puts "\\bibliographystyle{plain}"
  27. # puts "\\footnotesize"
  28. puts "\\addcontentsline{toc}{section}{References}"
  29. puts "\\index{references}"
  30. puts "\\bibliography{own}"
  31. puts "\\end{document}"
  32. }
  33. ### DOCUMENT-SPECIFIC TEXT REPLACEMENTS ###
  34. proc out_latex_private {string} {
  35. regsub -all {LaTeX} $string "\\LaTeX{}" string
  36. # regsub {\\\$Revision([ 0-9.]*)\\\$} $string {\\date{\\today{} --- Revision \1}} string
  37. return $string
  38. }