From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23592 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Taboada Newsgroups: gmane.text.pandoc Subject: latex tables converted to html and formatting Date: Tue, 15 Oct 2019 13:16:35 -0700 Message-ID: <20191015201635.GA3539857@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="158164"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.2 (2019-09-21) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDHY7V7JXADRBKGSTDWQKGQE4LKGUAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 15 22:16:43 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io1-f60.google.com ([209.85.166.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iKTFK-000f0P-Up for gtp-pandoc-discuss@m.gmane.org; Tue, 15 Oct 2019 22:16:43 +0200 Original-Received: by mail-io1-f60.google.com with SMTP id t11sf33863820ioc.13 for ; Tue, 15 Oct 2019 13:16:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571170601; cv=pass; d=google.com; s=arc-20160816; b=xS/q6uuBnKCopleq2YCq1W8XKOCSyeKa52kYmgYiXpGtnWLs5EDn8NUDArcjbUYUqC 0LKpjb2joeFzvbZnso+xbY6IsrDK2JiKP6ss94s2vhUAYnP/cj6VsRTwRosRz7FhES3B Bsq/6ZRSKMAPTk61GPdEL2B0X81Ll5NX0bAWb1RFa9scrSuW1sUZ1K9V/N+hokYjEHpJ ksvO6/h5aak8SmFgDvVvbFbiay+DDToxBhpdHCCzr2Wqq0VmUP7ZVUpIi72yeezNwwLN bLleOL74jRupuyKa6kXqZ0/ct8bchTBmr56czhBiFIIzrNkThL39OuTTAw+I0ac1u68l yHww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent :content-disposition:mime-version:message-id:subject:to:from:date :sender:dkim-signature:dkim-signature; bh=19v/3CGE1xHDUaNByxgIRZPXkrzDLv0AX55dUe/H5VY=; b=ykRHxkSUxThFH56QZw130yYaCzMQ9Z7dRon3WuAtcbVD4ted+i3I4rq9iYu1CtZBRD onBzHwPN8F4baYC8/uMhNQWhUBzSjT2pk+W7ry/+ioQXL+1GiboQMau1Wz8or1U5D0bP oZAC7u36J+Lld3AhzdluteYxdRKbD0bRJhGND/sKboyss0mT9csbhPuwVBESr9rJYHph 1pvIbWvaOZEpiPE9GX0xrhnuUjqHsfbp5vh2OEpCTtruLZJi2Dw4eMnvuSIJlXoU2/fT iI6e+uY2XWq9V2X/dXZC4iQ7Ae2vDo56WMCUEqie4L+gtKAgZGMZcm2mfEWFxvHUpaZo 7QnA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ex4a+iDE; spf=pass (google.com: domain of ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:mime-version :content-disposition:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=19v/3CGE1xHDUaNByxgIRZPXkrzDLv0AX55dUe/H5VY=; b=l5eqOP9o8/B4KsHrvNxsJy5KoifhZ182L78X8TroyxAdoxPtO1Ftfi6/6/u469V4YL BAWGRyPMv/VvXlRFKxqQ9ogqPupjcc2X0S/ahrVgX/g0PoZjfxoffh1UdJcP/znUQvAl MqtiqzMLFqbt6agtkkAFLw2ptjFSZSjZqXWRLTi9RpAJzb2RT1mcl69W+CDUYhkjEAt2 sq2htisLoHHDb8NaWGVsx5ZxRJ5ZLz7KQDnVPp1q1gv7MHE9q0UCaSOfdAWO6rWwmlcn QsVigyj+KiPsf4eW2eijSNiZvnkVh7KQhitpPjg9a6BhvZ/6/yGtK8tpJGYx5gLQ0A/6 p7xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=19v/3CGE1xHDUaNByxgIRZPXkrzDLv0AX55dUe/H5VY=; b=PYoeOPtaXGRQy2kH/COCIwRkoO8F0DNHpipY9I9R/LuAObU5xdcaMRH+P/u5YEYUhZ MiZ/nF4QHP4gmAtqpjZDziR3n2v4GQKWxleAwJBxS+93GaS2R6udHyOxHSwG/+2Fzh5H l31IiGZwV3im4KCD5UUe1IMau/ZssRRjlOGuWsK5SqkfZ2c3lTVnmT/Vi1imJUV8b14D Bb9nPaNCvTpkunOlWgZkRmWZwrYX3B2IGV9UKGQUwYWt7edd/HyR1raPy8CqZNc3GB1F tpH1b8haPrdQ4Wj2/HP7xwzZIGNumYfuQmqPQT2J/rYwcHyiFB527KrHuUGJ6u7nOczF 79Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :mime-version:content-disposition:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=19v/3CGE1xHDUaNByxgIRZPXkrzDLv0AX55dUe/H5VY=; b=poXORWtb8z2nagSLxt3x+QVggNtYzsuqHQ8o6Pb6E/aNKMmb7dfDmEenL3srdkv510 kxzQRXKGlQszp1nilueqE9zCRdjWL6CEWd1Exeg75QmFBGagbr3NJyHa/Tf5eEVfdEg7 L4pNklskk0lCw4gGeEeebmthUbK6WG3dhbWYFDI+aqL2U1lpVYQmAKpuiNWdD1ojCjv0 bQWt3qoYuZC7vtGFph9itSWf9FKf3InyE7NdtvfvIv76w0ZvKw7kEvZVgzXPPOD3N6c6 LOTYlIkRzse2Eu5UebGTW1p2OhdNGscxqoOmhU+BZe5TywA5SBoO1taHGV62HR2XaHkz K6rw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVTDCmJqQhN0AcCd8INWc4eBG6mAIAcuTSHCLEdRJfvbw7gI7UM hEUlANt2ANd1twDbXTu4OSU= X-Google-Smtp-Source: APXvYqwZKMiLqYeeOkr3iwoP6nIBGtco5KLciLuDjAr1aoDGfeM9JtaJbW+bF4jXEwoELPV/5iyX4Q== X-Received: by 2002:a92:5dc5:: with SMTP id e66mr8811029ilg.48.1571170601443; Tue, 15 Oct 2019 13:16:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:9719:: with SMTP id h25ls5634880iol.16.gmail; Tue, 15 Oct 2019 13:16:40 -0700 (PDT) X-Received: by 2002:a5e:d605:: with SMTP id w5mr3282497iom.16.1571170600155; Tue, 15 Oct 2019 13:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571170600; cv=none; d=google.com; s=arc-20160816; b=Ctrs1p9aZxnBGdAUXUgiyCvxm6mXoP6jCVlB4TlE52VeDxDfqORPvs1Fs7HjZ8yJt4 yNLsmzDGLoD9SHpn9Cy+qY07r4tq0AdbdQ/60MifhQj+iBbYaNf61ZQWLNR+z4kJT8r5 pVTXI4A4ApADoI3w/b6g0Ao2NFeqfu31IF1yQg28jndI6zWV/ML6VJpsv314tdz4zE6J xl9e4v3uXgfpJ2G5t7KaXrBbYoEvx1aPU56m75+71sxHWnCj/aPpoiJpDCimu0uJkziL wyszfcGouWtJ+jBtZ3dZI/jOcYT8S8D3X0XxWTT+dN4ui0IEsz1XGY6iFqcFiqyAxU/8 VHLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:to :from:date:dkim-signature; bh=6KyJ0hUS8HyQ7IM7EG33YYnGHOBQeuqzGRbCAKFn8yw=; b=0sa+gazxLWfc4N827U0v7u61dq3LTNdwNW1JyGP2Fbxhmh27rEUwnyJF9sp4QQLn3x v4y8wY4eY3DOzNDXkpj+GMjwJBRejUVkdi/ImSoaK3Tnvs3KivnJ2XcDI1vinYjPx95X 4ApMENcbF2cVG63NK/h+OZgFEj0S3wBNDTvn3w24ByVt9h+VoT20qDYG4eaISxBjVjow k0K6NRcTer2QjIwsdwXJD5VUdydCy296TLuEH9NQgbaK1PVKuVx/E7qsC2sWqKZtpyvb aSjI5Oe2ct9Qg+6BY1akiXvz1eH9EVbWSniOHGHIGnsHdfLV+caQF9jpwUszQiJNDFww RUtQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ex4a+iDE; spf=pass (google.com: domain of ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com. [2607:f8b0:4864:20::42b]) by gmr-mx.google.com with ESMTPS id z21si207316ilc.3.2019.10.15.13.16.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Oct 2019 13:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) client-ip=2607:f8b0:4864:20::42b; Original-Received: by mail-pf1-x42b.google.com with SMTP id y5so13198666pfo.4 for ; Tue, 15 Oct 2019 13:16:40 -0700 (PDT) X-Received: by 2002:a65:6702:: with SMTP id u2mr42377536pgf.426.1571170598887; Tue, 15 Oct 2019 13:16:38 -0700 (PDT) Original-Received: from gmail.com (97-115-96-182.ptld.qwest.net. [97.115.96.182]) by smtp.gmail.com with ESMTPSA id l22sm19757463pgj.4.2019.10.15.13.16.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 13:16:37 -0700 (PDT) Content-Disposition: inline X-Original-Sender: ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ex4a+iDE; spf=pass (google.com: domain of ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=ai5hf.lilmike-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23592 Archived-At: --JP+T4n/bALQSJXh8 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hiya, When I convert a latex file to html and it contains a table with a large li= ne 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 c= ase it matters, this is the same code I was working with for markdown to ht= ml with latex. The reason I'm using latex in markdown is because I am blind, so a table wi= th a long line of text will either end up with very poor formatting, or I w= ill have to painstakingly line the columns up with the dashes (which as a b= lind person is very hard to get right). Code for the script and examples of what I've tried are attached. -Michael. --=20 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 e= mail 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. --0OAP2g/MAC+5xKAE Content-Type: application/x-sh Content-Disposition: attachment; filename="test.sh" Content-Transfer-Encoding: quoted-printable #!/bin/bash=0A=0Apandoc -s --pdf-engine=3Dxelatex \=0A-f markdown+raw_tex+s= mart-yaml_metadata_block \=0A-t latex \=0A-H header.latex \=0A--number-sect= ions \=0A--number-offset=3D0 \=0A--toc \=0Atest.md \=0A-o test.latex \=0A2>= > error-with-latex.txt &&=0Apandoc -s --pdf-engine=3Dxelatex \=0A-f latex+r= aw_tex+smart-yaml_metadata_block \=0A-t html \=0A--number-sections \=0A--nu= mber-offset=3D0 \=0A--toc \=0Atest.latex \=0A-o test.html \=0A2>> error-wit= h-html.txt=0A --0OAP2g/MAC+5xKAE Content-Type: text/markdown; charset=us-ascii Content-Disposition: attachment; filename="test.md" % 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} --- --0OAP2g/MAC+5xKAE Content-Type: application/x-latex Content-Disposition: attachment; filename="header.latex" Content-Transfer-Encoding: quoted-printable \usepackage{tabulary}=0A --0OAP2g/MAC+5xKAE-- --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEebw5DohkzXEwXU3WBs0hl6buXtcFAl2mKSIACgkQBs0hl6bu Xtflcw//bCX5DJGNxQOmzPQjcGGxHKx+u8uYbxyB5lfPwSYv7lGgYre/PUw5mqov qgs1k3o5H3W/psNDxuNCQiGay7CODZICYNPVntmd2WyYXpl5OcPzLPLP6Og3LywB ixLsMrcIZv0MDFG/51vfmEqFDJYkRpYd+lsXI9xNYBSbMraYgMu6F5BwpLFG75Lq EQ6Ye2+IcsJkIeG6vN7nma92X6te1ks9mGU2TVrLXOMgoCgTv+FIjctVGGjPIQ4J avQP0FFv4OVOWvf4MfRR5xkAh+LPCRZOHNJb0GCSWj8kY6ZeyUIfNN5EyfU9gRl2 IoQVOzlxh6gs70RxAnL8I8y4Em8Dmw7/6zKLuu079JVfsRufu9w0cJDzRlNMXK4+ 91SZLCIhIudz10qJg6Uwl7OhD/KHtRxjJmKKyaJnAbwY9Mh7SAe4o+wVMJTOxXcY 0yYbEPTx51y1Qx92L8lz+wven88LWBitbH4bi4rpEHBrmDJGe1CZJVsS/7Nvv+Ug lInAju/MRLeWwfY6k59Rw/52qUtCj0rpmehi3anklbvsl+lKxS83p8svDRoQhpZ5 S/jFsxnwHLTRQLXdgpenfiEGNOstSxS/TgRF9clYxRG/Uj+IaPxFs/FwucZ20ZMi u2e/CvdsmSVSP9/hbiFPbnkIxbM0PQi7/7zcU519v9SwFfsHwC0= =FnN3 -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--