Giter VIP home page Giter VIP logo

Comments (4)

TeaDrinkingProgrammer avatar TeaDrinkingProgrammer commented on June 9, 2024 1

Hi there!

  1. Yes, that's right
  2. I can do that
  3. I'll look into opening a PR-request some time soon.

from zettlr.

nathanlesage avatar nathanlesage commented on June 9, 2024

Three questions:

  1. Do i understand correctly that we should remove two of the three properties that you removed in the second code block?
  2. Can you provide example outputs for both settings?
  3. Would you mind opening a PR with these changes?

from zettlr.

nathanlesage avatar nathanlesage commented on June 9, 2024

Amazing, thank you!

from zettlr.

TeaDrinkingProgrammer avatar TeaDrinkingProgrammer commented on June 9, 2024

So I have done some more digging, and these are my findings.

On Zettlr 3.0.5, XeLaTex 3.141592653-2.6-0.999996 (MiKTeX 24.3) and Pandoc 3.1.3, when you take the XeLaTeX PDF template and change number-sections from false to true and generate a PDF from this MD file:

---
title: "Test"
---
# Chapter 1
## Chapter 1.1
### Chapter 1.1.1
# Chapter 2
# Chapter 3
## Chapter 3.1

You get this:
image

When you change the base config and remove:

shift-heading-level-by: 1

And then change number-sections from false to true. This is the result:

image

The number-offset flag doesn't seem to change anything after all. It doesn't do anything at all in PDF per definition, but in HTML it also doesn't seem to matter so the problem is solely with the shift-heading-level-by flag.

from zettlr.

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.