Comments (8)
Actually, I found two behaviors that I consider undesirable:
- When I define a new command using
import
orsubimport
, TexLab appears to be unable to build the document tree.
\newcommand{\structure}[1]{
\subimport{#1/}{document.tex}
}
- If I
subimport
file1.tex
and, infile1.tex
, I inputfile2.tex
, TexLab does not seem to considerfile2.tex
as part of the same project asfile1.tex
.
from texlab.
Created this repo showing the errors:
https://github.com/brunotvs/texlab_issue
from texlab.
@brunotvs Currently, this is to be expected because the server does not implement the same logic as the TeX engine so in this case, it does not know that \structure{foo}
resolves to \subimport{foo}{document.tex}
. There two ways to solve this issue:
- Hard-code this case similar to
texlab.experimental.labelDefinitionCommands
(difficult to draw the line here on what is useful enough to be hard-coded into the server) - Implement a (rudimentary) macro expansion engine in the server (very hard)
from texlab.
@pfoerster Okay, but what about nested subimports?
from texlab.
@pfoerster, in addition, can the .fls file be utilized?
from texlab.
@pfoerster Okay, but what about nested subimports?
If they just use the plain \subimport
command, they should work.
@pfoerster, in addition, can the .fls file be utilized?
Sure, #1160 adds a the .fls
as an additional source for the project detection. With this changeset, your example will work now after compiling the document once.
from texlab.
Sure, #1160 adds a the .fls as an additional source for the project detection.
Awesome, sounds great.
If they just use the plain
\subimport
command, they should work.
@pfoerster I found that if I add a latexmkrc file, citation and refs from nested submimports stop working as per this repo
from texlab.
@pfoerster I found that if I add a latexmkrc file, citation and refs from nested submimports stop working as per this repo
Thanks for the example. With #1161, your example should work as intended.
from texlab.
Related Issues (20)
- Disabling individual warnings HOT 1
- Allow extending label commands (not just ref)
- Lsp panics after deleting last line of a file HOT 4
- Forward search broken with empty latexmkrc
- project detection: .latexmkrc in higher level parent directory HOT 2
- texlab reports dublicate and unused label in macro definition
- Feature request: support apastyle prenotes
- BibLaTeX globbing patterns (`\addbibresource[glob]{}`) do not seem to read the `.bib` files under `nvim` HOT 1
- Diagnostics not displayed with `$aux_dir`
- Texlab lsp server exits on unicode letter 1F582 HOT 4
- ignore single warnings/errors HOT 1
- Compile on save doesn't work in neovim HOT 2
- Add user-defined prefixes to custom label reference and definition commands HOT 1
- The LSP stops working as soon as I try to type something HOT 2
- [BUG] Undefined reference even though its defined in tabularray HOT 1
- Cannot disable reference inlay hints HOT 1
- Need some help setting up preview on windows HOT 2
- \begin snippet for environments with arguments HOT 2
- False undefined reference error with thebibliography
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texlab.