What is needed is passing to a single instance of the editor Neither when I switch to "bash /home/edu/textadept.sh" "%f" -e _line(%l-1)Īs you identify, Okular should not be the problem. The unsuccessful command I have written in Okular is "/home/username/Software/textadept_10.0_beta_2.x86_64/textadept" "%f" -e _line(%l-1) That does the trick in order to compile with Textadept using my personal fonts in ~/.fonts, and not with Latin Modern or whatever. Therefore, behind my icon for launching Textadept we have the comand "bash /home/username/textadept.sh". The second line is due to I only could download the portable version. Then, in my home there is a texadept.sh file with this lines inside: If not, ConTeXt compile my pdf with a fallout font like Latin Modern. In order to do that, I added this line into my ~/.bashrc file: source /opt/context-minimals/setuptex. Among other things I can make use of my otf fonts within my /home/username/.font folder. I work in a Plasma desktop with context-minimals in /opt/context-minimals/setuptex path. Textadept's help page omites SincTEX at all.įirst things first. However, I have tested SyncTEX in the past with TexWorks and had no problem running forward and inverse search. Here says that we have relative small synctex files in ConTeXt because it doesn't use SyncTEX's internal code. In relation to my code above, it is worth to note that "synctex=1", "synctex=-1", or simply "synctex", are interchangeable in ConTeXt. The first is needed for inverse search and the second is needed for forward search. You need to know two commands to setup forward and inverse search: (i) Call textadept to open a specific file at a specific line-number and (ii) Call okular to jump to a specific synctex location. Just below I have quoted an Aditya's advice about this request, but I have no clue how to handle it yet. _commands.tex = 'mtxrun -autogenerate -script context -autopdf -purge -synctex "%f"'īut seems to me, after Internet searching, that is difficult to achieve my goal. ( the future of advanced text processing). (one of the fastest, most customizable, lightweight coding editors) and It's the one to which you should add the line mentioned above and it's located in Is created when you start TA for the first time. One is in the program folder (don't modify this one though, as your changes will be lost when you update TA). = 'C:/ConTeXt/tex/texmf-mswin/bin/mtxrun -autogenerate 'Īlso note that you have to use slash ( / ) instead of backslash ( \ ) in the file path, since Lua interprets a backslash as the beginning of a command, while for Windows it doesn't make any difference.įor textadept. Otherwise you have to add the full path to the CTX executables before MTXRUN. Note that your CTX executables folder has to be in the Windows system PATH. Then you can use Tools -> Run (or) Compile in textadept to compile a CTX PDF. _commands.tex = 'mtxrun -autogenerate -script context -autopdf "%f"' So, does anybody of you use textadept as main editor and/or can tell me how to set it up properly to use with CTX? So far I've been using SciTE and with Scintillua and the configuration files from the CTX distribution it works fine. I have the latest (beta) CTX version, no MiKTeX or LaTeX at all, and my CTX is in the system path. Installation instructions for the module package are for Linux only and it says that the package has to be setup first. I know that CTX mkiv uses LuaTeX as engine but I don't know why textadept doesn't use it. I downloaded and extracted the package but yet when I try to build or compile a *.tex file textadept gives me a pdfTeX error. There are only settings for SciTE, texworks and texfont. But I can't find those files anywhere in my CTX directory. Following instructions on ConTeXtwiki I found out that Hans Hagen wrote configuration files for textadept which are included in the CTX distribution.
0 Comments
Leave a Reply. |