root/gaphor-doc/trunk/texfloatexample.tex

Revision 710, 457 bytes (checked in by wrobell, 3 years ago)

- use docbook 4.2
- added chapter about using gaphor diagrams in project documentation

with subsection about TeX/LaTeX

- use xinclude instead of system entities for chapter inclusion
- use gaphorconvert to convert files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 \documentclass{article}
2
3 \usepackage{graphicx}
4 \usepackage{float}
5 \newfloat{diagram}{ht}{drg}
6 \floatname{diagram}{Diagram}
7
8 \begin{document}
9
10 \begin{diagram}
11     \includegraphics[width=.8\textwidth]{pdfdiagrams/Documentation_Example/DocBook/Classes}
12     \caption{DocBook documentation example}\label{diag:docbook}
13 \end{diagram}
14 DocBook example is on diagram~\ref{diag:docbook}
15
16 % generate list of diagrams
17 \listof{diagram}{List of Diagrams}
18
19 \end{document}
Note: See TracBrowser for help on using the browser.