PiRSquared17 / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 0 forks source link

Simple table does not work #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I just wanted to print a simple wiki table. I tried various
modifications, but W2L always export a defect table (see below).

Wiki source table:

{| border=1
!OPP
!THR
|-
|new gouvernment is strong 
|market volume low 
|-
|many different programs in all states
|constantly low niveau of energy prices
|}

What is the expected output? What do you see instead?

\begin{tabularx}{\linewidth}{|Y|Y|Y|}\hline

\textbf{OPP}
 & \textbf{THR}\tabularnewline \hline

\multicolumn{}{}{market volume low\begin{verbatim}

\end{verbatim}
|-}
 & many different programs in all states
 & constantly low niveau of energy prices\tabularnewline \hline
\end{tabularx}

What version of the product are you using? On what operating system?

MediaWiki 1.13.0
W2L 0.9.2

Please provide any additional information below.

Original issue reported on code.google.com by paul.petershagen on 21 Dec 2008 at 10:35

GoogleCodeExporter commented 9 years ago
The table you have given as an example works fine for me. I can see, that the
tableformat is not correct when there is another table before that one.

I cannot reproduce the verbatim-environment which shows up and I cannot 
reproduce the
'|-}' which shows up in the next line.

Are you sure, that your Mediawiki markup is correct? MW shows some talent to 
correct
errors, while W2L does rely on the assumption that the markup is correct.

I wasn't able to test this one with 0.9.2 as I do only have a newer dev-version
available. Maybe the verbatim-bug has been fixed for 0.10 by accident which 
would be
good news. I will have more on that topic in some days (or next year - my main 
laptop
is in repair these days :( It might come back tomorrow).

Original comment by hansgeorg.kluge@gmail.com on 21 Dec 2008 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 21 Dec 2008 at 2:54

GoogleCodeExporter commented 9 years ago
Hi,

I tried it again with the "(Magic)" template and it works, so there must be a 
problem
with my own template in the LaTeX: namespace. This is my first large paper with 
W2L
(30 pages) so I'm really looking forward to the result of this.

Perhaps you have an hint for me, do I need a special package I did not include ?

Original comment by paul.petershagen on 21 Dec 2008 at 3:32

GoogleCodeExporter commented 9 years ago
Your LaTeX-Template needs to include the tabularx package. But as far as I can 
tell
there shouldn't be any differences in the conversion process itself.

It looks like there is an error in your table definition. The 
multicolumn-command is
a strong indicator to this. Please check your table(s) if they are correctly 
nested
or try to avoid using colspans. That might be causing the problem.

Original comment by hansgeorg.kluge@gmail.com on 21 Dec 2008 at 7:25

GoogleCodeExporter commented 9 years ago
Additional note: colspan and nesting tables are not completely tested and might 
cause
unexpected behavior.

Original comment by hansgeorg.kluge@gmail.com on 21 Dec 2008 at 7:27

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 18 Feb 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Checked the table in Issue report and it worked fine. Closing for now.

Original comment by hansgeorg.kluge@gmail.com on 29 Aug 2010 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 17 Feb 2011 at 10:38