-
Notifications
You must be signed in to change notification settings - Fork 97
Using Gummi
One of the main benefits of using Gummi is that changes you make to the document are almost immediately visible in the preview screen, letting you quickly get feedback on how your LaTeX formatting changes are affecting the document. Syntax Highlighting
As you type latex commands these will be highlighted separate to the rest of your text so that you can quickly find latex tags within your document.
If you don’t like the default editor colour scheme you can choose alternatives via Edit → Preferences → Font & Colours. For example the Cobalt theme will give you a dark editor background with light writing as opposed to the default.
As of gummi-0.8.0 custom styles will also be available when placed in ~/.config/gummi/styles
To save you time editing common blocks of LaTeX can have shortcut keys or command text assigned to them. Some common examples come pre configured with the program.
If you go to Edit → Preferences → Editor → Snippets , you’ll find that you can see and assign shortcuts to certain blocks of LaTeX you might commonly use.
For example, the img block is triggered by typing \img followed by hitting the Tab key, resulting in a code block for an image being pasted into the document.
If a snippet shows $1,$2 fields, these are where the cursor will go when tab is successively hit for example
\usepackage{$1}$0
has a default snippet shortcut of
upkg
so in the edit pane typing
upkg[TAB]lorem[TAB]ipsum
would result in the following text
\usepackage{lorem}ipsum
Via the Snippets box it’s also possible to assign key short-cuts, for example you might decide that pressing shift+i together will trigger the image code-block.
Spell checking is off by default but is enabled via the menu option (Document → Enable Spell Checking)
Be sure that you’ve also selected a language in Edit → Preferences → Miscellaneous and that you have gtkspell installed.
Spell checking currently highlights LaTeX commands but this is expected to change in the future (#142)
If you need to make a section of code for a image, complicated table, matrix or bibliography file, look to the bottom of the preview pane.
Selecting the options you want and hitting enter injects the latex required into the editor pane at the cursors position. It may save you a lot of time.
Templates are fairly simple. You can save a document as a template, for instance you may create the rough outline of a report document and then load it each time you wish to write a report in order to have most of the document structure already created.
The current (0.6.x) implementation offers basic support for grouping documents together.
Creating a project creates a plain-text file with compilation settings in it and the location of the files that are added to this project. When a project is loaded, the file is read in and the lines containing a filepath are all loaded into Gummi.
The prerequisites are that your document must compile and be open in a document tab, this becomes the "root" file.
- Open your first file and save it
- In the menu bar select 'Project’ and then 'New’
- In the dialogue that comes up, choose a folder for your project and click save
In the right hand pane you now have an extra tab called 'Project’ which lists all the files in your project
To add more files use the "add" button in the lower right hand side of the projects pane
The project overview tab uses two different icons to signify some status for the document. A "home" icon means that document is the root file of the project.
(An "error" icon means that the file is in the project, but Gummi couldn’t load it. Most likely because it is either deleted, moved or damaged.)
Operation | Shortcut |
---|---|
New Document | Ctrl + N |
Open | Ctrl + O |
Save | Ctrl + S |
Save As | Shift + Ctrl + S |
Export to PDF | Ctrl + E |
Close | Ctrl + W |
Quit | Ctrl + Q |
Operation | Shortcut |
---|---|
Undo | Ctrl + Z |
Redo | Shift + Ctrl + Z |
Cut | Ctrl + X |
Copy | Ctrl + C |
Paste | Ctrl + P |
Select All | Ctrl + A |
Operation | Shortcut |
---|---|
Toggle Preview Pane | F8 |
Toggle Gummi Fullscreen | F11 |
Operation | Shortcut |
---|---|
Find and Replace | Ctrl + F |
Find Next | Ctrl + G |
Find Previous | Shift + Ctrl + G |
Operation | Shortcut |
---|---|
Compile Document | F9 |
Gummi User Guide 2015. Original author: Guy Edwards with modifications by Alexander van der Meij.