# Tag Info

7

While technically feasible, creating commands with brace-delimited optional arguments is not a good idea: this is highly non-standard in LaTeX and is likely to be confusing. The standard syntax for LaTeX is to delimit optional arguments with square brackets, which can be done this way in your case: \newcommand*{\cc}[1][]{$#1C$} The [] means that the command ...

3

As I mentioned it in a comment, here is how to do it with nccmath (which loads amsmath, but has to be loaded before mathtools if you need it): \documentclass[a4paper,11pt]{article} \usepackage{amsmath, nccmath} \begin{document} \begin{subequations} \begin{gather} A+B = C \\ \medmath{ \begin{aligned}[b] A+B+C = D &+ E+F \\ &+ G+H+...

2

First of all: I agree with Bernard's comment that scaling an equation is usually a bad idea. In my experience of long, horrible equations the best solution has always been to introduce meaningful abbreviations. This being said, you should let gather do the job of numbering the equation. The strange output you are getting is due to using align within inline ...

2

Just make the \if@twocolumn conditional available at the user's level. \documentclass[twocolumn]{article} \usepackage{lipsum} % for mock text \makeatletter \let\iftwo\if@twocolumn \makeatother \begin{document} \lipsum[1][1-4] \iftwo $$c=2$$ \else $$c=1$$ \fi \lipsum[2] \end{document} ...

2


2

One possible way forward is to make a new theorem command based on \tcbox which can then make use of the varwidth upper option. Something like this, where I've made a new \tcboxtheorem macro, which could be used to define \exa and \exastar for numbered and unnumered theorems: \documentclass{article} \usepackage{lipsum} \usepackage{varwidth} \usepackage{...

2

To get the chord names vertically aligned, you can enclose any chord name in a \raisebox command. Depending on the font you may have to adjust this some. But then \gtab won't center the chord name. To correct that, add a \quad space before the chord name. It doesn't matter how wide the chord name is. \gtab{\raisebox{5.15pt}{\quad F#}}{2fr:(133211):034200} ...

1

You are missing the command \maketitle at the end of your title environment. \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{parskip} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{hyperref} % <== this should be the last package to be loaded! \begin{document} \begin{titlepage} \title{Refenssystemet IEEE} \...

1

I tried your code (as below) % lettrineprob.tex SE 567648 \documentclass[12pt]{article} \usepackage{color} \definecolor{Red}{RGB}{157,16, 45} \usepackage{lettrine} \input GoudyIn.fd \newcommand*\initfamily{\usefont{U}{GoudyIn}{xl}{n}} \begin{document} \large \lettrine[lines=3]{\color{Red}{\initfamily{A}}}{\color{Red}s} the inclinations and judgments of ...

1

Here a new command \newtcboxtheorem based on \tcbox, is provided and the choice key tcbox width is extended to accept value auto limited with title counted, which will make the width of output \tcbox be min("/tcb/width", max(upper, title)). By default, \tcbox defines a new command (the \exabox in the following example), hence the environment-...

1

In unicode-math, \backslash is \ (U+005C) , \setminus is ⧵ (U+29F5) and \smallsetminus is ∖ (U+2216). Also, \xbsol is ⧹ (U+29F9). This is especially noticeable when using the default font, Latin Modern Math, which lacks \setminus. New Computer Modern Math fixes this bug.

1

This solution is based on the array package, which allows the definition of new column specifiers, so there is no font change spamming. Option 1: column modifiers. Two prefixes (column modifiers) are defined to indicate the first and subsequent columns, ^ and _, respectively. Two more commands are defined, one explicitly and another implicitly, \rowstyle and ...

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