public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Customize text on every page for long tables
Date: Wed, 11 Jan 2023 21:35:28 +0100	[thread overview]
Message-ID: <CADAJKhBpJ1+N49M7pDrGjFFgfeGzzL=GNdM9q08MQr4Qmm4ZJA@mail.gmail.com> (raw)
In-Reply-To: <tpkubc$dud$1@ciao.gmane.io>

[-- Attachment #1: Type: text/plain, Size: 2957 bytes --]

If I understand the longtable documentation correctly you'll have to modify
Pandoc's LaTeX output manually, i.e. instead of letting pandoc handle the
LaTeX → PDF step behind the scene you must convert Markdown to a LaTeX file:

``` shell
pandoc document.md -o document.ltx
```

then open the LaTeX file and look for where it says something like

``` latex
\begin{longtable}[]{@{}ll@{}}
\caption{My caption text}\tabularnewline
\toprule()
dolores & culpa \\
\midrule()
\endfirsthead
\toprule()
dolores & culpa \\
\midrule()
\endhead
```

(Typially you would search for the caption text. If that contains lots of
formatting you may want to insert some unique "word" into the caption in
the Markdown source, search for that in the LaTeX source and then delete it
in the LaTeX source.)

and insert

``` latex
\caption[]{(Continued from previous page)}\tabularnewline
```

just below `\endfirsthead`.

then do

``` shell
xelatex document.ltx
```

substituting your LaTeX engine of choice for `xelatex`.

Disclaimer: I don't have any texlive installation to hand to test this on
ATM because I'm 40 km from my laptop. Also it is ages since I needed to do
anything like this manually and I don't remember how I did it. This is my
best shot ATM. Please let me know how it goes!


Den ons 11 jan. 2023 01:03jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org> skrev:

> I have a long table that takes multiple pages. And my university requires
> that it shows some text like `Continued on next page` on each page.
> I find
> `
> https://tex.stackexchange.com/questions/637517/how-do-i-get-my-latex-table-to-continue-on-the-next-page`
> <https://tex.stackexchange.com/questions/637517/how-do-i-get-my-latex-table-to-continue-on-the-next-page>,
> and learn to use `\endhead` to specify rows to appear at the top of every
> page (under the headline, but before the other lines of the table).
>
> My question is how can I customize the `\endhead` and `\endfoot` part.
> I checked the lua filter manual. The Table element seems have no such
> properties.
> --
>
>
> --
> 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/tpkubc%24dud%241%40ciao.gmane.io
> .
>

-- 
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/CADAJKhBpJ1%2BN49M7pDrGjFFgfeGzzL%3DGNdM9q08MQr4Qmm4ZJA%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 4719 bytes --]

      reply	other threads:[~2023-01-11 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-11  0:02 jiewuza
2023-01-11 20:35 ` BPJ [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADAJKhBpJ1+N49M7pDrGjFFgfeGzzL=GNdM9q08MQr4Qmm4ZJA@mail.gmail.com' \
    --to=melroch-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).