You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ And don't forget to add `latex` to your `org-babel-load-languages` (below is for
32
32
(perl . t)))
33
33
```
34
34
35
-
### How to use?
35
+
### Basic Usage
36
36
First, turn on `org-edit-latex-mode`. Then you can edit a LaTeX fragment just
37
37
as what you'll do to edit a src block.
38
38
@@ -43,7 +43,26 @@ as what you'll do to edit a src block.
43
43
Note that all above commands are built-in Org commands, so your current
44
44
keybindings will probably do the job.
45
45
46
+
### TeX Master
47
+
By default, `org-edit-latex` will generate a TeX master file automatically. The master file use the same settings as org preview. With a TeX master, it is possible to:
48
+
49
+
- Complete according to specified LaTeX packages.
50
+
- Preview in the edit buffer.
51
+
52
+
Following snippet demonstrates how to set up a TeX master:
53
+
```elisp
54
+
(setq org-edit-latex-create-master t)
55
+
(setq org-edit-latex-packages-alist
56
+
'(("range-phrase=-,range-units=single" "siunitx")
57
+
("" "mathptmx")))
58
+
```
59
+
60
+
The master file locates in the same directory as the org file. You can update the master file with `org-edit-latex-update-master` after you change the preview settings.
61
+
62
+
When you are in the edit buffer, You can use `org-edit-latex-preview-at-point` to preview. By default, the keybinding of `preview-at-point` is remapped to this function.
63
+
46
64
### Change Log
65
+
- 0.8.0 Add support for TeX-master; provide preview function.
47
66
- 0.7.0 Fix a few bugs regarding latex fragment/environment with name/caption/attrib.
48
67
- 0.6.3 Fix inline math issue caused by a bug from org.
0 commit comments