Tag Info

Hot answers tagged

5

edge label will override any previous value for any particular node. So the first label disappears. But we can use the same method as I used for the sub optimal style i.e. declare another option, just like edge label and then add it to the redefinition of edge path. \documentclass{beamer} \usepackage{etex,forest} \usetikzlibrary{shapes,snakes} \tikzset{ ...


3

This is a bit of a "hack", but you can simply set an extra label without the above or below keys. Then using \\ when you want to switch to the "other line", they will show one above, one below. So basically, you'll have: my above my below my label (both) As far as you've showed, this will work. If there is some situation where this behaviour breaks, ...


3

Asymptote does not even (currently) provide a function for computing a convex hull, much less its centroid (which I am assuming is what you mean by "center"). If you want to write your own function, you probably want to assume the cyclic path is in fact a closed, non-self-intersecting polygon. In that case, use can use this formula for the centroid, and you ...


3

You could use the aligned environment: \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \begin{equation} \begin{aligned} a &= b\\ &= c\\ &= d\\ &= e\\ &= f \label{eq:EqAligned} \end{aligned} \end{equation} Equation \ref{eq:EqAligned}... \end{document} It ...


3

In the second brace you used these coordinates: (100,80) -- (0,178) But the second couple should be inverted, because in this case it will be 0 on the X axis, and 178 on the Y axis, while it should be 0 on the Y and 178 on the X. Also, remove these options in the braces: mirror, auto, swap, and fix the shifts. In order to change the labels for the extra ...


3

Here are two examples that produce "attached lables", one using transform shape, the other using rotation correction. \documentclass[tikz,border=7mm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \i in {0,30,..., 330} \draw[red, ->, rotate=\i, transform shape] (0,0) -- +(0:3) node[rotate=-90,above]{fixed}; ...


3

(La)TeX can not balance square brackets and it gets confused thinking that the ] in f[x] is closing the opening [ from \datavisualization; help it by using an extra pair of braces,as in {$f[x]$} so the inner brackets are hidden: \documentclass{article} \usepackage{tikz} \usetikzlibrary{datavisualization} ...


3

New solution answering the question You want to build headings to your problems and their parts using information appearing later in the document. The obvious way to do this is using \label and \ref but as you want to do this behind the scenes the label names need to be generated dynamically. Dynamic labels for cross-referencing Below I have defined two ...


2

In RL mode (arabic or farsi text) numbers should by coded using \I{123} to be typested in arabo-indic digits or extended arabo-indic digits. \textLR{123} to be typested in arabic digits. Here we can use (\I{\ref{eq:label}}). We can redefine \ref command like this \let\arref\ref \renewcommand{\ref}[1]{\I{\arref{#1}}}


2

Using a more simplified example you can see it's the thmmarks option that causes the problem \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage %[thmmarks] {ntheorem} \numberwithin{equation}{section} \newtheorem{mydef}{Definition}[section] \begin{document} \section{First section} \begin{mydef}[Something] ...


2

According to the documentation of ntheorem, section 3.2.1, you should add the option amsmath together with thmmarks if you load the amsmath package: \usepackage[amsmath,thmmarks]{ntheorem} Full example: \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{paralist} ...


2

It is \caption that provides the number information that \label stores. If \label is placed before \caption it catches some irrelevant information.


2

Apparently autonum must be included even after cleveref and in my impression, the document must be compiled thrice to get all the references working. The manual clearly says \documentclass{article} \usepackage{amsmath} % provides the align environment % \usepackage[backend=biber,url=false,doi=false,style=authoryear]{biblatex} \usepackage{booktabs} % ...


2

I happen to have functions I wrote a while back that might help you. The first function returns the convex hull of an array of points. You might use the function provided by @CharlesStaats to get the array of points in your original path. As-is, the convexHull function only works for piecewise linear paths. path convexHull(pair[] in_pset) { pair[] ...


1

Actually, I found the second answer in my third reference to do the job. \noindent \begin{subequations} \begin{tabularx}{\hsize}{@{}XXX@{}} \begin{equation} \pmb{u} = \pmb{u}_{b} \label{eq:UBCs_D100} \end{equation} & \begin{equation} \pmb{u} = \pmb{0} \label{eq:UBCs_D200} \end{equation} \begin{equation} ...


1

The \only<>{} command should be followed by a %-sign if you which to hit enter for a new line. A new line is interpreted as a white space in LaTeX. This white space was set in front of your numbers and therefore moved them out of the centre. % arara: pdflatex \documentclass{beamer} \usetheme{Frankfurt} \usepackage{tikz} ...


1

The \label must be written after \caption, not before. Labels need a \refstepcounter (here with figure counter) such that the latest stepped counter is known and the reference is correctly written. If \label{Figure: SimplyStupid} is used before \caption, it will use the last counter being stepped, this is section, that's why the reference prints II (the ...


1

The position of the label is calculated through the auto option. It is designed to make labels floating alongside the curve without overlapping. As a result the pin-edge is nearly orthogonal to the tangent line for safety. It is not difficult to override auto but it may ruin the whole engine. A workaround is to use the temporary point (label visualizer ...


1

The texlive-lang-european is for a bunch of European languages, among which there's not French; do sudo apt-get install texlive-lang-french See https://packages.debian.org/stable/tex/texlive-lang-french and https://packages.debian.org/stable/tex/texlive-lang-european for details about the packages.


1

This seems to work. I removed the dateplot stuff, and instead of x=date for the \addplot, I used x expr=\coordindex. This uses the index of the coordinate instead, i.e. 0,1,2,..., which gives constant distance between ticks. xtick=data places the ticks at the right place. You do need to load pgfplotstable to use x expr=\coordindex. As a sidenote, ...



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