Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about metadata #58

Closed
krontzo opened this issue Apr 17, 2017 · 6 comments
Closed

Question about metadata #58

krontzo opened this issue Apr 17, 2017 · 6 comments

Comments

@krontzo
Copy link

krontzo commented Apr 17, 2017

I cannot get new lines to be preserved in multiline metadata values.

Indenting and two trailing spaces do not work (for me in any case).

MMD 6.0.4

@fletcher
Copy link
Owner

Correct -- metadata cleans up whitespace.

Preserving whitespace in metadata in prior versions of MMD sort of worked and sort of didn't. I'll consider a more consistent approach in the future.

@fletcher
Copy link
Owner

I tweaked MMD (and the v6 latex support files) in the develop branch to once again support latexauthor and latextitle metadata. These are handled as raw LaTeX strings, except that whitespace is still collapsed. You will need to use \\ in lieu of newlines if you want linebreaks to appear in the output.

title:	Plain
	Title
latex title:	Plain \\
	Title
latexconfig: article

Foo

Did you have another need for linebreaks inside of metadata?

@mn4367
Copy link

mn4367 commented May 30, 2017

Why not allow them also in HTML for any metadata entry?

Our own post-processor already allows line breaks in any metadata field (two trailing whitespaces or only one trailing backslash) but it would be nice to have this builtin.

@djr555
Copy link

djr555 commented Aug 18, 2017

I don't know if this is the right place for this comment.
It seems that Latex Title: needs to be specified explicitly in metadata for pdf to work. Code suggests \latextitle should pick up \mytitle if Latex Title: is not specified, but it doesn't appear to do that. Hence QuickStart.mmd fails in "mmd6-tufte-handout-begin.tex" on mmd2pdf with:

! Undefined control sequence.
<argument> \latextitle
l.3 \title{\latextitle}

@fletcher
Copy link
Owner

It would have been better to create a new issue, but this is fine.

Do you have an example that demonstrates the problem? I believe this was fixed sometime in the last few months, but perhaps not.

@krontzo
Copy link
Author

krontzo commented Aug 9, 2019

Sorry for the delay to close this. The fix for Issue #86 also fixes this. Thank you @fletcher.

@krontzo krontzo closed this as completed Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants