From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31978 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Customize text on every page for long tables Date: Wed, 11 Jan 2023 21:35:28 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a6113805f202f1aa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7770"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBHV37SOQMGQEGX6UBFA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 11 21:35:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f58.google.com ([209.85.222.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFhp4-0001jF-6P for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 11 Jan 2023 21:35:46 +0100 Original-Received: by mail-ua1-f58.google.com with SMTP id y19-20020ab048d3000000b004397143cdfesf7110628uac.2 for ; Wed, 11 Jan 2023 12:35:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673469345; cv=pass; d=google.com; s=arc-20160816; b=lvPnc9ftujbP2dFeu/22HfzWOQE/oGGQXyzRAHy6D+EIkigBZml6er9NAVWamPb4PI vfpLPA3GhK4IyPIx3PZhpMfIKOky1IuNkMcI856IllFngY3naHqnj+c/GeVGrVtC+bZS +1YkOAoYpmYtl7Gj0bwD51GbWGpEtxTflI9+kmeE2yW/hzKq2SpBZWiixisU5dF0+FCF fVCw71fQjdjv9UZpJw8RcYcDvPSf7pMJzOdc0Twym47i8bReQ7R84K0EP4ZHL3yxx2j3 Rw767KiuxhpGRZekd4nk/PwlL38AjsDtJ5QwG9yNkQ8A7O7wLR2Mbl4uib4D7PxUx/Va 0Mwg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=kYf5WUaPEo9VlQatCjc3Sb1EyL/69J8donqwQb6tNcQ=; b=ByamLlhHuohlHaEAk85xwPKvlsFOsdLCYLb5ezSSIKSHug47ETMpo1pflpN5o7VYka mjYPYmYeTxOKvJQmpF7p/XoJU1cWczuFfHjGGoZSgjgC23EBLKreH3qggu+zyst3e+eu iymGnx+2CxiV6bvZuf2nHEdvz6fsj+DFL2wiizEMGJm7gGc4RpHk5+XqdtipqIV3b3KK JI80IHGge34yQwrxLAnuf/TXcyjdUygAqLP62b69jjgIUHNKrNTZj2QROb5A60ZqlSBn vEzXFfPaq0iFVZrsGODqILygNeFWVF4YnhTtfIU/+tB0T1E3yiqG1ZftRuHiUKMmL3FI NA6A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D+gAhCJs; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 as permitted sender) smtp.mailfrom=melroch-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=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=kYf5WUaPEo9VlQatCjc3Sb1EyL/69J8donqwQb6tNcQ=; b=sQP8mHR6AUFp1y9kSxsjNlOqJiO3R24M46JJb4H2VTjX2A9WB6dKeJPgBr+PvzGjKx /rBfTlIpxM9dPXliu9VinT9WAEudrS5YuiONdMbbYBvc+BDMbf//JJdHk7Ptx8HauN/G w5ZoznkhMh9qBfJj6bFkmRFKf+fuLLiDZ8yg/QGXrReatUGsALNB0w6ChOsNznAjSsk7 cpIgLjlFBhihW1xcuISIuLXUfxHFP96PqCFWrth1YoZzl6iB8ZSK7BtHSQpfv3wwnjWf lzxqnezAo/fh93sIJJj92fooSBZbTi5y30XUxrwD9r2cmjtOd/pM7eS++O4PY83GpCtG CQXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=kYf5WUaPEo9VlQatCjc3Sb1EyL/69J8donqwQb6tNcQ=; b=Iu5im+e697fpKSgMegEw+I3O5yuAUGRzySc6KCLBjr+ipGbUWYH13am15YVVFPAxay AH4WNUHXIRt4koxL2bunjJ7KAoaF2VKKV/0Jb58VCgF6wmbbEjV5rr54mYbsvmKi3RFM jsBoW39U8T6N3RAkIlDVLNWwK6ZQa6gnWVmdCeApqhprPiSN7vuJvpWUFqeBDWpjyH6H 2hoyPq1zrLTpF6wFlO/dJK3gGy/qaBTDShDWNOtnX9WYLvaeSMA/et0HIR1BDNzVMMjI Rvt5J0+s20HmLIu9F0OOULn25ug+7vscf8oTV/NeKvtRK/cHWqr2NymrIwZrcetlaffb DBpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=kYf5WUaPEo9VlQatCjc3Sb1EyL/69J8donqwQb6tNcQ=; b=45ayYD4kWKBMF3284j72bACCEAGpDjDkB+DsnITpyuN5uxrPhDdXbRb8EQFAoFGKXG wJiiBcMIEnmnTjQwO2KMJ9Z42AG/RYdXHK8JuPa4esW4/JFEX+rKA0aadfqYegsfjm5U OQSwEHhlIR+mRE+Ik2Xtp8ZWaI+PR12t6RFPmgGan+62trUQghmQp9V0NfEwHu5Rd4zl JVWkaKIFFavPzn92B4hTRk/EdFvIHwG4JgzrnMffESr0aiAatoNtMeaHuf+1JnLby0+V RR2dMe260WRKamQ7/nK6tKOe0Iq7XHNHkrgfnl3jvlpiLE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kqRu/pbXgzQr2lrpIAmw8ENUBXEeWkMG1Z5pzFoqLtzYIa3EAMn v7ahC2Ckz+CEvcHKm2BUI68= X-Google-Smtp-Source: AMrXdXvg7wcllemDDn+aPwZXAp2mAqgEF5uOCLrfyjcDFD4AYA78/YdxDfzLTOR43mNalOG5HzEEUw== X-Received: by 2002:a67:fe44:0:b0:3ce:3974:4558 with SMTP id m4-20020a67fe44000000b003ce39744558mr6064840vsr.0.1673469345004; Wed, 11 Jan 2023 12:35:45 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1f:9152:0:b0:3d8:d251:63a5 with SMTP id t79-20020a1f9152000000b003d8d25163a5ls2091268vkd.4.-pod-prod-gmail; Wed, 11 Jan 2023 12:35:42 -0800 (PST) X-Received: by 2002:a1f:9e0b:0:b0:3bd:9a7a:8d01 with SMTP id h11-20020a1f9e0b000000b003bd9a7a8d01mr32139732vke.7.1673469342087; Wed, 11 Jan 2023 12:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673469342; cv=none; d=google.com; s=arc-20160816; b=w5i9TkOiZIeNyahym0aNICErQNMXtzXvm2wzPDTv7FLgX5jYDa0CSJSa1wQMKe6Mm1 Bj9wuG0dD1g7zBDwBYy+XJOv8wLwkVHVa6AwFf/dVS/w9niyC3oku3nS7jiGXFra/TqK 8shYEi/AZWruXoCYBp0SCjOnRh71T0Qu0ZMcQAnL3T1wkMlSsMjwFB2ecoU+U9VNloNK 3SpDDuXxpMYnEEoaBttyKL8umt2fkTbQJW0cePPk42XKrfChDowPq5lTbMeDGpEUO4MG PWb/qasm3OknyvOHRIiIFa9VauCuKh25hWEwhnM0hp8eurhXQTrtw1ANU/fXve4VQWVn +Ylg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OFEWQ7AWa/8P8Dnt9n1MbAmcgwsUj+iIes8iAFTxr4c=; b=RdWlvUa4Pr1Y//T0zUHFqWmOT4LuSxJ5jSE/I2i4YXuf1T+pe6fkwb51x40vxo5fdT lCAR6RwqhQUBWqdX/5ftlztIpGI/a3Z8amNE9WajCa7c3bdOds6GN3d9XXts83D3PBCC fDFGMzMsDrwCDBzI1MgojENPEtr6IKy+TtQxuhp6/S4MacgSdGSIgj7fEO8P7ZuHKESa ITLDyKL/89JVvPjeEZKABAIBNZgc0oQ7pXF2YQMpdl5Qmi+YDxbEYRtHgszoq1CKrtGK 73pHjvfxeEeO4MWvAh7g3JWq1s3vjWh4EJvfDi9L8jxxY3omPWbDTqxFcGiCKHv+Oj9Y 0F5Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D+gAhCJs; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com. [2607:f8b0:4864:20::b32]) by gmr-mx.google.com with ESMTPS id f70-20020a1f9c49000000b003d570a64695si984947vke.5.2023.01.11.12.35.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 12:35:42 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 as permitted sender) client-ip=2607:f8b0:4864:20::b32; Original-Received: by mail-yb1-xb32.google.com with SMTP id 203so16317687yby.10 for ; Wed, 11 Jan 2023 12:35:42 -0800 (PST) X-Received: by 2002:a25:3c87:0:b0:6f0:d54a:8f2d with SMTP id j129-20020a253c87000000b006f0d54a8f2dmr7538605yba.66.1673469341600; Wed, 11 Jan 2023 12:35:41 -0800 (PST) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D+gAhCJs; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 as permitted sender) smtp.mailfrom=melroch-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.io gmane.text.pandoc:31978 Archived-At: --000000000000a6113805f202f1aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =E2=86=92 PDF step behind the scene you must convert Markdown to a La= TeX 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 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-tabl= e-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 > . > --=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/CADAJKhBpJ1%2BN49M7pDrGjFFgfeGzzL%3DGNdM9q08MQr4Qmm4ZJA%40ma= il.gmail.com. --000000000000a6113805f202f1aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If I understand the longtable documenta= tion correctly you'll have to modify Pandoc's LaTeX output manually= , i.e. instead of letting pandoc handle the LaTeX =E2=86=92 PDF step behind= the scene you must convert Markdown to a LaTeX file:

``` shell
pandoc docum= ent.md -o document.ltx
```
then open the LaTeX file and look for where it sa= ys something like

``` la= tex
\begin{longtable}[]{@{}ll@{}}
\caption{My caption text}\tabularnewline
\topru= le()
dolores & culpa \\
\= midrule()
\endfirsthead
\topr= ule()
dolores & culpa \\
= \midrule()
\endhead
```
=

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

and insert

``` latex
\ca= ption[]{(Continued from previous page)}\tabularnewline
```

just below `\endf= irsthead`.

then do
=

``` shell
xelatex document.ltx
```
=
substituting your LaTeX engine of choice for `x= elatex`.

Disclaimer: I d= on'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 <ji= ewuza-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`, and learn to use `\endhea= d` 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 prope= rties.
--


--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/tpkubc%24dud%241%40ciao.gmane.io.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhBpJ1%2BN49M7pDrGjFFgfeGzzL%3DG= NdM9q08MQr4Qmm4ZJA%40mail.gmail.com.
--000000000000a6113805f202f1aa--