New answers tagged

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

I could not get things to compile, so I converted to Latin text and compiled with pdflatex. But, since your background lines did not require autowrapping, I suggest the use of the stackengine package: \documentclass[12pt,sanskrit]{memoir} \usepackage[b6paper]{geometry} \usepackage{graphicx} \usepackage[pages=some]{background} %\usepackage{xunicode} ...


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

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


0

Leading < characters are interpreted by lhs2TeX as shorthand for the spec environment (i.e. literate Haskell that should not be picked up by the compiler), as explained in chapter 3 of its usage guide. I was able to work around this by simply adding a leading space before the < on the production rule's left-hand side: \documentclass{article} ...


0

To configure TeX Studio, goto Options > configure TeX Studio > Commandsand add--enable-write18` to the pdflatex switches in the relevant line, like this:


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

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


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}


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


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


0

This approach is both easy and hard (and more trouble than it is worth, in my opinion). Hard because the user has to laboriously catalog the package associated with each symbol in a style file. But easy because each new symbol requires only a single line added to the AddSymbol.sty file, for example, \def\AddSymbolVdash{\RequirePackage{amssymb}}. Then, ...


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


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


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


0

For any further package documentations give https://www.ctan.org/ a try. There´s an even bigger list of options for your desired package in the documentation: http://ctan.mackichan.com/macros/latex/contrib/tocbibind/tocbibind.pdf


2

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


0

Looks like you have everything in the correct place but you need to refresh the File Name Database for MikTex to find it. Go MikTex Settings (Admin) from your start menu (or equivalent) → click Refresh FNDB. This will refresh the database letting MikTex know the locations of the packages.


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}


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


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.


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



Top 50 recent answers are included