How do I copy WhatsApp chats and retain linebreaks












2















I am looking to copy many whatsapp chats into a document and retain the linebreaks. If I just copy them in, then there are no linebreaks. How do I do this? Thanks



Verbatim (alone) doesn't work because it means text flows off the page



Just using obeylines worked perfectly










share|improve this question

























  • Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

    – Bobyandbob
    Nov 17 '17 at 14:51






  • 1





    @Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

    – TeXnician
    Nov 17 '17 at 15:10






  • 1





    related: tex.stackexchange.com/questions/266713/…

    – clemens
    Nov 17 '17 at 15:23











  • Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

    – ShreevatsaR
    Nov 17 '17 at 17:42
















2















I am looking to copy many whatsapp chats into a document and retain the linebreaks. If I just copy them in, then there are no linebreaks. How do I do this? Thanks



Verbatim (alone) doesn't work because it means text flows off the page



Just using obeylines worked perfectly










share|improve this question

























  • Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

    – Bobyandbob
    Nov 17 '17 at 14:51






  • 1





    @Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

    – TeXnician
    Nov 17 '17 at 15:10






  • 1





    related: tex.stackexchange.com/questions/266713/…

    – clemens
    Nov 17 '17 at 15:23











  • Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

    – ShreevatsaR
    Nov 17 '17 at 17:42














2












2








2








I am looking to copy many whatsapp chats into a document and retain the linebreaks. If I just copy them in, then there are no linebreaks. How do I do this? Thanks



Verbatim (alone) doesn't work because it means text flows off the page



Just using obeylines worked perfectly










share|improve this question
















I am looking to copy many whatsapp chats into a document and retain the linebreaks. If I just copy them in, then there are no linebreaks. How do I do this? Thanks



Verbatim (alone) doesn't work because it means text flows off the page



Just using obeylines worked perfectly







line-breaking copy-paste






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 '17 at 18:38







Greg

















asked Nov 17 '17 at 14:43









GregGreg

113




113













  • Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

    – Bobyandbob
    Nov 17 '17 at 14:51






  • 1





    @Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

    – TeXnician
    Nov 17 '17 at 15:10






  • 1





    related: tex.stackexchange.com/questions/266713/…

    – clemens
    Nov 17 '17 at 15:23











  • Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

    – ShreevatsaR
    Nov 17 '17 at 17:42



















  • Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

    – Bobyandbob
    Nov 17 '17 at 14:51






  • 1





    @Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

    – TeXnician
    Nov 17 '17 at 15:10






  • 1





    related: tex.stackexchange.com/questions/266713/…

    – clemens
    Nov 17 '17 at 15:23











  • Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

    – ShreevatsaR
    Nov 17 '17 at 17:42

















Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

– Bobyandbob
Nov 17 '17 at 14:51





Welcome to TeX.SX! I think this isn't a LaTeX related question or could you explain the problem with latex?

– Bobyandbob
Nov 17 '17 at 14:51




1




1





@Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

– TeXnician
Nov 17 '17 at 15:10





@Bobyandbob I suspect the user wants just to keep line breaks as obeylines or similar would do, but this question is rather unclear.

– TeXnician
Nov 17 '17 at 15:10




1




1





related: tex.stackexchange.com/questions/266713/…

– clemens
Nov 17 '17 at 15:23





related: tex.stackexchange.com/questions/266713/…

– clemens
Nov 17 '17 at 15:23













Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

– ShreevatsaR
Nov 17 '17 at 17:42





Can you add some examples of what your input text looks like? I mean the text you copied into your .tex document and are trying to typeset.

– ShreevatsaR
Nov 17 '17 at 17:42










2 Answers
2






active

oldest

votes


















3














Put it into a verbatim environment. begin{verbatim} whatsapptext end{verbatim}.





EDIT:



So you don't want linebreak, except in all cases where lines that are longer than let's say 72 letters? Please provide an example as »MWE«. Probably the easiest way might be to use your editor's search and replace function:



Swap each end-of-line sign with a double backslass \. Then try instead of the verbatim environment the verse environment. However, it would be much easier if we had an MWE.






share|improve this answer





















  • 1





    @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

    – Keks Dose
    Nov 17 '17 at 14:56






  • 1





    @KeksDose a question is only on the unanswered list if it has no upvoted answer

    – clemens
    Nov 17 '17 at 15:22











  • I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

    – Greg
    Nov 17 '17 at 15:22













  • Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

    – Greg
    Nov 17 '17 at 15:31



















0














You can just pick it up for a time and it automatically connected






share|improve this answer








New contributor




Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%2f401788%2fhow-do-i-copy-whatsapp-chats-and-retain-linebreaks%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Put it into a verbatim environment. begin{verbatim} whatsapptext end{verbatim}.





    EDIT:



    So you don't want linebreak, except in all cases where lines that are longer than let's say 72 letters? Please provide an example as »MWE«. Probably the easiest way might be to use your editor's search and replace function:



    Swap each end-of-line sign with a double backslass \. Then try instead of the verbatim environment the verse environment. However, it would be much easier if we had an MWE.






    share|improve this answer





















    • 1





      @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

      – Keks Dose
      Nov 17 '17 at 14:56






    • 1





      @KeksDose a question is only on the unanswered list if it has no upvoted answer

      – clemens
      Nov 17 '17 at 15:22











    • I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

      – Greg
      Nov 17 '17 at 15:22













    • Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

      – Greg
      Nov 17 '17 at 15:31
















    3














    Put it into a verbatim environment. begin{verbatim} whatsapptext end{verbatim}.





    EDIT:



    So you don't want linebreak, except in all cases where lines that are longer than let's say 72 letters? Please provide an example as »MWE«. Probably the easiest way might be to use your editor's search and replace function:



    Swap each end-of-line sign with a double backslass \. Then try instead of the verbatim environment the verse environment. However, it would be much easier if we had an MWE.






    share|improve this answer





















    • 1





      @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

      – Keks Dose
      Nov 17 '17 at 14:56






    • 1





      @KeksDose a question is only on the unanswered list if it has no upvoted answer

      – clemens
      Nov 17 '17 at 15:22











    • I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

      – Greg
      Nov 17 '17 at 15:22













    • Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

      – Greg
      Nov 17 '17 at 15:31














    3












    3








    3







    Put it into a verbatim environment. begin{verbatim} whatsapptext end{verbatim}.





    EDIT:



    So you don't want linebreak, except in all cases where lines that are longer than let's say 72 letters? Please provide an example as »MWE«. Probably the easiest way might be to use your editor's search and replace function:



    Swap each end-of-line sign with a double backslass \. Then try instead of the verbatim environment the verse environment. However, it would be much easier if we had an MWE.






    share|improve this answer















    Put it into a verbatim environment. begin{verbatim} whatsapptext end{verbatim}.





    EDIT:



    So you don't want linebreak, except in all cases where lines that are longer than let's say 72 letters? Please provide an example as »MWE«. Probably the easiest way might be to use your editor's search and replace function:



    Swap each end-of-line sign with a double backslass \. Then try instead of the verbatim environment the verse environment. However, it would be much easier if we had an MWE.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 17 '17 at 17:09

























    answered Nov 17 '17 at 14:46









    Keks DoseKeks Dose

    20.9k35194




    20.9k35194








    • 1





      @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

      – Keks Dose
      Nov 17 '17 at 14:56






    • 1





      @KeksDose a question is only on the unanswered list if it has no upvoted answer

      – clemens
      Nov 17 '17 at 15:22











    • I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

      – Greg
      Nov 17 '17 at 15:22













    • Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

      – Greg
      Nov 17 '17 at 15:31














    • 1





      @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

      – Keks Dose
      Nov 17 '17 at 14:56






    • 1





      @KeksDose a question is only on the unanswered list if it has no upvoted answer

      – clemens
      Nov 17 '17 at 15:22











    • I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

      – Greg
      Nov 17 '17 at 15:22













    • Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

      – Greg
      Nov 17 '17 at 15:31








    1




    1





    @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

    – Keks Dose
    Nov 17 '17 at 14:56





    @Greg Then please accept my answer, because then the question no longer remains in the list of unanswered questions.

    – Keks Dose
    Nov 17 '17 at 14:56




    1




    1





    @KeksDose a question is only on the unanswered list if it has no upvoted answer

    – clemens
    Nov 17 '17 at 15:22





    @KeksDose a question is only on the unanswered list if it has no upvoted answer

    – clemens
    Nov 17 '17 at 15:22













    I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

    – Greg
    Nov 17 '17 at 15:22







    I'm recieving this error seemingly with longer conversations. Do you know how to fix this? Package inputenc Error: Unicode char ‍ (U+200D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.204 end{verbatim}

    – Greg
    Nov 17 '17 at 15:22















    Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

    – Greg
    Nov 17 '17 at 15:31





    Wait, this actually doesn't work, because it means that the text flows off the page for some reason?

    – Greg
    Nov 17 '17 at 15:31











    0














    You can just pick it up for a time and it automatically connected






    share|improve this answer








    New contributor




    Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      You can just pick it up for a time and it automatically connected






      share|improve this answer








      New contributor




      Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        You can just pick it up for a time and it automatically connected






        share|improve this answer








        New contributor




        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        You can just pick it up for a time and it automatically connected







        share|improve this answer








        New contributor




        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 15 mins ago









        Himanshu SharmaHimanshu Sharma

        1




        1




        New contributor




        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Himanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f401788%2fhow-do-i-copy-whatsapp-chats-and-retain-linebreaks%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt