Tag Info

2

You're using the wrong tool. \documentclass{scrartcl} \usepackage[american]{babel} \usepackage{ifthen} \usepackage{environ} \newboolean{sol} \setboolean{sol}{false} \NewEnviron{solution}[1][false]{% \csname if#1\endcsname \trivlist \item\relax\textbf{Solution.}\enspace \BODY \endtrivlist \fi } \begin{document} \begin{solution} ...

2

I have a different proposal; instead of complicating your life, just redefine proof in such a way that \begin{proof}* doesn't print the proof. Instead of * you can choose whatever (single) character you prefer. After all, it's just a switch, so be it. \documentclass{scrartcl} \usepackage{xparse} \usepackage{environ} \usepackage{amsthm} %% save the ...

2

To reiterate from my comment, the problem with your MWE is the fact that your environment, as written, has one optional argument, and one mandatory argument. Your first use case fails to provide the mandatory argument (the label). Thus, the environment grabs the next thing, which is the first letter of your proof, and calls it the label. If your first use ...

8

The invalid character is ^^^, that is, 0x1E; LaTeX, by default, makes all characters from 0x01 to 0x1F invalid, with the exception of 0x09 0x0C 0x0D that is, tab, line feed and carriage return (category codes 10, 13 and 5). A workaround could be making this character ignored: \documentclass{article} \usepackage{ifluatex} \ifluatex ...

2

To make a format file from matteo.tex, you should simply add at the end of matteo.tex the control word \dump and then type on the command line tex matteo Now a file called matteo.fmt should have been generated. To load such file, you should type on the command line tex &matteo. If the format in matteo.tex does not extends plain tex, in order to ...

10

There have been many attempts to use Postscript's programming power to implement a fuller document-production environment. AFAIK they all fall short of TeX's line-fitting abilities. The most basic is the typewriter emulator from the Postscript Tutorial (Blue Book), which is then extended in the later Reid books (the Green Book and Thinking In Postscript) to ...

19

The insertion of the “frozen \relax” is not documented in the TeXbook, where \relax appears 57 times, mostly in listings. No mention of this insertion is made in the discussion of conditionals. The insertion is documented in section 12.5.3 of TeX by Topic: Of course it's in “TeX the program”: module 510 describes the insertion in incomplete conditionals. ...

6

LaTeX font system is really complicated. You can have some idea of why it's very difficult by looking source code of TeX font. an example, droid package that provide droid font into LaTeX : http://www.ctan.org/tex-archive/fonts/droid How fonts are used by TeX Tex doesn't manipulate fonts, In the first implementation of tex compiler (no ...

19

Well pdflatex can handle true type fonts to a certain extent. E.g. the winfonts package allows to use arial.ttf and other truetype fonts in windows. The main difference between pdftex and the new engines xetex and luatex is not the font format but the existence of the tfm-file with the metric informations: When using pdftex the tfm-file must exist before ...

3

You should use a non active - in the replacement text: \def\foo{\catcode\-=\active \begingroup\lccode~=`- \lowercase{\endgroup\def~}{$-$}% } \begingroup\foo This is a - sign and not a hyphen. \endgroup Now - is a hyphen. \bye In a LaTeX context you probably want to use \ensuremath{-} instead of $-$.

3

morewrites – Always room for a new write stream The pack­age aims to solve the er­ror “No room for a new \write”, which oc­curs when the user or when the user’s pack­ages have ’al­lo­cated too many streams us­ing \newwrite (TeX has a fixed max­i­mum num­ber – 16 – [of] such streams built-in to its code). The pack­age hooks into TeX ...

Top 50 recent answers are included