johnbcoughlin / calctex Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
now with imagemagick
I'm not sure if this is a bug or expected behaviour. Typing
'f(x) = 1/x
j1
j1
selects x
in standard calc. With calctex, the first j1
selects = 1/x
and the second one selects f() = 1/x
, which doesn't make sense to me at all.
I changed calctex-latex-image-directory
to point at a ramdisk location (tmpfs filesystem), which is completely empty after a system reboot.
To ensure that the directory of calctex-latex-image-directory
is existent, I inserted an
(make-directory calctex-latex-image-directory 'parents)
int my emacs init.el
Maybe, this should be done inside the package?
Thanks for the great package. It opens a new door for me to write LaTeX.
I'm quite new to LaTeX
and calc.el
. Following the demo of README, when I press Q
, the intermediate result looks like the above image, who to make it like \sqrt{2 \pi \sigma^2}
? Also the \exp
looks different from the demo in README.
It seems that there are some MP4 file histories in the repo. I use straight.el
to install this package and it takes quite a long time the clone the whole repo. Will it possible to prune these histories using techniques like this?
Should offer at least:
I am using macOS, emacs-plus27.1, doom emacs
Hello,
I've just started using this, and it's great! I like it so much that I've added the following to my config
(add-hook 'calc-mode-hook #'calctex-mode)
Unfortunately, this results in a huge pane for pdfTeX
opening up. Would we be able to suppress this?
Asside: is there any particular reason why you're not using latex
+ dvipng
?
Thanks in advance,
tecosaur
I'm running Calctex on Emacs 27.1 on Arch Linux.
C-x * c
)sin(x)
, shows up in latex display mode as \sin{x}
)M-x calctex-mode
Rendering LaTeX: \begin{align*} \sin{x} \end{align*}
C-g C-g C-g
.I did some debugging:
calctex-dvichop-sty
and calctex-dvichop-bin
.cacltex-texd-render-process
is called, but remains indefinitely in the loop (while (not (or calctex-latex-success calctex-latex-error))
(accept-process-output calctex-latex-proc 0.1))
so calctex-accept-latex-output
does not report a success (calctex-latex-success
) or an error (calctex-latex-error
).
I also did the following:
calctex-setup-texd
, calctex-texd-render-process
and calctex--texd-shipout-page
to a test file.\end{document}
to the test file.latex -jobname calctex test_file.tex
in a terminal. This produces no errors, but a four page dvi. My \sin{x}
is rendered on page 3, the other pages are blank.Here are the contents of *CalcTeX Log*
:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Arch Linux) (INITEX)
restricted \write18 enabled.
entering extended mode
(/tmp/calctex-headery35Nyd.tex
LaTeX2e <2020-10-01> patch level 2
L3 programming layer <2020-12-03> xparse <2020-03-03>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/dvips.def))
(/usr/share/texmf-dist/tex/generic/soul/soul.sty)
(/usr/share/texmf-dist/tex/latex/adjustbox/adjustbox.sty
(/usr/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/share/texmf-dist/tex/latex/adjustbox/adjcalc.sty)
(/usr/share/texmf-dist/tex/latex/adjustbox/trimclip.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/share/texmf-dist/tex/latex/collectbox/collectbox.sty)
(/usr/share/texmf-dist/tex/latex/adjustbox/tc-dvips.def))
(/usr/share/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty)
(/usr/share/texmf-dist/tex/latex/varwidth/varwidth.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-dvips.def))
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex))
(/usr/share/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texmf-dist/tex/latex/translator/translator.sty))
(/usr/share/texmf-dist/tex/latex/cancel/cancel.sty)
(/usr/share/texmf-dist/tex/latex/mathtools/mathtools.sty
(/usr/share/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texmf-dist/tex/latex/mathtools/mhsetup.sty))
(/usr/share/texmf-dist/tex/latex/mathalpha/mathalpha.sty
`mathalpha' v1.13, 2019/10/05, a renaming of mathalfa (msharpe))
(/usr/share/texmf-dist/tex/latex/arev/arevmath.sty
(/usr/share/texmf-dist/tex/latex/arev/ams-mdbch.sty)
(/usr/share/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texmf-dist/tex/latex/arev/arevsymbols.tex)))
Beginning to dump on file header2893923cc1d3ceea96ca5626c6488c1df4dee932.fmt
(preloaded format=header2893923cc1d3ceea96ca5626c6488c1df4dee932 2021.4.11)
27104 strings of total length 498605
392859 memory locations dumped; current usage is 423&390413
23546 multiletter control sequences
\font\nullfont=nullfont
\font\c__fp_exp_intarray=cmr10 at 0.00002pt
\font\c__fp_trig_intarray=cmr10 at 0.00003pt
\font\c_initex_cctab=cmr10 at 0.00005pt
\font\c_other_cctab=cmr10 at 0.00006pt
\font\c_str_cctab=cmr10 at 0.00008pt
\font\g__regex_state_active_intarray=cmr10 at 0.00009pt
\font\g__regex_thread_info_intarray=cmr10 at 0.0001pt
\font\g__regex_submatch_prev_intarray=cmr10 at 0.00012pt
\font\g__regex_submatch_begin_intarray=cmr10 at 0.00014pt
\font\g__regex_submatch_end_intarray=cmr10 at 0.00015pt
\font\g__regex_balance_intarray=cmr10 at 0.00017pt
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
\font\c_code_cctab=cmr10 at 0.00018pt
\font\c_document_cctab=cmr10 at 0.0002pt
\font\SOUL@tt=ectt1000
403736 words of font info for 28 preloaded fonts
1141 hyphenation exceptions
Hyphenation trie of length 387445 has 8904 ops out of 35111
143 for language 85
110 for language 84
138 for language 83
7 for language 82
12 for language 81
53 for language 80
127 for language 79
195 for language 78
71 for language 77
248 for language 76
62 for language 75
66 for language 74
119 for language 72
43 for language 71
58 for language 70
7 for language 69
194 for language 68
37 for language 67
23 for language 66
852 for language 65
852 for language 64
21 for language 63
38 for language 62
77 for language 60
58 for language 59
206 for language 58
25 for language 57
216 for language 56
27 for language 55
37 for language 54
229 for language 53
38 for language 52
21 for language 51
147 for language 38
185 for language 37
18 for language 36
50 for language 35
460 for language 34
235 for language 33
207 for language 32
39 for language 31
76 for language 30
40 for language 29
89 for language 28
31 for language 27
113 for language 24
145 for language 23
377 for language 22
224 for language 21
265 for language 20
60 for language 19
63 for language 18
19 for language 17
14 for language 16
3 for language 14
21 for language 13
54 for language 12
36 for language 11
5 for language 10
148 for language 7
97 for language 6
137 for language 5
475 for language 4
478 for language 3
2 for language 1
181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on header2893923cc1d3ceea96ca5626c6488c1df4dee932.log.
And here are the contents of the log file referred to above.
First of all: This package looks very promising. I didn't know it yet, but I was waiting for something like this my whole life ๐
I have followed the instructions:
(require 'calctex)
calctex-mode
'1/x
)This prints \frac{1}{x}
in the calc buffer, but doesn't actually render the image. Am I missing something? Also, I my Emacs instance starts lagging a lot after entering the first formula.
#1 points out some installation trouble. Produce clear instructions that indicate how to install everything from clean.
Great package!
I have an issue with matricies not rendering correctly after being processed by latex, that makes this (rendered by Big language mode):
[[1,2,3]
[4,5,6]
[7,8,9]]
renders like so (by LaTeX):
(1)23456789
The generated LaTeX that I get, when turning off calctex-mode
looks like this:
\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}
which renders correctly on quicklatex.com
Could it be an issue with the parsing?
Provided more detail
A quick guide on how to install this package on spacemacs, (with the appropriate with-eval-after-load 'org) would be very helpful. I would love to use this package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.