diff options
author | Karl Berry <karl@freefriends.org> | 2024-09-01 20:48:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-09-01 20:48:17 +0000 |
commit | e9dc18bdcf47d4136a383f62dc506503614ca783 (patch) | |
tree | 00adc9b94979b88f897c73b1aaf5f3753067f3f1 /Master/texmf-dist | |
parent | b0dd8c86ec1d1a4912deeb31b7590c93878cf7aa (diff) |
digestif (1sep24)
git-svn-id: svn://tug.org/texlive/trunk@72163 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/support/digestif/INSTALL.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/digestif/LICENSE.md | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/digestif/README.md | 24 | ||||
-rwxr-xr-x | Master/texmf-dist/doc/support/digestif/bin/digestif | 3 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/digestif/digestif.texlua | 3 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/digestif/digestif.zip | bin | 638963 -> 642987 bytes |
6 files changed, 39 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/support/digestif/INSTALL.md b/Master/texmf-dist/doc/support/digestif/INSTALL.md index f99f4b286ae..ff4ac037e0a 100644 --- a/Master/texmf-dist/doc/support/digestif/INSTALL.md +++ b/Master/texmf-dist/doc/support/digestif/INSTALL.md @@ -59,12 +59,12 @@ Packaging for a TeX distribution -------------------------------- For an installation depending only on the `texlua` interpreter from -LuaTeX (which already includes all other dependencies except cjson), +LuaTeX (which bundles all dependencies except the optional cjson), create a zip file containing `digestif/*.lua` and `data/*.tags` (no subdirectories), place it anywhere kpathsearch will find it and use the `bin/digestif.texlua` executable script. For instance: - zip -j digestif.zip digestif/*.lua tags/*.tags + zip -j digestif.zip digestif/*.lua data/*.tags install -Dt $TEXMF/scripts digestif.zip install bin/digestif.texlua $PREFIX/bin/digestif diff --git a/Master/texmf-dist/doc/support/digestif/LICENSE.md b/Master/texmf-dist/doc/support/digestif/LICENSE.md index 55165a272d6..2b19eb74af7 100644 --- a/Master/texmf-dist/doc/support/digestif/LICENSE.md +++ b/Master/texmf-dist/doc/support/digestif/LICENSE.md @@ -119,6 +119,20 @@ latex.tags: Adapted from the LaTeX2e Unofficial Reference Manual, which can be found at https://latexref.xyz/. +natbib.sty.tags: + + Copyright 1993-2010 Patrick W Daly + + This file may be distributed and/or modified under the conditions of the + LaTeX Project Public License, either version 1.3 of this license or (at + your option) any later version. The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX version + 2005/12/01 or later. + + Adapted from the natbib package documentation, which can be found at + https://ctan.org/pkg/natbib + pgf.tags: Copyright 2007-2013 Till Tantau diff --git a/Master/texmf-dist/doc/support/digestif/README.md b/Master/texmf-dist/doc/support/digestif/README.md index a7528020ece..25b4fe49209 100644 --- a/Master/texmf-dist/doc/support/digestif/README.md +++ b/Master/texmf-dist/doc/support/digestif/README.md @@ -2,7 +2,7 @@ Digestif ======== <p align="center"> -<a href="https://app.travis-ci.com/astoff/digestif"><img src="https://app.travis-ci.com/astoff/digestif.svg?branch=main" alt="Build Status"></a> +<a href="https://github.com/astoff/digestif/actions/workflows/test.yml"><img src="https://github.com/astoff/digestif/actions/workflows/test.yml/badge.svg"></a> <a href="https://ctan.org/pkg/digestif"><img alt="CTAN" src="https://img.shields.io/ctan/v/digestif?color=blue"></a> <a href="https://luarocks.org/modules/astoff/digestif"><img alt="LuaRocks" src="https://img.shields.io/luarocks/v/astoff/digestif?color=blue"></a> </p> @@ -12,18 +12,20 @@ ConTeXt et caterva. It provides context-sensitive completion, documentation, code navigation, and related functionality to any text editor that speaks the LSP protocol. -<p align="center"><img src="https://raw.githubusercontent.com/astoff/digestif/images/screenshot.gif" alt="Madatory GIF"></p> - Features -------- - Completion for commands, environments, key-value options (for instance, TikZ options), cross-references and citations. + <p align="center"><img src="https://raw.githubusercontent.com/astoff/digestif/images/completion.png"></p> + - Popup help messages, including command signature and documentation. For the best results, make sure you have the [LaTeX reference manual][latexref] installed as an [info node][info-issues]. + <p align="center"><img src="https://raw.githubusercontent.com/astoff/digestif/images/help.png"></p> + - Find definition and references to labels and citations. - Document outline. @@ -37,12 +39,16 @@ Features - Digestif is fuzzy! For citations, it tries an exact match against the BibTeX identifier and a fuzzy match against author and title. - In the GIF above, the user types `groalhom`, which matches + In the picture below, the user typed `groalhom`, which matches **Gro**thendieck's “Sur quelques points d'**al**gébre **hom**ologique”; selecting this inserts the BibTeX identifier - `Tohoku`. Similarly, for cross-references, Digestif tries an exact - match against the label and a fuzzy match against the text around - the label. + `Tohoku`. + + <p align="center"><img src="https://raw.githubusercontent.com/astoff/digestif/images/cite.png"></p> + + Similarly, for cross-references, Digestif tries an exact match + against the label and a fuzzy match against the text around the + label. - Support for LaTeX, ConTeXt, plain TeX, DocTeX (`.dtx` files) and Texinfo. @@ -112,6 +118,10 @@ To ensure that Digestif is used, add the following to your init file: See instructions [here](https://github.com/neoclide/coc.nvim/wiki/Language-servers#latex). +### Sublime Text with the [LSP](https://packagecontrol.io/packages/LSP) package + +See instructions [here](https://lsp.sublimetext.io/language_servers/#digestif). + ### Other editors It shouldn't be hard to set up other editors to use Digestif. Please diff --git a/Master/texmf-dist/doc/support/digestif/bin/digestif b/Master/texmf-dist/doc/support/digestif/bin/digestif index 818d5b355ac..73b51457b46 100755 --- a/Master/texmf-dist/doc/support/digestif/bin/digestif +++ b/Master/texmf-dist/doc/support/digestif/bin/digestif @@ -1,2 +1,5 @@ #!/usr/bin/env lua +-- Remove relative directories from package path +package.path = package.path:gsub("%f[^\0;]%.[^;]*", ""):gsub(";+", ";"):gsub("^;", ""):gsub(";$", "") +package.cpath = package.cpath:gsub("%f[^\0;]%.[^;]*", ""):gsub(";+", ";"):gsub("^;", ""):gsub(";$", "") require "digestif.langserver".main(arg) diff --git a/Master/texmf-dist/scripts/digestif/digestif.texlua b/Master/texmf-dist/scripts/digestif/digestif.texlua index 5f22a17e12b..f0f6c9e84f0 100755 --- a/Master/texmf-dist/scripts/digestif/digestif.texlua +++ b/Master/texmf-dist/scripts/digestif/digestif.texlua @@ -1,4 +1,7 @@ #!/usr/bin/env texlua +-- Remove relative directories from package path +package.path = package.path:gsub("%f[^\0;]%.[^;]*", ""):gsub(";+", ";"):gsub("^;", ""):gsub(";$", "") +package.cpath = package.cpath:gsub("%f[^\0;]%.[^;]*", ""):gsub(";+", ";"):gsub("^;", ""):gsub(";$", "") -- Use an invalid directory name in order not to allow kpse to search -- in the current directory. os.setenv("TEXMFDOTDIR", package.config:find("^\\") and "NUL" or "/dev/null") diff --git a/Master/texmf-dist/scripts/digestif/digestif.zip b/Master/texmf-dist/scripts/digestif/digestif.zip Binary files differindex 874ec9bcfeb..c7bbfa5bd0d 100644 --- a/Master/texmf-dist/scripts/digestif/digestif.zip +++ b/Master/texmf-dist/scripts/digestif/digestif.zip |