Comments (4)
When I
vim x.tex
to create a new tex file that is meant to be a main file itself, the prompt of selecting a main file makes no sense. But it seems that I cannot cancel the prompt. Please provide acancel
option and enter single-file mode.
The prompt is only there if there are several "possible" main files in the directory. But I agree, it should be possible to cancel the prompt. I'll look at it when I get the time.
BTW, is there a way to relax this mode that a tex file has a main file?
Create your new file in a new directory.
I have vimtex ac0a41b, but I cannot run :VimtexInfo...
Actually, in this scenario, there is no relevant latex file.
:VimtexInfo
is available when VimTeX is loaded, i.e. for tex files. The point of showing it is because I want to see some system information from your side so that I don't have to ask for it when it is relevant.
from vimtex.
Please provide a minimal example for your problem. I'll make a quick fix for this when I have the example with the steps necessary to reproduce the problem.
from vimtex.
VimtexInfo:
System info:
OS: Arch Linux
Vim version: NVIM v0.9.5
Has clientserver: true
Servername: /run/user/1000/nvim.86561.0
VimTeX project: art
base: art.tex
root: /tmp/eg
tex: /tmp/eg/art.tex
main parser: current file verified
document class: article
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 1
executable: latexmk
viewer: General
qf method: LaTeX logfile
A minimal example is shown below.
I might want to keep these files in one directory, as they are in a single project.
If I nvim lit.bib
, the prompt will be annoying.
lit.bib
@misc{vaswani_attention_2023,
title = {Attention {Is} {All} {You} {Need}},
}
pres.tex
\documentclass{beamer}
\begin{document}
\begin{frame}
Hello\cite{vaswani_attention_2023}
\end{frame}
\begin{frame}
\bibliographystyle{plain}
\bibliography{lit.bib}
\end{frame}
\end{document}
art.tex
\documentclass{article}
\begin{document}
Hello\cite{vaswani_attention_2023}
\bibliographystyle{plain}
\bibliography{lit.bib}
\end{document}
from vimtex.
Thanks for the example; I've implemented a suggestion for this now. Please test and let me know what you think.
from vimtex.
Related Issues (20)
- Use original highlight for concealed text HOT 1
- "Missing character" error message of LuaTeX is not detected HOT 5
- "VimTeX does not support your version of Vim" on neovim HOT 3
- Is it possible to add `vimtex#compiler#is_running()` again? HOT 6
- [help] Get details of citation under cursor HOT 7
- Error detected while processing function callback HOT 1
- ClassWarning is not detected HOT 1
- Lag, (probably not related with known matchparen issue HOT 4
- Add conceal for corners HOT 1
- Poor error output in bibliography issue HOT 3
- Autocompletion using '\' instead of '/' in paths (Windows 10) HOT 7
- Cannot call zathura from vimtex HOT 4
- vimtex doesn't seem to recognise latexmkrc requesting lualatex HOT 4
- An option to deal with dot when toggling inline and displaymath with `ts$` HOT 1
- Real-time scrolling output of latexmk (or compiler) HOT 4
- Runtime compiler not using xelatex using `vimtex_compiler_latexmk`? HOT 2
- Highlight illegal characters HOT 1
- Implement a .lua configuration HOT 2
- how do I unmap just some mappings? HOT 4
- Inconsistent syntax highlighting in subscript and superscript HOT 1
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 vimtex.