forked from ppurka/btex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_btex
More file actions
46 lines (42 loc) · 3.19 KB
/
_btex
File metadata and controls
46 lines (42 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#compdef btex
# by myself
local local_options
if (( $words[(I)(-h|--help)] )); then
_arguments -s \
'(--help)-h[Show help text]:help options:( autocompile editor inv-search )' \
'(-h)--help[Show help text]:help options:( autocompile editor inv-search )' \
&& return 0
fi
local_options=(
'( -d -n -o -p -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-2[Generate pdf from postscript output]'
'(-2 -d -n -o -p -x --pdf --no-postscript --pdf_ps --postscript --xelatex)--ps2pdf[Generate pdf from postscript output]'
'(-2 -n -o -p -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-d[Output a pdf file using pdflatex]'
'(-2 -d -n -o -p -x --ps2pdf --no-postscript --pdf_ps --postscript --xelatex)--pdf[Output a pdf file using pdflatex]'
'(-2 -d -o -p -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-n[Output only dvi file]'
'(-2 -d -n -o -p -x --ps2pdf --pdf --pdf_ps --postscript --xelatex)--no-postscript[Output only dvi file]'
'(-2 -d -n -p -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-o[Generate ps automatically and also pdf via pdflatex]'
'(-2 -d -n -o -p -x --ps2pdf --pdf --no-postscript --postscript --xelatex)--pdf_ps[Generate ps automatically and also pdf via pdflatex]'
'(-2 -d -n -o -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-p[Run dvips automatically, providing ps output]'
'(-2 -d -n -o -p -x --ps2pdf --pdf --no-postscript --pdf_ps --xelatex)--postscript[Run dvips automatically, providing ps output]'
'(-2 -d -n -o -p --ps2pdf --pdf --no-postscript --pdf_ps --postscript --xelatex)-x[Output a pdf file using xelatex]'
'(-2 -d -n -o -p -x --ps2pdf --pdf --no-postscript --pdf_ps --postscript )--xelatex[Output a pdf file using xelatex]'
{'(-a)--autocompile','(--autocompile)-a'}'[Enable autocompile mode]'
'--acroread[Use acrobat reader as pdf viewer]'
{'(--all-tex)-A','(-A)--all-tex'}'[Check all tex files during autocompile]'
{'(-B)--bibtex','(--bibtex)-B'}'[Enable bibtex compilation]'
{'(-c)--choose4me','(--choose4me)-c'}'[Choose some default settings: -i -r -s -T -w]'
{'(-C)--clean','(--clean)-C'}'[Clean temporary files created by (pdf)latex]'
{'(-e)--beamer','(--beamer)-e'}'[Toggle beamer mode]'
{'(-E)--editor','(--editor)-E'}'[Specify editor to use with xdvi]:editor:_path_commands'
{'(--help)-h','(-h)--help'}'[Show help text]'
{'(-i)--inv-search','(--inv-search)-i'}'[Enable inverse search in dvi]'
'--no-color[Do not use color in output]'
{'(-r)--recursive','(--recursive)-r'}'[Recursively compile the source]'
{'(-s)--silent','(--silent)-s'}'[Print only errors/warnings output by (pdf)latex]'
{'(-T)--no-interaction','(--no-interaction)-T'}'[Run (pdf)latex with -interaction=nonstopmode]'
{'(-w)--nowarning','(--nowarning)-w'}'[Disable output/highlight of warnings]'
{'(-z)--stop','(--stop)-z'}'[Exit script if latex gives errors]'
'-t[Paper type used with dvips (default: letter)]:paper type:( a3 a4 landscape ledger legal letter )'
':latex files:_files -/g "*.tex"'
)
_arguments -s $local_options && return 0