Converting from Markdown-with-biblatex-commands to LaTeX












2















How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged?



question disambiguation



My question is distinct from one that may sound similar, where the issue was how to use Markdown's native citation format (e.g., [@mycitation, 23]) and have pandoc produce .tex output that converted those to biblatex commands (e.g., autocite[23]{mycitation}).



Also, to be clear, I am not asking how to have pandoc format the citations for me. In other words, I believe that the answer to my question should not involve pandoc-citeproc.



motivation



I would like to be able to write in Markdown but take advantage of the range and flexibility of biblatex-chicago cite commands, which are far more flexible than Markdown (which, for example, does not have a way to reproduce volcite{...}[...]{...} natively -- that is, without doing it manually as in @mycitation, vol. 1, p. 23). I would then like to convert those Markdown files to LaTeX that can be processed with xelatex and biber.



MWE



Markdown input:



This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]


Output using pandoc myfile.md -o myfile.tex (note the escaped curly braces and square brackets):



This assertion emph{must} be cited.footnote{See
volcite{1}{[}23{]}{mycitation}.}


Desired .tex output:



This assertion emph{must} be cited.footnote{See volcite{1}[23]{mycitation}.}









share|improve this question



























    2















    How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged?



    question disambiguation



    My question is distinct from one that may sound similar, where the issue was how to use Markdown's native citation format (e.g., [@mycitation, 23]) and have pandoc produce .tex output that converted those to biblatex commands (e.g., autocite[23]{mycitation}).



    Also, to be clear, I am not asking how to have pandoc format the citations for me. In other words, I believe that the answer to my question should not involve pandoc-citeproc.



    motivation



    I would like to be able to write in Markdown but take advantage of the range and flexibility of biblatex-chicago cite commands, which are far more flexible than Markdown (which, for example, does not have a way to reproduce volcite{...}[...]{...} natively -- that is, without doing it manually as in @mycitation, vol. 1, p. 23). I would then like to convert those Markdown files to LaTeX that can be processed with xelatex and biber.



    MWE



    Markdown input:



    This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]


    Output using pandoc myfile.md -o myfile.tex (note the escaped curly braces and square brackets):



    This assertion emph{must} be cited.footnote{See
    volcite{1}{[}23{]}{mycitation}.}


    Desired .tex output:



    This assertion emph{must} be cited.footnote{See volcite{1}[23]{mycitation}.}









    share|improve this question

























      2












      2








      2








      How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged?



      question disambiguation



      My question is distinct from one that may sound similar, where the issue was how to use Markdown's native citation format (e.g., [@mycitation, 23]) and have pandoc produce .tex output that converted those to biblatex commands (e.g., autocite[23]{mycitation}).



      Also, to be clear, I am not asking how to have pandoc format the citations for me. In other words, I believe that the answer to my question should not involve pandoc-citeproc.



      motivation



      I would like to be able to write in Markdown but take advantage of the range and flexibility of biblatex-chicago cite commands, which are far more flexible than Markdown (which, for example, does not have a way to reproduce volcite{...}[...]{...} natively -- that is, without doing it manually as in @mycitation, vol. 1, p. 23). I would then like to convert those Markdown files to LaTeX that can be processed with xelatex and biber.



      MWE



      Markdown input:



      This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]


      Output using pandoc myfile.md -o myfile.tex (note the escaped curly braces and square brackets):



      This assertion emph{must} be cited.footnote{See
      volcite{1}{[}23{]}{mycitation}.}


      Desired .tex output:



      This assertion emph{must} be cited.footnote{See volcite{1}[23]{mycitation}.}









      share|improve this question














      How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged?



      question disambiguation



      My question is distinct from one that may sound similar, where the issue was how to use Markdown's native citation format (e.g., [@mycitation, 23]) and have pandoc produce .tex output that converted those to biblatex commands (e.g., autocite[23]{mycitation}).



      Also, to be clear, I am not asking how to have pandoc format the citations for me. In other words, I believe that the answer to my question should not involve pandoc-citeproc.



      motivation



      I would like to be able to write in Markdown but take advantage of the range and flexibility of biblatex-chicago cite commands, which are far more flexible than Markdown (which, for example, does not have a way to reproduce volcite{...}[...]{...} natively -- that is, without doing it manually as in @mycitation, vol. 1, p. 23). I would then like to convert those Markdown files to LaTeX that can be processed with xelatex and biber.



      MWE



      Markdown input:



      This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]


      Output using pandoc myfile.md -o myfile.tex (note the escaped curly braces and square brackets):



      This assertion emph{must} be cited.footnote{See
      volcite{1}{[}23{]}{mycitation}.}


      Desired .tex output:



      This assertion emph{must} be cited.footnote{See volcite{1}[23]{mycitation}.}






      biblatex citing pandoc markdown






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      Alex RobertsAlex Roberts

      665311




      665311






















          1 Answer
          1






          active

          oldest

          votes


















          3














          No need to use Pandoc, you can use the Markdown package:



          documentclass{article}
          usepackage{biblatex}
          usepackage[hybrid,inlineFootnotes]{markdown}
          begin{document}
          begin{markdown}
          This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]
          end{markdown}
          end{document}


          The hybrid package option enables the TeX commands, inlineFootnotes add support for the footnotes. It supports many of the Pandoc extensions, see the manual.



          This is the result:



          enter image description here



          It is also supported by tex4ht, so you can convert your Markdown + LaTeX document to HTML:



          make4ht -us filename.tex "fn-in"





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484672%2fconverting-from-markdown-with-biblatex-commands-to-latex%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            No need to use Pandoc, you can use the Markdown package:



            documentclass{article}
            usepackage{biblatex}
            usepackage[hybrid,inlineFootnotes]{markdown}
            begin{document}
            begin{markdown}
            This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]
            end{markdown}
            end{document}


            The hybrid package option enables the TeX commands, inlineFootnotes add support for the footnotes. It supports many of the Pandoc extensions, see the manual.



            This is the result:



            enter image description here



            It is also supported by tex4ht, so you can convert your Markdown + LaTeX document to HTML:



            make4ht -us filename.tex "fn-in"





            share|improve this answer




























              3














              No need to use Pandoc, you can use the Markdown package:



              documentclass{article}
              usepackage{biblatex}
              usepackage[hybrid,inlineFootnotes]{markdown}
              begin{document}
              begin{markdown}
              This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]
              end{markdown}
              end{document}


              The hybrid package option enables the TeX commands, inlineFootnotes add support for the footnotes. It supports many of the Pandoc extensions, see the manual.



              This is the result:



              enter image description here



              It is also supported by tex4ht, so you can convert your Markdown + LaTeX document to HTML:



              make4ht -us filename.tex "fn-in"





              share|improve this answer


























                3












                3








                3







                No need to use Pandoc, you can use the Markdown package:



                documentclass{article}
                usepackage{biblatex}
                usepackage[hybrid,inlineFootnotes]{markdown}
                begin{document}
                begin{markdown}
                This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]
                end{markdown}
                end{document}


                The hybrid package option enables the TeX commands, inlineFootnotes add support for the footnotes. It supports many of the Pandoc extensions, see the manual.



                This is the result:



                enter image description here



                It is also supported by tex4ht, so you can convert your Markdown + LaTeX document to HTML:



                make4ht -us filename.tex "fn-in"





                share|improve this answer













                No need to use Pandoc, you can use the Markdown package:



                documentclass{article}
                usepackage{biblatex}
                usepackage[hybrid,inlineFootnotes]{markdown}
                begin{document}
                begin{markdown}
                This assertion *must* be cited.^[See volcite{1}[23]{mycitation}.]
                end{markdown}
                end{document}


                The hybrid package option enables the TeX commands, inlineFootnotes add support for the footnotes. It supports many of the Pandoc extensions, see the manual.



                This is the result:



                enter image description here



                It is also supported by tex4ht, so you can convert your Markdown + LaTeX document to HTML:



                make4ht -us filename.tex "fn-in"






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 5 hours ago









                michal.h21michal.h21

                32.1k447106




                32.1k447106






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484672%2fconverting-from-markdown-with-biblatex-commands-to-latex%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Callistus I

                    Tabula Rosettana

                    How to label and detect the document text images