* Word to Tex conversion, Control Heading Levels in Tex File @ 2021-10-30 14:04 Patrick [not found] ` <175d2464-0ff5-498f-807c-c369d8781c92n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Patrick @ 2021-10-30 14:04 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1207 bytes --] Hi everyone! I use pandoc to convert single chapters of book-length manuscripts written in MS Word into Latex files (pandoc -s [Word file] -o [Tex file]). The first heading in each of these Word documents is the chapter title. In Word, I actually use the 'Heading 1' style for these chapter titles (I know there's also a 'Title' style, but too late to change now). When converting my Word files to Latex, all 'Heading 1' passages are converted to '/section{...}' passages, 'Heading 2' to '/subsection{...}', etc. Now, I was wondering if there's a way to tell pandoc to convert 'Heading 1' to '/chapter{...}', 'Heading 2' to /section{...}', etc? At the moment, I'm doing this manually and if there were a way of automating this, that would probably save me a lot of time. Many thanks! -- 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/175d2464-0ff5-498f-807c-c369d8781c92n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1570 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <175d2464-0ff5-498f-807c-c369d8781c92n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Word to Tex conversion, Control Heading Levels in Tex File [not found] ` <175d2464-0ff5-498f-807c-c369d8781c92n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-10-30 16:56 ` BPJ 0 siblings, 0 replies; 2+ messages in thread From: BPJ @ 2021-10-30 16:56 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 2030 bytes --] See the manual: https://pandoc.org/MANUAL.html#option--shift-heading-level-by Den lör 30 okt. 2021 16:04Patrick <ps19898989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev: > Hi everyone! > > I use pandoc to convert single chapters of book-length manuscripts written > in MS Word into Latex files (pandoc -s [Word file] -o [Tex file]). The > first heading in each of these Word documents is the chapter title. In > Word, I actually use the 'Heading 1' style for these chapter titles (I know > there's also a 'Title' style, but too late to change now). When converting > my Word files to Latex, all 'Heading 1' passages are converted to > '/section{...}' passages, 'Heading 2' to '/subsection{...}', etc. > > Now, I was wondering if there's a way to tell pandoc to convert 'Heading > 1' to '/chapter{...}', 'Heading 2' to /section{...}', etc? At the moment, > I'm doing this manually and if there were a way of automating this, that > would probably save me a lot of time. > > Many thanks! > > -- > 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/175d2464-0ff5-498f-807c-c369d8781c92n%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/175d2464-0ff5-498f-807c-c369d8781c92n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADAJKhBRkGJd%3D8F2oxxRmx8nPcCBePrg1HuQDLFU2835fe-Sng%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3008 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-30 16:56 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-10-30 14:04 Word to Tex conversion, Control Heading Levels in Tex File Patrick [not found] ` <175d2464-0ff5-498f-807c-c369d8781c92n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-10-30 16:56 ` BPJ
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).