Closed AllanLRH closed 11 years ago
Did you setup a project? https://github.com/randy3k/LaTeXSq/wiki/Project-Setup
for the autocomplete, did you set auto_match_enabled
to true
?
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.
LaTeXSq now search for .synctex or .pdf for the root file. b4d7577b5d63a13dc6a2c927d7b72ec0bbff780a
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
?
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.
Nice :)
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.report.tex
with a preamble and some \input-commands – it's a crude way to handle documents consisting of multiple files, but it works:report.tex
, place the curson on\include
-command, and invokesuper
+l
,j
, and the PDF viewer (Skim) will jump to the wrong section.results.tex
for example, and invokesuper
+l
,j
, and Skim will prompt the error box with the text:The document “resultater.pdf” could not be opened. The file doesn’t exist.
BTW: Can't figure out how to autocomplete
\left( \right)
(also for[{]}
) – is this included in the package?