Tag Info

Hot answers tagged

10

\IfFileExists can be used to only load the package if the package file exits: \IfFileExists{mathabx.sty}{\usepackage{mathabx}}{% % place for definitions to simulate the missing package, example: \providecommand*{\widecheck}{\check}% } If the package does not exist, macros defined by the package can be provided in the third argument of \IfFileExists or ...


8

If you look in the log file, every time TeX opens a file it prints a ( followed by the path to the file, and when it closes a file it prints a ) so by matching (or more likely getting your editor to match for you) () pairs you can work out the currently open file for any message in the log. The same is needed for error messages where the number is given as ...


7

The siunitx code works by parsing numbers into separate parts then reconstructing them. This allows a lot of flexibility but is pretty inefficient for the common case of simple numerical input. You can get much faster performance by turning off the parser \sisetup{parse-numbers = false} This can be done globally or just inside your tables. When the ...


7

A TeX engine in the initial state ('IniTeX') knows only the primitives and a very small number of pre-defined settings. For almost all practical use you want a set of macros on top of this. That can be achieved by doing tex -ini and then typesetting them in interactively, but is much more practically achieved by having them saved into a file. You could ...


4

For simple alignments like this you can use dcolumn, but I also had to adjust the spacing to make your table fit in the page width. \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} % kodovani \usepackage[english,czech]{babel} % cestina \usepackage{siunitx,booktabs,dcolumn} ...


4

The first thing to diagnose for "XeTeX running slowly" problems is to compile the document with xelatex -no-pdf, and then run xdvipdfmx manually on the resulting .xdv file. Timing each one separately will indicate whether it's XeTeX running slowly or xdvipdfmx. The next step is to figure out if it's XeTeX or fontspec at fault. I would be surprised if it ...


2

I found smcaps.sty in an quite old version of README of cmbright: (4) Help! CM Bright does not provide 'small capitals'. Company names, acronyms, trade marks and similar material may be typeset capitalized. In order to make the result less obtrusive, the font size should be one 'step' smaller than the surrounding text. A 'quick and ...


2

The full error message is Package biblatex Warning: Conflicting options. (biblatex) 'firstinits' conflicts with 'uniquename=full'. (biblatex) Setting 'uniquename=init' on input line 62. see the output or .log file. So it is coming from biblatex and is not a fatal error. The style is setting the uniquename option, so I ...


1

When I took out the following code my document compiled. I have no idea why this fixed the problem. %this is the hedder \pagestyle{headandfoot} \firstpageheader{Math 115}{First Exam}{July 4, 1776} \runningheader{} \firstpagefooter{}{}{} \runningfooter{}{}{}


1

Move the precompile.fmt file in the folder ~/Library/texmf/web2c/pdftex creating the missing folders as you go. On different TeX Live based distribution (the above path is good for MacTeX) the correct path would be ~/texmf/web2c/pdftex (assuming the standard setup is used).


1

TeXlipse does some recognition of syntax in Eclipse. It struggles with huge files though... Very slow on my file of over 2000 lines.


1

As a complement to Heiko's answer, it sounds like smcaps.sty is a very old package that has all but disappeared from distributions, hence MiKTeX is unlikely to be able to install it, on the fly or not. But you shouldn't be needing it anyway. Small capitals are a property of the font and nor usually available as a separate package. If the font you're using ...



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