* orgtable to latex export \hline[0pt] why?
@ 2023-04-21 14:00 Uwe Brauer
2023-04-22 11:32 ` Ihor Radchenko
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2023-04-21 14:00 UTC (permalink / raw)
To: emacs-orgmode
Hi
After pulling the latest org mode, the following table
| Ej1A | Ej1B | EjC | E2A1 | E2B | E2C | E2D | E2E | Total |
|------+------+-----+------+-----+-----+-----+-----+-------|
| 10 | 15 | 10 | 10 | 20 | 10 | 15 | 10 | 100 |
| 10 | 0 | 10 | 10 | 20 | 10 | 15 | 10 | 85 |
| | | | | | | | | |
| 10 | 0 | 10 | 10 | 20 | 10 | 15 | 10 | 85 |
Is exported to latex as
\begin{center}
\begin{tabular}{rrrrrrrrr}
Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\ \hline[0pt]
\hline
10 & 15 & 10 & 10 & 20 & 10 & 15 & 10 & 100\\ \hline[0pt]
10 & 0 & 10 & 10 & 20 & 10 & 15 & 10 & 85\\ \hline[0pt]
& & & & & & & & \\ \hline[0pt]
10 & 0 & 10 & 10 & 20 & 10 & 15 & 10 & 85\\ \hline[0pt]
\end{tabular}
\end{center}
Now, \hline[0pt] gives an error when I compile it with texlive 2019.
1. Why was the exporter changed.
2. How can I turn this \hline[0pt] off?
Thanks
Uwe Brauer
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: orgtable to latex export \hline[0pt] why?
2023-04-21 14:00 orgtable to latex export \hline[0pt] why? Uwe Brauer
@ 2023-04-22 11:32 ` Ihor Radchenko
2023-04-22 12:13 ` Uwe Brauer
0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-04-22 11:32 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
Uwe Brauer <oub@mat.ucm.es> writes:
> After pulling the latest org mode, the following table
>
> Is exported to latex as
> ...
> \begin{center}
> \begin{tabular}{rrrrrrrrr}
> Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\ \hline[0pt]
> \hline
I am seeing
\begin{center}
\begin{tabular}{rrrrrrrrr}
Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\[0pt]
\hline
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: orgtable to latex export \hline[0pt] why?
2023-04-22 11:32 ` Ihor Radchenko
@ 2023-04-22 12:13 ` Uwe Brauer
2023-04-22 12:32 ` Ihor Radchenko
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2023-04-22 12:13 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Uwe Brauer, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
>>> "IR" == Ihor Radchenko <yantar92@posteo.net> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> After pulling the latest org mode, the following table
>>
>> Is exported to latex as
>> ...
>> \begin{center}
>> \begin{tabular}{rrrrrrrrr}
>> Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\ \hline[0pt]
>> \hline
> I am seeing
> \begin{center}
> \begin{tabular}{rrrrrrrrr}
> Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\[0pt]
> \hline
Well what is the purpose of the [0pt], that is new. Concerning the \hline
(defun my-latex-insert-hline-always (row backend info)
"Add a hline to every row when exporting to LaTeX."
(when (org-export-derived-backend-p backend 'latex)
(replace-regexp-in-string "\\\\\\\\" "\\\\\\\\ \\\\hline" row)))
(add-to-list 'org-export-filter-table-row-functions 'my-latex-insert-hline-always)
I could modify that function, but again what is the purpose of the [0pt]
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: orgtable to latex export \hline[0pt] why?
2023-04-22 12:13 ` Uwe Brauer
@ 2023-04-22 12:32 ` Ihor Radchenko
0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2023-04-22 12:32 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
Uwe Brauer <oub@mat.ucm.es> writes:
> I could modify that function, but again what is the purpose of the [0pt]
See https://list.orgmode.org/orgmode/CAO12V+wB18nAN0FuDPAeN94GHdt_2nbdJtc4u7n4W3HAZbaZsA@mail.gmail.com/
Also, note `org-latex-line-break-safe'.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-22 12:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 14:00 orgtable to latex export \hline[0pt] why? Uwe Brauer
2023-04-22 11:32 ` Ihor Radchenko
2023-04-22 12:13 ` Uwe Brauer
2023-04-22 12:32 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).