mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2025-04-17 10:49:27 +00:00
altacv: Use new printinfo and fontawesome macros for social networks
The newer versions of AltaCV use a printinfo command and fontawesome icons to support all fontawesome icons instead of having specific LaTeX commands for icons. Added the mastodon icon. Also included a comment on how to add more.
This commit is contained in:
parent
dbbe6e85b2
commit
32c3258a24
1 changed files with 17 additions and 4 deletions
21
ox-altacv.el
21
ox-altacv.el
|
@ -27,6 +27,17 @@
|
|||
;; This library implements a LaTeX altacv back-end, derived from the
|
||||
;; LaTeX one.
|
||||
|
||||
;; To add more social-network icons. Look at the fontawesome icon list
|
||||
;; find the \faSymbol macro.
|
||||
;; Add the Org option bellow in the options-alist
|
||||
;; ...
|
||||
;; (:symbol "SYMBOL" nil nil parse)
|
||||
;; ...
|
||||
;; Then add to the fontaweome macro you found earlier to the template
|
||||
;; ...
|
||||
;; (:symbol "\\faSymbol")
|
||||
;; ...
|
||||
|
||||
;;; Code:
|
||||
(require 'cl-lib)
|
||||
(require 'ox-latex)
|
||||
|
@ -62,6 +73,7 @@
|
|||
(:photo "PHOTO" nil nil parse)
|
||||
(:gitlab "GITLAB" nil nil parse)
|
||||
(:github "GITHUB" nil nil parse)
|
||||
(:mastodon "MASTODON" nil nil parse)
|
||||
(:linkedin "LINKEDIN" nil nil parse)
|
||||
(:with-email nil "email" t t)
|
||||
(:latex-title-command nil nil "\\begin{fullwidth}\n\\makecvheader\n\\end{fullwidth}")
|
||||
|
@ -160,12 +172,13 @@ holding export options."
|
|||
(let ((command (org-export-data (plist-get info
|
||||
(car social-network))
|
||||
info)))
|
||||
(and command (format "\\%s{%s}\n"
|
||||
(and command (format "\\printinfo{%s}{%s}\n"
|
||||
(nth 1 social-network)
|
||||
command))))
|
||||
'((:github "github")
|
||||
(:gitlab "gitlab")
|
||||
(:linkedin "linkedin"))
|
||||
'((:github "\\faGithub")
|
||||
(:gitlab "\\faGitlab")
|
||||
(:linkedin "\\faLinkedin")
|
||||
(:mastodon "\\faMastodon"))
|
||||
"")
|
||||
"}\n"
|
||||
;; Title command.
|
||||
|
|
Loading…
Add table
Reference in a new issue