Coder Social home page Coder Social logo

hyperclick-latex's People

Contributors

aerijo avatar aviatesk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

aviatesk

hyperclick-latex's Issues

Not working with citation

I got the following warning: Could not find bib file: TypeError: Path must be a string. Received false

Here's my structure again:

biblio.bib
main.tex
structure/chapter1.tex

And I cite something in chapter1.tex.

Hyperclick and busy signal

I noticed that you add busy signal to show when the package is searching for a reference for example. In my case, the button of busy signal stays orange, as if it was still searching, even when it is done.

Failed to activate the hyperclick-latex package

I updated hyperclick-latex and got the following error

Atom: 1.23.3 x64
Electron: 1.6.15
OS: Mac OS X 10.12.6
Thrown From: hyperclick-latex package 0.1.1

Stack Trace

Failed to activate the hyperclick-latex package

At Cannot find module 'lodash'

Error: Cannot find module 'lodash'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/hyperclick-latex/lib/latex-provider.js:4:11)
    at /packages/hyperclick-latex/lib/latex-provider.js:261:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/hyperclick-latex/lib/hyperclick-latex.js:2:18)
    at /packages/hyperclick-latex/lib/hyperclick-latex.js:20:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:96:26)
    at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:937:35)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:244:22)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:1068:34
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at PackageManager.triggerDeferredActivationHooks (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:717:40)
    at Promise.all.then (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:650:18)

Commands

Non-Core Packages

autocomplete-latex 0.8.0 
autocomplete-latex-cite 0.3.1 
autocomplete-latex-references 0.3.1 
busy-signal 1.4.3 
color-picker 2.2.5 
emmet 2.4.3 
file-icons 2.1.16 
grammar-token-limit 0.1.1 
highlight-line 0.12.0 
highlight-selected 0.13.1 
hyperclick 0.1.5 
hyperclick-latex 0.1.1 
intentions 1.1.5 
language-cmake 1.1.0 
language-latex 1.1.1 
latex 0.49.0 
linter 2.2.0 
linter-spell 0.15.0 
linter-spell-latex 0.10.0 
linter-ui-default 1.6.10 
minimap 4.29.7 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-linter 2.1.3 
minimap-pigments 0.2.2 
pigments 0.40.2 
project-manager 3.3.5 
todo-show 2.1.0 

New features

My original work did what I needed, but was quite rough. I've been rewriting this package from scratch (almost), and want to know if there's any features / changes that could be added. My current list of ideas is

  • Environment delimiter -> select it and it's pair (to make changing easy)
    • Changed from just jumping to the other one
  • Reference -> go to label
  • Package name -> open texdoc docs
  • File path -> open file / make if needed
  • Section command -> collapse / expand section (like what I've done in the latex-wordcount package, but with mouse clicks)

That's all I can think of for now. Ideally, the features should be so natural you don't even need to remember them. Like "of course clicking the package name brings up the documentation. What else would it do?"

edit: they were not the labels I originally selected...

References with label in another file

When I click in example1.tex on a reference \ref{example} defined by a label in example2.tex file, I obtain the following message:

Label declaration for reference example not found

I guess it is, either a bug or something not possible with this package. In the latter case, it could be a new feature and if it impossible, may be a message could be added to suggest that the label may be in another file ?

Wrong file opened

Using the usual structure : main.tex, structure/chapter1.tex with \include{structure/chapter1} in main.tex, it opens structure/chapter1.aux instead of structure/chapter1.tex (if the .aux file exists, otherwise it opens the .tex file)

[Feature request] Collapse and expand sections on click

Currently, latex in atom is missing foldability. Folding is very crucial for documents typed in latex since most of these documents are verbose (unlike programmes written in a coding language, which is by nature, succinct). For instance, this is doable (in a limited way though) for markdown documents, where the headers can be folded (using this package).

So, is it possible to collapse and unfold sections, subsections, etc.? Felt, among all the packages available, this feature request might fall under the scope of this package.

Let me know what you think. Thanks again for this new package.

Accuracy of matches

LaTeX imports are REALLY weird. Take this for example:

\usepackage{graphicx}      % graphicx
% \usepackage{graphicx{}}  % graphicx{}
% \usepackage{graphicx {}} % Just dies.
\usepackage{{graphicx}}    % graphicx
% \usepackage{g{raphicx}}  % g{raphicx}
\usepackage{g {raphicx}}   % graphicx
% \usepackage{g {r {a}{p} h i {cx}}}    % gra{p}hicx
% \usepackage{g {r {a}{}{p} h i {cx}}}  % gra{}{p}hicx
% \usepackage{g {r {a} {}{p} h i {cx}}} % gra{p} h i {cx} <- note the spaces
% \usepackage{g {r {a} {}{}{}{}{p} h i {cx}}} % gra{}{}{}{p} h i {cx}

\usepackage{graphicx, siunitx}     % graphicx, siunitx
\usepackage{graphicx, {siunitx}}   % graphicx, siunitx
% \usepackage{graphicx{, siunitx}} % Too many `}` / graphicx{, siunitx}.sty not found
\usepackage{{graphicx, siunitx}}     % graphicx, siunitx
% \usepackage{{graphicx, siunitx}{}} % {graphicx, siunitx}{}
% \usepackage{{graphicx, siunitx} {}}  % ` siuntix .sty` not found <- note spaces
% \usepackage{{graphicx,siunitx} {}}   % `siuntix .sty` not found
% \usepackage{{graphicx,siunitx}, {}}  % `graphicx,siunitx.sty`
% \usepackage{{{graphicx},{siunitx}}, {}}  % `{graphicx},{siunitx}.sty`

\usepackage{graphicx, siunitx, }     % graphicx.sty, siunitx.sty
% \usepackage{graphicx, siunitx, {}} % `.sty` not found
\usepackage{graphicx, siunitx, { }}  % graphicx.sty, siunitx.sty

Commented doesn't compile, and file name is treated as in comment next to it.

And that's just for usepackage.

I'll aim to get decent and sensible matches, but don't be surprised if you do something weird like above and it doesn't match properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.