citations

Guillaume's Avatar

Guillaume

02 Aug, 2017 09:35 AM

Hi,

I use Scrivener for my writing. When I compile footnote with a citation from MMD to latex, it appears sometimes a line break without reasons:

Mmd: [#grenier2007].
Latex: \footnote{~\citep{grenier2007}.}

or sometimes I don't know why because there's no difference, it appears:

Latex:
\footnote{

~\citep{grenier2007}.}

Can you help me?
thanks
Guillaume

  1. Support Staff 1 Posted by fletcher on 03 Aug, 2017 12:00 AM

    fletcher's Avatar

    Is this from the same outdated version of MMD as your other question? I'm not away of issues like this in remotely recent versions of MultiMarkdown.

    The Scrivener forums can help you upgrade to a more modern version of MMD, which I strongly recommend.

    Otherwise, please send a complete working example, and I can try to help find the problem.

    Fletcher

  2. 2 Posted by Guillaume Marti... on 03 Aug, 2017 09:09 AM

    Guillaume Martins's Avatar

    Hi,

    I think I’ve correctly updated MMD in Scrivener (I use the Mac support file installer). I’ve tried many things for my problem.
    It seems that when I compile MMD to Latex with MMD v5 the citations are perfects in the Latex file and with MMD v6 the problem of the line break appears.

    Moreover, the problem with the label still exist whether for MMD v5 and MMD v6.

    I’ve got still:

    \subsubsection{Lests « permanent » et « momentané »}
    \label{lests« permanent »et« momentané»}

    \subsubsection{L’eau}
    \label{l’eau}

    Which make errors when I compile in pdf file.

    Thanks for your help

    Guillaume

  3. Support Staff 3 Posted by fletcher on 03 Aug, 2017 11:30 PM

    fletcher's Avatar

    These examples are different than the previous one. You used unicode
    (UTF-8) characters, which are valid label characters in HTML-5, so they
    are not stripped out.

    You're better off working with MMD instead of around it -- use plain
    quote characters and specify the desired quotes language metadata to
    convert them to the desired rich substitutes:

    latex config: article
    quoteslanguage: french

    # Lests "permanent" et "momentané"

    ## L'eau

    Alternatively, you can manually specify labels for headers and use
    whatever characters you like in the headings:

    # Lests « permanent » et « momentané » [lestspermanent]

    ## L’eau [leau]

    Whichever you prefer.

    Fletcher

  4. 4 Posted by Guillaume Marti... on 04 Aug, 2017 08:06 AM

    Guillaume Martins's Avatar

    Hi,

    I don’t understand everything about quote language metadata, but I specified already the language in my Latex file, so it should work, no?:

    \documentclass[12pt,a4paper,twoside]{book}
    \usepackage[french]{babel}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}

    But,as you said I specify manually the label and it works perfectly, so it’s good and easier for me.

    Thank you very much

    Guillaume

  5. Support Staff 5 Posted by fletcher on 04 Aug, 2017 10:19 PM

    fletcher's Avatar

    Metadata changes the behavior of MMD itself, so it translates plain
    quotes (e.g. "foo") into smart quotes (e.g. «foo»).

    But whichever way you prefer is the "right" way.

    F-

  6. fletcher closed this discussion on 22 Aug, 2017 01:16 AM.

Comments are currently closed for this discussion. You can start a new one.

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