Import .tex to .lyx
up vote
0
down vote
favorite
There are various problems converting .tex files to .lyx files. If you try for a simple document like this:
documentclass{article}
usepackage{amsthm}
newtheorem{thm}{Theorem}
begin{document}
Test
begin{thm}
Test theorem.
end{thm}
end{document}
LyX doesn't seem to recognize the theorem environments and puts them in red boxes. I used LyX to write up complicated equations because I find it faster, and I would like to convert between formats.
I have found an annoying workaround. Add theorems (AMS) in modules. Then, create any theorem using the dropdown menu in LyX. Export the document to .tex, then import again to LyX. This causes all theorems, lemma, etc. to be displayed properly. However this is clearly not ideal.
I also tried to use 'Edit->Paste special->Paste from LaTeX'. However this results in an error: "Could not move a temporary file from etc1.lyx to etc2.lyx".
lyx conversion
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
0
down vote
favorite
There are various problems converting .tex files to .lyx files. If you try for a simple document like this:
documentclass{article}
usepackage{amsthm}
newtheorem{thm}{Theorem}
begin{document}
Test
begin{thm}
Test theorem.
end{thm}
end{document}
LyX doesn't seem to recognize the theorem environments and puts them in red boxes. I used LyX to write up complicated equations because I find it faster, and I would like to convert between formats.
I have found an annoying workaround. Add theorems (AMS) in modules. Then, create any theorem using the dropdown menu in LyX. Export the document to .tex, then import again to LyX. This causes all theorems, lemma, etc. to be displayed properly. However this is clearly not ideal.
I also tried to use 'Edit->Paste special->Paste from LaTeX'. However this results in an error: "Could not move a temporary file from etc1.lyx to etc2.lyx".
lyx conversion
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
DoesFile -> Import -> LaTeX (plain)
work?
– naphaneal
Oct 14 '16 at 18:09
2
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.
– Torbjørn T.
Oct 14 '16 at 21:32
1
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
There are various problems converting .tex files to .lyx files. If you try for a simple document like this:
documentclass{article}
usepackage{amsthm}
newtheorem{thm}{Theorem}
begin{document}
Test
begin{thm}
Test theorem.
end{thm}
end{document}
LyX doesn't seem to recognize the theorem environments and puts them in red boxes. I used LyX to write up complicated equations because I find it faster, and I would like to convert between formats.
I have found an annoying workaround. Add theorems (AMS) in modules. Then, create any theorem using the dropdown menu in LyX. Export the document to .tex, then import again to LyX. This causes all theorems, lemma, etc. to be displayed properly. However this is clearly not ideal.
I also tried to use 'Edit->Paste special->Paste from LaTeX'. However this results in an error: "Could not move a temporary file from etc1.lyx to etc2.lyx".
lyx conversion
There are various problems converting .tex files to .lyx files. If you try for a simple document like this:
documentclass{article}
usepackage{amsthm}
newtheorem{thm}{Theorem}
begin{document}
Test
begin{thm}
Test theorem.
end{thm}
end{document}
LyX doesn't seem to recognize the theorem environments and puts them in red boxes. I used LyX to write up complicated equations because I find it faster, and I would like to convert between formats.
I have found an annoying workaround. Add theorems (AMS) in modules. Then, create any theorem using the dropdown menu in LyX. Export the document to .tex, then import again to LyX. This causes all theorems, lemma, etc. to be displayed properly. However this is clearly not ideal.
I also tried to use 'Edit->Paste special->Paste from LaTeX'. However this results in an error: "Could not move a temporary file from etc1.lyx to etc2.lyx".
lyx conversion
lyx conversion
edited Oct 14 '16 at 18:34
naphaneal
2,1281927
2,1281927
asked Oct 14 '16 at 17:50
RobertHannah89
306310
306310
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
DoesFile -> Import -> LaTeX (plain)
work?
– naphaneal
Oct 14 '16 at 18:09
2
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.
– Torbjørn T.
Oct 14 '16 at 21:32
1
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46
add a comment |
DoesFile -> Import -> LaTeX (plain)
work?
– naphaneal
Oct 14 '16 at 18:09
2
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.
– Torbjørn T.
Oct 14 '16 at 21:32
1
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46
Does
File -> Import -> LaTeX (plain)
work?– naphaneal
Oct 14 '16 at 18:09
Does
File -> Import -> LaTeX (plain)
work?– naphaneal
Oct 14 '16 at 18:09
2
2
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use
@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.– Torbjørn T.
Oct 14 '16 at 21:32
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use
@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.– Torbjørn T.
Oct 14 '16 at 21:32
1
1
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
First you need to import with LaTeX (plain). I recommend you download portable Lyx. I've tested, that works.
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
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',
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%2f334146%2fimport-tex-to-lyx%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
0
down vote
First you need to import with LaTeX (plain). I recommend you download portable Lyx. I've tested, that works.
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
add a comment |
up vote
0
down vote
First you need to import with LaTeX (plain). I recommend you download portable Lyx. I've tested, that works.
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
add a comment |
up vote
0
down vote
up vote
0
down vote
First you need to import with LaTeX (plain). I recommend you download portable Lyx. I've tested, that works.
First you need to import with LaTeX (plain). I recommend you download portable Lyx. I've tested, that works.
edited Oct 23 '16 at 3:22
Heiko Oberdiek
228k17549899
228k17549899
answered Oct 23 '16 at 3:02
doannucphys
1
1
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
add a comment |
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
@doannucphys: I tried using portable lyx version 2.0.1. This did not appear to work. What version are you using?
– RobertHannah89
Oct 25 '16 at 21:18
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f334146%2fimport-tex-to-lyx%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
Does
File -> Import -> LaTeX (plain)
work?– naphaneal
Oct 14 '16 at 18:09
2
If you have already made a bug report about this (which you could have mentioned: lyx.org/trac/ticket/10432), why post here as well? (Bug reports are generally off topic around here.)
– Torbjørn T.
Oct 14 '16 at 18:40
file->import->latex (plain) is what I used. It doesn't work. I thought it would be on topic because conversion and lyx are tags. I posted here because I didn't get any response, and this community is pretty active and large. I didn't mention that I filed a bug report because I didn't think it was relevant. If I get a response there, I will post here.
– RobertHannah89
Oct 14 '16 at 19:06
1) Well yes, most LyX questions are on-topic, but bug reports are not. 2) It's less than a day since you posted that bug-report, even in today's world you can't always expect responses in that time frame. 3) Large community perhaps, but I don't think there are that many LyX power users around unfortunately. (Think there are some though.) 4) Mentioning cross-posting is always relevant. 5) A small tip: To make sure a user is notified of your comment, use
@username
(when you start typing the username should pop up, and you can hit Tab to complete it), you can only @-ping one user per comment.– Torbjørn T.
Oct 14 '16 at 21:32
1
@TorbjørnT.: 1) Well it might not even be a bug: I may just be doing something wrong. 2) It's not unreasonable to have to wait more than a day obviously. I just didn't see any reason not to try here too.
– RobertHannah89
Oct 14 '16 at 21:46