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

tse affetcs \begin{document} #2210

Closed
petRUShka opened this issue Oct 18, 2021 · 2 comments
Closed

tse affetcs \begin{document} #2210

petRUShka opened this issue Oct 18, 2021 · 2 comments
Labels

Comments

@petRUShka
Copy link

petRUShka commented Oct 18, 2021

Description

tse affetcs \begin{document} and suddenly makes it \begin{document*}. If you use tse in wrong place it is able to break document without noticing.

Steps to reproduce

  1. Open any latex document
  2. Make tse inside document but outside any other environment.
  3. Enjoy broken document

Expected behavior

Doesn't touch document environment and may be some more non starrable enironments.

Actual behavior

touch document environment and may be some more non starrable enironments.

Do you use a latexmkrc file?

No

VimtexInfo

System info
  OS: Arch Linux
  Vim version: VIM 8.2 (1-3441)
  Has clientserver: true
  Servername: undefined (vim started without --servername)

VimTeX project: file
  base: file.tex
  root: /home/user/folder
  tex: /home/user/folder/file.tex
  main parser: current file verified
  document class: article
  packages: amsbsy amsfonts amsgen amsmath amsopn amssymb amstext amsthm atbegshi atbegshi-ltx atveryend atveryend-ltx auxhook babel bigintcalc bitset cleveref color etexcmds gettitlestring hycolor hyperref iftex infwarerr inputenc intcalc keyval kvdefinekeys kvoptions kvsetkeys letltxmacro ltxcmds nameref pdfescape pdftexcmds refcount rerunfilecheck uniquecounter url xcolor
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    build_dir: build/
    callback: 1
    continuous: 1
    executable: latexmk
    job: 
      jobid: process 381955 run
      output: /tmp/vYlfLWW/2
      cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -outdir=build/ -pvc -e '$new_viewer_always = "0"' -e '$pdf_previewer = "zathura  -x \"/usr/bin/vim --servername  --remote-expr \"\\\"\"vimtex#view#reverse_goto(\%{line}, '"'"'\%{input}'"'"')\"\\\"\"\" \%S"' -e '$compiling_cmd = ($compiling_cmd ? $compiling_cmd . " ; " : "") . "echo vimtex_compiler_callback_compiling"' -e '$success_cmd = ($success_cmd ? $success_cmd . " ; " : "") . "echo vimtex_compiler_callback_success"' -e '$failure_cmd = ($failure_cmd ? $failure_cmd . " ; " : "") . "echo vimtex_compiler_callback_failure"' 'file.tex'
      pid: 381955
  viewer: Zathura
    xwin id: 69206017
    cmd_start: zathura -x "/usr/bin/vim --servername  --remote-expr \"vimtex#view#reverse_goto(%{line}, '%{input}')\"" --synctex-forward 112:27:'/home/user/folder/file.tex'  '/home/user/folder/build//file.pdf'&
  qf method: LaTeX logfile
@petRUShka petRUShka added the bug label Oct 18, 2021
lervag added a commit that referenced this issue Oct 18, 2021
@lervag
Copy link
Owner

lervag commented Oct 18, 2021

Thanks, fixed now!

@lervag
Copy link
Owner

lervag commented Oct 18, 2021

I won't aim to know all starable environments, but I agree document should be strictly avoided.

@lervag lervag closed this as completed Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants