# citations

#### 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 Posted by fletcher on 03 Aug, 2017 12:00 AM

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. Posted by Guillaume Marti... on 03 Aug, 2017 09:09 AM

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.

Guillaume

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

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. Posted by Guillaume Marti... on 04 Aug, 2017 08:06 AM

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 Posted by fletcher on 04 Aug, 2017 10:19 PM

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-

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

### »

#### 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 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

 04 Aug, 2017 10:19 PM citations 31 Jul, 2017 11:21 PM MMD title to Latex 31 Jul, 2017 11:02 PM Conversion to HTML, snippet option, how to preserve DOCTYPE and closing body + HTML in transcluded sections? 27 Jul, 2017 12:22 AM mmd2rtf uses wrong file encoding 08 May, 2017 07:08 PM Latex code in MMD