public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Conversion(latex->xhtml) :Found three format failures,How to solve it?
@ 2015-06-24  5:17 vidhya vaishu
       [not found] ` <1a7373b4-d312-42d0-ad40-7ab5378e4155-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: vidhya vaishu @ 2015-06-24  5:17 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 3456 bytes --]

First of all, I gratefully thank you for this wonderful product. It took 
care of half of my conversion job.
   Am in the process of converting latex files to xhtml (`pandoc 
$sourcefile -s --mathml -o $outfile`). Everything goes fine,but except some 
cases mentioned below:

**Latex file:** 
1. simple tables are converted into xhtml but the following like table 
formats are not converted.
``` latex
\begin{table*}[!h]
\caption{Data for Exercise 11\label{data11}}
\begin{raggedleft}
\setlength\tabcolsep{1.5pt}

\begin{tabular}{l|cc|cD..{3.0}|c|c|c|cD..{3.0}|cD..{3.0}}
 & \multicolumn{2}{c|}{} & \multicolumn{2}{c|}{\textbf{Use of}} & 
\textbf{Use of} & \textbf{Use of} & \textbf{Use of} & 
\multicolumn{2}{c|}{\textbf{Use of}} & \multicolumn{2}{c}{\textbf{Use of}} 
\\[-4pt]
 &\multicolumn{2}{c|}{\textbf{Corpus}}  & \multicolumn{2}{c|}{\textbf{the 
word}} & \textbf{the word}  & \textbf{the word}  & \textbf{the word} & 
\multicolumn{2}{c|}{\textbf{the word}} & \multicolumn{2}{c}{\textbf{the 
word}} \\[-4pt]
\textbf{Ideology} & \multicolumn{2}{c|}{\textbf{Text}}  & 
\multicolumn{2}{c|}{\textit{\textbf{economy}}} & \textit{\textbf{justice}} 
& \textit{\textbf{moral}} & \textit{\textbf{racism}} & 
\multicolumn{2}{c|}{\textit{\textbf{income tax}}} & 
\multicolumn{2}{c}{\textit{\textbf{terrorism}}} \\
\hline
 & \multicolumn{2}{c|}{Noam}  &&  &  &  &  &  &  &&\\[-4pt]
Far left &  \multicolumn{2}{c|}{Chomsky} & & 10 & 30 & 3 & 50 && 2 && 2 \\
\hline
  & \multicolumn{2}{c|}{Robert} && &  &  &  &  & & &\\[-4pt]
Economic left &  \multicolumn{2}{c|}{Reich} & & 60 & 15 & 10 & 10 && 40 & 
&5 \\
\hline
  & \multicolumn{2}{c|}{New} & &  &&  &  &  &&  &\\[-4pt]
Center left &  \multicolumn{2}{c|}{Republic} && 80 & 20 & 30 & 40 && 30 & 
&70 \\
\hline
 &\multicolumn{2}{c|}{David} & &  &  &  &  && & &\\[-4pt]
Center right& \multicolumn{2}{c|}{Brooks} && 40 & 30 & 10 & 20 && 40 & &50 
\\
\hline
Libertarian  & \multicolumn{2}{c|}{Rand} && & &  &  &  &&  &\\[-4pt]
 right &  \multicolumn{2}{c|}{Paul} && 100 & 20 & 20 & 10 && 110 & &40 \\
\hline
  & \multicolumn{2}{c|}{Glenn} & & &  &&  &  &&  &\\[-4pt]
Far right &  \multicolumn{2}{c|}{Beck} && 60 & 20 & 80 & 30 && 60 & &120 \\
\end{tabular}
\end{raggedleft}
\end{table*}
```
2.  If math equation has like `\\[3pt]`in it,then it is not converted
```latex 
\begin{equation*}
Q = \bigg\{ x \in \textbf{R} \bigg| x = \frac{a}{b},\text{ } \exists a,b 
\in \textbf{Z}\bigg\}.\\[-6pt]
\end{equation*}
```

3.  Problem in `includegraphics`. If it has `\\[1pt]` in it,then it is not 
converted
```latex 
\begin{figure}[!h]
\begin{center}
\caption{An Alternative Mnemonic Device for the Order of Operations 
\label{mnemonics}}
%\vspace{.1in}
\includegraphics[width=.6\textwidth]{images/mnemonics.png}\\[4pt]
{\footnotesize Excerpt from XKCD comics \# 992: 
\href{xkcd.com/992}{xkcd.com/992}.}
\end{center}
\vspace{-6pt}
\end{figure}
```

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1a7373b4-d312-42d0-ad40-7ab5378e4155%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 5249 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Conversion(latex->xhtml) :Found three format failures,How to solve it?
       [not found] ` <1a7373b4-d312-42d0-ad40-7ab5378e4155-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-06-24  5:39   ` John MacFarlane
  2015-07-04 11:59     ` vidhya vaishu
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2015-06-24  5:39 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Can you post the output of `pandoc --version`?  I believe
things like `\\[6pt]` do work in the most recent versions of
pandoc.  However, complex tables with multicolumn will not
work, and there's no simple fix: pandoc's internal table
model is too simple to handle them.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Conversion(latex->xhtml) :Found three format failures,How to solve it?
  2015-06-24  5:39   ` John MacFarlane
@ 2015-07-04 11:59     ` vidhya vaishu
  0 siblings, 0 replies; 3+ messages in thread
From: vidhya vaishu @ 2015-07-04 11:59 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 964 bytes --]

Pandoc version- 1.13.2

On Wednesday, June 24, 2015 at 11:10:15 AM UTC+5:30, John MacFarlane wrote:
>
> Can you post the output of `pandoc --version`?  I believe 
> things like `\\[6pt]` do work in the most recent versions of 
> pandoc.  However, complex tables with multicolumn will not 
> work, and there's no simple fix: pandoc's internal table 
> model is too simple to handle them. 
>
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fb45dc29-43a0-4304-b013-ef010d5c194b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1510 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-04 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-24  5:17 Conversion(latex->xhtml) :Found three format failures,How to solve it? vidhya vaishu
     [not found] ` <1a7373b4-d312-42d0-ad40-7ab5378e4155-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-06-24  5:39   ` John MacFarlane
2015-07-04 11:59     ` vidhya vaishu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).