randy3k / LaTeXBox

A lightweight but deprecated LaTeX Plugin for Sublime Text 3
44 stars 8 forks source link

Forward sync in multiple file document #2

Closed AllanLRH closed 11 years ago

AllanLRH commented 11 years ago

Forward sync (MAC: super + l, j) doesn't seem to work when there's not pdf-file with the same name as the tex-file. I think an example is in order, for elaboration.

% Preamble somewhere up here :)

\input{introduction.tex}
\input{results.tex}
\input{conclusions.tex}
\input{anotherFile.tex}
\input{yetAnotherFile.tex}
\input{andSoForth.tex}

BTW: Can't figure out how to autocomplete \left( \right) (also for [{]}) – is this included in the package?

randy3k commented 11 years ago

Did you setup a project? https://github.com/randy3k/LaTeXSq/wiki/Project-Setup

randy3k commented 11 years ago

for the autocomplete, did you set auto_match_enabled to true?

randy3k commented 11 years ago

Back to you first point.

Right now, LaTeXSq will try to go to report file rather than the tex file in the input command. Of course, report file actually has nothing other than input commands. Therefore a wrong section will be shown I will consider adding this feature.

randy3k commented 11 years ago

LaTeXSq now search for .synctex or .pdf for the root file. b4d7577b5d63a13dc6a2c927d7b72ec0bbff780a

AllanLRH commented 11 years ago

Sorry, didn't check the Wiki – I feel quite stupid now :[ ... so used to Wikis being empty. Also, I'we taken a better look at the keymap files, as well as the wiki... and while I cant get the ^, ^ to ^{} snippet working, the others seems to work just fine... but might just be my Danish keyboard layout which makes trouble again.

I'we been using LaTeXSQ a little bit more, and I have the following suggestions to improvements:

From looking at the system specific keymaps, I see there's a shortcut (super + l, c) to turn a selected word into a command. I think this this can be done with sublime snippets/macros, just not sure how... in the following, suppose that the first column is before execution of the command, the second column after, the third column suggestion of keyboard shortcut [foo] is the word 'foo' selected, and I is the caret

before after keystroke
fooI \foo{I} super+l, c
[foo] \foo{I} super+l, c
fooI \[cmd]{foo} super+l, super + c
[foo] \[cmd]{foo} super+l, super + c

Also, the \ldots command works in math environments as well as in text envinroments, but it's only autocompleted by ... in scope meta.definition.math.latex – might be more convinient to change the scope to text.tex.latex?

randy3k commented 11 years ago

super+l, c is still under development. I am still thinking what the best way to implement is.

For \ldots, I will move it to text.tex.latex. And I will add more commands.

AllanLRH commented 11 years ago

Nice :)