How to avoid problems with diacritics once and for all

Multi tool use
up vote
1
down vote
favorite
I work with Rnw, and I type in Catalan, so there are diacritics I wouldn't encounter in English. I just want two things:
- That when I compile my PDF, all diacritic letters are as they should be.
- That when I save my document and open it again some other day all of their characters are in place.
The first one seems to be solvable using usepackage[catalan]{babel}
and usepackage[utf8]{inputenc}
, but the second problem is still there.
Is there any way I could obtain this?
unicode characters r listingsutf8 rnw
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
favorite
I work with Rnw, and I type in Catalan, so there are diacritics I wouldn't encounter in English. I just want two things:
- That when I compile my PDF, all diacritic letters are as they should be.
- That when I save my document and open it again some other day all of their characters are in place.
The first one seems to be solvable using usepackage[catalan]{babel}
and usepackage[utf8]{inputenc}
, but the second problem is still there.
Is there any way I could obtain this?
unicode characters r listingsutf8 rnw
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
If you use emacs, you can put% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g.,%%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).
– Thérèse
11 hours ago
4
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I work with Rnw, and I type in Catalan, so there are diacritics I wouldn't encounter in English. I just want two things:
- That when I compile my PDF, all diacritic letters are as they should be.
- That when I save my document and open it again some other day all of their characters are in place.
The first one seems to be solvable using usepackage[catalan]{babel}
and usepackage[utf8]{inputenc}
, but the second problem is still there.
Is there any way I could obtain this?
unicode characters r listingsutf8 rnw
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I work with Rnw, and I type in Catalan, so there are diacritics I wouldn't encounter in English. I just want two things:
- That when I compile my PDF, all diacritic letters are as they should be.
- That when I save my document and open it again some other day all of their characters are in place.
The first one seems to be solvable using usepackage[catalan]{babel}
and usepackage[utf8]{inputenc}
, but the second problem is still there.
Is there any way I could obtain this?
unicode characters r listingsutf8 rnw
unicode characters r listingsutf8 rnw
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 12 hours ago
zest16
82
82
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
zest16 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
If you use emacs, you can put% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g.,%%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).
– Thérèse
11 hours ago
4
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago
add a comment |
4
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
If you use emacs, you can put% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g.,%%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).
– Thérèse
11 hours ago
4
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago
4
4
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
If you use emacs, you can put
% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g., %%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).– Thérèse
11 hours ago
If you use emacs, you can put
% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g., %%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).– Thérèse
11 hours ago
4
4
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
zest16 is a new contributor. Be nice, and check out our Code of Conduct.
zest16 is a new contributor. Be nice, and check out our Code of Conduct.
zest16 is a new contributor. Be nice, and check out our Code of Conduct.
zest16 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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459649%2fhow-to-avoid-problems-with-diacritics-once-and-for-all%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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
3Bf6pFTnJuMA,fSB0,qm rKNt9rudAvGfdG4iW6l Uwneyl,Odq,A C2wf6a5VmrV s
4
I don't know what would cause (2), but make sure to actually save your document as UTF-8. Other than that, switching to a unicode engine like XeLaTeX or LuaLaTeX will of course save some trouble (concerning diacritics, it may cause different problems).
– TeXnician
12 hours ago
What are you using to edit your .Rnw files? RStudio? Make sure that the default text encoding for files is UTF-8. (Set this in Preferences -> Code -> Saving).
– Alan Munn
12 hours ago
If you use emacs, you can put
% -*- coding: utf-8 -*-
at the top of the file, or add it to the file variables at the end (e.g.,%%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
).– Thérèse
11 hours ago
4
Whoever voted to close: please give the OP time to respond to the comments. This post is only 2 hours old. And it's helpful to add a comment if you vote to close explaining why.
– Alan Munn
10 hours ago