Labels, metadata

Michel Charpentier's Avatar

Michel Charpentier

13 Mar, 2015 05:07 PM

I have 2 questions for which I haven't been able to find an answer:

  • When the same header appears several times in a document, LaTeX complains about multiply defined labels. The --nolabels option works fine to remove id attributes when generating html, but does not remove labels in LaTeX mode (why not?). Is there a solution, short of specifying an alternate labels by hand for each conflicting header?
  • Is there a way to specify metadata on the command-line when invoking mmd? I need to change the base header level of documents I'm not free to edit and I'd rather avoid having to generate intermediate files to add the appropriate metadata.

Thanks,

MC

  1. Support Staff 1 Posted by fletcher on 13 Mar, 2015 05:20 PM

    fletcher's Avatar

    1) `--nolabels` is specifically for HTML (the HTML won't validate,
    which *does* break some things in HTML-land). But as for LaTeX, why
    does it matter if `latex` complains? It still works just fine. Have a
    glass of wine (or whatever) -- it's all good.... ;)

    If you insist on soothing your inner OCD, then yes -- you can use
    non-conflicting headers, provide manual labels, or modify the source to
    not include the `autoref` functionality when outputting latex. You
    could probably also include some latex code to reassign the autoref
    command to something else innocuous.

    Personally, I recommend the wine...

    2) Metadata is simply text at the beginning, you can concatenate
    whatever you want to the front of your document before passing it to
    MMD. There's tons of info all around the internet for command-line
    tricks to help you sort out exactly what you want.

    F-

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

Recent Discussions

11 Oct, 2018 02:59 AM
22 Apr, 2018 11:04 PM
13 Apr, 2018 10:58 PM
09 Apr, 2018 09:47 PM
09 Apr, 2018 04:28 PM

Recent Articles