Hot answers tagged

6

There are more options: one it is to use multline or split or to use geometry package or of the other strategies. \documentclass{article} \usepackage{amsmath} \usepackage{nccmath} \begin{document} \begin{multline}\label{my_eq} \min_{f,u} \mfrac{1}{2} \|A(Bu -f)\|^2_2 + \lambda_1\|Cf\|_{1,p} + \lambda_2\|Du\|_{1,p}\\ +\mfrac{\kappa}{2}\|Ef - f_0\|^2_2 + \...


5

You can do like this: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \DeclareRobustCommand{\tagindex}{\ensuremath{_{\defaulttagindex}}} \newcommand{\defaulttagindex}{n} \DeclareRobustCommand{\indexedref}[2][n]{% \begingroup\def\defaulttagindex{#1}\ref{#2}\endgroup } \DeclareRobustCommand{\indexedeqref}[2][n]{% \begingroup\def\...


3

For this use case you can use the command \hyperref[label]{text} from the hyperref package. It creates a (clickable) link to the label with the text being shown in the document (and not the default label text). MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{amsmath} \begin{document} \begin{equation}\tag{E$_{n}$}\label{E} f_n(x)=a ...


2

Never ignore errors, the PDF is not usable after any error. You are missing \end{cases} here. Also \over is not LaTeX and should never be used. \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{equation}\label{weight} \omega_{x_R} = \begin{cases} \frac{1}{N}, & \text{if } N \ge 1 \\ 1, & \text{otherwise } \end{...


2

Not a solution, but this seems to be a known bug in breqn, see page 5 of the package manual: So, for now you can't achieve exactly what you want the way you do it. I will check if I can come back with a workaround. O.K, here is a not-so-elegant workaround: \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{flexisym} \usepackage{...


2

beamer loads hyperref with option implicit=false. This influences behaviors of many user commands from hyperref. In your case, \phantomsection is now an empty macro (defined by \let\phantomsection\@empty). To add a label to frame, you can use option label={<label name>} of frame environment. \documentclass{beamer} \begin{document} \begin{frame}[label={...


2

Here I load nameref pacakge (which is usually auto-loaded by hyperref) and add \def\@currentlabelname{#1}\NR@sanitize@labelname at the beginning of definition of sidebar environment. With these changes, you can use \nameref to refer to the title of a sidebar, if it is labeled. \documentclass{article} \usepackage{nameref} \usepackage{tikz} \usepackage[...


2

With the help of the chemmacros package and its reactions module: \documentclass[12pt]{article} \usepackage{chemmacros} \chemsetup{modules=reactions} \begin{document} \begin{equation} \label{1} \Lambda = \dfrac{1}{R} \end{equation} \begin{reaction} CO3^{2-} \aq{} + H2O \lqd{} <=> OH- \aq{} + HCO3^{-}\aq{} \end{reaction} \end{...


1

For fun, a short pstricks code reproducing (more or less faithfully) the image in the O.P. \documentclass{article}%[border=12pt]{standalone} \usepackage{newtxtext, newtxmath} \usepackage[usestackEOL]{stackengine} \usepackage{bigstrut} \setlength{\bigstrutjot}{2ex} \usepackage{pst-node} \begin{document} % \psset{arrows=->, arrowinset=0.15, linewidth=0....


1

You really just need to specify the x-values where you want the ticks. Seeings as all five groups are represented in the first \addplot, you can simply add xtick=data to the axis options, and remove the xshift for the labels. If you want to remove the ticks you can do x tick style={/pgfplots/tickwidth=0}. \documentclass[a4paper]{article} \usepackage{...


1

I would recommend moving to regular tikz and pgfplots because they are way more flexible and also allow to tweak (for example) the background of tick labels. In both solutions presented here the some grid lines are penetrating the tick label space. If you are willing to switch, you could use the answer already recommended in the comment below your question. ...


1

I tried your MWE, and after ignoring a couple of reported errors, the very wide table was produced with a caption. Were you expecting a List of Tables which would also show the caption? If so, add \listoftables at the appropriate place after your \begin{document}.


1

xlabel is centered by default, and you can control the positioning of ylabel by setting y label style={at={(axis description cs:0,1.05)},...}. Similarly, the xlabel can be modified as you want. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{center} \resizebox{10cm}{!}{ \begin{tikzpicture} \begin{axis}...


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