# Tag Info

6

Both option/package combinations can be easily merged: \usepackage{graphicx} Of course different drivers cannot be used for parts of the document. If you are using pdflatex, then option pdftex can be omitted, because the standard graphics.cfg of MiKTeX or TeX Live is able to detect pdfTeX in PDF mode and sets the option appropriately. \usepackage{tikz} ...

3

\usepackage[something]{inputenc} tells LaTeX which input encoding to expect. This is the encoding that your document is saved in. You cannot save your document in two different encodings. (You could make two copies - one per encoding - but a single file has a single encoding.) So you cannot use both \usepackage[utf8]{inputenc} and ...

7

I don't know where this [pdftex] habit originates but you don't need to use it. You can read a few answers on this site too about it but in a nut shell, most modern packages know what the current driver is and they can decide. Providing a fixed option is only looking for trouble. In your example, TikZ already loads graphicx so you don't need to do ...

1

\iftrue %\iffalse \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \else \usepackage{graphicx} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \fi In this case the first three are used. If you comment \iftrue and uncomment \iffalse it will be the other way round.

16

Whether such an update is allowed at all depends entirely on the licence/copyright conditions under which the original code was distributed. If it is LPPL version 1.3 there are explicit conditions under which maintenance may be taken over. Similarly if it is GPL then in place edits are not blocked by the licence. But in general, unless such a licence has ...

9


37

Well it's not rocket science either \begin{tikzpicture}[limb/.style={line cap=round,line width=1.5mm,line join=bevel}] \draw[line width=2mm,rounded corners,fill=yellow] (-2,0) -- (0,-2) -- (2,0) -- (0,2) -- cycle; \fill (1.5mm,7mm) circle (1.5mm); \fill(0,-7.5mm) -- ++(10mm,0mm) -- ++(120:2mm)--++(100:1mm)--++(150:2mm) arc (70:170:2.5mm and 1mm); ...

20

I didn't find such a sign in the LaTeX symbol guide, so here is a tikz solution: Look for a nice sign on Wikipedia, download the svg file, convert svg to tikz with Inkscape. Then you can build a command like this: \documentclass{article} \usepackage{pifont} \usepackage{tikz} \definecolor{cec1d24}{RGB}{236,29,36} \definecolor{cffffff}{RGB}{255,255,255} ...

4

Agreeing with Christian Hupfer, you can only include the graphics directly. There is no symbol explicitly for this. Possibly, you can reconstruct using TikZ or other packages. For now, this should do. \documentclass{article} \usepackage[right=10cm,paperheight=4cm]{geometry} \usepackage[textwidth=8cm,shadow]{todonotes} \usepackage{pifont} ...

1

With pdfTeX or XeTeX you can't hook into the code for detecting when \inputlineno changes. It's just a read only integer parameter that's updated in a part of the program the user hasn't access to. Possibly the reader function in LuaTeX, described in section 4.1.2.1.1, might help with this engine.

0

I use the gantt package. It is simple enough in my experience, but then again, I am not doing anything too fancy like the multiple dependencies shown in the previous answer.

1

This answer assumes that you have a 32-bit linux version. You have to add-paste the following lines to your bashrc. ################################################# # # # LaTeX path configuration # # # ...

0

This does not answer my question but solves my problem. The command line tool MiKTeX package manager (mpm) seems to be the best way to install multiple packages at once. Espacially the commands mpm --install-some=FILE and mpm --import-all --repository=DIR are very helpful when reinstalling MiKTeX. For a documentation of the mpm program visit: ...

1

What I did was to let sudo know about the modification of the $PATH variable. This was done typing the following command on terminal sudo env PATH="$PATH" tlmgr In this way, I somehow enabled sudo in tlmgr. After that packages can be installed using sudo tlmgr install package

0

For the exam part, you can also have a look at the esami package, which can help you write the exam text and solution. I don't know if you can substitute the numbers of the questions with your image, but you can try with the other packages that have been suggested in the previous answers.

2


36

TeX, as designed by Knuth, has various registers addressable with an eight bit number (that is, from 0 to 255). Registers are of type \count \dimen \skip \muskip \toks \insert \box Let's consider the \dimen registers, for the others the allocation mechanism is similar. Each register is addressable by its number, for instance \dimen34=42pt \kern\dimen34 ...

16

classic TeX has 256 registers (eg count and dimen registers as allocated by \newcounter and \newlength in LaTeX. For some years LaTeX formats have used the extended etex (or pdf(e)tex engines rather than classic TeX, so actually there are 32768 registers available. However for compatibility reasons (or stubbornness, or apathy, depending on your point of ...

9

Run texdoc etex and you'll get the documentation of eTeX. Two of the nice new features are \dimexpr and \numexpr. Instead of 256 available counters, dimensions, etc. there are now 2^{15}. ε-TEX increases the number of TEX’s count, dimen, skip, muskip, box, and token registers from 256 to 32768. eTeX is the default engine for all programs except of ...

2

Depending on your setup, you may have different versions of packages floating around. When you're not sure what's going on with your version, it's best to see what version of a package you're using. Even though you think your TeXMF folder hash is updated, TeX may be grabbing something local, or something located elsewhere during the construction of the hash. ...

0

After tinkering with package internals trying to find a missing brace (like on Ulrike Fischer's comment and some Google search results), and noticing something else was corrupted, I went for a full re-install of MiKTeX. After that, the MWE seemed to compile. Actually, it was failing silently (a pdf was generated, but without bibliography, and the log didn't ...

0

I'm not sure if such a package exists; but I managed to cook one up, so I'll be posting it here. (if a package like this hasn't existed, and if it is useful, feel free to mod and eventually post on CTAN; unfortunately, I currently do not have the time to do that procedure, or to maintain in general) The only problem so far seems to me to be, that the ...

2

You can install the cabin font in your git repository Here's a recipe for TeXLive download cabin.tds.zip and unzip it inside your repository, e.g. c:/Dropbox/GIT/test/cabin/ The following steps must be executed once by every team member: add TEXMFHOME = {c:/Dropbox/GIT/test/cabin,~/texmf} to texmf.cnf in your /texlive/20XX/ directory. Of course, ...

0

Based on Ulrike's comment, it should be like this: .tex file in the mother directory: \documentclass{article} \usepackage{./testfolder/testpackage} \begin{document} Test \lipsum[1] \end{document} .sty file in daughter directory 1: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{./testfolder/testpackage} \usepackage{libertine} ...

34

The conditions of a package for TeX Live can be found at this page: TeX Live package contributions I will quote some of the page to discuss the conditions. Disclaimer: I am not part of the TeX Live team. This is just my way to see the licensing conditions and my interpretation might not be correct. Questions can be asked in the TeX Live mailing list ...

4

For one, just like there are outliers to the as it is now, there are possibly also outliers to the use when it is automated. Also, this would depend on the implementation of the referencing scheme. For example, the following* works with hyperref's \autoref: \documentclass{article} \usepackage{hyperref} ...

6

One of the issues here is that both probsoln and exam define the solution environment. However, probsoln will only define it if it doesn't already exist. If you load probsoln first, it will define the solution environment, because it's undefined. Then you load exam, which also tries to define the solution environment, and this is what causes the error ...

3

Package semantic adds special treatment for some characters. In this example you can disable the behavior by \mathligsoff: \documentclass{article} \usepackage{listings} \usepackage{semantic} \begin{document} \mathligsoff \begin{lstlisting} -> \end{lstlisting} \mathligson \end{document} The command can also be put into an init hook of ...

Top 50 recent answers are included