⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tex2rtf.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 5 页
字号:
which are available in the WIN32 SDK and with Windows 95 compilers.Tex2RTF can produce a Windows 95 {\tt .cnt} file if {\it winHelpContents}\index{CNT file} is switchedon. This file is used to generate the new-style contents page, allowinghierarchical browsing of the topic contents. In fact this file can be usedwith ordinary Windows 3.1 files on Windows 95: so to hedge your bets,generate a Windows 3.1 help file along with {\tt .cnt} file.Tex2RTF also generates (optionally) a {\tt .hpj} (Help Project) file\index{HPJ file} which isfed to the help compiler and specifies the RTF file being used amongstother things. In WinHelp 4 mode, Tex2RTF adds entries to the projectto enhance the appearance of the help file. In particular, thenon-scrolling (topic title) region is coloured grey, and the restis coloured a light yellow in keeping with other Windows 95 helpfiles.\normalbox{Tip: you can maintain two versions of a help fileby specifying an alternative {\tt .ini} file on the commandline when invoking Tex2RTF, and compiling to a different directory.Tex2RTF instructs the help compiler to use the input file directoryto find bitmaps and metafiles, so using a different output directoryis not a problem.}There is a slight wrinkle with generation of the {\tt .cnt} file:to work around a `feature' in the Windows 95 help compiler, Tex2RTF may insertextra book icons in the contents page. So your contents pagemay not exactly match the structure in your LaTeX file.`Advanced features' which are implemented for WinHelp include:\begin{itemize}\itemsep=0pt\item Transparency: \commandref{settransparency}{settransparency} command\item Colour: \commandref{definecolour}{definecolour}, \commandref{fcol}{fcol}, \commandref{bcol}{bcol} commands\item Hot spot appearance: \commandref{sethotspotcolour}{sethotspotcolour}, \commandref{sethotspotunderline}{sethotspotunderline} commands\end{itemize}Tex2RTF automatically generates browse buttons for jumping to theabove, previous and next topics. See \helpref{RTF/WinHelp options}{rtfwinhelpoptions} forrelevant initialisation file switches.\section{Authoring linear RTF documents}\index{RTF}%Linear RTF documents come in two main flavours. It can produce simpleRTF that can be read by a wide variety of readers, such asWindows 95 WordPad, the Windows 95 viewer, and most word processors.Tex2RTF can also output MS Word compatible RTF which has specialfields for contents page and index formatting, headings, andother enhancements.Use the {\it useWord} initialisation file flag to switch Word modeon or off.Hypertext links (using \verb$\helpref$ and other commands) will be formatted asbold `anchor' text plus a section or figure number in parentheses.In Word mode, using an index section generates a proper Word index.Similarly, a Word table of contents, list of figures, list of tablesand page reference may be generated.See \helpref{RTF/WinHelp options}{rtfwinhelpoptions} forrelevant initialisation file switches.\section{Authoring wxHelp documents}\index{wxHelp}%The wxHelp (.xlp) file is the most basic kind of file that Tex2RTFcan handle. Since spacing is passed through to the output, you need toformat your input document appropriately, with lines of reasonable length.The generated xlp file is an ASCII file that can be read directly bywxHelp, the generic wxWidgets help viewer.\chapter{Command reference}\index{command reference}%\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%\setfooter{\thepage}{}{}{}{}{\thepage}%The following lists commands which are recognised by the converters. The readercan assume that commands not mentioned here are unrecognised or ignored.Each command is listed with its name, the number of arguments it takes(excluding optional arguments), and a description. Note that if thecommand is used as an environment (using \verb$\begin$ and \verb$\end$) thenthe number of arguments must be either one or two. For example, the\rtfsp\verb$\tabular$ environment takes two arguments: a first argument forspecifying the formatting, and the second argument for the body of theenvironment.\begin{verbatim}    \begin{tabular}{|l|l|}    \row{One&Two}    \row{Three&Four}    \end{tabular}\end{verbatim}\section{\LaTeX\ Commands}\subsection*{abstract:1}\label{abstract}This standard \LaTeX\ environment prepares an abstract page, and istreated as an ordinary chapter or section in on-line help.\subsection*{addcontentsline:3}\label{addcontentsline}Adds a chapter title to the contents page. Linear RTF. Rarely required.%\subsection*{appendix}%\subsection*{arabic}%\subsection*{array}\subsection*{author:1}\label{author}Defines the author, for output when \verb$\maketitle$ is used.\subsection*{backslash:0}\label{backslash}Outputs a backslash in math mode (should be enclosed by two dollar symbols).\subsection*{bf:1}\label{bf}Specifies bold font.\subsection*{bffamily:1}\label{bffamily}Specifies bold font.\subsection*{bibitem:2}\label{bibitem}For parsing convenience, \verb$\bibitem$ requires two arguments: a cite key and item.\rtfsp\LaTeX\ syntax permits writing this as if it were two arguments,even though it is in fact only one. This command is used withina \commandrefn{thebibliography}{thebibliography} environment. The preferredmethod is to store references in {\tt .bib} files and use the \commandrefn{bibliography}{bibliographycmd}\rtfspcommand to generate a bibliography section automatically.\subsection*{bibliographystyle:1}\label{bibliographystyle}Currently doesn't affect the style of bibliography, but probably willin the future.\subsection*{bibliography:0}\label{bibliographycmd}Includes the bibliography at this point in the document. See the sectionon \helpref{bibliographies}{bibsection}.%\subsection*{caption*}\subsection*{caption:1}\label{caption}Specifies a caption (within a \commandrefn{figure}{figure} or \commandrefn{table}{table} environment). This maybe followed immediately by a \commandrefn{label}{label} command.\subsection*{cdots:0}\label{cdots}Outputs three dots.\subsection*{centerline:1}\label{centerline}Centres (or centers!) a line of text.%\subsection*{centering}\subsection*{center:1}\label{center}Centres a block of text.\subsection*{chapter:1}\label{chapter}Outputs a chapter heading. If the chapter's name is Popups\index{popups}, the chapter title will not beput in the contents, to allow popups to be placed in a document without the popupsections being directly accessible.\subsection*{chapter*:1}\label{chaptersX}Outputs a chapter heading with no contents entry.\subsection*{cite:1}\label{cite}Cite a reference. The argument is a reference key as defined in a \LaTeX\ {\tt .bib}\rtfspfile.\subsection*{comment:1}\label{comment}An environment that allows large comments in \LaTeX\ files: the argumentis ignored in all formats. Useful for commenting out parts of files thatcannot be handled by \LaTeX, such as the picture environment. See also\rtfsp\commandrefn{toocomplex}{toocomplex}.\subsection*{date:1}\label{date}Specifies the date of a document; only output by \commandrefn{maketitle}{maketitle}.\subsection*{description:1}\label{description}A list environment, where each \commandrefn{item}{item} command must befollowed by optional square-bracketed text which will be highlighted.%\subsection*{destruct:1}\label{destruct}\subsection*{document:1}\label{document}This environment should enclose the body of a document.\subsection*{documentstyle:1}\label{documentstyle}Specifies the main style (report, article etc.) and, optionally, style filessuch as {\tt texhelp.sty}. A report has \commandrefn{chapters}{chapter}, while an article's top-levelsections are specified using \commandrefn{section}{section}.%\subsection*{doublespace}\label{doublespace}\subsection*{em:1}\label{em}Emphasizes text (italic in RTF).\subsection*{emph:1}\label{emph}Same as \commandrefn{em}{em}.\subsection*{enumerate:1}\label{enumerate}Enumerate list environment: numbers the \commandrefn{items}{item}.%\subsection*{equation}\label{equation}%\subsection*{evensidemargin}%\subsection*{fbox:1}\label{fbox}\subsection*{figure:1}\label{figure}A figure environment: does nothing special, except allows interpretation ofembedded \helpref{caption}{caption} commands as figures rather than (say) tables.\subsection*{flushleft:1}\label{flushleft}Flushes the given text to the left margin.\subsection*{flushright:1}\label{flushright}Flushes the given text to the right margin.%\subsection*{footheight}\label{footheight}\subsection*{footnote:1}\label{footnote}In linear RTF, a footnote is created. Whether this appears at the end ofthe section or the bottom of the page appears to depend on the currentdocument style, at least for MS Word 6.0 for Windows. The default seemsto be to put the footnotes at the end of the section, which is probablynot the best assumption.In WinHelp RTF, a bracketed number is generated for the footnoteand the footnote becomes a popup topic. It is probably preferableto change footnote commands to \commandref{footnotepopup}{footnotepopup},or \commandref{popref}{popref} references to glossary entries.This command is not supported for formats other than \LaTeX,linear RTF and WinHelp RTF.\subsection*{hline:0}\label{hline}Within a \commandrefn{tabular}{tabular} environment, draws a horizontalrule below the current row. Note that this does not work in RTF for thelast row of a table, in which case the command \commandrefn{ruledrow}{ruledrow}\rtfspshould be used instead.\subsection*{hrule:0}\label{hrule}Draws a horizontal line below the current paragraph. For example:\begin{verbatim}    This paragraph should have a horizontal rule following it.\hrule\end{verbatim}gives:This paragraph should have a horizontal rule following it.\hrule%\subsection*{hspace*}\label{hspaceX}%\subsection*{hspace}\label{hspace}%\subsection*{hskip*}\label{hskipX}%\subsection*{hskip}\label{hskip}\subsection*{huge:1}\label{huge1}Outputs the argument in huge text.\subsection*{Huge:1}\label{Huge2}Outputs the argument in huger text than \commandrefn{huge}{huge1}.\subsection*{HUGE:1}\label{HUGE3}Outputs the argument in huger text than \commandrefn{Huge}{Huge2}.\subsection*{include:1}\label{include}Include the given file. The command must not be preceded by any whitespace,and spurious whitespace between elements of the command will alsotrip up Tex2RTF.\subsection*{index:1}\label{index}In WinHelp mode, adds a keyword to the keyword list for the currenttopic. This keyword must currently be straight text, with no embeddedcommands. The conversion process must be run twice (without quittingTex2RTF inbetween) to resolve the keyword references.\subsection*{input:1}\label{input}I

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -