summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/morehype/markblog.tex
blob: 581ac15de405f114ef657c42ec0c666f4e3c9e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\ProvidesFile{markblog.tex}[2012/11/29 extended blog markup]
\EXECUTE{\def\pkg{\code}\def\HTML{\abbr{HTML}}
         \def\mystrong{\textcolor{\#aa0000}}
         \def\myalert{\textcolor{red}}}
\head %%% \texmetadata 2012/09/23
  \metanamecontent{author}{Uwe L\"uck}
  \metanamecontent{date}{\isotoday}
  \robots{index,follow,noarchive}
\title{blog.sty \& wikis} %%% CMS}
\body 
\begin{center}
\heading2{\CtanPkgRef{morehype}{markblog.sty} %%%{{blog[exec].sty}}
          \& 
          [[Wiki]]s} %%% \wikiref{content management system}{\abbr{CMS}}}
\begin{stdallrulestable}
 \EXECUTE{\let\blogcode\code \def\code#1{\textcolor{\#003300}{\blogcode{#1}}}} %% vs. CSS 
                                                     %% ^^ war 66 2012/09/23
  \pkg{blog.sty} Syntax |    Output      | cf. \HTML | cf. \TeX                         | cf. ...      \cr
  \code{''italics''}    |  ''italics''   | \xmleltcode{i}{italics}
                                                     | \code{\{\cs{it} italics\}}       | Wikipedia    \cr
  \code{'''boldface'''} | '''boldface''' | \xmleltcode{b}{boldface}
                                                     | \code{\{\cs{bf} boldface\}}      | Wikipedia    \cr
  \code{[[Wikipedia]]}  | [[Wikipedia]]  | \xmleltattrcode{a}{href=...}{Wikipedia}}
                                                     | \code{\cs{href}\{...\}\{Wikipedia\}} 
                                                                                        | Wikipedia    \cr
  \code{**mystrong**}   | **mystrong**   | \xmleltattrcode{span}{style=...}{mystrong}}  
                                                     | \code{\cs{textcolor}\{...\}\{mystrong\}} 
                                                                                        | [[Markdown]] \cr
  \code{***myalert***}  | ***myalert***  | \xmleltattrcode{span}{style=...}{myalert}  
                                                     | \code{\cs{textcolor}{red}{myalert}}
                                                                                        | [[Markdown]] \cr
  \code{...}            | ...            | \code{\…}                 | \cs{dots} |              \cr
  \code{--}, \code{---} | --, ---        | \code{\–}, \code{\—} 
                                                     | \code{--}, \code{---} -- "ligs"  |              \cr
  \code{->}, \code{<-}  | ->, <-         | \code{\&rarr;}, \code{\&larr;} 
                                                     | \cs{to}, \cs{gets}               | 
\end{stdallrulestable}
\end{center}
\finish