0

Is it posible to "nest" the LaTeX source code to a text edit program, so it would be easier for users to use it.
I would like to ask you how could I get the LaTeX source code?

David Carlisle
  • 757,742
Vasil
  • 11
  • 5
    Welcome to TeX.SE! Could you please clarify what you mean by nesting LaTeX source code in a text edit program? Relatedly, why did you set the "bold" tag? – Mico Nov 05 '14 at 13:20
  • As far as I understand the question, LaTeX and editor are 100% separate. Which is a good thing, if you do not like one editor you can just use another, unlike, say, Word. On the other hand both MikTeX and TeX Live installations nowadays do install a small editor for peoiple to start from. – daleif Nov 05 '14 at 13:25
  • 1
    why is this question tagged bold ? The source of latex is distributed with every tex distribution, but it isn't at all clear what you are asking, what do you want to do with that source? – David Carlisle Nov 05 '14 at 13:27
  • Are you asking about code folding? You can start by looking at http://tex.stackexchange.com/q/339/15925 – Andrew Swann Nov 05 '14 at 13:30
  • 1
    I think the question might be about hiding the LaTeX code details, so that the user needs only type text. A bit like Lyx maybe. – Fritz Nov 05 '14 at 13:46
  • I am working under a project and we would like to Implement LaTeX into our text editor to be more user-friendly and I was wondering if that is posible. – Vasil Nov 05 '14 at 14:07
  • most latex editors provide whatever front end view that they want to provide but to call latex they just call a latex command via a system call they don't try to embed tex within the compiled source of the editor – David Carlisle Nov 05 '14 at 14:20
  • I think it's possible to achieve it, but as in the answer says, you should start for understand the code. Also there are many free text editors able to work with LaTeX code, perhaps you could check that code for help you. – Aradnix Nov 05 '14 at 14:55
  • I don't think that including the code for LaTeX in your editor will make it easier to use. I think it will make it harder to use and a lot more difficult to understand. – cfr Nov 06 '14 at 02:56

1 Answers1

2

There are editors which do code folding for LaTeX if I understand your first question, if not, LyX, http://www.lyx.org is probably the best option as Fritz suggested in the comments.

Source code for LaTeX is available from CTAN: http://www.ctan.org/‎ but you'll want to start by understanding Documented LaTeX sources (.dtx files): https://texfaq.org/FAQ-dtx

You should probably start w/ the LaTeX Project page: http://www.latex-project.org/

Or here: http://www.tex.ac.uk/ctan/info/latex2e-help-texinfo/latex2e.pdf

For the actual source you want: http://www.ctan.org/pkg/source2e

David Carlisle
  • 757,742
WillAdams
  • 7,187
  • I am working under a project and we would like to Implement LaTeX into our text editor to be more user-friendly and I was wondering if that is posible. – Vasil Nov 05 '14 at 15:20
  • Yes, there are a number of projects which do that sort of thing. – WillAdams Nov 05 '14 at 15:22
  • Are there any suggestion how to implement the code to the text editor? – Vasil Nov 05 '14 at 15:36
  • @Vasil What do you mean exactly? If this answer doesn't address your question, I think it is because people are not at all clear what you are asking. If you want to do something like LyX, say, you can look at that project. But it isn't clear if that is what you are trying to do at all... – cfr Nov 06 '14 at 02:54
  • I aplogise for the confusion. I am trying to create something like LyX - yes. And I was wondering if there is a way to do it. – Vasil Nov 06 '14 at 09:04
  • Am i able to see the LaTeX source code from somewhere so I can use it to implement it to a new text editor, edit it to be more user-friendly – Vasil Nov 06 '14 at 10:53
  • https://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/base/source2e.pdf – WillAdams Nov 06 '14 at 13:46
  • All I need to do now is to see how to set the code to the text editor. – Vasil Nov 06 '14 at 14:35