How to number a document?

dom's Avatar

dom

22 Aug, 2018 02:21 PM

Hi everyone! I would like to be able to organize my documents using this numbered outline : I, 1, 2, 3; II, 1, 2, 3. How could I do that? And do I need to download a css file? Thanks for your help.

  1. Support Staff 1 Posted by Brett on 22 Aug, 2018 05:10 PM

    Brett's Avatar

    Are you talking about the outline mode?

    -Brett

  2. 2 Posted by dom on 22 Aug, 2018 05:39 PM

    dom's Avatar

    No, I'm talking about the final compiling: for the moment, I obtain a very nice numbered outline (1, 1.1, 1.2, and so on) when I print the whole. And I'd like to be able to obtain a numbered outline that I could also print as I use to have with Latex : (I, 1, 1.1, 1.1.1...). Is that possible? By the way, Marked is a very nice tool!

  3. Support Staff 3 Posted by Brett on 23 Aug, 2018 01:46 PM

    Brett's Avatar

    Right, but are you generating the outline manually using list syntax, or
    by using Outline Mode in Marked? If you're generating it manually, you
    can control the headings at each level under Preferences->Export. If
    using the outline mode, the only options are Decimal and APA format.

    -Brett

  4. 4 Posted by dom on 23 Aug, 2018 01:54 PM

    dom's Avatar

    Unfortunately, even when I set the headings under Preferences and export, my pdf is only numbered as: 1., 1.1., 1.1.1 and not as I, 1., 1.1., and so on. But, maybe the problem is in relation with the custom css I use? This is this css that I found here:
    body {
    counter-reset: h1 }

    h1 {
    counter-reset: h2 }

    h2 {
    counter-reset: h3 }

    h3 {
    counter-reset: h4 }

    h1:before {
    counter-increment: h1; content: counter(h1) ". " }

    h2:before {
    counter-increment: h2; content: counter(h1) "." counter(h2) ". " }

    h3:before {
    counter-increment: h3; content: counter(h1) "." counter(h2) "." counter(h3) ". " }

    h4:before {
    counter-increment: h4; content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". " }

  5. Support Staff 5 Posted by Brett on 23 Aug, 2018 02:52 PM

    Brett's Avatar

    The headings in preferences only apply to lists. What you're creating is
    not a list, but a CSS-based outline using headres, and it can only ever
    use digits (it's directly applying the prefixes, not creating a real
    outline).

    -Brett

  6. Support Staff 6 Posted by Brett on 23 Aug, 2018 02:55 PM

    Brett's Avatar

    Also, the CSS you're adding is already part of Marked. From the gear
    menu, choose Outline Mode, decimal and it will do the same thing. Still
    just a decimal outline, though.

  7. 7 Posted by dom on 23 Aug, 2018 02:59 PM

    dom's Avatar

    Okay. I didn't know that. If Marked could provide this feature, which is very useful when you use a Tex editor and can separate the sections of your document with roman parts, it would be great! No matter, Marked 2 is a very very nice tool and I'm going to buy it. Felicitation to your work!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac