GithubHelp home page GithubHelp logo

Comments (7)

fletcher avatar fletcher commented on June 7, 2024

It's hard to tell from your brief description, but it appears you are confusing BibTeX and the MMD "built-in" citation support.

BibTeX is used when outputting to LaTeX -- it won't work for HTML.

The built-in support is useful for HTML and other formats, but does not give as good a result as LaTeX.

If you give more information, I can help you figure out what you're doing wrong.

from multimarkdown-4.

MatthiasLohr avatar MatthiasLohr commented on June 7, 2024

I'm currently writing on my diploma thesis and my professor asked me to try, if it's possible to do that with multimarkdown. For that, i need citation support.

I tried to add a citation like it's explained in your example:

This is a statement that should be attributed to
its source[p. 23][#Doe:2006].

And following is the description of the reference to be
used in the bibliography.

[#Doe:2006]: John Doe. *Some Big Fancy Book*.  Vanity Press, 2006.

When converting to latex, the text with the citation annotation will be created, but not the citation details (as you can see in my first post... that's the conversion result of the example code).

from multimarkdown-4.

fletcher avatar fletcher commented on June 7, 2024

That example works just fine. Did you make a complete document, or just a snippet? For a bibliography, you need a complete document.

\def\mytitle{sample}

This is a statement that should be attributed to
its source~\citep[p. 23]{Doe:2006}.

And following is the description of the reference to be
used in the bibliography.

\begin{thebibliography}{0}

\bibitem{Doe:2006}
John Doe. \emph{Some Big Fancy Book}. Vanity Press, 2006.

\end{thebibliography}
\end{document}

from multimarkdown-4.

MatthiasLohr avatar MatthiasLohr commented on June 7, 2024

Oh, ok, indeed, i use only snippets, because the whole thesis in one file is too big, so i have to split it into seperate files. Any idea how to get the bibliography for snippets?

from multimarkdown-4.

fletcher avatar fletcher commented on June 7, 2024

You would then end up with a separate bibliography for each file. I assume this is not what you want, and it probably wouldn't work in LaTeX anyway (but I have not tested it).

You want to combine all of your files before passing through MMD in order to generate one, cohesive LaTeX file. Can use mmd_merge if you want the MMD source split amongst separate files (e.g. chapters) while working, but combined when processing.

from multimarkdown-4.

MatthiasLohr avatar MatthiasLohr commented on June 7, 2024

Thank you! I created a Makefile doing the work with concatenating and converting my mmd files to a final pdf document. Citation is working now, after i used a complete build.

Is there any possibility to change the citation mark, e. g. use custom labels instead of [1], [2], ...?

from multimarkdown-4.

fletcher avatar fletcher commented on June 7, 2024

If you use BibTeX, you can use just about anything you want. Outside of the scope of MMD, but it's much more powerful.

from multimarkdown-4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.