Skip to content

Commit cb418cc

Browse files
MaoSong2022MaoSong2022
authored andcommitted
feat(compile_latex.sh): add synctex when compiling tex files
1 parent 14e80da commit cb418cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vrdu/compile_latex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bib_file=$(find . -maxdepth 1 -type f -name "*.bib" | head -n 1)
2323
if [ -z "$bib_file" ]; then
2424
# Compile the main LaTeX file using pdflatex only
2525
pdflatex -interaction=nonstopmode "$main_file.tex" > /dev/null
26-
pdflatex -interaction=nonstopmode "$main_file.tex" > /dev/null
26+
pdflatex -interaction=nonstopmode -synctex=1 "$main_file.tex" > /dev/null
2727
else
2828
# Remove the "./" prefix from the bib_file path
2929
bib_file=${bib_file#./}

0 commit comments

Comments
 (0)