1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
\documentclass{article}
\newif\iflatextortf
\latextortffalse %ignored by latex2rtf
\begin{document}
\iflatextortf
Most of this first page will be blank in RTF because we begin this file with an
include file. We have a short message from our rtf text that will start on the
next page.
\include{inc_test}
We return you to the normal latex file now.
\fi
\section{This is the first section in file \texttt{include.tex}}
\label{section01}
Here is some text to create a paragraph or two so that we
can see if this works or not. It will be interesting to see
if the labels work properly. As I create these testing files
I realize that I need to add parsing support for \verb#\input#
and \verb#\include# in the getSection function. Furthermore,
after reading the \LaTeX{} book, I see that \verb#\include#
files will all start on a new page. This is not the case for
\verb#\input# files. Here is a reference to the next section \ref{section02}
in this file,
and one to the first subsection in the first include file \texttt{include1} \ref{section11}.
This is a reference \ref{section31} to the first subsubsection in
the file \texttt{include3} that is included by \texttt{include2}.
\include{include1}
\include{include2}
% \include{include1} should not be included!
\section{This is the second section in file \texttt{include.tex}}
\label{section02}
Here is some text to create a paragraph or two so that we
can see if this works or not. It will be interesting to see
if the labels work properly. As I create these testing files
I realize that I need to add parsing support for \verb#\input#
and \verb#\include# in the getSection function. Furthermore,
after reading the \LaTeX{} book, I see that \verb#\include#
files will all start on a new page. This is not the case for
\verb#\input# files. Here is a reference to the first subsection
in \texttt{include2.tex} \ref{section21}.
Here is a reference to the first subsection in \texttt{include1.tex}
\ref{section11}. And finally one to the first section of this
file \ref{section01}.
\input include5.tex
This is the content following \verb#\input include5.tex#. There should be no
pagebreak.
\end{document}
XXXX
more text
YYYY
|