home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / lyx21041.zip / XFree86 / lib / X11 / lyx / reLyX / reLyX.pod (.txt) < prev    next >
LaTeX Document  |  1999-05-02  |  26KB  |  489 lines

  1. =head1 NAME
  2. B<reLyX> - translate well-behaved LaTeX into LyX
  3. =head1 SYNOPSIS
  4. The simplest way to use B<reLyX> is via the File->Import command in LyX. (This
  5. option is available starting with version 1.0.0.) That runs B<reLyX> on
  6. the given file and loads the resulting file into LyX. You should try that
  7. first, and call it from the command line only if you need to use more
  8. complicated options.
  9. B<reLyX> [ B<-c> I<textclass> ] [ B<-df> ] [ B<-o> I<outputdir> ] [B<-n>]
  10. S<[ B<-r> I<renv1>[,I<renv2>...]]> S<[ B<-s> I<sfile1>[,I<sfile2>...]]>
  11. F<inputfile>
  12. B<reLyX> B<-p> B<-c> I<textclass> [ B<-df> ] [ B<-o> I<outputdir> ]
  13. S<[ B<-r> I<renv1>[,I<renv2>...]]> S<[ B<-s> I<sfile1>[,I<sfile2>...]]>
  14. F<inputfiles>
  15. B<reLyX> B<-h>
  16. =head1 OPTIONS
  17. =over 4
  18. =item B<-c>
  19. Class. By default, when B<reLyX> sees a C<\documentclass{foo}> command, it
  20. creates a file of textclass "foo" and reads the LyX layout file for that class
  21. (something like /usr/local/share/lyx/layouts/foo.layout OR
  22. B<HOME>/.lyx/layouts/foo.layout).  Use B<-c> to declare a different textclass
  23. (and read a different layout file).
  24. =item B<-d>
  25. Debug. By default, B<reLyX> gives sparse output and deletes the temporary files
  26. which were created during translation. Using the B<-d> flag will create much
  27. more output (both to stdout and stderr) and leave the temporary files around.
  28. =item B<-f>
  29. Force. B<reLyX> will not run if the .lyx file it would generate already exists
  30. Use the B<-f> option (carefully) to clobber any existing files.
  31. =item B<-h>
  32. Help. Print out usage information and quit.
  33. =item B<-n>
  34. Noweb. Translate a noweb (aka literate programming) file. This should be
  35. (almost?) equivalent to running "noweb2lyx foo.tex foo.lyx". This option
  36. requires the B<-c> option.
  37. =item B<-o>
  38. Output directory. With this option, all temporary files and LyX output files
  39. (for the given input file, for any included files, or for any file fragments
  40. given with the B<-p> option) will be put into I<outputdir>. Otherwise, for
  41. each file F<dir/foo.tex>, the temporary files and the LyX output file will be
  42. created in F<dir>. This can be useful if a file includes files from other
  43. directories which you want to consolidate in one directory, or if you don't
  44. have write permission on the directory the LaTeX files are in.
  45. =item B<-p>
  46. Partial file. The input files are LaTeX fragments, with no preamble matter or
  47. C<\begin{document}> commands. This option requires the B<-c> option, since there
  48. are no C<\documentclass> commands in the files B<reLyX> is translating. When
  49. using this option, you can translate more than one file, as long as all files
  50. are the same class. The LyX file created by B<reLyX> can be included in an
  51. existing LyX file using the "Include LyX File" command from LyX's Insert menu.
  52. =item B<-r>
  53. Regular environments (see L<"Syntax Files">).  If you give more than one
  54. environment, separate them with commas (not spaces). You'll probably need to
  55. quote the environment list, especially if it has asterisk environments (foo*)
  56. in it. If you use this command often, considering creating a personal syntax
  57. file.
  58. =item B<-s>
  59. Syntax files. Input (one or more quoted, comma-separated) syntax files to read
  60. in addition to the default. (see L<"Syntax Files"> for details).
  61. =back
  62. =head1 DESCRIPTION
  63. =head2 Introduction
  64. B<reLyX> will create a LyX file F<dir/foo.lyx> from the LaTeX file
  65. F<dir/foo.tex> (unless the B<-o> option is used).
  66. Suffixes .tex, .ltx and .latex are supported. If F<inputfile>
  67. does not exist and does not have one of these suffixes, B<reLyX> will try to
  68. translate F<inputfile.tex>. (This is similar to the behavior of LaTeX.)
  69. The purpose of B<reLyX> is to translate I<well-behaved> LaTeX2e into LyX. If
  70. your LaTeX file doesn't compile---or if you do weird things, like redefining
  71. standard LaTex commands---it may choke. LaTeX209 will often be translated
  72. correctly, but it's not guaranteed.
  73. B<reLyX> has some bugs and lacks a few features. However, its main goals are:
  74. =over 4
  75. =item *
  76. Get through a well-behaved LaTeX2e file without crashing
  77. =item *
  78. Translate a lot of that file.
  79. =item *
  80. Localize the parts that can't be translated and copy them in TeX mode
  81. =back 4
  82. It achieves these main goals pretty well on most files.
  83. There are many improvements that can and will be made to B<reLyX> in the
  84. future. However, we wanted to get B<reLyX> out there early on, to make
  85. it easier for new LyX users to read in their existing LaTeX files.
  86. =head2 Usage
  87. Here's a more lengthy description of what you should do to translate a LaTeX
  88. document into LyX.
  89. =over 4
  90. =item *
  91. Run B<reLyX>.
  92. B<reLyX> will inform you of its progress and give any warnings to stderr, so if
  93. you don't want any output at all, try (in csh) 'reLyX foo.tex >& /dev/null'.
  94. You should NOT redirect standard output to F<foo.lyx>. 
  95. =item *
  96. Run LyX (version 0.12 or 1.0 or later) on the resulting .lyx file.
  97. In theory, most of the file will have been translated, and anything that's
  98. untranslatable will be highlighted in red (TeX mode). In theory, LyX will be
  99. able to read in the file, and to create printed documents from it, because all
  100. that untranslated red stuff will be passed directly back to LaTeX, which LyX 
  101. uses as a backend. Unfortunately, reality doesn't always reflect theory. If
  102. B<reLyX> crashes, or LyX cannot read the generated LyX file, see L</BUGS>,
  103. or the F<BUGS> file.
  104. =item *
  105. Change things that are highlighted in red (TeX mode) by hand in LyX.
  106. As mentioned above, you should be able to print out the LyX file even without
  107. doing this. However, changing a command in TeX mode to the corresponding LyX
  108. object will allow you to take advantage of LyX's WYSIWYM editing.
  109. B<reLyX> is not guaranteed to create a LyX file which generates exactly the same
  110. output as the LaTeX file, but it should come close. B<relyX> will generally err
  111. on the side of translating less to ensure that dvi or ps files are accurate,
  112. even though this leads to more "evil red text" and less WYSIWYM.
  113. =item *
  114. PROOFREAD THE DOCUMENT!!
  115. I'm sure you were planning on doing this anyway, but it's particularly
  116. important after translating a LaTeX document. B<reLyX> is, at least now, better
  117. at "macro-translating" (translating the whole document) than
  118. "micro-translating" (translating every little detail). For example, you may see
  119. extra spaces or deleted spaces. Space handling has improved, but it's
  120. not perfect.
  121. =back
  122. =head2 What reLyX Can Handle
  123. B<reLyX> understands many LaTeX commands. It will translate:
  124. =over 4
  125. =item *
  126. regular text, including mini-commands like ~, '', C<\@>, C<\TeX>, as well as
  127. accented characters like C<\'{a}>, and the special cases ?` and !`
  128. =item *
  129. title commands like C<\author>, C<\date>, C<\title>, C<\thanks> and the
  130. abstract environment
  131. =item *
  132. heading commands like C<\section> including starred commands (C<\section*>)
  133. =item *
  134. Environments: quote, quotation, and verse; center, flushright, and flushleft
  135. =item *
  136. itemize, enumerate, and description environments, and their C<\item> commands.
  137. Also, well-behaved nested lists
  138. =item *
  139. cross-referencing commands: C<\ref>, C<\pageref>, C<\label>, and C<\cite>
  140. =item *
  141. C<\footnote> and C<\margin>
  142. =item *
  143. font-changing commands including C<\em>, C<\emph>, C<\textit>, and
  144. corresponding commands to change family, size, series, and shape
  145. =item * 
  146. C<\input{foo}> (or C<\input{foo.blah}>) and C<\include{foo}>. Plain TeX
  147. C<\input> command "C<\input foo.tex>" is also supported.
  148. =item *
  149. tabular environment, and commands that go inside it like C<\hline>, C<\cline>,
  150. and C<\multicolumn> (but see below)
  151. =item *
  152. float environments table and table*, as well as C<\caption> commands within
  153. =item *
  154. float environments figure and figure*, as well as graphics inclusion commands
  155. \epsf, \epsffile, \epsfbox, \epsfxsize, \epsfig, \psfig, and \includegraphics.
  156. Both the graphics and graphicx forms of \includegraphics are supported.
  157. Note, however, that many figures will not be translatable into LyX. See
  158. the section on "What LyX Can't Handle" below.
  159. =item *
  160. thebibliography environment and C<\bibitem> command, as well as BibTeX's
  161. C<\bibliography> and C<\bibliographystyle> commands
  162. =item *
  163. miscellaneous commands: C<\hfill>, C<\>C<\>, C<\noindent>, C<\ldots>...
  164. =item *
  165. documentclass-specific environments (and some commands) which can be 
  166. translated to LyX layouts
  167. =item *
  168. arguments to certain untranslatable commands (e.g. C<\mbox>)
  169. =back
  170. Some of this support may not be 100% yet. See below for details
  171. B<reLyX> copies math (almost) verbatim from your LaTeX file. Luckily, LyX reads 
  172. in LaTeX math, so (almost) any math which is supported by LyX should work just
  173. fine. A few math commands which are not supported by LyX will be replaced with
  174. their equivalents, e.g., C<\to> is converted to C<\rightarrow>. See
  175. L<"Syntax Files"> for more details.
  176. B<reLyX> will also copy any preamble commands (i.e., anything before
  177. C<\begin{document}>) verbatim, so fancy stuff you've got in your preamble
  178. should be conserved in dvi and printed documents, although it will not of
  179. course show up in the LyX window. Check Layout->LaTeX Preamble to make sure.
  180. =head2 What reLyX Can't Handle --- But it's OK
  181. =over 4
  182. =item *
  183. tabular* tables
  184. =item *
  185. minipages
  186. =item *
  187. spacing commands (C<\vspace>, C<\pagebreak>, C<\par>, ...)
  188. =item *
  189. C<\centering>, C<\raggedleft>, C<\raggedright>
  190. =item *
  191. C<\verb> and verbatim environment. B<reLyX> is careful to copy I<exactly> in
  192. this case, including comments and whitespace.
  193. =item *
  194. some unknown (e.g., user-defined) environments and commands
  195. =back
  196. B<reLyX> copies unknown commands, along with their arguments, verbatim into the
  197. LyX file. Also, if it sees a C<\begin{foo}> where it doesn't recognize the
  198. "foo" environment, it will copy verbatim until it sees C<\end{foo}> (unless
  199. you use the B<-r> option). Hopefully, then, most of these unknown commands
  200. won't cause B<reLyX> to break; they'll merely require you to do some editing
  201. once you've loaded the file up in LyX.  That should be less painful than
  202. editing either the .tex or the .lyx file using a text editor.
  203. =head2 What reLyX Handles Badly --- aka BUGS
  204. Since B<reLyX> is relatively new, it's got a number of problems.  As it
  205. matures, these bugs will be squished.
  206. If B<reLyX> is choking on something, or LyX can't read it after B<reLyX>
  207. translates it, the best thing to do is to put C<\begin{reLyXskip}> before the
  208. offending text, and C<\end{reLyXskip}> after it. I call this a "skip" block.
  209. B<reLyX> will copy this block exactly, in TeX mode. Then edit the resulting
  210. LyX file, and translate the unknown stuff by hand. The reLyXskip environment
  211. is magical; the C<\begin> and C<\end> commands will not be put into the LyX
  212. file.
  213. =over 4
  214. =item *
  215. "Exact" copying of unknown environments and commands isn't quite exact.
  216. Specifically, newlines and comments may be lost. This will yield ugly LyX, but
  217. in almost all cases the output will be the same. However, certain parts of the
  218. file will be copied perfectly, including whitespace and comments. This
  219. includes: the LaTeX preamble, verbatim environments and C<\verb> commands, and
  220. skip blocks.
  221. =item *
  222. B<reLyX> translates only a few options to the C<\documentclass> command.
  223. (Specifically 1[012]pt, [letter|legal|executive|a4|a5|b5]paper,
  224. [one|two]side, landscape, and [one|two]column.) Other options are placed in
  225. the "options" field in the Layout->Document popup.
  226. More importantly, B<reLyX> doesn't translate C<\usepackage> commands, margin 
  227. commands, C<\newcommands>, or, in fact, anything else from the preamble. It
  228. simply copies them into the LaTeX preamble. If you have margin commands in
  229. your preamble, then the LyX file will generate the right margins. However,
  230. these margins will override any margins you set in the LyX Layout->Paper
  231. popup. So you should remove the options from the preamble
  232. (Layout->Latex Preamble) to be safe. The same goes for setting your language
  233. with babel, C<\inputencoding>, C<\pagestyle>, etc.
  234. =item *
  235. The foil class has a couple bugs. B<reLyX> may do weird things with optional
  236. arguments to C<\foilhead> commands. Also, it may handle C<\begin{dinglist}>
  237. incorrectly (although the stuff in the environment should translate normally).
  238. =back
  239. Less significant bugs can be found in the F<BUGS> file.
  240. B<reLyX> is hopefully rather robust. As mentioned above, it may not translate
  241. your file perfectly, but it shouldn't crash. If it does crash---and the
  242. problem is not one of those mentioned above or in the F<BUGS> file---see
  243. L<"Bug Reports">.
  244. =head2 What LyX Can't Handle
  245. LyX itself is missing a couple features, such that even if B<reLyX> translates
  246. things perfectly, LyX may still have trouble reading it. If you really need
  247. these features, you can export your final document as LaTeX, and put them
  248. back in. See F<BUGS> for more details on these bugs.
  249. =over 4
  250. =item *
  251. For a number of commands, LyX does not support the optional argument. Examples
  252. include C<\chapter> (and other sectioning commands), and C<\\>.
  253. B<reLyX> will automatically discard the optional arguments with a warning to
  254. stdout.  LyX also ignores the width argument for the thebibliography
  255. environment.
  256. =item *
  257. Centering (or right or left justifying) works on full paragraphs.
  258. =item *
  259. LyX support for tables isn't perfect. For complicated tables, use a "skip"
  260. block, so that they will be copied in TeX mode.
  261. =item *
  262. The LyX math editor can't handle the AMS-LaTeX math environments align, split,
  263. etc. So those environments will be copied in TeX mode. You can change
  264. equation* environments to the exactly equivalent displaymath, and then they
  265. will be translated correctly.
  266. =item *
  267. Lyx does not support clipping or bounding boxes for included graphics files.
  268. Therefore, many graphics inclusion commands will be untranslatable, and
  269. copied in TeX mode. In certain cases, you might be able to translate the
  270. command by hand within LyX---for example, if you included a bounding box but
  271. the bounding box is already in the .eps file.
  272. LyX only allows figures to have sizes in in,cm, or percentages of \textwidth
  273. or \textheight (or \columnwidth). B<reLyX> will translate from other units, like
  274. pt or mm, but it cannot translate other lengths (e.g. if you wanted to scale a
  275. figure to size \topmargin for some reason). B<reLyX> will copy figures with
  276. untranslatable sizes in TeX mode. Again, you might be able to fix that within
  277. =back
  278. =head2 The Future of reLyX
  279. In the future, more commands and environments will be supported by B<reLyX>.
  280. Bugs will be eradicated.
  281. See the TODO file for details.
  282. =head1 EXAMPLES
  283. reLyX B<-df> B<-o> "my/dir" B<-r> "myenv" foo.tex > foo.debug
  284. The above will create a file my/dir/foo.lyx from foo.tex, overwriting if
  285. necessary.  When it finds a C<\begin{myenv} ... \end{myenv}> block, it will
  286. translate the stuff within the block, but copy the C<\begin> and C<\end>
  287. commands in TeX mode.  Finally, I'm going to keep the temporary files around
  288. (they will also be in my/dir/) and output lots of debugging information into
  289. the file foo.debug.
  290. reLyX B<-n> B<-c> "literate-article" foo.tex
  291. The above will change a noweb document into a LyX literate-article
  292. document. A user would do this if the noweb document had documentclass
  293. article.
  294. =head1 NOTES
  295. =head2 Bug Reports
  296. If B<reLyX> is crashing or otherwise acting strangely---in ways
  297. other than those described in L<"BUGS"> or the F<BUGS> file---then please run
  298. B<reLyX -d>.  That will allow you to figure out where in the reLyXing process
  299. it crashed. That, in turn, will allow you to write a better bug report, which
  300. will allow the developers to fix it more quickly and easily.
  301. Bug reports should be sent to the LyX developers' mailing list. Its address
  302. is currently lyx-devel@lists.lyx.org, but you can check the LyX home page,
  303. http://www.lyx.org if that bounces. If you are running B<reLyX> on a huge file,
  304. please do not send all of the output in your bug report. Just include the last
  305. ten or twenty lines of output, along with the piece of the LaTeX file it
  306. crashed on.  Or, even better, attach a small but complete file which causes
  307. the same problem as your original file.
  308. =head2 Implementation Details:
  309. B<reLyX> makes several "passes" in order to translate a TeX file. On each pass,
  310. it creates one or two files.
  311. =over 4
  312. =item Pass 0
  313. Before doing anything, read the syntax file (or files).
  314. =item Pass 1a
  315. Split preamble (anything before a C<\begin{document}> command) off the rest
  316. of the file. It saves the two pieces in separate files. This is necessary
  317. because there may be very strange stuff in a preamble. It also ignores
  318. anything after the C<\end{document}>, on the assumption that it isn't LaTeX.
  319. =item Pass 1b
  320. Translate the preamble. Currently, that just means translating the
  321. C<\documentclass> command and copying the rest exactly into the LyX preamble.
  322. Once you know what class the document is, read the LyX layout file for that
  323. class.
  324. =item Pass 2
  325. "Clean" the TeX file, generating slightly stricter LaTeX. This includes:
  326. =over 8
  327. =item *
  328. Change, e.g., x^2 to the equivalent but clearer x^{2}
  329. =item *
  330. Removing optional arguments that LyX can't handle (e.g., from C<\chapter>)
  331. =item *
  332. Changing C<{\em foo}> to C<\emph{foo}>, etc. This is necessary because LyX
  333. always writes out the non-local forms anyway. This should very rarely make a
  334. difference.
  335. =back
  336. =item Pass 3
  337. Translate LaTeX text, commands, and environments to LyX.
  338. =item Pass 4
  339. Put the two pieces back together, and do some final tweaking, to generate the
  340. LyX file
  341. =back
  342. If there are any C<\input> or C<\include> commands, B<reLyX> will loop back to
  343. the beginning and translate those. It assumes that the included files are the
  344. same class as the main file, and that they have no preamble matter. (If you
  345. have an C<\input> command in the preamble of a file, the command will be
  346. copied exactly into the LaTeX preamble portion of the LyX file, so the
  347. included file won't be translated.) So when translating included files, it
  348. skips passes 0 and 1.
  349. If B<reLyX> doesn't find a file you wanted to include, it will give a warning,
  350. but will continue to translate any files it does find.
  351. =head2 Layout Files
  352. B<reLyX> reads a LyX layout file to know how to handle LaTeX environments and
  353. commands which get translated to LyX layouts. This file will include all
  354. "normal" non-math environments (i.e., including quote and itemize, but not
  355. tabular, minipage, and some other fancy environments), and commands like
  356. C<\section> and C<\title>. If you want to reLyX a class that doesn't have an
  357. existing layout file, then you'll have to create a layout file. But you have
  358. to do this anyway, in order to LyX the file, since LyX depends on layout files
  359. to know how to display and process its files. Check the LyX documentation for
  360. help with this task (which can be hard or easy, depending on the class you
  361. want to create a layout file for.) If your class is quite similar to a class
  362. that has a layout file, then consider using the B<-c> option.
  363. =head2 Syntax Files
  364. B<reLyX> always reads at least one syntax file, called the default syntax file.
  365. B<reLyX> will read your personal syntax file if it exists; otherwise it will
  366. read the system-wide file. B<reLyX> will read additional syntax files if you
  367. specify them with the B<-s> option. (These extra files should have the same
  368. format as the default file, but will tend to be shorter, since they only have
  369. to specify extra commands not found in the default file.) A syntax file tells
  370. B<reLyX> a few things.
  371. First, it describes the syntax of each command, that is, how many required
  372. arguments and how many optional arguments the command takes. Knowing this
  373. makes it easier for B<reLyX> to copy (in TeX mode) commands that it doesn't
  374. know how to translate. The syntax file simply has a command, followed by
  375. braces or brackets describing its arguments in the correct order. For example,
  376. a syntax file entry C<\bibitem[]{}> means that the C<\bibitem> command takes
  377. an optional argument followed by a required one, while the entry C<\bf>
  378. means that the C<\bf> command takes no arguments at all.  When B<reLyX>
  379. encounters a token that it doesn't know how to translate into LyX, it will
  380. copy the token---along with the correct number of arguments---exactly.  If the
  381. token is not in the syntax file, then B<reLyX> just copies as many arguments
  382. as it finds.  This means that it may copy too much. But since the user can
  383. specify additional syntax files, that shouldn't happen often.
  384. Some commands that cannot be translated to LyX, like C<\mbox>, have as one of
  385. their arguments regular LaTeX text. If the string "translate" is put into an
  386. argument of an (untranslatable) command in the syntax file, then B<reLyX> will
  387. translate that argument instead of copying it verbatim. So, for example, the
  388. default syntax file has C<\raisebox{}[][]{translate}>. This means that the
  389. C<\raisebox> command and the first argument (and optional arguments if they
  390. exist) are copied in TeX mode, but the last argument (which may contain math,
  391. complicated LaTeX, other untranslatable commands, etc.) will be translated
  392. into LyX. You can't use "translate" on optional arguments.
  393. User-defined syntax files are allowed to define new commands and
  394. their syntax, or override the number of arguments for a command given in the
  395. default syntax file. (E.g., if you're using a style that gives an extra
  396. argument to some command...) However, this will only be useful for commands
  397. copied in TeX mode. Commands which are actually translated by B<reLyX> (like
  398. C<\item>) have their argument syntax hard-coded. The hard-coded commands are
  399. identified in the default syntax file.
  400. Second, the syntax file describes any "regular environments".  Usually, an
  401. entire unknown environment will be copied in TeX mode. If you define a regular
  402. environment "foo", though, then only the C<\begin{foo}> and C<\end{foo}>
  403. commands will be copied in TeX mode; the text within the environment will be
  404. treated (i.e., translated) by B<reLyX> as regular LaTeX, rather than being
  405. copied into TeX mode. Don't try to declare "tabbing" and "picture" as regular
  406. environments, as the text within those environments will confuse B<reLyX>; use
  407. this capability for new environments you create that have plain text or math
  408. or simple commands in them. You also can't declare unknown math environments
  409. (like equation*) as regular environments, either, since the LyX math editor
  410. won't understand them. The names of regular environments appear,
  411. whitespace-separated, between C<\begin{reLyXre}> and C<\end{reLyXre}>
  412. statements in the syntax file. (If you have a regular environment which you
  413. won't use very often, you can use the B<-r> option rather than writing a
  414. syntax file.)
  415. Third, the syntax file describes a math translation table. The LyX math editor
  416. doesn't support a few commands. For example, C<_> is supported, but the
  417. equivalent C<\sb> is not. Put any commands you'd like translate between
  418. C<\begin{reLyXmt}> and C<\end{reLyXmt}> statements. The statement
  419. "C<\| {\Vert}>" means that any C<\|> in math mode will be converted to
  420. "C<\Vert >" (in cases where a token made up of a backslash and a non-letter is
  421. translated to something with letters at the end, a space is added by B<reLyX>.
  422. That way, "C<\|a>" is correctly translated to "C<\Vert a>").
  423. =head2 Miscellaneous
  424. You need Perl version 5.002 or later to run B<reLyX>. <plug> If you don't have
  425. Perl, you should get it anyway (at http://www.perl.com), because it's a really
  426. useful tool for pretty much anything. </plug>
  427. =head1 DIAGNOSTICS
  428. B<reLyX> should always explain why it crashes, if it crashes. Some diagnostics
  429. may be very technical, though, if they come from the guts of the code.
  430. B<reLyX> gives much more information while running if you use the B<-d> option,
  431. but you shouldn't need that unless something goes wrong.
  432. When it's finished, B<reLyX> will tell you if it finished successfully or
  433. died due to some error.
  434. =head1 WARNINGS
  435. Always keep a copy of your original LaTeX files either under a different
  436. name or in a different directory. There are a couple ways in which using LyX
  437. could lead to overwriting the original LaTeX file.
  438. If you import foo.tex to create foo.lyx, then edit foo.lyx and want to
  439. re-export it, note that it will overwrite the original foo.tex. (LyX will ask
  440. you if you want to overwrite it.)
  441. If you have the \use_tempdir variable set to false in your lyxrc, then LyX
  442. will create its temporary files in your current directory, which means your
  443. LaTeX original may be overwritten (without a warning from LyX) when you "view
  444. dvi" or print the LyX document.
  445. =head1 FILES
  446. =over 4
  447. =item F<MY_LYXDIR>/layouts/*.layout
  448. User's personal layout files for document classes
  449. =item F<MY_LYXDIR>/reLyX/syntax.default
  450. User's personal syntax file
  451. =item F<LIBDIR>/layouts/*.layout
  452. System-wide layout files for document classes
  453. =item F<LIBDIR>/reLyX/syntax.default
  454. System-wide LaTeX syntax file
  455. =back
  456. F<LIBDIR> is the system-wide LyX directory, usually something like
  457. /usr/local/share/lyx/. F<MY_LYXDIR> is your personal LyX directory, something
  458. like .lyx/ in your home directory.
  459. =head1 SEE ALSO
  460. lyx(1), latex(1)
  461. =head1 AUTHORS
  462. Copyright (c) 1998-9 Amir Karger (karger@post.harvard.edu)
  463. Code contributors:
  464. =over 4
  465. =item *
  466. John Weiss wrote the original CleanTeX pass.
  467. =item *
  468. Etienne Grossmann
  469. =item *
  470. JosE<eacute> AbE<iacute>lio Oliveira Matos
  471. =item *
  472. David Suarez de Lis
  473. =item *
  474. Kayvan Aghaiepour Sylvan added noweb stuff and wrote noweb2lyx
  475. =back
  476. Other contributors:
  477. =over 4
  478. =item *
  479. Jean-Marc Lasgouttes worked on the wrapper script and offered lots of bug
  480. reports, advice, and feature suggestions.
  481. =item *
  482. Asger K. Alstrup Nielsen and Marc Pavese provided advice.
  483. =item *
  484. Various members of the LyX developers' and users' lists provided bug reports
  485. and feature suggestions.
  486. =back
  487. B<reLyX> uses a modified version the Perl TeX parser Text::TeX package written
  488. by Ilya Zakharevich (ilya@math.ohio-state.edu), available on CPAN.
  489.