#262 LaTeX syntax error

v3.0
open-works-for-me
5
2008-02-29
2008-02-28
Rufman
No

When I try to convert the latex generated by epydoc (with LaTeX2RTF for example...) I get the following error:

Error! end of file reached before '\begin|{|document|}' was found

Somehow the latex documents are not generated with the correct syntax. (I am not a LaTeX expert, so correct me if I am wrong). I attached a sample latex file that I generated with epydoc.

I am using the latest version of epydoc on a windows xp machine together with MiKTeX 2.7 and Ghostscript 8.6.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    You should probably be running latex on the file "api.tex" -- that is the main document file. It includes the other files (one for each module).

    Let me know if this solves the problem for you, so I can close the bug.

    -Edward

     
  • Nobody/Anonymous

    Logged In: NO

    Ok..I tried running LaTeX2RTF on api.tex...and it work, but with may errors:

    cockpit3UI.cockpit.settings-module.tex:4 Unknown command '\endhead'
    cockpit3UI.cockpit.settings-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.cockpit.settings-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.cockpit.settings-module.tex:88 Unknown command '\endhead'
    cockpit3UI.cockpit.settings-module.tex:88 Unknown command '\endfoot'
    cockpit3UI.cockpit.settings-module.tex:89 Unknown command '\endlastfoot'
    cockpit3UI.cockpit.templatetags-module.tex:1 Including file <cockpit3UI.cockpi
    t.templatetags-module.tex> (.tex appended)
    cockpit3UI.cockpit.templatetags-module.tex:6 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags-module.tex:13 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags-module.tex:20 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags-module.tex:27 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:1 Including file <cock
    pit3UI.cockpit.templatetags.extraFilters-module.tex> (.tex appended)
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:77 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:84 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:91 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:98 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:105 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:112 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:119 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:126 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:133 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.templatetags.extraFilters-module.tex:140 Unknown environment
    \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.cockpit.urls-module.tex:1 Including file <cockpit3UI.cockpit.urls-m
    odule.tex> (.tex appended)
    cockpit3UI.cockpit.urls-module.tex:4 Unknown command '\endhead'
    cockpit3UI.cockpit.urls-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.cockpit.urls-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.cockpit.views-module.tex:1 Including file <cockpit3UI.cockpit.views
    -module.tex> (.tex appended)
    cockpit3UI.cockpit.views-module.tex:4 Unknown command '\endhead'
    cockpit3UI.cockpit.views-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.cockpit.views-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.history-module.tex:1 Including file <cockpit3UI.history-module.tex>
    (.tex appended)
    cockpit3UI.history-module.tex:6 Unknown environment \begin{boxedminipage} ...
    ←nd{boxedminipage}
    cockpit3UI.history-module.tex:13 Unknown environment \begin{boxedminipage} ...
    ←nd{boxedminipage}
    cockpit3UI.history-module.tex:20 Unknown environment \begin{boxedminipage} ...
    ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:1 Including file <cockpit3UI.history.mode
    ls-module.tex> (.tex appended)
    cockpit3UI.history.models-module.tex:132 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:132 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:132 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:132 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:144 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:151 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:158 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:177 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:177 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:178 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:185 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:185 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:186 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:193 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:193 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:193 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:193 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:206 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:213 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:220 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:227 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:246 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:246 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:247 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:255 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:255 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:256 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:284 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:284 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:284 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:284 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:297 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:304 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:311 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:318 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:337 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:337 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:338 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:346 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:346 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:347 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:365 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:365 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:365 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:365 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:378 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:385 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:392 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:399 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:406 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:413 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:432 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:432 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:433 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:441 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:441 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:442 Unknown command '\endlastfoot'
    cockpit3UI.history.models-module.tex:480 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:480 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:480 Unknown command '\multirow'
    cockpit3UI.history.models-module.tex:480 Unknown command '\BCL'
    cockpit3UI.history.models-module.tex:493 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:500 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:507 Unknown environment \begin{boxedminipag
    e} ... ←nd{boxedminipage}
    cockpit3UI.history.models-module.tex:526 Unknown command '\endhead'
    cockpit3UI.history.models-module.tex:526 Unknown command '\endfoot'
    cockpit3UI.history.models-module.tex:527 Unknown command '\endlastfoot'
    cockpit3UI.history.settings-module.tex:1 Including file <cockpit3UI.history.se
    ttings-module.tex> (.tex appended)
    cockpit3UI.history.settings-module.tex:4 Unknown command '\endhead'
    cockpit3UI.history.settings-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.history.settings-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.history.settings-module.tex:112 Unknown command '\endhead'
    cockpit3UI.history.settings-module.tex:112 Unknown command '\endfoot'
    cockpit3UI.history.settings-module.tex:113 Unknown command '\endlastfoot'
    cockpit3UI.history.settings-module.tex:166 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:173 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:180 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:205 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:212 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:219 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:226 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:233 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:252 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:259 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:266 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:288 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:295 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:302 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:309 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:316 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:336 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:343 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:350 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:373 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:380 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:387 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:394 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.settings-module.tex:401 Unknown environment \begin{boxedminip
    age} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags-module.tex:1 Including file <cockpit3UI.histor
    y.templatetags-module.tex> (.tex appended)
    cockpit3UI.history.templatetags-module.tex:6 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags-module.tex:13 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags-module.tex:20 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags-module.tex:27 Unknown environment \begin{boxedm
    inipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:1 Including fil
    e <cockpit3UI.history.templatetags.extraFiltersHistory-module.tex> (.tex appende
    d)
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:77 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:84 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:91 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:98 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:105 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:112 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:119 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:126 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:133 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:140 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:147 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:154 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:161 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:168 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:175 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:182 Unknown comma
    nd '\endhead'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:182 Unknown comma
    nd '\endfoot'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:183 Unknown comma
    nd '\endlastfoot'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:190 Unknown comma
    nd '\multirow'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:190 Unknown comma
    nd '\BCL'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:190 Unknown comma
    nd '\multirow'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:190 Unknown comma
    nd '\BCL'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:196 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:200 Unknown envir
    onment \begin{boxedminipage} ... ←nd{boxedminipage}
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:219 Unknown comma
    nd '\endhead'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:219 Unknown comma
    nd '\endfoot'
    cockpit3UI.history.templatetags.extraFiltersHistory-module.tex:220 Unknown comma
    nd '\endlastfoot'
    cockpit3UI.history.urls-module.tex:1 Including file <cockpit3UI.history.urls-m
    odule.tex> (.tex appended)
    cockpit3UI.history.urls-module.tex:4 Unknown command '\endhead'
    cockpit3UI.history.urls-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.history.urls-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.history.views-module.tex:1 Including file <cockpit3UI.history.views
    -module.tex> (.tex appended)
    cockpit3UI.history.views-module.tex:4 Unknown command '\endhead'
    cockpit3UI.history.views-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.history.views-module.tex:5 Unknown command '\endlastfoot'
    cockpit3UI.manage-module.tex:1 Including file <cockpit3UI.manage-module.tex> (
    .tex appended)
    cockpit3UI.manage-module.tex:6 Unknown environment \begin{boxedminipage} ... ←
    nd{boxedminipage}
    cockpit3UI.manage-module.tex:13 Unknown environment \begin{boxedminipage} ... ←
    nd{boxedminipage}
    cockpit3UI.manage-module.tex:20 Unknown environment \begin{boxedminipage} ... ←
    nd{boxedminipage}
    cockpit3UI.manage-module.tex:27 Unknown environment \begin{boxedminipage} ... ←
    nd{boxedminipage}
    cockpit3UI.settings-module.tex:1 Including file <cockpit3UI.settings-module.te
    x> (.tex appended)
    cockpit3UI.urls-module.tex:1 Including file <cockpit3UI.urls-module.tex> (.tex
    appended)
    cockpit3UI.urls-module.tex:4 Unknown command '\endhead'
    cockpit3UI.urls-module.tex:4 Unknown command '\endfoot'
    cockpit3UI.urls-module.tex:5 Unknown command '\endlastfoot'
    api.tex:113 Unknown command '\endhead'
    api.tex:113 Unknown command '\endfoot'
    api.tex:114 Unknown command '\endlastfoot'

    All files are converted, but are incomplete. Is there some other tool or library that I need to install, so that the markup is not unknown?

     
  • Rufman

    Rufman - 2008-02-29

    Logged In: YES
    user_id=2022547
    Originator: YES

    ok...installing fancyhrd.sty solved my problem...but when I use epydoc to generate pdf documentation, line breaks are not always considered when parsing the reStructuredText. Here's an example:

    """
    :Author:Stephane Rufer

    Some miscellaneous text that will apeare before ``Author:``
    """

    There is no line break before the Author field. This is not the case when generating html.

     
  • Edward Loper

    Edward Loper - 2008-02-29

    Logged In: YES
    user_id=195958
    Originator: NO

    I recommend trying the subversion version of epydoc -- we've recently changed (and improved) the latex output fairly substantially. All formatting decisions are now controlled via a style file; and you can write your own custom style file to change how the output looks, or use one of the built-in styles. Currently, there are three built-in styles: "--sty boxes" (the current default) looks similar to the old output. "--sty shaded" uses various shaded boxes, and I think it looks a little nicer than the boxes style. "--sty base" is very spartan, and mostly serves as a starting point for defining new styles. For instructions for using the subversion version, see:

    http://epydoc.sourceforge.net/installing.html#subversion

     
  • Rufman

    Rufman - 2008-02-29
    • status: open --> open-works-for-me
     
  • Rufman

    Rufman - 2008-02-29

    Logged In: YES
    user_id=2022547
    Originator: YES

    I found out that if indent Field Lists, a linebreak is made when generating pdfs.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks