From fef1ab0109133356560771ccf0d75b1263788f3e Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 27 Jan 2023 18:24:27 +0100 Subject: [PATCH] update README --- README.adoc | 17 +++++++++++++++++ README.org | 32 -------------------------------- 2 files changed, 17 insertions(+), 32 deletions(-) create mode 100644 README.adoc delete mode 100644 README.org diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..a4b5017 --- /dev/null +++ b/README.adoc @@ -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. diff --git a/README.org b/README.org deleted file mode 100644 index df1562e..0000000 --- a/README.org +++ /dev/null @@ -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