How to use LaTeX with Inkscape (MAC OS X)
I've seen somebody asked this question a year ago, but no answers given so I'm hoping this might attract some more/new/different attention.
Simple question. I want to use LaTeX with Inkscape on mac. I already use a tex editor so I should have most of the LaTeX stuff I need. However when I go to "Extensions>Render>", there's not a LaTeX option there as other online sources suggest.
As a fudge I tried using the application Latexit to generate SVG/EPS images to import but I can't seem to get import of those to work either.
inkscape
|
show 6 more comments
I've seen somebody asked this question a year ago, but no answers given so I'm hoping this might attract some more/new/different attention.
Simple question. I want to use LaTeX with Inkscape on mac. I already use a tex editor so I should have most of the LaTeX stuff I need. However when I go to "Extensions>Render>", there's not a LaTeX option there as other online sources suggest.
As a fudge I tried using the application Latexit to generate SVG/EPS images to import but I can't seem to get import of those to work either.
inkscape
1
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
3
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43
|
show 6 more comments
I've seen somebody asked this question a year ago, but no answers given so I'm hoping this might attract some more/new/different attention.
Simple question. I want to use LaTeX with Inkscape on mac. I already use a tex editor so I should have most of the LaTeX stuff I need. However when I go to "Extensions>Render>", there's not a LaTeX option there as other online sources suggest.
As a fudge I tried using the application Latexit to generate SVG/EPS images to import but I can't seem to get import of those to work either.
inkscape
I've seen somebody asked this question a year ago, but no answers given so I'm hoping this might attract some more/new/different attention.
Simple question. I want to use LaTeX with Inkscape on mac. I already use a tex editor so I should have most of the LaTeX stuff I need. However when I go to "Extensions>Render>", there's not a LaTeX option there as other online sources suggest.
As a fudge I tried using the application Latexit to generate SVG/EPS images to import but I can't seem to get import of those to work either.
inkscape
inkscape
asked Jul 26 '15 at 21:20
TomTom
206125
206125
1
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
3
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43
|
show 6 more comments
1
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
3
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43
1
1
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
3
3
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43
|
show 6 more comments
4 Answers
4
active
oldest
votes
I encountered this problem coming from linux, where you could just easily go to Extension->Render->LaTex and type your latex formula. This is what I did (finding every piece from different sources) to fix this problem.
The general solution is that you have to add the PATH for latex
, dvips
, and pstoedit
to the paths in the app. To do this follow the instruction below:
- Find the PATH to
latex
anddvips
by typing the following in a terminal:which <app.name>
, and the write down the paths. These two apps are usually installed with the MacTex installation, so there shouldn't be any need for installation here.
For example here I get for both of them:/Library/TeX/texbin
.
pstoedit
does not exists by default in the MacTex, so you have to install it. However, I tried installing it from a tar ball and it didn't work (probably cause I didn't have all the dependencies).
I used macports here to to install this, and it worked for me. Now similarly find the PATH forpstoedit
. For example I had:/opt/local/bin/
.- With your desired editor, open (with
sudo
) the following file:/Applications/Inkscape.app/Contents/Resources/script
. Now at the end of this file, right above the last lineexec "$CWD/bin/inkscape" "$@"
add the paths that you extracted from step 1 and 2.
For example I should add the line:PATH=$PATH:/Library/TeX/texbin:/opt/local/bin
After all these steps, you should be able to open1 inkscape and type latex formulas by going to Extension->Render->LaTex. This worked for me on two different 15" MacPro Retina, mid 2015, El Capitan.
1. On one of my machines, this works when opening inkscape from app launcher, but on the other one this only works when you open the app from terminal by typing /Applications/Inkscape.app/Contents/Resources/bin/inkscape
and pressing enter.
2
This worked for me. I had to add thePATH
command before the line that startsexec
.
– borticus
Sep 27 '16 at 17:00
add a comment |
I have a solution that I hope future viewers will find useful. It's not perfect but it's a quick and easy enough workflow for me.
I use the application Latexit to generate the Latex image. It's really easy to install and use.
Then I save as PDF vector format
Then from Inkscape select File>Import, select the PDF file, hit open and you're presented with this option box
For some reason it doesn't seem to work unless you tick "Clip to media box" and "Import via Poppler". Voila it's in Inkscape.
Remark: I think you can also save as SVG format from Latexit which might be better, but you need something extra called PDF2SVG which I'm not sure how to install.
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
add a comment |
Sad to see Inkscape on mac OS is lagging behind and we yet to see a stable native implementation. Many features present on Windows and Linux, including the LaTeX equation import, is missing. But even if it was there, there is other solution which IMHO is better. textext extension has been around for a while, and now other people have taken over the development. how to install it on mac OS?
- go to this repository and download the latest stable version and unzip
- go to this address:
~/.config/inkscape/extensions/
- copy the contents of extension folder from the download into this folder
as this page has explained:
- find the address of pdflatex
which pdflatex
- open the file below in an editor:
~/.config/inkscape/extensions/textext.py
- change the line
out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
to
out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
do not forget to install other dependencies mentioned in the readme of the mentioned repository. I know it it is not that straight forwards but it works at the end.
add a comment |
If you install inkscape from the dmg file offered by inkscape.org you won't have latex rendering.
You can have latex rendering similar to the linux version by building it via macports:
1- install macports
2- install pstoedit from the terminal
sudo port install pstoedit
3- install inkscape from the terminal
sudo port install inkscape
note: I am not sure if step 2 is necessary, but that is how I did it and it worked.
add a comment |
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
});
}
});
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%2f257147%2fhow-to-use-latex-with-inkscape-mac-os-x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
I encountered this problem coming from linux, where you could just easily go to Extension->Render->LaTex and type your latex formula. This is what I did (finding every piece from different sources) to fix this problem.
The general solution is that you have to add the PATH for latex
, dvips
, and pstoedit
to the paths in the app. To do this follow the instruction below:
- Find the PATH to
latex
anddvips
by typing the following in a terminal:which <app.name>
, and the write down the paths. These two apps are usually installed with the MacTex installation, so there shouldn't be any need for installation here.
For example here I get for both of them:/Library/TeX/texbin
.
pstoedit
does not exists by default in the MacTex, so you have to install it. However, I tried installing it from a tar ball and it didn't work (probably cause I didn't have all the dependencies).
I used macports here to to install this, and it worked for me. Now similarly find the PATH forpstoedit
. For example I had:/opt/local/bin/
.- With your desired editor, open (with
sudo
) the following file:/Applications/Inkscape.app/Contents/Resources/script
. Now at the end of this file, right above the last lineexec "$CWD/bin/inkscape" "$@"
add the paths that you extracted from step 1 and 2.
For example I should add the line:PATH=$PATH:/Library/TeX/texbin:/opt/local/bin
After all these steps, you should be able to open1 inkscape and type latex formulas by going to Extension->Render->LaTex. This worked for me on two different 15" MacPro Retina, mid 2015, El Capitan.
1. On one of my machines, this works when opening inkscape from app launcher, but on the other one this only works when you open the app from terminal by typing /Applications/Inkscape.app/Contents/Resources/bin/inkscape
and pressing enter.
2
This worked for me. I had to add thePATH
command before the line that startsexec
.
– borticus
Sep 27 '16 at 17:00
add a comment |
I encountered this problem coming from linux, where you could just easily go to Extension->Render->LaTex and type your latex formula. This is what I did (finding every piece from different sources) to fix this problem.
The general solution is that you have to add the PATH for latex
, dvips
, and pstoedit
to the paths in the app. To do this follow the instruction below:
- Find the PATH to
latex
anddvips
by typing the following in a terminal:which <app.name>
, and the write down the paths. These two apps are usually installed with the MacTex installation, so there shouldn't be any need for installation here.
For example here I get for both of them:/Library/TeX/texbin
.
pstoedit
does not exists by default in the MacTex, so you have to install it. However, I tried installing it from a tar ball and it didn't work (probably cause I didn't have all the dependencies).
I used macports here to to install this, and it worked for me. Now similarly find the PATH forpstoedit
. For example I had:/opt/local/bin/
.- With your desired editor, open (with
sudo
) the following file:/Applications/Inkscape.app/Contents/Resources/script
. Now at the end of this file, right above the last lineexec "$CWD/bin/inkscape" "$@"
add the paths that you extracted from step 1 and 2.
For example I should add the line:PATH=$PATH:/Library/TeX/texbin:/opt/local/bin
After all these steps, you should be able to open1 inkscape and type latex formulas by going to Extension->Render->LaTex. This worked for me on two different 15" MacPro Retina, mid 2015, El Capitan.
1. On one of my machines, this works when opening inkscape from app launcher, but on the other one this only works when you open the app from terminal by typing /Applications/Inkscape.app/Contents/Resources/bin/inkscape
and pressing enter.
2
This worked for me. I had to add thePATH
command before the line that startsexec
.
– borticus
Sep 27 '16 at 17:00
add a comment |
I encountered this problem coming from linux, where you could just easily go to Extension->Render->LaTex and type your latex formula. This is what I did (finding every piece from different sources) to fix this problem.
The general solution is that you have to add the PATH for latex
, dvips
, and pstoedit
to the paths in the app. To do this follow the instruction below:
- Find the PATH to
latex
anddvips
by typing the following in a terminal:which <app.name>
, and the write down the paths. These two apps are usually installed with the MacTex installation, so there shouldn't be any need for installation here.
For example here I get for both of them:/Library/TeX/texbin
.
pstoedit
does not exists by default in the MacTex, so you have to install it. However, I tried installing it from a tar ball and it didn't work (probably cause I didn't have all the dependencies).
I used macports here to to install this, and it worked for me. Now similarly find the PATH forpstoedit
. For example I had:/opt/local/bin/
.- With your desired editor, open (with
sudo
) the following file:/Applications/Inkscape.app/Contents/Resources/script
. Now at the end of this file, right above the last lineexec "$CWD/bin/inkscape" "$@"
add the paths that you extracted from step 1 and 2.
For example I should add the line:PATH=$PATH:/Library/TeX/texbin:/opt/local/bin
After all these steps, you should be able to open1 inkscape and type latex formulas by going to Extension->Render->LaTex. This worked for me on two different 15" MacPro Retina, mid 2015, El Capitan.
1. On one of my machines, this works when opening inkscape from app launcher, but on the other one this only works when you open the app from terminal by typing /Applications/Inkscape.app/Contents/Resources/bin/inkscape
and pressing enter.
I encountered this problem coming from linux, where you could just easily go to Extension->Render->LaTex and type your latex formula. This is what I did (finding every piece from different sources) to fix this problem.
The general solution is that you have to add the PATH for latex
, dvips
, and pstoedit
to the paths in the app. To do this follow the instruction below:
- Find the PATH to
latex
anddvips
by typing the following in a terminal:which <app.name>
, and the write down the paths. These two apps are usually installed with the MacTex installation, so there shouldn't be any need for installation here.
For example here I get for both of them:/Library/TeX/texbin
.
pstoedit
does not exists by default in the MacTex, so you have to install it. However, I tried installing it from a tar ball and it didn't work (probably cause I didn't have all the dependencies).
I used macports here to to install this, and it worked for me. Now similarly find the PATH forpstoedit
. For example I had:/opt/local/bin/
.- With your desired editor, open (with
sudo
) the following file:/Applications/Inkscape.app/Contents/Resources/script
. Now at the end of this file, right above the last lineexec "$CWD/bin/inkscape" "$@"
add the paths that you extracted from step 1 and 2.
For example I should add the line:PATH=$PATH:/Library/TeX/texbin:/opt/local/bin
After all these steps, you should be able to open1 inkscape and type latex formulas by going to Extension->Render->LaTex. This worked for me on two different 15" MacPro Retina, mid 2015, El Capitan.
1. On one of my machines, this works when opening inkscape from app launcher, but on the other one this only works when you open the app from terminal by typing /Applications/Inkscape.app/Contents/Resources/bin/inkscape
and pressing enter.
edited Jul 13 '17 at 22:03
Foad
400212
400212
answered Jun 30 '16 at 4:26
MostafaMostafa
13116
13116
2
This worked for me. I had to add thePATH
command before the line that startsexec
.
– borticus
Sep 27 '16 at 17:00
add a comment |
2
This worked for me. I had to add thePATH
command before the line that startsexec
.
– borticus
Sep 27 '16 at 17:00
2
2
This worked for me. I had to add the
PATH
command before the line that starts exec
.– borticus
Sep 27 '16 at 17:00
This worked for me. I had to add the
PATH
command before the line that starts exec
.– borticus
Sep 27 '16 at 17:00
add a comment |
I have a solution that I hope future viewers will find useful. It's not perfect but it's a quick and easy enough workflow for me.
I use the application Latexit to generate the Latex image. It's really easy to install and use.
Then I save as PDF vector format
Then from Inkscape select File>Import, select the PDF file, hit open and you're presented with this option box
For some reason it doesn't seem to work unless you tick "Clip to media box" and "Import via Poppler". Voila it's in Inkscape.
Remark: I think you can also save as SVG format from Latexit which might be better, but you need something extra called PDF2SVG which I'm not sure how to install.
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
add a comment |
I have a solution that I hope future viewers will find useful. It's not perfect but it's a quick and easy enough workflow for me.
I use the application Latexit to generate the Latex image. It's really easy to install and use.
Then I save as PDF vector format
Then from Inkscape select File>Import, select the PDF file, hit open and you're presented with this option box
For some reason it doesn't seem to work unless you tick "Clip to media box" and "Import via Poppler". Voila it's in Inkscape.
Remark: I think you can also save as SVG format from Latexit which might be better, but you need something extra called PDF2SVG which I'm not sure how to install.
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
add a comment |
I have a solution that I hope future viewers will find useful. It's not perfect but it's a quick and easy enough workflow for me.
I use the application Latexit to generate the Latex image. It's really easy to install and use.
Then I save as PDF vector format
Then from Inkscape select File>Import, select the PDF file, hit open and you're presented with this option box
For some reason it doesn't seem to work unless you tick "Clip to media box" and "Import via Poppler". Voila it's in Inkscape.
Remark: I think you can also save as SVG format from Latexit which might be better, but you need something extra called PDF2SVG which I'm not sure how to install.
I have a solution that I hope future viewers will find useful. It's not perfect but it's a quick and easy enough workflow for me.
I use the application Latexit to generate the Latex image. It's really easy to install and use.
Then I save as PDF vector format
Then from Inkscape select File>Import, select the PDF file, hit open and you're presented with this option box
For some reason it doesn't seem to work unless you tick "Clip to media box" and "Import via Poppler". Voila it's in Inkscape.
Remark: I think you can also save as SVG format from Latexit which might be better, but you need something extra called PDF2SVG which I'm not sure how to install.
edited Jul 27 '15 at 14:54
Ruben
11.3k32365
11.3k32365
answered Jul 27 '15 at 14:13
TomTom
206125
206125
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
add a comment |
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
2
2
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
For anyone that missed it: "Clip to media box" and "Import via Poppler" is crucial part of the answer! Thanks so much. :)
– Pinocchio
Oct 19 '16 at 23:30
add a comment |
Sad to see Inkscape on mac OS is lagging behind and we yet to see a stable native implementation. Many features present on Windows and Linux, including the LaTeX equation import, is missing. But even if it was there, there is other solution which IMHO is better. textext extension has been around for a while, and now other people have taken over the development. how to install it on mac OS?
- go to this repository and download the latest stable version and unzip
- go to this address:
~/.config/inkscape/extensions/
- copy the contents of extension folder from the download into this folder
as this page has explained:
- find the address of pdflatex
which pdflatex
- open the file below in an editor:
~/.config/inkscape/extensions/textext.py
- change the line
out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
to
out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
do not forget to install other dependencies mentioned in the readme of the mentioned repository. I know it it is not that straight forwards but it works at the end.
add a comment |
Sad to see Inkscape on mac OS is lagging behind and we yet to see a stable native implementation. Many features present on Windows and Linux, including the LaTeX equation import, is missing. But even if it was there, there is other solution which IMHO is better. textext extension has been around for a while, and now other people have taken over the development. how to install it on mac OS?
- go to this repository and download the latest stable version and unzip
- go to this address:
~/.config/inkscape/extensions/
- copy the contents of extension folder from the download into this folder
as this page has explained:
- find the address of pdflatex
which pdflatex
- open the file below in an editor:
~/.config/inkscape/extensions/textext.py
- change the line
out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
to
out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
do not forget to install other dependencies mentioned in the readme of the mentioned repository. I know it it is not that straight forwards but it works at the end.
add a comment |
Sad to see Inkscape on mac OS is lagging behind and we yet to see a stable native implementation. Many features present on Windows and Linux, including the LaTeX equation import, is missing. But even if it was there, there is other solution which IMHO is better. textext extension has been around for a while, and now other people have taken over the development. how to install it on mac OS?
- go to this repository and download the latest stable version and unzip
- go to this address:
~/.config/inkscape/extensions/
- copy the contents of extension folder from the download into this folder
as this page has explained:
- find the address of pdflatex
which pdflatex
- open the file below in an editor:
~/.config/inkscape/extensions/textext.py
- change the line
out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
to
out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
do not forget to install other dependencies mentioned in the readme of the mentioned repository. I know it it is not that straight forwards but it works at the end.
Sad to see Inkscape on mac OS is lagging behind and we yet to see a stable native implementation. Many features present on Windows and Linux, including the LaTeX equation import, is missing. But even if it was there, there is other solution which IMHO is better. textext extension has been around for a while, and now other people have taken over the development. how to install it on mac OS?
- go to this repository and download the latest stable version and unzip
- go to this address:
~/.config/inkscape/extensions/
- copy the contents of extension folder from the download into this folder
as this page has explained:
- find the address of pdflatex
which pdflatex
- open the file below in an editor:
~/.config/inkscape/extensions/textext.py
- change the line
out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
to
out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
do not forget to install other dependencies mentioned in the readme of the mentioned repository. I know it it is not that straight forwards but it works at the end.
edited Jul 13 '17 at 21:30
answered Jul 13 '17 at 21:05
FoadFoad
400212
400212
add a comment |
add a comment |
If you install inkscape from the dmg file offered by inkscape.org you won't have latex rendering.
You can have latex rendering similar to the linux version by building it via macports:
1- install macports
2- install pstoedit from the terminal
sudo port install pstoedit
3- install inkscape from the terminal
sudo port install inkscape
note: I am not sure if step 2 is necessary, but that is how I did it and it worked.
add a comment |
If you install inkscape from the dmg file offered by inkscape.org you won't have latex rendering.
You can have latex rendering similar to the linux version by building it via macports:
1- install macports
2- install pstoedit from the terminal
sudo port install pstoedit
3- install inkscape from the terminal
sudo port install inkscape
note: I am not sure if step 2 is necessary, but that is how I did it and it worked.
add a comment |
If you install inkscape from the dmg file offered by inkscape.org you won't have latex rendering.
You can have latex rendering similar to the linux version by building it via macports:
1- install macports
2- install pstoedit from the terminal
sudo port install pstoedit
3- install inkscape from the terminal
sudo port install inkscape
note: I am not sure if step 2 is necessary, but that is how I did it and it worked.
If you install inkscape from the dmg file offered by inkscape.org you won't have latex rendering.
You can have latex rendering similar to the linux version by building it via macports:
1- install macports
2- install pstoedit from the terminal
sudo port install pstoedit
3- install inkscape from the terminal
sudo port install inkscape
note: I am not sure if step 2 is necessary, but that is how I did it and it worked.
answered Feb 16 at 20:27
M.AM.A
656
656
add a comment |
add a comment |
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.
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%2f257147%2fhow-to-use-latex-with-inkscape-mac-os-x%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
1
Welcome to TeX.SX! You should know that this site is considered a Q&A, not a discussion forum, which (somehow) implies that duplicates aren't allowed. I will start a poll to close this question, though I hope that the original question will get enough attention now. You should also know that you can share questions on other places to draw more attention to it.
– Ruben
Jul 26 '15 at 21:36
Fair enough, I looked to meta first. The jury seems to be out but some people seem to suggest just re-asking an old unanswered question.
– Tom
Jul 26 '15 at 21:41
Ok, I looked meta afterwards... Let's leave your question open then and link the other question as a dupe to yours if you get an answer.
– Ruben
Jul 26 '15 at 21:45
Sure, whatever is best. It just seems like the question could do with more attention. It has 1000 views but no real answers.
– Tom
Jul 26 '15 at 21:47
3
Inkscape works fine on mac: all you do is write latex inside $ $ in text boxes in your image, and then export to pdf with the latex option as explained in this answer. When you export you get a pdf (with no latex in it) and .pdf_tex file which you can open and copy the contents of inside your main latex file. Making sure directories match, you will get your image with the overlaid math text. There is no need for a "Extensions>Render>" option, as explained here at the very bottom
– Emilio Ferrucci
Sep 29 '15 at 21:43