The tag has no usage guidance.

learn more… | top users | synonyms

21
votes
2answers
3k views

Align an equation and a tikz picture with anchor and baseline

I'm trying to get the math part the equation to be centered with the tikz picture: \begin{equation} \mathcal{G} = \begin{tikzpicture}[] \tikzstyle{vertex}=[anchor=base,baseline, ...
21
votes
2answers
5k views

How to align a series of TikZ pictures at the baseline

I am trying to align a series of pictures made up of letters, using TikZ. Having tried almost all combinations of the baseline key it is obvious I am missing something. Here is a MWE (currently ...
10
votes
1answer
4k views

How to add a shift to tikz baseline.

I use the following code to draw a tikz image between some text: \documentclass{article} \usepackage{tikz} \usetikzlibrary{ calc } \begin{document} Hello\tikz[baseline=(current bounding ...
10
votes
1answer
141 views

Drawing lines along text baselines

I'm not very familiar with the world of TeX and its flavors, and I'm having trouble evaluating whether it fits my needs before I dive into it. TeX and its ilk can draw horizontal line strokes, but can ...
9
votes
2answers
368 views

Uneven line height in XeTeX

I'm embarking on a journey to create a conference abstract book using XeTeX and got stuck within five minutes: The missing 'g' in 'somethin' influences the line height of the following line. ...
7
votes
2answers
140 views

Why \\ increases interline spacing before the command in center environment?

This is about the effect of the line breaking command "\\" in center environment. It appears that the command has the effect of increasing the interline spacing of text appearing before the command. ...
7
votes
1answer
67 views

Baseline issues with Computer Modern Math Extension

Context: in the Computer Modern Math Extension font (cmex), the baseline seems to be going through the top of every character. I have become aware of this by displaying various characters from the ...
6
votes
3answers
352 views

How can I calculate the length of the longest word in a node?

I would like to create an inline brace command \inline{} for xelatex using TikZ. The difficult part is calculating the text width for the node without hardcoding it into the tikzpicture environment. ...
6
votes
1answer
70 views

Baseline alignment for mtpro2 PARENS

I am using mtpro2 lite and I have the following issue when using the PARENS command, here is the minimal example \documentclass[12pt]{article} \usepackage{amsmath, amsfonts, amsthm, ...
5
votes
1answer
1k views

tikz picture inside of an enumerate environment

Is there a way I can make sure that the number of the enumerate environment stays in the top left of the tikzpicture? I'm using a custom environment that just wraps around the enumerate environment... ...
5
votes
2answers
96 views

tikz cannot find a node for use as a baseline

Minimal (non-)working example: \documentclass[tikz,border=2pt]{standalone} \usepackage{accsupp,xparse,hyperref} \usetikzlibrary{calc,fadings} ...
5
votes
1answer
156 views

TikZ: force two pictures to use the same baseline/frame of reference

I have two TikZ automata I would like to place side-by-side: However, I would prefer the 'start' nodes to be aligned vertically on the page. This happens automatically if I add help lines large ...
5
votes
1answer
52 views

Can lineskip depend on how close the boxes are horizontally?

TeX adds lineskip when two lines would get too close together. However, this ought to depend on whether the conflicting boxes in question are near each other horizontally, not just vertically. Is ...
4
votes
2answers
85 views

vertical spacing of entire section changes when using sciptsize environment for table

I have the following script: \documentclass{article} \usepackage{longtable} \linespread{1.5} \begin{document} % \section{paragraph 1} This is a paragraph lala allala lalla alala alla alla alal ala ...
4
votes
2answers
2k views

How to anchor labels in tikz for baseline alignment

LaTeX handles subscripts and superscripts nicely, automatically correcting for various sizing and placement issues. I am trying to build a function that works like subscripts and superscripts, but ...
4
votes
1answer
306 views

TikZ node in normal text

I would like to place a TikZ node inside normal text to get the fancy boxes. But the box is on the same baseline. I would like to get the text on the baseline. What can I do? \documentclass{article} ...
4
votes
1answer
224 views

Tikz positionning on the baseline

I have the following piece of code \begin{tikzpicture} [mainbullet/.style={rectangle, minimum size=0.3cm,draw=orange!100, fill=orange!100,thick}, % maintitle/.style={rectangle,opacity= 0.5}, % ...
4
votes
1answer
93 views

How to set the baseline of a box?

I want to change the baseline of a box so that the depth of the box is equal to that of a letter with a descender in the current font. So far I have only been successful in setting the baseline to ...
3
votes
2answers
102 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
3
votes
2answers
80 views

Express boxes properties in tikz coordinates

In my understanding, any LaTeX box displays such fundamental properties: .. and anything is wrapped into a LaTeX box. So, when I produce a tikz picture, it must be somehow wrapped into a box. ...
3
votes
1answer
39 views

Possible to vertically shift baseline without using a box?

I would like to adjust the relative vertical alignment (baseline) of stretches of text; I'm aware of \lower, \raise and \raisebox, but as far as I can see those commands require / represent boxes and, ...
3
votes
1answer
84 views

tikz circle with number change vertical space between lines

Arg, i try to replicate the diverse answers using tikz i read into this post and in this post, without success, my circle explode the space between lines. Don't understand why the result is ...
3
votes
1answer
138 views

qtree items do not have the same baseline

I drew a tree with the qtree package. However, this tree has no consistent baseline. Screenshot: MWE: \documentclass{scrreprt} \usepackage{qtree} \begin{document} \Tree[.table ...
2
votes
1answer
119 views

Rounded corner box in itemized environment

Here is the MWE: \documentclass{article} \usepackage{tikz} \newcommand{\rbox}[1]{ \begin{tikzpicture}[remember picture, overlay] \node[rounded corners=3pt, draw]{#1}; ...
1
vote
3answers
81 views

How to center the pictures to the same baseline on beamer titlepage?

Here is part of the code i used, \titlegraphic{ \includegraphics[width=2cm]{NCSE} \hfill% \includegraphics[width=2cm]{KENT-Blue} } I dont know the exact name on how to refer to this ...
1
vote
1answer
104 views

Is it possible to reference the baseline of the lowest line in multiline node with an arbitrary number of lines?

Question Can I automatically reference the lowest baseline of a node in TikZ? Situation I would like to draw a line under the lowest baseline of the node in red (not just moonfact.south west -- ...
1
vote
1answer
70 views

Specifying baseline in internal coordinates with graphicx package

I'm using the graphicx package. By default, included graphics are aligned with the baseline at the bottom of the image. I know how to make images vertically centered (using \vcenter) or top-aligned. ...
1
vote
0answers
99 views

The blank page between last chapter and list of symbols

I have problem with blank page but the answers I've found here didn't work. I have found two (unwanted) ways how to get rid of the page (under the code): \documentclass[12pt]{report} ...
0
votes
1answer
132 views

My baseline is messy after inserting image in ShareLatex

I'm learning how to use Latex and using it to design a pretty simple book. I've made almost everything, but I'm having trouble when I insert a image between some text, I want it on the top of the left ...
0
votes
1answer
31 views

linespacing local font environment [duplicate]

I have a multi-paragraph section of tiny-font within a larger document of normal-size text. The last paragraph within this section seems to get double spacing: I can fix the problem by putting a ...
0
votes
0answers
26 views

How to let wrapped lines insert baselines

I want to enclose two elements within a box vertically, and have the baseline of the higher line within that box vertically aligned with the baseline outside. I have the following code to do this: ...
0
votes
0answers
23 views

\baselineskip not changed within block [duplicate]

This really puzzles me: Attempting to set the baseline in a block (delimited by { and }) doesn't seem to have an effect for typed text, but works when a command creates the text. Question What are ...