diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-23 22:00:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-23 22:00:27 +0000 |
commit | a312d5264ce16bf7014edb5c0da256772ef5e33b (patch) | |
tree | 55f6e08732b73b9983daa001990416e9c88173cb /Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt | |
parent | 69138b92d7784154c2db4471d176e3027815336a (diff) |
lwarp (22feb17)
git-svn-id: svn://tug.org/texlive/trunk@43317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt')
-rw-r--r-- | Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt b/Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt new file mode 100644 index 00000000000..89da7124729 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lwarp/lwarp_tutorial.txt @@ -0,0 +1,77 @@ + +% Save this as tutorial.tex for the lwarp package tutorial. + +\documentclass{book} + +\usepackage{iftex} + +% --- LOAD FONT SELECTION AND ENCODING BEFORE LOADING LWARP --- +\ifPDFTeX +\usepackage{lmodern} % pdflatex +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\else +\usepackage{fontspec} % XeLaTeX or LuaLaTeX +\fi + +% --- HTML FILENAME AND LATEXMK SETTINGS --- +% \newcommand{\HomeHTMLFilename}{index} % Filename of the homepage. +% \newcommand{\HTMLFileName}{node-} % Filename prefix of other pages. +% \newcommand{\UseLatexmk}{true}% Uncomment to use latexmk + +% --- LWARP IS LOADED NEXT --- +\usepackage{lwarp-newproject} % Possibly with the [lwarpmk] option. +\usepackage{lwarp} +% \boolfalse{FileSectionNames} % If false, numbers the files. + +% --- OTHER PACKAGES ARE LOADED AFTER LWARP --- +\usepackage{makeidx} \makeindex +\usepackage{xcolor} + +\usepackage{hyperref,cleveref} % LOAD THESE LAST! + +% --- LATEX AND HTML CUSTOMIZATION --- +\title{The Lwarp Tutorial} +\author{Some Author} +\setcounter{tocdepth}{2} % Include subsections in the TOC. +\setcounter{secnumdepth}{2} % Number down to subsections. +\setcounter{FileDepth}{1} % Split HTML files at sections +\booltrue{CombineHigherDepths} % Combine parts/chapters/sections +\setcounter{SideTOCDepth}{1} % Include subsections in the sideTOC +\SetFirstPageTop{Name and \fbox{HOMEPAGE LOGO}} +\SetPageTop{\fbox{LOGO}} +\SetPageBottom{Contact Information and Copyright} +\NewCSS{lwarp_sagebrush.css} + +\begin{document} +\maketitle % (or a titlepage environment) + +% --- An abstract may be placed here. --- + +\tableofcontents \listoffigures % --- MUST BE BEFORE THE FIRST SECTION. + +\chapter{First chapter} + +\section{A section} + +This is some text which is indexed.\index{Some text.} + +\subsection{A subsection} + +See \cref{fig:withtext}. + +\begin{figure}\begin{center} +\fbox{\textcolor{blue!50!green}{Text in a figure.}} +\caption{A figure with text\label{fig:withtext}} +\end{center}\end{figure} + +\section{Some math} + +Inline math: $r = r_0 + vt - \frac{1}{2}at^2$ +\begin{equation} +a^2 + b^2 = c^2 +\end{equation} + +\printindex + +\end{document} |