Giter Club home page Giter Club logo

Comments (8)

lervag avatar lervag commented on August 16, 2024

This should do it, I think.

from vimtex.

petobens avatar petobens commented on August 16, 2024

Thank you! I'm pretty sure this will work once this minor problem is fixed!

from vimtex.

petobens avatar petobens commented on August 16, 2024

Thanks for adding this option! There is minor problem. When the "Preamble" is hidden in the TOC but there are \section commands in the preamble they will still show in the TOC. This is essentially the same as #28. For instance with the following MWE I get what is seen in the image.

\documentclass{article}
\newcommand*{\secappendix}[1]{%
  \section{#1}}%
\begin{document}
\section{Foo}
\end{document}

screenshot-11-08-2014_10-33-26

from vimtex.

lervag avatar lervag commented on August 16, 2024

Thanks for noticing. I thought I had done a nice simplification, but instead I removed my fix for #28. I think my latest commit fixes this.

from vimtex.

petobens avatar petobens commented on August 16, 2024

Thank you for fixing it! Works great now.

from vimtex.

petobens avatar petobens commented on August 16, 2024

Hi @lervag. I'm revisiting this after 9 years :) . I tried setting vim.g.vimtex_toc_show_preamble = 0 as in the image below but the preamble is still shown. Any pointers?

Screenshot_2023-09-07_10:01:08

from vimtex.

lervag avatar lervag commented on August 16, 2024

Interesting. That option should work. Can you open a new issue and describe your config in somewhat more detail?

from vimtex.

petobens avatar petobens commented on August 16, 2024

Sure. See #2787. Thanks!

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.