summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/codehigh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-07 21:38:39 +0000
committerKarl Berry <karl@freefriends.org>2022-02-07 21:38:39 +0000
commit5f859dcd83d8e74e5fe1bef6974ba7fad01df478 (patch)
treee2e1a9c9b59f4f03bb31f6fd302c8502c72d6f75 /Master/texmf-dist/doc/latex/codehigh
parentab0d6a22692ee0b4383c0ae8c4c456b3dc00d458 (diff)
codehigh (7feb22)
git-svn-id: svn://tug.org/texlive/trunk@61929 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/codehigh')
-rw-r--r--Master/texmf-dist/doc/latex/codehigh/README.txt (renamed from Master/texmf-dist/doc/latex/codehigh/README)0
-rw-r--r--Master/texmf-dist/doc/latex/codehigh/codehigh.pdfbin104400 -> 115099 bytes
-rw-r--r--Master/texmf-dist/doc/latex/codehigh/codehigh.tex28
3 files changed, 17 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/codehigh/README b/Master/texmf-dist/doc/latex/codehigh/README.txt
index 302880b5bd6..302880b5bd6 100644
--- a/Master/texmf-dist/doc/latex/codehigh/README
+++ b/Master/texmf-dist/doc/latex/codehigh/README.txt
diff --git a/Master/texmf-dist/doc/latex/codehigh/codehigh.pdf b/Master/texmf-dist/doc/latex/codehigh/codehigh.pdf
index d1569be86dd..354cc684255 100644
--- a/Master/texmf-dist/doc/latex/codehigh/codehigh.pdf
+++ b/Master/texmf-dist/doc/latex/codehigh/codehigh.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/codehigh/codehigh.tex b/Master/texmf-dist/doc/latex/codehigh/codehigh.tex
index 950ad653c83..35f648dfe1d 100644
--- a/Master/texmf-dist/doc/latex/codehigh/codehigh.tex
+++ b/Master/texmf-dist/doc/latex/codehigh/codehigh.tex
@@ -2,6 +2,13 @@
\documentclass[oneside]{book}
\usepackage[a4paper,margin=2cm]{geometry}
+\newcommand*{\myversion}{2022D}
+\newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)}
+\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
+
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{4pt plus 1pt minus 1pt}
+
\usepackage{codehigh}
\usepackage{hyperref}
\hypersetup{
@@ -10,10 +17,6 @@
linkcolor=green3,
}
-\newcommand*{\myversion}{2021C}
-\newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)}
-\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
-
\begin{document}
\title{\textsf{\color{green3}Codehigh: Highlight Codes and Demos with l3RegEx and LPeg}}
@@ -23,7 +26,7 @@
\tableofcontents
-\chapter{Package Interface}
+\chapter{Package Interfaces}
\section{Introduction}
@@ -35,9 +38,9 @@ Therefore in LuaTeX the package provides another way to highlight code: using \v
\footnote{\url{http://www.inf.puc-rio.br/~roberto/lpeg/}}.
\verb!LPeg! is much more powerful and faster than \verb!l3regex!.
-At present, this package is in \underline{\color{red3}\textbf{experimental}} status.
-Don’t use it in important documents, unless you have time
-to update them for the newer versions of \verb!codehigh! package in the future.
+%At present, this package is in \underline{\color{red3}\textbf{experimental}} status.
+%Don’t use it in important documents, unless you have time
+%to update them for the newer versions of \verb!codehigh! package in the future.
\section{Highlighting Code}
@@ -76,7 +79,7 @@ The following example is typeset by \verb!codehigh! environment with option \ver
}
\end{codehigh}
This language is for highlighting LaTeX2 classes and packages.
-Note that private commands and public commands are highlighted with different colors.
+It highlights private commands and public commands with different colors.
The following example is typeset by \verb!codehigh! environment with option \verb!language=latex/latex3!.
\begin{codehigh}[language=latex/latex3]
@@ -91,7 +94,7 @@ The following example is typeset by \verb!codehigh! environment with option \ver
}
\end{codehigh}
This language is for highlighting LaTeX3 classes and packages.
-Note that private commands/variables and public commands/variables are highlighted with different colors.
+It highlights private commands/variables and public commands/variables with different colors.
The following example is typeset by \verb!codehigh! environment with option \verb!language=latex/math!.
\begin{codehigh}[language=latex/math]
@@ -147,6 +150,9 @@ The last chapter of this manual is typeset with the following code line:
\dochighinput[language=latex/latex3]{codehigh.sty}
\end{codehigh}
+In reading an input file, lines starting wtih \verb!%%%! will be omitted,
+and lines starting with \verb!%%>! will be extracted and typeset as normal text.
+
\section{Customization}
The following example changes default background colors with \verb!\CodeHigh! command:
@@ -171,7 +177,7 @@ Note that \verb!codehigh! package will load \verb!ninecolors!%
To modify or add languages and themes, please read the source files
\verb!codehigh.sty! and \verb!codehigh.lua! for reference.
-\chapter{Source Code}
+\chapter{The Source Code}
\dochighinput[language=latex/latex3]{codehigh.sty}