* markdown with raw tex and tables, tables not converted to html
@ 2019-10-10 17:47 Michael Taboada
[not found] ` <1d261f5d-4210-44f9-bb5c-87c9625c58d1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Taboada @ 2019-10-10 17:47 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 676 bytes --]
Hi,
I'm trying to include tables in a pandoc markdown file with raw tex and
convert it to html. However, when I try and convert it, the tex tables do
not show up. I've attached an example md file and a simple bash script I'm
using to convert. Any help?
-Michael.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1d261f5d-4210-44f9-bb5c-87c9625c58d1%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1036 bytes --]
[-- Attachment #2: test.md --]
[-- Type: text/markdown, Size: 1618 bytes --]
% Testing New Table
This is a test.
----------------- ---------------------------- -----------------------------------
Key Combination Action Comment
----------------- ---------------------------- -----------------------------------
Ctrl+Alt+Escape | Opens something like | This is a very long explanation, just to see if the table comes out ok.
Alt+Escape | Another action | This is a somehwat shorter comment.
----------------- ---------------------------- -----------------------------------
# very simple latex
\begin{tabular}{|l|l|}\hline
Age & Frequency \\ \hline
18--25 & 15 \\
26--35 & 33 \\
36--45 & 22 \\ \hline
\end{tabular}
# trying latex again
\begin{table}[h!]
\begin{center}
\caption{Your first table.}
\label{tab:table1}
\begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
$\alpha$ & $\beta$ & $\gamma$ \\
\hline
1 & 1110.1 & a\\
2 & 10.1 & b\\
3 & 23.113231 & c\\
\end{tabular}
\end{center}
\end{table}
# another attempt now with dashes
---
\begin{table}[h!]
\begin{center}
\caption{Your first table.}
\label{tab:table1}
\begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
$\alpha$ & $\beta$ & $\gamma$ \\
\hline
1 & 1110.1 & a\\
2 & 10.1 & b\\
3 & 23.113231 & c\\
\end{tabular}
\end{center}
\end{table}
---
[-- Attachment #3: test.sh --]
[-- Type: text/x-sh, Size: 202 bytes --]
#!/bin/bash
pandoc -s --pdf-engine=xelatex \
-f markdown+raw_tex+smart-yaml_metadata_block \
-t html \
--number-sections \
--number-offset=0 \
--toc \
test.md \
-o test.html \
2>> error-with-html.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: markdown with raw tex and tables, tables not converted to html
[not found] ` <1d261f5d-4210-44f9-bb5c-87c9625c58d1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-10-10 19:52 ` John MacFarlane
2019-10-10 19:53 ` John MacFarlane
1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2019-10-10 19:52 UTC (permalink / raw)
To: Michael Taboada, pandoc-discuss
Pandoc will pass raw tex through directly to the output --
provided the output is latex! If you're converting to html
the raw tex bits will just be omitted.
Michael Taboada <ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi,
> I'm trying to include tables in a pandoc markdown file with raw tex and
> convert it to html. However, when I try and convert it, the tex tables do
> not show up. I've attached an example md file and a simple bash script I'm
> using to convert. Any help?
> -Michael.
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1d261f5d-4210-44f9-bb5c-87c9625c58d1%40googlegroups.com.
> % Testing New Table
>
> This is a test.
>
> ----------------- ---------------------------- -----------------------------------
> Key Combination Action Comment
> ----------------- ---------------------------- -----------------------------------
> Ctrl+Alt+Escape | Opens something like | This is a very long explanation, just to see if the table comes out ok.
>
> Alt+Escape | Another action | This is a somehwat shorter comment.
> ----------------- ---------------------------- -----------------------------------
>
>
> # very simple latex
>
> \begin{tabular}{|l|l|}\hline
> Age & Frequency \\ \hline
> 18--25 & 15 \\
> 26--35 & 33 \\
> 36--45 & 22 \\ \hline
> \end{tabular}
>
>
>
> # trying latex again
>
> \begin{table}[h!]
> \begin{center}
> \caption{Your first table.}
> \label{tab:table1}
> \begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
> \textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
> $\alpha$ & $\beta$ & $\gamma$ \\
> \hline
> 1 & 1110.1 & a\\
> 2 & 10.1 & b\\
> 3 & 23.113231 & c\\
> \end{tabular}
> \end{center}
> \end{table}
>
>
> # another attempt now with dashes
>
> ---
> \begin{table}[h!]
> \begin{center}
> \caption{Your first table.}
> \label{tab:table1}
> \begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
> \textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
> $\alpha$ & $\beta$ & $\gamma$ \\
> \hline
> 1 & 1110.1 & a\\
> 2 & 10.1 & b\\
> 3 & 23.113231 & c\\
> \end{tabular}
> \end{center}
> \end{table}
> ---
>
> #!/bin/bash
>
> pandoc -s --pdf-engine=xelatex \
> -f markdown+raw_tex+smart-yaml_metadata_block \
> -t html \
> --number-sections \
> --number-offset=0 \
> --toc \
> test.md \
> -o test.html \
> 2>> error-with-html.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: markdown with raw tex and tables, tables not converted to html
[not found] ` <1d261f5d-4210-44f9-bb5c-87c9625c58d1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-10 19:52 ` John MacFarlane
@ 2019-10-10 19:53 ` John MacFarlane
1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2019-10-10 19:53 UTC (permalink / raw)
To: Michael Taboada, pandoc-discuss
Use markdown tables, in one of the styles pandoc supports,
if you want them to work with multiple output formats.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-10 19:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 17:47 markdown with raw tex and tables, tables not converted to html Michael Taboada
[not found] ` <1d261f5d-4210-44f9-bb5c-87c9625c58d1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-10 19:52 ` John MacFarlane
2019-10-10 19:53 ` John MacFarlane
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).