markdown to pdf with wordwrappingExporting Markdown + CSS to PDFWhat advantages does markdown have over...

I am the person who abides by rules, but breaks the rules. Who am I?

Do similar matrices have same characteristic equations?

What can I do if someone tampers with my SSH public key?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

How do you make a gun that shoots melee weapons and/or swords?

What is the purpose of a disclaimer like "this is not legal advice"?

What do you call someone who likes to pick fights?

Cycles on the torus

Under what conditions can the right to remain silent be revoked in the USA?

Converting from "matrix" data into "coordinate" data

Is divide-by-zero a security vulnerability?

Can one live in the U.S. and not use a credit card?

How should I solve this integral with changing parameters?

I can't die. Who am I?

Can I negotiate a patent idea for a raise, under French law?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

What is better: yes / no radio, or simple checkbox?

LaTeX logo in tufte-book

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Trocar background-image com delay via jQuery

ESPP--any reason not to go all in?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

What will happen if my luggage gets delayed?

Leveling the sagging side of the home



markdown to pdf with wordwrapping


Exporting Markdown + CSS to PDFWhat advantages does markdown have over asciidoc?How can I correctly install “ReText” Markdown Editor on Ubuntu?open markdown files in vim: only a few lines shownScript to view office documents in Microsoft Office OnlineWhen I create a new directory, create a markdown file with the same name in itHow do I copy web clipping as Markdown?Easy Markdown to Latex to PDF Workflow?Converting EPUB to PDF using PandocMarkdown unable to convert devanagari characters













1















Using pandoc like:



 pandoc -o output.pdf input.md 


does not give me a result with word-wrapping.



For instance, three liner input.md looks like the following:



# Introduction

Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus, porta quam penatibus, at metus, purus leo est. Sed faucibus odio in amet, in sapien ut sapien eu, vehicula pede vel pellentesque, ut hac lacinia mauris ridiculus rhoncus ligula. Sit congue, ac montes, lorem ligula etiam ac fusce ipsum, lacus dolor in suscipit aliquet vitae. Blandit neque aliquam, amet vel, ante nullam neque. Adipiscing nullam, neque elit, nunc non mauris libero vivamus tortor.


running the above command yields a pdf document with some content as the following:



Introduction
Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus,


Is there a fast way of converting a markdown(.md) file to pdf with word-wrapping (similar to the way done in here)?










share|improve this question

























  • Can you provide an example?

    – Salem
    Aug 21 '13 at 19:20






  • 1





    I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

    – evilsoup
    Aug 21 '13 at 23:11











  • @evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

    – pacodelumberg
    Aug 22 '13 at 8:32






  • 1





    Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

    – evilsoup
    Aug 22 '13 at 9:09











  • Maybe you can use templating in pandoc

    – cosmoscalibur
    Jan 3 '16 at 4:43


















1















Using pandoc like:



 pandoc -o output.pdf input.md 


does not give me a result with word-wrapping.



For instance, three liner input.md looks like the following:



# Introduction

Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus, porta quam penatibus, at metus, purus leo est. Sed faucibus odio in amet, in sapien ut sapien eu, vehicula pede vel pellentesque, ut hac lacinia mauris ridiculus rhoncus ligula. Sit congue, ac montes, lorem ligula etiam ac fusce ipsum, lacus dolor in suscipit aliquet vitae. Blandit neque aliquam, amet vel, ante nullam neque. Adipiscing nullam, neque elit, nunc non mauris libero vivamus tortor.


running the above command yields a pdf document with some content as the following:



Introduction
Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus,


Is there a fast way of converting a markdown(.md) file to pdf with word-wrapping (similar to the way done in here)?










share|improve this question

























  • Can you provide an example?

    – Salem
    Aug 21 '13 at 19:20






  • 1





    I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

    – evilsoup
    Aug 21 '13 at 23:11











  • @evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

    – pacodelumberg
    Aug 22 '13 at 8:32






  • 1





    Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

    – evilsoup
    Aug 22 '13 at 9:09











  • Maybe you can use templating in pandoc

    – cosmoscalibur
    Jan 3 '16 at 4:43
















1












1








1


1






Using pandoc like:



 pandoc -o output.pdf input.md 


does not give me a result with word-wrapping.



For instance, three liner input.md looks like the following:



# Introduction

Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus, porta quam penatibus, at metus, purus leo est. Sed faucibus odio in amet, in sapien ut sapien eu, vehicula pede vel pellentesque, ut hac lacinia mauris ridiculus rhoncus ligula. Sit congue, ac montes, lorem ligula etiam ac fusce ipsum, lacus dolor in suscipit aliquet vitae. Blandit neque aliquam, amet vel, ante nullam neque. Adipiscing nullam, neque elit, nunc non mauris libero vivamus tortor.


running the above command yields a pdf document with some content as the following:



Introduction
Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus,


Is there a fast way of converting a markdown(.md) file to pdf with word-wrapping (similar to the way done in here)?










share|improve this question
















Using pandoc like:



 pandoc -o output.pdf input.md 


does not give me a result with word-wrapping.



For instance, three liner input.md looks like the following:



# Introduction

Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus, porta quam penatibus, at metus, purus leo est. Sed faucibus odio in amet, in sapien ut sapien eu, vehicula pede vel pellentesque, ut hac lacinia mauris ridiculus rhoncus ligula. Sit congue, ac montes, lorem ligula etiam ac fusce ipsum, lacus dolor in suscipit aliquet vitae. Blandit neque aliquam, amet vel, ante nullam neque. Adipiscing nullam, neque elit, nunc non mauris libero vivamus tortor.


running the above command yields a pdf document with some content as the following:



Introduction
Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus,


Is there a fast way of converting a markdown(.md) file to pdf with word-wrapping (similar to the way done in here)?







pdf layout markdown pandoc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 mins ago









David Cary

5223618




5223618










asked Aug 21 '13 at 18:25









pacodelumbergpacodelumberg

545146




545146













  • Can you provide an example?

    – Salem
    Aug 21 '13 at 19:20






  • 1





    I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

    – evilsoup
    Aug 21 '13 at 23:11











  • @evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

    – pacodelumberg
    Aug 22 '13 at 8:32






  • 1





    Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

    – evilsoup
    Aug 22 '13 at 9:09











  • Maybe you can use templating in pandoc

    – cosmoscalibur
    Jan 3 '16 at 4:43





















  • Can you provide an example?

    – Salem
    Aug 21 '13 at 19:20






  • 1





    I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

    – evilsoup
    Aug 21 '13 at 23:11











  • @evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

    – pacodelumberg
    Aug 22 '13 at 8:32






  • 1





    Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

    – evilsoup
    Aug 22 '13 at 9:09











  • Maybe you can use templating in pandoc

    – cosmoscalibur
    Jan 3 '16 at 4:43



















Can you provide an example?

– Salem
Aug 21 '13 at 19:20





Can you provide an example?

– Salem
Aug 21 '13 at 19:20




1




1





I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

– evilsoup
Aug 21 '13 at 23:11





I'm really not sure what you are talking about: pandoc-generated PDFs have word wrapping for me (actually, the files are converted to LaTeX and then sent to a LaTeX engine for PDF), and your example looks like it's word wrapped...

– evilsoup
Aug 21 '13 at 23:11













@evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

– pacodelumberg
Aug 22 '13 at 8:32





@evilsoup Thanks for your comment. Could you share the method you used to generate wordwrapped documents? My problem is that; calling pandoc as above gives me a truncated result. Namely, instead of wrapping the sentence, I get a cut sentence. I hope it's a bit more clear this time :-).

– pacodelumberg
Aug 22 '13 at 8:32




1




1





Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

– evilsoup
Aug 22 '13 at 9:09





Oh, I understand now... using exactly the same command as you do works perfectly well for me (on pandoc version 1.10.1, from the Ubuntu 13.04 repos). Here is a file that works for me -- run your command over it & then we can determine whether the problem is with your input files (were they written on Windows, maybe?) or pandoc/your LaTeX engine.

– evilsoup
Aug 22 '13 at 9:09













Maybe you can use templating in pandoc

– cosmoscalibur
Jan 3 '16 at 4:43







Maybe you can use templating in pandoc

– cosmoscalibur
Jan 3 '16 at 4:43












1 Answer
1






active

oldest

votes


















1














Markdown to PDF



With Pandoc



On my Ubuntu 16.04:



pandoc Manual.md --latex-engine=xelatex -o Manual.pdf


If you get the error




pandoc: xelatex not found. xelatex is needed for pdf output.




install the huge (~600 MB) package



sudo apt install texlive-xetex


With markdown-pdf NodeJS package



npm install -g markdown-pdf
markdown-pdf /path/to/markdown





share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f335495%2fmarkdown-to-pdf-with-wordwrapping%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









    1














    Markdown to PDF



    With Pandoc



    On my Ubuntu 16.04:



    pandoc Manual.md --latex-engine=xelatex -o Manual.pdf


    If you get the error




    pandoc: xelatex not found. xelatex is needed for pdf output.




    install the huge (~600 MB) package



    sudo apt install texlive-xetex


    With markdown-pdf NodeJS package



    npm install -g markdown-pdf
    markdown-pdf /path/to/markdown





    share|improve this answer






























      1














      Markdown to PDF



      With Pandoc



      On my Ubuntu 16.04:



      pandoc Manual.md --latex-engine=xelatex -o Manual.pdf


      If you get the error




      pandoc: xelatex not found. xelatex is needed for pdf output.




      install the huge (~600 MB) package



      sudo apt install texlive-xetex


      With markdown-pdf NodeJS package



      npm install -g markdown-pdf
      markdown-pdf /path/to/markdown





      share|improve this answer




























        1












        1








        1







        Markdown to PDF



        With Pandoc



        On my Ubuntu 16.04:



        pandoc Manual.md --latex-engine=xelatex -o Manual.pdf


        If you get the error




        pandoc: xelatex not found. xelatex is needed for pdf output.




        install the huge (~600 MB) package



        sudo apt install texlive-xetex


        With markdown-pdf NodeJS package



        npm install -g markdown-pdf
        markdown-pdf /path/to/markdown





        share|improve this answer















        Markdown to PDF



        With Pandoc



        On my Ubuntu 16.04:



        pandoc Manual.md --latex-engine=xelatex -o Manual.pdf


        If you get the error




        pandoc: xelatex not found. xelatex is needed for pdf output.




        install the huge (~600 MB) package



        sudo apt install texlive-xetex


        With markdown-pdf NodeJS package



        npm install -g markdown-pdf
        markdown-pdf /path/to/markdown






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 12 '17 at 14:40

























        answered Jun 12 '17 at 14:33









        Pablo BianchiPablo Bianchi

        2,90521535




        2,90521535






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f335495%2fmarkdown-to-pdf-with-wordwrapping%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

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...