# Tag Info

3

Is it like this? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tipa} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document} \begin{tikzpicture} \pgfplotsset{width=10 cm} \begin{axis} [ symbolic x coords={Label 1,Label 2}, xtick={Label 1, Label 2}, x tick label style={rotate=45, anchor=east, align=center}, axis lines=left, y ...

0

Just for the record. You need to define the style for the node because by default, it is a square. With the defined shape=circle, the top right picture shows some precision problems, but this can be improved (gradually as shown below) by increasing the increment of angle so that miscalculation of anchor is prevented. Here the increment of angle is (top ...

4

I would call that a bug. The documentation states, that the anchors are somehow determined on the angle given (and other aspects), but that the user can change them if needed. Alas, giving another anchor explicitely, doesn't change anything: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \foreach \x in ...

8

I was able to make the label appear to be in the center of the circle by using a phantom (invisible) edge across the circle and setting the label.dist to 0 to place the label in the middle of that edge. \documentclass{minimal} \usepackage{grffile} \usepackage{feynmp-auto} \begin{document} \begin{fmffile}{2ptcorrection1} \begin{fmfgraph*}(220,12) ...

1

In addition to put the label after the caption, it will do if the label is put inside the caption. Code: \documentclass{article} \usepackage[demo]{graphicx} % for inclusion of graphics \begin{document} \begin{table}[ht] \begin{minipage}[b]{0.45\linewidth} \centering \begin{tabular} {l | l | l} a & a & a \end{tabular} ...

0

One of the problems is that you set nodes near coords=\col outside the scope of the loop where \col is set. This happens to interfere with the ticks as well. What you need to do is set the value used by nodes near coords inside the loop. The key to this is to assign point meta. Usually this expects something that gives a number, but there is (a slightly ...

1

If you wanted to use R, knitr and the ggtern package in R (for ternary diagrams), the following can be achieved: The following is the full MWE, which utilizes the tikzDevice, and the data read from .csv file (ie data.csv, download HERE) \documentclass[12pt,a4paper]{article} \usepackage[margin=2cm]{geometry} \usepackage{helvet} ...

4

This solution uses circuitikz environment rather than tikzpicutre environment, then the errors are gone. To move the v1 away from the resistor, raisebox{neg height}{content} is used while for the v2 only \,\, is used. Code \documentclass{article} \usepackage{tikz} \usepackage[american,siunitx]{circuitikz} \usepackage{latexsym,amssymb,amsmath} ...

1

This pattern is also quite useful: \node at ($(R) + (0.03,0.4)$) {Your label!}; This way you can position the label relative to the coordinates of R. Note that you need \usetikzlibrary{calc}.

2

Pass a Label object to draw() instead of a simple string. The Label() constructor takes options (among others) position and align. In particular, passing it the option position=Relative(0.2), for instance, instructs Asymptote to draw the label 20% of the way along the path. \documentclass[margin=10pt]{standalone} \usepackage{asymptote} \begin{document} ...

3

Instead of arrays, you can use \substack (and add \displaystyle to recover the font size); in fact, using \substack with an empty first row you can also get more spacing for some of the labels. I also added 0.5cm to the distance between some nodes (this, of course, it's optional but in my opinion improves the diagram): \documentclass{article} ...

5

You can add a label to both the first and last equation in an align, and use cleverefs \crefrange{first label}{second label} to create the reference. The format of the references printed by cleveref can be modified as described in chapter 8 of the manual. Some additional points: In an align the & should be placed before the =, not after, as you had ...

0

You can also put a \caption{} and corresponding \label{} for the whole figure, and reference that. That sounds like what you really want.

7

You can use \subref; in the following example I assumed subcaption was used to produce the subfigures: \documentclass{article} \usepackage{subcaption} \begin{document} As we can see in Figures~\ref{fig:testa} and~\subref{fig:testb}... \begin{figure} \centering \subcaptionbox{first subfigure\label{fig:testa}}{\rule{4cm}{1cm}}\qquad \subcaptionbox{second ...

7


Top 50 recent answers are included