├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ ├── issue_report.md.disabled │ └── issue_report.yml └── workflows │ └── main.yml ├── .gitignore ├── .luarc.json ├── .stylua.toml ├── .vintrc.yaml ├── CONTRIBUTING.md ├── DOCUMENTATION.md ├── LICENSE.md ├── README.md ├── VISUALS.md ├── after └── ftplugin │ └── tex.vim ├── assets └── json │ └── fontawesome.json ├── autoload ├── health │ └── vimtex.vim ├── unite │ └── sources │ │ └── vimtex.vim ├── vimtex.vim └── vimtex │ ├── bib.vim │ ├── cache.vim │ ├── cite.vim │ ├── cmd.vim │ ├── compiler.vim │ ├── compiler │ ├── _template.vim │ ├── arara.vim │ ├── generic.vim │ ├── latexmk.vim │ ├── latexrun.vim │ └── tectonic.vim │ ├── complete.vim │ ├── complete │ ├── abntcite │ ├── acro │ ├── acronym │ ├── afterpage │ ├── algorithm2e │ ├── allrunes │ ├── amsbsy │ ├── amsfonts │ ├── amsmath │ ├── amsopn │ ├── amssymb │ ├── amsthm │ ├── appendix │ ├── array │ ├── attachfile │ ├── babel │ ├── beamerfoils │ ├── beamerprosper │ ├── beamerseminar │ ├── beamertexpower │ ├── beamerthemeFhG │ ├── biblatex │ ├── bm │ ├── booktabs │ ├── braket │ ├── calc │ ├── cancel │ ├── caption │ ├── cases │ ├── chemformula │ ├── chemstyle │ ├── circuitikz │ ├── class-beamer │ ├── class-book │ ├── class-letter │ ├── class-memoir │ ├── class-moderncv │ ├── class-scrartcl │ ├── class-scrartcl,scrreprt,scrbook │ ├── class-scrbook │ ├── class-scrlttr2 │ ├── class-scrreprt │ ├── cleveref │ ├── color │ ├── colortbl │ ├── commath │ ├── comment │ ├── coordsys │ ├── cquthesis │ ├── csquotes │ ├── currvita │ ├── cyrillic │ ├── datatool │ ├── datatool-base │ ├── default │ ├── diagxy │ ├── doi │ ├── empheq │ ├── enumerate │ ├── epigraph │ ├── epstopdf │ ├── etoolbox │ ├── eurosym │ ├── fancybox │ ├── fancyhdr │ ├── fancyunits-base │ ├── fancyunits-np │ ├── fancyunits-per │ ├── fancyunits_big-fractions │ ├── fancyunits_medium-fractions │ ├── fancyunits_small-fractions │ ├── fancyvrb │ ├── fhgtechdoku_additional │ ├── fixme │ ├── float │ ├── fontspec │ ├── geometry │ ├── german │ ├── glossaries │ ├── glosstex │ ├── graphicx │ ├── harvard │ ├── hyperref │ ├── ifluatex │ ├── ifpdf │ ├── iftex │ ├── ifthen │ ├── ifvtex │ ├── ifxetex │ ├── import │ ├── jurabib │ ├── kantlipsum │ ├── latex-209 │ ├── latex-dev │ ├── latex-document │ ├── latex-l2tabu │ ├── latex-mathsymbols │ ├── layout │ ├── letltxmacro │ ├── libertine │ ├── lipsum │ ├── listings │ ├── logsys │ ├── longtable │ ├── lscape │ ├── ltxtable │ ├── luatex │ ├── luatodonotes │ ├── manyfoot │ ├── marvosym │ ├── mathtools │ ├── mdframed │ ├── mdwlist │ ├── memhfixc │ ├── menukeys │ ├── metrix │ ├── mhchem │ ├── microtype │ ├── minted │ ├── multicol │ ├── multido │ ├── multimedia │ ├── multirow │ ├── nameref │ ├── natbib │ ├── needspace │ ├── newclude │ ├── ngerman │ ├── nicefrac │ ├── nomencl │ ├── paracol │ ├── parskip │ ├── pdfpages │ ├── pgf │ ├── pgfcore │ ├── pgfplots │ ├── physics │ ├── pifont │ ├── placeins │ ├── psfrag │ ├── pst-3d │ ├── pst-blur │ ├── pst-char │ ├── pst-coil │ ├── pst-eps │ ├── pst-fill │ ├── pst-node │ ├── pst-plot │ ├── pst-text │ ├── pst-tree │ ├── pstricks │ ├── rotating │ ├── scraddr │ ├── scrdate │ ├── scrlfile │ ├── scrpage2 │ ├── scrtime │ ├── secsty │ ├── setspace │ ├── siunitx │ ├── siunitx-special │ ├── subcaption │ ├── subfig │ ├── subfigure │ ├── subfiles │ ├── supertabular │ ├── svn-multi │ ├── svninfo │ ├── tabu │ ├── tabularx │ ├── tabulary │ ├── tex │ ├── textcomp │ ├── theorem │ ├── tikz │ ├── tikz-cd │ ├── tikz-timing │ ├── titlesec │ ├── tkz-euclide │ ├── tocbibind │ ├── tocloft │ ├── todonotes │ ├── tools │ │ ├── convert-cwl │ │ ├── symbols │ │ ├── symbols-collected │ │ ├── symbols-generated │ │ ├── symbols-json │ │ ├── symbols-merge.py │ │ ├── symbols-parse-json.py │ │ ├── symbols.json │ │ └── unicode-math │ │ │ ├── README │ │ │ └── generate-symbols.tex │ ├── ulem │ ├── units │ ├── upgreek │ ├── url │ ├── varioref │ ├── verse │ ├── virginialake │ ├── wasysym │ ├── xcolor │ ├── xetex │ ├── xifthen │ ├── xkeyval │ ├── xltxtra │ ├── xparse │ ├── xspace │ ├── xtab │ ├── xy │ ├── yathesis │ └── yfonts │ ├── context.vim │ ├── context │ ├── cite.vim │ └── glossaries.vim │ ├── debug.vim │ ├── delim.vim │ ├── doc.vim │ ├── doc │ └── handlers.vim │ ├── env.vim │ ├── fold.vim │ ├── fold │ ├── bib.vim │ ├── cmd_addplot.vim │ ├── cmd_multi.vim │ ├── cmd_single.vim │ ├── cmd_single_opt.vim │ ├── comment_pkg.vim │ ├── comments.vim │ ├── env_options.vim │ ├── envs.vim │ ├── items.vim │ ├── markers.vim │ ├── preamble.vim │ └── sections.vim │ ├── format.vim │ ├── fzf.vim │ ├── imaps.vim │ ├── include.vim │ ├── info.vim │ ├── jobs.vim │ ├── jobs │ ├── neovim.vim │ └── vim.vim │ ├── kpsewhich.vim │ ├── log.vim │ ├── matchparen.vim │ ├── misc.vim │ ├── motion.vim │ ├── nvim.vim │ ├── options.vim │ ├── parser.vim │ ├── parser │ ├── auxiliary.vim │ ├── bib.vim │ ├── fls.vim │ ├── tex.vim │ ├── toc.vim │ ├── toc │ │ ├── beamer_frame.vim │ │ ├── bibliography.vim │ │ ├── comment.vim │ │ ├── include.vim │ │ ├── include_biblatex.vim │ │ ├── include_bibtex.vim │ │ ├── include_graphics.vim │ │ ├── include_vimtex.vim │ │ ├── index.vim │ │ ├── labels.vim │ │ ├── parts.vim │ │ ├── preamble.vim │ │ ├── section.vim │ │ ├── table_of_contents.vim │ │ ├── titlepage.vim │ │ ├── todo_comments.vim │ │ ├── todo_fixme.vim │ │ └── todo_notes.vim │ └── vimcomplete.bst │ ├── paths.vim │ ├── pos.vim │ ├── profile.vim │ ├── qf.vim │ ├── qf │ ├── biblatex.vim │ ├── bibtex.vim │ ├── latexlog.vim │ ├── pplatex.vim │ ├── pulp.vim │ └── u.vim │ ├── re.vim │ ├── scratch.vim │ ├── state.vim │ ├── state │ └── class.vim │ ├── syntax.vim │ ├── syntax │ ├── core.vim │ ├── nested.vim │ ├── p │ │ ├── amsmath.vim │ │ ├── amssymb.vim │ │ ├── amsthm.vim │ │ ├── apacite.vim │ │ ├── array.vim │ │ ├── asymptote.vim │ │ ├── babel.vim │ │ ├── beamer.vim │ │ ├── biblatex.vim │ │ ├── biblatex_chicago.vim │ │ ├── booktabs.vim │ │ ├── breqn.vim │ │ ├── cases.vim │ │ ├── chemformula.vim │ │ ├── circuitikz.vim │ │ ├── cleveref.vim │ │ ├── comment.vim │ │ ├── csquotes.vim │ │ ├── dot2texi.vim │ │ ├── empheq.vim │ │ ├── fixme.vim │ │ ├── fontawesome5.vim │ │ ├── geometry.vim │ │ ├── glossaries.vim │ │ ├── glossaries_extra.vim │ │ ├── gnuplottex.vim │ │ ├── hyperref.vim │ │ ├── ieeecolor.vim │ │ ├── ieeeconf.vim │ │ ├── ieeetran.vim │ │ ├── ieeetrantools.vim │ │ ├── import.vim │ │ ├── listings.vim │ │ ├── luacas.vim │ │ ├── luacode.vim │ │ ├── markdown.vim │ │ ├── mathpartir.vim │ │ ├── mathtools.vim │ │ ├── mhequ.vim │ │ ├── minted.vim │ │ ├── mleftright.vim │ │ ├── moreverb.vim │ │ ├── nameref.vim │ │ ├── natbib.vim │ │ ├── optidef.vim │ │ ├── pdfpages.vim │ │ ├── pgfplots.vim │ │ ├── pyluatex.vim │ │ ├── pythontex.vim │ │ ├── quantikz.vim │ │ ├── robust_externalize.vim │ │ ├── sagetex.vim │ │ ├── siunitx.vim │ │ ├── subfile.vim │ │ ├── tabularx.vim │ │ ├── tcolorbox.vim │ │ ├── tikz.vim │ │ ├── todonotes.vim │ │ ├── unicode_math.vim │ │ ├── url.vim │ │ ├── varioref.vim │ │ ├── wiki.vim │ │ ├── witharrows.vim │ │ └── zref_clever.vim │ └── packages.vim │ ├── test.vim │ ├── text_obj.vim │ ├── text_obj │ ├── cmdtargets.vim │ ├── envtargets.vim │ └── targets.vim │ ├── toc.vim │ ├── ui.vim │ ├── ui │ ├── legacy.vim │ ├── nvim.vim │ └── vim.vim │ ├── util.vim │ ├── view.vim │ └── view │ ├── _template.vim │ ├── general.vim │ ├── mupdf.vim │ ├── sioyek.vim │ ├── skim.vim │ ├── texshop.vim │ ├── zathura.vim │ └── zathura_simple.vim ├── cliff.toml ├── compiler ├── bibertool.vim ├── chktex.vim ├── lacheck.vim ├── style-check.vim ├── textidote.vim └── vlty.vim ├── doc ├── targets-textobj-cheatsheet.md └── vimtex.txt ├── docker └── Dockerfile ├── ftdetect ├── cls.vim ├── tex.vim └── tikz.vim ├── ftplugin ├── bib.vim └── tex.vim ├── indent ├── bib.vim └── tex.vim ├── lua └── vimtex │ ├── fzf-lua │ └── init.lua │ ├── parser │ ├── bib.lua │ ├── combinators.lua │ └── general.lua │ ├── snacks │ └── init.lua │ └── utils │ ├── init.lua │ └── picker.lua ├── plugin └── vimtex.vim ├── rplugin └── python3 │ └── denite │ └── source │ └── vimtex.py ├── syntax └── tex.vim └── test ├── Makefile ├── common ├── huge.bib ├── local1.bib └── local2.bib ├── example-book-multifile ├── appendix.tex ├── backmatter.tex ├── book.bib ├── content │ ├── chapters.tex │ └── sections.tex ├── frontmatter.tex ├── main.tex ├── minivimrc ├── preamble.tex ├── test.jpg └── test.tikz ├── example-book └── main.tex ├── example-cites └── main.tex ├── example-fzf-lua ├── main.tex ├── mise.toml └── test.lua ├── example-markdown ├── after │ └── syntax │ │ └── markdown.vim ├── syntax │ └── markdown.vim ├── test.lua └── test.md ├── example-minimal ├── main.tex └── minivimrc ├── example-performance └── jobs-capture-cached.vim ├── example-quick-start └── main.tex ├── example-quickfix ├── main.log └── main.tex ├── example-snacks ├── main.tex └── test.lua ├── example-startup-timing ├── Makefile ├── minivimrc └── thesis.tex ├── perf-folding └── measure.vim ├── perf-syntax ├── .gitignore ├── Makefile ├── main.tex ├── run-redraws.vim └── run-scroll-on-docs.vim ├── test-bibfiles ├── Makefile ├── test_revtex.tex └── test_revtex.vim ├── test-cache ├── Makefile ├── test-basic.json ├── test-basic.vim ├── test-clear.vim ├── test-empty.vim ├── test-kpsewhich-local-a │ ├── local.bib │ └── test.vim ├── test-kpsewhich-local-b │ ├── local.bib │ └── test.vim ├── test-local.vim ├── test-validate.vim ├── test-wrapper.vim └── test-write-error.vim ├── test-cite ├── Makefile └── test-cite.vim ├── test-commands ├── Makefile ├── test-change-cmd.vim ├── test-change-env-complete.vim ├── test-change-env.vim ├── test-change-math.vim ├── test-close-delim.vim ├── test-delete-cmd.vim ├── test-delete-env.vim ├── test-delete-math.vim ├── test-delim-toggle.vim ├── test-insert-cmd.vim ├── test-toggle-break.vim ├── test-toggle-custom-frac.vim └── test-toggle-frac.vim ├── test-compiler-generic ├── Makefile ├── test.tex └── test.vim ├── test-compiler-method-dynamic ├── Makefile ├── test-arara.tex ├── test-fallback.tex └── test.vim ├── test-compiler-pdfmode ├── Makefile ├── test-conflict-warning │ ├── Makefile │ ├── latexmkrc │ ├── main.tex │ └── test.vim └── test-pdfps │ ├── Makefile │ ├── latexmkrc │ ├── main.tex │ └── test.vim ├── test-compiler-selected ├── Makefile ├── inputfile.tex ├── reference1.tex ├── reference2.tex ├── reference3.tex ├── test-template.tex ├── test.tex ├── test.vim └── vimtex-template.tex ├── test-compiler ├── Makefile ├── test-backend.vim ├── test-builddir.tex ├── test-builddir.vim ├── test-clean.tex └── test-clean.vim ├── test-completion-bibstyle ├── Makefile ├── main.tex └── test.vim ├── test-completion-bibtex-speed ├── Makefile ├── bibspeed.tex └── bibspeed.vim ├── test-completion-bibtex ├── Makefile ├── test_apacite.tex ├── test_apacite.vim ├── test_backend.tex ├── test_backend.vim ├── test_cache.bib ├── test_cache.tex ├── test_cache.vim ├── test_custom_bibs.bib ├── test_custom_bibs.tex ├── test_custom_bibs.vim ├── test_globbed.bib ├── test_globbed_1.bib ├── test_globbed_2.bib ├── test_globbed_braces.tex ├── test_globbed_braces.vim ├── test_globbed_bracket.tex ├── test_globbed_bracket.vim ├── test_globbed_star.tex ├── test_globbed_star.vim ├── test_globbed_wildcard.tex ├── test_globbed_wildcard.vim ├── test_jobname.bib ├── test_jobname.tex ├── test_jobname.vim ├── test_matchstr.bib ├── test_matchstr.tex ├── test_matchstr.vim ├── test_multicite.tex ├── test_multicite.vim ├── test_parser_bcf.bcf ├── test_parser_bcf.tex ├── test_parser_bcf.vim ├── test_parser_blg.blg ├── test_parser_blg.tex ├── test_parser_blg.vim ├── test_starred.tex └── test_starred.vim ├── test-completion-commands ├── Makefile ├── test-custom-cls-speed.cls ├── test-custom-cls-speed.tex ├── test-custom-cls-speed.vim ├── test-custom-cls.cls ├── test-custom-cls.tex ├── test-custom-cls.vim ├── test-custom-cmds.tex ├── test-custom-cmds.vim ├── test-tkz-euclide.tex └── test-tkz-euclide.vim ├── test-completion-documentclass ├── Makefile ├── main.tex └── test.vim ├── test-completion-environments ├── Makefile ├── test1.tex ├── test1.vim ├── test2.cls ├── test2.tex ├── test2.vim ├── test3.sty ├── test3.tex └── test3.vim ├── test-completion-filenames ├── Makefile ├── fig1.png ├── figures │ ├── example.tikzz │ ├── example1.tikz │ ├── example2.TikZ │ ├── example3.TIKZ │ ├── fig10.png │ ├── fig11.eps │ ├── fig12.pdf │ ├── fig13.jpg │ ├── fig2.png │ ├── fig3.png │ ├── fig4.png │ ├── fig5.png │ ├── fig6.png │ ├── fig7.png │ ├── fig8.png │ └── fig9.png ├── main.tex ├── my figures │ ├── new_fig1.jpg │ ├── new_fig2.jpg │ ├── new_fig3.jpg │ ├── new_fig4.jpg │ ├── new_fig5.jpg │ ├── new_fig6.jpg │ ├── new_fig7.jpg │ ├── new_fig8.jpg │ └── new_fig9.jpg ├── test.vim ├── tikz_pic.tex └── tikzpics │ └── figure.tikz ├── test-completion-glossary-texinputs ├── Makefile ├── test.vim ├── texinclude │ └── inp.tex └── texwork │ └── example.tex ├── test-completion-glossary ├── Makefile ├── glossaries-extra-1.tex ├── glossaries-extra-2.tex ├── glossaries-extra.bib ├── glossaries-extra.vim ├── glossaries.tex ├── glossaries.vim ├── glossary.bib ├── glsentries.tex └── latexmkrc ├── test-completion-labels ├── Makefile ├── test1.aux ├── test1.tex ├── test1.vim ├── test1 │ ├── sub1.aux │ ├── sub1.tex │ ├── sub2 with spaces.tex │ ├── sub3 with spaces.tex │ └── sub4.tex ├── test2.tex ├── test2.vim ├── test2 │ ├── input1.aux │ └── input2.aux ├── test_manual_labels.tex └── test_manual_labels.vim ├── test-completion-packages ├── Makefile ├── main.tex └── test.vim ├── test-context-cite ├── Makefile ├── test-cites.bib ├── test-cites.tex └── test-cites.vim ├── test-context-glossaries ├── Makefile ├── glossaries-1.bib ├── glossaries-1.glstex ├── glossaries-2.tex ├── glossaries.glstex ├── glossaries.tex ├── latexmkrc └── test-glossaries.vim ├── test-delim ├── Makefile ├── test.tex └── test.vim ├── test-doc ├── Makefile ├── test.tex ├── test_usepackage.vim └── test_usetikzlibrary.vim ├── test-env ├── Makefile ├── test-getters.tex ├── test-getters.vim ├── test-surround.tex ├── test-surround.vim ├── test-toggle-inline-math.tex ├── test-toggle-inline-math.vim ├── test-toggle-lists.tex ├── test-toggle-lists.vim ├── test-toggle-math.tex ├── test-toggle-math.vim ├── test-toggle-star.tex └── test-toggle-star.vim ├── test-folding-bib ├── Makefile ├── test.bib └── test.vim ├── test-folding ├── Makefile ├── test-env-options.tex ├── test-env-options.vim ├── test-markers.tex ├── test-markers.vim ├── test-other.tex ├── test-other.vim ├── test-sections.tex └── test-sections.vim ├── test-formatting ├── Makefile ├── test-01.ref ├── test-01.tex ├── test-02.ref ├── test-02.tex ├── test-03.ref ├── test-03.tex ├── test-04.ref ├── test-04.tex ├── test-05.ref ├── test-05.tex ├── test-06.ref ├── test-06.tex └── test.vim ├── test-get-main ├── Makefile ├── simple.tex ├── test-bib-alternate │ ├── main.tex │ └── references.bib ├── test-bib-notfound │ └── references.bib ├── test-bib-simple │ ├── main.tex │ └── references.bib ├── test-included-preamble │ ├── main.tex │ └── preamble.tex ├── test-includes │ ├── include3.tex │ ├── main.tex │ ├── subfile.tex │ └── test │ │ ├── include1.tex │ │ └── sub │ │ └── include2.tex ├── test-latexmain │ ├── included.tex │ ├── main.tex │ ├── main.tex.latexmain │ └── section1 │ │ └── main.tex ├── test-latexmk │ ├── latexmkrc │ ├── main.tex │ └── preamble.tex ├── test-standalone │ ├── a │ │ ├── a.tex │ │ └── b │ │ │ └── b.tex │ └── main.tex ├── test-subfiles │ ├── main.tex │ ├── not-main.tex │ ├── preamble.tex │ └── sub │ │ ├── sub1.tex │ │ ├── sub2.tex │ │ └── sub3.tex ├── test-texroot │ ├── included.tex │ └── main.tex ├── test-ugly-paths │ └── [code college-1] title │ │ └── test.tex └── test.vim ├── test-getfile ├── Makefile ├── test_auxdir.vim └── test_auxdir │ ├── auxfiles │ ├── test.aux │ ├── test.blg │ └── test.log │ ├── out │ ├── test.aux │ ├── test.blg │ ├── test.fls │ ├── test.log │ ├── test.pdf │ └── test.synctex.gz │ ├── test.fls │ ├── test.pdf │ └── test.tex ├── test-imaps ├── Makefile └── test.vim ├── test-include ├── Makefile ├── references.bib ├── sub │ ├── file1.tex │ ├── file2.tex │ └── file3.tex ├── test.tex └── test.vim ├── test-indentation-timing ├── Makefile ├── test.vim └── thesis.tex ├── test-indentation ├── Makefile ├── test.vim ├── test_ampersands-off_input.tex ├── test_ampersands-off_reference.tex ├── test_ampersands_input.tex ├── test_ampersands_nested-envs_input.tex ├── test_ampersands_nested-envs_reference.tex ├── test_ampersands_reference.tex ├── test_close-indented_input.tex ├── test_close-indented_reference.tex ├── test_close_open_same_line_input.tex ├── test_close_open_same_line_reference.tex ├── test_comments_in_environments_input.tex ├── test_comments_in_environments_reference.tex ├── test_conditionals_input.tex ├── test_conditionals_reference.tex ├── test_environments-ignored_input.tex ├── test_environments-ignored_reference.tex ├── test_environments_input.tex ├── test_environments_reference.tex ├── test_itemized_input.tex ├── test_itemized_reference.tex ├── test_math_input.tex ├── test_math_reference.tex ├── test_tikz_input.tex ├── test_tikz_long_input.tex ├── test_tikz_long_reference.tex ├── test_tikz_reference.tex ├── test_verbatim_input.tex └── test_verbatim_reference.tex ├── test-jobs ├── Makefile ├── test-capture.vim ├── test-run.vim └── test-start.vim ├── test-matchparen-speed ├── Makefile ├── test.tex └── test.vim ├── test-metadata ├── Makefile ├── test-sources.vim └── test-sources │ ├── include1.tex │ ├── main.tex │ ├── sub1 │ └── include2.tex │ ├── sub2 │ └── include3.tex │ └── subfile.tex ├── test-motions-virtual ├── Makefile ├── test.ref ├── test.tex └── test.vim ├── test-motions ├── Makefile ├── test-beamer.tex ├── test-beamer.vim ├── test-comment.tex ├── test-comment.vim ├── test-fakesection.tex ├── test-fakesection.vim ├── test-math.tex ├── test-math.vim ├── test-method.tex ├── test-method.vim ├── test-section.tex └── test-section.vim ├── test-parser-bib ├── Makefile ├── test-pc.lua ├── test.bib └── test.vim ├── test-parser-cmds ├── Makefile ├── test-args.tex ├── test-args.vim ├── test-next.tex └── test-next.vim ├── test-parser-combinator ├── Makefile ├── test-combinators.lua └── test-general.lua ├── test-parser-tex ├── Makefile ├── test_nested_include.tex ├── test_nested_include.vim ├── test_nested_include │ ├── imported.tex │ └── more.tex ├── test_preamble_include.ref ├── test_preamble_include.tex ├── test_preamble_include.vim ├── test_preamble_included.tex ├── test_recursive.tex └── test_recursive.vim ├── test-parser-toc ├── Makefile ├── main.tex ├── sub.tex └── test.vim ├── test-paths ├── Makefile ├── main.tex └── test.vim ├── test-quickfix-fix-path ├── Makefile ├── test-beamer.log ├── test-beamer.tex ├── test-beamer.vim ├── test-hbox-1.tex ├── test-hbox-2.tex ├── test-hbox-3.tex ├── test-hbox.log ├── test-hbox.tex └── test-hbox.vim ├── test-quickfix ├── Makefile ├── file with errors.log ├── file with errors.tex ├── input with spaces.tex ├── test-latexlog.vim ├── test-pplatex.log ├── test-pplatex.vim └── test-spaces.vim ├── test-state ├── Makefile ├── included.tex ├── minimal.tex ├── test_builddir.vim ├── test_hidden.vim ├── test_modified-quit.vim ├── test_no-hidden.vim ├── test_parse_documentclass.tex ├── test_parse_documentclass.vim ├── test_parse_documentclass_options.tex ├── test_parse_documentclass_options.vim ├── test_parse_package_options.tex ├── test_parse_package_options.vim ├── test_reload.cls ├── test_reload.vim ├── test_reopen.vim └── test_toggle-main.vim ├── test-subfiles ├── Makefile ├── test_nested.vim └── test_nested │ ├── main.tex │ └── parts │ ├── chapter.tex │ └── sections │ ├── first.tex │ └── second.tex ├── test-syntax ├── Makefile ├── common.vim ├── test-amsmath.tex ├── test-amsmath.vim ├── test-amsthm.tex ├── test-amsthm.vim ├── test-apacite.tex ├── test-apacite.vim ├── test-array.tex ├── test-array.vim ├── test-asymptote.tex ├── test-asymptote.vim ├── test-babel.tex ├── test-babel.vim ├── test-beamer.tex ├── test-beamer.vim ├── test-biblatex-chicago.tex ├── test-biblatex-chicago.vim ├── test-biblatex.tex ├── test-biblatex.vim ├── test-bold-italic.tex ├── test-bold-italic.vim ├── test-booktabs.tex ├── test-booktabs.vim ├── test-breqn.tex ├── test-breqn.vim ├── test-cases.tex ├── test-cases.vim ├── test-chemformula.tex ├── test-chemformula.vim ├── test-circuitikz.tex ├── test-cleveref.tex ├── test-cleveref.vim ├── test-comment.tex ├── test-conceal.tex ├── test-conceal.vim ├── test-core.dtx ├── test-core.sty ├── test-core.tex ├── test-core.vim ├── test-custom-envs.tex ├── test-custom-envs.vim ├── test-custom.tex ├── test-custom.vim ├── test-dockerfile.tex ├── test-dockerfile.vim ├── test-empheq.tex ├── test-empheq.vim ├── test-expl3.tex ├── test-expl3.vim ├── test-fixme.tex ├── test-fixme.vim ├── test-fls-reload.tex ├── test-fls-reload.vim ├── test-fontawesome5.tex ├── test-fontawesome5.vim ├── test-glossaries.tex ├── test-hyperref.tex ├── test-hyperref.vim ├── test-ieeetrantools.tex ├── test-ieeetrantools.vim ├── test-iffalse.tex ├── test-ifnextchar.tex ├── test-ifnextchar.vim ├── test-iftrue.tex ├── test-latex3.tex ├── test-latex3.vim ├── test-listings.tex ├── test-listings.vim ├── test-loading.tex ├── test-loading.vim ├── test-luacas.tex ├── test-luacode.tex ├── test-markdown.tex ├── test-markdown.vim ├── test-math-unicode.tex ├── test-mathtools.tex ├── test-mathtools.vim ├── test-mhequ.tex ├── test-minted.tex ├── test-minted.vim ├── test-mleftright.tex ├── test-mleftright.vim ├── test-natbib.tex ├── test-natbib.vim ├── test-optidef.tex ├── test-optidef.vim ├── test-postinit.vim ├── test-pyluatex.tex ├── test-pyluatex.vim ├── test-pythontex.tex ├── test-pythontex.vim ├── test-quantikz.tex ├── test-quantikz.vim ├── test-robust-externalize.tex ├── test-robust-externalize.vim ├── test-sagetex.tex ├── test-sagetex.vim ├── test-siunitx.tex ├── test-tabularx.tex ├── test-tabularx.vim ├── test-tcolorbox.tex ├── test-tcolorbox.vim ├── test-tikz-python.tex ├── test-tikz.tex ├── test-tikz.vim ├── test-unicode-math.tex ├── test-unicode-math.vim ├── test-various-packages.tex ├── test-various-packages.vim ├── test-wiki.tex ├── test-wiki.vim ├── test-witharrows.tex ├── test-witharrows.vim └── test-zref.tex ├── test-texflavor ├── Makefile ├── test-defined.vim └── test-undefined.vim ├── test-textobj-targets ├── Makefile ├── minimal.tex ├── test.ok ├── test.tex └── test.vim ├── test-textobj ├── Makefile ├── test-delims.vim ├── test-envs.vim ├── test-exclusive.vim ├── test-items.vim ├── test-other.vim └── test-sections.vim ├── test-toc-speed ├── Makefile ├── chapters │ ├── chapter00.tex │ ├── chapter01.tex │ ├── chapter02.tex │ ├── chapter03.tex │ ├── chapter04.tex │ ├── chapter05.tex │ ├── chapter06.tex │ ├── chapter07.tex │ ├── chapter08.tex │ ├── chapter09.tex │ ├── chapter10.tex │ ├── chapter11.tex │ ├── chapter12.tex │ ├── chapter13.tex │ ├── chapter14.tex │ ├── chapter15.tex │ ├── chapter16.tex │ ├── chapter17.tex │ ├── chapter18.tex │ ├── chapter19.tex │ ├── chapter20.tex │ ├── chapter21.tex │ ├── chapter22.tex │ ├── chapter23.tex │ ├── chapter24.tex │ ├── chapter25.tex │ ├── chapter26.tex │ ├── chapter27.tex │ ├── chapter28.tex │ ├── chapter29.tex │ ├── chapter30.tex │ ├── chapter31.tex │ ├── chapter32.tex │ ├── chapter33.tex │ ├── chapter34.tex │ ├── chapter35.tex │ ├── chapter36.tex │ ├── chapter37.tex │ ├── chapter38.tex │ ├── chapter39.tex │ ├── chapter40.tex │ ├── chapter41.tex │ ├── chapter42.tex │ ├── chapter43.tex │ ├── chapter44.tex │ ├── chapter45.tex │ ├── chapter46.tex │ ├── chapter47.tex │ ├── chapter48.tex │ ├── chapter49.tex │ ├── chapter50.tex │ ├── chapter51.tex │ ├── chapter52.tex │ ├── chapter53.tex │ ├── chapter54.tex │ ├── chapter55.tex │ ├── chapter56.tex │ ├── chapter57.tex │ ├── chapter58.tex │ ├── chapter59.tex │ ├── chapter60.tex │ ├── chapter61.tex │ ├── chapter62.tex │ ├── chapter63.tex │ ├── chapter64.tex │ ├── chapter65.tex │ ├── chapter66.tex │ ├── chapter67.tex │ ├── chapter68.tex │ ├── chapter69.tex │ ├── chapter70.tex │ ├── chapter71.tex │ ├── chapter72.tex │ ├── chapter73.tex │ ├── chapter74.tex │ ├── chapter75.tex │ ├── chapter76.tex │ ├── chapter77.tex │ ├── chapter78.tex │ ├── chapter79.tex │ ├── chapter80.tex │ ├── chapter81.tex │ ├── chapter82.tex │ ├── chapter83.tex │ ├── chapter84.tex │ ├── chapter85.tex │ ├── chapter86.tex │ ├── chapter87.tex │ ├── chapter88.tex │ ├── chapter89.tex │ ├── chapter90.tex │ ├── chapter91.tex │ ├── chapter92.tex │ ├── chapter93.tex │ ├── chapter94.tex │ ├── chapter95.tex │ ├── chapter96.tex │ ├── chapter97.tex │ ├── chapter98.tex │ ├── chapter99.tex │ ├── preamble.tex │ └── subfile.tex ├── main.tex └── test.vim ├── test-toc ├── Makefile ├── chapters │ ├── chapter.tex │ ├── equations.tex │ ├── imported.tex │ ├── preamble.tex │ ├── sections │ │ ├── first.tex │ │ └── second.tex │ └── subfile.tex ├── main.aux ├── main.bib ├── main.tex ├── test-beamer.tex ├── test-beamer.vim ├── test-comment.tex ├── test-comment.vim ├── test-disable.vim ├── test-fixme.tex ├── test-fixme.vim ├── test-general.vim ├── test-indent.vim ├── test-keepalt.vim ├── test-keepwidth.vim ├── test-multiline.tex ├── test-multiline.vim ├── test-starred.tex ├── test-starred.vim └── test-texorpdfstring.vim ├── test-utils ├── Makefile ├── test-win-clean-output.vim └── test1.vim ├── test-view ├── Makefile ├── included.tex ├── main.tex └── test_inverse_search.vim └── test-wordcount ├── Makefile ├── minimal.tex └── test.vim /.gitignore: -------------------------------------------------------------------------------- 1 | doc/tags 2 | 3 | test/test-compiler/latexrun 4 | test/test-syntax/syntax/ 5 | test/test-textobj-targets/targets.vim/ 6 | test/issues 7 | test/test-completion-bibtex/test_parser_* 8 | test/test-quickfix-fix-path/test_hbox* 9 | test/example-fzf-lua/fzf-lua 10 | test/example-snacks/snacks 11 | 12 | .claude 13 | CLAUDE.md 14 | 15 | *.log 16 | -------------------------------------------------------------------------------- /.luarc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", 3 | "runtime": { 4 | "version": "LuaJIT" 5 | }, 6 | "workspace": { 7 | "library": [ 8 | "$VIMRUNTIME", 9 | "${3rd}/luv/library", 10 | "$HOME/.local/plugged/snacks.nvim" 11 | ], 12 | "checkThirdParty": false 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.stylua.toml: -------------------------------------------------------------------------------- 1 | column_width = 80 2 | indent_type = "Spaces" 3 | indent_width = 2 4 | quote_style = "AutoPreferDouble" 5 | call_parentheses = "None" 6 | -------------------------------------------------------------------------------- /.vintrc.yaml: -------------------------------------------------------------------------------- 1 | policies: 2 | ProhibitAbbreviationOption: 3 | enabled: false 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/abntcite: -------------------------------------------------------------------------------- 1 | bibtextitlecommand 2 | citeauthor 3 | citeauthoronline 4 | citeonline 5 | citeoptions 6 | citeyear 7 | leftovercite 8 | rightovercite 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/acro: -------------------------------------------------------------------------------- 1 | aca* 2 | acap 3 | acap* 4 | acf* 5 | Acf* 6 | acfirstupper 7 | acflike 8 | acflike* 9 | acfp 10 | Acfp 11 | acfp* 12 | Acfp* 13 | acfplike 14 | acfplike* 15 | acifused 16 | acl* 17 | Acl* 18 | aclp 19 | Aclp 20 | aclp* 21 | Aclp* 22 | acp* 23 | Acp* 24 | acreset 25 | acresetall 26 | acs* 27 | acsetup 28 | acsp 29 | acsp* 30 | acuse 31 | acuseall 32 | DeclareAcronym 33 | printacronyms 34 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/acronym: -------------------------------------------------------------------------------- 1 | acf* 2 | acffont 3 | acfi 4 | acfi* 5 | acfp 6 | acfp* 7 | acfsfont 8 | acl* 9 | aclp 10 | aclp* 11 | aclu 12 | aclu* 13 | acp* 14 | acresetall 15 | acro 16 | acrodef 17 | acrodefplural 18 | acroextra 19 | acroplural 20 | acs* 21 | acsfont 22 | acsp 23 | acsp* 24 | acsu 25 | acsu* 26 | acused 27 | newacro 28 | newacroplural 29 | \begin{acronym} 30 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/afterpage: -------------------------------------------------------------------------------- 1 | afterpage 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/amsbsy: -------------------------------------------------------------------------------- 1 | boldsymbol 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/amsfonts: -------------------------------------------------------------------------------- 1 | dashleftarrow ⇠ 2 | dashrightarrow ⇢ 3 | llcorner └ 4 | lozenge ◊ 5 | lrcorner ┘ 6 | rightsquigarrow ⇝ 7 | sqsubset ⊏ 8 | sqsupset ⊐ 9 | square □ 10 | trianglelefteq ⊴ 11 | trianglerighteq ⊵ 12 | ulcorner ┌ 13 | unlhd ⊴ 14 | unrhd ⊵ 15 | urcorner ┐ 16 | vartriangleleft ⊲ 17 | vartriangleright ⊳ 18 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/amsopn: -------------------------------------------------------------------------------- 1 | injlim 2 | nolimits 3 | operatornamewithlimits 4 | projlim 5 | varinjlim 6 | varliminf 7 | varlimsup 8 | varprojlim 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/amsthm: -------------------------------------------------------------------------------- 1 | newtheoremstyle 2 | qedhere 3 | qedsymbol 4 | swapnumbers 5 | theoremstyle 6 | \begin{proof} 7 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/array: -------------------------------------------------------------------------------- 1 | arraybackslash 2 | extrarowheight 3 | extratabsurround 4 | firsthline 5 | lasthline 6 | newcolumntype 7 | showcols 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/attachfile: -------------------------------------------------------------------------------- 1 | attachfile 2 | attachfilesetup 3 | noattachfile 4 | notextattachfile 5 | textattachfile 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/beamerfoils: -------------------------------------------------------------------------------- 1 | bmstyle 2 | endfoil 3 | foilhead 4 | FoilTeX 5 | LogoOff 6 | LogoOn 7 | MyLogo 8 | rotatefoilhead 9 | \begin{boldequation} 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/beamerseminar: -------------------------------------------------------------------------------- 1 | blue 2 | green 3 | ifarticle 4 | ifportrait 5 | ifslide 6 | ifslidesonly 7 | overlay 8 | \begin{slide} 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/beamertexpower: -------------------------------------------------------------------------------- 1 | boxedsteps 2 | bstep 3 | code 4 | codeswitch 5 | dstep 6 | liststepwise 7 | nonboxedsteps 8 | parstepwise 9 | rebstep 10 | redstep 11 | restep 12 | reswitch 13 | revstep 14 | step 15 | steponce 16 | stepwise 17 | switch 18 | vstep 19 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/bm: -------------------------------------------------------------------------------- 1 | bmdefine 2 | bmmax 3 | boldsymbol 4 | DeclareBoldMathCommand 5 | heavysymbol 6 | hmdefine 7 | hmmax 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/booktabs: -------------------------------------------------------------------------------- 1 | addlinespace 2 | bottomrule 3 | cmidrule 4 | midrule 5 | morecmidrules 6 | specialrule 7 | toprule 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/braket: -------------------------------------------------------------------------------- 1 | braket 2 | Braket 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/calc: -------------------------------------------------------------------------------- 1 | depthof 2 | heightof 3 | maxof 4 | minof 5 | ratio 6 | real 7 | settototalheight 8 | totalheightof 9 | widthof 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/cancel: -------------------------------------------------------------------------------- 1 | bcancel 2 | cancel 3 | CancelColor 4 | cancelto 5 | xcance 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/cases: -------------------------------------------------------------------------------- 1 | \begin{numcases} 2 | \begin{subnumcases} 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/chemstyle: -------------------------------------------------------------------------------- 1 | #include:SIunits 2 | #include:amstext 3 | #include:caption 4 | #include:chemscheme 5 | #include:siunitx 6 | #include:varioref 7 | #include:xspace 8 | cstsetup 9 | cubiccentimeter 10 | etal 11 | expandafter 12 | invacuo 13 | latin 14 | latinemphoff 15 | latinemphon 16 | mmHg 17 | molar 18 | Molar 19 | standardstate 20 | thebibnote 21 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/class-book: -------------------------------------------------------------------------------- 1 | backmatter 2 | frontmatter 3 | mainmatter 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/class-letter: -------------------------------------------------------------------------------- 1 | address 2 | closing 3 | encl 4 | location 5 | name 6 | opening 7 | signature 8 | subject 9 | telephone 10 | \begin{letter} 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/class-scrartcl: -------------------------------------------------------------------------------- 1 | #include:class-scrartcl,scrreprt,scrbook 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/class-scrbook: -------------------------------------------------------------------------------- 1 | #include:class-scrartcl,scrreprt,scrbook 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/class-scrreprt: -------------------------------------------------------------------------------- 1 | #include:class-scrartcl,scrreprt,scrbook 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/color: -------------------------------------------------------------------------------- 1 | color 2 | colorbox 3 | definecolor 4 | fcolorbox 5 | pagecolor 6 | textcolor 7 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/colortbl: -------------------------------------------------------------------------------- 1 | arrayrulecolor 2 | cellcolor 3 | columncolor 4 | doublerulesepcolor 5 | rowcolor 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/commath: -------------------------------------------------------------------------------- 1 | #include:amsmath 2 | #include:ifthen 3 | appref 4 | assref 5 | colref 6 | defnref 7 | envert 8 | enVert 9 | eval 10 | exref 11 | figref 12 | fullfunction 13 | intcc 14 | intco 15 | intoc 16 | intoo 17 | lemref 18 | propref 19 | remref 20 | secref 21 | sVert 22 | thmref 23 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/comment: -------------------------------------------------------------------------------- 1 | comment 2 | endcomment 3 | excludecoment 4 | includecomment 5 | processcomment 6 | specialcomment 7 | \begin{comment} 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/coordsys: -------------------------------------------------------------------------------- 1 | bcoordsys 2 | bcoordsys* 3 | coordgrid 4 | coordgrid* 5 | coordsys 6 | coordsys* 7 | fcoordsys 8 | fcoordsys* 9 | gridstyle 10 | htickratio 11 | numbline 12 | numbline* 13 | rescaleby 14 | sethlabel 15 | setvlabel 16 | ticklength 17 | tickstyle 18 | vnumbline 19 | vnumbline* 20 | vtickratio 21 | window 22 | window* 23 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/currvita: -------------------------------------------------------------------------------- 1 | cvbibname 2 | cvheadingfont 3 | cvlabelfont 4 | cvlabelsep 5 | cvlabelskip 6 | cvlabelwidth 7 | cvlistheadingfont 8 | cvplace 9 | \begin{cv} 10 | \begin{cvlist} 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/doi: -------------------------------------------------------------------------------- 1 | doitext 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/enumerate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/enumerate -------------------------------------------------------------------------------- /autoload/vimtex/complete/epigraph: -------------------------------------------------------------------------------- 1 | afterepigraphskip 2 | beforeepigraphskip 3 | cleartoevenpage 4 | dropchapter 5 | epigraph 6 | epigraphflush 7 | epigraphhead 8 | epigraphrule 9 | epigraphsize 10 | epigraphwidth 11 | qitem 12 | sourceflush 13 | textflush 14 | undodrop 15 | \begin{epigraphs} 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/epstopdf: -------------------------------------------------------------------------------- 1 | AppendGraphicsExtensions 2 | DeclareGraphicsRule 3 | epstopdfcall 4 | epstopdfDeclareGraphicsRule 5 | epstopdfsetup 6 | noexpand 7 | OutputFile 8 | PrependGraphicsExtensions 9 | SourceExt 10 | SourceFile 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/eurosym: -------------------------------------------------------------------------------- 1 | euro € 2 | geneuro 3 | geneuronarrow 4 | geneurowide 5 | officialeuro 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/fancyhdr: -------------------------------------------------------------------------------- 1 | cfoot 2 | chead 3 | fancyfoot 4 | fancyfootoffset 5 | fancyhead 6 | fancyheadoffset 7 | fancyhf 8 | fancyhfoffset 9 | fancypagestyle 10 | footrule 11 | footrulewidth 12 | headrule 13 | headrulewidth 14 | iffloatpage 15 | lfoot 16 | lhead 17 | rfoot 18 | rhead 19 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/fancyvrb: -------------------------------------------------------------------------------- 1 | DefineShortVerb 2 | DefineVerbatimEnvironment 3 | UndefineShortVerb 4 | VerbatimFootnotes 5 | \begin{BVerbatim} 6 | \begin{BVerbatim*} 7 | \begin{Verbatim} 8 | \begin{Verbatim*} 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/fhgtechdoku_additional: -------------------------------------------------------------------------------- 1 | fulltextwidth 2 | setauthor 3 | setinstitute 4 | setpartner 5 | setpartnerlogo 6 | setsubtitle 7 | settitle 8 | \begin{fullwidth} 9 | \begin{innertitlepage} 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/fixme: -------------------------------------------------------------------------------- 1 | #include:ifthen 2 | #include:verbatim 3 | #include:xkeyval 4 | fxerror 5 | fxerror* 6 | fxfatal 7 | fxfatal* 8 | fxnote 9 | fxnote* 10 | fxsetup 11 | fxsetup* 12 | fxwarning 13 | fxwarning* 14 | listoffixmes 15 | \begin{anfxerror} 16 | \begin{anfxerror*} 17 | \begin{anfxfatal} 18 | \begin{anfxfatal*} 19 | \begin{anfxnote} 20 | \begin{anfxnote*} 21 | \begin{anfxwarning} 22 | \begin{anfxwarning*} 23 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/float: -------------------------------------------------------------------------------- 1 | floatname 2 | floatplacement 3 | floatstyle 4 | listof 5 | newfloat 6 | restylefloat 7 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/fontspec: -------------------------------------------------------------------------------- 1 | addfontfeatures 2 | aliasfontfeature 3 | aliasfontfeatureoption 4 | defaultfontfeatures 5 | fontspec 6 | newAATfeature 7 | newfeaturecode 8 | newfontface 9 | newfontfamily 10 | newfontfeature 11 | newfontlanguage 12 | newfontscript 13 | newICUfeature 14 | setboldmathrm 15 | setmainfont 16 | setmathrm 17 | setmathsf 18 | setmathtt 19 | setmonofont 20 | setsansfont 21 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/geometry: -------------------------------------------------------------------------------- 1 | geometry 2 | loadgeometry 3 | newgeometry 4 | restoregeometry 5 | savegeometry 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/german: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/german -------------------------------------------------------------------------------- /autoload/vimtex/complete/glosstex: -------------------------------------------------------------------------------- 1 | acf* 2 | acl* 3 | acronym 4 | acronym* 5 | acs* 6 | glosstex 7 | glosstex* 8 | gls* 9 | glxheading 10 | glxitemorderdefault 11 | glxitemplacementdefault 12 | glxparendefault 13 | glxparenlistdefault 14 | glxref 15 | glxref* 16 | printglosstex 17 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/graphicx: -------------------------------------------------------------------------------- 1 | DeclareGraphicsExtensions 2 | DeclareGraphicsRule 3 | graphicspath 4 | includegraphics 5 | includegraphics* 6 | reflectbox 7 | resizebox 8 | resizebox* 9 | rotatebox 10 | scalebox 11 | setkeys 12 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ifluatex: -------------------------------------------------------------------------------- 1 | else 2 | ifluatex 3 | luatexrevision 4 | luatexversion 5 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ifpdf: -------------------------------------------------------------------------------- 1 | else 2 | ifpdf 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/iftex: -------------------------------------------------------------------------------- 1 | else 2 | ifLuaTeX 3 | ifPDFTeX 4 | ifXeTeX 5 | RequireLuaTeX 6 | RequirePDFTeX 7 | RequireXeTeX 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ifthen: -------------------------------------------------------------------------------- 1 | boolean 2 | equal = 3 | ifthenelse 4 | isodd 5 | isundefined 6 | lengthtest 7 | newboolean 8 | provideboolean 9 | setboolean 10 | whiledo 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ifvtex: -------------------------------------------------------------------------------- 1 | else 2 | ifvtex 3 | ifvtexdvi 4 | ifvtexgex 5 | ifvtexhtml 6 | ifvtexpdf 7 | ifvtexps 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ifxetex: -------------------------------------------------------------------------------- 1 | else 2 | ifxetex 3 | RequireXeTeX 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/import: -------------------------------------------------------------------------------- 1 | import 2 | import* 3 | includefrom 4 | includefrom* 5 | subimport 6 | subimport* 7 | subincludefrom 8 | subincludefrom* 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/jurabib: -------------------------------------------------------------------------------- 1 | cite* 2 | citefield 3 | citenotitlefortype 4 | citeswithoutentry 5 | citetitle 6 | citetitlefortype 7 | footcite 8 | footcite* 9 | footcitetitle 10 | footfullcite 11 | fullcite 12 | nextcitefull 13 | nextcitenotitle 14 | nextcitereset 15 | nextciteshort 16 | nobibliography 17 | noibidem 18 | noidem 19 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/kantlipsum: -------------------------------------------------------------------------------- 1 | #include:expl3 2 | #include:xparse 3 | kantdef 4 | kantlipsum 5 | kantlipsum* 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/latex-209: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/latex-209 -------------------------------------------------------------------------------- /autoload/vimtex/complete/latex-dev: -------------------------------------------------------------------------------- 1 | arrayrulewidth 2 | columnsep 3 | columnwidth 4 | footheight 5 | headheight 6 | headsep 7 | height 8 | itemsep 9 | labelsep 10 | labelwidth 11 | LoadClassWithOptions 12 | marginparsep 13 | marginparwidth 14 | paperheight 15 | paperwidth 16 | parsep 17 | partopsep 18 | RequirePackageWithOptions 19 | textfloatsep 20 | topmargin 21 | topsep 22 | totalheight 23 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/latex-document: -------------------------------------------------------------------------------- 1 | #include:latex-dev 2 | columnwidth 3 | printindex 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/latex-l2tabu: -------------------------------------------------------------------------------- 1 | centerline 2 | fussy 3 | sloppy 4 | \begin{appendix} 5 | \begin{eqnarray*} 6 | \begin{fussypar} 7 | \begin{sloppypar} 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/latex-mathsymbols: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/latex-mathsymbols -------------------------------------------------------------------------------- /autoload/vimtex/complete/layout: -------------------------------------------------------------------------------- 1 | layout 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/letltxmacro: -------------------------------------------------------------------------------- 1 | GlobalLetLtxMacro 2 | LetLtxMacro 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/lipsum: -------------------------------------------------------------------------------- 1 | ChangeLipsumPar 2 | lipsum 3 | lipsum* 4 | setlipsumdefault 5 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/listings: -------------------------------------------------------------------------------- 1 | lstalias 2 | lstdefinelanguage 3 | lstdefinestyle 4 | lstinline 5 | lstinputlisting 6 | lstlistingname 7 | lstlistlistingname 8 | lstlistoflistings 9 | lstname 10 | lstnewenvironment 11 | lstset 12 | thelstlisting 13 | \begin{lstlisting} 14 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/logsys: -------------------------------------------------------------------------------- 1 | interval 2 | intervalthickness 3 | loggrid 4 | loggrid* 5 | logline 6 | logline* 7 | logloggrid 8 | logloggrid* 9 | loglogsys 10 | loglogsys* 11 | logsys 12 | logsys* 13 | semiloggrid 14 | semiloggrid* 15 | semilogsys 16 | semilogsys* 17 | vinterval 18 | vlogline 19 | vlogline* 20 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/longtable: -------------------------------------------------------------------------------- 1 | caption* 2 | endfirstfoot 3 | endfirsthead 4 | endfoot 5 | endhead 6 | endlastfoot 7 | LTcapwidth 8 | LTleft 9 | LTpost 10 | LTpre 11 | LTright 12 | setlongtables 13 | tabularnewline 14 | \begin{longtable} 15 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/lscape: -------------------------------------------------------------------------------- 1 | \begin{landscape} 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ltxtable: -------------------------------------------------------------------------------- 1 | #include:longtable 2 | #include:tabularx 3 | LTXtable 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/luatodonotes: -------------------------------------------------------------------------------- 1 | listoftodos 2 | missingfigure 3 | todo 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/manyfoot: -------------------------------------------------------------------------------- 1 | DeclareNewFootnote 2 | defaultfootnoterule 3 | extrafootnoterule 4 | ExtraParaSkip 5 | Footnote 6 | Footnotemark 7 | footnoterulepriority 8 | Footnotetext 9 | newfootnote 10 | SelectFootnoteRule 11 | SetFootnoteHook 12 | SplitNote 13 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/mdframed: -------------------------------------------------------------------------------- 1 | mdfapptodefinestyle 2 | mdfdefinestyle 3 | mdflength 4 | mdfsetup 5 | newmdenv 6 | surroundwithmdframed 7 | \begin{mdframed} 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/mdwlist: -------------------------------------------------------------------------------- 1 | desclabelstyle 2 | desclabelwidth 3 | multilinelabel 4 | nextlinelabel 5 | pushlabel 6 | resume 7 | suspend 8 | \begin{description*} 9 | \begin{enumerate*} 10 | \begin{itemize*} 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/memhfixc: -------------------------------------------------------------------------------- 1 | bookautorefname 2 | booknumberline 3 | chapternumberline 4 | endsidecaption 5 | endsidecontcaption 6 | endsubappendices 7 | nameref 8 | pagenoteanchor 9 | partnumberline 10 | printpageinnotes 11 | theHchapter 12 | theHmemhycontfloat 13 | theHpagenote 14 | theHsection 15 | thememhycontfloat 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/metrix: -------------------------------------------------------------------------------- 1 | acct 2 | metrics 3 | metricsymbols 4 | metricsymbols* 5 | setmetrixvar 6 | usemetrixvar 7 | verseref 8 | \begin{metricverses} 9 | \begin{symbolline} 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/mhchem: -------------------------------------------------------------------------------- 1 | #include:amsmath 2 | #include:calc 3 | #include:graphics 4 | #include:ifthen 5 | #include:keyval 6 | #include:pgf 7 | #include:tikz 8 | #include:twoopt 9 | bond 10 | cmath 11 | dbond 12 | hyphen 13 | mhchem 14 | mhchemoptions 15 | sbond 16 | tbond 17 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/minted: -------------------------------------------------------------------------------- 1 | #include:calc 2 | #include:fancyvrb 3 | #include:float 4 | #include:ifplatform 5 | #include:ifthen 6 | #include:keyval 7 | #include:xcolor 8 | DeleteFile 9 | inputminted 10 | listingscaption 11 | listoflistings 12 | listoflistingscaption 13 | mint 14 | mintinline 15 | newmint 16 | newminted 17 | newmintedfile 18 | TestAppExists 19 | usemintedstyle 20 | \begin{listing} 21 | \begin{minted} 22 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/multicol: -------------------------------------------------------------------------------- 1 | columnbreak 2 | multicolsep 3 | multicoltolerance 4 | postmulticols 5 | premulticols 6 | \begin{multicols} 7 | \begin{multicols*} 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/multido: -------------------------------------------------------------------------------- 1 | multido 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/multimedia: -------------------------------------------------------------------------------- 1 | hyperlinkmovie 2 | movie 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/multirow: -------------------------------------------------------------------------------- 1 | multirow 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/nameref: -------------------------------------------------------------------------------- 1 | nameref 2 | Nameref 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/natbib: -------------------------------------------------------------------------------- 1 | citealp 2 | Citealp 3 | citealp* 4 | Citealp* 5 | citealt 6 | Citealt 7 | citealt* 8 | Citealt* 9 | citeauthor 10 | Citeauthor 11 | citeauthor* 12 | Citeauthor* 13 | citefullauthor 14 | citenum 15 | citep 16 | Citep 17 | citep* 18 | Citep* 19 | citepalias 20 | citet 21 | Citet 22 | citet* 23 | Citet* 24 | citetalias 25 | citetext 26 | citeyear 27 | citeyearpar 28 | defcitealias 29 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/needspace: -------------------------------------------------------------------------------- 1 | needspace 2 | Needspace 3 | Needspace* 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/newclude: -------------------------------------------------------------------------------- 1 | AtBeginInclude 2 | AtEndInclude 3 | DeclareFormattingPackage 4 | DefaultIncludeSurround 5 | Disable 6 | DisableAll 7 | IfAllowed 8 | ifSkipPreamble 9 | include* 10 | includeall 11 | includedoc 12 | includedoc* 13 | includeenv 14 | includeenv* 15 | IncludeName 16 | IncludeSurround 17 | ParentName 18 | SkipPreamblefalse 19 | SkipPreambletrue 20 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ngerman: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/ngerman -------------------------------------------------------------------------------- /autoload/vimtex/complete/nicefrac: -------------------------------------------------------------------------------- 1 | nicefrac 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/nomencl: -------------------------------------------------------------------------------- 1 | makenomenclature 2 | nomenclature 3 | nomnorefeq 4 | nomnorefeqpage 5 | nomnorefpage 6 | nomrefeq 7 | nomrefeqpage 8 | nomrefpage 9 | printnomenclature 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/paracol: -------------------------------------------------------------------------------- 1 | addcontentsonly 2 | columnratio 3 | definethecounter 4 | flushpage 5 | globalcounter 6 | switchcolumn 7 | syncallcounters 8 | synccounter 9 | \begin{column} 10 | \begin{column*} 11 | \begin{leftcolumn} 12 | \begin{leftcolumn*} 13 | \begin{nthcolumn} 14 | \begin{nthcolumn*} 15 | \begin{paracol} 16 | \begin{rightcolumn} 17 | \begin{rightcolumn*} 18 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/parskip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/autoload/vimtex/complete/parskip -------------------------------------------------------------------------------- /autoload/vimtex/complete/pdfpages: -------------------------------------------------------------------------------- 1 | #include:graphicx 2 | #include:calc 3 | #include:count1to 4 | #include:eso-pic 5 | #include:ifthen 6 | #include:pdflscape 7 | includepdf 8 | includepdfmerge 9 | includepdfset 10 | threadinfodict 11 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pgf: -------------------------------------------------------------------------------- 1 | #include:pgfrcs 2 | #include:pgfcore 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pgfplots: -------------------------------------------------------------------------------- 1 | addplot 2 | legend 3 | pgfplotsset 4 | \begin{axis} 5 | \begin{loglogaxis} 6 | \begin{semilogxaxis} 7 | \begin{semilogyaxis} 8 | \begin{tikzpicture} 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pifont: -------------------------------------------------------------------------------- 1 | ding 2 | dingfill 3 | dingline 4 | Pifill 5 | Pifont 6 | Piline 7 | Pisymbol 8 | \begin{dingautolist} 9 | \begin{dinglist} 10 | \begin{Piautolist} 11 | \begin{Pilist} 12 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/placeins: -------------------------------------------------------------------------------- 1 | FloatBarrier 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/psfrag: -------------------------------------------------------------------------------- 1 | psfrag 2 | psfrag* 3 | psfragscanoff 4 | psfragscanon 5 | \begin{psfrags} 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-3d: -------------------------------------------------------------------------------- 1 | psshadow 2 | psshadow* 3 | pstilt 4 | psTilt 5 | ThreeDput 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-blur: -------------------------------------------------------------------------------- 1 | psblurbox 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-char: -------------------------------------------------------------------------------- 1 | endpscharclip 2 | pscharclip 3 | pscharclip* 4 | pscharpath 5 | pscharpath* 6 | \begin{charclip} 7 | \begin{charclip*} 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-coil: -------------------------------------------------------------------------------- 1 | pscoil 2 | psCoil 3 | pscoil* 4 | psCoil* 5 | pszigzag 6 | pszigzag* 7 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-eps: -------------------------------------------------------------------------------- 1 | endTeXtoEPS 2 | PSTtoEPS 3 | TeXtoEPS 4 | \begin{TeXtoEPS} 5 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-fill: -------------------------------------------------------------------------------- 1 | psboxfill 2 | PstTiling 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-plot: -------------------------------------------------------------------------------- 1 | dataplot 2 | dataplot* 3 | fileplot 4 | fileplot* 5 | listplot 6 | listplot* 7 | parametricplot 8 | parametricplot* 9 | psaxes 10 | psaxes* 11 | pshlabel 12 | psplot 13 | psplot* 14 | psvlabel 15 | psxlabel 16 | psylabel 17 | readdata 18 | savedata 19 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-text: -------------------------------------------------------------------------------- 1 | pstextpath 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/pst-tree: -------------------------------------------------------------------------------- 1 | psedge 2 | pspred 3 | pssucc 4 | pstree 5 | skiplevel 6 | skiplevel* 7 | skiplevels 8 | skiplevels* 9 | Tcircle 10 | TCircle 11 | Tcircle* 12 | TCircle* 13 | Tdia 14 | Tdia* 15 | Tdot 16 | Tdot* 17 | Tfan 18 | Tfan* 19 | Toval 20 | Toval* 21 | tspace 22 | Ttri 23 | Ttri* 24 | \begin{psTree} 25 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/rotating: -------------------------------------------------------------------------------- 1 | \begin{sidewaysfigure} 2 | \begin{sidewaystable} 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/scraddr: -------------------------------------------------------------------------------- 1 | addrentry 2 | Address 3 | adrentry 4 | Comment 5 | FirstName 6 | FreeI 7 | FreeII 8 | FreeIII 9 | FreeIV 10 | InputAddressFile 11 | LastName 12 | Name 13 | Telephone 14 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/scrdate: -------------------------------------------------------------------------------- 1 | nameday 2 | todaysname 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/scrlfile: -------------------------------------------------------------------------------- 1 | AfterClass 2 | AfterClass* 3 | AfterFile 4 | AfterPackage 5 | AfterPackage* 6 | BeforeClass 7 | BeforeFile 8 | BeforePackage 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/scrtime: -------------------------------------------------------------------------------- 1 | settime 2 | thistime 3 | thistime* 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/secsty: -------------------------------------------------------------------------------- 1 | allsectionsfont 2 | chapterfont 3 | chapternumberfont 4 | chaptertitlefont 5 | minisecfont 6 | nohang 7 | paragraphfont 8 | partfont 9 | partnumberfont 10 | parttitlefont 11 | sectionfont 12 | subparagrahfont 13 | subsectionfont 14 | subsubsectionfont 15 | ulemheading 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/setspace: -------------------------------------------------------------------------------- 1 | doublespacing 2 | onehalfspacing 3 | SetSinglespace 4 | setstretch 5 | singlespacing 6 | \begin{doublespace} 7 | \begin{onehalfspace} 8 | \begin{singlespace} 9 | \begin{spacing} 10 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/siunitx-special: -------------------------------------------------------------------------------- 1 | attobarn 2 | byte 3 | clight 4 | dalton 5 | eVperc 6 | femtobarn 7 | gauss 8 | lightyear 9 | micron 10 | mmHg 11 | molar 12 | Molar 13 | mrad 14 | nanobarn 15 | parsec 16 | picobarn 17 | torr 18 | yoctobarn 19 | zeptobarn 20 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/subcaption: -------------------------------------------------------------------------------- 1 | #include:caption 2 | captionsetup 3 | phantomsubcaption 4 | subcaption 5 | subcaption* 6 | subcaptionbox 7 | \begin{subfigure} 8 | \begin{subtable} 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/subfig: -------------------------------------------------------------------------------- 1 | captionsetup 2 | ContinuedFloat 3 | DeclareCaptionListOfFormat 4 | listsubcaptions 5 | newsubfloat 6 | subfloat 7 | subref 8 | subref* 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/subfigure: -------------------------------------------------------------------------------- 1 | listsubcaptions 2 | subcapfont 3 | subcaplabelfont 4 | subcapsize 5 | subfigbottomskip 6 | subfigcapmargin 7 | subfigcapskip 8 | subfigcaptopadj 9 | subfiglabelskip 10 | subfigtopskip 11 | subfigure 12 | subref 13 | Subref 14 | theHsubfigure 15 | theHsubtable 16 | thelofdepth 17 | thelotdepth 18 | thesubfigure 19 | thesubtable 20 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/subfiles: -------------------------------------------------------------------------------- 1 | #include:verbatim 2 | subfile 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/supertabular: -------------------------------------------------------------------------------- 1 | bottomcaption 2 | setSTheight 3 | shrinkheight 4 | tablecaption 5 | tablefirsthead 6 | tablehead 7 | tablelasttail 8 | tabletail 9 | topcaption 10 | \begin{mpsupertabular} 11 | \begin{mpsupertabular*} 12 | \begin{supertabular} 13 | \begin{supertabular*} 14 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/svninfo: -------------------------------------------------------------------------------- 1 | svnId 2 | svnInfo 3 | svnInfoDate 4 | svnInfoDay 5 | svnInfoFile 6 | svnInfoLongDate 7 | svnInfoMaxRevision 8 | svnInfoMaxToday 9 | svnInfoMinRevision 10 | svnInfoMonth 11 | svnInfoOwner 12 | svnInfoRevision 13 | svnInfoTime 14 | svnInfoYear 15 | svnToday 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tabu: -------------------------------------------------------------------------------- 1 | abovetabulinesep 2 | belowtabulinesep 3 | everyrow 4 | extrarowsep 5 | newtabulinestyle 6 | preamble 7 | rowfont 8 | savetabu 9 | tabucline 10 | tabudecimal 11 | tabulinesep 12 | tabulinestyle 13 | tabuphantomline 14 | tabureset 15 | taburowcolors 16 | taburulecolor 17 | usetabu 18 | \begin{longtabu} 19 | \begin{tabu} 20 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tabularx: -------------------------------------------------------------------------------- 1 | arraybackslash 2 | tabularxcolumn 3 | tracingtabularx 4 | \begin{tabularx} 5 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tabulary: -------------------------------------------------------------------------------- 1 | \begin{tabulary} 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/theorem: -------------------------------------------------------------------------------- 1 | theorembodyfont 2 | theoremheaderfont 3 | theorempostskipamount 4 | theorempreskipamount 5 | theoremstyle 6 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tikz-cd: -------------------------------------------------------------------------------- 1 | #include: tikz 2 | arrow 3 | \begin{tikzcd} 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tocbibind: -------------------------------------------------------------------------------- 1 | restorechapter 2 | setindexname 3 | setlofname 4 | setlotname 5 | settocbibname 6 | settocname 7 | simplechapter 8 | simplechapterdelim 9 | tocbibname 10 | tocchapter 11 | tocfile 12 | tocotherhead 13 | tocsection 14 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/todonotes: -------------------------------------------------------------------------------- 1 | listoftodos 2 | missingfigure 3 | todo 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/tools/unicode-math/README: -------------------------------------------------------------------------------- 1 | 1. Compile file 2 | 2. Use `pdftotext -layout file.tex` 3 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/ulem: -------------------------------------------------------------------------------- 1 | dashuline 2 | dotuline 3 | sout 4 | uline 5 | uuline 6 | uwave 7 | xout 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/units: -------------------------------------------------------------------------------- 1 | nicefrac 2 | unit 3 | unitfrac 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/url: -------------------------------------------------------------------------------- 1 | DeclareUrlCommand 2 | path 3 | UrlBigBreaks 4 | UrlBreaks 5 | urldef 6 | UrlFont 7 | UrlLeft 8 | UrlNoBreaks 9 | UrlOrds 10 | UrlRight 11 | UrlSpecials 12 | urlstyle 13 | UrlTildeSpecial 14 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/varioref: -------------------------------------------------------------------------------- 1 | fullref 2 | labelformat 3 | reftextafter 4 | reftextbefore 5 | reftextcurrent 6 | reftextfaceafter 7 | reftextfacebefore 8 | reftextfaraway 9 | reftextlabelrange 10 | reftextpagerange 11 | vpageref 12 | vpageref* 13 | vpagerefrange 14 | vpagerefrange* 15 | vref 16 | Vref 17 | vref* 18 | Vref* 19 | vrefpagenum 20 | vrefrange 21 | vreftextvario 22 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xcolor: -------------------------------------------------------------------------------- 1 | #include:color 2 | #include:colortbl 3 | #include:pdfcolmk 4 | blendcolors 5 | colorlet 6 | definecolors 7 | definecolorseries 8 | definecolorset 9 | DefineNamedColor 10 | GetGinDriver 11 | preparecolor 12 | preparecolorset 13 | providecolor 14 | providecolors 15 | providecolorset 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xifthen: -------------------------------------------------------------------------------- 1 | boolean 2 | cnttest 3 | dimtest 4 | endswith 5 | equal = 6 | ifthenelse 7 | isempty 8 | isequivalentto 9 | isin 10 | isnamedefined 11 | isodd 12 | isundefined 13 | lengthtest 14 | newboolean 15 | newtest 16 | setboolean 17 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xkeyval: -------------------------------------------------------------------------------- 1 | presetkeys 2 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xltxtra: -------------------------------------------------------------------------------- 1 | fakesubscript 2 | fakesuperscript 3 | namedglyph 4 | realsubscript 5 | realsuperscript 6 | showhyphens 7 | textsubscript* 8 | textsuperscript* 9 | vfrac 10 | XeLaTeX 11 | XeTeX 12 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xparse: -------------------------------------------------------------------------------- 1 | #include:expl3 2 | DeclareDocumentCommand 3 | IfBooleanTF 4 | IfNoValueTF 5 | NewDocumentCommand 6 | ProvideDocumentCommand 7 | RenewDocumentCommand 8 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xspace: -------------------------------------------------------------------------------- 1 | xspace 2 | xspaceaddexceptions 3 | xspaceremoveexception 4 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xtab: -------------------------------------------------------------------------------- 1 | bottomcaption 2 | notablelasthead 3 | shrinkheight 4 | tablecaption 5 | tablefirsthead 6 | tablehead 7 | tablelasthead 8 | tablelasttail 9 | tabletail 10 | topcaption 11 | xentryfraction 12 | \begin{mpxtabular} 13 | \begin{mpxtabular*} 14 | \begin{xtabular} 15 | \begin{xtabular*} 16 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/xy: -------------------------------------------------------------------------------- 1 | composite 2 | labelstyle 3 | newdir 4 | objectstyle 5 | restore 6 | save 7 | SelectTips 8 | xymatrix 9 | -------------------------------------------------------------------------------- /autoload/vimtex/complete/yfonts: -------------------------------------------------------------------------------- 1 | frakdefault 2 | frakfamily 3 | fraklines 4 | gothdefault 5 | gothfamily 6 | initdefault 7 | initfamily 8 | swabdefault 9 | swabfamily 10 | textfrak 11 | textgoth 12 | textinit 13 | textswab 14 | yinipar 15 | yinitpar 16 | -------------------------------------------------------------------------------- /autoload/vimtex/parser/fls.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#parser#fls#parse(file) abort " {{{1 8 | if !filereadable(a:file) 9 | return [] 10 | endif 11 | 12 | return readfile(a:file) 13 | endfunction 14 | 15 | " }}}1 16 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/booktabs.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#booktabs#load(cfg) abort " {{{1 8 | syntax match texCmdBooktabs "\\\%(top\|mid\|bottom\)rule\>" 9 | 10 | highlight def link texCmdBooktabs texMathDelim 11 | endfunction 12 | 13 | " }}}1 14 | 15 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/cases.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#cases#load(cfg) abort " {{{1 8 | call vimtex#syntax#core#new_env({ 9 | \ 'name': '\(sub\)\?numcases', 10 | \ 'math': v:true, 11 | \}) 12 | endfunction 13 | 14 | " }}}1 15 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/dot2texi.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#dot2texi#load(cfg) abort " {{{1 8 | call vimtex#syntax#core#new_env({ 9 | \ 'name': 'dot2tex', 10 | \ 'region': 'texDotZone', 11 | \ 'nested': 'dot' 12 | \}) 13 | endfunction 14 | 15 | " }}}1 16 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/glossaries_extra.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#glossaries_extra#load(cfg) abort " {{{1 8 | call vimtex#syntax#packages#load('glossaries') 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/ieeecolor.vim: -------------------------------------------------------------------------------- 1 | " vimtex - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#ieeecolor#load(cfg) abort " {{{1 8 | call vimtex#syntax#packages#load('ieeetrantools') 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/ieeeconf.vim: -------------------------------------------------------------------------------- 1 | " vimtex - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#ieeeconf#load(cfg) abort " {{{1 8 | call vimtex#syntax#packages#load('ieeetrantools') 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/ieeetran.vim: -------------------------------------------------------------------------------- 1 | " vimtex - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#ieeetran#load(cfg) abort " {{{1 8 | call vimtex#syntax#packages#load('ieeetrantools') 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/mhequ.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#mhequ#load(cfg) abort " {{{1 8 | call vimtex#syntax#core#new_env({ 9 | \ 'name': 'equs\?', 10 | \ 'starred': v:true, 11 | \ 'math': v:true 12 | \}) 13 | endfunction 14 | 15 | " }}}1 16 | 17 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/nameref.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#nameref#load(cfg) abort " {{{1 8 | syntax match texCmdNameref '\\nameref\>' nextgroup=texRefOpt,texRefArg 9 | 10 | highlight def link texCmdNameref texCmdRef 11 | endfunction 12 | 13 | " }}}1 14 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/pdfpages.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#pdfpages#load(cfg) abort " {{{1 8 | syntax match texCmdInput "\\includepdf\>" nextgroup=texFileOpt,texFileArg skipwhite skipnl 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/quantikz.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#quantikz#load(cfg) abort " {{{1 8 | call vimtex#syntax#core#new_env({ 9 | \ 'name': 'quantikz', 10 | \ 'starred': v:false, 11 | \ 'math': v:true 12 | \}) 13 | endfunction 14 | 15 | " }}}1 16 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/subfile.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#subfile#load(cfg) abort " {{{1 8 | syntax match texCmdInput nextgroup=texFileArg skipwhite skipnl "\\subfile\>" 9 | syntax match texCmdInput nextgroup=texFileArg skipwhite skipnl "\\subfileinclude\>" 10 | endfunction 11 | 12 | " }}}1 13 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/url.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#url#load(cfg) abort " {{{1 8 | call vimtex#syntax#packages#load('hyperref') 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /autoload/vimtex/syntax/p/varioref.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | function! vimtex#syntax#p#varioref#load(cfg) abort " {{{1 8 | syntax match texCmdRef '\\Vref\>' nextgroup=texRefArg skipwhite skipnl 9 | endfunction 10 | 11 | " }}}1 12 | -------------------------------------------------------------------------------- /compiler/lacheck.vim: -------------------------------------------------------------------------------- 1 | if exists('current_compiler') | finish | endif 2 | let current_compiler = 'lacheck' 3 | 4 | let s:cpo_save = &cpo 5 | set cpo&vim 6 | 7 | CompilerSet makeprg=lacheck\ %:S 8 | CompilerSet errorformat="%f",\ line\ %l:\ %m 9 | 10 | let &cpo = s:cpo_save 11 | unlet s:cpo_save 12 | -------------------------------------------------------------------------------- /compiler/style-check.vim: -------------------------------------------------------------------------------- 1 | if exists('current_compiler') | finish | endif 2 | let current_compiler = 'style-check' 3 | 4 | let s:cpo_save = &cpo 5 | set cpo&vim 6 | 7 | CompilerSet makeprg=style-check.rb\ %:S 8 | 9 | setlocal errorformat= 10 | setlocal errorformat+=%f:%l:%c:\ %m 11 | setlocal errorformat+=%-G%.%# 12 | silent CompilerSet errorformat 13 | 14 | let &cpo = s:cpo_save 15 | unlet s:cpo_save 16 | -------------------------------------------------------------------------------- /ftdetect/cls.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | if !get(g:, 'vimtex_enabled', 1) | finish | endif 8 | 9 | autocmd BufRead,BufNewFile *.cls set filetype=tex 10 | -------------------------------------------------------------------------------- /ftdetect/tikz.vim: -------------------------------------------------------------------------------- 1 | " VimTeX - LaTeX plugin for Vim 2 | " 3 | " Maintainer: Karl Yngve Lervåg 4 | " Email: karl.yngve@gmail.com 5 | " 6 | 7 | if !get(g:, 'vimtex_enabled', 1) | finish | endif 8 | 9 | autocmd BufRead,BufNewFile *.tikz set filetype=tex 10 | -------------------------------------------------------------------------------- /test/common/local1.bib: -------------------------------------------------------------------------------- 1 | @article{local1, 2 | author = {Local-1}, 3 | title = {Local file example one}, 4 | } 5 | -------------------------------------------------------------------------------- /test/common/local2.bib: -------------------------------------------------------------------------------- 1 | @article{local2, 2 | author = {Local-2}, 3 | title = {Local file example one}, 4 | } 5 | -------------------------------------------------------------------------------- /test/example-book-multifile/book.bib: -------------------------------------------------------------------------------- 1 | @Test{ 2 | test = {test}, 3 | } 4 | -------------------------------------------------------------------------------- /test/example-book-multifile/content/sections.tex: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /test/example-book-multifile/frontmatter.tex: -------------------------------------------------------------------------------- 1 | \chapter{Preface} 2 | Preface. 3 | 4 | \section{Acknowledgements} 5 | 6 | \chapter[Other]{Other frontmatter chapter} 7 | \label{chap:test} 8 | 9 | \tableofcontents 10 | -------------------------------------------------------------------------------- /test/example-book-multifile/preamble.tex: -------------------------------------------------------------------------------- 1 | % Commands 2 | \usepackage{color} 3 | \usepackage{hyperref} 4 | 5 | % FIXME Add more packages and commands 6 | -------------------------------------------------------------------------------- /test/example-book-multifile/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/example-book-multifile/test.jpg -------------------------------------------------------------------------------- /test/example-book-multifile/test.tikz: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | blahr 3 | \end{tikzpicture} 4 | -------------------------------------------------------------------------------- /test/example-fzf-lua/mise.toml: -------------------------------------------------------------------------------- 1 | [tools] 2 | fzf = "latest" 3 | -------------------------------------------------------------------------------- /test/example-markdown/test.md: -------------------------------------------------------------------------------- 1 | # Title 2 | 3 | math here $f(x) = 1$ 4 | 5 | math here \(f(x) = 1\) 6 | 7 | **bold text** _italic text_ 8 | -------------------------------------------------------------------------------- /test/example-minimal/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello world! 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/example-quickfix/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Hello World! 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/example-startup-timing/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean 2 | 3 | .PHONY: default basic 4 | 5 | default: 6 | hyperfine --min-runs 5 '$(MYVIM) -u minivimrc' 7 | 8 | basic: 9 | time $(MYVIM) -u minivimrc 10 | -------------------------------------------------------------------------------- /test/example-startup-timing/minivimrc: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | set runtimepath+=../../after 4 | filetype plugin indent on 5 | syntax enable 6 | 7 | nnoremap q :qall! 8 | 9 | silent edit thesis.tex 10 | " call vimtex#profile#file('thesis.tex') 11 | 12 | quitall 13 | -------------------------------------------------------------------------------- /test/perf-syntax/.gitignore: -------------------------------------------------------------------------------- 1 | doc1.tex 2 | doc2.tex 3 | -------------------------------------------------------------------------------- /test/test-bibfiles/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-bibfiles/test_revtex.tex: -------------------------------------------------------------------------------- 1 | \documentclass{revtex4-1} 2 | 3 | \begin{document} 4 | 5 | \bibliography{../common/huge} 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-cache/test-basic.json: -------------------------------------------------------------------------------- 1 | {"a": 1, "b": 2, "c": 3, "d": 4, "__validate": "cache_v2"} 2 | -------------------------------------------------------------------------------- /test/test-cache/test-kpsewhich-local-a/local.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-cache/test-kpsewhich-local-a/local.bib -------------------------------------------------------------------------------- /test/test-cache/test-kpsewhich-local-b/local.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-cache/test-kpsewhich-local-b/local.bib -------------------------------------------------------------------------------- /test/test-cache/test-write-error.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-cache/test-write-error.vim -------------------------------------------------------------------------------- /test/test-cite/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-commands/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @chronic $(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-commands/test-change-cmd.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | filetype plugin on 4 | 5 | 6 | " csc / Change surrounding command 7 | call vimtex#test#keys("csctest\", '\cmd{foo}', '\test{foo}') 8 | 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-commands/test-delete-cmd.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | filetype plugin on 4 | 5 | 6 | " dsc / Delete surrounding command 7 | call vimtex#test#keys('dsc', '\cmd{foo}', 'foo') 8 | call vimtex#test#keys("f{ldsc", '$ \ce{a > b} $', '$ a > b $') 9 | call vimtex#test#keys("f}hdsc", '$ \ce{a > b} $', '$ a > b $') 10 | 11 | 12 | call vimtex#test#finished() 13 | -------------------------------------------------------------------------------- /test/test-commands/test-delete-env.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | filetype plugin on 4 | 5 | 6 | " dse / Delete surrounding environment 7 | call vimtex#test#keys('dsedse', 8 | \[ 9 | \ '\begin{test}', 10 | \ ' \begin{center} a \end{center}', 11 | \ '\end{test}', 12 | \], ' a ') 13 | 14 | 15 | call vimtex#test#finished() 16 | -------------------------------------------------------------------------------- /test/test-compiler-generic/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | 8 | .PHONY: dummy test $(TESTS) 9 | 10 | test: $(TESTS) 11 | 12 | $(TESTS): 13 | @$(MYVIM) -u $@ 14 | 15 | 16 | dummy: 17 | @echo Compiling... 18 | @echo SillyWalks 19 | @echo Compiling...Done! 20 | -------------------------------------------------------------------------------- /test/test-compiler-generic/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello world! 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-compiler-method-dynamic/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | 8 | .PHONY: test $(TESTS) 9 | 10 | test: $(TESTS) 11 | 12 | $(TESTS): 13 | @$(MYVIM) -u $@ 14 | -------------------------------------------------------------------------------- /test/test-compiler-method-dynamic/test-arara.tex: -------------------------------------------------------------------------------- 1 | % arara: pdflatex 2 | \documentclass{minimal} 3 | \begin{document} 4 | Hello world! 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/test-compiler-method-dynamic/test-fallback.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello world! 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | MAKEFLAGS+=--no-print-directory 3 | 4 | TESTS := $(wildcard test-*) 5 | 6 | .PHONY: test $(TESTS) 7 | 8 | test: $(TESTS) 9 | 10 | $(TESTS): 11 | $(MAKE) -C $@ 12 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-conflict-warning/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-conflict-warning/latexmkrc: -------------------------------------------------------------------------------- 1 | $pdf_mode = 4; # compile with lualatex 2 | 3 | # vim: ft=perl 4 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-conflict-warning/main.tex: -------------------------------------------------------------------------------- 1 | % The following TeX program directive is not consistent with the value of 2 | % $pdf_mode in latexmkrc, therefore a warning message is expected. 3 | 4 | %! TEX program = xelatex 5 | 6 | \documentclass{minimal} 7 | \begin{document} 8 | Hello world! 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-pdfps/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-pdfps/latexmkrc: -------------------------------------------------------------------------------- 1 | $pdf_mode = 2; 2 | -------------------------------------------------------------------------------- /test/test-compiler-pdfmode/test-pdfps/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{pst-node} 3 | \begin{document} 4 | 5 | Hello World! 6 | 7 | \begin{pspicture}(4,4)\psgrid 8 | \pscircle(2,2){2} 9 | \end{pspicture} 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-compiler-selected/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: output1 output2 output3 9 | @diff output1.tex reference1.tex 10 | @diff output2.tex reference2.tex 11 | @diff output3.tex reference3.tex 12 | @rm -f output*.tex 13 | 14 | output%: 15 | @$(MYVIM) -u test.vim 16 | -------------------------------------------------------------------------------- /test/test-compiler-selected/inputfile.tex: -------------------------------------------------------------------------------- 1 | \newenvironment{LRmath}{ 2 | \def\E{} 3 | \renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]} 4 | \def\PP{\ensuremath\mathrm{P}} 5 | }{} 6 | -------------------------------------------------------------------------------- /test/test-compiler-selected/reference1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[14pt]{article} 2 | 3 | \def\E{} 4 | \renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]} 5 | \def\PP{\ensuremath\mathrm{P}} 6 | 7 | \begin{document} 8 | 9 | \begin{equation} 10 | \PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)} 11 | \end{equation} 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-compiler-selected/reference2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | 3 | \newenvironment{LRmath}{ 4 | \def\E{} 5 | \renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]} 6 | \def\PP{\ensuremath\mathrm{P}} 7 | }{} 8 | 9 | \begin{document} 10 | \begin{equation} 11 | \PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)} 12 | \end{equation} 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-compiler-selected/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | 3 | \input{inputfile} 4 | 5 | \begin{document} 6 | \begin{LRmath} 7 | 8 | Text, Text, Text 9 | 10 | \begin{equation} 11 | \PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)} 12 | \end{equation} 13 | 14 | Text, Text, Text 15 | 16 | \end{LRmath} 17 | \end{document} 18 | -------------------------------------------------------------------------------- /test/test-compiler-selected/vimtex-template.tex: -------------------------------------------------------------------------------- 1 | \documentclass[14pt]{article} 2 | 3 | \def\E{} 4 | \renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]} 5 | \def\PP{\ensuremath\mathrm{P}} 6 | 7 | \begin{document} 8 | 9 | %%% VIMTEX PLACEHOLDER 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-compiler/test-builddir.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello World! \failed 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-compiler/test-clean.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-compiler/test-clean.tex -------------------------------------------------------------------------------- /test/test-completion-bibstyle/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-completion-bibstyle/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{natbib} 3 | 4 | \begin{document} 5 | 6 | % Test completion of bibliographystyles 7 | \bibliographystyle{} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_apacite.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber,style=authoryear]{biblatex} 3 | \addbibresource{biblatex-examples.bib} 4 | 5 | \begin{document} 6 | Test 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_cache.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber]{biblatex} 3 | \addbibresource{test_cache.bib} 4 | 5 | \begin{document} 6 | Test 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_custom_bibs.bib: -------------------------------------------------------------------------------- 1 | @article{test, 2 | author = {AUTHOR}, 3 | title = {TITLE}, 4 | journal = {JOURNAL}, 5 | } 6 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_custom_bibs.tex: -------------------------------------------------------------------------------- 1 | \documentclass{amsart} 2 | \newcommand{mybibliography}[1]{ 3 | \phantomsection\addcontentsline{toc}{subsubsection}{Reference} 4 | \bibliography{#1} 5 | } 6 | 7 | \mybibliography{test_custom_bibs} 8 | 9 | \begin{document} 10 | Test 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_globbed_braces.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | \addbibresource{test_globbed_{1,2}.bib} 4 | \begin{document} 5 | Test 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_globbed_bracket.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | \addbibresource{test_globbed_[12].bib} 4 | \begin{document} 5 | Test 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_globbed_star.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | \addbibresource{test_gl*.bib} 4 | \begin{document} 5 | Test 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_globbed_wildcard.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | \addbibresource{test_gl?bbed.bib} 4 | \begin{document} 5 | Test 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_jobname.bib: -------------------------------------------------------------------------------- 1 | @book{Saussure1995, 2 | Author = {Ferdinand de Saussure}, 3 | Origyear = {1916}, 4 | Publisher = {Payot}, 5 | Title = {Cours de Linguistique G{\'e}n{\'e}rale}, 6 | Year = {1995} 7 | } 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_matchstr.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber]{biblatex} 3 | \addbibresource{test_matchstr.bib} 4 | \addbibresource{biblatex-examples.bib} 5 | 6 | \begin{document} 7 | Test \cite{gaonkar} 8 | 9 | \cite{Gimp 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_multicite.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber,style=authoryear]{biblatex} 3 | \addbibresource{biblatex-examples.bib} 4 | 5 | \begin{document} 6 | Test 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_parser_bcf.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber]{biblatex} 3 | \addbibresource{biblatex-examples.bib} 4 | 5 | \begin{document} 6 | Test \cite{gaonkar} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_parser_blg.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=bibtex]{biblatex} 3 | \addbibresource{biblatex-examples.bib} 4 | 5 | \begin{document} 6 | Test 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-bibtex/test_starred.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[backend=biber,style=authoryear]{biblatex} 3 | \addbibresource{biblatex-examples.bib} 4 | 5 | \begin{document} 6 | Test 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-completion-commands/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) test-cleanup 10 | 11 | test: $(TESTS) test-cleanup 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | 16 | test-cleanup: $(TESTS) 17 | @rm -f nvim_servernames.log 18 | -------------------------------------------------------------------------------- /test/test-completion-commands/test-custom-cls-speed.tex: -------------------------------------------------------------------------------- 1 | %! TeX program = lualatex 2 | \documentclass{test-custom-cls-speed} 3 | 4 | \begin{document} 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-commands/test-custom-cls.cls: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e} 2 | \ProvidesClass{test-custom-cls}[2020/01/01 v1.0 Custom class] 3 | \RequirePackage{amssymb, amsmath, amsthm} 4 | \LoadClass[a4paper,11pt]{article} 5 | 6 | \newcommand{\customtest}{Hello moon} 7 | -------------------------------------------------------------------------------- /test/test-completion-commands/test-custom-cls.tex: -------------------------------------------------------------------------------- 1 | \documentclass{test-custom-cls} 2 | \begin{document} 3 | 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-completion-documentclass/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-completion-documentclass/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-completion-documentclass/test.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | silent edit main.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | let s:candidates = vimtex#test#completion('\documentclass{', 'mini') 12 | call assert_equal(s:candidates[0].word, 'minimal') 13 | 14 | call vimtex#test#finished() 15 | -------------------------------------------------------------------------------- /test/test-completion-environments/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) test-cleanup 10 | 11 | test: $(TESTS) test-cleanup 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | 16 | test-cleanup: $(TESTS) 17 | @rm -f nvim_servernames.log 18 | -------------------------------------------------------------------------------- /test/test-completion-environments/test1.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{amsmath} 3 | 4 | \newenvironment{testnewenvironment}{start}{end} 5 | 6 | \begin{document} 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-completion-environments/test2.tex: -------------------------------------------------------------------------------- 1 | %! TeX program = lualatex 2 | \documentclass{test2} 3 | 4 | \begin{document} 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-environments/test3.sty: -------------------------------------------------------------------------------- 1 | \newenvironment{test3Simple}{a}{b} 2 | 3 | \newenvironment{test3Boxed} 4 | {\begin{center} 5 | \begin{tabular}{|p{0.9\textwidth}|} 6 | \hline\\ 7 | } 8 | { 9 | \\\\\hline 10 | \end{tabular} 11 | \end{center} 12 | } 13 | -------------------------------------------------------------------------------- /test/test-completion-environments/test3.tex: -------------------------------------------------------------------------------- 1 | \documentclass{test3} 2 | \usepackage{test3} 3 | 4 | \begin{document} 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-completion-filenames/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-completion-filenames/fig1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/fig1.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/example.tikzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/example.tikzz -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/example1.tikz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/example1.tikz -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/example2.TikZ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/example2.TikZ -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/example3.TIKZ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/example3.TIKZ -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig10.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig11.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig11.eps -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig12.pdf -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig13.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig2.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig3.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig4.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig5.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig6.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig7.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig8.png -------------------------------------------------------------------------------- /test/test-completion-filenames/figures/fig9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/figures/fig9.png -------------------------------------------------------------------------------- /test/test-completion-filenames/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | \usepackage{tikz} 4 | \usepackage{pdfpages} 5 | \usepackage{standalone} 6 | 7 | \graphicspath{{./my figures/}} 8 | 9 | \begin{document} 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig1.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig2.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig3.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig4.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig5.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig6.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig7.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig8.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/my figures/new_fig9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/my figures/new_fig9.jpg -------------------------------------------------------------------------------- /test/test-completion-filenames/tikz_pic.tex: -------------------------------------------------------------------------------- 1 | \documentclass{standalone} 2 | \usepackage{standalone} 3 | \usepackage{tikz} 4 | \begin{document} 5 | \begin{tikzpicture} 6 | \draw ((0, 0) node[below left]{\large Reliability} -- 7 | (0: 4) node[below right]{\large Acquisition costs} -- 8 | (60: 4) node[above]{\large Energy consumption} -- cycle; 9 | \end{tikzpicture} 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-completion-filenames/tikzpics/figure.tikz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-completion-filenames/tikzpics/figure.tikz -------------------------------------------------------------------------------- /test/test-completion-glossary-texinputs/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | .PHONY: test 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-completion-glossary-texinputs/texinclude/inp.tex: -------------------------------------------------------------------------------- 1 | \section{bar}\label{sec:bar} 2 | 3 | \newglossaryentry{g:foo}{% 4 | name={foo}, 5 | plural={foos}, 6 | description={% 7 | very fooish 8 | }% 9 | } 10 | -------------------------------------------------------------------------------- /test/test-completion-glossary/glossaries-extra-2.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{csquotes} 3 | \usepackage[record,style=long]{glossaries-extra} 4 | 5 | \GlsXtrLoadResources[selection={all}, src={glossaries-extra.bib}] 6 | \GlsXtrLoadResources[src={glossary}] 7 | 8 | \begin{document} 9 | 10 | Hello World! 11 | 12 | \gls{isbn} 13 | 14 | \gls{API} 15 | 16 | \printunsrtglossaries 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /test/test-completion-glossary/glossaries-extra.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | set nomore 6 | 7 | nnoremap q :qall! 8 | 9 | silent edit $TEXFILE 10 | 11 | let s:candidates = vimtex#test#completion('\gls{', '') 12 | call assert_equal(10, len(s:candidates)) 13 | 14 | call vimtex#test#finished() 15 | -------------------------------------------------------------------------------- /test/test-completion-glossary/glossary.bib: -------------------------------------------------------------------------------- 1 | @abbreviation{API, 2 | title = {Application {{Programming Interface}}}, 3 | long = {Application Programming Interface}, 4 | prefix = {an\space}, 5 | prefixfirst = {an\space}, 6 | short = {API}, 7 | } 8 | -------------------------------------------------------------------------------- /test/test-completion-labels/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) test-cleanup 10 | 11 | test: $(TESTS) test-cleanup 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | 16 | test-cleanup: $(TESTS) 17 | @rm -f nvim_servernames.log 18 | -------------------------------------------------------------------------------- /test/test-completion-labels/test1/sub2 with spaces.tex: -------------------------------------------------------------------------------- 1 | \section{sub2 with spaces} 2 | \label{sec:sub2 with spaces} 3 | 4 | \begin{equation} 5 | f(x) = 42 6 | \label{eq:included sub with spaces is working} 7 | \end{equation} 8 | -------------------------------------------------------------------------------- /test/test-completion-labels/test1/sub3 with spaces.tex: -------------------------------------------------------------------------------- 1 | \section{sub3 with spaces}\label{sec:sub3 with spaces} 2 | 3 | \begin{equation} 4 | f(x) = 42 5 | \label{eq:sub3 with spaces} 6 | \end{equation} 7 | -------------------------------------------------------------------------------- /test/test-completion-labels/test1/sub4.tex: -------------------------------------------------------------------------------- 1 | \section{sub4} 2 | \label{sec:sub4 not included} 3 | 4 | This should not be included! 5 | -------------------------------------------------------------------------------- /test/test-completion-labels/test2.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{xr} 3 | \externaldocument{test2/input1} 4 | \externaldocument[1-]{test2/input2} 5 | \begin{document} 6 | 7 | It would be great to be able to use omnicomplete in this file in order to 8 | reference equations, e.g.~\ref{eq_1} and \ref{1-eq_2}. 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-completion-labels/test2/input1.aux: -------------------------------------------------------------------------------- 1 | \relax 2 | \newlabel{eq_1}{{1}{1}{}} 3 | -------------------------------------------------------------------------------- /test/test-completion-labels/test2/input2.aux: -------------------------------------------------------------------------------- 1 | \relax 2 | \newlabel{eq_2}{{2}{1}{}} 3 | -------------------------------------------------------------------------------- /test/test-completion-packages/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-completion-packages/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-context-cite/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-context-glossaries/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-delim/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-delim/test.tex: -------------------------------------------------------------------------------- 1 | \[ 2 | \begin{gathered} 3 | First equation \\ 4 | Second equation \\[1ex] 5 | Third and last equation 6 | \end{gathered} 7 | \] 8 | 9 | \begin{a} 10 | \begin{b} 11 | \end{c} 12 | \end{d} 13 | -------------------------------------------------------------------------------- /test/test-doc/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-doc/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{tikz} 3 | \usepackage{amsmath,mathtools} 4 | 5 | \usetikzlibrary{hobby,calc} 6 | 7 | \begin{document} 8 | 9 | Hello World! 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-env/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @chronic $(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-env/test-getters.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Hello World! 5 | 6 | \begin{x} 7 | \begin{y} 8 | Hello world. 9 | \end{y} 10 | \end{x} 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/test-env/test-surround.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Hello World! 5 | 6 | Hello Moon! 7 | 8 | \begin{quote} 9 | This is wrongly indented. 10 | Two lines. 11 | \end{quote} 12 | 13 | one 14 | two 15 | three 16 | four 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /test/test-env/test-toggle-lists.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \begin{itemize} 5 | \item Foo 6 | \item Bar 7 | \end{itemize} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-env/test-toggle-lists.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | filetype plugin on 4 | syntax on 5 | 6 | nnoremap q :qall! 7 | 8 | silent edit test-toggle-lists.tex 9 | 10 | normal! 5G 11 | call vimtex#env#toggle() 12 | call assert_equal('\begin{enumerate}', getline(4)) 13 | call assert_equal('\end{enumerate}', getline(7)) 14 | 15 | call vimtex#test#finished() 16 | -------------------------------------------------------------------------------- /test/test-env/test-toggle-star.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Hello World! 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-env/test-toggle-star.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | set runtimepath^=../.. 3 | filetype plugin on 4 | syntax on 5 | 6 | nnoremap q :qall! 7 | 8 | silent edit test-toggle-star.tex 9 | 10 | normal! 4G 11 | call vimtex#env#toggle_star() 12 | call assert_equal('\end{document}', getline('$')) 13 | 14 | call vimtex#test#finished() 15 | -------------------------------------------------------------------------------- /test/test-folding-bib/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-folding/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-folding/test-markers.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | 4 | Hello World 5 | 6 | % {{{ Testing markers 7 | Folded stuff 8 | 9 | % }}} 10 | 11 | Testing markers %<<: 12 | this fold was NOT recognized by VimTeX before issue #1515 13 | 14 | %:>> 15 | 16 | %<<: 17 | this fold worked before issue #1515 18 | 19 | %:>> 20 | 21 | \end{document} 22 | -------------------------------------------------------------------------------- /test/test-folding/test-sections.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | 4 | Hello World 5 | 6 | % Fakesection test 7 | Folded stuff 8 | 9 | % Fakesubsection testing 10 | More folds 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/test-formatting/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.ref) 7 | TESTS := $(TESTS:.ref=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | @rm -f test-*.out 13 | 14 | $(TESTS): 15 | @FILE=$@ $(MYVIM) -u test.vim 16 | @diff $@.out $@.ref 17 | -------------------------------------------------------------------------------- /test/test-formatting/test-01.ref: -------------------------------------------------------------------------------- 1 | Lorem ipsum dolor sit amet, consetetur sadipscing % a comment 2 | elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna 3 | aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores 4 | et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum 5 | dolor sit amet. 6 | -------------------------------------------------------------------------------- /test/test-formatting/test-01.tex: -------------------------------------------------------------------------------- 1 | Lorem ipsum dolor sit amet, consetetur sadipscing % a comment 2 | elitr, sed diam 3 | nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, 4 | sed diam voluptua. At vero eos et accusam et justo duo dolores et ea 5 | rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem 6 | ipsum dolor sit amet. 7 | -------------------------------------------------------------------------------- /test/test-formatting/test-02.ref: -------------------------------------------------------------------------------- 1 | start a new paragraph \\ 2 | start a new line but not a new paragraph \\* 3 | flush all, start a new (odd numbered) page \cleardoublepage 4 | flush all, start a new page \clearpage 5 | allow to break the line here \linebreak 6 | request a new line \newline 7 | request a new page \newpage 8 | encourage page break \pagebreak 9 | -------------------------------------------------------------------------------- /test/test-formatting/test-02.tex: -------------------------------------------------------------------------------- 1 | start a new paragraph \\ 2 | start a new line but not a new paragraph \\* 3 | flush all, start a new (odd numbered) page \cleardoublepage 4 | flush all, start a new page \clearpage 5 | allow to break the line here \linebreak 6 | request a new line \newline 7 | request a new page \newpage 8 | encourage page break \pagebreak 9 | -------------------------------------------------------------------------------- /test/test-get-main/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-get-main/simple.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello World! 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-get-main/test-bib-alternate/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | 4 | \begin{document} 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-get-main/test-bib-alternate/references.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-bib-alternate/references.bib -------------------------------------------------------------------------------- /test/test-get-main/test-bib-notfound/references.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-bib-notfound/references.bib -------------------------------------------------------------------------------- /test/test-get-main/test-bib-simple/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{biblatex} 3 | \addbibresource{references.bib} 4 | 5 | \begin{document} 6 | 7 | \printbibliography 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-get-main/test-bib-simple/references.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-bib-simple/references.bib -------------------------------------------------------------------------------- /test/test-get-main/test-included-preamble/main.tex: -------------------------------------------------------------------------------- 1 | \input{preamble} 2 | \begin{document} 3 | \end{document} 4 | -------------------------------------------------------------------------------- /test/test-get-main/test-included-preamble/preamble.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-includes/include3.tex: -------------------------------------------------------------------------------- 1 | Hello world from include3. 2 | 3 | Note: This file tests that we also search from the main root. 4 | -------------------------------------------------------------------------------- /test/test-get-main/test-includes/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{import} 3 | \usepackage{subfiles} 4 | \begin{document} 5 | \import{test/}{include1} 6 | \inputfrom{test/}{include3} 7 | \subfile{test.tex} 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-get-main/test-includes/subfile.tex: -------------------------------------------------------------------------------- 1 | \documentclass[main.tex]{subfiles} 2 | \begin{document} 3 | \end{document} 4 | -------------------------------------------------------------------------------- /test/test-get-main/test-includes/test/include1.tex: -------------------------------------------------------------------------------- 1 | Hello world from include1. 2 | 3 | \subimport*{sub/}{include2} 4 | -------------------------------------------------------------------------------- /test/test-get-main/test-includes/test/sub/include2.tex: -------------------------------------------------------------------------------- 1 | Hello world from include2. 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-latexmain/included.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-latexmain/included.tex -------------------------------------------------------------------------------- /test/test-get-main/test-latexmain/main.tex: -------------------------------------------------------------------------------- 1 | \include{included.tex} 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-latexmain/main.tex.latexmain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-latexmain/main.tex.latexmain -------------------------------------------------------------------------------- /test/test-get-main/test-latexmain/section1/main.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-latexmain/section1/main.tex -------------------------------------------------------------------------------- /test/test-get-main/test-latexmk/latexmkrc: -------------------------------------------------------------------------------- 1 | @default_files = ('main.tex'); 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-latexmk/main.tex: -------------------------------------------------------------------------------- 1 | \input{preamble.tex} 2 | \author{lervag} 3 | \title{VimTeX} 4 | \begin{document} 5 | \maketitle 6 | \lipsum[1-1] 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-get-main/test-latexmk/preamble.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{lipsum} 3 | -------------------------------------------------------------------------------- /test/test-get-main/test-standalone/a/a.tex: -------------------------------------------------------------------------------- 1 | \documentclass{standalone} 2 | \usepackage{standalone} 3 | \begin{document} 4 | A 5 | \input{a/b/b} 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-get-main/test-standalone/a/b/b.tex: -------------------------------------------------------------------------------- 1 | \documentclass{standalone} 2 | \begin{document} 3 | B 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-get-main/test-standalone/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[utf8]{inputenc} 3 | \usepackage{standalone} 4 | 5 | \begin{document} 6 | 7 | \input{a/a} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/main.tex: -------------------------------------------------------------------------------- 1 | \input{preamble} 2 | \usepackage{subfiles} 3 | \begin{document} 4 | \subfile{sub/sub1.tex} 5 | \subfile{sub/sub3.tex} 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/not-main.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-subfiles/not-main.tex -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/preamble.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/sub/sub1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[main.tex]{subfiles} 2 | \begin{document} 3 | \chapter{sub1: Hello World} 4 | Message from sub1.tex. 5 | 6 | \end{document} 7 | 8 | -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/sub/sub2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[not-main.tex]{subfiles} 2 | \begin{document} 3 | \chapter{Hello World} 4 | Some text here... 5 | \end{document} 6 | 7 | -------------------------------------------------------------------------------- /test/test-get-main/test-subfiles/sub/sub3.tex: -------------------------------------------------------------------------------- 1 | \documentclass[main]{subfiles} 2 | \begin{document} 3 | \chapter{sub3: Hello World} 4 | Message from sub3.tex. 5 | 6 | \end{document} 7 | 8 | -------------------------------------------------------------------------------- /test/test-get-main/test-texroot/included.tex: -------------------------------------------------------------------------------- 1 | %! TeX Root = main.tex 2 | -------------------------------------------------------------------------------- /test/test-get-main/test-texroot/main.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-get-main/test-texroot/main.tex -------------------------------------------------------------------------------- /test/test-get-main/test-ugly-paths/[code college-1] title/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | Hello world! 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/test-getfile/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/auxfiles/test.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/auxfiles/test.aux -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/auxfiles/test.blg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/auxfiles/test.blg -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/auxfiles/test.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/auxfiles/test.log -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.aux -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.blg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.blg -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.fls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.fls -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.log -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.pdf -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/out/test.synctex.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/out/test.synctex.gz -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/test.fls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/test.fls -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-getfile/test_auxdir/test.pdf -------------------------------------------------------------------------------- /test/test-getfile/test_auxdir/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Dummy file 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-imaps/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | .PHONY: test 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-include/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-include/references.bib: -------------------------------------------------------------------------------- 1 | @article{test, 2 | author = {John Johnsen}, 3 | title = {Best paper in the World}, 4 | year = 2029, 5 | journal = {Mediocre Journal of Silly Stuff}, 6 | } 7 | -------------------------------------------------------------------------------- /test/test-include/sub/file1.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-include/sub/file1.tex -------------------------------------------------------------------------------- /test/test-include/sub/file2.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-include/sub/file2.tex -------------------------------------------------------------------------------- /test/test-include/sub/file3.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-include/sub/file3.tex -------------------------------------------------------------------------------- /test/test-include/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[utf8]{inputenc} 3 | \usepackage{graphicx} 4 | \usepackage{natbib} 5 | 6 | \begin{document} 7 | 8 | Some silly simple file~\cite{test}. 9 | 10 | \include{sub/file1.tex} 11 | \input{sub/file2.tex} 12 | \input{sub/file3.tex}\par 13 | 14 | \bibliographystyle{plainnat} 15 | \bibliography{references} 16 | 17 | \end{document} 18 | -------------------------------------------------------------------------------- /test/test-indentation-timing/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | ifeq (, $(shell which hyperfine)) 7 | .DEFAULT_GOAL := time 8 | endif 9 | 10 | .PHONY: hyperfine time 11 | 12 | hyperfine: 13 | @hyperfine --min-runs 3 '$(MYVIM) -u test.vim' 14 | 15 | time: 16 | @bash -c 'time $(MYVIM) -u test.vim' 17 | -------------------------------------------------------------------------------- /test/test-indentation/test_ampersands-off_input.tex: -------------------------------------------------------------------------------- 1 | \begin{equation} 2 | \begin{aligned} 3 | 1 & 4 | & 2 \\ 5 | 3 & 6 | & 4 \\ 7 | \end{aligned} 8 | \end{equation} 9 | 10 | \begin{align} 11 | &x( 12 | y) 13 | \end{align} 14 | -------------------------------------------------------------------------------- /test/test-indentation/test_ampersands-off_reference.tex: -------------------------------------------------------------------------------- 1 | \begin{equation} 2 | \begin{aligned} 3 | 1 & 4 | & 2 \\ 5 | 3 & 6 | & 4 \\ 7 | \end{aligned} 8 | \end{equation} 9 | 10 | \begin{align} 11 | &x( 12 | y) 13 | \end{align} 14 | -------------------------------------------------------------------------------- /test/test-indentation/test_close-indented_input.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | 5 | \[ 6 | f(x) = 1 7 | \] 8 | 9 | {Stuff here 10 | asdasd} 11 | 12 | \begin{equation} 13 | \left( 14 | f(x) = 3 15 | \right) 16 | \left. 17 | f(x) = 3 18 | \right. 19 | \end{equation} 20 | \end{document} 21 | -------------------------------------------------------------------------------- /test/test-indentation/test_close-indented_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | 5 | \[ 6 | f(x) = 1 7 | \] 8 | 9 | {Stuff here 10 | asdasd} 11 | 12 | \begin{equation} 13 | \left( 14 | f(x) = 3 15 | \right) 16 | \left. 17 | f(x) = 3 18 | \right. 19 | \end{equation} 20 | \end{document} 21 | -------------------------------------------------------------------------------- /test/test-indentation/test_close_open_same_line_input.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \command{ 5 | a 6 | }{ 7 | b 8 | } 9 | 10 | \begin{equation} 11 | \left( 12 | f(x) = 3 13 | \right) 14 | \left. 15 | f(x) = 3 16 | \right. 17 | \end{equation} 18 | 19 | { 20 | \graph[nodes={draw} 21 | test 22 | ] 23 | } 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /test/test-indentation/test_close_open_same_line_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \command{ 5 | a 6 | }{ 7 | b 8 | } 9 | 10 | \begin{equation} 11 | \left( 12 | f(x) = 3 13 | \right) 14 | \left. 15 | f(x) = 3 16 | \right. 17 | \end{equation} 18 | 19 | { 20 | \graph[nodes={draw} 21 | test 22 | ] 23 | } 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /test/test-indentation/test_comments_in_environments_input.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \begin{flushleft} 5 | % this comment IS indented like line below 6 | Hello world! 7 | \end{flushleft} 8 | 9 | \begin{equation} 10 | a = b \\ 11 | % comment 12 | c = d 13 | \end{equation} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /test/test-indentation/test_comments_in_environments_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | \begin{flushleft} 5 | % this comment IS indented like line below 6 | Hello world! 7 | \end{flushleft} 8 | 9 | \begin{equation} 10 | a = b \\ 11 | % comment 12 | c = d 13 | \end{equation} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /test/test-indentation/test_conditionals_input.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | 3 | \newif\ifmytest 4 | 5 | \begin{document} 6 | 7 | \ifmytest 8 | True 9 | \else 10 | False 11 | \fi 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-indentation/test_conditionals_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | 3 | \newif\ifmytest 4 | 5 | \begin{document} 6 | 7 | \ifmytest 8 | True 9 | \else 10 | False 11 | \fi 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-indentation/test_environments-ignored_input.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | 5 | \begin{proof} 6 | This statement is false. 7 | \end{proof} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-indentation/test_environments-ignored_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | 5 | \begin{proof} 6 | This statement is false. 7 | \end{proof} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-jobs/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test-*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-jobs/test-start.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | if vimtex#util#is_win() | quitall | endif 8 | 9 | 10 | let s:job = vimtex#jobs#start('sleep 100') 11 | call assert_true(s:job.is_running()) 12 | call s:job.stop() 13 | call assert_false(s:job.is_running()) 14 | call s:job.stop() 15 | 16 | 17 | call vimtex#test#finished() 18 | -------------------------------------------------------------------------------- /test/test-matchparen-speed/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @echo -n $(MYVIM) -u test.vim " timed to ... " 10 | @bash -c 'time -p $(MYVIM) -u test.vim &>/dev/null' 2>&1 | grep real 11 | -------------------------------------------------------------------------------- /test/test-metadata/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | silent edit test-sources/main.tex 6 | 7 | call assert_equal([ 8 | \ 'main.tex', 9 | \ 'include1.tex', 10 | \ 'sub1/include2.tex', 11 | \ 'sub2/include3.tex', 12 | \ 'subfile.tex', 13 | \], b:vimtex.get_sources()) 14 | 15 | call vimtex#test#finished() 16 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources/include1.tex: -------------------------------------------------------------------------------- 1 | Hello world from include1. 2 | 3 | \subimport*{sub1/}{include2} 4 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{import} 3 | \usepackage{subfiles} 4 | 5 | \begin{document} 6 | 7 | \import{./}{include1} 8 | \inputfrom{sub2/}{include3} 9 | \subfile{subfile.tex} 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources/sub1/include2.tex: -------------------------------------------------------------------------------- 1 | Hello world from include2. 2 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources/sub2/include3.tex: -------------------------------------------------------------------------------- 1 | Hello world from include3. 2 | 3 | Note: This file tests that we also search from the main root. 4 | -------------------------------------------------------------------------------- /test/test-metadata/test-sources/subfile.tex: -------------------------------------------------------------------------------- 1 | \documentclass[main.tex]{subfiles} 2 | \begin{document} 3 | \end{document} 4 | -------------------------------------------------------------------------------- /test/test-motions-virtual/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | .PHONY: test 7 | 8 | test: 9 | @chronic $(MYVIM) -u test.vim 10 | @diff test.out test.ref; rm test.out 11 | -------------------------------------------------------------------------------- /test/test-motions-virtual/test.ref: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/test-motions-virtual/test.tex: -------------------------------------------------------------------------------- 1 | foobar 2 | foo 3 | -------------------------------------------------------------------------------- /test/test-motions/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-motions/test-comment.tex: -------------------------------------------------------------------------------- 1 | \documentclass[]{article} 2 | 3 | % Comment sec 1 4 | % 5 | % 6 | % 7 | 8 | \begin{document} 9 | 10 | % Comment sec 2 11 | % 12 | % 13 | 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/test-motions/test-fakesection.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | silent edit test-fakesection.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | " vint: -ProhibitCommandRelyOnUser 12 | 13 | normal 2][ 14 | call assert_equal(10, line('.')) 15 | normal gg3]] 16 | call assert_equal(11, line('.')) 17 | 18 | call vimtex#test#finished() 19 | -------------------------------------------------------------------------------- /test/test-parser-bib/Makefile: -------------------------------------------------------------------------------- 1 | INMAKE := 1 2 | export INMAKE 3 | 4 | TESTS_LUA := $(wildcard test*.lua) 5 | TESTS_VIM := $(wildcard test*.vim) 6 | 7 | .PHONY: test $(TESTS_LUA) $(TESTS_VIM) 8 | 9 | default: $(TESTS_LUA) $(TESTS_VIM) 10 | 11 | MYVIM ?= nvim --clean --headless 12 | 13 | $(TESTS_VIM): 14 | @$(MYVIM) -u $@ 15 | 16 | $(TESTS_LUA): 17 | @nvim --clean --headless -u $@ 18 | -------------------------------------------------------------------------------- /test/test-parser-cmds/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-parser-cmds/test-next.tex: -------------------------------------------------------------------------------- 1 | % crash if there is \begin in comment 2 | -------------------------------------------------------------------------------- /test/test-parser-combinator/Makefile: -------------------------------------------------------------------------------- 1 | INMAKE := 1 2 | export INMAKE 3 | 4 | TESTS := $(wildcard test*.lua) 5 | 6 | .PHONY: default $(TESTS) 7 | 8 | default: $(TESTS) 9 | 10 | $(TESTS): 11 | @nvim --clean --headless -u $@ 12 | -------------------------------------------------------------------------------- /test/test-parser-tex/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_nested_include.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{import} 3 | 4 | \begin{document} 5 | 6 | \part{My content} 7 | \import{test_nested_include/}{imported} 8 | 9 | \part{Next part} 10 | More content here 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_nested_include/imported.tex: -------------------------------------------------------------------------------- 1 | \section{Imported section} 2 | 3 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod 4 | tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At 5 | vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd 6 | gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 7 | 8 | \input{more} 9 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_nested_include/more.tex: -------------------------------------------------------------------------------- 1 | \section{Traditional section} 2 | 3 | And some associated content 4 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_preamble_include.ref: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \newcommand{\test}{...} 3 | 4 | \begin{document} 5 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_preamble_include.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \input{test_preamble_included.tex} 3 | 4 | \begin{document} 5 | 6 | Hello world. 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_preamble_include.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | 4 | nnoremap q :qall! 5 | 6 | let s:lines = vimtex#parser#preamble('test_preamble_include.tex') 7 | 8 | call assert_equal( 9 | \ readfile('test_preamble_include.ref'), 10 | \ s:lines) 11 | 12 | call vimtex#test#finished() 13 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_preamble_included.tex: -------------------------------------------------------------------------------- 1 | \newcommand{\test}{...} 2 | -------------------------------------------------------------------------------- /test/test-parser-tex/test_recursive.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \input{included} 3 | \begin{document} 4 | 5 | Hello World! 6 | 7 | \include{test_recursive} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-parser-toc/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-parser-toc/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{todonotes} 3 | 4 | \begin{document} 5 | 6 | Hello World 7 | 8 | \section{First Section} 9 | 10 | \subsection{test 1.1} 11 | 12 | \todo[inline]{This is a TODO. 13 | } 14 | 15 | \subsection{test 1.2} 16 | 17 | \section{Second Section} 18 | 19 | \input{sub.tex} 20 | 21 | \subsection{test 2.2} 22 | 23 | \subsection{test 2.3} 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /test/test-parser-toc/sub.tex: -------------------------------------------------------------------------------- 1 | \subsection{test 2.1} 2 | 3 | Some included text here. 4 | 5 | -------------------------------------------------------------------------------- /test/test-paths/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-paths/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Hello World! 5 | 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/test-quickfix-fix-path/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-quickfix-fix-path/test-hbox-1.tex: -------------------------------------------------------------------------------- 1 | \anothererrorcommand{blah} 2 | 3 | \begin{equation} 4 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 5 | \end{equation} 6 | 7 | -------------------------------------------------------------------------------- /test/test-quickfix-fix-path/test-hbox-2.tex: -------------------------------------------------------------------------------- 1 | More sample text 2 | 3 | \hspace{1000pt} 4 | -------------------------------------------------------------------------------- /test/test-quickfix-fix-path/test-hbox-3.tex: -------------------------------------------------------------------------------- 1 | \clearpage 2 | \rule{2\textwidth}{1pt}\par 3 | -------------------------------------------------------------------------------- /test/test-quickfix-fix-path/test-hbox.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | \errorcommand{blah} 4 | \input{test-hbox-1} 5 | \include{test-hbox-2} 6 | ~ 7 | \input{test-hbox-3} 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-quickfix/input with spaces.tex: -------------------------------------------------------------------------------- 1 | \section{$\alpha$} 2 | 3 | \section{Extra section with $\epsilon$ warnings} 4 | 5 | -------------------------------------------------------------------------------- /test/test-state/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-state/included.tex: -------------------------------------------------------------------------------- 1 | % do nothing 2 | -------------------------------------------------------------------------------- /test/test-state/minimal.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \input{included} 3 | \begin{document} 4 | 5 | Hello World! 6 | 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-state/test_parse_documentclass.tex: -------------------------------------------------------------------------------- 1 | % Leading comments here 2 | % Leading comments here 3 | 4 | \documentclass[ 5 | 12pt, % 12 pt font 6 | a4paper, % A4 paper 7 | twoside, % two-side layout 8 | ]{article} 9 | 10 | \begin{document} 11 | 12 | Hello, world! 13 | 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/test-state/test_parse_documentclass.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | call vimtex#log#set_silent() 8 | 9 | silent edit test_parse_documentclass.tex 10 | 11 | if empty($INMAKE) | finish | endif 12 | 13 | call assert_equal('article', b:vimtex.documentclass) 14 | 15 | call vimtex#test#finished() 16 | -------------------------------------------------------------------------------- /test/test-state/test_reload.cls: -------------------------------------------------------------------------------- 1 | %% Minimal LaTeX Class 2 | 3 | \NeedsTeXFormat{LaTeX2e} 4 | \ProvidesClass{simplec}[2019/02/13 v3.14159 simple] 5 | 6 | \LoadClass[a4paper]{article} 7 | 8 | \RequirePackage{simplep} 9 | -------------------------------------------------------------------------------- /test/test-subfiles/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-subfiles/test_nested/main.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper]{report} 2 | \usepackage{subfiles} 3 | 4 | \begin{document} 5 | \tableofcontents 6 | 7 | \subfile{parts/chapter.tex} 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-subfiles/test_nested/parts/chapter.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../main.tex]{subfiles} 2 | \begin{document} 3 | \chapter{Chapter with subsections} 4 | Here we introduce the bug as it currently is experienced by a user. 5 | \subfile{sections/first.tex} 6 | \subfile{sections/second.tex} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-subfiles/test_nested/parts/sections/first.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../../main.tex]{subfiles} 2 | \begin{document} 3 | 4 | \section{The first section} 5 | Titling notwithstanding, could this issue be a case of PEBCAC? 6 | 7 | \subsection{A subsection} 8 | Hello world. 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-subfiles/test_nested/parts/sections/second.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../../main.tex]{subfiles} 2 | \begin{document} 3 | \section{The second section} 4 | You don't always think it be like this, but it do. 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/test-syntax/test-apacite.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | Edit test-apacite.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-asymptote.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | set runtimepath^=. 4 | 5 | EditConcealed test-asymptote.tex 6 | 7 | if empty($INMAKE) | finish | endif 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-babel.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{babel} 3 | 4 | \begin{document} 5 | 6 | \glq \grq \glqq \grqq \hyp 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-syntax/test-babel.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-babel.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-beamer.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | \begin{document} 3 | 4 | \begin{frame}[fragile] 5 | \begin{semiverbatim} 6 | int main() \{ 7 | \uncover<2->{return 0;} 8 | \} 9 | \end{semiverbatim} 10 | \end{frame} 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/test-syntax/test-beamer.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | Edit test-beamer.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texVerbZone', 6, 1)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-biblatex-chicago.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt,article,draft]{memoir} 2 | 3 | \usepackage[notes, useibid]{biblatex-chicago} 4 | \addbibresource{biblatex-examples.bib} 5 | 6 | \begin{document} 7 | 8 | \mancite 9 | Just the title: 10 | \headlesscite[23]{worman}. 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/test-syntax/test-biblatex-chicago.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | " let g:vimtex_syntax_conceal_cites = { 4 | " \ 'type': 'icon', 5 | " \} 6 | 7 | EditConcealed! test-biblatex-chicago.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-biblatex.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | " let g:vimtex_syntax_conceal_cites = { 4 | " \ 'type': 'icon', 5 | " \} 6 | 7 | EditConcealed! test-biblatex.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-booktabs.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{booktabs} 3 | 4 | \begin{document} 5 | 6 | \begin{table} 7 | \centering 8 | \begin{tabular}{cr} 9 | \toprule 10 | 1234 \\ 11 | \midrule 12 | 2345 \\ 13 | \bottomrule 14 | \end{tabular} 15 | \end{table} 16 | 17 | \end{document} 18 | -------------------------------------------------------------------------------- /test/test-syntax/test-booktabs.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-booktabs.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-breqn.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-breqn.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texMathZoneEnv', 9, 1)) 8 | 9 | call vimtex#test#finished() 10 | 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-cases.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{cases} 3 | 4 | \begin{document} 5 | 6 | \begin{numcases}{y_1 = } 7 | f_1(x) & $x > 0$\\ 8 | f_2(x) & $x \leqslant 0$ 9 | \end{numcases} 10 | 11 | \begin{subnumcases}{y_1 = } 12 | f_1(x) & $x > 0$\\ 13 | f_2(x) & $x \leqslant 0$ 14 | \end{subnumcases} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /test/test-syntax/test-cases.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-cases.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-chemformula.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-chemformula.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texFootnoteArg', 25, 48)) 8 | call assert_true(!vimtex#syntax#in('texCHText', 25, 48)) 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-cleveref.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-cleveref.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_equal(3, len(filter(b:vimtex_syntax, 'v:val.__loaded'))) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-core.dtx: -------------------------------------------------------------------------------- 1 | 2 | ^^A asdasd 3 | 4 | -------------------------------------------------------------------------------- /test/test-syntax/test-core.sty: -------------------------------------------------------------------------------- 1 | %% VimTeX: simple test for syntax 2 | 3 | \ProvidesPackage{none} 4 | 5 | \def\MyCommand#1{#1} 6 | \def\@asd{asd} 7 | 8 | \v! 9 | \v@ 10 | 11 | \endinput 12 | 13 | %% End of file 14 | -------------------------------------------------------------------------------- /test/test-syntax/test-dockerfile.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \usepackage{minted} 3 | 4 | \begin{document} 5 | 6 | \begin{minted}{dockerfile} 7 | FROM java:8 8 | \end{minted} 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-dockerfile.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-dockerfile.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_notequal('# %s', &commentstring) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-empheq.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{empheq} 3 | 4 | \begin{document} 5 | 6 | \begin{empheq}{align*} 7 | a&=b \tag{*}\\ 8 | E&=mc^2 + \int_a^a x\, dx 9 | \end{empheq} 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-empheq.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-empheq.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texMathZoneEnv', 7, 1)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-expl3.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-expl3.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(!vimtex#syntax#in('texGroupError', 29, 1)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-fixme.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-fixme.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | " call assert_true(vimtex#syntax#in('texTikzSemicolon', 66, 61)) 8 | " call assert_true(vimtex#syntax#in('texTikzZone', 66, 61)) 9 | " call assert_true(vimtex#syntax#in('texCmdAxis', 71, 9)) 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-fls-reload.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | 3 | \begin{document} 4 | 5 | Hello world. 6 | 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-fontawesome5.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-fontawesome5.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-hyperref.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | let g:vimtex_syntax_conceal = { 4 | \ 'sections' : 1, 5 | \} 6 | 7 | EditConcealed! test-hyperref.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | call assert_true(vimtex#syntax#in('texUrlArg', 6, 25)) 12 | call assert_true(vimtex#syntax#in('texRefArg', 17, 35)) 13 | 14 | call vimtex#test#finished() 15 | -------------------------------------------------------------------------------- /test/test-syntax/test-ifnextchar.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \makeatletter 3 | \def\something{\@ifnextchar[{\addtunablearrow@full}{\addtunablearrow@simple}}% 4 | \makeatother 5 | 6 | \begin{document} 7 | 8 | Normal text here 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-ifnextchar.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-ifnextchar.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texConditionalINCChar', 3, 28)) 8 | call assert_equal([], vimtex#syntax#stack(8, 1)) 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-latex3.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-latex3.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texE3Zone', 7, 2)) 8 | call assert_true(vimtex#syntax#in('texE3Func', 7, 2)) 9 | call assert_true(vimtex#syntax#in('texE3Var', 7, 15)) 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-loading.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | \usepackage{glossaries-extra} 3 | \usepackage{mathtools} 4 | 5 | \begin{document} 6 | 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-loading.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-loading.tex 4 | 5 | call assert_true(index(keys(b:vimtex_syntax), 'glossaries') >= 0) 6 | call assert_true(index(keys(b:vimtex_syntax), 'amsmath') >= 0) 7 | 8 | call vimtex#test#finished() 9 | -------------------------------------------------------------------------------- /test/test-syntax/test-luacas.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{luacas} 3 | 4 | \begin{document} 5 | 6 | \begin{CAS} 7 | vars('x','h') 8 | f = x^2 9 | subs = {[x]=x+h} 10 | q = (substitute(subs,f) - f)/h 11 | \end{CAS} 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-syntax/test-math-unicode.tex: -------------------------------------------------------------------------------- 1 | %! TeX program = lualatex 2 | \documentclass{article} 3 | 4 | \begin{document} 5 | 6 | \begin{equation} 7 | αβγδϵεζηθϑικλμνξπϖρϱσςτυϕφχψωΓΔΘΛΞΠΣΥΦΧΨΩ 8 | \end{equation} 9 | 10 | $\int x \delta x$ 11 | 12 | $∬ x ∀ y$ 13 | 14 | $C(x)$ 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /test/test-syntax/test-mathtools.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-mathtools.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texMathZoneEnv', 7, 1)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-mleftright.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{mleftright} 3 | 4 | \begin{document} 5 | 6 | \begin{equation} 7 | \mleft\lvert x \mright\rvert 8 | \mleft( x \mright) 9 | \end{equation} 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-mleftright.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-mleftright.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texMathDelim', 7, 19)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-natbib.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | " let g:vimtex_syntax_conceal_cites = { 4 | " \ 'type': 'icon', 5 | " \} 6 | 7 | EditConcealed! test-natbib.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-postinit.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | try 4 | runtime syntax/tex.vim 5 | catch 6 | call assert_true(0, 'Bare include of VimTeX syntax should work!') 7 | endtry 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-pyluatex.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-pyluatex.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('pythonString', 7, 13)) 8 | call assert_true(vimtex#syntax#in('pythonString', 11, 13)) 9 | call assert_true(vimtex#syntax#in('pythonString', 15, 13)) 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-pythontex.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-pythontex.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('pythonString', 11, 13)) 8 | call assert_true(vimtex#syntax#in('pythonRawString', 16, 13)) 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-quantikz.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{quantikz} 3 | 4 | \begin{document} 5 | 6 | \usepackage{quantikz} 7 | 8 | \begin{quantikz} 9 | q_{1} & \gate[4]{e^{i t H_C}} & \\ 10 | q_{2} & & \\ 11 | q_{3} & & \\ 12 | q_{4} & & \\ 13 | \end{quantikz} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /test/test-syntax/test-quantikz.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-quantikz.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-robust-externalize.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | Edit test-robust-externalize.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-sagetex.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-sagetex.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-siunitx.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{siunitx} 3 | 4 | \begin{document} 5 | 6 | $c = \SI{299792458}{m.s^{-1} asd}$ 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/test-syntax/test-tabularx.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{tabularx} 4 | 5 | \begin{document} 6 | \begin{tabularx}{6cm}{llXX} 7 | 1 & 2 & 3 & 4 \\ 8 | \end{tabularx} 9 | 10 | \begin{tabularx}{\linewidth}[pos]{llXX} 11 | 1 & 2 & 3 & 4 \\ 12 | \end{tabularx} 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/test-syntax/test-tcolorbox.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-tcolorbox.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texTCBZone', 49, 1)) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-tikz-python.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{pythontex} 4 | \usepackage{tikz} 5 | 6 | \begin{document} 7 | 8 | \begin{pycode} 9 | print(r'This is python.') 10 | \end{pycode} 11 | 12 | \begin{tikzpicture} 13 | 14 | \begin{pycode} 15 | print(r'\node {This is python};') 16 | \end{pycode} 17 | 18 | \end{tikzpicture} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /test/test-syntax/test-tikz.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-tikz.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texTikzSemicolon', 66, 61)) 8 | call assert_true(vimtex#syntax#in('texTikzZone', 66, 61)) 9 | call assert_true(vimtex#syntax#in('texCmdAxis', 71, 9)) 10 | 11 | call vimtex#test#finished() 12 | -------------------------------------------------------------------------------- /test/test-syntax/test-unicode-math.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-unicode-math.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-syntax/test-various-packages.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-various-packages.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_equal(11, len(filter(b:vimtex_syntax, 'v:val.__loaded'))) 8 | 9 | call vimtex#test#finished() 10 | -------------------------------------------------------------------------------- /test/test-syntax/test-wiki.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-wiki.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call assert_true(vimtex#syntax#in('texWikiZone', 6, 1)) 8 | " call assert_true(vimtex#syntax#in('markdownHeader', 7, 1)) 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-syntax/test-witharrows.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{physics} 3 | \usepackage{witharrows} 4 | 5 | \begin{document} 6 | 7 | \begin{DispWithArrows} 8 | \dv{i_2}{t} &= - \frac{M}{L_2} \dv{i_1}{t} 9 | \Arrow{par intégration} \\ 10 | \Rightarrow 11 | i_2 &= -\frac{M}{L_2}i_1 + \mathrm{cte} 12 | \end{DispWithArrows} 13 | 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/test-syntax/test-witharrows.vim: -------------------------------------------------------------------------------- 1 | source common.vim 2 | 3 | EditConcealed test-witharrows.tex 4 | 5 | if empty($INMAKE) | finish | endif 6 | 7 | call vimtex#test#finished() 8 | -------------------------------------------------------------------------------- /test/test-texflavor/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-texflavor/test-defined.vim: -------------------------------------------------------------------------------- 1 | let g:tex_flavor = 'plain' 2 | 3 | set nocompatible 4 | let &rtp = '../..,' . &rtp 5 | filetype plugin on 6 | 7 | silent edit plaintex.tex 8 | call assert_equal('plaintex', &filetype) 9 | 10 | call vimtex#test#finished() 11 | -------------------------------------------------------------------------------- /test/test-texflavor/test-undefined.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | silent edit plaintex.tex 6 | call assert_equal('tex', &filetype) 7 | 8 | call vimtex#test#finished() 9 | -------------------------------------------------------------------------------- /test/test-textobj-targets/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | .PHONY: test clean 7 | 8 | test: | targets.vim 9 | @$(MYVIM) -u test.vim 10 | @diff test.ok test1.out 11 | @diff test.ok test2.out 12 | @rm test1.out test2.out 13 | 14 | targets.vim: 15 | @git clone https://github.com/wellle/targets.vim.git 16 | -------------------------------------------------------------------------------- /test/test-textobj-targets/test.tex: -------------------------------------------------------------------------------- 1 | a \cmd{ bbbbbbbb } \cmd{ ccccccc } \cmd{ xxxxxx } \cmd{ eeeeeee } \cmd{ ffffffff } 2 | -------------------------------------------------------------------------------- /test/test-textobj/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-toc-speed/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | MYVIM ?= nvim --clean --headless 4 | 5 | INMAKE := 1 6 | export INMAKE 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter00.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter01.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter02.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter03.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter04.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter05.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter06.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter07.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter08.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter09.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter10.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter11.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter12.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter13.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter14.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter15.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter16.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter17.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter18.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter19.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter20.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter21.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter22.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter23.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter24.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter25.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter26.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter27.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter28.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter29.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter30.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter31.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter32.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter33.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter34.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter35.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter36.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter37.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter38.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter39.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter40.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter41.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter42.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter43.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter44.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter45.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter46.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter47.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter48.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter49.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter50.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter51.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter52.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter53.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter54.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter55.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter56.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter57.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter58.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter59.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter60.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter61.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter62.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter63.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter64.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter65.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter66.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter67.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter68.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter69.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter70.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter71.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter72.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter73.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter74.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter75.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter76.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter77.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter78.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter79.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter80.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter81.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter82.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/chapter83.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{1} 5 | \label{sec:1} 6 | \begin{equation} 7 | \label{eq:1} 8 | 1 9 | \end{equation} 10 | 11 | \section{2} 12 | \label{sec:2} 13 | \begin{equation} 14 | \label{eq:2} 15 | 2 16 | \end{equation} 17 | 18 | \section{3} 19 | \label{sec:3} 20 | \begin{equation} 21 | \label{eq:3} 22 | 3 23 | \end{equation} 24 | 25 | -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/preamble.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-toc-speed/chapters/preamble.tex -------------------------------------------------------------------------------- /test/test-toc-speed/chapters/subfile.tex: -------------------------------------------------------------------------------- 1 | \documentclass[main.tex]{subfiles} 2 | 3 | \begin{document} 4 | \chapter{Subfile chapter} 5 | Lorem ipsum... 6 | 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/test-toc/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-toc/chapters/chapter.tex: -------------------------------------------------------------------------------- 1 | \chapter{Some chapter} 2 | This is a chapter. 3 | 4 | \section{\texorpdfstring{$L^p$}{L\^{}p} spaces} 5 | A section. 6 | 7 | -------------------------------------------------------------------------------- /test/test-toc/chapters/equations.tex: -------------------------------------------------------------------------------- 1 | \chapter{Chapter with equations} 2 | \label{chap:chapter_1} 3 | 4 | This is the first equation: 5 | \begin{equation} 6 | 1 + 1 = 2. 7 | \label{eq:1} 8 | \end{equation} 9 | 10 | \noindent 11 | This is the second equation: 12 | \begin{equation} 13 | 1 \times 1 = 1. 14 | \label{eq:2} 15 | \end{equation} 16 | -------------------------------------------------------------------------------- /test/test-toc/chapters/imported.tex: -------------------------------------------------------------------------------- 1 | \usepackage{biblatex-chicago} 2 | \addbibresource{main.bib} 3 | -------------------------------------------------------------------------------- /test/test-toc/chapters/preamble.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lervag/vimtex/be9deac3a23eeb145ccf11dd09080795838496ce/test/test-toc/chapters/preamble.tex -------------------------------------------------------------------------------- /test/test-toc/chapters/sections/first.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../../main.tex]{subfiles} 2 | \begin{document} 3 | 4 | \section{The first section} 5 | Titling notwithstanding, could this issue be a case of PEBCAC? 6 | 7 | \subsection{A subsection} 8 | Hello world. 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-toc/chapters/sections/second.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../../main.tex]{subfiles} 2 | \begin{document} 3 | \section{The second section} 4 | You don't always think it be like this, but it do. 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/test-toc/chapters/subfile.tex: -------------------------------------------------------------------------------- 1 | \documentclass[../main.tex]{subfiles} 2 | 3 | \begin{document} 4 | \chapter{Subfile chapter} 5 | Lorem ipsum... 6 | 7 | \subfile{sections/first.tex} 8 | \subfile{sections/second.tex} 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/test-toc/main.bib: -------------------------------------------------------------------------------- 1 | @book{testkey, 2 | author = {Me}, 3 | title = {A Book}, 4 | year = {2021} 5 | } 6 | -------------------------------------------------------------------------------- /test/test-toc/test-keepalt.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | silent edit main.tex 8 | silent edit main.aux 9 | silent edit # 10 | 11 | let s:alt = bufnr('#') 12 | 13 | VimtexTocOpen 14 | normal q 15 | 16 | if empty($INMAKE) | finish | endif 17 | 18 | call assert_equal(s:alt, bufnr('#')) 19 | call vimtex#test#finished() 20 | -------------------------------------------------------------------------------- /test/test-toc/test-multiline.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | 4 | \section{This is a normal section} 5 | 6 | \section{ 7 | This is a really long section title which is hard-wrapped 8 | after 80 characters or so to keep the source code readable 9 | } 10 | 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/test-toc/test-starred.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | 4 | \section{Sec} 5 | 6 | \subsection{Ssec} 7 | 8 | \paragraph{Par} 9 | 10 | \section*{Sec} 11 | 12 | \subsection*{Ssec} 13 | 14 | \paragraph*{Par} 15 | 16 | %\section{Sec} 17 | 18 | \subsection{Ssec} 19 | 20 | \paragraph{Par} 21 | 22 | \section*{Sec2} 23 | 24 | \subsection*{Ssec2} 25 | 26 | \end{document} 27 | -------------------------------------------------------------------------------- /test/test-utils/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard *.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: test $(TESTS) 10 | 11 | test: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-utils/test-win-clean-output.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | let s:output = vimtex#util#win_clean_output(["Usuário\r"]) 6 | call assert_equal(["Usuário"], s:output) 7 | 8 | call vimtex#test#finished() 9 | -------------------------------------------------------------------------------- /test/test-view/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | TESTS := $(wildcard test*.vim) 7 | TESTS := $(TESTS:.vim=) 8 | 9 | .PHONY: default $(TESTS) 10 | 11 | default: $(TESTS) 12 | 13 | $(TESTS): 14 | @$(MYVIM) -u $@.vim 15 | -------------------------------------------------------------------------------- /test/test-view/included.tex: -------------------------------------------------------------------------------- 1 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod 2 | tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At 3 | vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd 4 | gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 5 | -------------------------------------------------------------------------------- /test/test-wordcount/Makefile: -------------------------------------------------------------------------------- 1 | MYVIM ?= nvim --clean --headless 2 | 3 | INMAKE := 1 4 | export INMAKE 5 | 6 | .PHONY: test 7 | 8 | test: 9 | @$(MYVIM) -u test.vim 10 | -------------------------------------------------------------------------------- /test/test-wordcount/minimal.tex: -------------------------------------------------------------------------------- 1 | \documentclass{minimal} 2 | \begin{document} 3 | 4 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod 5 | tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At 6 | vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd 7 | gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/test-wordcount/test.vim: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | let &rtp = '../..,' . &rtp 3 | filetype plugin on 4 | 5 | nnoremap q :qall! 6 | 7 | silent edit minimal.tex 8 | 9 | if empty($INMAKE) | finish | endif 10 | 11 | call assert_equal('50', vimtex#misc#wordcount()) 12 | 13 | call assert_equal('25', vimtex#misc#wordcount({'range': [4, 5]})) 14 | 15 | call vimtex#test#finished() 16 | --------------------------------------------------------------------------------