Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion file (cwl) for dndbook #364

Open
xrogaan opened this issue Dec 16, 2024 · 1 comment
Open

Completion file (cwl) for dndbook #364

xrogaan opened this issue Dec 16, 2024 · 1 comment

Comments

@xrogaan
Copy link

xrogaan commented Dec 16, 2024

I discovered the latex editor TeXstudio, which is quite good. One of its feature is completion, which helps tremendously while writing latex. (More on that.) Thus I created a document to that effect, see in the linked gist. It was written against a modified DND package, which I needed to do in order to write for Pathfinder. The major changes are in the keys for the various elements of the monster table. I had to reintroduce DMD, BAB, and others stuff. The DndMonster environment isn't properly setup either, mostly because I got rid of the floating aspect of the table. Would put one monster per page, couldn't figure it out, so it is setup to fill a column instead.

dndbook.cwl: https://gist.github.com/xrogaan/6b9f29f19110a8e0f0a68012b4714d1e

The massive list of #include: is from TeXstudio and its automated generation. TeXstudio parse sty files for commands, but failed totally for this package... Except for the dependencies detection. Not sure if it is needed, so I left it as is.

I do not know if it is worth creating a PR for the inclusion of the file. If I did, I would need to properly retrofit in order to follow the current commands. On the other hand, this is a neat resource to have which I wish to share. Could you advise on the proper path to take?

@BrianCriswell
Copy link
Member

Interesting. Since people can generate the cwl within TeXstudio as needed, I don't think it needs to be included in this project.

I personally use VS Code with LaTeX Workshop, Code Spell Checker, and Editor Config. There is some code completion, but possibly not as much as you are experiencing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants