Jump to content
Sign in to follow this  
Bhishan

Comprehensive Snippet Expansion for Latex Greek Letters

Recommended Posts

If you are a STEM student, you might have been familiar with the markup language LaTex. Typing equations in LaTex is painful and it is almost impossible to compile the latex document without getting an error once or twice.

 

To facilitate writing LaTex documents, I have created a comprehensive (more than 2000) snippets especially dedicated to latex greek letters.

 

Example usage:

Type this: \\a

This expands to:  \alpha

 

Type this:  \\ax

This expands to:  $\alpha$

and so on.

 

Here:  

prefix = \\

letter = a

expands to = alpha

 

The snippet can be found in my GitHub: https://github.com/bhishanpdl/ALFRED/blob/master/AlfredSnippets/LatexGreek.alfredsnippets

 

Installation:  

1. Download the snippet and double click

2. UNCHECK the option Strip snippet of auto expand flag (by default it is checked, uncheck it)

 

Detailed usage:

 

Some rules:

1. I call Partial, Angle and Bold as prefix terms.

2. I call other attributes such as bar, prime, hat, etc suffix.

3. x means surround by the two dollar sign. E.g to create  $\alpha$ we need to type \\ax.

4. suffix attributes need only one extra letter at the beginning. Eg. to create \bar{\alpha}   we need to type \\ab` where b means bar.

5. prefix attributes needs two surrounding letters. E.g. to create \partial{\alpha} we need to type \\pay here prefix p means partial and we also need last letter y.

 

latex_greek.png

Edited by Bhishan
grammar

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...