New answers tagged

2

I added export PATH="$PATH:/home/myusername/texlive/2016" That appears to be the wrong directory, at the wrong end of the path. If you already have tex in your PATH (and you appear to have texlive 2013) then any invocation of tex or latex will use the first one in your path, which will be the old one. then you need to put the directory with the ...


9

Experiment 1: \documentclass{article} \usepackage[cmyk]{xcolor} \usepackage{xcolor} \begin{document} a \end{document} Terminal output: This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./exp.tex LaTeX2e <2016/03/31> patch level 2 Babel <3.9r> and ...


6

You could use Lua to obtain your current IP address (within your NATed network). Therefore I ping Google's DNS server and let the interface report to me the binded address. % arara: lualatex \documentclass{article} \newcommand\place{\directlua{ % https://stackoverflow.com/questions/7046291 require "socket" local s = socket.udp() s:...


10

you've placed the (t) outside the scope of the \ket command. just move the open brace before the \psi: \ket {\psi(t)}. off-topic: since amssymb loads amsfonts automatically, it's not necessary to specify them both.


2

The problem is similar to the one in Is it possible to get the package listofsymbols to recognize the \cdots command?. The figcaps package uses \immediate\write and multibyte UTF-8 characters don't survive it. Also the solution is similar \documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \...


1

\dominitoc should be used before \tableofcontents, not after it! There are also some issues (like the the figure environment within the titlepage (why?)) and hyperref should be loaded last (here!). \documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} \usepackage[demo]{graphicx} \usepackage{float} \usepackage{titlesec} \usepackage{listings} \...


2

The package ngerman is obsolete and should not be used. The error disappears if you correctly use babel. \documentclass[a4paper]{article} \usepackage[ngerman]{babel} \usepackage{gnuplottex} \begin{document} \begin{gnuplot}[terminal=epslatex] plot sin(x) w l \end{gnuplot} \end{document} Alternatively, but not recommendable, load the packages in ...


9

First of all: Please do not ignore error messages you get when compiling your document. The example document can be minimized to: \documentclass{article} \usepackage{ctable} \usepackage{todonotes} \begin{document} Body \end{document} It still shows the magic "caption", but issues an error message: ! Package ctable Error: You must load ctable after ...


0

Following the comment of user OSjerick, I can indeed disable the dissimilarity coding of texshade with the following command options: \shadingmode{diverse} \allmatchresidues{Black}{White}{upper}{up} \conservedresidues{Black}{White}{upper}{up} \nomatchresidues{Black}{White}{upper}{up} The resulting figure then displays nucleotides as upper case letters ...


1

Do not say \global\let\value=\value You need to pick something other than \value and other than any other existing macro which you wish to later use, either implicitly or explicitly. When you use \pgfmathsetmacro, TeX defines the macro to whatever you say, even if the macro already exists. I'm not sure what \global\let\value=\value is intended to do,...


1

The Tikz package (https://www.sharelatex.com/learn/TikZ_package) would appear to be sufficiently powerful to do what you request. Also, Ryan Reich appears to have written a package (http://www.ryancreich.info/index.php?page=latex&subpage=string_diagrams) on top of Tikz specifically for string diagrams. I have not tried this approach, but the link is ...


0

Solution - perhaps should be obvious for people more use to latex, but it was not to me after looking at previous posts: After downloading expl3 packages, run latex on l3.ins in the directory to extract .sty files from .dtx ones. (Thanks to Andy Swann)


2

If you had the current version of latex (or the one before) then it would work by default, but for older releases you can just define the needed character \DeclareUnicodeCharacter{2010}{-}


2

This error is already avoided in the texlive sources so will be fixed at the next update, today or tomorrow, until then if you load graphicx before xcolor or even just \expandafter\newif\csname ifGin@setpagesize\endcsname to define \ifGin@setpagesize then the error should go.


4

The call to python is hard-coded in the package. You can make it to call python3 with a patch: \documentclass{article} \usepackage{python} \usepackage{etoolbox} \patchcmd{\endpython}{python }{python3 }{}{} \begin{document} \begin{python} import sys print (sys.version) \end{python} \end{document} In the log file we find runsystem(cat jay.py | python3 &...


2

Make a directory in TEXMFHOME for your adapted version: mkdir -p $(kpsewhich -var TEXMFHOME)/tex/latex/python3/ Move there pushd $(kpsewhich -var TEXMFHOME)/tex/latex/python3/ sed -e 's+\(ProvidesPackage{python\)\(}\[\).*\(.*Python in LaTeX\)+\13\22016/06/17 v0.21-3 \3 modified for Python3 by JW+' -e 's+\(\\immediate\\write18{.*\| python\)\( > \\...


2

Usually, simple packages can be installed manually by finding the package file (ending in .sty) and saving it in the root directory. This will override any existing preinstalled package of the same name. The package file can usually be found on CTAN or similar.


2

The files should not go under .../texlive/2016/texmf-dist/, but under .../texlive/texmf-local. The main tree is only for things in the official distribution: changing it might leave an unstable TeX system. Installing the files in the “distribution” tree has the consequence that everything has to be redone at every release of TeX Live. This said, the ...


2

Do you mean you added it to article.sty ? that file isn't used at all (except for latex 2.09 emulation) you need to modify the renamed copy of article.cls


1

Unfortunately, TeX terminology uses 'package' in 2 senses. A package is a collection of one or more files distributed together. These are packages in the CTAN / TeX Live sense. In this sense, a package may include several files with various names for various purposes. The package may or may not be designed for or usable with the LaTeX format. A package is ...


0

A similar yet a little bit different way than Alessandro Jacopson's answer is the following: Use the miktex setting (user and/or admin) program installed with the basic MikTex distribution to set "Install missing packages on-the-fly" to "Ask me first". Create a miktex local repository as in Alessandro Jacopson's answer, i.e., create a folder with ...


1

I suggest to use a \def\smallscalefig{5cm} (or any other small width value that suits) to provide the possibility to compile the document. Apparently the \smallscalefig macro was once defined somewhere in user code but got lost during copy-and-paste etc.


0

To add cls package (like moderncv) in my OS distribution with texlive 2015, I just unzip package under /usr/local/texlive/2015basic/texmf-dist/tex/latex. Don't forget to run sudo texhash! Hope this help.


4

Go to Document > Settings > Local Layout and put provides graphicx 1 Click on Validate, then click "OK". What this does is it tells LyX "I'm taking care of loading the graphicx package, don't worry about." Then the responsibility is on you. To find out more details, consider reading Help > Customization > 5.3.4 General text class parameters. (thanks to ...


0

From Dwight Aplevich's e-mail First Answer, with pstricks test.m4 \documentclass{standalone} \usepackage{boxdims} \usepackage{pstricks} \usepackage{steinmetz} \begin{document} .PS cct_init sinclude(test.dim) s_init(steinmetz) scale=25.4 command " \newcommand\Angle[1]{\setbox0=\hbox{$\mskip 7mu minus 4mu#1$}% \raise.21ex\hbox{$/$}\hskip-0.95ex\underline{\...


2

A basic installation of MiKTeX means that only a part of the complete MiKTeX Distribution is installed. If you need more there is an automatic way, that MiKTeX installs needed missing packages by its own (You have to activate this while installation). Of course you need then a running internet connection to get the missing packages loaded. That is the ...


0

We can only guess what have you got on your computer. There are at least two methods that should help. Find All programs -> MikTeX 2.9 -> Maintenance (Admin) -> Settings -> General -> Reresh FNDB. Copy xcolor.sty to the working path. The first one is more general, but if you quickly need only a few packages to use, the second method may be a temporary ...


0

How to put .sty and .cls Files where TexShop will find them: Personalised sty files are stored in ~/Library/texmf/tex/latex. The folder ~Library is a hidden folder. In Finder, click on your home folder in the Finder directory tree on the left hand panel of the Finder. Next, the hidden folders then need to be made visible. This is done from a terminal. The ...


0

I create below two small examples separated by three dots. You can change the line width similarly to the color with the command line width such as \draw [color=red, line width=0.5mm] (0,0)--(1,1). MWE \begin{tikzpicture} \tikzstyle{every node}=[draw, circle, fill=black, inner sep=0pt,minimum size=3pt] \draw (0,4) node(6){} -- (2,3) node(5){} -- (2,1) ...


0

My problem was that I had two installations of MikTeX on my system (for whatever reason I don't know). Simply deleting one of them solved the problem.



Top 50 recent answers are included