GithubHelp home page GithubHelp logo

Comments (4)

lervag avatar lervag commented on June 2, 2024

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 a cancel 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.

lervag avatar lervag commented on June 2, 2024

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.

goulf-3m avatar goulf-3m commented on June 2, 2024

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.

lervag avatar lervag commented on June 2, 2024

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)

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.