* latex tables converted to html and formatting
@ 2019-10-15 20:16 Michael Taboada
0 siblings, 0 replies; only message in thread
From: Michael Taboada @ 2019-10-15 20:16 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1069 bytes --]
Hiya,
When I convert a latex file to html and it contains a table with a large line of text in one of the columns, it seems to cut off the text at a certain point. I've tried using tabulary and tabularx, but so far no go. Btw, in case it matters, this is the same code I was working with for markdown to html with latex.
The reason I'm using latex in markdown is because I am blind, so a table with a long line of text will either end up with very poor formatting, or I will have to painstakingly line the columns up with the dashes (which as a blind person is very hard to get right).
Code for the script and examples of what I've tried are attached.
-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/20191015201635.GA3539857%40gmail.com.
[-- Attachment #1.2: test.sh --]
[-- Type: application/x-sh, Size: 434 bytes --]
[-- Attachment #1.3: test.md --]
[-- Type: text/markdown, Size: 2070 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{tabulary}{1.0\textwidth}{|L|L|}
\hline
Age & Frequency \\ \hline
18--25 & asdfasdfajsdfjasdjfqwefopasiuvpoasiufpqowiudvhioqudqiwudvpoquisdvpuioqedvopiqehdvopuiqsdpquisdvpdvpouiqsbvpuidvpuiqsuievfpopuiqeqiedfpiqnoqdfasdfasdfasdvxzcgaewrtgasfqefvfdfasvfdqfqefevvvqfqsqefasdfasdfasdfasdf \\
26--35 & 33 \\
36--45 & 22 \\ \hline
\end{tabulary}
# trying latex again
\begin{table}[h!]
\begin{center}
\caption{Your first table.}
\label{tab:table1}
\begin{tabulary}{1.0\textwidth}{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 & asdfasdfajsdfjasdjfqwefopasiuvpoasiufpqowiudvhioqudqiwudvpoquisdvpuioqedvopiqehdvopuiqsdpquisdvpdvpouiqsbvpuidvpuiqsuievfpopuiqeqiedfpiqnoqdfasdfasdfasdvxzcgaewrtgasfqefvfdfasvfdqfqefevvvqfqsqefasdfasdfasdfasdf\\
2 & 10.1 & b\\
3 & 23.113231 & c\\
\end{tabulary}
\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 #1.4: header.latex --]
[-- Type: application/x-latex, Size: 23 bytes --]
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-15 20:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 20:16 latex tables converted to html and formatting Michael Taboada
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).