Hot answers tagged

4

Try \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usetikzlibrary{angles,calc,intersections,quotes,positioning,shapes} \begin{document} \begin{center} \begin{tikzpicture}[scale=1.5, my angle/.style ...


3

You can use the intersections library to calculate the intersection points of pairs of lines (or curves). To add labels to the lines, simply use the node on a path. MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=1.5] \draw [<->,thick] (0,3) node (yaxis) [above] {$P$} ...


3

Links between vertically aligned nodes are automatically drawn by join. I don't know how to define a label/node on a join, but you can place these labels after drawing them with a \path command: \path (sspo0002) -- (sspo0011) node[midway,left] {SI}; As an example from your code: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} ...


3

The problem is, that the label is not set globally within the pagecommand option, i.e. \@currentlabel has still the old expansion of \thesection. This can be cured by explicitly setting the \@currentlabel value in the pagecommand. \documentclass[a4paper]{article} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{pdfpages} \usepackage{blindtext} ...


2

You can call \usetikzlibrary{positioning} to specify where to place a label. In this case, you want it to the northeast, so you'd specify it as \node[above right=<distance> of \label]. I found a distance of 0 looked nice, but you can adjust it as needed. \begin{tikzpicture} \foreach \i in {1,...,9} { \pgfmathtruncatemacro{\y}{(\i - 1) / 3}; ...


2

Something like this? Using an autolabelling way and \Cref or \cref to let LaTeX know it's a limitation label. cleveref needs to know that the limitation counter should be referred to as Limitiation or LIMITATION. \documentclass{article} \usepackage{blindtext} \newcounter{limitation} \usepackage{cleveref} \newcommand{\limitationname}{LIMITATION} ...


1

Here's a solution using fancyref. For reasons which need not concern us here, I prefer fancyref to cleverref. (But note that my impression is that I am in a minority.) \documentclass{article} \usepackage{fancyref} \newcounter{limitation} \newcommand*\limitation[1]{% \refstepcounter{limitation}LIMITATION \thelimitation\label{limitation:#1}} ...


1

You could define a \centerbox command which you wrap around all the images you want to include. Technically, it's not the label "(a)" which is off, but the images only get placed with zero offset. That's what you can change with a \raisebox. \documentclass{article} \usepackage{graphicx} \usepackage{subfigure} ...


1

Some manual work, but this seems to be what you're looking for. Note that subfigure has been obsolete for several years and subfig is much better, if not subcaption that, however, has quite a different syntax. \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[htp] \centering ...



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