Compare commits

...

4 Commits

Author SHA1 Message Date
9bcbc05add defer loading 2025-06-23 22:04:19 +02:00
2662231ef6 unhide elements 2025-06-23 21:46:36 +02:00
92778ea67c add version 2025-06-23 21:43:02 +02:00
aebb01c482 add gnuplot examples 2025-06-23 21:40:57 +02:00
4 changed files with 84 additions and 4 deletions

View File

@@ -581,6 +581,78 @@ digraph G {
#+RESULTS:
[[file:img/figure-dot.png]]
*** gnuplot
=gnuplot-inline-display-mode=
=gnuplot-dedicated-display-mode=
=gnuplot-external-display-mode=
#+begin_src gnuplot :results silent
reset
set title "Putting it All Together"
set xlabel "X"
set xrange [-8:8]
set xtics -8,2,8
set ylabel "Y"
set yrange [-20:70]
set ytics -20,10,70
f(x) = x**2
g(x) = x**3
h(x) = 10*sqrt(abs(x))
plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
#+end_src
*** gnuplot gantt chart
#+tblname: gantt-table
| Task | Effort | Start | End | Who |
|----------------+--------+-----------------+------------------+-----|
| Time available | 1 | <2020-11-02 Mo> | <2020-11-13 Fr> | |
| Task 0 | 2 | <2020-11-03 Di> | [2020-11-05 Thu] | Al |
| Task 1 | 1 | <2020-11-05 Do> | <2020-11-06 Fr> | Bo |
| Task 2 | 3 | <2020-11-05 Do> | [2020-11-10 Di] | Ca |
| Task 3 | 2 | <2020-11-06 Fr> | <2020-11-10 Di> | Ca |
| Task 4 | 2 | <2020-11-06 Fr> | <2020-11-06 Fr> | Bo |
| Task 5 | 1 | <2020-11-10 Di> | <2020-11-10 Di> | Bo |
| Task 6 | 1 | <2020-11-11 Mi> | <2020-11-12 Do> | Bo |
| Task 7 | 2 | <2020-11-09 Mo> | <2020-11-10 Di> | Al |
| Task 8 | 1 | <2020-11-12 Do> | <2020-11-12 Do> | Al |
| Task 9 | 1 | <2020-11-06 Fr> | <2020-11-09 Mo> | Al |
| Task 10 | 1 | <2020-11-12 Do> | <2020-11-13 Fr> | Bo |
| Task 11 | 1 | <2020-11-13 Fr> | <2020-11-13 Fr> | |
#+begin_src gnuplot :results silent :var DATA=gantt-table :results graphics
reset
# http://gnuplot.sourceforge.net/demo_5.1/gantt.html
OneMonth = strptime("%m","2")
OneWeek = strptime("%U","2")
OneDay = strptime("%d","2")
timeformat = "%Y-%m-%d %a"
T(N) = timecolumn(N,timeformat)
set xdata time
set format x "%a\n%d\n%b\n'%y"
set xtics OneDay nomirror
set xtics scale 2, 0.5
set mxtics 7
skiptorow=2
set yrange [(skiptorow-2):] reverse
set ytics nomirror
unset key
set title "{/=15 My Project}"
set grid x y
set border 3
set style arrow 1 nohead filled size screen 0.02, 15 fixed lt 3 lw 8
plot DATA using (T(3)) : ($0) : (T(4)-T(3)) : (0.0) : yticlabel(1) with vector as 1
#+end_src
** Example / Verbatim
#+BEGIN_EXAMPLE

View File

@@ -347,13 +347,19 @@ DISPLAY-START: `integer', e.g. 3820"
))
(use-package dashboard
:defer nil
:defer 0.1
:delight (dashboard-mode "Db") ;; "\u01F153
:after (all-the-icons)
:commands (dashboard-mode)
:init (require 'dashboard-autoloads)
:config
;; see `dashboad-widget'
(setq dashboard-banner-logo-title
(format "Welcome to Emacs! (%s — %s"
emacs-version
(when (and (fboundp 'native-comp-available-p)
(native-comp-available-p))
"with native compilation)")))
(setq dashboard-icon-type 'all-the-icons)
(setq dashboard-page-separator "\n\f\n")
(setq dashboard-set-heading-icons t)

View File

@@ -49,7 +49,7 @@
(olivetti-mode 0)))))
(use-package my-org-article
:demand
:defer 0.1
:after (org)
:bind (:map org-mode-map
("<f5>" . my-org-article-html-export-to-html-notify-async)
@@ -131,6 +131,7 @@ gnuplot buffer. See also async init file
)
(use-package my-org-letter
:defer 0.1
:after (org))
(provide 'my-settings)

View File

@@ -283,8 +283,8 @@ Example defines
("lualatex -interaction nonstopmode -output-directory %o %f")
:image-converter
("convert -density %D -trim -antialias %f -quality 100 %O"))))
(setq org-hidden-keywords '(author date title email subtitle)) ;; see also `org-appear'
(setq org-hide-emphasis-markers t) ;; see also `org-appear'
(setq org-hidden-keywords nil) ;; hide keywords like `#+TITLE:` or not, see also `org-appear'
(setq org-hide-emphasis-markers nil) ;; hide emphasis marker *_=~/+, see also `org-appear'
(setq org-startup-folded nil) ;; nil = showall = #+STARTUP: showall
(setq org-startup-with-inline-images t) ;; #+STARTUP: inlineimages|noinlineimages, show inline images when loading a new Org file
(setq org-use-sub-superscripts '{}) ;; braces are *required* in order to trigger interpretations as sub/superscript, see also `org-export-with-sub-superscripts'. C-c C-x \ (`org-toggle-pretty-entities')
@@ -1099,6 +1099,7 @@ Uses function `my-org-headline-string-element'"
'my-org-latex-ensure-clearpage))
(use-package ox-extra
:defer 0.1
:after (org) ;; defer t is not enough bc/ ox-extra is not loaded by default
:config
;; https://emacs.stackexchange.com/questions/9492/is-it-possible-to-export-content-of-subtrees-without-their-headings