| 1 |
\documentclass[12pt]{report} |
| 2 |
\usepackage[utf8x]{inputenc} |
| 3 |
|
| 4 |
%Warning: tipa declares many non-standard macros used by utf8x to |
| 5 |
%interpret utf8 characters but extra packages might have to be added |
| 6 |
%such as "textgreek" for Greek letters not already in tipa |
| 7 |
%or "stmaryrd" for mathematical symbols. |
| 8 |
%Utf8 codes missing a LaTeX interpretation can be defined by using |
| 9 |
%\DeclareUnicodeCharacter{code}{interpretation}. |
| 10 |
%Use coqdoc's option -p to add new packages or declarations. |
| 11 |
\usepackage{tipa} |
| 12 |
|
| 13 |
\usepackage[T1]{fontenc} |
| 14 |
\usepackage{fullpage} |
| 15 |
\usepackage{coqdoc} |
| 16 |
\usepackage{amsmath,amssymb} |
| 17 |
\usepackage{url} |
| 18 |
\begin{document} |
| 19 |
\coqlibrary{Coqdoc.verbatim}{Library }{Coqdoc.verbatim} |
| 20 |
|
| 21 |
\begin{coqdoccode} |
| 22 |
\end{coqdoccode} |
| 23 |
|
| 24 |
|
| 25 |
\begin{verbatim} |
| 26 |
uint32_t shift_right( uint32_t a, uint32_t shift ) |
| 27 |
{ |
| 28 |
return a >> shift; |
| 29 |
} |
| 30 |
\end{verbatim} |
| 31 |
|
| 32 |
|
| 33 |
This line and the following shows \texttt{verbatim } text: |
| 34 |
|
| 35 |
|
| 36 |
\texttt{ A stand-alone inline verbatim } |
| 37 |
|
| 38 |
|
| 39 |
\texttt{ A non-ended inline verbatim to test line location |
| 40 |
} |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
\begin{itemize} |
| 45 |
\item item 1 |
| 46 |
|
| 47 |
\item item 2 is \texttt{verbatim} |
| 48 |
|
| 49 |
\item item 3 is \texttt{verbatim} too |
| 50 |
\coqdoceol |
| 51 |
\coqdocemptyline |
| 52 |
\coqdocnoindent |
| 53 |
\coqdocvar{A} \coqdocvar{coq} \coqdocvar{block} : \coqdockw{\ensuremath{\forall}} \coqdocvar{n}, \coqdocvar{n} = 0 |
| 54 |
|
| 55 |
\coqdocemptyline |
| 56 |
|
| 57 |
\item \texttt{verbatim} again, and a formula \coqdocvar{True} \ensuremath{\rightarrow} \coqdocvar{False} |
| 58 |
|
| 59 |
\item |
| 60 |
\begin{verbatim} |
| 61 |
multiline |
| 62 |
verbatim |
| 63 |
\end{verbatim} |
| 64 |
|
| 65 |
\item last item |
| 66 |
|
| 67 |
\end{itemize} |
| 68 |
|
| 69 |
|
| 70 |
\begin{verbatim} |
| 71 |
Γ ⊢ A |
| 72 |
---- |
| 73 |
Γ ⊢ A ∨ B |
| 74 |
\end{verbatim} |
| 75 |
|
| 76 |
|
| 77 |
\begin{verbatim} |
| 78 |
A non-ended block verbatim to test line location |
| 79 |
|
| 80 |
*) |
| 81 |
\end{verbatim} |
| 82 |
\begin{coqdoccode} |
| 83 |
\end{coqdoccode} |
| 84 |
\end{document} |