update README
This commit is contained in:
parent
06ec641ded
commit
fef1ab0109
17
README.adoc
Normal file
17
README.adoc
Normal file
@ -0,0 +1,17 @@
|
||||
= Rezepte
|
||||
:url-org: https://www.gnu.org/software/emacs/manual/html_mono/org.html#Summary
|
||||
:url-adoc: https://asciidoctor.org/docs/what-is-asciidoc/#what-is-asciidoc
|
||||
|
||||
Ich sammle hier meine Rezepte in {url-org}[Org]-und {url-adoc}[AsciiDoc]-dateien.
|
||||
Diese sind so konfiguriert, dass die einzelnen rezepte in passabler qualität
|
||||
über LaTeX in PDF exportiert werden können.
|
||||
|
||||
Um alle rezepte in PDFs zu konvertieren, ein PDF pro kategorie, ein rezept pro
|
||||
seite:
|
||||
|
||||
[source,shell]
|
||||
--------------------------------------------------------------------------------
|
||||
./build_pdf.sh
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Zsh, asciidoctor und pandoc werden benötigt.
|
32
README.org
32
README.org
@ -1,32 +0,0 @@
|
||||
#+TITLE: Rezepte
|
||||
#+LANGUAGE: de
|
||||
#+OPTIONS: toc:nil num:nil author:nil date:nil
|
||||
|
||||
Ich sammle hier meine Rezepte in [[https://www.gnu.org/software/emacs/manual/html_mono/org.html#Summary][Org]]-dateien. Diese sind so konfiguriert, dass
|
||||
die einzelnen rezepte in passabler qualität über LaTeX in PDF exportiert werden
|
||||
können.
|
||||
|
||||
Um alle rezepte in PDFs zu konvertieren, ein PDF pro kategorie, ein rezept pro
|
||||
seite:
|
||||
|
||||
#+BEGIN_SRC
|
||||
./build_pdf.sh
|
||||
#+END_SRC
|
||||
|
||||
Zsh und pandoc werden benötigt.
|
||||
|
||||
* Dazugehöriger code
|
||||
|
||||
[[https://github.com/joaotavora/yasnippet][yasnippet]]-snippet, um ein neues rezept einzutragen:
|
||||
[[https://schlomp.space/tastytea/.emacs.d/src/branch/main/snippets/org-mode/rezept][~/.emacs.d/snippets/org-mode/rezept]].
|
||||
|
||||
Die darin verwendete funktion =my/string-to-var=:
|
||||
|
||||
#+begin_src elisp
|
||||
(defun my/string-to-var (string)
|
||||
"Replace characters that usually are illegal in variable names in STRING with _."
|
||||
(interactive)
|
||||
(replace-regexp-in-string
|
||||
"[[:space:]]" "_"
|
||||
(replace-regexp-in-string "[^[:ascii:]]" "_" string)))
|
||||
#+end_src
|
Loading…
x
Reference in New Issue
Block a user