# Tag Info

30

For Windows: Open the MikTeX Console Check for Update Updates > Update Now Search l3backend package Install the package

28

use enumitem (I wrote enumerate)

25

The enumitem package is far more flexible when compared with enumerate. The latter provides an optional argument where you can specify the item number format using a generic representation while the latter provides a key-value interface. Here are two examples: Parenthesized lowercase roman numerals: % enumerate interface \begin{enumerate}[(i)] % Your ...

24

Update 2020-01-21 The newest latex-dev announces itself as LaTeX2e <2020-02-01> pre-release-3 (develop 2020-1-16 branch) The main changes are extensions to the NFSS (the New Font Selection Mechanism for LaTeX): Many modern fonts available these days offer additional font faces, e.g., small caps italics or a condensed font series, etc. To better ...

24

A simple pic with the "speed" as parameter may do. \documentclass[tikz,border=7pt]{standalone} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[pics/speedometer/.style={code={ \foreach \X/\Y [count=\Z] in {green!70!black/low,orange/medium,red/high} {\fill[fill=\X] (240-\Z*60:4) arc(240-\Z*60:180-\Z*60:4) -- (180-\Z*60:3) arc(...

23

Since the July 1st, 2019 release of the LaTeX3 kernel, the driver-specific code contained in the l3backend module was moved to a dedicated package in CTAN, and now l3backend is a dependency of l3kernel. The description of l3backend on CTAN says: The func­tions here are de­fined dif­fer­ently de­pend­ing on the en­gine in use. As such, these are dis­...

20

Perhaps one addition to Ulrike's answer (it is included implicitly in link given in her answer, but worth pointing to very directly without the need to follow the link): Our hope is to attract additional beta-testers We don’t expect everybody to start using the development formats to participate in testing, but we hope that people with a strong interest ...

14

Since the April 2018 release, LaTeX considers UTF-8 as default input encoding Thus calling \usepackage[utf8]{inputenc} at the start is no longer required. If a file has a different encoding than UTF-8, the proper encoding should, of course, be declared. The utf8x add-on, together with the ucs package, used to be needed for some special application or, ...

13

You can define a picture. \documentclass{standalone} \newcommand\tennisBall{% \setlength{\unitlength}{1cm}% \begin{picture}(1,1)(-.5,-.5) \put(0,0){\circle{1}} \qbezier(0,-.49)(0,0)(.4825,-.0850) \qbezier(0,.49)(0,0)(-.4825,.0850) \end{picture}% } \begin{document} \tennisBall \end{document}

11

This is just to honorably mention the dsfont package. \documentclass{article} \usepackage{bbm} \usepackage{dsfont} \usepackage{amsfonts} \begin{document} \begin{tabular}{lll} \verb|\usepackage{bbm}| & \verb|\mathbbm| & $\mathbbm{A}$ \\ \verb|\usepackage{dsfont}| & \verb|\mathds| & $\mathds{A}$ \\ \verb|\usepackage{amsfonts}| & \verb|\...

11

That is a packaging error in miktex. That happens sometimes. In such cases go to https://github.com/MiKTeX/miktex-packaging/issues and report the issue (if it hasn't been done yet by someone else). I added an issue: https://github.com/MiKTeX/miktex-packaging/issues/159 As a work-around until miktex corrects this: Get hycolor.dtx from ctan https://ctan....

10

Well, package fontawesome seems to be not longer maintained and therefore you can not add with LaTeX and this package an symbol for an ball into your document. But you can use package fontawesome5. The font shows the following ball symbols on the web page: As you can see the symbol for an tennis ball is grey that means you have to pay for the fontawesome5 ...

8

You can delay the package loading using \AtBeginDocument: \AtBeginDocument{\RequirePackage{xepersian}} this will put the package loading after the .aux file is read but before the “proper end” of the preamble, where all the preamble-only commands are redefined to throw an error; from this point on any \usepackage (or \RequirePackage) will not work. If the ...

8

You can implement \@ifpackageloaded (and \@ifclassloaded) in Lua by basically translating the original TeX-level implementation into Lua: \directlua{ local not_loaded_cmds = { [token.command_id'undefined_cs'] = true, [token.command_id'relax'] = true, } local function loaded(ext) local fmt = "ver@\csstring\%s." .. ext return function(...

8

It is quite normal that the enc file is located in the dvips sub-tree. The problem here is that the map file requests ntxsups_T1.enc but the actual file is called ntxsups_t1.enc. This is no problem on case-insensitive file systems. As a work-around I would try (untested): $mkdir -p ~/texmf/fonts/enc/dvips/newtx$ cp /usr/local/texlive/2019/texmf-dist/fonts/...

8

The following might give you an idea on how to start: \documentclass{article} \usepackage[most]{tcolorbox} \newtcolorbox{mybox}{ enhanced, boxrule=0pt,frame hidden, borderline west={4pt}{0pt}{green!75!black}, colback=green!10!white, sharp corners } \begin{document} \begin{mybox} \textbf{Definition} My definition text here \end{mybox} \end{document}

7

The newtx distribution provides the file newtx.map for rebuilding the main map files (mainly pdftex.map). In this file we read ntxsups-Regular-ot1 ntxsups-Regular " ntxsupsOT1Encoding ReEncodeFont " <[ntxsups_OT1.enc <ntxsups-Regular.pfb ntxsups-Regular-t1 ntxsups-Regular " ntxsupsT1Encoding ReEncodeFont " <[ntxsups_T1.enc <ntxsups-Regular.pfb ...

7

the bbm fonts are bitmap fonts generated by MetaFont. If other double struck fonts are suitable many are available in scalable formats eg \mathbb font from the AMS but if you really want \mathbb then Your log will show: .texlive2019/texmf-var/fonts/pk/ljfour/public/bbm/bbm10.600pk That is a 600dp bitmap tweaked for an HP laserjet 4 printer (which you ...

6


6

Assuming that \gitVer and \VersionBox are defined by gitver, just add \providecommand{\gitVer}{} \providecommand{\VersionBox}[1]{gitver not loaded} after the conditional loading. This exploits the fact that \providecommand does nothing if the command is already defined.

6

A very light weight solution is to use a tabular. Not as sexy as \tcolorbox and other TikZ based solution, but it compiles fast. The simplest is to use a p-column as wide as the \linewidth. First I define a new column type N and calculate its width to \linewidth minus two tabcolsep. Then the table fits between the margins and will adapt if you change ...

6

I have used mdframed instead of tcolorbox (they are similar package but tcolorbox is mor complete than mdframed). You can see that you have the same result. Here there is my proposal where I have used for theorem, definition, examples, the specific package amsthm with the possibility to create a book: see the specific class of the document \documentclass[...

6

The file is birkjour.cls not .sty so the intended use is \documentclass{birkjour} not \documentclass{article} \usepackage{birkjour}

5

5

The problem are the spaces in the header. Due to a change in etoolbox (it uses \ifstrempty instead of \ifblank internally in a command), datatool is more picky here now. If you change the header in the data-file to id,x,y,size,color,opacity,label,R,G,B it compiles again. The problematic spaces are the one after the R, G, B. That the definition is the ...

5

Normally you would just use \@ifpackageloaded, but the command is limited to the preamble. To use it in the document body you need \ltx@ifpackageloaded from the ltxcmds package. Since the macro has an @ in the name, you need to wrap it in \makeatletter and \makeatother. \documentclass{article} \usepackage{expl3} \usepackage{ltxcmds} %\csname ...

5

In case that you do not use tcolorbox or tikz for anything else, is a bit overkill use it for a simple box. What I see is AMS theorem-like environment with the definition style in a green box with a vertical rule beside, so I made defined the \definition command that make just that. Note that macros cannot have paragraph breaks, so, if you need will that, ...

5

You need a contiguous run of boxes, but these days there are 32 thousand not 256 so you can afford to discard the ones allocated already and allocated a new batch (actually care should be taken that this range doesn't span 255, not done here) \documentclass{article} \addtolength\textwidth{2cm} \usepackage{multicol} \usepackage{etoolbox} \makeatletter \...

5

You can load many different \mathbb alphabets using the mathalpha package, or if you can use LuaLaTeX or XeLaTeX, unicode-math. All are outline, rather than bitmap, fonts. After loading the package and your fonts of choice, write \mathbb{A}.

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