# Tag Info

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.

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

4

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

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

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

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

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

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

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

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

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.

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

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

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

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.

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