Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
3
votes
1
answers
859
views
How can I fix things when LaTex issues a package minted error for "Pygments" or pigmentize?
I am trying to install the "Pygments" package to Python via terminal on my Mac so that I can utilize the "minted" package in Latex. I have downloaded the package via the terminal by using the following code: curl https://bootstrap.pypa.io/get-pip.py > get-pip.py followed by: sudo python get-pip.py a...
I am trying to install the "Pygments" package to Python via terminal on my Mac so that I can utilize the "minted" package in Latex.
I have downloaded the package via the terminal by using the following code:
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
followed by:
sudo python get-pip.py
and then
sudo pip install pygments
It took a couple tries of repeating the same commands but it finally successfully installed. I don't know what to do now though. I'm still getting the same error from LaTex:
Package minted Error: You must have `pigmentize' installed to use this package.
Does anyone have any experience with this issue and could possibly provide some assistance?
Put1demerde
(31 rep)
Nov 4, 2019, 02:21 AM
• Last activity: Jan 22, 2025, 05:02 AM
3
votes
1
answers
149
views
Continuous scrolling problem in TexShop preview
I am using TexShop on Mac OS. Everything works fine, the pdf is generated and I can do continuous scrolling. However, when I view the pdf in (a) full screen mode and (b) zoom a page of this pdf, I get stuck with the same page and there is no continuous scrolling possible.
I am using TexShop on Mac OS. Everything works fine, the pdf is generated and I can do continuous scrolling. However, when I view the pdf in
(a) full screen mode and (b) zoom a page of this pdf,
I get stuck with the same page and there is no continuous scrolling possible.
seeker
(131 rep)
Oct 19, 2023, 03:36 PM
• Last activity: Jul 17, 2024, 03:03 AM
4
votes
1
answers
255
views
Unable to execute arara (a TeX automation tool) from the Terminal
I can't execute `arara` (a command that is part of the TeXLive distribution) from the Terminal using bash shell. I can execute `tex` which resides in the same directory. Evans-iMac:~ evanaad$ cd ~ Evans-iMac:~ evanaad$ which tex /Library/TeX/texbin/tex Evans-iMac:~ evanaad$ echo $PATH /Library/Frame...
I can't execute
arara
(a command that is part of the TeXLive distribution) from the Terminal using bash shell.
I can execute tex
which resides in the same directory.
Evans-iMac:~ evanaad$ cd ~
Evans-iMac:~ evanaad$ which tex
/Library/TeX/texbin/tex
Evans-iMac:~ evanaad$ echo $PATH
/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools
Evans-iMac:~ evanaad$ ls /Library/TeX/texbin
...
amstex mkofm
arara mkpic
arlatex mkt1font
...
fragmaster teckit_compile
gbklatex tex
gbkpdflatex tex2aspc
...
Evans-iMac:~ evanaad$ which arara
Evans-iMac:~ evanaad$ arara --version
-bash: arara: command not found
My computer is iMac (21.5-inch, Late 2013) with some hardware upgrades
My OS is macOS Catalina v. 10.15.7
My TeXLive version is TeX 3.141592653 (TeX Live 2024)
I have jdk installed java 19.0.2 2023-01-17 (this is, afaik, the latest version that can be installed on macOS Catalina)
I don’t know why this happens.
How can I rectify this?
Evan Aad
(945 rep)
Jul 7, 2024, 10:24 AM
• Last activity: Jul 7, 2024, 10:49 AM
2
votes
6
answers
3931
views
Do any text editors for iOS and iPadOS support Markdown + Latex commands with preview?
My requirements are a markdown editor for iOS which supports inline Latex syntax (and preview). Limited Latex support is fine, full support is better, extensible is best. I’m looking for something better than Pages which supports a very small subset of Latex and has limited markdown support. What fr...
My requirements are a markdown editor for iOS which supports inline Latex syntax (and preview).
Limited Latex support is fine, full support is better, extensible is best. I’m looking for something better than Pages which supports a very small subset of Latex and has limited markdown support.
What free or paid options exist?
MadHatter
(331 rep)
Oct 15, 2015, 08:39 PM
• Last activity: Dec 6, 2023, 03:05 AM
3
votes
0
answers
208
views
Keynote equation export to PDF shows different
I am writing an equation with an absolute value: ``` d(c,x)=|c_1-x_1|+|c_2-x_2| ``` In Keynote, it looks good: [![Screenshot of the Edit Equation window inside of Keynote with the equation rendered properly with the absolute notation][1]][1] But when I export to PDF, the equation becomes [![Screensh...
I am writing an equation with an absolute value:
d(c,x)=|c_1-x_1|+|c_2-x_2|
In Keynote, it looks good:
![Screenshot of the Edit Equation window inside of Keynote with the equation rendered properly with the absolute notation ][1]
But when I export to PDF, the equation becomes
![Screenshot of the same equation in a PDF but the absolute notation is not rendered ][2]
(absolute notation is not rendered).
I am using Keynote version 13.2 (7038.0.87). Does anyone have the same issue?
Shuffle-Official
(101 rep)
Oct 6, 2023, 05:30 PM
• Last activity: Oct 6, 2023, 06:45 PM
0
votes
0
answers
25
views
Minimal latex installation broken after upgrade
I had MacOS 12 with basic tex installed (from here https://tug.org/mactex/ ). I basically only need to convert tex files (using several basic packages) to pdf and the `texi2pdf` command-line tool was perfect for that (no need to download 5GiB of files I'm never going to use). However after upgrade t...
I had MacOS 12 with basic tex installed (from here https://tug.org/mactex/ ). I basically only need to convert tex files (using several basic packages) to pdf and the
texi2pdf
command-line tool was perfect for that (no need to download 5GiB of files I'm never going to use).
However after upgrade to MacOS 13 the texi2pdf
binary disappeared and reinstalling basic tex does not re-create it (using find over the entire drive returns no results for texi2pdf
). Has anyone had such an issue?
martinkunev
(251 rep)
Jun 18, 2023, 08:32 PM
4
votes
3
answers
5852
views
Is it possible to render $\LaTeX$ in Safari?
Is there a Safari extension for rendering LaTeX in webpages? That is, take expressions like `$...$` and replace them in the page with the rendered LaTeX. I couldn’t find anything on Google.
Is there a Safari extension for rendering LaTeX in webpages? That is, take expressions like
$...$
and replace them in the page with the rendered LaTeX.
I couldn’t find anything on Google.
qwenty
(143 rep)
Feb 7, 2015, 03:01 PM
• Last activity: Apr 10, 2023, 01:03 PM
1
votes
2
answers
600
views
Is there a way to use math symbols in TextEdit?
For example LaTex, or any other way to show mathematical symbols in TextEdit ? It's possible to use math symbols in LibreOffice and Microsoft Word, maybe the same is possible in TextEdit ?
For example LaTex, or any other way to show mathematical symbols in TextEdit ?
It's possible to use math symbols in LibreOffice and Microsoft Word, maybe the same is possible in TextEdit ?
wengen
(281 rep)
Mar 6, 2023, 07:40 PM
• Last activity: Mar 7, 2023, 02:30 AM
0
votes
1
answers
682
views
PDF reader for iPad that refreshes automatically after changes to the PDF?
I am looking for a pdf reader for my iPad Pro, which automatically refreshes the pdf when another app makes changes to the pdf. I using Vim in a-Shell to edit my LaTeX document and display the pdf next to it. When I use pdflatex to compile the LaTeX-file, I want the pdf reader to automatically show...
I am looking for a pdf reader for my iPad Pro, which automatically refreshes the pdf when another app makes changes to the pdf.
I using Vim in a-Shell to edit my LaTeX document and display the pdf next to it. When I use pdflatex to compile the LaTeX-file, I want the pdf reader to automatically show the then new generated pdf.
The only apps I found so far for this are the Readdle-Apps “Documents” and “PDF Expert”, but both require monthly payments after a short trail period and I cannot afford to pay monthly for something I am using regularly but not daily. I am more than happy to make a one-time-payment for it.
Does anybody know such a pdf reader?
weitewand
(1 rep)
Mar 1, 2023, 09:15 AM
• Last activity: Mar 1, 2023, 10:31 AM
2
votes
1
answers
3275
views
Install new LaTeX packages in Keynote, Pages
I was trying to make a presentation in Keynote since it had a direct LaTeX equation writer embedded. However, I soon realised that some of the commands (and therefore packages) were not supported. I've searched online and it seemed that the only possibility would be to add equations as a PDF. But I...
I was trying to make a presentation in Keynote since it had a direct LaTeX equation writer embedded. However, I soon realised that some of the commands (and therefore packages) were not supported. I've searched online and it seemed that the only possibility would be to add equations as a PDF. But I was wondering if there is a way to install new packages directly in the blahTeX used in Keynote or, even better, make Keynote use the MacTeX I've installed.
Thanks!
PensoGlide
(23 rep)
Nov 19, 2021, 12:47 PM
• Last activity: Feb 1, 2023, 02:23 PM
-3
votes
1
answers
120
views
Do we need MacTex for Lyx on Mac?
MacTex is apparently 4+GB to install. It says on the Lyx downloads that MacTex is a necessary dependency. https://www.lyx.org/Download Do we really need MacTex?
MacTex is apparently 4+GB to install. It says on the Lyx downloads that MacTex is a necessary dependency.
https://www.lyx.org/Download
Do we really need MacTex?
Alexander Mills
(489 rep)
Oct 25, 2022, 05:59 PM
• Last activity: Oct 30, 2022, 12:26 PM
3
votes
1
answers
786
views
Completing equations in Keynote using keyboard only
I'm making a Keynote presentation with a lot of equations. To add an equation, I can press option-CMD-E, and then I can type the LaTeX code for the equation. However, to complete editing the equation and insert it into the document, I have to move the mouse pointer to the "Insert" button and click i...
I'm making a Keynote presentation with a lot of equations. To add an equation, I can press option-CMD-E, and then I can type the LaTeX code for the equation. However, to complete editing the equation and insert it into the document, I have to move the mouse pointer to the "Insert" button and click it.
My question is whether there is a way to do this using only the keyboard, so that I can enter equations into the text without using the trackpad at all. Here's what I've tried:
* press enter (this just puts a newline in the LaTeX code)
* all possible combinations of enter plus one or modifier keys (shift, ctrl, option, CMD)
* attempting to select the "Insert" button using the tab key (but it doesn't do anything)
Is there something else I could try?
The same issue affects Pages as well.
N. Virgo
(2084 rep)
Jan 24, 2022, 02:16 AM
• Last activity: Feb 15, 2022, 09:21 PM
1
votes
0
answers
510
views
Emacs can't find latexmk
I've been using org-mode in Emacs for a while now; specifically, I've installed emacs-mac with `brew install --cask emacs-mac` and then installed Doom Emacs. A problem I've consistently had with my setup, however, is that when running `org-latex-export-to-pdf` or running latex code is an org-mode so...
I've been using org-mode in Emacs for a while now; specifically, I've installed emacs-mac with
brew install --cask emacs-mac
and then installed Doom Emacs.
A problem I've consistently had with my setup, however, is that when running org-latex-export-to-pdf
or running latex code is an org-mode source code block, I always get the same error: zsh:1: command not found: latexmk
. I've been trying to fix this forever; I installed and set up the exec-path-from-shell
package, I gave Emacs full disk access, I gave Ruby full disk access (though emacs-mac doesn't seem to be run from a Ruby script anyway), and I've tried adding /Library/TeX/texbin
to my exec-path and $PATH variable in emacs through my config multiple times. Nothing's been working, and I can't figure out why.
Is there anyone that could help me with this?
UPDATE:
I've simply hardcoded org-latex-pdf-process with the full path to pdflatex, which works fine. I'm still not sure why Emacs can't find it when all the paths are set, but whatever, it's working now I guess.
luardemin
(11 rep)
Oct 17, 2021, 01:54 AM
• Last activity: Oct 17, 2021, 04:46 AM
0
votes
2
answers
5877
views
Can I write Latex in Notes?
I am using my iPad (with pencil) and my MacBook to write a document. I type using my Mac and draw some drawings in between texts. I want to add some Latex formulas, however, but I'm not sure how to do this. Is it possible to write Latex in notes or more generally, is there any software that lets me...
I am using my iPad (with pencil) and my MacBook to write a document. I type using my Mac and draw some drawings in between texts. I want to add some Latex formulas, however, but I'm not sure how to do this.
Is it possible to write Latex in notes or more generally, is there any software that lets me type (in macOS), draw (on iPad), and use Latex formulas **simultaneously**?
Bat
(161 rep)
Apr 25, 2021, 06:48 AM
• Last activity: Sep 23, 2021, 03:34 AM
8
votes
3
answers
23273
views
Anki + Latex not working : I have installed BasicTex + dvipng
I'm trying to get Anki to work with Latex. Currently, when I open a flashcard with latex on it I get: `Generated file: /var/folders/41/v5plvhx12wg0qlrj9h_l0g680000gn/T/anki_temp/tmp.tex Have you installed latex and dvipng?` However, I have already installed BasicTex + dvipng. In fact, when I run `wh...
I'm trying to get Anki to work with Latex. Currently, when I open a flashcard with latex on it I get:
`Generated file: /var/folders/41/v5plvhx12wg0qlrj9h_l0g680000gn/T/anki_temp/tmp.tex
Have you installed latex and dvipng?`
However, I have already installed BasicTex + dvipng. In fact, when I run
which latex
and which dvipng
on terminal I get:
/Library/TeX/texbin/latex
and /Library/TeX/texbin/dvipng
.
So I need some help. Would anyone know how to make Anki work with Latex? Thanks for your help!
Guilherme Salome
(221 rep)
Oct 6, 2015, 04:09 PM
• Last activity: Sep 5, 2021, 03:34 PM
12
votes
3
answers
24996
views
How can I get LaTeX working on Anki?
Originally I was going to ask a question about how to get [LaTeX][1] working in [Anki][2], but as I was writing the question, I was trying to solve the problem myself. I thought others may benefit from my findings, so I decided to post them here. If you notice that any of my steps are wrong, please...
Originally I was going to ask a question about how to get LaTeX working in Anki , but as I was writing the question, I was trying to solve the problem myself. I thought others may benefit from my findings, so I decided to post them here. If you notice that any of my steps are wrong, please let me know. And I was still unable to get it to work, so if you scroll down to the end, you can see where I'm stuck and still need help.
The current issue is: **How can I install libgd?**
----------
I'm trying to make Anki work with LaTeX . The only information I could find about how to do this is from this page :
> * [...] to use LaTeX, you have to install it separately - it is not bundled with Anki
> * [...] on OSX use MacTex
> * Dvipng must also be installed.
> * On OSX, if you use MacPorts or similar to install LaTeX, make sure latex and dvipng are linked in /usr/bin.
The standard installation of MacTex takes up 3GB, far more than I believe is necessary, since I am not going to use its GUI application. I just need the LaTeX library, if I understand it correctly, which should be way less than 3GB. Therefore, I'm installing the BasicTeX version instead, which only takes up about 100MB.
I'm not sure if I already have Dvipng installed or not, so I'm restarting Anki to see if it works or not. I got the following error:
> Error executing dvipng. [...] Output written on tmp.dvi [...]
So I probably need to install dvipng... The Install readme has the following information:
> Installing dvipng should be simple: merely
./configure',
make', and
`make install'.
>
> Prerequisites:
>
> * The GD Graphics Draw library, libgd
> * The path-searching library kpathsea
> * libpng and libz
Again, I'm not sure which, if any, of these prerequisites I already have installed, so I'm just going ahead with the installation in hopes of error messages guiding me to the right path.
After executing ./config
, it gives the error:
> configure: error: cannot find/use libpng
... which I think is weird since the readme states:
> To be able to compress and write PNG files to disk, dvipng (or
really libgd) uses libpng which in turn uses libz. These should be
available on any modern system, if not, download them and install
them.
I went to the libpng website , and tried finding a "current binary" that works with my OS (10.6/i386), but it seems that none of the latest 3 versions have a binary that is available to download. So I went to the "old binaries" section, which took me to this website , which has libpng v1.4.5. I installed the "Individual Installer package" for libpng.
Now that it's installed, I tried installing Dvipng again, and it now gives the following error:
> cannot find/use libgd
> This drawing library can be downloaded at http://www.boutell.com/gd
When I go to that website , I see it says that the page moved and that it is currently down. There is only a link to the source files and no binary distribution. I'm not sure where I should go from here... should I download the source and compile it somehow? Once it's complied what do I do with it? Do I run some file it generates? Would I move files it generates to specific folders? How would Dvipng know how to access it? I'm unfamiliar with how to do something like this, so any help would be appreciated.
----------
Here's a summary (so far) of the dependency hierarchy which must be installed in order to get LaTeX to work with Anki:
- MacTeX : Installed (got the BasicTeX version to save a lot of disk space).
- Dvipng : Not installed (can't install without libgd).
- libpng : Installed (got the Individual Installer package).
- libgd: Not installed (not sure how to install this).
- ???
----
Other questions:
- Is there a better, reliable method to know if any of these dependencies are installed rather than running an installer which depends on them and hoping for a meaningful error message?
Senseful
(24445 rep)
Jun 10, 2011, 04:16 AM
• Last activity: Jun 21, 2021, 05:18 PM
6
votes
2
answers
6834
views
Keynote: change the font of an equation
I'm using the built-in equation tool in Keynote. Is there a way to change the font used by default in Keynote? Also, I see that when I try to use text in the equation via `\text{}` the font is in bold mode. How can I change that? Note that a relevant Keynote question has been asked [here][1]. As an...
I'm using the built-in equation tool in Keynote. Is there a way to change the font used by default in Keynote?
Also, I see that when I try to use text in the equation via
As an example for the bold text see the picture which was generated by
Note that this question is not a duplicate of this one . All of the options mentioned in the linked question are such that simply add a characteristic to the font (italics, bold, roman etc.) but they do not change the font.
\text{}
the font is in bold mode. How can I change that?
Note that a relevant Keynote question has been asked here .
As an example for the font change see this picture

\Gamma \text{ is fixed}

bobsacameno
(603 rep)
Jan 10, 2019, 08:18 AM
• Last activity: Jun 8, 2021, 02:02 PM
1
votes
0
answers
129
views
TexStudio crashes when "Compile and View" in High Sierra 10.13.6
I use a macOS High Sierra 10.13.6 and I try to "Compile and View" a text with TexStudio 3.1.1 but the program crashes and quits when the PDF Viewer is selected to be embedded in the app. I must say that the functionality of "Compile" works fine, as well as "Compile and View" in external PDF Viewer....
I use a macOS High Sierra 10.13.6 and I try to "Compile and View" a text with TexStudio 3.1.1 but the program crashes and quits when the PDF Viewer is selected to be embedded in the app.
I must say that the functionality of "Compile" works fine, as well as "Compile and View" in external PDF Viewer. However, I am interested in having the preview inside the app since it makes the workflow smoother. I tried everything I could and followed the proposed solution of installing older versions of TexStudio (2.12.22). Unfortunately, none of them solved my concern.
Thanks,
Ignasi Piqué Muntané
(141 rep)
Mar 31, 2021, 07:52 PM
1
votes
0
answers
87
views
Vim in Iterm2 closes after compiling Latex file
When I run ``` !pdflatex % ``` in Macvim, the latex file compiles and I am not exited from Macvim. In iterm2, the compilation occurs and them I am taken out of Vim back into the terminal prompt. Any ideas why the behavior is different? I have looked around and to my surprise haven't seen anything ab...
When I run
!pdflatex %
in Macvim, the latex file compiles and I am not exited from Macvim. In iterm2, the compilation occurs and them I am taken out of Vim back into the terminal prompt. Any ideas why the behavior is different? I have looked around and to my surprise haven't seen anything about it.
aladdinoscopy
(11 rep)
Feb 21, 2021, 06:10 AM
2
votes
0
answers
678
views
Changing default font for \mathcal in “Pages” equations
I recently asked a [question](https://tex.stackexchange.com/questions/576754/changing-default-font-for-mathcal-in-pages-equations-mac?noredirect=1#comment1452117_576754) on TEX StackExchange but thought it would be more appropriate to ask it here. I am using Pages version 10.3.5 (7029.5.5). Typing i...
I recently asked a [question](https://tex.stackexchange.com/questions/576754/changing-default-font-for-mathcal-in-pages-equations-mac?noredirect=1#comment1452117_576754) on TEX StackExchange but thought it would be more appropriate to ask it here.
I am using Pages version 10.3.5 (7029.5.5). Typing in TeX environments in Farsi is an absolute pain even though the output is fine so I was writing in Pages. My problem is, I want to type this "F" in an equation:
But
The default font for

\mathcal{}
gives me fancy RSFS characters like this:

mathcal
is the Computer Modern one everywhere else. Though I read in jksoegaard's answer in this [question](https://apple.stackexchange.com/questions/378657/does-pages-support-latex-extensions) that Pages doesn't support installing LaTeX packages, I wanna know if I can manage to get the font I want.
Zara
(121 rep)
Dec 29, 2020, 09:15 AM
Showing page 1 of 20 total questions