Graphics, Figures & TablesLaTeX Font in Illustrator CS6

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

LaTeX Font in Illustrator CS6

Post by ghostanime2001 »

Before, I used to use TikZ & PSTricks solely for my diagrams, but now TikZ is becoming much complicated & time consuming for my diagrams, so I have found Illustrator CS6 as a better substitute. However, I have to now use vectors in my diagrams. When I compile code with vectors and try to open the resulting pdf file with illustrator I get a font missing error message. I would like to install this font to my windows font folder so I can draw diagrams over the latex compiled vector characters in illustrator CS6. I have attached a screenshot of the error.

Here is the latex code:

Code: Select all

\documentclass[fleqn]{article}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{array}
\usepackage{bigstrut}
\usepackage{booktabs}
\usepackage{bpchem}
\usepackage{calc}
\usepackage{cancel}
\usepackage{chemfig}
\usepackage{chemmacros}
\usepackage{cool}
\usepackage[shortlabels,inline]{enumitem}
\usepackage[b]{esvect}
\usepackage{fix-cm}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage{fouridx}
\usepackage{fullpage}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{lewis}
\usepackage{mathtools}
\usepackage{lmodern}
\usepackage{mlist}
\usepackage{makebox}
\usepackage[version=3]{mhchem}
\usepackage{multienum}
\usepackage{multirow}
\usepackage{nccboxes}
\usepackage{pbox}
\usepackage{pgf}
\usepackage{pgfkeys}
\usepackage{physics}
\usepackage{pifont}
\usepackage{pst-math}
\usepackage{pst-node}
\usepackage{pst-2dplot}
\usepackage{pst-plot}
\usepackage{pstricks}
\usepackage{tensor}
\usepackage{tikz}
\usetikzlibrary{matrix,calc}
\usepackage{textcomp}
\usepackage{type1cm}
\usepackage{ulem}
\usepackage{wasysym}
\pagestyle{empty}
 
\makeatletter
\def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
%\end{macrocode}
%Construction of the arrow:
% \begin{macrocode}
\def\traitfill@#1#2#3#4{%
$\m@th\mkern2mu\relax#4#1\mkern-1.5mu%on met \relbaredd au d\’ebut
\cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill%remplit avec relbareda
\mkern0mu#3$%
}

\makeatletter
    \def\overvect@#1#2#3{\vbox{\ialign{##\crcr%
     \noalign{\kern0pt\nointerlineskip}#1#2\crcr%
     \noalign{\kern1.3pt\nointerlineskip}$\m@th\hfil#2#3\hfil$\crcr}}}

\newcommand{\ci}[1]{\tikz[baseline=(char.base)]{\node[shape=circle,draw,inner sep=1pt] (char) {$#1$};}}
\begin{document}
\noindent \ci{1} vectors in a straight line (1 dimensional) \\ \\
\begin{pspicture}(0,0)
\psline{<->}(0,0)(10,0)
\psline[arrows=<->,bracketlength=10](1.5,0)(8.5,0)
\psline{<->}(3.5,0)(6.5,0)
\psline(1.5,0.15)(1.5,-0.15)
\psline(8.5,0.15)(8.5,-0.15)
\qdisk(5,0){2pt}\qdisk(3.5,0){1.5pt}\qdisk(6.5,0){1.5pt}
\uput{1.2pt}[r](10,0){$x$}
\uput[-90](4.2,0){$-\vv{i}$}
\uput[-90](5.7,0){$\vv{i}$}
\uput[90](3.36,0){$-1$}
\uput[90](6.48,0){$1$}
\uput{7pt}[-90](8.47,0){$a$}
\uput{7pt}[-90](1.36,0){$-a$}
\uput{5pt}[-90](5,0){o}
\end{pspicture}
\end{document}
Attachments
error-illustrator.png
error-illustrator.png (8.7 KiB) Viewed 4119 times
Last edited by ghostanime2001 on Tue Jun 25, 2013 8:43 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

LaTeX Font in Illustrator CS6

Post by localghost »

ghostanime2001 wrote:Before, I used to use TikZ & PSTricks solely for my diagrams, but now TikZ is becoming much complicated & time consuming for my diagrams, so I have found Illustrator CS6 as a better substitute. […]
Your first post related to LaTeX fonts in Illustrator is now about two months ago. And as it seems you didn't really get a solution. Wouldn't you consider that a time consuming problem? With TikZ/PGF or PSTricks people here could help you much easier. Furthermore I wouldn't consider the resulting output of your example a complicated diagram. So you should think about the method from which you will benefit more. A commercial program that only a few people here use or a LaTeX graphics package that has lots of fans (including me).

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[b]{esvect}
\usepackage{mathtools}
\usepackage{tikz}

\makeatletter
\def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
%\end{macrocode}
%Construction of the arrow:
% \begin{macrocode}
\def\traitfill@#1#2#3#4{%
$\m@th\mkern2mu\relax#4#1\mkern-1.5mu%on met \relbaredd au d\’ebut
\cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill%remplit avec relbareda
\mkern0mu#3$%
}

\def\overvect@#1#2#3{\vbox{\ialign{##\crcr%
  \noalign{\kern0pt\nointerlineskip}#1#2\crcr%
  \noalign{\kern1.3pt\nointerlineskip}$\m@th\hfil#2#3\hfil$\crcr}}}
\makeatother

\newcommand{\ci}[1]{%
  \tikz[baseline=(char.base)]{%
    \node[shape=circle,draw,inner sep=1pt] (char) {$#1$};%
  }%
}

\begin{document}
  \noindent \ci{1} vectors in a straight line (1 dimensional)\par\medskip\noindent
  \begin{tikzpicture}[>=stealth,thick]
    \draw[fill=black] (0,0) circle[radius=1.5pt] node[below=3pt] {O};
    \draw[<->] (-1.5,0) node[above=3pt] {$\mathllap{-}1$} -- (1.5,0) node[above=3pt] {$1$} node[pos=0.25,below=3pt] {$\mathllap{-}\vv{i}$} node[pos=0.75,below=3pt] {$\vv{i}$};
    \draw[fill=black] (-1.5,0) circle[radius=1pt] (1.5,0) circle[radius=1pt];
    \draw[|<->|] (-3.5,0) node[below=3pt] {$\mathllap{-}a$} -- (3.5,0) node[below=3pt] {$a$};
    \draw[<->] (-5,0) -- (5,0) node[right] {$x$};
  \end{tikzpicture}
\end{document}

Thorsten
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

LaTeX Font in Illustrator CS6

Post by ghostanime2001 »

Your first post related to LaTeX fonts in Illustrator is now about two months ago. And as it seems you didn't really get a solution. Wouldn't you consider that a time consuming problem?
yes you're right it was time consuming
Furthermore I wouldn't consider the resulting output of your example a complicated diagram.
I am going to add more things later on and expand the diagram

btw, I want arrows that are wider, the arrows in my diagram are too small
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

LaTeX Font in Illustrator CS6

Post by localghost »

ghostanime2001 wrote:[…] I am going to add more things later on and expand the diagram. […]
That's still no sorcery. Just try and ask targeted questions if necessary (in another topic).
ghostanime2001 wrote:[…] […] I want arrows that are wider, the arrows in my diagram are too small
The development version of a new library offers an arrow head option. For the time being you can use something like this. Just incorporate that into my example.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{fix-cm}
\usepackage[b]{esvect}
\usepackage{mathtools}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings}

\begin{document}
  \begin{tikzpicture}[>=stealth]
    \draw[->] (0,0) -- (1,0);
    \draw[
      decoration={markings,mark=at position 1 with {\arrow[ultra thick]{>}}},
      postaction={decorate}
    ] (0,-0.5) -- (1,-0.5);
    \draw[
      decoration={markings,mark=at position 1 with {\arrow[scale=2]{>}}},
      postaction={decorate},
      shorten >=0.4pt
    ] (0,-1) -- (1,-1);
  \end{tikzpicture}
\end{document}
Post Reply