I'm using the packages tipa
and tikz
in the document class beamer
. However, I'm having a hard time trying to combine them when drawing arrows. Look at the MWE below:
\documentclass{beamer}
\usepackage{tipa}
\usepackage{tikz} % if i remove package from preamble i get error message
\begin{document}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt]
\begin{frame}
\centering
Text [ t ] more text [ \textsubbridge{t} ]
\vspace{2em}
symbol 1 and symbol 2
\end{frame}
\begin{frame}
\centering
Text [ \tikz\node[na](t1){t}; ] more text [ \tikz\node[na](t2){\textsubbridge{t}}; ]
\vspace{2em}
\tikz\node[na](n1){symbol 1}; and \tikz\node[na](n2){symbol 2};
\begin{tikzpicture}[overlay]
\path[->,red,thick](n1) edge (t1);
\path[->,red,thick](n2) edge (t2);
\end{tikzpicture}
\end{frame}
\end{document}
Slide with no arrows:
Slide with arrows:
As you can see, when I add the arrow, it blocks part of the symbol, which is an important part of the symbol. How can I lower the arrow so that it doesn't cover any part of the second symbol?
PS: I know that beamer automatically loads the tikz
package. However, for this MWE I kept getting an error if I don't load it manually. I believe it has to do with the definition of the tikzstyle{na}
, but if I'm wrong, feel free to correct me.
tipauni
might be advisable as it will render searchable|copy-able|past-able Unicode characters in the output. If you want thebeamer
fonts to be intact, you can\usepackage[documentfont=CMUSansSerif]{tipauni}
.File tipauni.sty not found. ^^M
. I'm assuming that means I don't have access to Xe/LuaLaTeX.tipauni.sty
i.e. the actual package file. You might be using an old installation. From TeX Live 2022 onwardtipauni
will be by default present. If you are using TeX Live 2021, please trytlmgr install tipauni
. For installing the package locally; you can follow the instructions given here. Also simply adding the line in your code might not change the compiler. You have to manually change it from PDFLaTeX to Xe/LuaLaTeX.