Advertisement
Guest User

org-mode latex preferences

a guest
Sep 6th, 2013
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.80 KB | None | 0 0
  1.  
  2. ;; find the correct LaTeX directory
  3. (if (eq window-system 'mac)
  4.    (add-to-list 'exec-path "/usr/local/texlive/2012/bin/universal-darwin")
  5. )
  6.  
  7.  
  8. ;; =============================================================
  9. ;; === LATEX ;==============================================================
  10. (require 'org-latex)
  11. (setq org-latex-listings t)
  12.  
  13.  
  14. (unless (boundp 'org-latex-classes)
  15.   (setq org-latex-classes nil))
  16.  
  17. (add-to-list 'org-latex-classes
  18.   '("ilija"
  19. "\\documentclass[12pt]{article}
  20. \\usepackage{float}
  21. \\usepackage[breaklinks=true,linktocpage,pdftitle={\\@title},pdfauthor={\\@author},xetex]{hyperref}
  22. \\usepackage{algorithm}
  23. \\usepackage{amsmath}
  24. \\usepackage{ifxetex}
  25. \\ifxetex
  26.  \\usepackage{fontspec,xltxtra,xunicode}
  27.  \\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
  28.  \\setromanfont{Adobe Garamond Pro}
  29.  \\setsansfont{Arial}
  30.  \\setmonofont{Courier}
  31. \\else
  32.  \\usepackage[mathletters]{ucs}
  33.  \\usepackage[utf8x]{inputenc}
  34. \\fi
  35. \\usepackage{url}
  36. \\usepackage{graphicx}
  37. \\hypersetup{ colorlinks, citecolor=SteelBlue4,filecolor=SteelBlue4,linkcolor=SteelBlue4,urlcolor=SteelBlue4}
  38. \\usepackage[includeheadfoot,margin=2.2in,hmargin=2.2in,vmargin=1.5in]{geometry}
  39. \\usepackage{calc}
  40.  
  41. \\makeatletter
  42. \\def\\maketitle{
  43.  \\thispagestyle{empty}
  44.    \\vfill
  45.  \\begin{raggedright}
  46.  \\leavevmode
  47.    \\vskip 1cm
  48.    \{\\fontsize{50}{60}\\fontspec[Color=SteelBlue4,Opacity=0.2]{Adobe Garamond Pro}\\textbf{\\@title}\\par}
  49.    \\vskip 1cm
  50.    \\normalfont
  51.    \{\\fontsize{30}{40}{{\\textit{\\@author}\\par}}}
  52.  \\vfill
  53.        \\newline
  54.    \{\\Large \\@date\\par}
  55.   \\end{raggedright}
  56.  \\null
  57.  \\cleardoublepage
  58. \}
  59. \\usepackage{fancyhdr}
  60. \\pagestyle{fancy}
  61. \\renewcommand{\\sectionmark}[1]{\\markboth{#1}{}}
  62. \\lhead{\\href{http://google.com}{Peter Salazar}}
  63.  
  64. \\chead{}
  65. \\rhead{{\\@title}: {\\nouppercase{\\leftmark}}}
  66. \\lfoot{}
  67. \\cfoot{\\thepage}
  68. \\rfoot{}
  69. \\usepackage{listings}
  70. \\setlength{\\parindent}{0pt}
  71. \\setlength{\\parskip}{12pt plus 2pt minus 1pt}
  72. \\usepackage{fancyvrb}
  73. \\usepackage{enumerate}
  74. \\usepackage{ctable}
  75. \\setlength{\\paperwidth}{8.5in}
  76. \\setlength{\\paperheight}{11in}
  77.  \\tolerance=1000
  78. \\usepackage{tocloft}
  79. \\renewcommand{\\cftsecleader}{\\cftdotfill{\\cftdotsep}}
  80. \\usepackage[normalem]{ulem}
  81. \\usepackage[hyperref,x11names]{xcolor}
  82.  
  83. \\definecolor{ghostlygrey}{HTML}{000000}
  84. \\definecolor{parchment}{HTML}{FFFFFF}
  85.  
  86.  
  87.  
  88. \\makeatletter
  89. \\newcommand{\\globalcolor}[1]{%
  90.   \\color{#1}\\global\\let\\default@color\\current@color
  91. \}
  92. \\makeatother
  93.  
  94. \\AtBeginDocument{\\globalcolor{ghostlygrey}}
  95.  
  96. \\newcommand{\\textsubscr}[1]{\\ensuremath{_{\\scriptsize\\textrm{#1}}}}
  97.  
  98. \\usepackage{enumitem}
  99. \\setlist{nolistsep}
  100. \\renewcommand{\\labelitemi}{$\\bullet$}
  101. \\renewcommand{\\labelitemii}{$\\bullet$}
  102. \\renewcommand{\\labelitemiii}{$\\bullet$}
  103. \\renewcommand{\\labelitemiv}{$\\bullet$}
  104.  
  105. \\usepackage{titlesec}
  106. \\definecolor{firstcolor}{HTML}{345A8A}
  107. \\definecolor{secondcolor}{HTML}{FF7F00}
  108. \\titleformat*{\\section}{\\normalfont\\Large\\bfseries\\color{firstcolor}}
  109. \\titleformat*{\\subsection}{\\normalfont\\large\\bfseries\\color{secondcolor}}
  110. \\titleformat*{\\subsubsection}{\\normalfont\\normalsize\\bfseries\\color{SteelBlue4}}
  111. \\titleformat*{\\paragraph}{\\normalfont\\normalsize\\bfseries\\color{SteelBlue4}}
  112. \\titleformat*{\\subparagraph}{\\normalfont\\normalsize\\bfseries\\color{SteelBlue4}}
  113.  
  114.       [NO-DEFAULT-PACKAGES]
  115.       [NO-PACKAGES]"
  116.      ("\\section{%s}" . "\\section*{%s}")
  117.      ("\\subsection{%s}" . "\\subsection*{%s}")
  118.      ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  119.      ("\\paragraph{%s}" . "\\paragraph*{%s}")
  120.      ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
  121.  
  122.  
  123. (setq org-latex-to-pdf-process
  124.   '("xelatex -interaction nonstopmode %f"
  125.      "xelatex -interaction nonstopmode %f")) ;; for multiple passes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement