Tag Info

New answers tagged

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} ...


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

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] ...


1

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}}}


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}; ...


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, ...


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, ...


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} ...


2

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


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 ...


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 ...


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} ...


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} % ...


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 ...


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[] ...


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 ...


2

Another solution that uses the \newtagform and \usetagform, from mathtools, and the apptools package to automate thu use of these commands. Additionally, I changed you partial derivatives to fractions, with the easy syntax of the esdiff package. I also loaded the geometry package to keep equations on one line, and grouped the two align environment in a ...


3

Since the OP decided to have starred sections, the easiest way is to use \renewcommand{\theequation}{A.\arabic{equation}} but not recommended, since this harder to change. If the equation number should be preceded by the section number or appendix number, then \renewcommand{\theequation}{\thesection.\arabic{equation}} is one way to do this. Other ...



Top 50 recent answers are included