New answers tagged

1

SOLVED: The trouble was indeed with my parameters declaration, I need 2 and not 1 parameter. #1 is my option while #2 will be my title. Here is the code of the solution: \documentclass[justified,notoc,numbers]{tufte-handout} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xcolor} \usepackage{color} \usepackage[most]{...


0

A simple solution is to change our documentclass to one of the KOMA-script classes that corresponds to the document class you use (book, report or article), and use KOMA-script’s build in features to format the captions. I have listed most of KOMA-script’s caption format commands in the MWE. The two commands that I assume will be of the most interest for ...


1

You don't need to mix a \node with a tcolorbox, with just a tcolorbox can do it all. Even more, with a \newtcbtheorem command, you can declare the teorem and its aspect (see tcolorbox documentation or https://tex.stackexchange.com/a/236230/1952). Once declared, the theorem box has two parameters, the teorem title and a label for further reference. This ...


0

OK, after searching few more hours, I found this post, stating that some changes of redefining chemmacros definitions are only affective after \begin{document}. I don't know the reason for this, but here is what I did and now I get the correct renaming of Scheme 1 towards Scheme S1: \AtBeginDocument{\renewcommand\thescheme{S\arabic{scheme}}} Maybe some ...


1

The problem is due to the rather convoluted code used to produce the number. If we simplify that code, then the \label commands will work as you would expect them to do. Instead of incrementing the counter inside the \sectionstyle macro, we prepend it to the \section command. This allows the label to be accessed properly whether the \label command is inside ...


3

Use \labelmargin, see 24i on page 40 of the reference manual. \documentclass[12pt]{standalone} \usepackage[all,cmtip]{xy} \usepackage[bb = boondox]{mathalfa} \begin{document} \xymatrix@R=.6pc@C=.6pc{ & \mathbb{F} \ar[dl]_{\scriptscriptstyle\mu} \ar[dr]^{\scriptscriptstyle\nu} & \\ \mathbb{P} & & \mathbb{M} } \...


1

Here is a possible solution. You have to set the values by hand. The idea is to print the default arrow with no labels and then insert an invisible arrow translated by some amount in parallel, with the label on it. Observe the \ar[dl] \ar@<3pt>@{}[dl]_{}. \documentclass[12pt]{standalone} \usepackage[all,cmtip]{xy} \usepackage[bb = boondox]{mathalfa} ...


3

I didn't actually see any difference between externalization or not, but one option could be to force the position by adding ylabel style={at={(-0.27,0.5)}} to the options of the groupplot environment. Regarding the compat-setting, as I understand it you can change it for labels alone with compat/labels=pre 1.3 Unrelated: You don't need \...


1

Here is a Fix by redefining the environments: \documentclass[9pt]{beamer} \setbeamercolor{block body}{bg=red!5} \setbeamercolor{block title}{fg=black,bg=red!40} \usepackage{tcolorbox} \newlength\myFSize \newlength\myFontSize \makeatletter \def\ReadFSize{% \setlength{\myFSize}{\f@size pt} \setlength{\myFontSize}{0.5\myFSize}} \makeatother \newcounter{...


4

Use \tag and manually step the equation counter. Explanation: \begin{equation} steps up the counter; however \tag will cause the counter to be stepped down. \documentclass[twocolumn]{article} \usepackage{amsmath} \begin{document} We have a double equation \begin{equation}\label{double} f^{\pm}(x)=\dots \tag{\theequation$^{\pm}$} \stepcounter{equation} \...


2

You can cheat by redefining \pm while referencing: \documentclass{article} \usepackage{amsmath} \newcommand*\tagpm{\stepcounter{equation}\tag{\theequation\(\pm\)}} \newcommand*\eqrefp[1]{{\def\pm{+}\eqref{#1}}} \newcommand*\eqrefm[1]{{\def\pm{-}\eqref{#1}}} \begin{document} \begin{equation}\label{eqi}\tagpm f^\pm(x)=\ldots \end{equation} \eqref{eqi} ...


0

\documentclass{article} \usepackage{amsmath} \begin{document} zzz \begin{equation}\label{zzz} 1=2 \end{equation} pm \begin{equation}\label{pmcase}% dot use numbers in label f^\pm(x)=\ldots \end{equation} plus \begin{equation}\label{+case}% dot use numbers in label f^+(x)=\ldots \tag{\theequation+} \end{equation} pm \begin{equation}\label{-case}% ...


3

The standard methods work fine in this case. The AMS classes provide a \numberwithin macro which is equivalent to the \counterwithin macro provided in the LaTeX kernel. This resets the numbering (in this case per section). I've removed your . in the A.1 for aesthetic reasons. You can add it in as you prefer. \documentclass{amsart} \begin{document} \section{...


Top 50 recent answers are included