| 1 |
% $Id$
|
| 2 |
% sample document in LaTeX format
|
| 3 |
% for testing latex.module features
|
| 4 |
|
| 5 |
\documentclass[12pt]{article}
|
| 6 |
\usepackage{fancyhdr}
|
| 7 |
|
| 8 |
\title{latex.module}
|
| 9 |
\author{Axel <axel@drupal.ru>}
|
| 10 |
|
| 11 |
\begin{document}
|
| 12 |
|
| 13 |
\section{Intro}
|
| 14 |
|
| 15 |
With {\tt latex.module} you may to use some of ``\TeX'' and ``\LaTeX'' commands
|
| 16 |
in content of a site.
|
| 17 |
|
| 18 |
|
| 19 |
\section{Requirements}
|
| 20 |
|
| 21 |
This module tested with Drupal 4.6,
|
| 22 |
|
| 23 |
\section{Installation}
|
| 24 |
|
| 25 |
\begin{enumerate}
|
| 26 |
\item Untar downloaded archive. Copy the latex.module to the Drupal
|
| 27 |
{\tt modules/} directory. Drupal should automatically detect it.
|
| 28 |
\item Enable the module in ``Site Configuration'' - ``Modules''.
|
| 29 |
\item There are a lot of options in admin: go to "Site configuration" - "Filters" and set suitable mode of filtering an unrecognized commands (you may also complete switch off filter here).
|
| 30 |
\item You may add you custom command replacements in <<Site
|
| 31 |
configuration>> - <<Modules>> - <<Latex>>.
|
| 32 |
\end{enumerate}
|
| 33 |
|
| 34 |
\section{Custom commands}
|
| 35 |
|
| 36 |
Define your custom regexps (one per line) and separate pattern and replace part with
|
| 37 |
one space character. If you need space in pattern part, then use octal code for space
|
| 38 |
representation - "040". Also point suitable regexp modifier for pattern.
|
| 39 |
|
| 40 |
Some examples of a custom commands:
|
| 41 |
|
| 42 |
\begin{verbatim}
|
| 43 |
/\\cmdline{(.*)}/U <pre>$1</pre>
|
| 44 |
/\\\htmladdnormallink{(.*)}{(.*)}/U <a href="$2">$1</a>
|
| 45 |
/\\debian/U <i>Debian </i>
|
| 46 |
\end{verbatim}
|
| 47 |
|
| 48 |
|
| 49 |
\section{Examples of TeX commands}
|
| 50 |
|
| 51 |
Different text styles: \\
|
| 52 |
\textbf{This text is bold style.} \\ \texttt{This text is typewriter
|
| 53 |
style.} \\ \textit{This text is italic style.}
|
| 54 |
|
| 55 |
Footnote example \footnote{Footnotes abbreviated by first letter in footnote text. Probably they will marked with numbers in next module versions.} \footnote{Second sample footnote.}
|
| 56 |
|
| 57 |
Enumerated items \footnote{Third sample footnote.}:
|
| 58 |
\begin{enumerate}
|
| 59 |
\item Item \#1
|
| 60 |
\item Item \#{}2
|
| 61 |
\end{enumerate}
|
| 62 |
|
| 63 |
Unnumbered list:
|
| 64 |
\begin{itemize}
|
| 65 |
\item First line
|
| 66 |
\item Second line
|
| 67 |
\item And so on\dots
|
| 68 |
\end{itemize}
|
| 69 |
|
| 70 |
\section{Author}
|
| 71 |
|
| 72 |
Send comments to axel@drupal.ru.
|
| 73 |
If you speak Russian, welcome to a Russian Drupal community at http://drupal.ru.
|
| 74 |
|
| 75 |
\end{document}
|