title: Rochester theme titlepage change height of top bar

text: I want to change the height of the top bar but only on the titlepage. I want to set it first to 7mm, then to 14mm. How can I do that? Now I only know that I can change the height by `\usetheme[height=7mm]{Rochester}`.


title: What is an \if?

text: I'm reading TeX by Topic, but in little chunks (rather than from first page to last) and just read the stuff on conditionals. I want to be sure that I understand what's going on when TeX starts skipping stuff. What I've gleaned so far is that in, say, `\iffalse ... \fi` then:   1. TeX doesn't do expansions.   2. TeX keeps track of `\if...`s to ensure that the `\fi` really matches the `\iffalse`. It's that last bit that I'm wanting to make sure that I get straight in my head. To make it a precise question: What exactly is an `\if...`? One reason for my worry is that I have some pseudo-ifs in my code, where a command _starts_ `\if...` but isn't actually an `\if`. On the other hand, what if I had a command that _didn't_ start with the three characters `\if` but happened to be `\let` to an `\if`? So, for example, which of the following count as an `\if` when the **macro** (not the definition of it) is used between `\iffalse ... \fi`:   1. `\let\ifabc=\ifx` (so, to be clear, what happens in `\iffalse ... \ifabc ... \fi`, does the `\ifabc` count as an `\if`?   2. `\def\ifabc{\ifx}`   3. `\edef\ifabc{\ifx}`   4. `\let\ifabc=\SomePreviouslyDefinedCommandThatIsntAnIf`   5. `\let\abc=\ifx`


title: Texments/minted not working - Undefined control sequence

text: I'm trying to add some syntax highlighting to my code and found two packages: texments and minted. I tried to use them, but I'm getting errors while trying to build. I used following code to test both packages:               \pygment{python}{ print "Hello World!"}      All what I get is errors: * * *               **! Undefined control sequence.**          <argument> \PY     {k}{print} \PY {l+s}{"}\PY {l+s}{Hello World!}\PY {l+s}{"}     l.2 ...PY{l+s}{"}\PY{l+s}{Hello World!}\PY{l+s}{"}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          **! Undefined control sequence.**          <argument> \PY {k}{print} \PY     {l+s}{"}\PY {l+s}{Hello World!}\PY {l+s}{"}     l.2 ...PY{l+s}{"}\PY{l+s}{Hello World!}\PY{l+s}{"}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          **! Undefined control sequence.**          <argument> \PY {k}{print} \PY {l+s}{"}\PY     {l+s}{Hello World!}\PY {l+s}{"}     l.2 ...PY{l+s}{"}\PY{l+s}{Hello World!}\PY{l+s}{"}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          **! Undefined control sequence.**          <argument> ... {l+s}{"}\PY {l+s}{Hello World!}\PY     {l+s}{"}     l.2 ...PY{l+s}{"}\PY{l+s}{Hello World!}\PY{l+s}{"}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ) [6]) [7] (./mk_mall.aux) )      * * * I have pygments installed, version 1.4. How can I get everything to work?


title: hyperlink to an embeded pdf

text: I found a way to embed a PDF and provide a hyperlink to it using `hypgotoe`. So, this is similar to what I am currently doing               \documentclass{article}     \usepackage{embedfile}     \usepackage{hypgotoe}     \embedfile{/home/pavan/test.pdf}     \begin{document}     \href{gotoe:embedded=/home/pavan/test.pdf}{description}     \end{document}      The problem is that I am not able to get the hyperlink. I see "description" in my final PDF but there is no hyperlink that links my embedded file. What am I doing wrong here?


title: Tikz "Times Roman" in axis labels

text: How do I set my axis labels to use Times New Roman or Times Roman fonts, please? I'm looking for something similar to:               \pgfplotsset{every axis/.append style={font=\sffamily\scriptsize}}      which works for Sans-serif Is there any way to find the full set of abbreviations for fonts, please? (I have been searching for hours, but there is nothing online remotely related to this. If I've just missed it, then I apologise.)


title: How can I invert a 'clip' selection within TikZ?

text: I wish to draw an arc for a reflex angle on the outside of a triangle with coordinates (A), (B) and (C). If I wanted to draw the arc inside the triangle I could use something like               \begin{scope}     \path[clip] (A) -- (B) -- (C) -- cycle;     \draw (B) circle (2mm);    % this is the little angle marker     \end{scope}      Is there a straightforward way to _exclude_ the part of the circle that's in the triangle, as in the pseudo-code below?               \begin{scope}     \path[magicalinverseclipcommand] (A) -- (B) -- (C) -- cycle;     \draw (B) circle (2mm);    % this is the little angle marker     \end{scope}      EDIT: Although I included the code above as a motivating example of what an inverse clip would do, I would prefer a general solution that works systematically with any closed path, and not just in the particular example of a triangle with a circle clipped out of it. Looking at my question, I realise this isn't clear, and I will be happy with the best solution to my particular problem, but wonder if there is a less ad hoc solution than those listed so far.


title: Automatic newspaper creation in LaTeX

text: This is a very general question about LaTeX, asked by a 100% newbie! I'm trying to figure out if it's feasible to build an automatic newspaper creation engine, and if LaTeX can help in this field. The goal is to be able to build something like: http://issuu.com/fruitcake_worb/docs/web_fruitmix-0211 ... based on a list of articles, each made up of text, images, and some meta- informations, like a "template" and maybe a few other high-level informations. Does anyone have experience / examples in this field?


title: How to print graphics on a new line in floatrow/subfloatrow

text: How can I skip to a newline in a `subfloatrow` environment (`floatrow` package) after two graphics. I want to typeset two graphics `A.pdf` and `B.pdf` on the same line, `C.pdf` and `D.pdf` should be on a new line. All graphics should be part of the same `subfloatrow`, considering the labels and captions. I'm missing part of the floatrow concept so I tried silly things like introducing newlines (`\\\` and `\newline`) which of course won't work. This is the code I used: preamble:               \documentclass{article}     \usepackage{floatrow}     \usepackage{graphicx}     \usepackage{subfig}     \usepackage{caption}          \begin{document}           \clearpage         \begin{figure}[h!]         \ffigbox[\FBwidth]         {\begin{subfloatrow}             \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{A.pdf}}%             \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{B.pdf}}%             \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{C.pdf}}%             \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{D.pdf}}%             \end{subfloatrow}}         {\caption{this is a caption}}         \end{figure}     \end{document}


title: Missing space before "and" in author list with two \thanks

text: I am trying to typeset the authors' names in a paper so that they appear as ## Joe Bloggs* and John Smith** (i.e. typeset with a joining "and" and normal spacing between words). I also need to put a `\thanks` for each author. The code I am using is               \author{       Joe Bloggs\thanks{blah}\ and\ John Smith\thanks{blah}     }      But this has the downside that there is no space between the footnote symbol on "Bloggs" and "and" so what i get looks like this: ![enter image description here](http://i.stack.imgur.com/ggssF.png) Does anyone know how to get LaTeX to put a space in there? Minimum working example:               \documentclass{article}     \title{The Title}     \author{Joe Bloggs\thanks{blah}\ and\ John Smith\thanks{blah}}     \begin{document}     \maketitle     \end{document}


title: Center subfigure using floatrow

text: I'm working with `caption` and `subcaption` to style my (sub)figure captions and especially with floatrow to center my figures. However, this does not work for subfigures, as the following nMWE (nearly minimal) example illustrates:               \documentclass[a4paper,12pt]{scrartcl}     \usepackage{floatrow}     \usepackage{tikz,floatrow,hyperref}     \usepackage[hypcap=true]{caption}     \usepackage[hypcap=true]{subcaption}     \usepackage[all]{hypcap} %link to top of figure          % caption format     \captionsetup{format=hang,labelsep=space,indention=-2cm,labelfont=bf,width=.9\textwidth,skip=.5\baselineskip}     \captionsetup[sub]{labelfont=bf,labelsep=period,subrefformat=simple,labelformat=simple}          %center both ?     \floatsetup[figure]{objectset=centering}     \floatsetup[subfigure]{objectset=centering} %does not center subfigures          \begin{document}         \begin{figure}             \begin{tikzpicture}                 \draw[fill=blue] (0,0) rectangle (4,4);             \end{tikzpicture}             \caption{First}         \end{figure}         \begin{figure}             \begin{subfigure}{.49\textwidth}%\centering is not centered without centering                 \begin{tikzpicture}                     \draw[fill=blue] (0,0) rectangle (4,4);                 \end{tikzpicture}                 \caption{First}             \end{subfigure}             \begin{subfigure}{.49\textwidth}\centering                 \begin{tikzpicture}                     \draw[fill=blue] (0,0) rectangle (5,5);                 \end{tikzpicture}                 \caption{Second}             \end{subfigure}             \caption{Describing both subfigures}         \end{figure}     \end{document}      Clearly, the first figure gets centered and everything is fine. Though, comparing the second figures subfigures, I have to use `\centering` (illustraed in the second subfigure) to center, which does not work, by using `\floatsetup[subfigure]`. I would like to center subfigures without using `\centering`, but using a global package command. Any ideas how to obtain such layout using `floatrow`? Any other approach is of course nice too, it's just, that i'm already using `floatrow` to center figures (globally). PS: I'm using XeLaTeX, but I hope that does not change much in these observations.


title: Automatically add a vertical spacing in formula numbering

text: I have a document with several equations that fit the text width, so the tag is below the equation in those long formulas. I don't want to use splitting enviroments but in some cases, specially in `cases` environment with `\frac{}{}`, I would like more distance between the tag and the equation. I know it is possible to manually add this space with `\raisetag` command. Is it possible to **automatically** increment this vertical spacing only for those equations that fit the line width? Thanks in advance.               \documentclass[a4paper]{article}     \usepackage{amsmath}     \begin{document}     \begin{equation}      a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a      \begin{cases}       \frac{1}{2}\\       \frac{1}{3}      \end{cases}     \end{equation}     \end{document}


title: makeglossaries call to xindy failed

text: I'm having trouble getting makeglossaries to run with xindy under MiKTeX. Take `example.tex` here:               \documentclass[12pt]{book}        \usepackage[xindy]{glossaries}          \newglossaryentry{egbert}{name={Egbert}, description={Egbert the Egg.}}          \makeglossaries          \begin{document}          \gls{egbert} is my favourite!          \printglossaries          \end{document}      When makeglossaries is run on it, it yields the following error:               c:\example>makeglossaries -x "C:\localtexmf\scripts\xindy\xindy.pl" "example"     makeglossaries version 2.09 (2013-11-12)     added glossary type 'main' (glg,gls,glo)     C:\localtexmf\scripts\xindy\xindy.pl  -L english  -I xindy -M "example" -t "example.glg" -o "example.gls" "example.glo"     Opening logfile "example.glg" (done)     Reading indexstyle...     Loading module "KrcJssJlGD"...     Loading module "lang/english/latin9-lang.xdy"...     Loading module "lang/english/latin9.xdy"...     Finished loading module "lang/english/latin9.xdy".     Finished loading module "lang/english/latin9-lang.xdy".     Loading module "example.xdy"...     Loading module "tex.xdy"...     Finished loading module "tex.xdy".     Finished loading module "example.xdy".     Finished loading module "KrcJssJlGD".     Finished reading indexstyle.     Finalizing indexstyle... (done)          Reading raw-index "\"yPYZwvNIIm\""...ERROR: PARSE-NAMESTRING: syntax error in filename "\"yPYZwvNIIm\"" at position 0               ***Call to xindy failed***          Check 'example.glg' for details      * * * Edit (2014-01-13 8:41 EST): xindy version information:               C:\example>xindy.pl --version     xindy release: 2.4     xindy.pl script version: 1.16     xindy kernel version: 3.0     CLISP version 2.49 (2010-07-07) (built on cj3001517-a [192.168.1.20])     architecture: PC/686      Output of xindy called by itself is the same: (except for the name of raw- index)               C:\example>C:\localtexmf\scripts\xindy\xindy.pl  -L english  -I xindy -M "example" -t "example.glg" -o "example.gls" "example.glo"     Opening logfile "example.glg" (done)     Reading indexstyle...     Loading module "uG0b_gG5K2"...     Loading module "lang/english/latin9-lang.xdy"...     Loading module "lang/english/latin9.xdy"...     Finished loading module "lang/english/latin9.xdy".     Finished loading module "lang/english/latin9-lang.xdy".     Loading module "example.xdy"...     Loading module "tex.xdy"...     Finished loading module "tex.xdy".     Finished loading module "example.xdy".     Finished loading module "uG0b_gG5K2".     Finished reading indexstyle.     Finalizing indexstyle... (done)          Reading raw-index "\"RkydxkLNfW\""...     ERROR: PARSE-NAMESTRING: syntax error in filename "\"RkydxkLNfW\"" at position 0


title: Individually importing a common set of equations into multiple unique documents

text: Suppose I have a large mathematical model with many equations and equation descriptions in many sections. This model, in various forms, is used in other documents. For example, one document may just have the equations one-by-one, in raw form. Another might have an introduction, then the equations with descriptions after each, and then a discussion and conclusion. I may also have a beamer presentation with many of the key equations on various slides. When I discover a problem with the model, or a better way to express an equation, I have to update every document. This is both time-consuming and highly error-prone. Slowly, over time and after many revisions, each document starts to diverge. I know LaTeX is a very advanced package with many useful commands. Is there any way to solve this dilemma? Perhaps store the equations and descriptions in a segmented text file and only import specific segments into each document?


title: Automatically prevent line-break at hyphen of specific words (e.g. "dual-self")

text: Usually questions about hyphenation and line-breaks are concerned about how to allow hyphenation when a word already contains a hyphen. That's not what I'm after: I would like to prevent the word "dual-self" to be broken across lines. I know that I can to that manually with `dual\=/self`, but is there a way to achieve this automatically? Ideally something in the preamble equivalent to `\hyphenation{...}` where I can specify the words that should not be broken.


title: How can numbering of specific headings be disabled in Org-mode's LaTeX export?

text: By default Org-mode exports to numbered LaTeX headings. For example, the following               #+title: Test          * Introduction     * Heading     * Heading     * References      exports to               \section{Introduction}     \label{sec-1}     \section{Heading}     \label{sec-2}     \section{Heading}     \label{sec-3}     \section{References}     \label{sec-4}      It is possible to disable numbering for _all_ LaTeX headings by adding `#+options: num:nil` as in               #+title: Test     #+options: num:nil          * Introduction     * Heading     * Heading     * References      which exports to               \section*{Introduction}     \label{sec-1}     \section*{Heading}     \label{sec-2}     \section*{Heading}     \label{sec-3}     \section*{References}     \label{sec-4}      Note that `\section*` is a LaTeX macro for unnumbered section. Is it possible to tell Org-mode to _not_ number _particular_ headings, i.e. via editing the properties of headings? For example, is it possible to get the following LaTeX exported from Org-mode:               \section*{Introduction}     \label{sec-1}     \section{Heading}     \label{sec-2}     \section{Heading}     \label{sec-3}     \section*{References}     \label{sec-4}      I am running Org-mode 7.6 in Emacs 23.3.1.


title: Where do I place my own .sty files, to make them available to all my .tex files?

text: I know how to define a package - but how do I make it available (to myself) at all times? Say I have the package file `commonstuff.sty`, that I want to be able to include in any .tex file I create on my computer. Where do I put it? Do I need to run some installer on it, or is it enough to keep it in a certain folder? _Note: I know I can just place it in the same folder as the .tex file, but that's not what I'm after here. I'm looking for a way to "install" the package_ centrally _on my computer._


title: How to install y4pdf package in Tex Live on Windows XP?

text: I want to install `y4pdf` package to my `Tex Live 2010` distribution. The package itself is consisting of the following files according to http://www.ctan.org/tex-archive/macros/latex/contrib/yt4pdf/:   * y4pdf.cfg   * y4pdf.dtx   * y4pdf.ins   * y4pdf.sty Does anyone have experience where to put concrete files in order to make it work?


title: How do I manually install a package to Texmaker - Ubuntu 10.10+

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? At university we have now been given a bunch of `.sty` files which fit the university's template. I got it to work by just throwing all the files in with the document, however this is messy and I can't help thinking there must be a better way. So far I've tried putting the files in `/etc/texmf` which I found some references to but I haven't been able to get it to work. If there is an easier way not using Texmaker - I'm open to suggestions!


title: Setting up the texmf folder in MacTeX

text: I have the following instructions for Windows: ![enter image description here](http://i.stack.imgur.com/EzKRN.png) However, I am using Mac OS X with the latest version of MacTeX. I already found this thread: How to make LaTeX see local texmf tree But I am not sure if this is similar to my case. Any ideas how I can perform these steps on a Mac OS X operating system?


title: Installing non-ctan package tikz-dsp.sty using TeXLive tlmgr

text: I have installed TeXLive 2012 and have access to `tlmgr` from the command line. I'd like to know how I can install this `tikz-dsp.sty` that I have downloaded from TeXample.net. I'm assuming I'd use `tlmgr` to do it. I've tried               sudo tlmgr install tikz-dsp.sty      however that doesn't work. The package is not avaliable on CTAN as far as I can tell. I simply downloaded tikz-dsp from TeXample.net and now I want to install it rather than have to copy it to the folder of every latex report I wish to write.


title: Custom moderncv theme

text: I've tried to make a custom moderncv theme, as I didn't want my CV to look like all the others Latex-made CVs. But I'm facing a (minor) problem: pdflatex doesn't recognize it, and I get a `! LaTeX Error: File 'moderncvstylecustom.sty' not found.`, even though this file exists and is in the same folder as the other moderncv themes (which is `/usr/share/texmf-dist/tex/latex/moderncv/` in my case). I have to supply it the absolute path to this file every time, and it gets annoying after a few compilations. Has anyone an idea on how to fix this?   Thanks in advance,   viod


title: Installing new style packages on a Mac

text: > **Possible Duplicate:**   >  How do I add a .sty file to my MacTeX/TeXShop installation? I am using a mac and want to install the acm style. where do i add the downloaded packages so that tex can find it because i have got multiple tex application running on my system.


title: How do I write documents using llncs.cls without having to put it in the same folder as the document?

text: I'm using Linux Mint, with the TeX Live distro and Texmaker as my editor. Basically, I would like to be able to use `llncs.cls` as a document class without having to always put that file in with the document I'm trying to compile. Under MikTeX (which I used back when I used Windows), there was a way to resolve it by giving it a place to search for packages etc. if it couldn't find them normally. However, I have no idea how to do this in Linux. Could someone help me out?


title: Installing eqexam package for use with Sublime Text 2

text: I am looking to utilize the `eqexam` package, yet even after putting the `.sty` files in my `/usr/local/texlive/2012/texmf-dist/tex/latex` directory with the appropriate `/eqexam` folder . I am still unable to compile the demo file that came with the package. I have included a `MWE` of the test file below. I still get the error that `eqexam.sty` not found. I have searched all over the internet for a solution, but no one seems to be in agreement on the answers. Running Mac OS X 10.6.8, originally used MacTex distribution with TexLive2012, but am now compiling with ST2 and Skim (which has worked wonders over texshop). I could list my suspicions, but that might be a waste of time. I also understand that this might not be enough information to problematize a solution, but I have hopes. I suppose that there will not be a solution to this, but might there be better resources than the `eqexam` documentation and website that can take me through the complexities of the installation?               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{graphicx}     %\usepackage[coverpage,forcolorpaper,pointsonboth,totalsonright]{eqexam}     %\usepackage[forcolorpaper,pointsonleft,nosolutions]{eqexam}     % Note, to use this next line, your exerquiz must be up to date with the eqexam you are using     \usepackage[nosolutions,forcolorpaper,pointsonboth,totalsonright,noparttotals]{eqexam}          \title[T1]{Test 1}     \author{D. P. Story}     \subject[C1]{Calculus I}     \date{Spring \the\year}     \keywords{Test~1, Section 001}          \university     {%           THE UNIVERSITY OF AKRON\\         Theoretical and Applied Mathematics     }     \email{dpstory@uakron.edu}          \hfuzz = .7pt          \begin{document}     \maketitle               \begin{exam}[Part I.]{Part1}          \begin{instructions}[Part I.]     Solve each of the problems without error. If you make an error,     points will be subtracted from your total score.     \end{instructions}          \begin{problem}[5]     This is an example of a objective question, the student fills in     his/her response in the space below.          \begin{solution}[.5in]     The solution to the question. This solution will not appear when     the option \texttt{nosolutions} is specified. It will appear     immediately after the question with the \texttt{solutionsafter}     option, and appear at the end of the document if a solutions     option is not specified.     \end{solution}     \end{problem}               \begin{problem}[5]     An example of a fill-in question:     It is well known that \fillin{1in}{Newton} and     \fillin{1in}{Leibniz} are jointly credited as the founders of     modern calculus.          \begin{solution}     It is well known that \underbar{Newton} and \underbar{Leibniz} are     jointly credited as the founders of modern calculus.          \medskip\noindent\textbf{Notes.} Here the optional argument for     the \texttt{solution} environment is not specified, this implies     that no room should be left for the student to answer, seems     reasonable since this is a fill-in.     \end{solution}     \end{problem}          \end{document}


title: How can I manually install a LaTeX package (Debian/Ubuntu Linux)?

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? The Debian/Ubuntu archives typically include assemblies of many LaTeX packages for convenience of downloading (e.g., texlive-latex-extra). However, a user may prefer a single package to these conglomerations. Is there a simple way to manually acquire a single LaTeX package on Debian/Ubuntu?


title: How to install fancyvrb within mactex?

text: I like to use http://www.ctan.org/pkg/fancyvrb with http://tug.org/mactex but its not clear to me how to install it within mactex ?


title: How do I install an individual package on a Linux system?

text: I need to install a new TeX/LaTeX/ConTeXt package on my computer. I'm running Ubuntu/Fedora/Slackware/Some-Version-Of Linux. What are the possible ways to do this? * * * _**Note:_**    We get a number of questions that essentially reduce to this one; it was felt a good idea to have _one_ question-and-answer that can cover all the standard methods. See Should 'how to install package X on Ubuntu' questions be consolidated? for the discussion. The question-and-answer are CW so that more information can be easily added. If you have information to add, please do so. If you are unsure, leave a comment here or (preferably) in chat. Comments on the question and answer will be periodically removed to ensure that the information is clear.


title: Where to install .cls and .clo files in texlive 2013?

text: I'm on Mac OS X and have texlive 2013 installed. For a journal paper, I need to install two .cls and .clo files. All the read says is `Copy svjour3.cls and svglov3.clo to a place where LaTeX can find them.` I dropped these files to               /usr/local/texlive/texmf-local/tex/latex      and tried to run `texhash` but this is what happens:               texhash: /usr/local/texlive/2013/../texmf-local: directory not writable. Skipping...     texhash: /usr/local/texlive/2013/texmf-config: directory not writable. Skipping...     texhash: /usr/local/texlive/2013/texmf-dist: directory not writable. Skipping...     texhash: /usr/local/texlive/2013/texmf-var: directory not writable. Skipping...     texhash: Done.      If I try to compile a .tex file that's in the same directory as the .cls and .clo files, it works, but not if the file is somewhere else. So where is the proper place to put this?


title: Installing new style files in Linux

text: **Closure of this question was unnecessary**. My question is not a duplicate of the one linked to. My questions are Linux specific and ask for advice about using Kile on Linux. My question refers to _more_ that style files. I have read the question that I have supposedly duplicated and _none of the replies answer my question_. Closure was unhelpful, misguided and basically unwelcoming. I wanted to be able to cancel factors in the numerator and denominator with a dash. I searched this site and saw that I could use the package `cancel`. I tried to `\usepackage{cancel}`, but Kile didn't recognize it because it couldn't find the style file. I found the web-page and have downloaded the style file `cancel.sty`. Sadly, I can't find where Kile keeps all of the style files. Even if I did find the folder, would I just cut-and-paste, or is there some more sophisticated process required to integrate new style files? The problem is that I am a newbie to Linux and can't find where all of the files are kept. I found some commands for searching for files, but they either didn't work: the terminal claimed the (existing) file didn't exist, or the terminal started to list _every_ file on my system.   * Where are my style files kept on Linux Mint, using Kile?   * Do I just cut-and-paste a new style file into the folder?


title: Manually install packages from dtx file on ubuntu

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? My TeXLive doesn't have the `standalone` package. I read part of the documentation, the PDF file from the standalone package in the CTAN page. In case of `tlmgr` it suggests a manual installation if one uses Ubuntu, as is my case. What usually works for me is copying the `.sty` or `.cls` files into the right path and then `texhash`. In the case of `standalone` the `.zip` bundle doesn't include those kind of files but `.dtx` and `.ins` files. Could somebody spell out how to manually install those kind of files?


title: Installing imsart package

text: I am trying to install the `imsart` package because the publisher requires that the document is compiled with the `imsart` package. I am using Texworks and downloaded the `.zip` file and extracted the files. They say to install the document class file first and then the `.sty` file. I opened the document class file in Texworks and ran the file with the Bibtex setting (most other settings failed to compile it) I did the same for the `.sty` file but when I try to do `\usepackage{imsart}` it says > 'imsart.sty' not found. At the moment I have the files just in my downloads folder, do I need to have them saved someone special like how pictures must be saved in a particular location when putting them into a document? If that is not the problem do you have any advice for me?


title: TeX Live personal texmf tree

text: I have installed **Tex Live 2012** in both **Windows 7** (`C:\texlive`) and **Ubuntu 12.04** (`/usr/local/texlive`). Inside both these folders there are two folders namely `2012` and `texmf-local`. My question is that if I want to install a package manually for example the acmsmall package for a particular ACM journal, where do I put the `.cls` and `.bst` files. Please note I want to user install the package. Is the folder named `texmf-local` my personal texmf tree or do I need to create a separate texmf tree?


title: Texlive 2013, where to place custom themes?

text: So I have installed TeXlive 2013 following the steps here I was previously using my custom theme called `beamerthemeEinstein.sty` that I placed at `/usr/share/texmf/tex/latex/beamer/base/themes/theme` then I run `sudo texhash` and it worked amazingly. Now with TeXlive 2013 my custom theme is not recognized, I get               ! LaTeX Error: File `beamerthemeEinstein.sty' not found.       Where should I place it now? Anyone knows where to place custom themes using the 2013 version? Many thanks!


I'm using fedora 16, and I use texstudio for compiling tex sources. Now I want to install caption package, but I'm at a loss on how to install it. I tried tlmgr on command line, but it prompots: `tlmgr: command not found...` so how to check my tex distribution and how to install packages? thanks


title: Manually installing packages under Linux Mint 12

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? I've used Kile 2.1 under Ubuntu. To manually install a package, I did the following:   1. Copy package into `gedit` and save as `packagename.sty`   2. Put package in same named folder   3. Copy folder to `/usr/share/texmf/tex/latex`   4. Type in terminal `$sudo mktexlsr` ...and that is it! Now I (try to) use Kile 2.1 under Linux Mint 12 and the described procedure doesn't make any result. I'm bit confused, because Ubuntu and Mint are very similar distros. What do I need to do for manually installing a package in Linux Mint 12?


title: How to install latex packages in kile under Ubuntu

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? I successfully installed tex live 2011 from here running the install-tl script. I then exported the path using export PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH i opened kile but i am getting an error: _! LaTeX Error: File newfloat.sty not found_ , when i run pdflatex inside a `tex` with `usepackage{float}` After running `tlmgr install newfloat`. I got this: _tlmgr: package repository ctan.mines-albi.fr/systems/texlive/tlnet TeX Live 2011 is frozen forever and will no longer be updated. This happens in preparation for a new release._ How am i sure the kile is compliant with the new installed packages?


title: installing latex-beamer in 64 bit CentOS

text: I was trying to install the beamer package using yum however got following error. I have already tetex-latex 64 bit version installed in my 64 bit CentOS6.4. yum Error: > file > /usr/share/texmf/tex/latex/beamer/themes/theme/compatibility/beamerthemetree.sty > conflicts between attempted installs of texlive-texmf- > latex-2007-38.el6.noarch and latex-beamer-3.07-2.3.noarch Giving more clarity: Installation of texlive is fine. But when I am trying to install beamer package I am getting the above mentioned error. It seems that the yum CEntOs repository does not have beamer package. I tried searching using "yum search latex-beamer" I got the following output: "latex-beamer.noarch : A LaTeX class for producing beamer presentations" then tried to install the latex-beamer.noarch using yum but got the above mentioned error. > The error I am mentioning is unique to **beamer** package. I dont have any > problem in installing **texlive** Thanks


title: How can I get texmaker to pick up my local class file

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? I am using (as a newbie) texmaker to create documents on linux. I am making my first attempt at a local class (hartley.cls), derived from article, but with some minor modifications. Having seen elsewhere that I should store the class file in the directory which               kpsewhich -var-value TEXMFHOME      tells me I have put it in ~/texmf However as soon as I try and run texmaker on a document which uses this class so I can test things it errors out with               ! LaTeX Error: File `hartley.cls' not found.      So. what am I doing wrong?


title: Ubuntu "res.cls not found"

text: I made my cv earlier using 'res.cls'. I recently upgraded to Ubuntu Gnome, installed the texlive-full package as well. But upon executing using the XeLaTeX command, it shows error "res.cls not found". I even tried saving the res.cls file from CTAN http://www.ctan.org/pkg/res into the directory /usr/share/texmf/tex/latex/, but the same error. How do I resolve the issue?


title: Use new Beamer theme

text: I am sorry for the silly question, but I am new to TexShop and new to Mac as well. However, I have been looking for a solution in the last two days between the documentation `.pdf` and various forums. This is my last option before going back to PowerPoint. I have installed TexShop (v. 3.15) from the TUG website three days ago. I want to use a Beamer theme realized by a student from my university. It consists of three files, an `outer.sty`, a `colorUni.sty` and a `themeUni.sty`. As I understood, these files have to put in the proper folder. I think the right location should be this one for the three files:               /usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/color/beamercolorUni.sty     /usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/outer/beamerouterUni.sty     /usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/theme/beamerthemeUni.sty      (I put the real name of the files here). Differently from MikTex, I should not update the file database, right?(How do I add a .sty file to my MacTeX/TeXShop installation?) So, I just open my presentation and call the new theme:               \documentclass{beamer}     \mode<presentation>     {      \usetheme{Uni}     }     \usepackage[english]{babel}     \usepackage[latin1]{inputenc}     \usepackage{times}     \usepackage[T1]{fontenc}          %title page blablabla     \begin{document}      However, I get this message:               (/usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/font/beamerfontthem     edefault.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/color/beamercolorth     emedefault.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/inner/beamerinnerth     emedefault.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/outer/beamerouterth     emedefault.sty)))               ! LaTeX Error: File `beamerthemeUni.sty' not found.     Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)     Enter file name:      If I enter again the path with the `.sty` files, it repeats the same message; if I hit return it gives the presentation with the standard theme. What do I do wrong?


title: Installing "unknown" packages to tex-live

text: I had quite some problems with `tlmgr` and a faulty TeX Live installation on Linux but now, everything works okay, I guess. Anyhow, on my Mac I am using the package mcode from mathworks, which I want to install on my Linux machine as well. The package install manual on tug.org however tells me > If you accept scheme-full, and you still didn't get the material you were > expecting [...] the package may not be available under a free software > license, in which case it cannot be included in TeX Live. Do I simply put the `.sty`-file to `/usr/share/texmf-texlive/tex/latex/` or `/usr/local/texlive/2014/texmf-dist/tex/latex/` ?


title: LaTeX for Mac (lion) 2011 - how to add cls file?

text: > **Possible Duplicate:**   >  How do I add a .sty file to my TeXShop installation? I'm trying to get into LaTeX and have to use a publisher provided cls file (and some tex and bst files) and try to use them with my LaTeX installation. I have the latest version of LaTeX and use texmaker as editor. I tried to google for advise how to do that but its either confusing or it seems that things changed in lion/2011.


title: Installing Packages Manually in OSX Lion?

text: I've seen answers to this question, but I think it is antiquated, and things have changed for OSX. I found `/usr/local/texbin` but I can't find where packages go? Is anyone familiar with the process? I have to use APS formatting so I've been trying to instal RevTeX. I tried tlmgr install revtex, and it spat out a url to packages. I am using latexian to write and I tried `\includepackage{revtex}` and I got an error that RevTeX was undefined.


title: How to register .sty and .mf  to  the LaTeX system?

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? I am using the default LaTeX command provided by ygwin on Windows. Just wonder when I have new `.sty` and `.mf`'s residing in a different directory than my source `.tex` files, how to use them? I could in principle put all of them together and it works. But rather, I would keep a repository of these files separated from my `.tex` source files.


title: Putting .sty file into ~/texmf-dist/tex/latex But still getting Error

text: I installed texLive 2013 on a mac. And I am using texmaker to typeset my documents. I have my threads regarding where to locate `.sty` files in mac. And I located my `stackengine.sty` in the following path `\usr\local\texlive\2013\texmf-dist\tex\latex` This is where all the packages are. So I believe putting my `stackengine.sty` in there will make sense, which is what I did. I then tried to compile my tex file. But it failed miserably with the following error message in the log:               (/usr/local/texlive/2013/texmf-dist/tex/latex/base/latin9.def     File: latin9.def 2008/03/30 v1.1d Input encoding file     ))     ! LaTeX Error: File `stackengine.sty' not found.      I already placed the `stackengine.sty` in that path already. I even placed the entire `stackengine` there as well. Still, the same error kept coming up. What have I done wrong here ?


title: install a .sty code

text: How can I install this code of .sty? I would like to make this calendar, so I need to install it.


title: slashbox style missing in debian

text: I am using TexLive in Debian Linux I have a template which I have to follow without altering its packages etc. and it uses `slashbox` which has been removed from Debian due to license problems. What can you suggest? How can I manually add `slashbox` package in Debian? (if this is your suggestion)?


title: Obtaining the location of the document class

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? Our organization produced a document class for internal use. The document class uses some images for headers and footers. We put these images in the same directory as the document class, and the document class includes them using the `\includegraphics` command, e.g.:               \includegraphics{header.pdf}      Now assume that, in my computer, the document class (and the images) reside in `/home/A`, but in my friends computer they reside in `/home/B`. So, my LaTeX documents start with:               \documentclass{/home/A/report}      but in my friend's computer, it reads:               \documentclass{/home/B/report}      The problem is the following: When pdfLaTeX reads the line `\includegraphics{header.pdf}` in the document class, it searches the directory where the `.tex` file resides, rather than the directory of the document class. Although we I can use the command               \includegraphics{/home/A/header.pdf}      in the document class, but then my friend has to change it to the following:               \includegraphics{/home/B/header.pdf}      which breaks the uniformity of the document class in the organization. Even using the `\graphicspath` command does not seem to be a solution. Is there a way to obtain the location of the document class within it, so that I can change it to something like               \newcommand{\dcpath}{_COMAND_TO_GET_THE_PATH}     \includegraphics{\dcpath/header.pdf}      once and forever?


title: Ubuntu 13, TeXLIve and home made package

text: I would like to install an homemade package ? With MacTeX, I put my package in `texmf-local` and then simply use `texhash`. Under Ubuntu, I have to use the plain path `sudo /usr/local/texlive/2013/bin/x86_64-linux/texhash`. This is a little boring. Have you a way to avoid the use of the long plain path ?


title: Finding a Ubuntu package for a sty file

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? I've had this problem for a while now on Ubuntu. Whenever I have a missing `.sty` file (right now, it's `outlines.sty`), I have to go to synaptic and search for the .sty file. Sometimes it works, sometimes it doesn't. Then, I search for it on this site or some search engine -- all basic adhoc stuff. I was wondering if there's a regular/reliable way of finding if a .sty file is available for my distro. MikTeX has a great package manager and I wish we have something similar on Ubuntu. Also, should this be here or on the askubuntu site? I haven't had this issue with any of the rest of Ubuntu so posting it here first.


title: How to install the documentclass standalone in Ubuntu?

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? Is there an easy way to install the documentclass `standalone` in Ubuntu using `apt-get`? In other words, is there a `texlive` package for Ubuntu that contains `standalone`? Does this package belong to the standard package repository? Otherwise, how do I obtain it. I would like to live this life without ever learning how to use any LaTeX package manager.


title: Package won't get loaded

text: I have written a package and placed it in the same directory as e.g. `latex.ltx`. However, TeXShop just won't load it, or rather, XeLaTeX and pdfTeX called through TeXShop won't. If I, however, on the `file not found` error, type:               /usr/local/texlive/2013/texmf-dist/tex/latex/base/mworx.sty      on the Console, the file is found and loaded. And that path is the same as to size10.clo, the first file I see loaded. Why exactly is XeLaTeX doing what appears to be looking for the file only in the .tex file's directory?


title: Installing a package in Texmaker

text: I want to install `pgfornament` package. I have TeX Live 2013 installed on my Windows 8.1 system. Now, I downloaded the `pgfornament` package and copied the `.sty` file to the path               C:\texlive\2013\texmf-dist\tex\latex\pgfornament      but yet I get the error in Texmaker that the `pgfornament.sty` file is not found. What should I do?


title: What is the easiest way to install additional packages when using texlive from the Fedora repos?

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? I stumbled upon a question here which recommends using tlmgr for conveniently installing additional packages. The Internet says that you can't use tlmgr if you installed texlive through rpm (that's how I installed mine). Is there a way to get individual TeX packages easily, or do I have to manually copy them all into the folder structure?


title: How do I add a .sty file to my MacTeX/TeXShop installation?

text: I've searched online, but I have not found any clear instructions how to permanently add `.sty` files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program). What is the best way of doing this? The one comprehensive set of instructions I found here. I've got as far as extracting the files (running `LaTeX` on the .ins and . dtx files) but after that I don't know what to do. I also don't understand how to update the index of my distribution, and whether there are particular OSX specifics (the instructions are for Windows).


title: Best Practices For Including A Version Controlled File Across All Projects?

text: I am getting started with WinEdt 7.1 and TEX in general on a windows platform. I have a file where I've defined custom commands. Its current contents are:               \newcommand{\avgE}{\bar{E}}     \newcommand{\setE}{\mathcal{A}}     \newcommand{\enum}[1]{\begin{enumerate} #1 \end{enumerate}}     \newcommand{\eqa}[1]{\begin{eqnarray} #1\end{eqnarray}}     \newcommand{\par}[1]{\left(#1\right)}     \newcommand{\brac}[1]{\left[#1\right]}     \newcommand{\eq}[1]{\begin{align*}#1\end{align*}}     \newcommand{\eqn}[1]{\begin{align}#1\end{align}}     \newcommand{\lf}[2]{\parenth {\frac {#1} {#2} } }      I'd like to place this file in my `C:/Users/myName/.dotfiles` folder which is currently under version control (git), and be able to reference this from whatever latex project I'm currently working on wherever it is. Im not exactly sure how to go about doing this? Do I just have to say               \input{C:\Users\diego\.dotfiles\customCommands.txt}       on every file or is there some "best practices" I'm missing?


title: Missing package nestochp with MikTeX

text: I'm a newbie in LaTeX, I installed MikTeX 2.9 and WinEdt 5.5 . I have this code:               \documentclass[french,a4paper,12pt]{report}     \usepackage{babel}     \usepackage{graphicx}     \usepackage{amsmath,amsfonts,amstext,amssymb}     \usepackage{times}     \usepackage{setspace}     \usepackage{Lettrine}     \usepackage{fancyhdr}     \usepackage{multirow}     \usepackage{pslatex}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage{array}     \usepackage{enumerate}     \usepackage{color}     \usepackage{version}     \usepackage{newcent}     \usepackage{nestochp}     \usepackage{anysize}     \begin{document}     \linespread{1.5}     \include{page_de_garde}     \end {document}       I got this error: ![error](http://i.stack.imgur.com/jCqWw.jpg) The `nestochp.sty` isn't found,   1. What is the reason of this problem?   2. How can i fix it?


title: Please can someone explain to me how I can add a class!

text: I am a non-technical user. I use LaTeX to type up stuff and that's it. What I want to do is make posters like from this website. http://www.brian- amberg.de/uni/poster/ I think this gives me a new "class". How can I make it so that when I open TeXShop I can just type in the document class and then make my poster? I am pulling out my hair trying to find how to install this "class"!


title: Positioning .cls files in Linux Ubuntu

text: I have a research paper accepted to a journal and the editor asked me to use certain file with `.cls` and I am confused about where exactly I need to dump this file `.cls` ? I tried to dump it to /usr/local/share/texmf/ but it is not giving me the right pdf file. Can you help please ?


title: hf-tikz.sty package installation on mountain lion

text: I want to install LaTeX on Mountain Lion and want to use some highlighting in my text for which I am using `hf-tikz.sty` package. I installed MacTeX and Texmaker on Mountain Lion but the package `hf-tikz` is not installed then I run the `TeXLive` utility to update all the packages but it gives an error that `hf-tikz.sty` package is not installed. Then i downloaded hf-tikz.sty package from the internet and tried to copy in the directory "`/usr/local/texlive/2012/texmf-dist/tex/latex/base`" but it gives me an error of writing permission. Can somebody will help me settling out this issue?


title: Applying a package

text: I have downloaded a template which includes a `\usepackage{tamuconfig}` command. I have the `tamuconfig.sty` downloaded, but I do not know how to make it apply to the template.


title: tlmgr usage to get a package from CTAN

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files?   >  How do I install an individual package on a Linux system? I'd like to install this package: http://ctan.org/tex-archive/macros/latex/contrib/cookybooky Is it possible to do this using tlmgr? I tried something like this, but it looks like I don't know what I am doing:               $ sudo tlmgr repository http://ctan.org/tex-archive/macros/latex/contrib/ install cookybooky     tlmgr: unknown directive to tlmgr repository: http://ctan.org/tex-archive/macros/latex/contrib/      I am doing this on a macbook (TeX Live 2012).


title: Include additional Packages

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? How to include additional packages like for glossary, font, etc… in LaTeX? I am using XeLaTeX. How to install additional packages and how to include them (after we got installed) in you document?


title: Where to put .sty file

text: I have made a long list of macros that I have put in a style file. I have been working with this same style file for many years now. I would like to put it somewhere in my TeX tree, so that I don't have to copy it each time to a new location. Furthermore, each time I add a new macro I have to add it in all the copies... Is there some folder in `/var/bin/share/local/texmf/etc/opt` or whatever where I can just put the file and then forget about everything? I don't like to have the style file in my home directory (I don't want to see it). I don't know anything about the TeXMF tree, and I would like to keep it that way. I use Linux Mint (very similar to Ubuntu), and I installed LaTeX via `apt-get install texlive`. I have Google'd for the question, but I always get very complicated and unsatisfactory responses.


title: How to install minted in Ubuntu

text: > **Possible Duplicate:**   >  How do I install an individual package on a Linux system? I'm very new to Latex and have understood basic concepts. Now I would like to get syntax highlighting. `minted` seems to be best choice according to Google but I you don't find detailed instructions on how to install it on a Ubuntu machine (and it is not included in any package).   I'm a bit stuck after generating the `minted.sty` file. What steps to take next?


title: Setting a path for LaTeX style files

text: This is a question that has come up many times but I do not seem to be able to get this to work using any of the suggestions that have been made so I would REALLY appreciate any help. I am trying to get LaTeX to find my style files in Windows 7. I am using TeXMaker. I create a new folder, for example C:\localtexmf\tex\latex\Macros This then satisfies the TDS compliant directory requirements. I go into MikTeX settings -> Roots and add this folder. I then click Refresh FNDB in the General settings. However, when I try to compile I still receive the error that the cls files cannot be found. It seems that this procedure has worked for many other people but I just cannot find what I could be doing wrong here.


title: Where should I put my package files in TeX Live 2013?

text: I am using texmaker, which is based on Tex Live 2013. I have just downloaded a package, i.e. mathpro2 (lite version). Question 1: Where should I put my package files into? I have seen answers to this question, but I am still entirely not sure where exactly should I put my `mtp2lite` folder. Right now, I have the following file path               `\usr\local\texlive\`      Inside `texlive`, there are 2 folders `2013` and `texmf-local`. `2013` contains `texmf-config`, `texmf-dist` and `texmf-var`. Inside `texmf-local`, there are 6 other folders; `bibtex`, `dvips`, `fonts`, `metapost`, `tex`, and `web2c`. But I am not sure where to place my "`mtp2lite`" folder in? Question 2: My `mtp2lite` folder 2 folders, `template` and `texmf`. And the `texmf` contains several other folders `doc`, `dvips`, `fonts`, `source`, `tex`, and `tpm` but I was expecting **files** with `.sty` extension. Not sure where they are? Am I suppose to extract something from these folders? Put simply, what should I do such that when I compile my TeX files in Texmaker with the following command, everything will work smoothly?               \usepackage[lite]{mtpro2}      I am just really confused here. **UPDATE:** Someone said that it suffices to unzip the `mtp2lite.zip` file. However, I am not sure which file path should I unzip the file ?   1. `\usr\local\texlive\2013\texmf-config`   2. `\usr\local\texlive\2013\texmf-dist`   3. `\usr\local\texlive\texmf-local` I unzip the files in all 3 paths, and in the terminal I ran the following command: `sudo mktexlsr /usr/local/texlive/2013/` and `sudo updmap-sys --enable Map=mtpro2.map` The terminal output gave me this after the second command: `updmap is using the following updmap.cfg files (in precedence order): /usr/local/texlive/2013/texmf-config/web2c/updmap.cfg /usr/local/texlive/2013/texmf-dist/web2c/updmap.cfg updmap is using the following updmap.cfg file for writing changes: /usr/local/texlive/2013/texmf- config/web2c/updmap.cfg /usr/local/texlive/2013/texmf-config/web2c/updmap.cfg unchanged. Map files not recreated.` I am Not sure if this is actually a problem. But when I tried to compile my tex file, I am still getting error message:                I can't find file `mt2exa'. <*> ...:=ljfour; mag:=1; nonstopmode; input mt2exa Please type another input file name ! Emergency stop. <*> ...:=ljfour; mag:=1; nonstopmode; input mt2exa Transcript written on mfput.log.          grep: mt2exa.log: No such file or directory


title: How to install package `tabu`?

text: > **Possible Duplicate:**   >  Where do I place my own .sty files, to make them available to all my .tex > files? I want to include style sheet `tabu.sty` when compile. Currently, the following error will be reported               ! LaTeX Error: File `tabu.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)      How to install the missing package? Simply copy the `.sty` file into some directory? My environment is `TexLive 2009`, `Ubuntu`.


title: Kile and Ubuntu 11.10 AND RevTeX

text: > **Possible Duplicate:**   >  How can I manually install a LaTeX package (Debian/Ubuntu Linux)? I just downloaded RevTeX for a PRL paper that I propose to write. However, after unzipping the contents of the RevTeX folder, where should I copy/mv them? And do I need sudo rights for that? I run Kile 2.1 and I am confused because I understand that I'd need to place my class style files in               /usr/share/texmf-texlive/tex/latex      But files placed in it are somehow not found by kile and I get errors that "so-and-so style file wasn't found". Should I change any latex specific environment variables file somewehre? Should I the permissions to any files with `chown` or `chmod`?


title: (Author, Date) type of bibliography

text: I've been trying in vain to find how to have a (Author, Date) type of bibliography. Could you help me with that? Thanks!


title: captionof{lstlisting} Listingsnumber not in caption shown

text: Hi there having another problem. In the following Minimal Example a listing with captionof doesnt show the Listings Number in the Caption :(               \documentclass[       11pt, % Schriftgröße       DIV10,       ngerman, % für Umlaute, Silbentrennung etc.       a4paper, % Papierformat       oneside, % einseitiges Dokument       titlepage, % es wird eine Titelseite verwendet       parskip=half, % Abstand zwischen Absätzen (halbe Zeile)       headings=normal, % Größe der Überschriften verkleinern       listof=totoc, % Verzeichnisse im Inhaltsverzeichnis aufführen       bibliography=totoc, % Literaturverzeichnis im Inhaltsverzeichnis aufführen       index=totoc, % Index im Inhaltsverzeichnis aufführen       captions=tableheading, % Beschriftung von Tabellen unterhalb ausgeben       %draft % Status des Dokuments (final/draft)       final % Status des Dokuments (final/draft)     ]{scrreprt}          \usepackage{listings}     \usepackage{xcolor}      \definecolor{bluegray}{RGB}{235,235,250}     \definecolor{colKeys}{rgb}{0,0,1}     \definecolor{colIdentifier}{rgb}{0,0,0}     \definecolor{colComments}{RGB}{108,226,108}     \definecolor{colString}{rgb}{0,0.5,0}     \definecolor{navy}{RGB}{0,0,128}     \lstset{       float=hbp,       basicstyle=\color{black},       identifierstyle=\color{colIdentifier},       keywordstyle=\color{colKeys},       stringstyle=\color{colString},       commentstyle=\color{colComments},       columns=flexible,       tabsize=2,       frame=single,       extendedchars=true,       showspaces=false,       showstringspaces=false,       numbers=left,       numberstyle=\small,       breaklines=true,       backgroundcolor=\color{bluegray},       breakautoindent=true     }               \usepackage[labelfont=bf,font=footnotesize]{caption}     \captionsetup{format=plain}           \usepackage{capt-of}               \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt, breaklines=true}     \lstset{emph={square}, emphstyle=\color{red}, emph={[2]root,base}, emphstyle={[2]\color{blue}}}          \begin{document}          \begin{minipage}{\textwidth}       \begin{center}         \captionof{lstlisting}[ListingsCaption]{ListingsCaption CITE}         \begin{lstlisting}[language=Xml,label=lst:ListingsLabel]           <style name="MyStyle">             <color>#b0b0ff</color>           </style>         \end{lstlisting}       \end{center}     \end{minipage}          \end{document}      ![result](http://i.stack.imgur.com/djkxW.png) Any idea what went wrong?               *File List*     scrreprt.cls 2011/04/02 v3.09 KOMA-Script document class (report)     scrkbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-dependent bas     ics and keyval usage)     scrbase.sty 2011/04/02 v3.09 KOMA-Script package (KOMA-Script-independent b     asics and keyval usage)     keyval.sty 1999/03/16 v1.13 key=value parser (DPC)     scrlfile.sty 2011/03/09 v3.09 KOMA-Script package (loading files)     tocbasic.sty 2011/03/23 v3.09 KOMA-Script package (handling toc-files)     scrsize11pt.clo 2011/04/02 v3.09 KOMA-Script font size class option (11pt)     typearea.sty 2011/04/02 v3.09 KOMA-Script package (type area)     listings.sty 2007/02/22 1.4 (Carsten Heinz)     lstmisc.sty 2007/02/22 1.4 (Carsten Heinz)     listings.cfg 2007/02/22 1.4 listings configuration     xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)     color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)     ltxcmds.sty 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)     caption.sty 2010/01/09 v3.1m Customizing captions (AR)     caption3.sty 2010/01/14 v3.1m caption3 kernel (AR)     capt-of.sty 2009/12/29 v0.2 standard captions outside of floats     supp-pdf.mkii     lstlang1.sty 2004/09/05 1.3 listings language file     lstmisc.sty 2007/02/22 1.4 (Carsten Heinz)     omlcmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions     ***********


title: Aligning multiple TikZ trees with other nodes

text: This question is directly related to Aligning TikZ trees with other nodes that I asked some time ago. By the time I asked the question I didn't realize that aligning multiple trees was not the same as aligning one tree. Indeed, the answer proposed by Dmitry F. Volosnykh demands that the tree is created first, before the other nodes it has to be aligned with. Thus, that question should have been named "Aligning one TikZ tree with other nodes". However, when you have to align multiple trees, they can't be in first position all together at the same time. Some have to appear after others. I have completed the example given in the previous question to be the full example I need to solve and to expose the problem I am talking about. Note that the three fitting nodes used to contain the three trees are at the right positions. But all the trees are at the same coordinates and are superimposed on the "transformation" box. Here is the graphic I get: ![enter image description here](http://i.stack.imgur.com/1ZpSG.png) Of course, I would like to be able to position them in their respective box. Here is the code:               \documentclass{article}          \usepackage{tikz,nicefrac,amsmath,pifont,graphicx}     \usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,positioning,trees}          \usepackage[graphics,tightpage,active]{preview}     \PreviewEnvironment{tikzpicture}     \newlength{\imagewidth}     \newlength{\imagescale}          \graphicspath{{/Users/ludo/Documents/cours/xml/slides/gfx/}{/Users/ludo/Documents/cours/xml/slides/src/gfx/}}          \begin{document}          \begin{tikzpicture}[          >=stealth', semithick, node distance=1cm, level distance=7mm, level/.style={sibling distance=10mm/#1},         block/.style = {draw, rectangle, rounded corners, minimum height=1cm},         every node/.style={circle, draw, fill=none, anchor=north}     ]     \node  [block] (transfo) {\parbox{2.5cm}{\centering transformation}};          \node (source tree root) {}         child { node {} }         child { node {}             child { node {} }             child { node {} }         };     \node (source tree) [draw, rectangle, fit=(source tree root) (source tree root-1) (source tree root-2-2), left=of transfo] {};          \node [block] (source document) [left=of source tree] {\parbox{2cm}{\centering source document}};          \node (stylesheet tree root) {}         child { node {}             child { node {} }             child { node {} }         }         child { node {}             child { node {} }             child { node {} }         };     \node (stylesheet tree) [draw, rectangle, fit=(stylesheet tree root) (stylesheet tree root-1-1) (stylesheet tree root-2-2), above=of transfo] {};          \node [block] (stylesheet document) [above=of stylesheet tree] {stylesheet};          \node (result tree root) {}         child { node {}             child { node {} }             child { node {} }         }         child { node {}             child { node {} }             child { node {} }         };     \node (result tree) [draw, rectangle, fit=(result tree root) (result tree root-1-1) (result tree root-2-2), right=of transfo] {};          \node [block] (result document) [right=of result tree] {\parbox{2cm}{\centering result document}};          \begin{scope}[shorten >=1pt]     \draw [->] (source document) edge (source tree);     \draw [->] (source tree) edge (transfo);     \draw [->] (transfo) edge (result tree);     \draw [->] (result tree) edge (result document);     \draw [->] (stylesheet document) edge (stylesheet tree);     \draw [->] (stylesheet tree) edge (transfo);     \end{scope}     \end{tikzpicture}               \end{document}


title: listings package : highlight word composed by an alphabetic and a numeric part

text: I would like to highlight several keywords with an alphabetic and a numeric part with different color. My problem is the number of keywords can become huge from r0 to r191 for example. And I have several keywords. Is there a way to escape to write all the possible keywords ? Is there a way to define left delimiter just for a word and not for a line ? The sample bellow do exactly what I want but with writing all the keywords (example keywords[2] and keywords[3])...               \documentclass[a4paper, 12pt,english]{article}     \usepackage{color}     \definecolor{gray}{rgb}{0.4,0.4,0.4}     \definecolor{darkgreen}{rgb}{0.0,0.4,0.0}     \definecolor{darkred}{rgb}{0.6,0.0,0.0}          \usepackage{listings}     \lstdefinelanguage{mylanguage}                       {keywords=[1]{add,sub,test},                         keywords=[2]{r0,r1,r2},                         keywords=[3]{p00,p01,p10,p11},                         moredelim=[s][\footnotesize\textit]{<}{>},                         keywordstyle=[1]\normalsize\color{gray}\bfseries\ttfamily,                         keywordstyle=[2]\color{darkgreen},                         keywordstyle=[3]\color{darkred}}          \begin{document}          \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt,language=mylanguage}     \begin{lstlisting}       p00 add r0 , r1 , r2     \end{lstlisting}               \end{document}


title: What is the clearest way to graph a piecewise function?

text: I have a function defined as: ![enter image description here](http://i.stack.imgur.com/xZX8S.png) How can I graph that using functions instead of coordinates? I'm currently working with pgfplots but I'm open to something else if it's better.


title: Poor opentype font quality when printing xelatex generated PDF

text: I've been trying to print a PDF created with Xelatex, and the text (using opentype) is not as crystal clear as the same text printed directly from word (the edges are jagged/grainy). Any suggestions?


title: "Preamble" menu item does not appear in LyX

text: I'm trying to use `xy-pic` in LyX to create diagrams and using this tutorial. It says on page 3 to go Layout->Document->Preamble to enable the `xy-pic` package. However, there is no "Layout" menu on my LyX installation. There is a "Document" menu, but it doesn't contain any option "Preamble." When I type `\xymatrix`, the command appears in the autocomplete list. However, when I type `\ar` within the `\xymatrix` context to create an arrow, it does not appear. `\ar` causes compile errors, and both `\ar` and `\xymatrix` cause compile errors when used in an evil red text context (between dollar signs) rather than a LyX math context. I'm using LyX 2.0.1 on a Mac OSX Lion machine. This issue has been a problem in the past as well, but I haven't been able to find any information on it. Any ideas?


title: TikZ -- Line caps extend over/past grid line boundaries

text: I am plotting a line _L_ in a rectangular coordinate system. The coordinate system has grid lines. (I'm using **\draw[help lines] (-5,-5) grid (5,5)** , so the grid lines form a 10-by-10 box for the coordinate system.) The line _L_ is ultra thick. I have extended _L_ to the edges of the grid lines. The problem is that when you zoom-in on those two points where _L_ meets the boundary of the grid lines, the corners of the line caps for _L_ extend slightly past the grid lines. Is there a way to plot _L_ to the edges of the grid lines, only to have the line caps of _L_ be cut off once it meets the grid lines? _Basically, I want L extended to the grid lines, and I don't want anything--including the line caps for L--to go over top of and past the grid lines._


title: Using one counter for different floats?

text: I'm using two different floats, and I'd like to use the same counter for both. The standard LaTeX format for a new float is:                \newfloat{type}{placement}{ext}[outer counter]      I tried using this by substituting various counters for the "`outer counter`" but they all give a double digit result, like 0.1 or 0.2, etc. I'm wondering how I can use one **SINGLE DIGIT COUNTER** for the floats. In other words, I want to start my floats' captions as "Figure 1", "Figure 2", etc. Could someone please provide a code example to do this? As an aside, I'm using both the `float` and `caption` packages.


title: \fancyhead[LE,RO]{\thepage} not working

text: I'm having some issues with page numbering in my LaTeX document. I would like the odd numbered pages to display the page number on the left and the even numbered pages to display it on the right. I've followed the wiki by the book but it always displays the pages on the left side no matter what; http://en.wikibooks.org/wiki/LaTeX/Page_Layout This is what I have so far:               \begin{document}     \pagestyle{fancyplain}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{1pt}     \fancyhead[LE,RO]{\thepage}     \fancyfoot[L]{my name}     \fancyfoot[R]{Assignment Name}


title: MikTex Package Update Issue on Windows 8

text: I have been using MikTex on Windows XP and 7 for few months now and I faced no issues in installing packages that needs to be done on the fly. However, with Windows 8, the packages are not updated at all. Does anyone know how to overcome this issue? As an example, I tried to build the following "http://courses.engr.illinois.edu/cs573/fa2011/Homework/hw5.tex" which requires the "fullpage" package. However, I always get build error saying, > ! LaTeX Error: File `fullpage.sty' not found.Type X to quit or to proceed,or > enter new name. (Default extension: sty)Enter file name:! Emergency stop. > \usepackage Does anyone know how to overcome this issue?


title: How to Number Theorems within a Chapter?

text: There are lots of theorems and lemmas in my thesis which are being numbered continuously from start to end. I want the numbering to be like Theorem <>.<>. Same for lemmas and corollaries. I am using amsthm and the environments are defined like               \newtheorem{definition}{Definition}     \newtheorem{lemma}{Lemma}      Is there any simple way to get chapter-wise numbering?


title: Creating table as shown in the picture

text: I want to create a table in LaTeX which begins as shown in the figure below. How do I make it using the table/tabular package? I made it using TikZ, but I am sure this is not the efficient way to go about. ![](http://i.imgur.com/Q8cKrSs.png)


title: Diagonal lines in table cell

text: I need this table: ![table](http://i.stack.imgur.com/ZYZns.jpg) (each row and column should have the same height and length, last cell should be divided by diagonal line). I tried the following code:               \documentclass[11pt]{article}     \usepackage[T1]{fontenc}     \usepackage{array}     \usepackage{makecell}     \newcolumntype{x}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}     \begin{document}     \setlength{\extrarowheight}{0.1cm}     \begin{tabular}{|x{0.5cm}|x{0.5cm}|x{0.5cm}|x{0.5cm}|x{0.5cm}|}\hline     &&&&20\\ \hline     &&&&30\\ \hline     &&&&45\\ \hline     15&12&18&50&\diaghead(-3,2){\hskip \hsize}{$a_i$}{$b_j$}\\ \hline     \end{tabular}     \end{document}      but text in the last cell is displayed incorrectly and cells are not the same. ![table - latex](http://i.stack.imgur.com/6nZxX.jpg) How can I change that?


title: Inclined line between two cells in a table

text: > **Possible Duplicate:**   >  Diagonal lines in table cell How can I put an inclined line between two cells in a table? I know that \cline{i-j} put a partial horizontal line, but I want that this line is inclined... Can somebody help me?


title: How to create slant line in a table?

text: I want to split a table in two part as shown below. How do i split a cell so that i can write "Inferred" and "Ground truth" as shown in following picture. ![enter image description here](http://i.stack.imgur.com/K8jT6.jpg)


title: Diagonally divided table cell

text: > **Possible Duplicate:**   >  Diagonal lines in table cell I'd like to include a table of numbers in my document. Those numbers are defined by two parameters _n_ and _k_ , and I'd like to achieve a presentation similar to what Comtet did in "Advanced Combinatorics". More precisely, I'm interested in dividing the top-left cell to include both _n_ and _k_ , as he did in the example below: ![alt text](http://i.stack.imgur.com/kZgJb.png) How do I do that?


title: Is it possible to create a table with two entries in one cell separated by 45 degree line?

text: I want to create a table like the below picture in LaTeX. Does anyone tried this before? Can you introduce how to create such a table? The problem is that I don't know to how create the slash line separating "Name" and "Group" fields. ![enter image description here](http://i.stack.imgur.com/0ut9D.png)


title: LaTeX table cell with a diagonal line and 2 sub cells

text: > **Possible Duplicate:**   >  Diagonally divided table cell   >  Diagonal lines in table cell I'd like to have a LaTeX table, where the top left cell marks what the headers are to the right and also mark what the descriptors are downwards. For this I'd like to have the upper left table cell be "split" diagonally, (from top left of cell to bottom right) by drawing a line and above that line, I'd like to place the name of headings to the right, and below the headings of the descriptors downwards. Any idea how I could do that?


title: Putting LaTeX table legend in a "x\y" style

text: > **Possible Duplicate:**   >  Tables of numbers Is it possible to put a "x\y" style legend in one cell (maybe be made up of several cells) of a table? It would be great to make the 'x' slightly lower while the 'y' slight higher. Please see the picture below for illustration: ![XY_style](http://i.stack.imgur.com/NOWBn.jpg) Thank you very much.


title: Table headers and chain aligment

text: I have 2 questions. 1- How to use a diagonal seperator for the table hearders n and k in a good way. 2- How to align the back of the arrow to the rightand the head to the left of the numbers? ![Table1](http://i.stack.imgur.com/84vYS.jpg)               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{matrix,chains,scopes,arrows}          \begin{document}     \begin{center}         \begin{tikzpicture}           \matrix[matrix of math nodes,column sep=1em,row sep=0ex] (ex5mx) {             n\backslash{}k & 0 & 1 & 2 \\             0 & -0.3887696362 & ~ & ~ \\             1 & -0.3892561049 & -0.3894182612 & ~ \\             2 & -0.3893777792 & -0.3894183372 & -0.3894183423 \\           };                %\draw[thin,black] ([xshift=0em,yshift=0em]ex5mx-1-1.north west) -- ([xshift=0em,yshift=0em]ex5mx-1-1.south east); %\drule           \draw[thin,black] ([xshift=0.5em,yshift=0em]ex5mx-1-1.north east) |- ([xshift=1.058em,yshift=0em]ex5mx-4-1.south east); %\vrule           \draw[thin,black] ([xshift=-0.5em,yshift=0.25em]ex5mx-1-1.south west) |- ([xshift=3em,yshift=0em]ex5mx-1-4.south east); %\hrule                %1st rows           {[start chain,every on chain/.style={join={by <-*, blue!30}}]             \chainin (ex5mx-3-3);             {[start branch] \chainin (ex5mx-2-2); }             {[start branch] \chainin (ex5mx-3-2); }           }                {[start chain,every on chain/.style={join={by <-*, blue!30}}]             \chainin (ex5mx-4-3);             {[start branch] \chainin (ex5mx-3-2); }             {[start branch] \chainin (ex5mx-4-2); }           }                %2nd rows           {[start chain,every on chain/.style={join={by <-*, blue!40}}]             \chainin (ex5mx-4-4);             {[start branch] \chainin (ex5mx-3-3); }             {[start branch] \chainin (ex5mx-4-3); }           }              \end{tikzpicture}         \end{center}     \end{document}


title: Making advanced tables

text: ![enter image description here](http://i.stack.imgur.com/PX4Jn.png) I am trying to generate tables like the one above I found in a textbook in LaTeX. In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be great if there was a way to make the words read from the side. But i do not want to read 180 degrees.


title: Unwanted CM fonts when trying to use mathpazo

text: Some more information. In making an MWE I removed a lot of stuff, including the use of XeLaTeX or LuaLaTeX, and `fontspec`. What I was actually trying to do was set up a suitable maths font environment to accompany Minion Pro. In seeking an MWE (took me most of the afternoon, snort), I have reporduced this behaviour with `fontspec`, and under all three engines (PDFTeX, LuaTeX, and XeTeX). * * * ### Original Question: I'm trying to use `mathpazo` in a document. I may have a separate problem with `fontspec`, but I'll leave that to another question. Here's my MWE:               \documentclass{article}     \usepackage{mathpazo}     \usepackage{tgpagella}     \begin{document}          When traffic is normal, the probability $P_2$      that this second message is waiting depends on two factors:      the message arrival rate $\lambda$      and the trigger processing time $t_T$;      its approximate value is given by          %\[ P_2  = 1-e^{- \lambda t_T} \]  % Uncomment this!          \end{document}      When I process this with the display-math line commented out, I get a reasonable PDF with 4 fonts embedded (PazoMath-Italic, TeXGyrePagella-Regular, URWPalladioL-Ital and -Roma), which seems reasonable. However, when I uncomment the display-math line, my PDF now shows two more fonts: CMR10 and CMSY10. Inspecting the output, I can't see any difference in the glyphs. What's going on here? And, if it needs fixing, how should I fix it?


title: Is there a better way to do intersections and calculations with relative coordinates in TikZ?

text: I've been doing many TikZ diagrams lately and every so often I encounter a situation where I am forced to use some temporary `coordinate` in a `\path`. In the following short example, the problem is drawing the red line: ![Output of MWE](http://i.stack.imgur.com/O622s.png)               \documentclass{article}     \usepackage{tikz}     %\usetikzlibrary{calc}     \begin{document}          \begin{tikzpicture}     % Some nodes. Precise coordinates are unknown.     \node[draw] at (1,1) (A) {Node};     \node[draw, right of=A, above right=0.5cm] (B) {Other Node};     \draw (B.50) -- ++(0,1);          % Angled line connecting to a straigt line. This is where my problem lies.     \draw[red] (A.140) -- ++(0,1) coordinate(temp) -- (temp -| B.50);          % Some examples of what I think would be useful in this case.     % None of these things seem to be supported in TikZ.     %\draw[red] (A.140) |- (+(0,1) -| B.50);     %\draw[red] (A.140) -- ++(1,0) -- (\currentcoordinate -| B.50);     %\draw[red] (A.140) |- ($(B.50).x, (+(0,1)).y$);     \end{tikzpicture}     \end{document}      So I wonder if there is a better way to draw the red line. By "better" I mean more concise, without repetition, ideally without `($calculations$)`. Some examples of what I think could be useful are included as comments in the code. Since "better" is mostly a matter of taste, I have broken my question down to what I think could be useful to solve the problem:   1. Is it possible to use relative coordinates in the intersection syntax `(a -| b)`?   2. Is there some way (macro or other) to access the _current coordinate_ of the current path?   3. Is it possible to use relative coordinates in the calculation syntax `($(a) + (b)$)`?   4. Is there a way to combine `x`-Part of one coordinate with the `y`-Part of another, other than the `(a -| b)` syntax? Can it be used with relative coordinates?


title: Axis tick numbers overlap in TikZ

text: The following code can be used to create a TikZ plot:               \documentclass{article}          \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}     \begin{axis}[%          view={0}{90},          scale only axis,          width=\linewidth,          height=0.839628\linewidth,          xmin=40000, xmax=140000,          ymin=2e+008, ymax=2.03e+008,          axis on top,          legend style={nodes=right}]     \end{axis}     \end{tikzpicture}          \end{document}      My output is this: ![enter image description here](http://i.stack.imgur.com/PEPXq.png) The "2" and the "0.4" overlap. How can I fix this?


title: Strange behaviour of hyperref with colorlinks=true in conjunction with fancyhdr

text: I found something that seems like a bug in `hyperref`, namely, I'm adding clickable labels at the bottom of the page with `fancyhdr` (see tex.stackexchange.com/q/51574), and a single option in the `hypersetyp`, which should just switch between boxed and coloured links, adds an extra line if I don't add a work-around. Edit: To make this easier to find: This **issue does not appear with pdflatex** (thanks to karlkoeller, see comments). MWE:               \documentclass{article}     \usepackage[english]{babel}     \usepackage{fancyhdr}     \usepackage{hyperref}     \hypersetup{         colorlinks=true, % false: boxed links; true: colored links         linkcolor=black  % color of internal links     }          \pagestyle{fancy}     \makeatletter     \renewcommand{\sectionmark}[1]{       \markboth{\protect\hyperlink{\@currentHref}{\thesection.\ #1}}{}     }     % writes section title to \leftmark; see fancyhdr documentation. The hyperlink-construct     % is so that the fancyhdr is clickable - \@currentHref contains current link     \makeatother     \lfoot{\leftmark}\cfoot{}\rfoot{Page \thepage}     \lhead{}\chead{}\rhead{}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0.4pt}          \begin{document}     \section{Test}     \end{document}      If `colorlinks=true` is commented out, the additional line in the fancy footer disappears, as is the case when the `\sectionmark` is defined slightly differently:               \renewcommand{\sectionmark}[1]{       \markboth{\hspace{0cm}\protect\hyperlink{\@currentHref}{\thesection.\ #1}}{}     }      I don't know whether I'm making an obvious mistake, but to me, the `colorlinks`-option shouldn't be doing that. Edit: I'm working on an institutional machine and may not have the newest version of everything, but I asked that everything be updated a while ago for that very reason and it didn't change. Edit2: Received response from IT, according to CTAN, fancyhdr and hyperref are up to date. Here's a picture comparison (compiled with normal LaTeX and dvi2pdf): ![Without the additional line](http://i.stack.imgur.com/49He6.jpg) ![With the additional line](http://i.stack.imgur.com/1h8VX.jpg)


title: Tikz patterns and cmyk color model

text: Consider the following example.               \documentclass{standalone}     \usepackage[cmyk]{xcolor}     \usepackage{tikz}     \usetikzlibrary{patterns}     \begin{document}     \begin{tikzpicture}     \tracingall     \draw [pattern = north west lines] circle [radius = 2cm];     \end{tikzpicture}     \end{document}      `xcolor` is loaded with `cmyk` option so all colors should be defined in terms of cmyk color model (analysis below shows it is the case, so `xcolor` is ok). But, the lines inside the circle (the pattern) are black, but this black is defined with the rgb color model. Going through the code and the log, I found the explanation (`\pgf@tempcolor`, cmyk black, is converted to rgb _via_ `\pgfutil@convertcolorspec`). See extract below.               % pgfcorepatterns.code.tex     \def\pgf@set@fillpattern#1#2{%       \pgfutil@ifundefined{pgf@pattern@name@#1}{%         \pgferror{Undefined pattern `#1'}}       {%         \csname pgf@pattern@instantiate@#1\endcsname%         \expandafter\global\expandafter\let\csname pgf@pattern@instantiate@#1\endcsname=\relax%         \pgf@ifpatternisinherentlycolored{#1}{%           \pgfsys@setpatterncolored{\csname pgf@pattern@name@#1\endcsname}%         }{%           \pgfutil@colorlet{pgf@tempcolor}{#2}%           \pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgf@tempcolor}}%           \pgfutil@extractcolorspec{pgf@tempcolor}{\pgf@tempcolor}%           % *** EXPLANATION HERE ***           \expandafter\pgfutil@convertcolorspec\pgf@tempcolor{rgb}{\pgf@rgbcolor}%           \expandafter\pgf@set@fill@patternuncolored\pgf@rgbcolor\relax{#1}%         }%       }%     }      This conversion seems to be needed by this other piece of code (I run `pdftex`).               % pgfsys-pdftex.def     \def\pgfsys@setpatternuncolored#1#2#3#4{%       \pgfsysprotocol@literal{/pgfprgb cs #2 #3 #4 /pgfpat#1\space scn}%     }      Is there a way to change this behaviour (my editor does not want any rgb-coded figures) ? **Update** Here is what I tried so far (it does not work).               \pdfcompresslevel=0     \pdfobjcompresslevel=0     \documentclass{standalone}     \usepackage[cmyk]{xcolor}     \usepackage{tikz}     \usetikzlibrary{patterns}          \makeatletter     % from pgfsys-pdftex.def     \def\pgfsys@setpatternuncolored#1#2#3#4#5{%       \pgfsysprotocol@literal{/pgfpcmjk cs #2 #3 #4 #5 /pgfpat#1\space scn}%     }          \def\pgf@sys@pgf@resource@list@colorspaces{} % Empties all reference                                     % to RGB          \pgfutil@addpdfresource@colorspaces{ /pgfpcmyk [/Pattern /DeviceCMYK] }          % from pgfcorepatterns.code.tex     \def\pgf@set@fillpattern#1#2{%       \pgfutil@ifundefined{pgf@pattern@name@#1}{%         \pgferror{Undefined pattern `#1'}}       {%         \csname pgf@pattern@instantiate@#1\endcsname%         \expandafter\global\expandafter\let\csname pgf@pattern@instantiate@#1\endcsname=\relax%         \pgf@ifpatternisinherentlycolored{#1}{%           \pgfsys@setpatterncolored{\csname pgf@pattern@name@#1\endcsname}%         }{%           \pgfutil@colorlet{pgf@tempcolor}{#2}%           \pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgf@tempcolor}}%           \pgfutil@extractcolorspec{pgf@tempcolor}{\pgf@tempcolor}%           % Modified (hum)           \expandafter\pgfutil@convertcolorspec\pgf@tempcolor{cmyk}{\pgf@cmykcolor}%           \expandafter\pgf@set@fill@patternuncolored\pgf@cmykcolor\relax{#1}%         }%       }%     }          \def\pgf@set@fill@patternuncolored#1,#2,#3,#4\relax#5{%       \pgfsys@setpatternuncolored{\csname pgf@pattern@name@#5\endcsname}{#1}{#2}{#3}{#4}%     }          \begin{document}     \begin{tikzpicture}     \draw [pattern = north west lines] circle [radius = 2cm];     \end{tikzpicture}     \end{document}      Evince tells me (4 times):               Error: Bad color space 'pgfpcmjk'     Error (478): Bad color space (fill)     Error (509): Incorrect number of arguments in 'scn' command      Here are some extract of the raw pdf file. Reading it, I don't understand why `pgfpcmjk` would be a bad color space since it is defined via `/DeviceCMYK`.               4 0 obj <<      /Type /Pattern /PatternType 1 /PaintType 2 /TilingType 1 /BBox [-0.99628 -0.99628 3.9851 3.9851] /XStep 2.98883 /YStep 2.98883 /Resources << >>      /Length 48             >>     stream     q 0.3985 w 0.0 2.98883 m 3.08846 -0.09962 l S Q      endstream     endobj     7 0 obj <<     /Length 532            >>     stream     0 0 0 1 k 0 0 0 1 K     0 g 0 G     0 0 0 1 k 0 0 0 1 K     0 0 0 1 k 0 0 0 1 K     0 0 0 1 k 0 0 0 1 K     1 0 0 1 56.892 56.892 cm     q      0 0 0 1 K      0 0 0 1 k      0.3985 w      q      q      /pgfpcmjk cs 0 0 0 1 /pgfpat4 scn      56.69363 0.0 m      56.69363 31.31142 31.31142 56.69363 0.0 56.69363 c      -31.31142 56.69363 -56.69363 31.31142 -56.69363 0.0 c      -56.69363 -31.31142 -31.31142 -56.69363 0.0 -56.69363 c      31.31142 -56.69363 56.69363 -31.31142 56.69363 0.0 c      h      0.0 0.0 m      B      Q      Q      n      Q      0 0 0 1 k 0 0 0 1 K     0 0 0 1 k 0 0 0 1 K     0 0 0 1 k 0 0 0 1 K     0 0 0 1 k 0 0 0 1 K     endstream     endobj     6 0 obj <<     /Type /Page     /Contents 7 0 R     /Resources 5 0 R     /MediaBox [0 0 113.784 113.784]     /Parent 8 0 R     >> endobj     5 0 obj <<      /ColorSpace 3 0 R /Pattern 2 0 R /ExtGState 1 0 R      /ProcSet [ /PDF ]     >> endobj     1 0 obj     <<>>     endobj     2 0 obj     << /pgfpat4 4 0 R>>     endobj     3 0 obj     <<  /pgfpcmyk [/Pattern /DeviceCMYK] >>     endobj     8 0 obj <<     /Type /Pages     /Count 1     /Kids [6 0 R]     >> endobj     9 0 obj <<     /Type /Catalog     /Pages 8 0 R     >> endobj


title: Make each column of a table have same width

text: I have a table as follows:                 &$\begin{array}{c|cc|cc}         & x & \multicolumn{1}{c}{y} & i & 0 \\ \hline         x & 0 & \multicolumn{1}{c}{} & -49 &  \\         y & & \multicolumn{1}{c}{0} &  &  \\ \cline{4-5}         i & 49 & & 0 &-2\\          0 & &  & 2 & 0       \end{array}$      Is there a way to make each column have same width?


title: How can I draw with coordinates of intersection in pgfplots?

text: When using pgfplots, the command `\pgfgetlastxy` works well without axis environment and with axis environment set as default. But it is hard getting the correct coordinate of intersecting, when setting something with the axis environment. ![enter image description here](http://i.stack.imgur.com/9S56D.jpg) I want to get the result with the MWE below.               \documentclass{standalone}          %\usepackage{amsthm,amssymb}     \usepackage{pgfplots}     \usetikzlibrary{arrows,intersections,calc}          \begin{document}     \begin{tikzpicture}[font=\footnotesize]     \begin{axis}[%     axis lines*=none,axis y line=center, axis x line=center,     xlabel=$x$,ylabel=$y$,     every axis x label/.style={at={(current axis.right of origin)},anchor=north east,xshift=1mm},     every axis y label/.style={at={(current axis.above origin)},anchor=north east,yshift=1mm},     xmin=-0.2,ymin=-0.15,     xmax=1.5,ymax=1.5,     %xtick={1},ytick={1},     restrict y to domain=0:1.2,     height=6cm,width=5cm,     enlargelimits=false]     \node[below left,black] at (axis cs:0,0) {$O$};          \addplot[name path global=x2,blue,smooth,samples=500,domain=0:1.2] %             {x^2} node[pos=0.75,sloped,yshift=-6pt]{$y=x^2$};     \addplot[name path global=genx,red,smooth,samples=500,domain=0:1.2] %             {sqrt(x)} node[pos=0.75,sloped,yshift=6pt]{$x=y^2$};          \def\vlvalue{0.4}; %x  interval:[x,x+dx]     \def\intvlen{0.1}; %dx     \path[draw=none,name path=lx] (axis cs:\vlvalue,0)--(axis cs:\vlvalue,1.2); %x     \path[draw=none,name path=ldx] (axis cs:\vlvalue+\intvlen,0)--(axis cs:\vlvalue+\intvlen,1.2);%x+dx     %     \path[name intersections={of=x2 and lx,name=k}] (axis cs:\vlvalue,0)--(k-1);      \path(k-1)  \pgfextra{\pgfgetlastxy{\kx}{\ky}     %%no ;                   \global\let\kx\kx %                   \global\let\ky\ky};     \draw[blue,dashed] (axis cs:\vlvalue,0)--(\kx,\ky);     \path[name intersections={of=genx and lx,name=m}] (axis cs:\vlvalue,0)--(m-1);     \path(m-1)  \pgfextra{\pgfgetlastxy{\mx}{\my}     %%no ;                   \global\let\mx\mx %                   \global\let\my\my};     %draw from (k-1) to (\vlvalue+\intvlen,\ky)     \draw[red] (\kx,\ky)--(axis cs:\vlvalue+\intvlen,\ky); % % %wrong \ky     %draw rectangle      \fill[cyan!5] (k-1) rectangle (axis cs:\vlvalue+\intvlen,\my); % %wrong \my     \end{axis}     \end{tikzpicture}     \end{document}