Re: \begin {document}

Wilfried Hennings <[email protected]> Thu, 11 Oct 2007 15:54:34 +0200
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
At 11.10.2007 09:26, I wrote:
>Hello,
>just for information:
>I posted a question in the German TeX newsgroup whether blanks
>between \begin and { are principally allowed or not.
>Although MikTeX accepts it with a blank in between, this is the first
>LaTeX input file I have seen with a blank in this place.

Answer (my translation from German):

David Kastrup wrote:
 > Markus Kohm writes:
 >
 > > Wilfried Hennings wrote:
 > >
 > >> Should latex2rtf accept blanks here?
 > >
 > > After commands, principally any number of blanks are allowed.
 > > Also between command and parameters.
 > > In LaTeX normally also before and after optional parameters.
 > > Also in the list of options \documentclass, \LoadClass, \usepackage etc.
 > > blanks are allowed after the commas.
 >
 > They are "allowed" anywhere (not restricted to after commas) and are
 > ignored. Some weeks ago I identified a
 >
 > \usepackage[Borderwhatever={0 0 0}]{hyperref}
 >
 > as responsible for a strange problem, as only "000" was inserted
 > in the PostScript
 >
 > > In vertical lists even any number of blanks are allowed:
 > >
 > > \documentclass   [
 > >         a4paper,   twoside     ]      {article}
 > > \begin             {document}
 >
 > Also
 >
 > \documentclass[a 4 paper, two
 >                           side]{article}
 >
 > should work. Sick (correctly translated?).
 > Documentation only sais that is is allowed after commas.

Now I don't think latex2rtf should handle all strange cases, but a 
better error message would be helpful, keeping in mind that LaTeX 
doesn't help finding the problem in this case.


>At 10.10.2007 00:06, Peter Lloyd wrote:
>  >I'm using latex2rtf-1.9.17a_dos. Thanks for creating a useful tool.
>  >However, I've encountered what I think is a bug.
>  >
>  >To reproduce, create a file eg min.tex, containing the following:
>  >
>  >\documentclass{article}
>  >\begin {document}
>  >This is some text
>  >\end{document}
>  >
>  >Now run 'l2r min.tex'
>  >
>  >I get the error:
>  >
>  >{
>  >(Not set):3 Mismatched '{' in RTF file, Conversion may cause problems.
>  >(Not set):3 This is often caused by having environments that span
>  >(Not set):3 \section{}s.  For example
>  >(Not set):3    \begin{small} ... \section{A} ... \section{B} ...
>  >\end{small}
>  >(Not set):3 will definitely fail.
>  >(Not set):3 Try translating with 'latex2rtf -Z2 min.tex'
>  >
>  >And there is nothing but header information in the resulting rtf file.
>  >(Using -Z2 doesn't make it work either)
>  >
>  >I've tracked it down to the space between \begin and {document} --
>  >removing this space makes everything work correctly.
>  >
>  >LaTeX (MiKTeX 2.5) parses the input file just fine.
>--
>Wilfried Hennings c./o.
>Forschungszentrum (Research Center) Juelich GmbH
>INB-MUT
>52425 Juelich, Germany
>Tel. (+49) 2461 61 5570 ; Fax (+49) 2461 61 8254
>email: [email protected]
>PGP key available from key servers, e.g. from
>      http://pgpkeys.pca.dfn.de/
>work homepage: http://www.fz-juelich.de/mut/mut_home
>All opinions mentioned are strictly my own, not my employer's
>
>
>
>-----------------------------------------------------------------------------------------
>-----------------------------------------------------------------------------------------
>Forschungszentrum Juelich GmbH
>52425 Juelich
>
>Sitz der Gesellschaft: Juelich
>Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
>Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
>Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv.
>Vorsitzender)
>-----------------------------------------------------------------------------------------
>-----------------------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >> http://get.splunk.com/
>_______________________________________________
>Latex2rtf-developers mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/latex2rtf-developers

-- 
Dipl.-Ing.(=M.Eng.) Wilfried Hennings c./o.
Research Center Juelich
INB-MUT
52425 Juelich
Germany
Tel. (+49) 2461 61 5570 ; Fax (+49) 2461 61 8254
email: [email protected]
PGP key available from key servers, e.g. from
     http://pgpkeys.pca.dfn.de/
work homepage: http://www.fz-juelich.de/mut/mut_home
All opinions mentioned are strictly my own, not my employer's



-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/