Tag Info

Hot answers tagged

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


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


10

You could try with \newcommand{\disableAllButCounters}{\setbox0=\vbox\bgroup} \newcommand{\enableAllButCounters}{\egroup} Since \setcounter and similar commands act globally, this should do; \write commands are executed only when the box eventually finds its way in the main vertical list, which the constructed box won't. \documentclass{article} ...


9

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


8

As Joseph said this isn't a feature of latex it's a feature of tex (shared with xetex and luatex) so there is no feasible way to do that in anything called latex. Also I don't think it is true that in general the memory constraints are that different: people's expectations increase even faster than hardware capacity. See the need for tikz externalize as a ...


6

I am unsure if posting this as an answer to my own question is kosher since it does not really answer it but I will not flag it as such (even assuming I could) so if anyone has a flash of inspiration that solves the original problem, I will gladly label it as a true answer. Now about the macros. I apologize in advance for the shape they are in. They have ...


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


4

You want something like \usepackage{letltxmacro} and \LetLtxMacro\colassavedincludegraphics\includegraphics \renewcommand\includegraphics[2][]{} for disabling the command; for reenabling it \LetLtxMacro\includegraphics\colassavedincludegraphics For the specific command \let might be sufficient, but \LetLtxMacro is safer for commands that accept ...


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


1

An experiment This approach of breaking vertical boxes helped me. I tried to figure out how many lines I am dealing with in a block. I am usually using the lineno package for that and its \linelabel and \lineref commands. These commands are similar to their \label and \ref counterparts. I am able to get a number of lines using this method. If I need a ...



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