Skip to content
Discussion options

You must be logged in to vote

Hi. Sorry for the late reply!

First off, can this line...

gnome-terminal -- bash -c "cd /Documents/Obsidian/Output/{{title}} && latexmk -pdf && latexmk -c && exit; exec bash"

... actually be simplified to this?

cd /Documents/Obsidian/Output/{{title}} && latexmk -pdf && latexmk -c

I don't know LaTeX or latexmk so I'm not able to provide support for them.


This opens a terminal window, goes to that folder, runs latexmk and exits. Pretty happy with this! But if anyone knows how to then open the newly created PDF and then still exit the terminal without also closing the PDF reader, I'd be ecstatic.

Have you tried this:

xdg-open *.pdf

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Taitava
Comment options

Answer selected by ReaderGuy42
@ReaderGuy42
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants