Hot answers tagged

64

It's currently Friday, April 1 in Europe. Happy April Fools' Day! (Just in case you didn't know, April 1st is a traditional day for people to play pranks on each other.)


45

Our webmaster Gerd Neugebauer invented this joke. He did a great job! Manfred Lotz -- CTAN team


12

It's April Fools' Day. The Chinese character 疯 actually means "crazy", "mad" or "insane".


11

\pm requires the mathmode, being switched into with $...$. For displaying % use \SI{number}{\percent} rather for better spacing and correct usage of fonts. For text mode, there's \textpm too, this requires textcomp package: \documentclass{article} \usepackage{textcomp} \usepackage{siunitx} \begin{document} $\SI{50}{\percent} \pm \SI{2}{\percent}$ ...


8

Similar to Christian's answer, but siunitx will deal with the correct typesetting, be it text mode or math mode. \documentclass{article} \usepackage[ separate-uncertainty = true, multi-part-units = repeat ]{siunitx} \begin{document} Math mode: $\SI{50 \pm 2}{\percent}$ Text mode: \SI{50 \pm 2}{\percent} \end{document}


6

Not every font has the correct glyphs in \mathrm to work 'out of the box'. Here you probably want \documentclass{article} \usepackage{skmath} \usepackage{siunitx} \sisetup{math-rm = \ensuremath} \begin{document} \num{\pi} \end{document}


6

It caught me, I was livid and afraid to click onto anything, restarted all the usual things a couple of times. Good joke and nice to be caught out on April Fools! :) I got caught out by the 'Apple buys iFixit' joke a couple of years ago.


3

The easiest way is to put the pictures in the same directory as your (main) LaTeX document. Then \includegraphics[width=0.5\textwidth]{bird1} is working fine. If you put it in some subfolder (relative to the main document) you say, e.g. \includegraphics[width=0.5\textwidth]{Pics/bird1} Or you can define where LaTeX should look for pictures using the ...


3

You can use https://ctanmirror.speedata.de/ to get old versions. It gets back to 2013-03-17.


3

ÔÑã and ÔÇå are Unicode code points, viewed in mac roman encoding: ÔÑã: 0xEF, 0x84, 0x8B -> U+F10B ÔÇå: 0xEF, 0x82, 0x8C -> U+F08C The Unicode block is the private area. Font Awesome uses this area for its symbols: U+F10B: \faMobile or \faicon{mobile} U+F08C: \faLinkedinSquare or \faicon{linkedin-square} \documentclass{article} \usepackage{fontawesome} ...


3

array takes a mandatory argument. It would probably be much easier for you to write \sum_{\substack{a\geq1, ad=n \\ 0\leq b<d}} Full MWE: \documentclass[12pt]{amsart} \usepackage{fullpage} \usepackage{amsthm} \usepackage{array} \usepackage{tikz} \usetikzlibrary{matrix, arrows, decorations.pathmorphing} \usepackage{amsmath} \begin{document} ...


2

The issue happens when the file name is being printed. The simplest workaround, if you have no special need such as macros in the file name, is \getfiledate{\detokenize{tables/classification_Full.tex}} Otherwise, the string has to be made in a different fashion: \begin{filecontents*}{clifte_test.tex} Hello \end{filecontents*} \documentclass{article} ...


2

Load the tocbibind package with the options nottoc, notlot, and notlof: \usepackage{nottoc,notlot,nottoc]{tocbibind}


1

This is supposed to be a comment, but I do not have enough reputation to do that. I think this script may help. It says (I changed it a little bit): Install texdoc by tlmgr install texdoc Enable automatic build of documentation, which is disabled (by default) for BasicTeX tlmgr: tlmgr option docfiles 1 Build documentation for all installed packages: ...


1

To use arabi package for writing arabic, instead of \usepackage{arabi} you must add \usepackage[utf8]{inputenc} \usepackage[english, arabic]{babel} \usepackage[LAE]{fontenc}


1

The lollipop package corresponds to a format (just like latex or pdflatex), so it is linked to the “binary” packages for the various platforms; the ones relative to the host machine are automatically installed. On Mac OS X usually both universal-darwin and x86_64-darwin are installed (you can disable one of them, but it's not so space saving. In the ...


1

Not sure if this is the best way, but I define \DTMshortdate{}. \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[ngerman]{datetime2} \let\svDTMgermanmonthname\DTMgermanmonthname \newcommand\DTMshortdate[1]{% \def\DTMgermanmonthname##1{% \ifcase##1% \or Jän.\or Feb.\or März\or Apr.\or Mai\or Juni% \or Juli\or Aug.\or Sep.\or ...


1

By using, as the OP did, \csname \foo@#1\endcsname, a macro is invoked with the name formed by substituting the definition of \foo followed by argument 1, #1. But what the OP's main code suggests isn't that the value of \foo is desired, but rather the letters "foo" themselves, so that the macro being invoked has the "name" of "foo#1", where #1's value is ...


1

The sw20jart.sty belongs to Scientific WorkPlace (SWP) and, as far as I can see, it just does some (bad) redefinition of standard commands. It also loads jeep.sty that is a LaTeX 2.09 style file and which does similar bad redefinitions. The file thmsupp.sty does nothing at all: it just defines package options that are not used because of the way the file is ...



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