Use sed to fix weird symbols on tex file generated by publish function from miscellaneous Octave package
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have an Octave code that among other things outputs:
(x - 5)âÂÂ
(x - 4)âÂÂ
(x - 3)âÂÂ
(x - 2)
âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ
24
When using publish function from Octave miscellaneous package, the corresponding latex code look like this:
(x - 5)ââ¹â¦(x - 4)ââ¹â¦(x - 3)ââ¹â¦(x - 2)
ââÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ¬
24
I tried using sed to replace the weird characters:
sed -i -e 's/ââ¹â¦/$cdot$/g' file.tex
sed -i -e 's/ââÂÂâ¬/-/g' file.tex
But nothing happens... Any help is appreciated.
linux command-line sed latex octave
add a comment |Â
up vote
1
down vote
favorite
I have an Octave code that among other things outputs:
(x - 5)âÂÂ
(x - 4)âÂÂ
(x - 3)âÂÂ
(x - 2)
âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ
24
When using publish function from Octave miscellaneous package, the corresponding latex code look like this:
(x - 5)ââ¹â¦(x - 4)ââ¹â¦(x - 3)ââ¹â¦(x - 2)
ââÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ¬
24
I tried using sed to replace the weird characters:
sed -i -e 's/ââ¹â¦/$cdot$/g' file.tex
sed -i -e 's/ââÂÂâ¬/-/g' file.tex
But nothing happens... Any help is appreciated.
linux command-line sed latex octave
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
I can't reproduce it. I just noted that if i runcat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...
â kurokirasama
Dec 7 '17 at 21:23
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have an Octave code that among other things outputs:
(x - 5)âÂÂ
(x - 4)âÂÂ
(x - 3)âÂÂ
(x - 2)
âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ
24
When using publish function from Octave miscellaneous package, the corresponding latex code look like this:
(x - 5)ââ¹â¦(x - 4)ââ¹â¦(x - 3)ââ¹â¦(x - 2)
ââÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ¬
24
I tried using sed to replace the weird characters:
sed -i -e 's/ââ¹â¦/$cdot$/g' file.tex
sed -i -e 's/ââÂÂâ¬/-/g' file.tex
But nothing happens... Any help is appreciated.
linux command-line sed latex octave
I have an Octave code that among other things outputs:
(x - 5)âÂÂ
(x - 4)âÂÂ
(x - 3)âÂÂ
(x - 2)
âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ
24
When using publish function from Octave miscellaneous package, the corresponding latex code look like this:
(x - 5)ââ¹â¦(x - 4)ââ¹â¦(x - 3)ââ¹â¦(x - 2)
ââÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ‰âÂÂâ¬
24
I tried using sed to replace the weird characters:
sed -i -e 's/ââ¹â¦/$cdot$/g' file.tex
sed -i -e 's/ââÂÂâ¬/-/g' file.tex
But nothing happens... Any help is appreciated.
linux command-line sed latex octave
asked Dec 6 '17 at 23:38
kurokirasama
768
768
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
I can't reproduce it. I just noted that if i runcat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...
â kurokirasama
Dec 7 '17 at 21:23
add a comment |Â
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
I can't reproduce it. I just noted that if i runcat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...
â kurokirasama
Dec 7 '17 at 21:23
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
I can't reproduce it. I just noted that if i run
cat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...â kurokirasama
Dec 7 '17 at 21:23
I can't reproduce it. I just noted that if i run
cat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...â kurokirasama
Dec 7 '17 at 21:23
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2funix.stackexchange.com%2fquestions%2f409338%2fuse-sed-to-fix-weird-symbols-on-tex-file-generated-by-publish-function-from-misc%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
Testing your data stored in a variable, works fine in my gnu sed 4.4 (without using -i switch though)
â George Vasiliou
Dec 6 '17 at 23:51
I can't reproduce it. I just noted that if i run
cat file.tex
, in cli appears just like the output of octave (not with the weird symbols)...â kurokirasama
Dec 7 '17 at 21:23