Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#145 Problem with LaTeX output

closed-fixed
Jens Nissen
Database (53)
5
2012-08-20
2010-08-11
Anonymous
No

When exporting a game to TeX, the header lines:

\newenvironment{variation}{\begin{quote}}{\end{quote}}
\newenvironment{diagram}{\begin{nochess}}{$$\showboard$$\end{nochess}}

are incorrectly output because the first to characters are not taken literally and interpreted as a newline '\n' the resulting tex lines look like:

ewenvironment{variation}{\begin{quote}}{\end{quote}}
ewenvironment{diagram}{\begin{nochess}}{$$\showboard$$\end{nochess}}

(using SVN-trunk 8/10/10 on linux)

Discussion

  • P.S. Congratulations on a very nice database.

     
  • The lost \n comes from line 72 in output.cpp: line.replace("\\n", "\n");

    I think its save to remove this line and change line 89 to m_header += line+"\n";
    for nice formatting.

    And you should remove every \n in the template file. I have done this and i got an tex-file which compiled. Ok there was then another Problem with the # in the output (the # should be replaced with \mate)..

     
  • Jens Nissen
    Jens Nissen
    2012-05-20

    • assigned_to: mrudolf --> hognose
     
  • Jens Nissen
    Jens Nissen
    2012-08-20

    Fixed in svn 1168

     
  • Jens Nissen
    Jens Nissen
    2012-08-20

    The bug has been fixed in SVN.

     
  • Jens Nissen
    Jens Nissen
    2012-08-20

    • status: open --> closed-fixed