Default shortcuts can be edited in Options -> Configure Texmaker -> Shortcuts
.
Texmaker also allows custom snippets of text to be inserted in the document with shortcuts, this functionality is known as User Tags in the User menu.
Goto User -> User Tags -> Edit User Tags
and define a tag with the content you wish:
\thisIsCool{@}
Now press Shift + F1...F10
to get the snippet pasted in the current cursor position. The @
character is a jump marker and your cursor will end up at the first marker encountered.
For more information: http://www.xm1math.net/texmaker/doc.html#SECTION33
Not tested answer for Ubuntu (or debian based) since I don't have TeXmaker installed.
In your
/usr/share/applications
folder, you possibly have a texmaker.desktop
file.
If it is not there find it for your system (If you can already use texmaker with open with there is such a file. If not you can add it.)
If you open it with a texteditor like nano
, you will find something like:
[Desktop Entry]
Version=0.9.4
Name=Texmaker
GenericName=LaTeX Editor
GenericName[fr]=Editeur LaTeX
Comment=LaTeX Editor
Comment[fr]=Editeur LaTeX
Exec=texmaker
Icon=texmaker
MimeType=text/x-tex;
Terminal=false
Type=Application
Categories=Utility;TextEditor;Publishing;
Command for opening:
sudo gedit /usr/share/applications/texmaker.desktop
(Or nano instead of gedit... or whatever)
At the end of the line Exec=texmaker
if you add %U
you will get:
Exec=texmaker %U
This way texmaker can used with "open with" to open files or folders.
If now you make the line like:
Exec=texmaker /home/Desktop/myFolderWith8Files/ %U
then, whenever you use "open with"... it will open the selected files or folder and the "default" /home/Desktop/myFolderWith8Files/
folder
Best Answer
Notes Following Texmaker's documentation the character
!
represents the current directory so the idea is to use a user commandexplorer.exe !
(under windows or equivalent for other platforms). Indeed, if i try commandpdflatex !/myfile.tex
wheremyfile.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 withexplorer.exe
Here is a solution (under windows)
Make a batch file
myexplorer.bat
with contents:User-->User commands-->Edit user commands
<PathOfMyBatch>\myexplorer.bat %.tex