Tag Info

Hot answers tagged

8

Contra other posters, you can overwrite or modify an open file on OS X (as on any UNIX, as far as I know), so the update will succeed. The only potential problem I see is a small race condition where e.g., a style file that you are using has been unpacked and moved into place, but other dependent files are not yet in place or font maps haven't been updated. ...


7

Packages cannot be loaded inside the option part of another package. There are several options: The package loading can be postponed to the end of the current package: \DeclareOption{tikz}{% \AtEndOfPackage{% \RequirePackage{tikz}% }% } A switch can be defined: \newif\ifmystuff@tikz \DeclareOption{tikz}{% \mystuff@tikztrue } ... ...


6

Your problem with boondox under MiKTeX is typically a problem with updating the psfonts databases that are used by dvips and pdflatex: psfonts.map and the like. It happens from time to time that fonts installed with MiKTeX Package Manager are not mentioned in this database, for some reason, and Metafont then tries to make bitmaps and fails to do so. The ...


6

You can modify the \includegraphcs macro to add to a list and print the list at the end of the document. The MWE below yields the following output: Figures included were images/figA.jpg images/figB.png Notes: In this case \let would have work as well (as per egreg's comment at Resize all images in Latex to a percentage width), but I have gotten used ...


6

Add \usepackage{tikz} to your preamble. Then where you want your figure insert the following code. \begin{figure} \begin{tikzpicture} %axis \draw (12,0) -- (0,0)--(0,10); % Blue lines \draw[blue] (0,9)node[left]{\color{black}20} -- (11,0)node[below]{\color{ black}12}node[near end,right]{\color{black}$MC_2$}; \draw[blue] (0,9) -- ...


6

You asked two distinct questions and it is important to separate them. There is a very big difference between editing your documents while updating; compiling your documents while updating. It is definitely perfectly safe to keep working on your documents during an update. The only potential problems involve compiling them during the update. I avoid this ...


5

At the moment you use \DeclareOption, your style file is divided into three parts: Pre-options Section (above first \DeclareOption); Options Section (between first \DeclareOption and \ProcessOptions); and Post-options Section (after \ProcessOptions). Whatever is contained within the pre-options section has already been processed. So, the only problem ...


5

Here's a way of accessing the original calligraphic alphabet when necessary. I've also tidied up a few things in your preamble. \documentclass[letterpaper,10pt,american]{article} \usepackage{amsmath,amsfonts,amssymb,amsthm,graphicx,color,srcltx,hyperref,enumitem,bm,cancel} \usepackage[left=1 in, right=1 in, top=1 in, bottom=1 in]{geometry} \usepackage ...


4

(1) Comment the line loading the package that you want to test: \documentclass{article} %\usepackage{fontawesome} \begin{document} The \faBook And the \faCloud \end{document} (2) Compile from the command line yourfile in nonstopmode: lualatex -interaction=nonstopmode yourfile With the above MWE you will see in the output that now lines 4 and 6 ...


4

You don't say exactly what the undefined control sequence you get is, but I get the error ! Undefined control sequence. <argument> \__int_get_sign:n {10}\c_one l.13 \zhnumber{10} with your example or a much shorter one \documentclass{article} \usepackage{zhnumber} \begin{document} \zhdigits{5} \end{document} The ...


4

One possible redefinition of the syntax, if you are willing to accept this syntax as a solution: \log[<base>][<exponent>]{<expression>} The required redefinition: \ExplSyntaxOn \RenewDocumentCommand\log{oom}{% \IfNoValueTF{#1} {\ensuremath{\__skmath_log:\IfNoValueTF{#2}{}{\c_math_superscript_token{#2}}\__skmath_parens:n{#3}}} ...


4

The mh package has recently been split into mathtools and breqn, with different maintainers, and they certainly appear in MiKTeX Package Manager: Which version of mpm do you have?


3

Do not update while working on your document (at least if you aren't a professional LaTeX user) Some years ago, we had the case that an innocent update to a package (libertine) removed support for pdftex. I run the texlive update happily during the morning while working on a large document and all of a sudden compiling was impossible! Naturally, I searched ...


3

How about a vertical alignment of the \underbraces using a strut: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \newcommand{\tempstrut}{\rule[-1.2\baselineskip]{0pt}{1.5\baselineskip}} \frac{\mathrm{d}^2B}{\mathrm{d}A^2} = - \underbrace{\tempstrut\frac{1}{(1-p)U'(B)}}_{(+)} \Bigg[\underbrace{\tempstrut p U''(A)}_{(-)} ...


2

An alternative is use of textcase package with commands \lowercase{...}. Further info can be found here textcase. Test file and class files are from SIAM. Also to compile, one needs to use Use latex -> dvips -> ps2pdf rather than pdflatex. Please see SIAM compiling. Code \documentclass[]{siamltex1213} \usepackage[overload]{textcase} \title{This ...


2

You have to define a monospaced font that has Greek characters. For instance \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{alltt} \setmainfont[ Extension=.ttf, UprightFont=*, BoldFont=*bd, ItalicFont=*i, BoldItalicFont=*bi, ]{times} \setmonofont{cmuntt.otf} % or any other monospaced font supporting Greek \begin{document} ...


2

This is not TeX related question. You can open the folder in Nautilus for example, select the figures you want and press Ctrl+C. Then open some text editor, such as Kate or gedit and press Ctrl+V. There you have it - the full paths of all of your selected figures. Another way is to get all the informations from the .tex file. Here are the commands: $ cd ...


2

Before the new version of zhnumber is released, you can use this quick (and dirty) fix: \documentclass[UTF8]{ctexart} \usepackage[encoding=UTF8]{zhnumber}% v1.6 2012/11/23 % Quick fix \ExplSyntaxOn \cs_set_nopar:Nn \zhnum_integer:n { \bool_set_false:N \my_isneg_bool \my_parse_signs:nw #1 \q_stop \zhnum_parse_number:f { \zhnum_trim_zeros:f { ...


2

This bug was fixed in the new version (v2.0) of zhnumber. I have submitted it to the CTAN. It is also to be updated in TeX Live.


2

If an updated package should be announced by the CTAN maintainers is a decision of the package author. If he/she enables the button no announcment needed while uploading a new version a default TeXLive/MikTeX user will notice such an update only when he/she updates his/her TeX distribution. http://texnik.dante.de/ has nothing to do with CTAN. It is a ...


2

There is the ean13isbn package: http://www.ctan.org/pkg/ean13isbn. Then there is the GS1 package: http://www.ctan.org/pkg/gs1. Both can produce EAN8 and EAN13. But I am completely disappointed that both packages use bitmap fonts (not outline fonts) for the digits below the barcode. If, in case of the GS1 package, I turn off the usage of the ocrb font, the ...


2

The problem is exactly in the colon in the label, for which smartref has no protection mechanism like \ref has. A quick patch is the following: \documentclass{book}[11pt] \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{smartref} %Pour \chapterref \usepackage[frenchb]{babel} \usepackage{regexpatch} \makeatletter ...


2

The comments above suggest that there may be a way to solve your problem without learning how to manually install LaTeX packages. But, it's not a bad idea to know how for troubleshooting, and quick fixes. Overview: create a TDS directory structure (once) place mathtools directory inside (most packages should go in latex/) run tex on .dtx files (creating ...


1

As I use Ubuntu I have installed TeX Live and of course I use apt-get to install packages. I found that I was missing some files needed to compile my document. Using apt-cache as recommended in Method 1 above I found that texlive-latex-extra was the package I needed. However the download size was huge (327 MB). The essential package only, was easily ...


1

I ended up downloading and manually installing the mathtools package, this was easier I think than switching to an earlier version of miktex. I think emher is right and that this is a bug in miktex 5105 where those two packages just don't appear in the list. For anyone else with the same problem you can download the package here. To install the package I ...


1

The compiler often tries to give you a hint what you can do to fix it. Sometimes it's very cryptic and involves wizards (If you really absolutely need more capacity, you can ask a wizard to enlarge me.), in this case it's just LaTeX Error: Can be used only in preamble which basically means you can't use it in your document part (after ...


1

Here is a way to use a simple tabular with the enhancements offered by booktabs. Trying to learn multiple packages to do similar things all at once before you understand the basics is, I think, a recipe for confusion and frustration. \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,mexico]{babel} \usepackage[T1]{fontenc} ...


1

To use a particular font with pdfLaTeX or LaTeX (as opposed to LuaLaTeX or XeLaTeX), you need to know either the name of a package which activates the font or the name of the font family as it is defined for LaTeX. This is not necessarily the name of the font. So although there is a package times, for example, there is no package, garamond. The easiest way ...


1

Old question, but this is a common problem. If you installed via MacTeX, TeX Live will end up in /usr/local/texlive, but I believe MacPorts installs under /opt by default (it did last time I checked, but it's been a few years). Hence, you do indeed have two conflicting TeX distributions, and you're running kpsewhich from the MacPorts install. If you enter ...


1

put the file in ~/texmf/tex/latex/bbm/ (you may have to create directories for that). however, the fonts are distributed separately as metafont source and you'll need to install them, too; it's a long time since i've done that, but try copying all of the font files on an archive mirror into ~/texmf/fonts/bbm after that, i reckon it’s worth running texhash ...



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