* What is the best way to show inline math formulas in org mode?
@ 2017-09-18 7:31 Amos Bird
2017-09-18 12:40 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: Amos Bird @ 2017-09-18 7:31 UTC (permalink / raw
To: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
#+OPTIONS: latex:t toc:nil H:3
Hi,
I found that there are ways to write formulas in mathjax or latex in org-mode. But how can I view
them inlinely? Currently I just copy and paste formula images which seems not the right way.
regards,
--
Amos Bird
amosbird@gmail.com
[-- Attachment #2.1: Type: text/html, Size: 323 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 7:31 Amos Bird
@ 2017-09-18 12:40 ` Nicolas Goaziou
2017-09-18 12:51 ` Amos Bird
0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2017-09-18 12:40 UTC (permalink / raw
To: Amos Bird; +Cc: Org Mode Mailing List
Hello,
Amos Bird <amosbird@gmail.com> writes:
> I found that there are ways to write formulas in mathjax or latex in org-mode. But how can I view
> them inlinely? Currently I just copy and paste formula images which
> seems not the right way.
See `org-toggle-latex-fragment' (C-c C-x C-l).
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 12:40 ` Nicolas Goaziou
@ 2017-09-18 12:51 ` Amos Bird
2017-09-18 12:54 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: Amos Bird @ 2017-09-18 12:51 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
#+OPTIONS: latex:t toc:nil H:3
Thanks Nicolas. That's cool. But I couldn't get it working.
I tried this simple equation
#+BEGIN_EXAMPLE
\begin{equation}
x=\sqrt{b}
\end{equation}
#+END_EXAMPLE
and got
#+BEGIN_EXAMPLE
if: File "/tmp/orgtex24112xzL.dvi" wasn’t produced. Please adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’.
#+END_EXAMPLE
regards,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Amos Bird <amosbird@gmail.com> writes:
>
>> I found that there are ways to write formulas in mathjax or latex in org-mode. But how can I view
>> them inlinely? Currently I just copy and paste formula images which
>> seems not the right way.
>
> See `org-toggle-latex-fragment' (C-c C-x C-l).
>
> Regards,
--
Amos Bird
amosbird@gmail.com
[-- Attachment #2.1: Type: text/html, Size: 979 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 12:51 ` Amos Bird
@ 2017-09-18 12:54 ` Nicolas Goaziou
2017-09-18 13:00 ` Amos Bird
2017-09-18 13:07 ` Amos Bird
0 siblings, 2 replies; 10+ messages in thread
From: Nicolas Goaziou @ 2017-09-18 12:54 UTC (permalink / raw
To: Amos Bird; +Cc: Org Mode Mailing List
Amos Bird <amosbird@gmail.com> writes:
> Thanks Nicolas. That's cool. But I couldn't get it working.
>
> I tried this simple equation
>
>
> \begin{equation}
> x=\sqrt{b}
> \end{equation}
>
> and got
>
>
> if: File "/tmp/orgtex24112xzL.dvi" wasn’t produced. Please adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’.
Maybe "dvipng" is not installed on your system.
FWIW, I use `dvisvgm' for `org-preview-latex-default-process'.
Regards,
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 12:54 ` Nicolas Goaziou
@ 2017-09-18 13:00 ` Amos Bird
2017-09-18 13:07 ` Amos Bird
1 sibling, 0 replies; 10+ messages in thread
From: Amos Bird @ 2017-09-18 13:00 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
dvisvgm doesn't work either but imagemagick does. Thanks!
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Amos Bird <amosbird@gmail.com> writes:
>
>> Thanks Nicolas. That's cool. But I couldn't get it working.
>>
>> I tried this simple equation
>>
>>
>> \begin{equation}
>> x=\sqrt{b}
>> \end{equation}
>>
>> and got
>>
>>
>> if: File "/tmp/orgtex24112xzL.dvi" wasn’t produced. Please adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’.
>
> Maybe "dvipng" is not installed on your system.
>
> FWIW, I use `dvisvgm' for `org-preview-latex-default-process'.
>
> Regards,
--
Amos Bird
amosbird@gmail.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 12:54 ` Nicolas Goaziou
2017-09-18 13:00 ` Amos Bird
@ 2017-09-18 13:07 ` Amos Bird
2017-09-18 14:08 ` Nicolas Goaziou
1 sibling, 1 reply; 10+ messages in thread
From: Amos Bird @ 2017-09-18 13:07 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
Um, does this formula image look correct? I feel it's a bit small and subrendered.
[[file:/home/amos/Pictures/Screenshots/img-2017-09-18-210416.png]]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Amos Bird <amosbird@gmail.com> writes:
>
>> Thanks Nicolas. That's cool. But I couldn't get it working.
>>
>> I tried this simple equation
>>
>>
>> \begin{equation}
>> x=\sqrt{b}
>> \end{equation}
>>
>> and got
>>
>>
>> if: File "/tmp/orgtex24112xzL.dvi" wasn’t produced. Please adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’.
>
> Maybe "dvipng" is not installed on your system.
>
> FWIW, I use `dvisvgm' for `org-preview-latex-default-process'.
>
> Regards,
--
Amos Bird
amosbird@gmail.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 13:07 ` Amos Bird
@ 2017-09-18 14:08 ` Nicolas Goaziou
2017-09-19 5:25 ` Amos Bird
0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2017-09-18 14:08 UTC (permalink / raw
To: Amos Bird; +Cc: Org Mode Mailing List
Hello,
Amos Bird <amosbird@gmail.com> writes:
> Um, does this formula image look correct? I feel it's a bit small and subrendered.
>
> [[file:/home/amos/Pictures/Screenshots/img-2017-09-18-210416.png]]
I cannot see this, since this is a local file. You may want to tweak
`org-format-latex-options'.
Also, it sounds like you don't have a working LaTeX installation (e.g.
Texlive)
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-18 14:08 ` Nicolas Goaziou
@ 2017-09-19 5:25 ` Amos Bird
2017-09-19 8:59 ` Eric S Fraga
0 siblings, 1 reply; 10+ messages in thread
From: Amos Bird @ 2017-09-19 5:25 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]
#+OPTIONS: latex:t toc:nil H:3
Hi,
Hmm, seems org-mime is broken again...
I have an fine working latex env. Though I don't know what a decent inline formula looks like :)
regards,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Amos Bird <amosbird@gmail.com> writes:
>
>> Um, does this formula image look correct? I feel it's a bit small and subrendered.
>>
>> [[file:/home/amos/Pictures/Screenshots/img-2017-09-18-210416.png]]
>
> I cannot see this, since this is a local file. You may want to tweak
> `org-format-latex-options'.
>
> Also, it sounds like you don't have a working LaTeX installation (e.g.
> Texlive)
>
> Regards,
--
Amos Bird
amosbird@gmail.com
[-- Attachment #2.1: Type: text/html, Size: 971 bytes --]
[-- Attachment #2.2: img-2017-09-18-210416.png --]
[-- Type: image/png, Size: 26189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
2017-09-19 5:25 ` Amos Bird
@ 2017-09-19 8:59 ` Eric S Fraga
0 siblings, 0 replies; 10+ messages in thread
From: Eric S Fraga @ 2017-09-19 8:59 UTC (permalink / raw
To: Amos Bird; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Tuesday, 19 Sep 2017 at 13:25, Amos Bird wrote:
> Hi,
>
> Hmm, seems org-mime is broken again…
>
> I have an fine working latex env. Though I don't know what a decent
> inline formula looks like :)
It looks pretty much as you have got. You can customise the actual
image created using org-format-latex-options. You can change the size,
e.g. ":scale 2.0" and colours.
--
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-729-gb792e2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: What is the best way to show inline math formulas in org mode?
[not found] <mailman.81.1505836816.23106.emacs-orgmode@gnu.org>
@ 2017-09-19 22:16 ` edgar
0 siblings, 0 replies; 10+ messages in thread
From: edgar @ 2017-09-19 22:16 UTC (permalink / raw
To: emacs-orgmode
Hi Amos,
I am an inexpert user of Emacs, and that is why I think that I can help
you. See the instructions below. Spoiler alert: the last line reads: "If
you get your file .. I don't know how to help you."
The idea is:
1. Run emacs like this: emacs -Q
2. Check that you have a recent version of Emacs
1) (assuming that you are running in linux) Check your Emacs version:
a. [Alt] + [x] (in Emacs lingo, this translates to M-x, and lets
you run commands)
b. when you get a prompt, type <emacs-version> (without < >)
c. type [Enter] (in Emacs lingo, this translates to RET most
times)
2) If you get a message with a version older than 24.4, your Emacs
may be too old, but still work (may be).
3. Check that you have a recent version of Org
Do the same as step 2, but replace <emacs-version> with
<org-version>. If your version is older than 8.7, I would suggest
updating.
4. Check that you are actually running the right command
1) Create a new buffer
a. C-x b: [Control] + [x], then [b]
b. test.org: type <test.org>
c. RET
2) Change onto org-mode by doing M-x org-mode RET
3) Copy (kill) this as it is and paste it (yank it) on the buffer
that you just created: \(a = 2\)
4) Put the cursor (point) on the <=> and do C-c C-x C-l
5) If you don't see your equation, continue to step 5
5. If step 4 didn't work, make sure that you could produce the file in
your computer
1) Export the test.org to LaTeX by doing C-c C-e l l
2) If it asks you for a name file, just type <test.tex> (without < >
!)
3) Open the file (find the file): C-x C-f <test.tex> (without < >)
4) Do what you would normally do to produce your PDF
5) If you get your file, it means that your Org configuration is not
really working. Try testing your dvipng, dvisvgm or convert
(imagemagick) commands. Imagemagick is not really good in terms of image
quality, in my opinion, but you can play with the scale value (as
suggested by Eric? Nicolas?). Other than that, I don't know how to help
you.
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-09-20 13:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.81.1505836816.23106.emacs-orgmode@gnu.org>
2017-09-19 22:16 ` What is the best way to show inline math formulas in org mode? edgar
2017-09-18 7:31 Amos Bird
2017-09-18 12:40 ` Nicolas Goaziou
2017-09-18 12:51 ` Amos Bird
2017-09-18 12:54 ` Nicolas Goaziou
2017-09-18 13:00 ` Amos Bird
2017-09-18 13:07 ` Amos Bird
2017-09-18 14:08 ` Nicolas Goaziou
2017-09-19 5:25 ` Amos Bird
2017-09-19 8:59 ` Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.