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}
tables csvsimple
New contributor
add a comment |
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}
tables csvsimple
New contributor
Welcome! Can you please add a small LaTeX file that shows the issue, fromdocumentclass
toend{document}
?
– egreg
10 hours ago
@egreg Sure. I just did.
– Grigory Shepelev
9 hours ago
add a comment |
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}
tables csvsimple
New contributor
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
tables csvsimple
New contributor
New contributor
edited 9 hours ago
New contributor
asked 10 hours ago
Grigory Shepelev
183
183
New contributor
New contributor
Welcome! Can you please add a small LaTeX file that shows the issue, fromdocumentclass
toend{document}
?
– egreg
10 hours ago
@egreg Sure. I just did.
– Grigory Shepelev
9 hours ago
add a comment |
Welcome! Can you please add a small LaTeX file that shows the issue, fromdocumentclass
toend{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
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
There are two orders of problems.
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.
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.
add a comment |
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.
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.
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.
add a comment |
up vote
1
down vote
accepted
There are two orders of problems.
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.
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.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
There are two orders of problems.
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.
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.
There are two orders of problems.
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.
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.
answered 9 hours ago
egreg
700k8518633138
700k8518633138
add a comment |
add a comment |
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.
Grigory Shepelev is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Welcome! Can you please add a small LaTeX file that shows the issue, from
documentclass
toend{document}
?– egreg
10 hours ago
@egreg Sure. I just did.
– Grigory Shepelev
9 hours ago