Hot answers tagged

5

You can use as much labels as you need: just declare several label options. But if you want to join label and node with a line/arrow, use pin. \documentclass[border=100pt]{standalone} \usepackage{tikz} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[circle, shading=ball, drop shadow, ball color=red!20!black, minimum width=4cm, ...


5

You're forgetting an argument to \IfEq: \IfEq{<string-a>}{<string-b>}{<true>}{<false>} and the false branch is missing. Besides, \ref and \autoref are “robusted” commands, so it's better to use \LetLtxMacro for saving copies of them. \documentclass{article} %\usepackage{fontspec} \usepackage{xstring} \usepackage{letltxmacro} \...


5

The command \IfEq{foo}{foobar}{true}{false} has a true/false argument pair at the end -- this was missing in all tests within the definition of \setlocale, such that \section etc. was gobbled up, leading to being omitted here. \documentclass{article} \usepackage{fontspec} \usepackage{xstring} \usepackage{hyperref} \AtBeginDocument{% Must come after ...


4

Use \subcaption{\label{fig:a}} and \subcaption{\label{fig:b}} to set the subcaptions. Code: \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{pgfplots} \pgfplotsset{compat=1.13}% <- added, current version is 1.13 \usepgfplotslibrary{groupplots} \begin{document} \begin{figure}[htb] \begin{tikzpicture} \begin{...


4

\autoref does only work completely with a corresponding \....autorefname macro, i.e. \sectionautorefname etc. hyperref extracts the reference information from its specific label information, where the relevant counter name is stored as well. This means, if the counter is named foo, \fooautorefname must exist -- otherwise it's ignored (and a warning ...


4

here is a solution, using \tkzDrawY and \tkzLabelPoint command. Note one can use \tkzDefPoint \documentclass[11pt,a4paper]{article} \usepackage{tkz-euclide} \usetkzobj{all} \pgfdeclarepatternformonly{myDots}{\pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{1pt}{1pt}}{\pgfqpoint{10pt}{10pt}}% { \pgfpathcircle{\pgfqpoint{0pt}{0pt}}{.5pt} \pgfusepath{fill} } \...


3

Let convert comments to an answer: Logic for positioning nodes, labels is the same as it is at naming of horizon's sides. For example: always we say south west (synonym for below left) and newer west south (= left below) ... Regarding your MWE: see if the following more concise code of your MWE is useful to you: \documentclass{article} \usepackage{amsmath,...


3

Use resume*, not resume. The starred version uses the options given to the last list(s), the unstarred version discards any option that was not already specified in list definition. Alternatively: Define a enumerate of your own (as shown in the example) ... and this is what the enumitem package suggests: Use resume* sparingly, define rather a new list ;-) ...


2

So this one is a bit tricky to solve from the doc's nodes near coords align in combination with visualization depends on should have been the silver bullet. Weirdly it fails. Instead one must combine visualization depends on with every node near coord/.append style as a work around. One must also include their data inline, as explained by @Symbol1, to ...


2

Per default the reference to sub-figures will be the letter only (for example "a") and the caption labels will be surrounded by parenthesis. So if you want to move the parenthesis to the reference, one need to change this by adding them to the generic display format and remove them from the caption label format, e.g.: \documentclass[a4paper,aps,12pt]{...


2

Probably you looking for something like this: You have a mismatch in your code. Correct is (observe position of to): \documentclass[border=5mm]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (-0.5,0) to [short, o-] (0,0) to [R, l=$R_s$] (2,0) to [L, l=L] (4,0) to [short,...


2

The beamer way of doing this: \documentclass{beamer} \usetheme{Warsaw} \setbeameroption{show notes} % notepage for every slide, even if empty \makeatletter \def\beamer@framenotesbegin{% \gdef\beamer@noteitems{}% \gdef\beamer@notes{{}}% } \makeatother % empty and uncounted note pages \setbeamertemplate{note page}{% \addtocounter{page}...


2

I kind of had the same issue in Ubuntu 14.04. I was trying to use pgf/tikz in a code like below: \begin{tikzpicture} \begin{scope}[blend group = soft light] \fill[red!30!white] ( 90:1.2) circle (2); \fill[green!30!white] (210:1.2) circle (2); \fill[blue!30!white] (330:1.2) circle (2); \end{scope} \node at ( 90:2) {One}; ...


2

Two solutions for you, the first one uses a line break, the second the positioning library of tikz. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node[red,align=center] at (6.6, 2.7) {\textbullet \\ Your Text is here}; \end{tikzpicture} \begin{tikzpicture} \node[...


1

You can do it (but only for equations in any of the amsmath environments). But it is wrong, very wrong: you should think ahead before tweaking this way the cross reference mechanism. When you search for labels, you'll have no clue what each one refers to without first knowing what section the reference/label appears in. \documentclass{article} \usepackage{...


1

Not entirely sure what you want here, there really isn't too much information. Also, there was a lot of code which could be simplified. I am sure this could be solved a lot better than this. \documentclass{standalone} \usepackage{tikz} \usepackage{amsfonts, amsmath, amsthm, amssymb} \usepackage[utf8]{inputenc} %\usepackage{dtklogos} \usepackage{tikz} \...


1

As samcarter commented, beamer already offers this possibility with notes environment. But if you prefer to use an external document for your notes, you could use something like: \newenvironment{mypage}[2]{% \includegraphics[page=#2, width=\linewidth]{#1}\\[1ex]}{\newpage} mypage environment uses two parameters, the first one is the presentation file ...


1

Here is an horrible solution: \documentclass{standalone} \usepackage{neuralnetwork} \usepackage{ifthen} \begin{document} \begin{neuralnetwork}[height=5] \newcommand{\nodetextx}[2]{\ifthenelse{\equal{#2}{0}}{$b_0$}{$x_{#2}$}} \newcommand{\nodetextz}[2]{$z_{#2}$} \newcommand{\nodetexth}[2]{\ifthenelse{\equal{#2}{0}}{$b_1$}{$h_{#2}$}} \newcommand{\...


1

A more 'basic' version, using a fake label that is implanted by \@currentlabel and \label. \documentclass{scrbook} \usepackage{makeidx} \usepackage{hyperref} % creates links on refs \makeatletter \AtBeginDocument{% \newcommand{\@@fakelabelname}{}% \newcommand{\definefakelabel}[1]{% \gdef\@@fakelabelname{#1}% Make the label name globally ...



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