Tag Info

Hot answers tagged

5

Actually, tikz nodes have text inside and labels outside: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=0.8,every node/.style={draw=black,circle}] \node[label={\small 1/16}] (a) at (0,0) {a}; \node (b) at (2,0) {b}; \draw[->] (a) to (b); \end{tikzpicture} \end{document}


5

You can subcaption an empty minipage, similar to what's shown in section 2 of the subcaption documentation. \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering \includegraphics[width=0.5\textwidth]{example-image-a} \begin{minipage}{0.25\textwidth} \subcaption{\label{left} Left half} ...


4

The caption package provides the \captionsetup macro to modify a great many aspects of the output of the \caption macro (and, just for completeness, of the \captionof macro). The following code illustrates how to modify two such aspects: the font that's used for the label, and the separator between the label and the captioning text itself. (I've commented ...


3

The displaymath environment does not provide an equation number: \begin{displaymath} \label{somelabel} will use the last counter being used in the \refstepcounter call and this is certainly not what is wanted here. To get the labels it is necessary to use a numbering math environment, e.g. equation or align and then use the \begin{cases}...\end{cases} ...


3

You can set anything inside an equation, including a \parbox (or other textual components like a minipage or tabular). Here's an example: \documentclass{article} \usepackage{lipsum,amsmath} \begin{document} This is a displayed quote. \begin{equation} \tag{A}\label{eq:A} \parbox{\dimexpr\linewidth-4em}{% \strut \lipsum*[1]% \strut } ...


3

Here is some code that should serve as a starting point. This uses datatool package. I have added a column with a short key for center in addition to your columns. center,RollNo,Subject,Venue Bangalore,022701,Sociology,Deptt. of Physics Bangalore,022702,Sociology,Deptt. of Physics Bangalore,022704,Sociology,Deptt. of Physics ...


2

You just need xlabel by analogy with ylabel. The labels on the x-axis are just tick labels, like those on the y-axis. The fact that they happen to be words rather than numbers doesn't prevent you from also labelling the axis as a whole, just as you can label the y-axis ;). At least, it seems to work for me: \documentclass[tikz,border=10pt]{standalone} ...


1

An alternative is use of xticklabel* coordinate system to put the title of the plot. clip=false is required. \node (title) at (xticklabel* cs: 0.5,25pt) {Hair Color}; Code \documentclass[tikz]{standalone} \usepackage[english]{babel} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} ...


1

One possibility; for this example I used the following simple file diffecorrenti.txt: 1 2 3 -3 4 5 6 7 and suppressed parts of the original code that were not relevant to the question and to the solution. For the first requirement, you can use the axis cs coordinate system to place a \node with some predefined style at the desired location at one ...


1

A PSTricks solution using the pst-node (for the drawing itself) and expl3 packages (for the bounding box and the label distance): \documentclass{article} \usepackage{pst-node} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff \def\labelSep{\calc{28.75*\radius+3.375}} % found by experimenting % parameters ...


1

I've come across similar package showlabels that solved the issue. It has a number of options to show specified labels on the left or right margins of the page as well as in an inline mode.



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