summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom.el2
-rw-r--r--smart-documents.org49
-rw-r--r--smart-documents.pdfbin251641 -> 254585 bytes
-rw-r--r--templates/documents/default.org2
4 files changed, 22 insertions, 31 deletions
diff --git a/custom.el b/custom.el
index 1dde9ee..f1d5f0d 100644
--- a/custom.el
+++ b/custom.el
@@ -32,7 +32,7 @@
'(org-log-done 'time)
'(org-startup-align-all-tables t)
'(package-selected-packages
- '(org-pretty-table mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init))
+ '(semantic-refactor org-pretty-table mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init))
'(pdf-view-midnight-colors '("#DCDCCC" . "#383838"))
'(save-place-mode t)
'(send-mail-function 'smtpmail-send-it)
diff --git a/smart-documents.org b/smart-documents.org
index 38542a7..f7b39a2 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -1071,14 +1071,16 @@ The following packages are loaded for every time we export to LaTeX.
#+BEGIN_SRC emacs-lisp :tangle yes
(setq org-latex-packages-alist
- '(("AUTO" "polyglossia" t
- ("xelatex" "lualatex"))
- ("AUTO" "babel" t
- ("pdflatex"))
- ("" "booktabs" t
- ("pdflatex"))
- ("table,svgnames" "xcolor" t
- ("pdflatex"))))
+ '(("AUTO" "babel" t
+ ("pdflatex"))
+ ("AUTO" "polyglossia" t ; Babel replacement for LuaLaTeX
+ ("xelatex" "lualatex"))
+ ("" "booktabs" t ; Publication quality tables in LaTeX
+ ("pdflatex"))
+ ("table,svgnames" "xcolor" t ; svgnames opens up ~150 color keywords
+ ("pdflatex"))
+ ("skip=0.5\\baselineskip" "caption" t ; Increase space between floats and captions
+ ("pdflatex" "lualatex"))))
#+END_SRC
*** Colored source blocks in PDF export
@@ -1225,12 +1227,7 @@ working on currently.
"^[[:space:]]*#\\+TITLE:[[:space:]]*\\(.*?\\)[[:space:]]*$"
nil t)
(match-string 1)))
- (save-excursion
- (goto-char (point-min))
- (when (re-search-forward
- "^[[:space:]]*#\\+DATE:[[:space:]]*\\(.*?\\)[[:space:]]*$"
- nil t)
- (match-string 1))))))))
+ nil)))))
#+END_SRC
**** Mode line
@@ -1249,19 +1246,6 @@ Then, we use the previously declared function to set up our mode line.
** Window
-*** Tab line
-
-#+BEGIN_SRC emacs-lisp :tangle yes
-(global-tab-line-mode)
-#+END_SRC
-
-*** Window margins
-
-#+BEGIN_SRC emacs-lisp :tangle yes
-(set-window-margins nil 4 2)
-#+END_SRC
-
-
** Buffer
*** Save cursor location
@@ -1279,12 +1263,19 @@ length.
#+BEGIN_SRC emacs-lisp :tangle yes
(setq-default fill-column 79)
+ (add-hook 'org-mode-hook
+ 'turn-on-auto-fill) ; Automatically break lines longer than
+ ; =fill-column=.
#+END_SRC
-Automatically break lines longer than =fill-column=.
+*** Right and left margins
+
+We set reasonable margins on either side of our buffer.
#+BEGIN_SRC emacs-lisp :tangle yes
- (add-hook 'org-mode-hook 'turn-on-auto-fill)
+(setq-default left-margin-width 6 right-margin-width 6)
+
+(use-package srefactor)
#+END_SRC
** Text
diff --git a/smart-documents.pdf b/smart-documents.pdf
index da792e5..6339507 100644
--- a/smart-documents.pdf
+++ b/smart-documents.pdf
Binary files differ
diff --git a/templates/documents/default.org b/templates/documents/default.org
index 8131d3d..4d7e731 100644
--- a/templates/documents/default.org
+++ b/templates/documents/default.org
@@ -34,4 +34,4 @@
#+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}}
#+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate}
#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt}
-#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[10pt] Page \thepage/\pageref*{LastPage}\\[8pt]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. }
+#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. }
Copyright 2019--2024 Marius PETER