Tag Info

Hot answers tagged

4

If you want to create a TeX Live package, you need to do the following steps. I assume here that you are not shipping any binaries, but only files in a the texmf hierarchy. Also assume that the package is called foo: prepare a TDS tree of the package, say in foo, that is, you have foo/tex, foo/fonts etc. write a tlpobj file in foo/tlpkg/tlpobj/foo.tlpobj ...


4

\usepackage{fontspec} is sufficient. It will set the fonts to Latin Modern by default. That said, your code compiles fine for me. I am not that familiar with XeLaTeX. However, I know it uses OS fonts and I know it handles things differently from LuaLaTeX. So you may need to tell your system about the TeX fonts. For example, I have the following ...


3

You need to add the .cls to some folder that your tex distribution can find, for compiling. You can for example make a folder in your home directory and register it with tex. Then you can easily keep your folder of tex goodies when you wipe your machine. See this Q & A for details. Secondly, you need to make LyX aware of the package you added. See this ...


3

User cfr pointed out that I may already have texlive-base installed. To check whether this was indeed the case, I listed the installed packages with the name "texlive*". $ dpkg -l | grep texlive ii texlive-base 2013.20140215-1 all TeX Live: Essential programs and files ii texlive-binaries ...


2

Simple Solution This can be accomplished with the xstring package. In particular, the \StrMid{string}{#2}{#3} command allows you to take the substring of string from character positions #2 through #3. \documentclass{article} \usepackage{xstring} \newcommand{\myText}[2]{\StrMid{2014/12/20}{#1}{#2}} \begin{document} \myText{1}{4} \end{document} Allowing ...


2

A LuaLaTeX-based solution, which sets up a TeX macro called \substring that takes three arguments. The first argument of the macro \substring is a string. It can be either a hard-coded string or a TeX macro that produces a string. E.g., if \myText is defined via \newcommand{\myText}{2014/12/20}, then \myText could used as the first argument of \substring. ...


2

There is no need for installing texlive as root. It makes sense to set the owner of the texlive to the user: sudo chown -R <username>.users /usr/local/texlive Then you can run all <command>-sys as a default user.


2

You can use \hypersetup just before \tableofcontents within a group: \documentclass[12pt]{book} \usepackage{blindtext} \usepackage{xcolor} \definecolor{darkgreen}{RGB}{41,159,49} \usepackage[colorlinks=true, urlcolor=blue, linkcolor=darkgreen, citecolor=darkgreen]{hyperref} \begin{document} {\hypersetup{linkcolor =black} \tableofcontents } ...


2

There is no amacite.sty package but there is an ama.bst bibtex style. It is not part of TeX Live, but you can find it on CTAN, for instance here. You'all have to install it by yourself, in your texmf-local directory, more precisely in \texmf-local\bibtex\misc\ and run texhash. Then use in your document: \bibliographystyle{ama}


2

This is a minor update! In the most recently updated version (10/28/2014) of siunitx, this code works, and produces the correct symbol and spacing. \usepackage[inter-unit-product=\cdot]{siunitx} The code from the answer here: \usepackage[inter-unit-product=\ensuremath{{}\cdot{}}]{siunitx} no longer seems to work, and will throw an error about a ...


2

In general PATH changes are better off added in ~/.profile (for personal use) or added to /etc/profile or added in the front of the PATH variable in /etc/environment. In any case always make a back up first. Why not ~/.bashrc? It will only be executed in a bash context. So when an editor is started from a menu, and it makes a system call to start LaTeX, it ...


1

I solved the problem by something very simple: In Options -> Configure Texmaker I typed the full path for pdflatex's and lualatex's and biber's binary. I got the full path by opening the terminal and typing "which [pdflatex|lualatex|biber]". It works now. However, I don't understand WHY providing the full path to Texmaker is necessary. In Terminal, I can ...


1

I could compile elsdoc.tex, found in this directory, with a enum.sty by David Carlisle, found here. Download the file and put it into the current directory along side elsdoc.tex with its other needed files (images and packages). But anyway, usually there is no need to compile the documentation source file, because the PDF is already present.


1

With the stringstrings package. \documentclass{article} \usepackage{stringstrings} \begin{document} \def\x{2014/12/20} \substring{\x}{1}{4}\par \substring{\x}{6}{7}\par \substring{\x}{9}{$}\par% The $ implies the last character of the string. \end{document}


1

I have done a search on my system (Kubuntu 14.04): sudo apt-cache search quattrocento fonts-quattrocento - classic, elegant, sober and strong Roman typeface texlive-fonts-extra - TeX Live: Additional fonts Please install the package "texlive-fonts-extra" and you should be able to use this font.



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