public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* TOC title?
@ 2016-12-21 11:44 Mikolaj Machowski
       [not found] ` <05981082-5a1d-4370-bc21-4458a00a6788-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mikolaj Machowski @ 2016-12-21 11:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --]

Hello,

Is it possible to (re)define table of contents label?

I write documents in other languages than English and would like to replace 
'Table of Contents' with appropriate message.

This one didn't work:

pandoc --toc --variable=toc-title:"Spis treści" -o readme.docx README.md

Language option also looks like ignored and `--smart` option introduces 
English specific typography.

$ pandoc --version
pandoc.exe 1.19
Compiled with pandoc-types 1.17.0.4, texmath 0.9, highlighting-kate 0.6.3
Default user data directory: C:\Users\mmachowski\AppData\Roaming\pandoc
Copyright (C) 2006-2016 John MacFarlane

TIA 

m.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/05981082-5a1d-4370-bc21-4458a00a6788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1687 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TOC title?
       [not found] ` <05981082-5a1d-4370-bc21-4458a00a6788-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-12-21 18:32   ` BP Jonsson
  0 siblings, 0 replies; 2+ messages in thread
From: BP Jonsson @ 2016-12-21 18:32 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Den 2016-12-21 kl. 12:44, skrev Mikolaj Machowski:
> Hello,
>
> Is it possible to (re)define table of contents label?

Yes but you have to modify your templates yourself:

https://github.com/jgm/pandoc/wiki/How-to-add-a-%22Table-of-Contents%22-title-in-the-HTML-template

I'm far from sure that works with docx though.

/bpj


>
> I write documents in other languages than English and would like to replace
> 'Table of Contents' with appropriate message.
>
> This one didn't work:
>
> pandoc --toc --variable=toc-title:"Spis treści" -o readme.docx README.md
>
> Language option also looks like ignored and `--smart` option introduces
> English specific typography.
>
> $ pandoc --version
> pandoc.exe 1.19
> Compiled with pandoc-types 1.17.0.4, texmath 0.9, highlighting-kate 0.6.3
> Default user data directory: C:\Users\mmachowski\AppData\Roaming\pandoc
> Copyright (C) 2006-2016 John MacFarlane
>
> TIA
>
> m.
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/442994b8-b1ae-9f4b-a73a-c4210d20492e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-21 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21 11:44 TOC title? Mikolaj Machowski
     [not found] ` <05981082-5a1d-4370-bc21-4458a00a6788-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-12-21 18:32   ` BP Jonsson

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).