I've looked up the options in Texmaker but it doesn't seem it has this feature "open containing folder". Is there an option regarding this matter?
Notes Following Texmaker's documentation the character
! represents the current directory so the idea is to use a user command
explorer.exe ! (under windows or equivalent for other platforms). Indeed, if i try command
pdflatex !/myfile.tex where
myfile.tex is a file in current directory the command works fine and i get the file compiled but I can't get it to work with
Here is a solution (under windows)
Make a batch file
myexplorer.bat with contents:
- in Texmker go to menu:
User-->User commands-->Edit user commands
- paste this command
So, turns out this question wasn't about TeXStudio (which is what this answer is regarding) at all! I'm going to leave this here anyways, as a reminder for me to read the title next time...
macOS or Linux
In macOS, go to
Preferences -> Build -> User Commands.
Add a new command called "open working directory" whose contents is simply
You can run the command from
Tools -> User -> open working directory.
I assume the process is identical (except for menu layout perhaps) on Linux.
Same as above, but the command is now
If @touhami is right about TeXStudio using
! to represent the current directory, or try
If this website is to be trusted:
The period is used in the Command Prompt as a shorthand for the current folder, so this will open the current folder in File Explorer.
Which would match with my understanding...
For me, using Texstudio on Windows, the working command is
cmd.exe /c "start ."