Csvsimple with nonenglish: error











up vote
3
down vote

favorite












Trying to parse table with russian symbols. Example csv file:



Название, Автор, Год
Бесы, Достоевский, 1871


Can't create a table from this file with any command: csvloop, csvautotabular{table.csv}, csvautobooktabular{table.csv}. While if everything is in English — works perfect.

File table.csv UTF-8 encoded, document uses usepackage[utf8]{inputenc}, usepackage[english,russian]{babel}.



These are the errors:



! Package csvsimple Error: File 'table.csv' starts with an empty line!.
! Missing endcsname inserted.
! Extra endcsname.
! File ended while scanning use of pgfkeys@temp


Can't find anything in documentation or elsewhere in the Tex forums on this problem.



Example .tex file:



documentclass[a4paper,11pt]{ncc}
usepackage[english,russian]{babel}
usepackage[utf8]{inputenc}
usepackage{csvsimple}
begin{document}
csvautotabular{table.csv}
end{document}









share|improve this question









New contributor




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




















  • Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
    – egreg
    10 hours ago










  • @egreg Sure. I just did.
    – Grigory Shepelev
    9 hours ago















up vote
3
down vote

favorite












Trying to parse table with russian symbols. Example csv file:



Название, Автор, Год
Бесы, Достоевский, 1871


Can't create a table from this file with any command: csvloop, csvautotabular{table.csv}, csvautobooktabular{table.csv}. While if everything is in English — works perfect.

File table.csv UTF-8 encoded, document uses usepackage[utf8]{inputenc}, usepackage[english,russian]{babel}.



These are the errors:



! Package csvsimple Error: File 'table.csv' starts with an empty line!.
! Missing endcsname inserted.
! Extra endcsname.
! File ended while scanning use of pgfkeys@temp


Can't find anything in documentation or elsewhere in the Tex forums on this problem.



Example .tex file:



documentclass[a4paper,11pt]{ncc}
usepackage[english,russian]{babel}
usepackage[utf8]{inputenc}
usepackage{csvsimple}
begin{document}
csvautotabular{table.csv}
end{document}









share|improve this question









New contributor




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




















  • Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
    – egreg
    10 hours ago










  • @egreg Sure. I just did.
    – Grigory Shepelev
    9 hours ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Trying to parse table with russian symbols. Example csv file:



Название, Автор, Год
Бесы, Достоевский, 1871


Can't create a table from this file with any command: csvloop, csvautotabular{table.csv}, csvautobooktabular{table.csv}. While if everything is in English — works perfect.

File table.csv UTF-8 encoded, document uses usepackage[utf8]{inputenc}, usepackage[english,russian]{babel}.



These are the errors:



! Package csvsimple Error: File 'table.csv' starts with an empty line!.
! Missing endcsname inserted.
! Extra endcsname.
! File ended while scanning use of pgfkeys@temp


Can't find anything in documentation or elsewhere in the Tex forums on this problem.



Example .tex file:



documentclass[a4paper,11pt]{ncc}
usepackage[english,russian]{babel}
usepackage[utf8]{inputenc}
usepackage{csvsimple}
begin{document}
csvautotabular{table.csv}
end{document}









share|improve this question









New contributor




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











Trying to parse table with russian symbols. Example csv file:



Название, Автор, Год
Бесы, Достоевский, 1871


Can't create a table from this file with any command: csvloop, csvautotabular{table.csv}, csvautobooktabular{table.csv}. While if everything is in English — works perfect.

File table.csv UTF-8 encoded, document uses usepackage[utf8]{inputenc}, usepackage[english,russian]{babel}.



These are the errors:



! Package csvsimple Error: File 'table.csv' starts with an empty line!.
! Missing endcsname inserted.
! Extra endcsname.
! File ended while scanning use of pgfkeys@temp


Can't find anything in documentation or elsewhere in the Tex forums on this problem.



Example .tex file:



documentclass[a4paper,11pt]{ncc}
usepackage[english,russian]{babel}
usepackage[utf8]{inputenc}
usepackage{csvsimple}
begin{document}
csvautotabular{table.csv}
end{document}






tables csvsimple






share|improve this question









New contributor




Grigory Shepelev 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 question









New contributor




Grigory Shepelev 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 question




share|improve this question








edited 9 hours ago





















New contributor




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









asked 10 hours ago









Grigory Shepelev

183




183




New contributor




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





New contributor





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






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












  • Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
    – egreg
    10 hours ago










  • @egreg Sure. I just did.
    – Grigory Shepelev
    9 hours ago


















  • Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
    – egreg
    10 hours ago










  • @egreg Sure. I just did.
    – Grigory Shepelev
    9 hours ago
















Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
– egreg
10 hours ago




Welcome! Can you please add a small LaTeX file that shows the issue, from documentclass to end{document}?
– egreg
10 hours ago












@egreg Sure. I just did.
– Grigory Shepelev
9 hours ago




@egreg Sure. I just did.
– Grigory Shepelev
9 hours ago










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










There are two orders of problems.




  1. The first row is also used to give symbolic names to the columns, but Cyrillic characters cannot appear in command names. Possibly this can be solved by options not to interpret the first line.


  2. Cyrillic characters seem to thoroughly confuse csvsimple; you'd need to brace each entry.



My suggestion is to use XeLaTeX.



begin{filecontents*}{jobname.csv}
Название, Автор, Год
Бесы, Достоевский, 1871
end{filecontents*}

documentclass[a4paper,11pt]{ncc}
usepackage[english,russian]{babel}
usepackage{fontspec}
usepackage{csvsimple}

setmainfont{CMU Serif}

begin{document}
csvautotabular{jobname.csv}
end{document}


I used filecontents and a different name for the CSV file just not to clobber my files and to make the example self-contained.



enter image description here






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',
    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
    });


    }
    });






    Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462035%2fcsvsimple-with-nonenglish-error%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








    up vote
    1
    down vote



    accepted










    There are two orders of problems.




    1. The first row is also used to give symbolic names to the columns, but Cyrillic characters cannot appear in command names. Possibly this can be solved by options not to interpret the first line.


    2. Cyrillic characters seem to thoroughly confuse csvsimple; you'd need to brace each entry.



    My suggestion is to use XeLaTeX.



    begin{filecontents*}{jobname.csv}
    Название, Автор, Год
    Бесы, Достоевский, 1871
    end{filecontents*}

    documentclass[a4paper,11pt]{ncc}
    usepackage[english,russian]{babel}
    usepackage{fontspec}
    usepackage{csvsimple}

    setmainfont{CMU Serif}

    begin{document}
    csvautotabular{jobname.csv}
    end{document}


    I used filecontents and a different name for the CSV file just not to clobber my files and to make the example self-contained.



    enter image description here






    share|improve this answer

























      up vote
      1
      down vote



      accepted










      There are two orders of problems.




      1. The first row is also used to give symbolic names to the columns, but Cyrillic characters cannot appear in command names. Possibly this can be solved by options not to interpret the first line.


      2. Cyrillic characters seem to thoroughly confuse csvsimple; you'd need to brace each entry.



      My suggestion is to use XeLaTeX.



      begin{filecontents*}{jobname.csv}
      Название, Автор, Год
      Бесы, Достоевский, 1871
      end{filecontents*}

      documentclass[a4paper,11pt]{ncc}
      usepackage[english,russian]{babel}
      usepackage{fontspec}
      usepackage{csvsimple}

      setmainfont{CMU Serif}

      begin{document}
      csvautotabular{jobname.csv}
      end{document}


      I used filecontents and a different name for the CSV file just not to clobber my files and to make the example self-contained.



      enter image description here






      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        There are two orders of problems.




        1. The first row is also used to give symbolic names to the columns, but Cyrillic characters cannot appear in command names. Possibly this can be solved by options not to interpret the first line.


        2. Cyrillic characters seem to thoroughly confuse csvsimple; you'd need to brace each entry.



        My suggestion is to use XeLaTeX.



        begin{filecontents*}{jobname.csv}
        Название, Автор, Год
        Бесы, Достоевский, 1871
        end{filecontents*}

        documentclass[a4paper,11pt]{ncc}
        usepackage[english,russian]{babel}
        usepackage{fontspec}
        usepackage{csvsimple}

        setmainfont{CMU Serif}

        begin{document}
        csvautotabular{jobname.csv}
        end{document}


        I used filecontents and a different name for the CSV file just not to clobber my files and to make the example self-contained.



        enter image description here






        share|improve this answer












        There are two orders of problems.




        1. The first row is also used to give symbolic names to the columns, but Cyrillic characters cannot appear in command names. Possibly this can be solved by options not to interpret the first line.


        2. Cyrillic characters seem to thoroughly confuse csvsimple; you'd need to brace each entry.



        My suggestion is to use XeLaTeX.



        begin{filecontents*}{jobname.csv}
        Название, Автор, Год
        Бесы, Достоевский, 1871
        end{filecontents*}

        documentclass[a4paper,11pt]{ncc}
        usepackage[english,russian]{babel}
        usepackage{fontspec}
        usepackage{csvsimple}

        setmainfont{CMU Serif}

        begin{document}
        csvautotabular{jobname.csv}
        end{document}


        I used filecontents and a different name for the CSV file just not to clobber my files and to make the example self-contained.



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 9 hours ago









        egreg

        700k8518633138




        700k8518633138






















            Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.













            Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.












            Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462035%2fcsvsimple-with-nonenglish-error%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

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux