Code Monkey home page Code Monkey logo

Comments (4)

iandol avatar iandol commented on September 20, 2024

Enable/disable TOC generation is indeed specified by Pandoc, which will then trigger the different ways to make a TOC in LaTeX, DOCX etc. — but the TOC itself is created from the different headings, and therefore the structure of your document in the Scrivener's Binder is what will specify the selections chosen for the TOC entries by default. But the exact placement is not easily controlled for DOCX, it is placed after the date/abstract metadata field, but currently before keywords/affiliations if you use those. You can of course move it in Word/LibreOffice manually, and add page breaks as necessary. But if you have very specific formatting requirements it may not be easy to fully automate it (well you could always write a post-processing script to edit the Word XML manually, I used to do this for LibreOffice documents to tweak things to my liking).

from scrivomatic.

madeinoz67 avatar madeinoz67 commented on September 20, 2024

Thanks @iandol I'll play around more, currently I'm formatting for docx because it was the easiest for me to do as I Ive never touched LaTex before and seemed a bit daunting, however I see no reason I that I could use LaTex for PDF generation as the institution accept either pdf or docx, so will have more control around LaTex then.

So from what you're saying, I don't need to create any content or page holders in Scrivener, I leave it up to pandoc and its templates, in this case I'll look at creating a LaTex template for my requirements where I will have more control around my TOC. Then use that for my PDF generation.

Out of interest what's your workflow for creating and trouble-shooting your LaTex templates, what applications would you recommend on MacOs

from scrivomatic.

iandol avatar iandol commented on September 20, 2024

I use Visual Studio Code as my main text editor now, which has a nice extension for working with LaTeX. My LaTeX knowledge is very limited, I hacked my own main template from the Pandoc default one, modified another for reports (Eisvogel) and one for writing letters with Scrivener (use metadata and it creates address, letterhead, signature etc. automagically into a spiffy PDF).

I use the MacTeX minimal installer and then add the packages I need on top (some info in scrivomatic readme). Problems get solved with Google as needed, LaTeX is totally baroque, but there are solutions online for most problems and enough users that problems can get resolved (Pandoc google group is pretty good too).

Pandoc>HTML>PDF using something like PrinceXML is an alternative, HTML+CSS is much more intelligible and rational for layout IMO, but there are still some outstanding problems (like maths), where LaTeX is still king...

from scrivomatic.

madeinoz67 avatar madeinoz67 commented on September 20, 2024

lol I didn't even think of VScode and I use it all the time, right under my nose thanks its all helped me a lot @iandol

from scrivomatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.