# Tag Info

9

You could use the double struck from stix2, just taking enough from stix2.sty to define the one font not change the whole setup. \documentclass{article} \DeclareFontEncoding{LS1}{}{} \DeclareFontSubstitution{LS1}{stix2}{m}{n} \DeclareMathAlphabet{\stixbb}{LS1}{stix2bb} {m} {n} \begin{document} [$\stixbb{12345}+12345$] \end{document}

8

You may be looking for the cases environment of the amsmath package. \documentclass{article} \usepackage{amsmath} % for 'cases' env. and '\text' macro \begin{document} $f(x) = \begin{cases} 4x & x\le0 \text{ ise}\\ 3x^2 & x>0 \text{ ise} \end{cases}$ \end{document}

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

5

\genfrac allows you to customise the rule width, and adding a thin space allows you to control the length as well. The space above and below the rule follows the rule width. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \...

5

I suggest you employ a longtable environment, get rid of all \makecell wrappers, and use the p column type for the contents of columns 2 thru 5, to allow automatic line-wrapping. The following screenshot shows just the first few rows of the longtable, which spans more than 7 pages. \documentclass{article} \usepackage{booktabs,longtable,array,ragged2e} \...

4

You can built also an array like the example shown below to reproduce the correct command \cases in these circumstances. The [.5em] it is the vertical spacing between the two equations that you can increase or decrease. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} $f(x)=\Bigl\{\begin{array}{ll} 4x & x\leq 0\,... 4 Here's a solution that uses custom macro called \ddfrac ("double dfrac"), \Bstrut ("bottom strut"), and \Tstrut ("top strut"). \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{mathtools} % for '\cramped' macro \newcommand\ddfrac[2]{\frac{\displaystyle #1}{\cramped[\... 4 I suggest witharrows: \documentclass{article} \usepackage{witharrows} \usepackage{amsmath} \begin{document} \begin{DispWithArrows*} x \cdot 5 &= 5 \Arrow{division by 5}\\ x &= 1 \end{DispWithArrows*} \end{document} 3 This works out of the box in unicode-math. The package also supports \Bbbfive and the Unicode character 𝟝. 3 With the help of \phantom: \documentclass{article} \usepackage{amsmath} \begin{document} \[ f(x) = \begin{cases} 2x & -2<x \\ 2 & -2\le x\le 1 \\ 3x^2 & \phantom{-}1<x\\ \end{cases}$ \end{document}

3

You can use a short macro to make this easier: \documentclass{article} \usepackage{amsmath} \begin{document} \newcommand{\eqnote}[1]{&\small\text{\llap{#1}}} \begin{align*} x \cdot 5 &= 5 \eqnote{$\lvert \; \div 5$} \\ x &= 1 \eqnote{This equals one} \\ \end{align*} \end{document} Also, you can use a \tag*: \...

3

The etoolbox package provides the macro \rmntonum that converts roman numerals to arabic. Biblatex allows to declare a field format to modify the contents of a field. Therefore using \rmntonum with \DeclareFieldFormat results in the required functionality. To make sure the volume number is still printed correctly when it is not a roman numeral you can use \...

3

This is my MWE and it is a one of more possible solutions. I will make your code in this manner using \substack command on two lines + \\. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} \mathit{Loss}_{\text{total}}= \underbrace{(1-\alpha)\mathit{Loss}_{\text{ce}}}_{\substack{\text{first Embedding} \\ \...

3

I did it with some calculations with the aid of intcalc. \documentclass{article} \usepackage{intcalc} \newcommand\formatetime[1]{% \def\ss{\intcalcMod{#1}{60}}% \def\mm{\intcalcMod{\intcalcDiv{#1}{60}}{60}}% \def\hh{\intcalcDiv{#1}{3600}}% \ifnum\hh=0\else\hh:\fi% \ifnum\mm=0% \ifnum\hh=0\else{00:}\fi \else \ifnum\mm&...

3

A paragraph is broken in to lines based on the settings at the end of a paragraph so if you use \centering mid-paragraph it affects the whole paragraph including earlier text. Here \centering is used just before the end of the paragraph but it is all centred. \documentclass{article} \begin{document} \fbox{Some long text that doesn't break} one \fbox{Some ...

3


2

I suggest the following redesign without \multirow and vertical lines (the latter are incompatible with horizontal lines from the booktabs package, such as \toprule): \documentclass[twocolumn]{article} \usepackage{booktabs} \begin{document} \begin{table*} \centering \begin{tabular}{lccccc} \toprule & F1-score & Precision & ...

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

I propose this variant layout, to avoid overfull boxes. It requires the nccmath package (to be loaded before mathtools). I removed the unnecessary \left...\right pairs, and replaced the others with the bigl ... \bigr pair. Last, I used the diffcoeff package to simplify the typing of derivatives in Leibniz notation: \documentclass[11pt,a4paper]{article} \...

2

As @UlrikeFischer has already noted in a comment, your code contains a syntax error, as \left and \right mustn't span line breaks. The simplest fix is to get rid of almost all \left and \right sizing modifiers, especially since they don't actually do anything (other than to create a syntax error.) \documentclass[11pt,a4paper]{article} \usepackage[utf8]{...

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

2


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

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

Something like this? \documentclass{report} \usepackage[draft]{graphicx} \usepackage{xcolor} \usepackage{geometry} \begin{document} \begin{titlepage} \begin{figure} \includegraphics[width=40mm]{HH.png} \hfill {\large\textmd{Datum: 2020-10-07}}%hspace{8.2 cm} \end{figure} {\large\textmd{MTACI20h}} \hfill\large{\textmd{Handledare: Andreas Olsson}}%\...

1

For figures. \documentclass[margin=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \draw (-1.5,-0.5) rectangle (3.5,3); \draw (3,0)--(0,0) arc (270:90:1)coordinate(A)--cycle; \draw [dashed](A)--(0,0); \node at (2.5,2) {X}; \end{tikzpicture} \hspace*{1cm} \begin{tikzpicture} \draw (3,0)--(0,0) arc (...

1

\documentclass{article} \begin{document} \noindent \fbox{\parbox{\textwidth}{ left text \hfill right text\par \hfil Title \hfil\par left text \hfill right text\par }} \end{document} Obviously, this is a template. You can modify the box width, the Title font, etcetera.

1

I think the easiest way to do that is to place the section number of a fixed length, the same as that used to define \parindent. \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \setlength{\parindent}{1cm} \usepackage{titlesec} \titleformat{\section}{\normalfont\bfseries}{\makebox[1cm][l]{\thesection.}}{0pt}{} \titlespacing{\section}{0pt}{...

1

Mico gave the correct answer. I just want to share a couple of subtleties that I use a lot: landscaping, avoiding hyphenation, and stretching rows. \documentclass{article} \usepackage{longtable} \usepackage{booktabs} %\usepackage{makecell} %not used \usepackage{array} % stretch rows \usepackage{pdflscape} % landscape enviroment \usepackage{caption} % ...

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