New answers tagged

5

This is 'pretty' easy with tcolorbox and using angular arc option, the background colour etc, the borderline width, inset etc. can be changed at will. The tcbraster environment is a nice way to ensure some layout, i.e. for adhesive label sheets etc. Do not forget to compile twice to get the raster layout working! \documentclass{article} ...


0

Is this what you mean? \documentclass{article} \usepackage{mathtools} \begin{document} \[ \begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \\ a_{4} \\ \end{bmatrix} \] \begin{equation} \begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \\ a_{4} \\ \end{bmatrix} \end{equation} \end{document}


3

cleveref is your friend here -- no need to define a \theoremname here -- it's defined by cleveref for many use - cases already. Use \cref for lower case names and \Cref for upper case names. For special names there is no clue for \cleveref to provide the correct name initially, in this case use the setup commands \crefname and \Crefname. The \crefname ...


1

First as a non-float. Then, as a float. EDITED to put caption outside of box. EDITED to introduce new float, InfoBox. \documentclass{article} \usepackage{caption,graphicx,newfloat} \DeclareCaptionType{InfoBox} \begin{document} \fboxsep=8pt\relax \fboxrule=2pt\relax \begin{center} \fbox{\centering \includegraphics[width=2in]{example-image-A}}\par ...


0

Here is an answer which depends heavily on the work done in User Mico's answer, but instead; whenever a \hyperlink (linking to a certain \hypertarget) is inserted, the title of that target (the second argument of \hypertarget) is automatically used as a second argument for that \hyperlink, by adding the following excerpt of code: \makeatletter ...


1

Here's a solution that makes use of the \hypertarget/\hyperlink machinery of the hyperref package to create cross-referencing links. The \hypertarget macro places the "anchor", and the \hyperlink macro generates a call-out (in the form of a hyperlink) to the anchor generated by \hypertarget. Both macros take two arguments: the first is the "anchor text" ...


3

It is possible to write text content to the .aux file I've done this using an \labelText command that is setting the title and sets the label (according to user specifcations.) Use \nameref then to refer to this label. The formatting should be done outside of the textlabel, not inside. (Since I am writing on a Tablet, I can't provide a better solution ...


2

By use near end you were very close to desired solution ... With pos= .. you can determine relative position of node on path. See MWE below. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,automata,positioning} \usepackage{amsmath,amssymb,amsfonts} \begin{document} \begin{tikzpicture}[>=stealth', shorten > = 1pt, node distance = ...


4

I would like to suggest that you use the power of the cleveref package. This package provides a macro called \cref, which not only handles the label-assigning job but can even take multiple arguments. (To ease the job of determining which label should be used with which theorem-like environment, I further recommend you load either the ntheorem or the amsthm ...


5

As far as I can see varioref does not know that there's a different theorem in action -- all use the shared counter named definition, \refstepcounter increases the definition counter, leaving \@currentlabel to be definition, which leads to the 'wrong' label format then. I am applying \DeclareCoupledCounters from xassoccnt package to get coupled counters, ...


1

The \tikzball command must be protected, i.e. use label={\protect\tikzball{...}}. \documentclass[11pt]{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[francais]{babel} \usepackage{enumitem} \usepackage{tikz} \makeatletter % create beamer ball commands \newcommand\beamerball{% ...


5

Add \pgfplotsset{compat=newest} to the preamble. \documentclass[tikz,margin=.5cm]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage[T1]{fontenc} \usepackage{siunitx} \usetikzlibrary{arrows,calc} \pgfplotsset{compat=newest} %<<<<<<< \begin{document} \begin{tikzpicture} \begin{axis}[% width=3.767in, ...


1

Here's a possibility: you add a column, but remove some of the horizontal space. \documentclass{article} \usepackage{amsmath,tikz-cd} \begin{document} \begin{tikzcd} \varepsilon\colon &[-3em] 0 \ar[r] & A\ar[r] \ar[d] & B \ar[r] \ar[d] & C \ar[r] \ar[d]& 0 \\ \varepsilon'\colon&[-3em] 0 \ar[r] & A'\ar[r] & B' \ar[r] & ...


2

A possibility is to use cleveref and its \cref or \Cref commands to include the type of the referenced counter, e.g. an equation or a theorem. The \Cref is used for uppercase purposes, e.g. at the beginning of a sentence. Please note, that \usepackage[english]{cleveref} etc. is perhaps more useful, depending on the needed language. cleveref's output ...


2

I am not sure if I understand the question, but every label/.append style={text=red, font=\scriptsize} works for me. \documentclass[tikz,border=3mm]{standalone} \begin{document} \begin{tikzpicture} [every label/.append style={text=red, font=\scriptsize}] \node[draw, label=label] (A) {node}; \node[draw, label=label,xshift=2cm] (B) {node}; \end{tikzpicture} ...


0

I don't know why the labelx is doing that or how to fix it, but you could use a standard label command instead. settings.outformat="pdf"; import graph; size(4cm, 0cm); defaultpen(fontsize(16pt) + linewidth(1)); xaxis("$x$", xmin=-1, xmax=1); yaxis("$y$", ymin=-1, ymax=1); labelx(0, align=S+W, L=Label(Draw)); label("0", (0,0), 2*SE, Draw());


1

Got finally a 'correct' version. To produce the tick labels in the way I want them, you have to work on a lower level of pgf. Basically you need to define your own typesetter, as already mentioned by cfr in his answer. Basically it is quite easy. You're passing the numbers to be printed to your code by \pgfmathfloatparsenumber{#1}. The number is then ...


2

Tags belongs on display math and cannot be used like you do here (on inline math). Btw: please don't make proofs like this, use an environment to make the proof and add the proof headline. For example by using amsthm


2

(Your example throws an error here, but adding a text width to the label fixed that.) You're using \tiny wrong, it's supposed be used like {\tiny ..}, not \tiny{...}, i.e. it is a switch that affects the following text, not a macro that takes an argument. That said, I recommend adding font=\tiny to the label options instead. This also makes the line ...



Top 50 recent answers are included