summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/morehype/blogdemo/hellowor
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/morehype/blogdemo/hellowor')
-rw-r--r--macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.htm12
-rw-r--r--macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.tex6
-rw-r--r--macros/latex/contrib/morehype/blogdemo/hellowor/mkhellow.tex20
3 files changed, 38 insertions, 0 deletions
diff --git a/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.htm b/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.htm
new file mode 100644
index 0000000000..72193c042f
--- /dev/null
+++ b/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.htm
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<!-- generated from
+
+ hellowor.tex, 2012/11/29 hello world source,
+
+ with blog.sty, 2012-11-30 -->
+<html><head>
+ <title>Hello world!</title>
+</head><body>
+Hello <a href="http://en.wikipedia.org/wiki/world" target="_blank">world</a>!
+</body></html>
+
diff --git a/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.tex b/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.tex
new file mode 100644
index 0000000000..1f7453ba6a
--- /dev/null
+++ b/macros/latex/contrib/morehype/blogdemo/hellowor/hellowor.tex
@@ -0,0 +1,6 @@
+\ProvidesFile{hellowor.tex}[2012/11/30 hello world source]
+\head
+\title{Hello world!}
+\body
+Hello [[world]]!
+\finish
diff --git a/macros/latex/contrib/morehype/blogdemo/hellowor/mkhellow.tex b/macros/latex/contrib/morehype/blogdemo/hellowor/mkhellow.tex
new file mode 100644
index 0000000000..ac9eac4d24
--- /dev/null
+++ b/macros/latex/contrib/morehype/blogdemo/hellowor/mkhellow.tex
@@ -0,0 +1,20 @@
+\ProvidesFile{mkhellow.tex}[2012/11/30 blog demo]
+\RequirePackage[ligs,mark]{blog} %% general HTML generation
+\BlogInterceptEnvironments* %% ... using blogexec.sty
+\UseBlogLigs %% smart markup
+\RequirePackage{texlinks} %% basic link shorthands
+\RequirePackage{langcode} %% \uselangcode...
+\RequirePackage{catchdq} %% " typographically
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% \input{jobname} %% call by "echo"
+\newcommand{\htmljob} %% choose filename base
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+{hellowor} %% "Hello world!"
+% {hallow} \uselangcode{de} %% "Hallo Welt!"
+% {markblog} %% easy syntax overview
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\ResultFile{\htmljob.htm}
+\BlogProcessFinalFile[%\TextCodes %% encoding settings
+ \catchdqs] %% " typographically
+ {\htmljob.tex}
+\stop %% stop LaTeX run