* Markdown to PDF... but Preface, Legal, Acknowledgments, how to? @ 2018-06-24 0:34 ArtComm [not found] ` <8788117b-7fcf-46d7-a0db-d20e13eaf98d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: ArtComm @ 2018-06-24 0:34 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1257 bytes --] So far I am getting great results: the PDF's are coming out perfectly formatted. But the resulting pdf is lacking: Legal Acknowlegments Preface Introduction In *Book* documents. I am using the Xelatek engine and the original content is created in Markdown. But I need the above pages to be inserted *before* the TOC. I can insert the pages by naming them as such and then marking them as not being part of the chapter count, but they would be placed *after* the TOC, which is *not* according to book structure tradition. I have control over the yuml markdown inserted or to be inserted section. But I need the sections to be recognized by the latex file. Any suggestions? -- 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/8788117b-7fcf-46d7-a0db-d20e13eaf98d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1889 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <8788117b-7fcf-46d7-a0db-d20e13eaf98d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Markdown to PDF... but Preface, Legal, Acknowledgments, how to? [not found] ` <8788117b-7fcf-46d7-a0db-d20e13eaf98d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-06-24 11:14 ` John MacFarlane 2018-06-24 20:29 ` ArtComm 1 sibling, 0 replies; 4+ messages in thread From: John MacFarlane @ 2018-06-24 11:14 UTC (permalink / raw) To: ArtComm, pandoc-discuss Your best bet, if you're targeting only latex/pdf, is to avoid using the --toc option, and instead insert the requisite latex commands as raw tex in your markdown document. You should be able to use `\frontmatter`, `\mainmatter`, and `\tableofcontents`, and they will be passed through to the generated latex. Something like: \frontmatter # Legal blah blah # Acknowledgements thanks # Preface yaddah yaddah # Introduction blah \tableofcontents \mainmatter # Chapter one Try that. ArtComm <ffortuny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > So far I am getting great results: the PDF's are coming out perfectly > formatted. > > But the resulting pdf is lacking: > > Legal > Acknowlegments > Preface > Introduction > > In *Book* documents. > > I am using the Xelatek engine and the original content is created in > Markdown. > > But I need the above pages to be inserted *before* the TOC. > > I can insert the pages by naming them as such and then marking them as not > being part of the chapter count, but they would be placed *after* the TOC, > which is *not* according to book structure tradition. > > I have control over the yuml markdown inserted or to be inserted section. > But I need the sections to be recognized by the latex file. > > Any suggestions? > > -- > 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/8788117b-7fcf-46d7-a0db-d20e13eaf98d%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Markdown to PDF... but Preface, Legal, Acknowledgments, how to? [not found] ` <8788117b-7fcf-46d7-a0db-d20e13eaf98d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-06-24 11:14 ` John MacFarlane @ 2018-06-24 20:29 ` ArtComm [not found] ` <4e5f1ee3-0195-4f54-beb6-28d0012d9f24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: ArtComm @ 2018-06-24 20:29 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1217 bytes --] Thanks! It did work; partially, but it is working. Perhaps I need to do something else in order to avoid one-page front matter to be presented in lonely pages, since all chapters begin on odd pages. I would like the front matter stuff to be all in 1 page and the next front matter page should start at the next available page and not at the next odd page. Suggestions will be welcome. The Table of Contents is properly generated and placed at the correct place, with front matter pages indicated in Roman numbers. Nice. Most books I have been checking place the TOC *before* some front matter pages; but that does not make much sense. -- 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/4e5f1ee3-0195-4f54-beb6-28d0012d9f24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1765 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4e5f1ee3-0195-4f54-beb6-28d0012d9f24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Markdown to PDF... but Preface, Legal, Acknowledgments, how to? [not found] ` <4e5f1ee3-0195-4f54-beb6-28d0012d9f24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-06-24 22:43 ` ArtComm 0 siblings, 0 replies; 4+ messages in thread From: ArtComm @ 2018-06-24 22:43 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --] The too-much wasted paper problem has been fixed. Since my web app retrieves material from a database, which is where the user is storing her books or articles: Depending on text material, they are included in: \frontmatter (witch \newpage after each text) \tableofcontents (this is 100% automatic) \mainmatter It is irrelevant for the epub and formats the PDF perfectly. The TOC looks like this: <https://lh3.googleusercontent.com/-yJVIfoSlisI/WzAeR0OFZSI/AAAAAAABQ7w/KsuXFn2YCF8ooCycbNk_8GBGLazcRxJ8gCLcBGAs/s1600/index.JPG> Where even the TOC itself is located at a Roman Numbered page, just before the main matter starts. -- 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/5ed50999-ec6b-496d-990a-295e639d7b10%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2345 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-24 22:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-06-24 0:34 Markdown to PDF... but Preface, Legal, Acknowledgments, how to? ArtComm [not found] ` <8788117b-7fcf-46d7-a0db-d20e13eaf98d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-06-24 11:14 ` John MacFarlane 2018-06-24 20:29 ` ArtComm [not found] ` <4e5f1ee3-0195-4f54-beb6-28d0012d9f24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-06-24 22:43 ` ArtComm
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).