diff options
author | Karl Berry <karl@freefriends.org> | 2012-12-02 23:18:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-12-02 23:18:36 +0000 |
commit | 59e52a9aaf7ccb545c0e6c410f3859a7b79b43aa (patch) | |
tree | a9d353045009336295b169b1cd9f46a9f8f1e5ab /Master/texmf-dist/source/latex/morehype/blog.tex | |
parent | ecbf2241f32ef261ee58622856756a9e42211886 (diff) |
morehype (2dec12)
git-svn-id: svn://tug.org/texlive/trunk@28418 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/morehype/blog.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/morehype/blog.tex | 96 |
1 files changed, 76 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/latex/morehype/blog.tex b/Master/texmf-dist/source/latex/morehype/blog.tex index 9644a154183..aacfd541094 100644 --- a/Master/texmf-dist/source/latex/morehype/blog.tex +++ b/Master/texmf-dist/source/latex/morehype/blog.tex @@ -1,4 +1,4 @@ -\ProvidesFile{blog.tex}[2011/11/23 documenting blog.sty] +\ProvidesFile{blog.tex}[2012/11/30 documenting blog.sty] \title{\textsf{blog.sty}\\---\\% Generating \HTML\ Quickly with \TeX\thanks{This document describes version @@ -7,12 +7,20 @@ % \listfiles { \RequirePackage{makedoc} \ProcessLineMessage{} - \renewcommand\mdSectionLevelOne{\string\subsection} - \renewcommand\mdSectionLevelTwo{\string\subsubsection} - \MainDocParser{\SectionLevelTwoParseInput} - \HeaderLines{17} + %% three section levels 2012/08/07: + \renewcommand\mdSectionLevelOne {\string\subsection} + \renewcommand\mdSectionLevelTwo {\string\subsubsection} + \renewcommand\mdSectionLevelThree{\string\paragraph} + \MainDocParser{\SectionLevelThreeParseInput} + \HeaderLines{16} %% 2012/10/03 \MakeSingleDoc{blog.sty} + \HeaderLines{18} %% 2012/11/28 + \MakeSingleDoc{blogligs.sty} + \HeaderLines{18} %% 2012/11/28 + \MakeSingleDoc{markblog.sty} + \HeaderLines{18} %% 2012/10/05 \MakeSingleDoc{lnavicol.sty} + \HeaderLines{17} %% 2012/10/05 \MakeSingleDoc{blogdot.sty} } \documentclass[fleqn]{article}%% TODO paper dimensions!? @@ -81,16 +89,17 @@ It loads 'blog.sty' by \RequirePackage{blog} \end{verbatim} and uses file handling commands from 'blog.sty' and -\CtanPkgRef{nicetext}{fifinddo} -(cf. `mdoccheat.pdf' from the \ctanpkgref{nicetext} bundle). +\CtanPkgRef{nicetext}{fifinddo} +(cf. `mdoccheat.pdf' from the \ctanpkgref{nicetext} bundle).\urlfoot{CtanPkgRef}{nicetext} +%% <- \urlfoot 2012/11/30 It chooses \strong{source} files and the name(s) for the resulting \HTML\ file(s). It may also need to load local settings, such as -for the language -%% modified 2011/01/25: -(`lang-de.fdf', `lang-en.fdf'), +%% 2012/11/29: +`\uselangcode' with the \ctanpkgdref{langcode} package %% dref 2012/11/30 and settings for converting the editor's text encoding -into the encoding that the head of the resulting \HTML\ file advertises -(`atari.fdf' in the 'nicetext' bundle). +into the encoding that the head of the resulting \HTML\ file +advertises---or into \HTML\ named entities +(for me, `atari_ht.fdf' has done this). The driver file could be run a terminal dialogue in order to choose source and target files and settings. So far, I rather have programmed a @@ -105,6 +114,16 @@ to generate the necessary \xmltagcode{head} section and the \xmltagcode{body} tags. \section{Examples} +\subsection{Hello World!} +This is the \strong{source} code for a ``Hello World" example, +in `hellowor.tex': +\MDsamplecodeinput{hellowor} +The \HTML\ file `hellowor.htm' is generated from `hellowor.tex' +by the following \strong{driver} file `mkhellow.tex': +\pagebreak[2] +\MDsamplecodeinput{mkhellow} + + \iffalse %% 2012/11/29 \subsection{A Very Plain Style} My ``\TeX-generated pages"{\foothttpurlref{www.webdesign-bu.de/% @@ -142,10 +161,12 @@ perhaps you can use them as templates. \listinginput[5]{1}{CTAN/morehype/demo/texblog/texmap.tex} \endgroup + \fi \subsection{A Style with a Navigation Column} \label{sec:example-lnavicol} -A style of web pages looking more professional than -`texmap.htm' %% was `texhax.hmt' 2011/09/02 +A style of web pages looking more professional +% than %% rm. 2012/11/29 +% `texmap.htm' %% was `texhax.hmt' 2011/09/02 (while perhaps becoming outdated) has a small navigation column on the left, side by side with a column for the main content. Both columns are spanned by a header section above and a footer @@ -174,28 +195,57 @@ it is added in the driver file `makehtml.tex'. `schreibt.tex' is the source file for generating `schreibt.html'. You should find \emph{this} `makehtml.tex', a cut down version of `schreibt.tex', and `writings.fdf' with my extra macros for these pages -in a directory `demo/writings', hopefully useful as templates. +in a directory +`blogdemo/writings', %% blog 2012/11/30 +hopefully useful as templates. \begingroup \MakeActive\ \def{\"a} %% 2011/10/05 \MakeActive\ \def{\"u} \hfuzz=\textwidth \advance \hfuzz by 10pt + %% 2012/11/29 CTAN/morehype/demo -> blogdemo: \subsubsection{Driver File `makehtml.tex'} - \listinginput[5]{1}{CTAN/morehype/demo/writings/makehtml.tex} + \listinginput[5]{1}{blogdemo/writings/makehtml.tex} \subsubsection{Source File `schreibt.tex'} - \listinginput[5]{1}{CTAN/morehype/demo/writings/schreibt.tex} + \listinginput[5]{1}{blogdemo/writings/schreibt.tex} \endgroup \section{The File \file{blog.sty}} %% 2011/11/09 % \section{The File \texttt{blog.sty}} % \section{The File {\tt blog.sty}} %% <- strange 2011/11/08 -> -% \section{The File `blog.sty'} %% 2011/10/04 allow other files -\subsection{Package File Header (Legalize)} +% \section{The File `blog.sty'} %% 2011/10/04 allow other files +\subsection{Preliminaries} %% 2012/10/03 +\subsubsection{Package File Header (Legalese)} %% ize -> ese, subsub 2012/10/03 \ResetCodeLineNumbers \input{blog.doc} +\section{``Pervasive Ligatures" with 'blogligs.sty'} %% 2012/11/29 +\label{sec:moreligs} +% \AddQuotes +This is the code and documentation of the package mentioned in +Sec.~\ref{sec:ligs}, loadable by option |[ligs]|. +See below for what is offered. +\ResetCodeLineNumbers +\input{blogligs.doc} +% \DontAddQuotes + +\section{Wiki Markup by 'markblog.sty'} %% 2012/11/29 +\label{sec:mark} +\AddQuotes +This is the code and documentation of the package mentioned in +Sec.~\ref{sec:ligs}, loadable by option |[mark]|. +See below for what is offered. You should also find a file +`markblog.htm' that sketches it. Moreover, `texlinks.pdf' +describes in detail to what extent Wikipedia's +``\wikiref{Help:Links#Piped_links}{piped links}" +with `[[wikipedia-link]]' is supported. +\ResetCodeLineNumbers +\input{markblog.doc} +\DontAddQuotes + \pagebreak %% 2011/10/10 +%% <- keeping 2012/11/29 for \pagebreak within blogdot.sty \section{Real Web Pages with 'lnavicol.sty'} \label{sec:lnavicol} This is the code and documentation of the package mentioned in @@ -260,7 +310,7 @@ horizontically (cf.~Sec.~\ref{sec:dot-type}): ``printing" a heading centered horizontically---even on slides whose remaining content is aligned \emph{flush left} (I have only used <digit>=2 so far), - \cmdboxitem|\begin{<textblock>}{<width>}| \ + \cmdboxitem|\begin{textblock}{<width>}| \ %% not metavar 2012/07/19 ``printing" the content of a `{textblock}' environment with maximum line width <width> flush left, while that ``block" as a whole may be centered @@ -386,3 +436,9 @@ with morehype RELEASE r0.4 in page head 2011/11/09 so use \file with new makedoc.cfg for hyperref; \CSS 2011/11/23 \secref +2012/07/19 `textblock' not metavar +2012/08/07 three section levels +2012/10/03 ize -> ese, some restructuring, corr. \HeaderLines +2012/10/05 adjusted \HeaderLines (differ!) +2012/11/29 adding `blogligs' and `markblog' +2012/11/30 hello world, texblog sample removed, url foots |