# Tag Info

2

yshift does nothing because it only adds a value to the coordinates in TikZ's coordinate system, which has nothing to do with how the tikzpicture is drawn on the page. If you want them vertically centered, add baseline=(current bounding box.center) to both tikzpictures. If you want the two triangles vertically aligned, add baseline=(s3.south) as an option ...

0

The command \draw[blue] (0,1cm) circle (1cm); draws a circle of radius 1cm. The command \draw[gray,thin] (0,.25) circle (.25); draws a circle in the coordinate system of the axis. That is, it plots the set of all points that satisfy x^2 + (y-0.25)^2 = 0.25^2 within the axis coordinate system. Now note that the x scale and the y scale are different in your ...

1

Like this? Relevant segment of your MWE: % Draw the links between forces \path[->,thick,red] ([xshift=-3mm] substitutes.south east) edge ([xshift=-3mm] rivalry.north east) (users) edge (rivalry) (suppliers) edge (rivalry) ([xshift=-3mm] rivalry.south east) edge ([xshift=-3mm] entrants.north east) (entrants) edge (comment-rivalry) ; ...

2

Here are the relevant lines to be changed : %%%%%%%%%%%%%%%% % Draw the links between forces \path[->,thick] ([xshift=-2ex]substitutes.south east) edge ([xshift=-2ex]rivalry.north east) (suppliers) edge (rivalry) (users) edge (rivalry) (entrants) edge (comment-rivalry) ([xshift=-2ex]rivalry.south east) edge ([xshift=-2ex]entrants.north east);

2

A different approach that might meet your needs. EDIT I have extended the code to cater for your desire to have the banner at the top of the sheet (but beware of any typos). \documentclass{article} \usepackage{mwe} \usepackage{multicol} \newlength{\mylen} \setlength{\mylen}{\oddsidemargin} \addtolength{\mylen}{1in} % = distance from paper edge to textblock ...

3

pgfpages does the job fine: The text in no page is centred because \centering is applied when the paragraph ends, but you issue \newpage without ending the paragraph. \centering First way \par \begin{center} Second way \end{center} The second method adds vertical spacing while the first does not. For example: Code: \documentclass[a5paper, ...

1

If you don't want to shift the node itself (since that would shift the arrows), either you have to play around with adding space to your node text (negative to the left or positive to the right), or you have to add another node that contains your text. This second option has the advantage that you can directly specify the amount of shifting and not rely on ...

0

Just add \hspace{-2em} to the node text for West. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[node distance=1.5cm, auto] \node (West) { \hspace{-2em}$\Gamma \vdash A, B, C, D, E, F, G$ }; \node (North) [right of=West, above of=West] { $\Gamma'$ }; \node (South) [below of=West, right of=West] { ...

1

I'm back :-). After rethinking, what should be preserved and what should to be moved in desired image, I decided to edit my answer again ... Edit (3): Since the question has not been clear to me, in prevous version of answer (which I erase, since they are not help you) I from your solution guess, again, what you like to obtain. Below is my (last) ...

1

Here is a suggestion using only TikZ: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ punkt/.style={shape=circle, fill=black}, nurtext/.style={shape=rectangle, draw=none, fill=none, align=center} ] \node (root) [punkt] {} [every child node/.append style = {punkt}, sibling ...

1

This uses an experimental package based on forest called justtrees (version 0.05). If you are interested, let me know. EDITED to add in the separation lines and improve spacing and alignment. Basically, it lets you specify the tree and the annotations in something like the following way. [, left just=, right just=, name=n1 [, left just=Condition 1, ...

5

Or simply: \foreach \x in {-155.0,-152.5,...,152.5} \draw [oxygen] (\x,-40.0,0) circle (3.5);

3

Use the full power of \foreach, by replacing your loop with the following: \foreach \x in {0,...,123} \draw [oxygen] (-155+\x*2.5,-40.0,0) circle (3.5);

0

I have now fixed this and thought I'd share my solution since it is not similar to any of the suggestions by others. Essentially I managed to force the order of my floats by defining the tables before the paragraph rather than after it. Compare the following to my original post. The code I am now using is of the form: table1 float environment [p] table2 ...

3

First, the coordinate system in a pgfplots axis is completely separate from that of the surrounding tikzpicture. Remember that an axis has a default width (240pt), and it will have that size regardless of the range. For example, if you have two axis environments, one with xmin=0,xmax=1 and one with xmin=0,xmax=10, they will still have the same width. Thus, 1 ...

2

The problem with text width=8em which takes too much space. The solution is to remove it. Therefore, the result should be and the code is \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \everymath{\displaystyle} \begin{document} \tikzstyle{block} = [rectangle, draw, fill=blue!20, text centered, rounded ...

0

using titlesec : \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[frenchb]{babel} \usepackage{titlesec} \usepackage{lipsum} \setcounter{secnumdepth}{0} \leftskip=3cm \titlespacing{\section}{-2cm}{1cm}{-.8cm} \titleformat{\section} ...

2

Using [p] on the tables restricts the position the tables can go so latex is forced to hold them back hoping to fill a float page subject to the constraints on float pages. As you have posted no example we have to guess but I would guess that the two figures are too small to fill a float page on their own but too large to both fit, so they will be held back ...

2

I have found this solution (without claiming to be complete): \documentclass{article} \usepackage[demo]{graphicx} \usepackage{wrapfig} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \makeatletter \renewenvironment{proof}[3][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax ...

1

To some extent, wrapfig alludes to the placement of the wrapfigure (or wraptable) environment within your code in the documentation (section 1 Placement and Floating): When floating, LaTeX tries to apply these rules. More specifically, a floated wrapping environment will only begin... at the beginning of a paragraph, ... And, even though a ...

0

Here is another suggestion using package scrlayer-scrpage. There you can define and use a new page style by different new layers. Example: Code: \documentclass{article} \usepackage{blindtext} \usepackage[vmargin=3cm]{geometry} %\usepackage{graphicx} \usepackage{xcolor} ...

1

If you know how to use tikz: \documentclass{article} \usepackage{everypage} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usepackage{mwe} \pagestyle{empty} \AddEverypageHook{\begin{tikzpicture}[remember picture,overlay] \fill[blue] (current page.north west) rectangle (current page text area.north -| current page.east); \node[fill=white] at (current ...

1

I have found that when using the stfloats package with ieeetran.cls V1.8a/b I also get this error. When I remove the \include{stfloats} package, the error is resolved.

2

Try anchor=south east, at= {(current axis.north east)} Full code: \documentclass{standalone} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \pgfplotsset{ compat=1.12, } \begin{document} \begin{tikzpicture} \begin{axis}[grid=major, enlarge x limits=false, legend style={ ...

3

Maybe this is what you mean, with a simpler code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools, nccmath} \begin{document} \begin{align*} & \begin{aligned}[t] &\!\min_{\mathclap {u(t), \eta(t), r}}\quad\int_{0}^{t_f}y^Ty dt\\ & \text{\footnotesize s. t. \enspace}\mathrlap{\medmath{\begin{array}[t]{|l} ...

3

Well, one more possible solution: \documentclass[border=3mm, preview]{standalone}%preview enable showing math \usepackage{mathtools} % loads amsmath too \begin{document} \begin{align*} \min_{u(t),\eta(t),r} &\quad \int_{0}^{t_f} y^Ty dt &\Longrightarrow && \min_{u(t),\eta(t),r} &\quad z_2(t_f) ...

3

Here's a solution that uses two minipage environments to house the align* environments. Note the use of \vphantoms in the right-hand minipage to ensure that the equations' rows line up across the two sets of equations. \documentclass{article} \usepackage{amsmath} \newcommand\tran{{}^T\!} % well-spaced transpose op. \begin{document} \begin{minipage}{5cm} ...

3

Your original display is at the top, with my suggested alteration at the bottom: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{tabular}{p{5cm}p{5cm}} {\begin{align} \underset{u(t), \eta(t), r}{\text{min}}&\quad\int_{0}^{t_f}y^Ty dt\nonumber\\ \text{s.t:}&\quad \int_{0}^{t_f} u^Tu\leq f_{1,k}\nonumber\\ ...

Top 50 recent answers are included