# Tag Info

19

As mentioned in the comments, \tikz[baseline=(X.base)]{% works for this \documentclass{article} \usepackage{pgf,tikz} \makeatletter \begin{document} \gdef\drawfontframe#1{% \tikz[baseline=(X.base)]{% \node[rectangle,draw,inner sep=0pt,outer sep=0pt] (X){#1}; \draw[red, line width=0.4pt] (X.text) circle(0.4pt)[fill=red] -- (X.base east);}% ...

15

You need to use baseline on the tikzpicture, not on the nodes. As Tom Bombadil mentioned in the comments you can use current bounding box.center to put the center of the TikZ picture on the baseline. I would also add an yshift to center it around the middle of the = sign. -.5ex seems to do it. \documentclass{article} \usepackage{tikz} \begin{document} ...

13


4

I tried to adjust the label anchoring by adding "anchor=mid" various places to no avail. I encountered a similar lack of avail in answering How can I force TikZ pin angle? Using the same Extreme Hack that I used that, I got something that works. The key details are: (not really related) use anchor=base on the main node and baseline=0pt on the ...

3

Without changing anything in your tree-syntax, the tikz-qtree package allows you to get the right result: \documentclass{scrreprt} \usepackage{tikz-qtree} \begin{document} \Tree[.table [.thead [.tr [.th [.\textit{Vorname} ] ] [.th [.\textit{Nachname} ] ] ] ] ...

3

Is this what you want? \begin{tikzpicture} [mainbullet/.style={rectangle, minimum size=0.3cm, draw=orange!100, fill=orange!100, thick}, maintitle/.style={rectangle, opacity=0.5}] \node[mainbullet] (experiencebullet) at (0, -23) {}; \node[maintitle] (experiencetitle) [right=10mm of experiencebullet.south east, anchor=base west] {Experience}; ...

3

The height of the \tikz in the definition of \circled is responsible for the added line spacing. One can treat the height of an object as zero with the \smash{} macro. So here, I \smash{\tikz[...]{...}}. Of course, this now makes overlap a possibility. In an effort to combat this, I reduced the minimum size of the circle to 1.4em. % !TEX encoding = ...

2

Not sure if this helps but, introducing a \strut after every node text will adjust bottom node's limit. \documentclass{article} \usepackage{fontspec} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture,baseline,every node/.style={draw,red,inner sep=0pt,outer sep=0pt}]% \node [align=left,text width=5em] (moonfact) {The moon is ...

1

Using baseline option in tikz was the solution. Here is the MWE that produces the desired result: \documentclass{article} \usepackage{tikz} \newcommand{\rbox}[1]{ \begin{tikzpicture}[baseline] \node[rounded corners=3pt, draw, anchor=base]{#1}; \end{tikzpicture} } ...

1

Use \raisebox to adjust the height. It's a trial and error process, but it works fine. \titlegraphic{ \raisebox{10pt}{\includegraphics[width=2cm]{NCSE}} \hfill% \includegraphics[width=2cm]{KENT-Blue} } Or, you could use \raisebox for the second picture, and put in a negative value for the first argument.

1

This is another attempt. minipage is used with [b] alignment Code \documentclass{beamer} \usetheme{Warsaw} \usepackage{graphicx} \usepackage{mwe} \title{Title} \author{A.~Author} \institute{MWE} \titlegraphic{ \begin{minipage}[b]{0.49\textwidth} \centering \includegraphics[height=1.5cm,width=2cm]{example-image-A} \end{minipage} \hfill% ...

Only top voted, non community-wiki answers of a minimum length are eligible