The additional requirements to build LaTeX2AI from source are:
- A C++ compiler has to be available on the system. This repository includes a Visual Studio 2022 solution for Windows and a Xcode project for macOS.
python3
andgit
have to be available on the system.
-
Download and unpack the Adobe Illustrator SDK
-
Go to the sample code folder
<Adobe Illustrator SDK>/sample code
and rungit clone https://github.com/isteinbrecher/latex2ai.git
-
Go to
<Adobe Illustrator SDK>/sample code/LaTeX2AI
and rungit submodule update --init
-
Environment variables:
PYTHON_EXE
has to point to a validpython3
executable on the system.ILLUSTRATOR_EXE
has to point to the illustrator executable on the system (this path is used for debugging).
-
Open
<Adobe Illustrator SDK>/sample code/latex2ai/LaTeX2AI.sln
with Visual Studio, select the build type (Release or Debug) and compile the solution. It might be necessary to change the Windows SDK version forLaTeX2AI
to match the one available on your system. -
The compiled binary is located at
<Adobe Illustrator SDK>/sample code/output/win/x64/<Debug/Release>
. This directory has to be set as the Plugin directory in Illustrator. -
You have to set a link to the UI folder so Illustrator can find the user interface:
mklink /D "C:\Users\<USERNAME>\AppData\Roaming\Adobe\CEP\extensions\com.isteinbrecher.latex2ai" "<Adobe Illustrator SDK>\samplecode\latex2ai\ui"
-
Debugging of unsigned extensions has to be turned on (see the Adobe CEP cookbook):
- Open
regedit
- Go to the key
HKEY_CURRENT_USER/Software/Adobe/CSXS.11
- Add a new entry
PlayerDebugMode
of typestring
with the value of1
- Open
- Open
<Adobe Illustrator SDK>/sample code/latex2ai/LaTeX2AI.xcodeproj
with Xcode and compile the solution. - The compiled binary is located at
<Adobe Illustrator SDK>/sample code/output/
. This directory has to be set as the Plugin directory in Illustrator. - You have to set a link to the UI folder so Illustrator can find the user interface:
ln -s "<Adobe Illustrator SDK>\samplecode\latex2ai\ui" "~/Library/Application Support/Adobe/CEP/extensions/com.isteinbrecher.latex2ai"
- Debugging of unsigned extensions has to be turned on (see the Adobe CEP cookbook):
defaults write com.adobe.CSXS.11 PlayerDebugMode 1