Oí, Garamond!

Commit
87a1344a733ce08bc391c53e199553a6d98339c3
Author
Blendoit <blendoit@gmail.com>
Author date
Committer
Blendoit <blendoit@gmail.com>
Committer date
Changed files
smart-documents.org
index 853e6372..9e277a60 100644..100644
@@ -9,6 +9,8 @@
9 9 #+INCLUDE: ~/.emacs.d/templates/documents/default.org_title
10 10
11 11 #+LATEX_HEADER: \usepackage{lettrine}
12 Added: #+LATEX_HEADER_EXTRA: \newfontfamily\garamond{EB Garamond}
13 Added: #+LATEX_HEADER_EXTRA: \newfontfamily\publicsans{Public Sans}
12 14
13 15 #+LATEX: \begin{abstract}
14 16 The idea of /Smart Documents/ came to me as I was reflecting on
@@ -874,7 +876,7 @@
874 876 (use-package dashboard
875 877 :config
876 878 (dashboard-setup-startup-hook)
877 Removed: (setq dashboard-startup-banner (concat user-emacs-directory "img/Safran_logo.svg"))
879 Added: (setq dashboard-startup-banner (concat user-emacs-directory "img/icons/Safran_logo.svg"))
878 880 (setq dashboard-items '((recents . 5)
879 881 (projects . 5)))
880 882 (setq dashboard-banner-logo-title "A modern professional text editor."))
@@ -1146,7 +1148,7 @@
1146 1148 ("pdflatex"))
1147 1149 ("table,svgnames" "xcolor" t ; svgnames opens up ~150 color keywords
1148 1150 ("pdflatex"))
1149 Removed: ("skip=0.5\\baselineskip" "caption" t ; Increase space between floats and captions
1151 Added: ("skip=0.5\\baselineskip, width=0.618\\textwidth" "caption" t ; Increase space between floats and captions
1150 1152 ("pdflatex" "lualatex"))))
1151 1153 #+END_SRC
1152 1154
@@ -1318,7 +1320,6 @@
1318 1320 (setq fill-column 66)
1319 1321 #+END_SRC
1320 1322
1321 Removed:
1322 1323 ** Frame
1323 1324
1324 1325 *** Header & mode lines
@@ -1336,7 +1337,7 @@
1336 1337
1337 1338 #+BEGIN_SRC emacs-lisp :tangle yes
1338 1339 (defvar sd-icons-blue-ellipsis (create-image
1339 Removed: (concat user-emacs-directory "img/ellipsis.gif")
1340 Added: (concat user-emacs-directory "img/icons/ellipsis.gif")
1340 1341 'gif nil
1341 1342 :scale 0.4) "A blue loading ellipsis.")
1342 1343
@@ -1348,7 +1349,6 @@
1348 1349
1349 1350 (sd-icons-blue-ellipsis)
1350 1351
1351 Removed:
1352 1352 **** TODO Header line
1353 1353 # Figure out how to do 'keymap cleanly
1354 1354
@@ -1621,17 +1621,55 @@
1621 1621 Make default font size larger on displays of which the resolution
1622 1622 is greater than 1920\times1080.
1623 1623
1624 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
1624 Added: #+BEGIN_SRC emacs-lisp :tangle no
1625 Added: (if (< screen-width 1920)
1626 Added: (default-font)
1627 Added: else)
1625 1628 #+END_SRC
1626 1629
1627 1630 ** Wealthy theme
1628 1631
1632 Added: #+NAME: claude-garamont
1633 Added: #+CAPTION[Claude Garamont, an icon of font design]: Claude Garamont, an icon of font design. World-renowned for his elegant typefaces, which inspired many generations of typographers.
1634 Added: #+ATTR_LATEX: :width 0.2\pagewidth
1635 Added: [[~/.emacs.d/img/smart-documents/ClaudeGaramond.jpeg]]
1636 Added:
1637 Added: #+LATEX: \garamond
1629 1638 #+LATEX: \lettrine{G}ood golly,
1630 Removed: nobody wishes for a /pedestrian/ theme! Let your entourage know
1631 Removed: that you're rocking an editor fit for a king with this finely
1632 Removed: crafted `wealthy' theme.
1639 Added: nobody wishes for a /pedestrian/ theme! Let your entourage know that you're
1640 Added: rocking an editor fit for a king with this finely crafted `wealthy'
1641 Added: theme. Selecting it shall enable the following fancitudes:
1633 1642
1643 Added: 1. The default font shall be sublimed in the form of /EB Garamond/
1644 Added: 2. Bullets will be tastefully replaced with pointing fingers
1645 Added: 3. Heading stars will be replaced with Black Queen chess pieces
1634 1646
1647 Added: #+BEGIN_QUOTE
1648 Added: *Claude Garamont* (c. 1510--1561), known commonly as *Claude Garamond*, was a
1649 Added: French type designer, publisher and punch-cutter based in Paris. Garamond
1650 Added: worked as an engraver of punches, the masters used to stamp matrices, the
1651 Added: moulds used to cast metal type. He worked in the tradition now called old-style
1652 Added: serif design, which produced letters with a relatively organic structure
1653 Added: resembling handwriting with a pen but with a slightly more structured and
1654 Added: upright design. Considered one of the leading type designers of all time, he is
1655 Added: recognised to this day for the elegance of his typefaces. Many old-style serif
1656 Added: typefaces are collectively known as Garamond, named after the designer.
1657 Added:
1658 Added: From [[https://en.wikipedia.org/wiki/Claude_Garamond]]
1659 Added: #+END_QUOTE
1660 Added:
1661 Added: #+LATEX: \publicsans
1662 Added:
1663 Added: *** Symbol substitution
1664 Added:
1665 Added: #+BEGIN_SRC emacs-lisp :tangle yes
1666 Added: (defun sd-wealthy ()
1667 Added: "Beautify symbols for our wealthy theme."
1668 Added: (push '("-" . "☞" ) prettify-symbols-alist) ; unnumbered bullets
1669 Added: (push '("*" . "♛" ) prettify-symbols-alist) ; headings
1670 Added: (prettify-symbols-mode))
1671 Added: #+END_SRC
1672 Added:
1635 1673 ** TODO ~minimal~
1636 1674
1637 1675 * Late setup
@@ -1656,4 +1694,3 @@
1656 1694
1657 1695 In this configuration file, we described a series of customization
1658 1696 steps taken to make Emacs more palatable to modern IDE users.
1659 Removed:
smart-documents.pdf
index 6b47b57a..caa47842 100644..100644

Binary files differ

templates/documents/default.org
index 4d7e731c..5172f975 100644..100644
@@ -9,8 +9,8 @@
9 9 #+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry}
10 10 # Beautiful fonts ONLY
11 11 #+LATEX_HEADER: \usepackage{fontspec}
12 Removed: #+LATEX_HEADER: \setmainfont{public sans}
13 Removed: #+LATEX_HEADER: \setmonofont{hack}
12 Added: #+LATEX_HEADER: \setmainfont{Public Sans}
13 Added: #+LATEX_HEADER: \setmonofont{Hack}
14 14
15 15 # Get total page count to insert in footer
16 16 #+LATEX_HEADER: \usepackage{lastpage}
@@ -34,4 +34,4 @@
34 34 #+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}}
35 35 #+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate}
36 36 #+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt}
37 Removed: #+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. }
37 Added: #+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. }