* export dispatch → change the default "Contents" string
@ 2021-10-01 15:59 Jean-Christophe Helary
2021-10-01 16:35 ` Juan Manuel Macías
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe Helary @ 2021-10-01 15:59 UTC (permalink / raw)
To: orgmode
What is the parameter to change the default "Contents" ToC string when exporting to PDF ?
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export dispatch → change the default "Contents" string
2021-10-01 15:59 export dispatch → change the default "Contents" string Jean-Christophe Helary
@ 2021-10-01 16:35 ` Juan Manuel Macías
2021-10-01 16:45 ` Jean-Christophe Helary
0 siblings, 1 reply; 3+ messages in thread
From: Juan Manuel Macías @ 2021-10-01 16:35 UTC (permalink / raw)
To: Jean-Christophe Helary; +Cc: orgmode
Hi, jean-Christophe,
Jean-Christophe Helary writes:
> What is the parameter to change the default "Contents" ToC string when exporting to PDF ?
If I'm not wrong, I think there is no native Org way to change the
default string for LaTeX literals. But if you use babel (the LaTeX
package), you can add this command:
#+LaTeX_Header: \addto{\captionsenglish}{\renewcommand\contentsname{foo}}
That's the old way of doing it, and it still works. The latest Babel
versions also incorporate this other variant:
\setlocalecaption{language-name}{caption-name}{string}
for example:
\setlocalecaption{english}{contents}{Table of Contents}
NB: I strongly recommend using babel always for LaTeX, in any of its
flavors (pdfLaTeX, XeLaTeX, LuaLaTeX), instead of polyglossia, which is
a very buggy package. This package came up when babel didn't support
XeTeX and LuaTeX, years ago, but now it doesn't sense to use it.
Best regards,
Juan Manuel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export dispatch → change the default "Contents" string
2021-10-01 16:35 ` Juan Manuel Macías
@ 2021-10-01 16:45 ` Jean-Christophe Helary
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe Helary @ 2021-10-01 16:45 UTC (permalink / raw)
To: Juan Manuel Macías; +Cc: orgmode
Thank you Juan.
It does not seem to work as I expected, but that's OK, I just removed the ToC.
Jean-Christophe
> On Oct 2, 2021, at 1:35, Juan Manuel Macías <maciaschain@posteo.net> wrote:
>
> Hi, jean-Christophe,
>
> Jean-Christophe Helary writes:
>
>> What is the parameter to change the default "Contents" ToC string when exporting to PDF ?
>
> If I'm not wrong, I think there is no native Org way to change the
> default string for LaTeX literals. But if you use babel (the LaTeX
> package), you can add this command:
>
> #+LaTeX_Header: \addto{\captionsenglish}{\renewcommand\contentsname{foo}}
>
> That's the old way of doing it, and it still works. The latest Babel
> versions also incorporate this other variant:
>
> \setlocalecaption{language-name}{caption-name}{string}
>
> for example:
>
> \setlocalecaption{english}{contents}{Table of Contents}
>
> NB: I strongly recommend using babel always for LaTeX, in any of its
> flavors (pdfLaTeX, XeLaTeX, LuaLaTeX), instead of polyglossia, which is
> a very buggy package. This package came up when babel didn't support
> XeTeX and LuaTeX, years ago, but now it doesn't sense to use it.
>
> Best regards,
>
> Juan Manuel
>
>
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-01 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-01 15:59 export dispatch → change the default "Contents" string Jean-Christophe Helary
2021-10-01 16:35 ` Juan Manuel Macías
2021-10-01 16:45 ` Jean-Christophe Helary
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.