title: Converted xxx-eps-converted-to.pdf not found

text: I'm using TeXStudio on Mac OS X 10.7.4. The problem is that the EPS to PDF conversion is somehow broken:               \usepackage[pdftex]{graphicx}     \graphicspath{{img/}}     \DeclareGraphicsExtensions{.pdf,.jpeg,.png}     ...     \begin{figure}[!t]     \centering     \includegraphics[width=3.5in]{TCP_VC_TD_AVE_CONNS_ACT}     \caption{Simulation Results}     \label{fig_sim}     \end{figure}     ...      I've got an EPS file in: `img/TCP_VC_TD_AVE_CONNS_ACT.eps` Log:               Package epstopdf Info: Source file: <img/TCP_VC_TD_AVE_CONNS_ACT.eps>     (epstopdf)                    date: 2012-10-12 16:44:32     (epstopdf)                    size: 210073 bytes     (epstopdf)             Output file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-     to.pdf>     (epstopdf)             Command: <epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT     -eps-converted-to.pdf img/TCP_VC_TD_AVE_CONNS_ACT.eps>     (epstopdf)             \includegraphics on input line 94.     runsystem(epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf i     mg/TCP_VC_TD_AVE_CONNS_ACT.eps)...executed.          Package epstopdf Info: Result file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-     to.pdf>.          ! Package pdftex.def Error: File `img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.     pdf' not found.      The required `img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf` file is never created. TeXStudio compiles with (I've added `-shell-escape`, from other posts):               /usr/texbin/pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex      Can anybody assist? **EDIT** \- A minimal file breaks as well:               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \includegraphics{img/TCP_VC_TD_AVE_CONNS_ACT.eps}     \end{document}      Log:               Package epstopdf Info: Source file: <img/TCP_VC_TD_AVE_CONNS_ACT.eps>     (epstopdf)                    date: 2012-10-12 16:44:32     (epstopdf)                    size: 210073 bytes     (epstopdf)             Output file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-     to.pdf>     (epstopdf)             Command: <epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT     -eps-converted-to.pdf img/TCP_VC_TD_AVE_CONNS_ACT.eps>     (epstopdf)             \includegraphics on input line 4.     runsystem(epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf i     mg/TCP_VC_TD_AVE_CONNS_ACT.eps)...executed.          Package epstopdf Info: Result file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-     to.pdf>.          ! Package pdftex.def Error: File `img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.     pdf' not found.


title: How to modify nodes in TikZ to automatically add a line on their top?

text: In `TikZ` there is the very flexible node system. As a beginner I am still stumbling over a few details. How can I modify a node or create my own nodes easily? As an example I need a node with a thick line on top. At the moment I solved this as follows:               \documentclass{standalone}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}              \node[bottom color=white,top color=black!20] (node) at (0,0) {node};              % line on top but not well aligned          \draw [very thick] (node.north west) -- (node.north east);          \end{tikzpicture}          \end{document}      Is it possible to define a new node that has the line automatically in it or is this not the right approach? Additionally the line seems a bit longer than the node itself but I do not know the cause (the black line is slightly wider than the box): ![a node](http://i.stack.imgur.com/aGozb.png)


title: Can't style theorem with ntheorem and mathdesign

text: Code below gives me no styling for theorem.               \documentclass[12pt,a4paper]{article}     \usepackage{russ}     \usepackage[cp1251]{inputenc}     \usepackage[ukrainian,russian]{babel}     \usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}     \usepackage{mathtools}     \usepackage[OMLmathrm,OMLmathbf]{isomath}     \usepackage{amsmath}     \usepackage[amsmath]{ntheorem}     \usepackage[bitstream-charter]{mathdesign}               \newtheorem{lem}{Лема}          \begin{document}          \begin{lem}     За умов (5) для довільного $s \in (0,1)$ рівняння     \begin{equation}\label{6}       sf(k)=\mu     \end{equation}     має єдиний розв'язок $k_{s}>0.\\$     \end{lem}          \end{document}      ![enter image description here](http://i.stack.imgur.com/7whej.png)


title: How to draw a spiral in phase portrait?

text: I am aware of easily drawing a spiral in the note of nonlinear dynamics. Here are some examples: ![enter image description here](http://i.stack.imgur.com/zAlS2.jpg) ![enter image description here](http://i.stack.imgur.com/1RwoN.jpg)


title: How to find the exact location of Type 3 fonts in PDF?

text: While generating PDFs, we often ends up with some Type 3 fonts. We can find the existence of Type 3 fonts in a PDF by providing `pdffonts <filename.pdf>`. Also, can find the exact page by giving the following:                for i in `seq 1 1 \`pdfinfo test.pdf|grep 'Pages'|cut -d: -f2|sed -e 's/ //g'\``      do        echo Page $i;        pdffonts -f $i -l $i test.pdf|grep 'Type 3';      done      This will list the existence of Type 3 font in each page. My question is whether we can find the exact location in the page where the Type 3 font appear. Is there any easy method or open source program to achieve this? In some situation, we need to spend hours by trial and error to find the exact font which cause the trouble.


title: Tikz: wrong intersection with axis

text: In the following code the dashed line that intersects with the y-axis is out of place and I don't know where I'm making the mistake (if there is any):               \documentclass{article}     \usepackage{pgfplots}     \usetikzlibrary{intersections,calc}          \begin{document}          \begin{tikzpicture}         \draw [<->] (0,5) node (ejey) [left]{$\omega$} |- (5.5,0)  node (ejex)         [right]{$l$};         \draw [name path = ls] (0.5,0.5) coordinate (a) -- (4.5,4.5) node         (b) [right] {$l^{s}(\omega, r)$};         \draw [name path = ld] (0.5,4.5) coordinate (c) -- (4.5,0.5) node         (d) [right] {$l^{d}(\omega)$};         \path [name intersections={of=ls and ld, by=i}];         \draw [dashed] (ejey |- i) node [left] {$\omega_{0}^{*}$} -| (i |- ejex)         node [below] {$l_{0}^{*}$};     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/gz3i5.jpg)


title: Pagenumbers aligned raggedleft in scrartcl with tocstyle?

text: When trying to typeset a table of contents with `KOMAscript`and `tocstyle`(alpha 0.2d), I finally managed to change the font of the pagenumbers (like the rest of the document to CMSS) with `\settocfeature{pagenumberhook}{\changefont{cmss}{m}{n}}`, however now the page numbers are aligned at the left and not at the right side!   ![screenshot bad](http://i.stack.imgur.com/JKeF2.png) So how can I change that back to an alignment on the right side of the page numbers like that, but with the sans serif font?   ![screenshot good](http://i.stack.imgur.com/hRopy.png) Example:               \documentclass[11pt, a4paper]{scrartcl}     \usepackage[ngerman]{babel}     \usepackage{blindtext}          \newcommand{\changefont}[3]{ \fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}          \usepackage[]{tocstyle}     \usetocstyle{classic}     %\settocstylefeature[1]{entryvskip}{10pt}     %\settocstylefeature[2]{entryvskip}{3pt}     %\settocstylefeature[1]{entryhook}{\bfseries}     \settocfeature{pagenumberhook}{\changefont{cmss}{m}{n}}          \begin{document}          \changefont{cmss}{m}{n}          \tableofcontents          \newpage          \blinddocument     \blinddocument     \blinddocument          \end{document}


title: Hide custom environment content based on boolean

text: I have a custom environment which adds some text around its content, but I also want it to be able to show or hide its contents depending on a boolean. I have tried doing the following:               \newif\ifshow     \showfalse     \newenvironment{myenv}     {\ifshow\textbf{Content of myenv:}}     {\fi}      But the first `\begin{myenv}` raises an `Incomplete \iffalse; all text was ignored after line X`. It would seem that the `\iffalse` is causing the `\end{myenv}` to be ignored, so the `\fi` is never written. Any idea on how could I accomplish this?


title: How to define commands that do not consume any space

text: I want to create an environment that generates special tables and graphs. Inside the environment the user should be able to execute predefined commands that either modify the behavior of the final drawing or add elements that should be drawn. The problem I am currently facing is that each command that is executed consumes some horizontal space even though it isn't outputting anything. Is there any way to define commands that do not have any impact to the output at all? Consider the following example:               \documentclass{article}          \newenvironment{test}{x}{y}     \newcounter{somecounter}     \newcommand{\somecommand}[1]{%     \setcounter{somecounter}{#1}%     }          \begin{document}          \section*{Test 1}     \begin{test}%     \somecommand{42}     \end{test}          \section*{Test 2}     \begin{test}     \end{test}     \end{document}      This is how the result looks like: ![enter image description here](http://i.stack.imgur.com/FweTO.png) What I want is to define the command `somecommand` in a way that _Test 1_ would look just like _Test 2_. Is there any way to achieve this? Maybe I could put the command in an invisible box of or box with the height and width of 0? If that can't be done, is there a way to calculate how much space a command would need, so that I could (programmatically) insert a negative horizontal and vertical space?


title: convert string to active character

text: in my book I will have to itemize a lot of things in different lists. That's why I want to reduce my commands to a minimum. This script is just part of a bigger macro.               \documentclass{book}          \usepackage[at]{easylist}          \begin{document}          \newcommand{\el}[1]{\begin{easylist}[itemize] #1 \end{easylist}}          \el{     @ 1     @ 2     @ 3         @@ 3a         @@ 3b         @@ 3c     }          \begin{easylist}[itemize]     @ 1     @ 2     @ 3         @@ 3a         @@ 3b         @@ 3c     \end{easylist}          \end{document}      When I pass the @-char to my macro it gets converted into a string so that it won't get recognized by easylist as an active character. How can I reconvert the @-char from string to an active character?


title: Beamer outside notes word wrap problem

text: I am adding some notes to my slides. My notes are very long (about 3 lines in the slide), and when I use `\note[enumerate]{\item ... }` stuff, (it is note outside frame) the text in the note slide does not get appropriately wrapped and some of the last characters of each line are cut. If I just use `\note{}` without enumerate or itemize, then the left and right margin look right.


title: Label matrix dimensions

text: I have a matrix equation like               Ax=b      I'd like to include the dimensions under each, like so               \underset{p\times k}{A} \underset{k\times 1}{x} = \underset{p\times 1}{b}       The problem is that this is ugly, at least in the Beamer template I'm using. Is there a better way to typeset this?


title: natbib author-year-page separator

text: This should be a no-brainer but I haven't seen an example anywhere:               \citep[253--256]{sean2003game}      with bibpunct like               \bibpunct{(}{)}{:}{a}{,}{~}}      outputs               (Riley, 2004, 253-256)      I need to output               (Riley, 2004:253-256)      Does `\bibpunct` support custom page separators?


title: Subfigure in memoir

text: I am using `pgfplots` to draw plots in `memoir`. I have a problem for subfigure plots.               \documentclass{memoir}          \usepackage{pgfplots}     \usepackage{tikz}     \usepackage{subfigure}          \begin{document}          \begin{figure}     \centering     \subfigure{     \begin{tikzpicture}     \begin{axis}[grid=major,xmin=0,xmax=1,ymin=0,ymax=0.5]     \addplot[color=black] coordinates {     (0,0.2)     (0.5,0.2)     (1,0)     };     \end{axis}     \end{tikzpicture}}     \subfigure{     \begin{tikzpicture}     \begin{axis}[grid=major,xmin=0,xmax=1,ymin=0,ymax=0.5]     \addplot[color=black] coordinates {     (0,0.5)     (1,0)     };     \end{axis}     \end{tikzpicture}}     \end{figure}          \end{document}      But the code cannot be compiled successfully. Is there anyone know how to modify the code?


title: Tables and sections get misplaced

text: These are my tables:                \section{The status of respondents}         \begin{center}             \begin{table}             \begin{tabular}{|l|l|l|l|}                     \hline                 \textbf{Sl.No.} & \textbf{Grouping of Respondents} & \textbf{Respondents} & \textbf{Percentage} \\                 \hline                 1 & Students & 38 & 76\% \\                 \hline                 2 & Employees & 12 & 24\% \\                 \hline                   & \textbf{Total} & 50 & 100\% \\                 \hline                       \end{tabular}             \caption{The status of respondents}             \end{table}              \end{center}            Among the 50 respondents 38 were students and 12 were employees.      \section{Some section}     \begin{center}         \begin{table}         \begin{tabular}{|l|l|l|l|}             \hline             \textbf{Sl.No.} & \textbf{Options} & \textbf{Respondents} & \textbf{Percentage} \\             \hline             1 & Getting it without making payment & 29 & 58\% \\             \hline             2 & Free to use it for any purpose & 10 & 20\% \\             \hline             3 & Free to distribute copies & 11 & 22\% \\             \hline               & \textbf{Total} & 50 & 100\% \\             \hline          \end{tabular}         \caption{Opinion about something}         \end{table}     \end{center}      When I compile into a pdf the tables appear together, and section names and other writing in the middle will appear separately after the tables.


title: unattractive additive effect to opacity with pstricks

text: I'm using `pstricks` to highlight by boxing or circling replacement text in my math equations. But, I don't want this highlighting to occlude what's behind it. So, I've been setting `opacity` or `strokeopacity` to accomplish this. Everything seemed to be working as I wanted it to until I started trying to connect the nodes. Then where the arrows and connects and boxes overlapped, I got annoying additive side effects from the opacity. What really surprised me was to learn that arrows and their lines are treated as two separated objects by `pstricks`. Anyway, does anyone know a way around this? I'm open to any suggestions. I know pratically nothing about `tikz`: really only enough to make myself constantly frustrated. Nevertheless, I am open to `tikz` solutions too. Here is my MWE:               \documentclass{article}     \usepackage{amsmath}     \usepackage{pst-node}     \pagestyle{empty}     \begin{document}         \newcommand{\myboxn}[3][red!60]{%                 \rnode{#2}{\psframebox[boxsep=false,                                        framesep=0.5pt,                                        linewidth=3pt,                                        strokeopacity=0.4,                                        linecolor=#1]{#3}}}         \begin{align*}              \sqrt{2} - 1   & = \frac{1}{\sqrt{2}+1}                                   \\[2ex]              \sqrt{2} - 1   & = \dfrac{1}{2 + \myboxn{A}{\sqrt{2}-1}}                  \\[2ex]              \sqrt{2} - 1   & = \dfrac{1}{2 + \myboxn{B}{\dfrac{1}{2+\sqrt{2}-1}}}             \end{align*}              \ncline[arrows=-D>,                 linecolor=red,                 linewidth=3pt,                 arrowscale=1.25,                 strokeopacity=.40]{A}{B}               \end{document}      By the way, I know I can set the _parameters_ using `\psset{...}` but in the actually document, there is a lot going on with different different styles. So, I'd prefer to stick to passing the parameters individually to `\ncline` etc. ![enter image description here](http://i.stack.imgur.com/ei2jY.png)


title: No Bibliography is printed and citations shown bibtex key

text: I writing a document in LyX (2.0.5) with references. For displaying references I use `biblatex`. (http://wiki.lyx.org/BibTeX/Biblatex). My latex environment is MiKTeX 2.9 Since I switched my Desktop, converting following tex files to pdf doesn't work anymore. Converting the Lyx file (which following tex file is exported from) doesn't work either. Here is my tex file:               %% LyX 2.0.5 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[11pt,oneside,chapterprefix=on]{scrbook}     \usepackage{helvet}     \renewcommand{\familydefault}{\sfdefault}     \usepackage[T1]{fontenc}     \usepackage[cp1252]{inputenc}     \usepackage[a4paper]{geometry}\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=2cm,rmargin=2cm,headheight=1cm,headsep=1cm,footskip=1.2cm}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage{amsmath}     \usepackage{fixltx2e}     \usepackage{setspace}     \onehalfspacing     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,      breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.     \numberwithin{figure}{section}     \numberwithin{table}{section}     \numberwithin{equation}{section}          \@ifundefined{date}{}{\date{}}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \usepackage[style=alphabetic,natbib=true,backend=biber]{biblatex}     \bibliography{list-4.bib}     \typeout{File: \jobname.bcf}          \makeatother          \begin{document}          \chapter{Introduction}         Test (\citealp[see][p.1]{Alter1980})          \chapter{Literature}     \printbibliography     \end{document}      My bib file look like this:               @book{Alter1980,     author = {Alter, Steven L.},      year = {op. 1980},      title = {{D}ecision support systems: {C}urrent practice and continuing challenges},      address = {Reading Mass. [etc.]},      publisher = {Addison-Wesley Publ},      isbn = {0-201-00193-4}     }      Hope that I haven't forget any neccessary information. Hope, someone of you have a hint where the problem may lies ... I have non any more.


title: Support for all writing systems in a single document — more than just one or two Unicode planes simultaneously

text: I am working on a document that contains a growing number of representatives from different writing systems. It is mostly an English document, and I have been using the following to ensure that CJK characters, Korean Hangul, and IPA are handled with full support:               \usepackage[fallback]{xeCJK}[2011/05/01 v2.3.19]     \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont{TeX Gyre Termes}     \setsansfont[Scale=MatchLowercase]{Doulos SIL}     \setCJKmainfont{HAN NOM A}     \setCJKfallbackfamilyfont{\CJKrmdefault}{HAN NOM B} % goes with Han Nom A          \setCJKfamilyfont{korm}{Arial Unicode MS}     \newcommand\Korean{\renewcommand\CJKrmdefault{korm}\CJKspace\normalfont}      The principal special variants of the Roman alphabet as used in Western Europe and the Greek alphabet are available to me via normal LaTeX means. But now I have to add something in Cyrillic, and since Arial Unicode MS contains the glyphs, I've added a line               \newfontfamily\utf{Arial Unicode MS}      to the preamble and marked the Cyrillic text `\utf{}`, which produces satisfactory results. (I normally compile with XeLaTeX for the sake of the multiple system fonts required). My question is not just how to deal with Cyrillic today in this environment, but the larger issue of how I can most easily add material in other Unicode planes, when the need arises. Is there, right now, a comprehensive solution that will handle all writing systems for which I possess fonts, even when special diacritic, kerning, and directional behavior is required?


title: Cannot recognize macthesis document class

text: I am writing in LaTeX using TexShop on Mac OS X. I've found that there is a class named `macthesis`, following a tutorial on You Tube. So I tried to compile this document:               \documentclass{macthesis} % Comments     \begin{document}          Hello world     Hello world\\     Second line          Another paragraph          \end{document}      But it says that it doesn't find `macthsis.cls`: ![enter image description here](http://i.stack.imgur.com/AvH4O.png)


I'm using a template, not created by me, for the thesis. I use the index for each chapter. (minitoc) Why the index of a certain chapter is put on 2 chapters later? i.e. the index of chapter 1 is on chapter 3. In this file there are the code and the pdf.


title: Texlive installation is missing tlmgr, how to fix?

text: I installed with the net install Texlive 2010 on an Ubuntu machine. Because I don't have to much space to spare I carefully selected components to install to reduce the required disk-space. Later I missed some package and I wanted to install it with tlmgr. However, tlmgr is nowhere to be found! I'm guessing I somehow didn't install it. How can I fix this the best? Edit: I did really installed the Texlive 2010 from the texlive website. I downloaded this file, and started the installation with `sudo ./install-tl`. The paths I kept standard and the only thing I changed are which collections are installed, leaving some collections that are not useful for me out. When I list all binaries in `/usr/local/texlive/2010/bin/i386-linux` I have e.g. `latex`,`lualatex`,`bibtex` etc. but not `xetex` (which I didn't want to install) and not `tlmgr`. Also, when I type `pdflatex` anywhere, I see the following version `This is pdfTeX, Version 3.1415926-1.40.11 (Tex Live 2010)`which wouldn't be possible with Ubuntu packages, as they are TexLive 2009. (`which pdflatex` gives `/usr/local/texlive/2010/bin/i386-linux/pdflatex`)


title: Piecewise linear plot with custom grid

text: I try to plot a piecewise linear interpolation of a function w on a grid \xn={x1,x2,...,xN} using tikz. I tried using a foreach loop and store the grid as a vector to do that, but it doesn't seem to work. Can anyone help?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows, calc}     \begin{document}     \begin{tikzpicture}[scale=1.8]      \pgfkeys{ /pgf/declare function={        w(\x)=-.5+\x*\x*\x-\x+\x*\x;}      }     \def \xn {-1.8,-1,-.5,.1,.9,1}; %% grid     \foreach \i in {1,2,...,5}{        \draw({\xn(\i)},{w(\xn(\i))})--({\xn({\i+1})},{w(\xn({\i+1}))});     }     \end{tikzpicture}     \end{document}      This is how the output should look like (without the axes). ![enter image description here](http://i.stack.imgur.com/pwUt7.jpg)


title: Specific bullet list

text: I'm looking to create a bullet list as follows:               (a) first item     (b) second item     (c) etc.      I've tried to google it and found the following code:               \begin{enumerate}[(a)]%for small alpha-characters within brackets.     \item     \end{enumerate}      However, this doesn't work for me. I've also tried:               \begin{enumerate}[\alph{qcounter}]     \item      \end{enumerate}      but it doesn't work either. Any help would be much appreciated.


title: Sticky notes image

text: I've tried looking in the site for this but I couldn't find anything (rather surprising). I want a package (or even a TikZ drawing) to accomplish a note on a sticky note. I just need one note, so I don't mind a complex solution or a very specific solution to this problem. Here are 2 possible examples of what I want: ![enter image description here](http://i.stack.imgur.com/hJlW4.jpg) Here is something better, but I don't own those images so I'll just put a link.   * Sticky note   * Card I have no MWE since I want to know if there is a package. If there's not, I'll try with TikZ, though I'm not very good at it.


title: Create square and custom size cells in a table using pgfplotstable

text: I'm trying to create something like a confusion matrix of several classes. Thus, I want to display only the shades of the values. I manage to do it using this:               \documentclass{article}     \usepackage[table]{xcolor}     \usepackage{pgfplotstable}          \makeatletter     \pgfplotsset{         /pgfplots/table/omit header/.style={%             /pgfplots/table/typeset cell/.append code={%                 \ifnum\c@pgfplotstable@rowindex=-1                     \pgfkeyslet{/pgfplots/table/@cell content}\pgfutil@empty%                 \fi             }         }     }     \makeatother          \pgfplotstableset{         color cells/.style={%             header=false,             omit header,             col sep=comma,             string type,             postproc cell content/.code={%                     \pgfkeysalso{@cell content=\cellcolor{black!##1}\pgfmathtruncatemacro\number{##1}\ifnum\number>50\color{white}\fi}             }         }     }          \begin{document}     \begin{table}\caption{Correlation or something}     \centering     \pgfplotstabletypeset[color cells]{     100,0,0,0,0,0,0     0,100,0,0,0,0,0     0,0,50,0,0,0,0     0,0,1.4,90,0,0,0     0,8,0,0,95,0,8     0,5,10,0,0,60,0     0,15,0,0,0,0,80          }     \end{table}     \end{document}      However, if the number of classes increases the table won't fit in the page. Thus, I tried to reduce its size by adding `font=\tiny` to the `color cells` style. However, that produces non square cells. Moreover, I will want to tune the size of the squares to accommodate several classes that may require a size smaller than that provided by the `\tiny` fontsize.               \pgfplotstableset{         color cells/.style={%             font=\tiny,             header=false,             omit header,             col sep=comma,             string type,             postproc cell content/.code={%                     \pgfkeysalso{@cell content=\cellcolor{black!##1}\pgfmathtruncatemacro\number{##1}\ifnum\number>50\color{white}\fi}             }         }     }      ![non-square table](http://i.stack.imgur.com/INFC1.png) Also, I'm not sure if changing the font is the correct approach to resize the cells, but I didn't find another way. If there is another way of altering the size of the cells, I will appreciate that information.


title: How to reproduce this box in tcolorbox

text: I'm working with `tcolorbox`, I saw the pdf here and I want to reproduce the little green box in this image: ![enter image description here](http://i.stack.imgur.com/Oz20M.png) Can anyone help me please?


title: Convert gif image to png on the fly

text: I am using pdflatex on linux and attempting to convert gif to png. I can run scripts to find out the image attributes and even and convert the files supplied from a folder but I can not write back to that folder (or I'd convert them by hand). I have hundreds of gif files. I have found great instructions with regard to converting gif to eps. Those weren't working for me, so I thought I'd try png files because I normally use .png files. Thanks in advance for your time for reading and any comments. Before \begin{document}, I have defined:               \DeclareGraphicsExtensions{.gif, .ps, .eps, .png}     \DeclareGraphicsRule{.gif}{png}{}{`convert #1 'png:-'}      Inside my document, I have               \includegraphics{figures/filename.gif}      When I run pdflatex on my document, I get an error: > ! LaTeX Error: Cannot determine size of graphic in `convert > figures/filename.gif 'png:-' (no size specifed). So, I added a bounding box manually to the includegraphics command:               \includegraphics[0,0][18,18]{figures/filename.gif}      I got the dimensions using imagemagick's identify command. I am able to convert the file, write it to a new file, and view it using imagemagick:               $ convert figures/filename.gif gif:figures/filename.png      I believe that the "convert" command I specified in the graphics rule is not actually running. What am I doing wrong? Here are some details about my build:               $ pdflatex test.tex     This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)     (./test.tex{pdftex.cfg}     LaTeX2e <2001/06/01>     Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, i     talian, nohyphenation, loaded.     (/usr/share/texmf/tex/latex/base/article.cls     Document Class: article 2001/04/21 v1.4e Standard LaTeX document class     (/usr/share/texmf/tex/latex/base/size10.clo))     (/usr/share/texmf/tex/latex/tools/verbatim.sty)     (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty)     (/usr/share/texmf/tex/latex/graphics/graphicx.sty     (/usr/share/texmf/tex/latex/graphics/keyval.sty)     (/usr/share/texmf/tex/latex/graphics/graphics.sty     (/usr/share/texmf/tex/latex/graphics/trig.sty)     (/usr/share/texmf/tex/latex/config/graphics.cfg)     (/usr/share/texmf/tex/latex/graphics/pdftex.def)))     (/usr/share/texmf/tex/latex/base/makeidx.sty)     Writing index file test.idx     (/usr/share/texmf/tex/latex/misc/pslatex.sty)     (/usr/share/texmf/tex/latex/pdfpages/pdfpages.sty     (/usr/share/texmf/tex/latex/base/ifthen.sty)     (/usr/share/texmf/tex/latex/tools/calc.sty)     (/usr/share/texmf/tex/latex/ms/eso-pic.sty     (/usr/share/texmf/tex/latex/ms/everyshi.sty))))          LaTeX Warning: Unused global option(s):         [8pt,english].          No file test.aux.     (/usr/share/texmf/tex/latex/psnfss/omspzccm.fd)     (/usr/share/texmf/tex/context/base/supp-pdf.tex     (/usr/share/texmf/tex/context/base/supp-mis.tex     loading : Context Support Macros / Missing     )     loading : Context Support Macros / PDF     ) (/usr/share/texmf/tex/latex/psnfss/ot1ptmcm.fd)     (/usr/share/texmf/tex/latex/psnfss/omlptmcm.fd)     (/usr/share/texmf/tex/latex/psnfss/omxpsycm.fd)     <use `convert figures/remconf_edit.gif 'png:-'> [1{/usr/share/texmf/dvips/confi     g/pdftex.map}] (/usr/share/texmf/tex/latex/psnfss/omsphv.fd) [2] [3] [4]     (./test.aux) )</usr/share/texmf/fonts/type1/bluesky/cm/cmsy10.pfb>{/usr/share/t     exmf/dvips/base/8r.enc}


title: How do I insert pictures into my LaTeX document?

text: I want to insert images into my LaTeX document. I used `\includegraphics{}` and also kept the image in the working directory of the tex file. But still I am unable to do so. My image is in GIF format; is that a problem?               \documentclass{article}         \usepackage{mathtools}         \usepackage{attrib}         \usepackage[normalem]{ulem}         \usepackage{graphicx}         \graphicspath{ {images/} }         \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage{geometry}         \geometry{a4paper}         \title{ An Introduction to Multivariable Calculus}         \newcommand{\lt}{<}         \newcommand{\gt}{>}           \begin{document}         \maketitle         \includegraphics{fig5-24.jpg}         \end{document}


title: Floating a chess diagram on the next column

text: My second chess diagram does not fit on the first column, so LaTeX increased paragraph spacing on the first column. This does ensure that the second diagram appears exactly on top of the second column. However, I prefer to keep the standard paragraph spacing, and the best solution I could come up with is to use `\vfill` to fill in the space. Here are my two questions:   1. When I tried to use `\columnbreak` instead of `\vfill`, I received an error message saying that it is an undefined control sequence. Would `\columnbreak` and `\vfill` have given the same result in this case?   2. How can I ask LaTeX to put in as much text as possible with normal paragraph spacing on the first column before displaying the second diagram on the second column? The second diagram will then be out of order, but I can put a put a caption on it.               \documentclass[10pt,twocolumn]{article}           \usepackage{xskak}       \usepackage{chessboard}           \begin{document}           \thispagestyle{empty}            \begin{center}       \textbf{Chiburdanizde - Watson} \\       \textit{Brussels 1987}      \end{center}           \begin{center}            \newchessgame[setwhite={Pg3,Ph4,Kf2}, addblack={ph6,kd6}]           \chessboard[       pgfstyle=border, linewidth = 0.03em, markfield=f5, color=red,       pgfstyle= {[base,at={\pgfpoint{0pt}{-0.4ex}}]text},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 1, markfield=f4,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 2, markfield=g4,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 2, markfield=e4,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 3, markfield=f3,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 4, markfield=e3,       color=black,       pgfstyle= {[base,at={\pgfpoint{0pt}{-0.4ex}}]text},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 1, markfield=h5,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 1, markfield=e6,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 2, markfield=f6,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 3, markfield=g6,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 3, markfield=e7,        text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 4, markfield=f7]           \end{center}           The diagram above illustrates the system of corresponding squares in the pawn endgame.  If the kings are on corresponding squares, say white king on f4 and black king on e6, then whoever it is to move is in zugzwang.  In addition, White wins if he can maneuver his king to the key square f5.           \fenboard{8/8/3k3p/8/7P/6P1/5K2/8 w - - 0 57}      \styleC           \mainline{57. Kf3?}           This allows Black to put White in zugzwang with his next move.  From the diagram, it is clear that White wins after \variation{1. Ke3} as the black king cannot reach the corresponding square f7 in one move.           \mainline{57... Ke7! 58.Kf4 Ke6 59.g4}           White altered the pawn structure, so we need a new diagram of corresponding squares.  It is now a battle for the key squares d5, e5, and f5.           \vfill           \begin{center}             \chessboard[        mover=false,        pgfstyle=border, linewidth = 0.03em, markregion=d5-f5, color=red,        pgfstyle= {[base,at={\pgfpoint{0pt}{-0.4ex}}]text},          text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 1, markfields={d4,d2},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 2, markfields={e4,e2},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 3, markfield=f2,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 4, markfields={d3,d1},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 5, markfields={e3,e1},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 6, markfields={f3,f1},        color=black,        pgfstyle= {[base,at={\pgfpoint{0pt}{-0.4ex}}]text},          text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 1, markfields={d6,d8},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 2, markfield=e8,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 3, markfields={f6,f8},         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 4, markfield=d7,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 5, markfield=e7,         text=\fontsize{1.2ex}{1.2ex}\bfseries \sffamily 6, markfield=f7,        margintop=false]           \end{center}           \mainline{59... Kf6 60.Kf3 Ke7?}           Watson explained in \textit{New in Chess} that his blunder was due to extreme time pressure.  From the diagram, we see that the only move for Black is \variation{60... Kf7}.           \mainline{61.Ke3! Kf7 62.Kd4 Kf6 63.Kd5 Ke7 64.Ke5 Kf7 65.Kf5 Kg7 66.Ke6 Kg6 67. h5+ Kg5 68.Kf7 Kxg4 69.Kg6 Kf4 70.Kxh6}           and Black resigned.           \end{document}


title: Installing MacTeX

text: I've been trying to install the MacTeX package (MacTeX.mpkg), but each time I download it and attempt to install, I receive this error message, and the installation halts: com.apple.installer.pagecontroller error -1 I am using a modern iMac running OS X 10.6.5. Any suggestions would be great appreciated.


title: Error: extra alignment tab has been changed to \cr

text: I am using the ACM SIG template and trying to create a table of 4 columns. I get the error mentioned in the title of the question. I know the standard reasons why this error can occur. But my question is: Is it possible that the template or `.cls` file is controlling the maximum number of columns in a table ? If it were, would I get a different error than this?


title: Figure references doesn't work

text: I'm writing a document with some figures, each one has one label, and I'm using references. Every figure used appear at the list of figures, but not when referencing from text. When I do that, it prints "...like in Figure ??". An example is:               GPS coordinates look like in Figure~\ref{fig:coord}.          \begin{figure}[h]         \centering         \includegraphics{/img/coord.png}         \caption{GPS coordinates representation}         \label{coord}     \end{figure}      Where is the problem here?


title: How to center the table in Latex

text: I have got a simple code to generate table in Latex.               \begin{tabular}{ | c | c | c | }       \hline       symbol & value & unit \\ \hline                   $z Na$ & 11 & - \\ \hline             $z F$ & 9 & - \\ \hline             $Emax Na$ & 0.545 & $[MeV]$ \\ \hline     \end{tabular}      This code is good, but I would like to add this table to my document in Latex and have this table centered. The point is that table would be in the middle not on the left nor on the right but in the middle. I tried this, but it didn't work:               \{center}     \begin{tabular}{ | c | c | c | }       \hline       symbol & value & unit \\ \hline                   $z Na$ & 11 & - \\ \hline             $z F$ & 9 & - \\ \hline             $Emax Na$ & 0.545 & $[MeV]$ \\ \hline     \end{tabular}     \{\center}      I appreciate the answer.


title: \includegraphics forces new page

text: When I include a PDF diagram, it forces a new page, so I have one blank page and then this diagram, can somebody help me please? I need to remove that blank page. My document looks like this               \documentclass[11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage{multirow}     \usepackage{graphicx}     \usepackage{a4wide}     \usepackage{pdfpages}     \usepackage[total={17cm,25cm}, top=2.0cm, bottom=1cm, left=0.0cm, right=0.0cm, includefoot]{geometry}          \begin{document}     \newgeometry{total={17cm,25cm}, top=2.0cm, bottom=1cm, left=2.0cm, right=2.0cm, includefoot}     \section*{Diagram případů užití}     \includegraphics[width=\textwidth]{diagram.pdf}     \end{document}      and the resulting output is ![output result with blank page](http://i.stack.imgur.com/DCwXM.png)


title: Eform package and evince

text: Can anybody explain me why the standard examples from the documentation of eform does not work with evince pdf viewer (I'm on Ubuntu 12.10) while compiled with TeXLive 2013 but when the eform documentation is opened in the same viewer the same forms does work (see page 9 of ftp://ftp.tpnet.pl/pub/CTAN/macros/latex/contrib/acrotex/doc/eformman.pdf)? The MWE fo the forms is the following               \documentclass{article}     \usepackage[pdftex]{eforms}     \begin{document}     Enter name:\textField[\BC{0 0 1}\textColor{1 0 0}]{myText}{1.5in}{12bp}     Are you happy \checkBox[\symbolchoice{check}]{myCheck}{10bp}{10bp}{On}      \end{document}      I can't see the forms when opened in evince, the forms are ok when opened in Adobe Reader (on Ubuntu). How to make the forms right using eform so that they work with evince?


title: TEXINPUTS ignored in ubuntu 12.04?

text: I have recently installed Ubuntu 12.04 (default, no tweaking) and I am trying to use pdfLaTeX, like this:   1. the file `z.tex` exists   2. I am in the directory containing `z.tex`   3. `TEXINPUTS` is a shell variable set to `.:~/tex::` (seems correct and works on other machines with other Ubuntu versions) Trying to run `latex`, `pdflatex` or `pdftex` gets the same message:               I can't find file 'z.tex'      Does anyone understand that? What did I forget?


title: caption of the wide table not wide

text: I am using this code to produce a wide table, but the caption in top is still in two column format.I used \caption package but it affects all of my figures captions and never solve the problem.                   \documentclass[prb,twocolumn,preprintnumbers,amsmath,amssymb]{revtex4}         \usepackage{graphicx}         \usepackage{booktabs}         \usepackage{enumitem}         \usepackage{tabularx}         \usepackage{epsfig}         \usepackage{amsmath,amscd}         \usepackage{psfrag}         \setlength\paperheight{11in}         \usepackage[dvipdfm]{hyperref}         \usepackage{amsmath,amscd}         \usepackage{psfrag}                   \begin{table}[p]         \caption{Plots of average power dissipated $\overline P$ vs the amplitude of second         harmonic $H_{ac2}$ for different values of the relative phase $\theta$, while $m=3$,  $\alpha=0.05$ and $H_{ac1}=2 H_1$.}          \centering         \begin{tabularx}{\textwidth}{|X|X|X|}         \multicolumn{3}{>{\centering\setlength\hsize{3\hsize} }X}{\boldmath$m=3$\unboldmath   ,       \boldmath$\alpha=0.05$\unboldmath , \boldmath$H_{ac1}=2H_1$\unboldmath}\\ \hline         \includegraphics[height=1.7 in,width=2.3 in]{t21.eps} & \includegraphics[height=1.7 in,width=2.3 in]{t22.eps} & \includegraphics[height=1.7 in,width=2.3 in]{t23.eps}\\ \hline         \includegraphics[height=1.7 in,width=2.3 in]{t24.eps} & \includegraphics[height=1.7 in,width=2.3 in]{t25.eps} & \includegraphics[height=1.7 in,width=2.3 in]{t26.eps}\\ \hline         \end{tabularx}         \end{table}


title: LaTeX system-wide glossary database as custom package

text: I'm trying to make a system-wide glossary database (with acronyms and definitions) as a package. My file is: `/usr/local/texlive/texmf-local/tex/latex/local/myglossary.sty` One needs to run:               sudo texhash      so that TeXLive sees the file. Of course, I don't need all the definitions every time. So I split the definitions by domain. File: `/usr/local/texlive/texmf-local/tex/latex/local/myglossary.sty`               % myglossary.sty     % acronyms and definitions          \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{myglossary}          \RequirePackage{glossaries}          \DeclareOption{computer}{\option@computer} %% Execute \option@computer if option computer          \newcommand\option@computer{%       \newacronym{w3c}{W3C}{World Wide Web Consortium}            \newglossaryentry{css}{%         name={CSS},%         description={Style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language.},%         plural={CSS}}     }          \ProcessOptions          \endinput      File: `~/Desktop/test/document.tex`:               % document.tex     \documentclass{minimal}          \usepackage[computer]{myglossary}% note the option "computer"          \begin{document}            \gls{w3c}       \gls{css}          \end{document}      Compiled using:               pdflatex document.tex      The error is:               ! Package glossaries Error: Glossary entry `w3c' has already been defined.      Thanks for the help.


title: Matrix with arrows and labels

text: I would like your advice on writing a matrix with latex. In order to explain the meaning of the rows and columns, the matrix should be surrounded by two arrows, one on the left side pointing downward and one on the upper side pointing to the right. Where the arrows are labeled. I tried several things such as:               \[     M_{reg} = \bordermatrix{~  & 0 & 1 & 2 & 3 & 4 &  \cr                       0 & 0 & 0 & 0 & 1 & 1 \cr                       1 & 0 & 0 & 1 & 1 & 1 \cr                       2 & 0 & 0 & 1 & 1 & 0 \cr                       3 & 0 & 0 & 1 & 1 & 0 \cr                       4 \downarrow{Ca^{2+}} & 0 & 0 & 0 & 0 & 0 \cr                       %Ca^{2+}                       }^{\xrightarrow{DAG}}     \]      But it's not pretty and things are not correctly aligned. Do you have any ideas, or pointers to draw that matrix correctly ?


title: Using geman ö and ß in Bibtex

text: in my Bibtex file i name the Author: `author={R{\"o}{\ss}ler, Irene and Ungerer, Albrecht}`, but in the literature list it strangely outputs this: > [Rößler und Ungerer 2012] RÖSSLER, Irene; UNGERER, Albrecht:... where the second RÖSSLER should also be RÖßLER Update2: MWE               \documentclass[a4paper,12pt,fleqn,oneside,numbers=noendperiod,headings=normal,appendixprefix=true,bibliography=totoc,listof=totoc]{article}     \usepackage{natbib}     \usepackage[ngerman]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}          Standardnormalverteiung ben\"otigt (\citep[S. 123]{mathe}).          \bibliographystyle{dinat}     \bibliography{MeineBib}          \end{document}      MeineBib:               @incollection{mathe,     year={2012},     booktitle={Statistik für Wirtschaftswissenschaftler},     series={BA KOMPAKT},     title={Wahrscheinlichkeitsrechnung},     publisher={Springer Berlin Heidelberg},     author={R{\"o}{\ss}ler, Irene and Ungerer, Albrecht},     pages={83-136},     language={German}     }


title: How to create a timeline with chronosys or something similar?

text: I need to create a timeline in latex. This is what I have right now               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{chronosys}          \begin{document}               \startchronology     [startyear=0,stopyear=44,height=7ex,width=\hsize]     \chronoevent{0}{Jan 13 Quiz 1}     \chronoevent{8}{Jan 20 Quiz 2}     \chronoevent{36}{Feb 17 Quiz 6}     \chronoevent{36}{Intervention}     \stopchronology          \end{document}      I would like to have the days on top of the timeline, and the quizzes, and intervention, in the bottom. * * * I was able to create something close to what I want:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{snakes}     \usepackage{fullpage}          \begin{document}                    \begin{figure}     \caption{Time Line}     \centering     \resizebox{\linewidth}{!}{% Resize table to fit within          \begin{tikzpicture}[]     %draw horizontal line        \draw (0,0) -- (41/1.7,0);     %draw vertical lines     \foreach \x in {0/1.7, 8/1.7, 15/1.7, 22/1.7, 29/1.7, 36/1.7, 41/1.7}        \draw (\x cm,3pt) -- (\x cm,-3pt);          %draw nodes     \draw (0,0) node[below=3pt] { Quiz 1 } node[above=3pt] { Jan 13 2014  };     \draw (8/1.7,0) node[below=3pt] { Quiz 2 } node[above=3pt] { Jan 20 2014  };     \draw (15/1.7,0) node[below=3pt] { Quiz 3 } node[above=3pt] { Jan 27 2014  };     \draw (22/1.7,0) node[below=3pt] { Quiz 4 } node[above=3pt] { Feb 3 2014  };     \draw (29/1.7,0) node[below=3pt] { Quiz 5 } node[above=3pt] { Feb 10 2014  };     \draw (36/1.7,0) node[below=3pt] { Quiz 6 \& Intervention} node[above=3pt] { Feb 17 2014  };     \draw (41/1.7,0) node[below=3pt] { Course ends} node[above=3pt] { Feb 22 2014  };     \end{tikzpicture}     }     \label{fig:time_line}     \end{figure}     \end{document}      But the "draw vertical lines" is not doing what I expected.               %draw vertical lines     \foreach \x in {0/1.7, 8/1.7, 15/1.7, 22/1.7, 29/1.7, 36/1.7, 41/1.7}        \draw (\x cm,3pt) -- (\x cm,-3pt);      Any idea why?


title: endless loop with mdframed

text: The following code leads to an endless loop. pdflatex is at 100% CPU and the log is constantly increasing with number counted upwards.               \documentclass{article}     \usepackage{mdframed}     \begin{document}     \mdframed     \vrule height 210mm     \endmdframed     \end{document}


title: How to set the resolution of bitmap fonts in XeTex?

text: I would like to use the Calibri font for text and the concmath font for math. The latter is a bitmapped font and therefore it is rendered with rough edges by default. In pdflatex, one can set the resolution of the bitmapped font using (for example)               \pdfpkmode={linolttz}     \pdfpkresolution=3386      But this doesn't work in XeLatex which I need in order to use Calibri. Is there a similar command in XeLatex for changing the resolution of bitmapped fonts?


title: Symbol for cube

text: I've searched the Internet, but got nothing. In LaTeX, we can use `\square` for square, but how can we get a cube, I want to use it in an equation. Here is the picture: ![example of equation with cube](http://i.stack.imgur.com/T93TR.png)


title: How to force the caption of a table in order to set it in center

text: Although, I saw the following post in order to do that : How to force to center the table captions?, I coudn't find a proper way to set the table's caption. How can I force this action?               \documentclass[english,a4paper,12pt]{report}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \newcommand{\head}[1]{\textnormal{\textbf{#1}}}     \usepackage{graphicx}     \usepackage[showframe=false]{geometry}     \usepackage{changepage}     \usepackage[font=Large,labelfont=bf,justification=centering]{caption}     \begin{document}          asdasdasdad sadasdasdasdadasd asdasdasdasdafenm jejfnewjfnejfne nfjewnfwnfwfwqf     \begin{table}[htb]     \begin{adjustwidth}{-0.5cm}{}     \resizebox{0.6\textwidth}{!}{     \begin{minipage}{\textwidth}     \def\arraystretch{1.2}%     \begin{tabular}{ | c | c | c | c | c |  c |  c |  c | c |  c |  c |  }          \cline{2-11}      \multicolumn{1}{c|}{} & \textbf{Telestrada} & \textbf{Telestrada} & \textbf{Telestrada} & \textbf{Telestrada} &     \textbf{Telestrada} & \textbf{Telestrada} & \textbf{Telestrada} &      \textbf{Telestrada} & \textbf{Telestrada} & \textbf{Telestrada} \\          \hline       \textbf{LOC} & 5 & 5 & 6 & 5 & - & 5 & 6 & 5 & 6 & 5  \\     \hline       \textbf{VS} & 8 & 5 & 9 & 8 & 9 & 8 & 9 & 8 & 9 & 8 \\     \hline          \end{tabular}     \caption{\label{fig:text}text experiment experiment experiment experiment}     \end{minipage} }          \end{adjustwidth}     \end{table}     \\     sdasdada asdasdas adasdasdasd     \end{document}      ![enter image description here](http://i.stack.imgur.com/IkeLh.png)


title: Create listoftable did not formatted as expected

text: Is try to understand are there any conflict between some latex package with `listoftables` command. When I try to insert listoftable in my document, the output for the list of table not formatted as expected. This is my MWE:                 \documentclass[oneside,a4paper  , 12 pt, titlepage]{book}          \usepackage{amsmath}     \usepackage{hyphenat}     %\usepackage{indentfirst}     %\usepackage{multicol}     %\usepackage{blindtext}     %\usepackage{mathrsfs}     %\usepackage{amssymb}     %\usepackage{mathtools}     \usepackage{hyperref}     %\DisemulatePackage{setspace}     \usepackage{setspace}     \usepackage{graphicx}     \usepackage{float}     \usepackage{caption}     \usepackage{algorithmicx}     \usepackage{algorithm}     \usepackage{listings}     \usepackage{algcompatible}     \usepackage{algpseudocode}     \usepackage{float}     %\usepackage[compact]{titlesec}     \usepackage{parskip}     \usepackage{subcaption}     %\usepackage[pdf]{pstricks}     \usepackage{titlesec}          \usepackage{comment}     %\usepackage[crop=off]{auto-pst-pdf}     %\usepackage{pst-node,graphicx}     %\SpecialCoor     \usepackage[top=4cm, bottom=3cm, left=4cm, right=3cm]{geometry}          \usepackage{arabtex}     %\titlespacing{\chapter}{0pt}{50pt}{<after-sep>}          \usepackage[space]{grffile}          \makeatletter     \setlength{\@fptop}{0pt}     \makeatother          % untuk meletakkan float di daerah tertentu     \usepackage{float}     %\usepackage{pstrick}     %\usepackage{pst-all}     %\usepackage{pstricks-add}     \setlength{\parindent}{0cm}     %\usepackage[pdflatex]{pstricks}     %\usepackage{pstricks}     %\usepackage{auto-pst-pdf}                         %\setlength{\textfloatsep}{10pt plus 1.0pt minus 2.0pt}          \hyphenation{be-be-ra-pa}     \hyphenation{per-hi-tu-ngan}     \hyphenation{su-a-tu}     \hyphenation{se-te-ngah}     \hyphenation{hy-dro-di-na-mics}     %     %\renewcommand{\listalgorithmname}{Liste des }          \renewcommand{\figurename}{Gambar}     \renewcommand{\chaptername}{Bab}     \renewcommand{\tablename}{Tabel}     \renewcommand{\bibname}{Referensi}          \captionsetup[figure]{labelsep=period}          \setlength{\abovecaptionskip}{0pt}     \setlength{\belowcaptionskip}{0pt}          \onehalfspacing                    %\setlength{\abovedisplayskip}{10pt}     %\setlength{\belowdisplayskip}{10pt}     \setlength{\belowdisplayskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}     \setlength{\abovedisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt}          %\titleformat{\chapter}[hang]     %{\normalfont\Large \bfseries\centering}{\centering \chaptertitlename\ \thechapter}{20pt}{\Large}     %     %\titlespacing*{\chapter}{0pt}{-50pt}{40pt}          \hyphenation{e-ner-gi}     \hyphenation{de-ngan}     \hyphenation{di-nya-ta-kan}     \hyphenation{Newton}     \hyphenation{se-lan-jut-nya}     \hyphenation{di-re-pre-sen-ta-si-kan}     \hyphenation{di-li-hat}     \hyphenation{se-pe-rang-kat}          \newcommand*{\justifyheading}{\centering}     \titleformat{\chapter}[display]       {\normalfont\bfseries\justifyheading\Large}{\chaptertitlename \  \thechapter}       {14pt}{}     \titleformat{\section}[hang]       {\normalfont \bfseries \raggedright \large}{\thesection}{1em}{}     \titleformat{\subsection}[hang]       {\normalfont \bfseries\justifyheading \raggedright     %   \setlength\leftskip{0pt} \setlength\parfillskip{-\rightskip}       }{\thesubsection}{1em}{}            \titlespacing*{\chapter}{0pt}{0pt}{20pt}       \titlespacing{\section}{0pt}{0pt}{0pt}       \titlespacing{\subsection}{0pt}{0pt}{0pt}                \newcommand{\xxb}{\boldsymbol{x} - \boldsymbol{x}'}      \newcommand{\xb}{\boldsymbol{x}}      \newcommand{\xab}{\boldsymbol{x}'}      \newcommand{\xijb}{\boldsymbol{x}_i - \boldsymbol{x}_j}          % \setlength{\intextsep}{5pt} % Vertical space above & below [h] floats               % untuk spasi antar paragrapah      % http://www.tomdesair.com/blog/2013/04/latex-paragraph-spacing-and-indentation/     %The first command sets the indentation to 0 and thus cancels paragraph indentation. The second command sets the height of the trailing blank line. This is done using the LaTeX measure ex. One ex corresponds to the height of a lowercase ‘x’ in the current font style. I use 1.3 because I want the height of a capital letter. The “plus 0.5ex minus 0.3ex” part tells LaTeX that it can increase the height with at most 0.5ex and decrease it with maximum 0.3ex to make a decent layout. This means that the minimal height of the blank line is 1ex and the maximum 1.8ex.     %\setlength{\parskip}{1.3ex plus 0.5ex minus 0.3ex}               %\usepackage{pgfplots}               % Untuk menggambar fungsi gaussian     %\pgfmathdeclarefunction{gauss}{2}{%     %  \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%     %}               % untuk menempatkan algoritma outside float     %\DeclareCaptionFormat{algor}{%     %  \hrulefill\par\offinterlineskip\vskip1pt%     %    \textbf{#1#2}#3\offinterlineskip\hrulefill}     %\DeclareCaptionStyle{algori}{singlelinecheck=off,format=algor,labelsep=space}     %\captionsetup[algorithm]{style=algori}          \setlength\parskip{10pt}               \hyphenation{meng-im-ple-men-ta-si-kan}     \hyphenation{me-nya-ta-kan}          \setlength{\belowcaptionskip}{-5pt}     \setlength{\abovecaptionskip}{-5pt}          \setlength{\textfloatsep}{10pt}      \setlength{\floatsep}{20pt}      \setlength{\abovecaptionskip}{10pt}     \setlength{\belowcaptionskip}{5pt}                    \newcommand{\Scale}[2]{\raisebox{0.ex}{\scalebox{1.0}{$\displaystyle #1_{#2}\;$}}}          \hyphenation{pre-dic-tor}     \hyphenation{me-nyim-pan}     \hyphenation{in-ter-ak-si}          \allowdisplaybreaks          \hyphenation{MATLAB}     \hyphenation{peng-ak-ses-an}     \hyphenation{na-mun}          \hyphenation{predictor-corrector}     \hyphenation{array}     \hyphenation{e-va-lu-a-si}          \hyphenation{re-fe-ren-si}          \hyphenation{prog-ram}          \hyphenation{vo-lu-me}               % Rubah penamaan  daftar gambar dan daftar isi pada table of contents     \renewcommand*\listfigurename{Daftar Gambar}     \renewcommand*\contentsname{Daftar Isi}     \renewcommand{\listoftables}{Daftar Tabel}     % juga penamaan daftar algorithm     \renewcommand{\listalgorithmname}{Daftar Algoritma}          \hyphenation{eks-ter-nal}          \hyphenation{in-fi-ni-te-si-mal}          \hyphenation{i-ni-sia-li-sa-si}          \hyphenation{di-de-fi-ni-si-kan}          \hyphenation{institut}     %\setcounter{secnumdepth}{2}     %\setsecnumdepth{subsection}          \hyphenation{per-sya-ra-tan}          \hyphenation{program}          \hyphenation{meng-ap-li-ka-si-kan}          \hyphenation{difference}          \hyphenation{si-mu-la-si}          \hyphenation{lag-ra-ngi-an}          % \renewcommand{\rmdefault}{pnc}     %\renewcommand{\sfdefault}{pag}     %\renewcommand{\ttdefault}{pcr}          %\renewcommand{\rmdefault}{pbk}          %\renewcommand{\rmdefault}{pzc}               \hyphenation{di-bang-kit-kan}     \renewcommand{\rmdefault}{bch}          \hyphenation{ber-ka-i-tan}          \hyphenation{programming}     \hyphenation{con-vex}     \hyphenation{hull}          \hyphenation{product}     \usepackage{listing}          \hyphenation{ge-ne-ra-tion}          \hyphenation{pe-nga-tu-ran}          \hyphenation{sa-ling}     \hyphenation{doub-le}          \hyphenation{diffe-ren-si-al}          \hyphenation{ber-a-da}               \hyphenation{pe-nga-ruh}     \hyphenation{se-ba-gai}          \hyphenation{boun-da-ry}          \hyphenation{re-gu-ler}          \hyphenation{i-te-ra-si}          \hyphenation{meng-a-ki-bat-kan}          \hyphenation{ge-ra-kan}          \hyphenation{se-di-kit-pun}          \hyphenation{lag-ra-ngian}               % set roman letter for section and sub-section     \renewcommand{\thesection}{\Roman{chapter}.\arabic{section}}      \renewcommand{\thesubsection}{\Roman{chapter}.\arabic{section}.\arabic{subsection}}     \renewcommand{\thechapter}{\Roman{chapter}}          % Use "Times News Roman" aka  nestxtext letter because  mathpmtx not very likely with Times News Roman      \usepackage{newtxtext}               % hilangkan  subsection dari table of content     \setcounter{tocdepth}{1}          % ganti penamaan algorithm     \makeatletter     \renewcommand*{\ALG@name}{Algoritma}     \makeatother          % ubah penomoran algoritma dengan menambah nomor dari bab      \renewcommand{\thealgorithm}{\Roman{chapter}.\arabic{algorithm}}          \hyphenation{per-ban-di-ngan}          %\usepackage{fancyhdr}     %\pagestyle{fancy}     %\chead{\thepage}     %%\fancyhf{}     %\thispagestyle{fancy}               % menghilangkan header dan membuat nomor halaman pada bawah tengah      \pagestyle{plain}          \hyphenation{di-sa-ji-kan}          \hyphenation{ke-ting-gi-an}          \usepackage{multirow}          \usepackage{multirow,array,booktabs}          %\tablename{Tabel}                    \begin{document}     \tableofcontents     \pagebreak     \listoftables          \chapter{Test}     \begin{table}[H]     \begin{tabular}{|c|*{7}{c|}}     \hline     \multirow{2}*{Iterasi} & \multicolumn{3}{c|}{ Ketinggian rata-rata (\%)}& \multicolumn{3}{c|}{Luas Sebaran (\%)} \\ \cline{2-7}      &  $ \displaystyle \frac{k_1}{k_2} = 0.5$ &  $ \displaystyle \frac{k_1}{k_2}  = 1.5$ &  $ \displaystyle \frac{k_1}{k_2}  = 2.0$ &  $ \displaystyle \frac{k_1}{k_2}   = 2.0$ &  $ \displaystyle \frac{k_1}{k_2} = 2.0$ &  $ \displaystyle \frac{k_1}{k_2} = 2.0$ \\     \hline      90 & 34.71 & 60.19  & 56.6 &  37.41 &  53.86 & 54.74  \\      \hline      190 & 38.04 & 53.54 & 50.09   & 27.31 & 47.47 & 46.83 \\      \hline      330 & 81.23 & 74.6 & 89.13 & 54.03 & 67.49 & 67.89 \\      \hline      \end{tabular}     \caption{Nilai presentasi ketinggian  dan luas cakupan fluida kedua terhadap ketinggian dan luas cakupan keseluruhan fluida}     \label{tabel  stiffness}     \end{table}     \end{document}


title: Line spacing not matching on second page of two-column checklist

text: I'm trying to make a half-sheet (letter-size paper) checklist with two columns using LaTeX. I set the page size to 8.5x5.5 inches, used fancyheader to put the title at the top of pages, defined a checklist environment, and set \twocolumn. Then I put the checklist section itself in _\foreach \n in {1,2}_ to print two half-sheets into the output file. Then I'll use my pdf viewer to print two pages/sheet. This all works great, except for the fact that the line spacing is off on the second page. The first page is perfect, but on the second page (which I'd expect to be the same), the second column has slightly smaller line spacing than the first, which leads to it being significantly off by the bottom of the page. Why is this happening? Here's a link to my output, if it'd be easier than compiling the document: http://thetechnicalgeekery.com/downloads/temp/checklist.pdf               \documentclass[12pt]{article}          % size     \usepackage{geometry}     \geometry{papersize={8.5in, 5.5in}}     \geometry{margin=1in}          % checkbox list     \usepackage{latexsym}     \newenvironment{checklist}{       \begin{list}{}{}       \let\olditem\item       \renewcommand\item{\olditem[$\Box$] }       }{       \end{list}     }          % title     \newcommand{\doctitle}{Checklist}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[RO,RE]{\LARGE \doctitle \normalsize}          % other stuff     \usepackage{tikz}     \twocolumn          \begin{document}     \foreach \n in {1,2} { % print 2 copies for 2 to a page          \begin{checklist}     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \item Item 1     \item Item 2     \end{checklist}     } % foreach          \end{document}


title: Adding the word "APPENDIX" to Table of Contents in LaTeX

text: My appendix style looks like this:               \newboolean{@@inappendix}     \newcommand{\@@appendixname}{Appendices}     \renewcommand{\appendix}{\par       \setboolean{@@inappendix}{true}       \setcounter{chapter}{0}%       \setcounter{section}{0}%     %  \coversheet{\uppercase\expandafter{\@@appendixname}}  % REMOVE COVERSHEET       \renewcommand{\@chapapp}{\appendixname}%       \renewcommand{\thechapter}{\Alph{chapter}}%      Then in the main tex file I have:               \appendix     \include{appendix1}      In the appendix1 tex file I have:               \chapter{Flooding Test Graphs}      The actual appendix page title looks fine, but the TOC looks like this: > A FLOODING TEST GRAPHS I would like it to say: > APPENDIX A FLOODING TEST GRAPHS There are similar questions and answers posted, but I still can't seems to get it to work. On the last line of the style file I tried:               \renewcommand{\thechapter}{APPENDIX\Alph{chapter}}      This just writes "APPENDIX" over "A FLOODING TEST GRAPHS"


title: insert url in footer

text: I would like to insert a url in a footer but that doesn't working. I use the following code :               \documentclass[12pt,a4paper]{report}     \usepackage{hyperref}     \usepackage{url}     \usepackage{fancyhdr}     \fancyhf{}     \lfoot{\href{www.xyz.com}}     \rfoot{\thepage}     \renewcommand{\headrulewidth}{1.0pt}     \renewcommand{\footrulewidth}{1.0pt}     \pagestyle{fancy}     \begin{document}     hi     \end{document}       instead of url it shows the blank space


title: parenthesis surrounding an acronym printed in list of acronyms of the glossaries package

text: I encounter the following problem when using the glossaries package. In order to explain this, please consider the following (minimal) example:               \documentclass{article} %or book etc     \usepackage[smallcaps,style={indexgroup}]{glossaries}          \makeglossaries          \newacronym{label1}{abc}{A Test Entry}     \newacronym{label2}{def}{Another Test Entry}     \newacronym{label3}{ghi}{Final Test Entry}          \begin{document}     \glsaddall     \printglossaries     \end{document}      and compile this e.g. via:               pdflatex example.tex     makeglossaries example     pdflatex example.tex      This results in entries in the pdf file like: > abc (abc) A Test Entry. 1   >  def (def) Another Test Entry. 1   >  ghi (ghi) Final Test Entry. 1 The problem I have is that (abc) (def) and (ghi) is printed, a double of the key surrounded by parenthesis. After consulting the manual I found no direct method to supress this printing except the use of a single level style like listdotted but that style is unsuitable for my needs. Does anyone have an idea how to solve this issue?


title: Make todonotes appear as footnote and not as box

text: Is it possible to have _todos_ appear as footnotes instead of as the usual boxes in the margin? It would also be nice to have a possibility of an own footnote counter for the todos, e.g., roman numbers or Latin letters.


title: Problem layout pst-solides3d

text: I'm trying to have 2 cylinder pierce a parallelepiped, but I can't have the 2 cylinders properly drawed... Here is what I got : ![enter image description here](http://i.stack.imgur.com/3Kd6J.png) The two cylinders are within the box, and they pierce the yellow panel. I've got, as you can see, problems with the layout... 1° the front cylinder doesn't intersect the side panel 2° the second cylinder is the same as the first, so it should go through the yellow panel, but it isn't drawed... Besides, I tried to change the view point, but it was worse... `Why is the layout so dependant of the viewpoint ?` And finally, but I don't know if it can be done, the yellow panel have in fact 2 holes to let the cylinder go through it... I haven't find in the doc a way to do it... If you have any ideas... Here's my code :               \psset{unit=0.25}     \begin{pspicture}[showgrid=false](-15,-10)(10,10)     \psset{Decran=90, solidmemory, action=none}%, viewpoint=5 -10 10}     %%% Back     \psSolid[        object=parallelepiped,%        a=3.5, b=0.12, c=1.22,         name=derriere]%        (0, -2.0 b 2 div sub, c 2 div b sub)     %%% Base     \psSolid[         object=parallelepiped,%         a=3.5, b=4.0, c=0.12,         fillcolor=black!20,          name=fond]%         (0,0,0 c 2 div sub)     %% Sides     \psSolid[        object=parallelepiped,%        a=0.12, b=4.0, c=1.1,         name=coteg]%        (-1.75 a 2 div add, 0, c 2 div)     \psSolid[        object=parallelepiped,%        a=0.12, b=4.0, c=1.1,        name=coted]%        (1.75 a 2 div sub, 0, c 2 div)     %%% Front         \psSolid[        object=parallelepiped,%        a=3.5, b=0.12, c=1.22,         fillcolor=yellow!50,         %action=none,        name=devant]%        (0, 2.0 b 2 div add, c 2 div b sub)       %%% Cylinders         \psSolid[             object=cylindrecreux,             h=2,r=0.45,             fillcolor=green!50,             mode=4,             incolor=black!50,             RotX=-90,             name=ant1]             (a 4 div 0.1 sub, 0.2, 0.5)              \psSolid[             object=cylindrecreux,             h=2,r=0.45,             fillcolor=green!50,             mode=4,             incolor=black!50,             RotX=-90,             name=ant2]             (-0.875, 0.2, 0.5)        \psSolid[object=fusion,              action=draw**,         base=devant ant1 ant2 derriere fond coteg coted,         ](0,0,0)     \composeSolid          \end{pspicture}


title: Torn page effect

text: [See Torn paper: matching up the torn edges for more on this topic, as well as better illustrations of the final product.] I have a document with a lot of short excerpts from another book scattered through it. Putting frames around them looks a little too 'clean'. How can I get a 'torn page' type effect, to make it look as if the excerpt has been physically torn out of a book? (I've occasionally seen this done in printed books, although I can't find an example right now.) I'm not wedded to a very specific look here -- Googling 'torn page' gives plenty of examples. But just to give this some frame of reference, here are some of the nicer ones: ![enter image description here](http://i.stack.imgur.com/nMXPA.jpg) http://www.vectorstock.com/i/composite/84,79/white-paper-rip-edge- vector-198479.jpg ![enter image description here](http://i.stack.imgur.com/H7kmx.jpg) http://lh6.ggpht.com/-eO-uRyGeA_0/TUkzCMuwuJI/AAAAAAAAB6E/2och4rP0l88/386--x-- 277--torn-paper.jpg (The strong colouration in this second example is a probably a little too distracting for actual use, although it might be interesting as an option. It's more the edge effect I'm interested in.) ![enter image description here](http://i.stack.imgur.com/H024V.png) Edit (again): I tried typesetting my text according to the updated versions of the answers below. Here are the results: ![enter image description here](http://i.stack.imgur.com/0ILv6.png) Or with interpolated shading: http://people.ds.cam.ac.uk/mg262/combined2.pdf


title: LaTeX vs MS word

text: During a conversation with one of my friends who is a die hard user of MS word, I had to face this question- > Why LaTeX and not MS word?. Though I gave usual reasons like quality of typing and ease of typing mathematics etc.. my friend did not seem to get convinced. Hence I thought I would get some help from here. My queries are: >   1. Kindly point out some (main) differences between LaTeX and MS word > i.e., the advantages of LaTeX over MS word (even providing the links to some > good articles would help). > >   2. What are the main disadvantages of LaTeX over MS word. > > Kindly excuse me if this question does not sound like a technical one.


title: Typing Block matrix between texts than in separated picture?

text: How can I type a block matrix for instances a square that divided on each side between lines in LaTeX? Namely between `$...$`?


title: Results that need LaTex

text: What are the concrete effects that can only be reached with LaTex systems? I am not asking if some LaTex systems are more userfriendly, or if you can work faster with wysiwy* _m_ * systems, once you learned them. It's about a comparison between results using LaTex (with Kile, for example) and using other professional tools, like Scribus or QuarkXPress.


title: cleveref doesn't print correct caption for listings

text: I want to set the caption for referenced listings:               \documentclass{scrbook}          \usepackage{listings}     \usepackage{varioref}     \usepackage{hyperref}     \usepackage{cleveref}     \begin{document}     \crefname{lstlisting}{Quelltext}{Quelltext}     \Crefname{lstlisting}{Quelltext}{Quelltext}          Ref: \ref{test}.     Cref: \vref{test}.     \clearpage     \begin{lstlisting}[caption={Test},label={test}]     test     \end{lstlisting}          \end{document}      According to another post, I'd expect `Quelltext 1` but it prints `listing 1`. What is wrong?


title: List of figures problem

text: I need to make a list of figures where there is reference to some pictures I've included in my document. I've been using               \addcontentsline{lof}{subsection}{\arabic{slike}.\hspace{5mm}\hyperref[sl:1]{Picture 1.}}      but it's just not working. I must say that my pictures are not included inside a `figure` environment, I've included them inside a minipage. What should I do ?


title: Adding both number and authors at citation's place?

text: When reading papers I find useful to have citations numbered instead of a key or the author name, since then it's easier to look them up in the bibliography at the end of the document. On the other hand knowing the author's name along with the number at the citations' place is helpful too, since it may hint that a given author is involved in a series of papers dealing with a specific aspect of the problem you're describing, making her name easier to remember to the reader. How do I achieve both in LaTeX? In practice I'm trying to get > as seen in [1 - J. Doe et al] .... at citation's place, and > [1] John Doe et al, .... in the bibliography and would you consider it a good compromise?


title: Specifying eulervm as mathfont in fontspec

text: Is it possible at all to set the Euler Virtual Math fonts (or other post script math fonts) in fontspec using `\setmathrm`. I want to this, rather than just loading the package, because I would like to use the `ScaleLowerCase` Option of fontspec. I tried loading eulervm in fontspec with various settings, but without any success.


title: Why is the gap between the translation and the last line of the gloss so wide in my interlinear gloss?

text: I notice if I take away some letters, the translation line goes to where it should be, but this big block of white space is pretty untenable. Ideas? ![enter image description here](http://i.stack.imgur.com/9PS8v.png)               \documentclass[11pt,a4paper]{book}      \setcounter{secnumdepth}{4}     \usepackage{gb4e}     \usepackage{tipa}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \begin{document}     \begin{exe}     \ex     \glll Jichax    Qamaqix lij parki,  aynacha,    amsta,  parki, q'awanaks,   khuyt'asis  sarawjchix. \\     \{jicha-x(a)    Qamaqi-x(a) lij(u)  parki   aynacha amsta   parki q'awa-nak(a)-_{c}$\oslash$-s(a)   khuy(u)-t'a-s(i)-s(a)   sara-wj(a)-ch(i)-i-x(a)\}    \\     now-\textsc{top}    Fox-\textsc{top}    all acclivity   declivity   ascent  acclivity ravine-\textsc{pl-acc-ad} whistle-\textsc{m}-\textsc{refl}-\textsc{subr} go-\textsc{bfr-cnj-3sim-top}\\     \glt `And so, Fox must've gone whistling on all the ascents, slopes, ascents, mountainsides, and even in the ravines.'     \end{exe}     \end{document}


title: Add text before "part" number in table of contents

text: I would like to add "Partie" before the part's number it only appears in the text and not in the table of contents. It works for sections, subsections etc. but not part with renew command. This is the MWE:               \documentclass[12pt,a4paper]{report}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage[francais]{babel}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}     \author{...}     \usepackage{setspace}     \setcounter{secnumdepth}{5}     \usepackage{tocloft}     \makeatletter     \@addtoreset{section}{part}     \makeatother     \renewcommand{\thepart}{\Roman{part} :}     \renewcommand{\cftpartpresnum}{Partie~}     \usepackage{titlesec}     \titleformat{\part}{\huge\bfseries}{}{0pt}{Partie \thepart\quad}     \begin{document}     \tableofcontents     \part{Test}     test test     \part{Test}     test test      Thank you in advance for your help.


title: stmaryrd.sty problems

text: I used to have `stmaryrd.sty` installed in my TeX distribution, but I recently had to reinstall my distribution. I am now unable to sucessfully use `stmaryrd` package. I downloaded a new copy, and I placed it in the same folder as my `.tex` file, but it doesn't find anything when I try to compile. Is there any suggested course of action?


title: Features that could not be replicated on paper (e.g. animation, tooltips)

text: While browsing this site, I was surprised to find that TeX allows one to produce various kinds of output that could not be represented on paper. For example, one has animation ( How can we draw Christmas animations with TikZ?) and icons in PDFs that generate pop-ups when clicked on (the `pdfcomment` package). What other features of this kind are there? (The specific thing that led me to ask this q. was a desire to be able to expand/compress sections of output text, in order to be able to view a document in different 'levels of detail'. I suspect that this is not possible because it would interfere with page breaking algorithms -- but then, I wouldn't have thought animations were possible in TeX either!) Edit: knowing about PDF viewers' support levels for such features would also be welcome. I should also say that I'm using enough of TeX's typesetting features that e.g. webpages come nowhere near being a viable alternative.


title: Why can't TeXShop find pdflatex?

text: I have a MacOSX 10.7. I wanted to install MacTeX (2012) on my Mac. But after installing TeXShop could not compile a simple Text. I used a former version of MacTeX on my Tiger Systems for which it was working well. Now with the OSX10.7 I have the problem. I get the following error message:               /usr/texbin/pdflatex was not found. Perhaps TeXLive was not installed correct or get      lost. In that case visit TeXShop website and follow the instructions to reinstall      TeXLive. It also could be that the direction in TeXShop preferences is wrong. This      could be when using the fink-distribution von teTeX.      I am looking forward for help. [Edited Dec12 2013]: I am getting the same error on a new install of TexShop with BasicTex 2012. Deleting the preference file did not work!?!?


title: Beamer - setbeamertemplate to get one single shaded frame not working

text: I have this simple `beamer` code:               \documentclass[compress,xcolor=pst,dvips]{beamer}     \usetheme[hideothersubsections]{PaloAlto}          \usecolortheme[RGB={12,97,23}]{structure}     \usepackage[english]{babel}          \begin{document}          {     \setbeamertemplate{background canvas}[vertical shading][top=orange, bottom=white]     \begin{frame}   prima  \end{frame}     }          \begin{frame}  seconda  \end{frame}          \end{document}      What I want is the gradient color on the first frame, and the second with a normal white background. It does not work and I don't understand. The code is compiled but nothing appears: two white slides. The same kind of code, but with `\setbeamercolor` (and choosing a color for the first slide) works.


title: Underfull \hbox (badness 10000) message

text: I made a mini page like below. It compiled without any error, however, I am getting following message in log:               Underfull \hbox (badness 10000) in paragraph at lines 104--109      I am trying to fix above message.               \begin{minipage}[b]{0.4\linewidth}         \dotfill\\         Prof. XYZ\\         Department of XYZ\\         University of whatever, \\         City, Country\\              Date: ............\\     \end{minipage}


title: Proper way to draw a tikz flowchart with arrows pointing back and forth between two nodes

text: I apologize if this is a duplicate, but I'm having a hard time finding an elegant solution. I have something that "works," but feels wonky. I'm making a presentation in beamer and I want to have boxes with arrows pointing back and forth between objects. Here's a mwe with an idea of what I would like to achieve:               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{calc,arrows,shapes}          \begin{document}     \begin{frame}       \tikzstyle{service} = [draw, fill=blue!20]       \begin{figure}       \begin{tikzpicture}[node distance=2cm, auto,>=latex', thick]           \path[->] node[service] (svc1) {service 1};           \path[->] node[service, right of=svc1,xshift=2cm] (svc2) {service 2}                         (svc1.10) edge node {restarts} (svc2.170);           \path[->] node[service, below of=svc2] (svc3) {service 3}                         (svc2.280) edge node {configures} (svc3.80);           \path[<-] (svc2.240) edge node {} (svc3.120);           \path[<-] (svc1.-10) edge node {} (svc2.190);       \end{tikzpicture}       \end{figure}     \end{frame}     \end{document}      However, I believe that this seems like such a simple problem that a more elegant (automated) solution vs. putting in angles must exist.


title: How to remove indentation for all paragraphs?

text: I am finding this very inefficient, every time I type up something MiKTeX just indents for me and I have to enclose everything in `\noindent{...}`. Is there a quick way of going past this?


title: Chapterbib with lyx

text: I used `chapterbib` package to obtain bibliography by chapter in latex but now i need to use it with LyX 1.6.8 I read the documentation presented in http://wiki.lyx.org/BibTeX/Tips and recomended to use an Perl script named `bibtexall`, and changed the output for LyX and `bibtex` to `bibtexall`. The steps that I used are   1. Download the Perl script   2. install strawberry-perl-5.16.2.1-32bit   3. Run the file.lyx, i obtain the file.pdf with all the configurations, but no obtain the references by chapter My question is how to use this Perl script and what is the path to continue.


title: Indicating matching brackets/parentheses in TeX output

text: I often have cause to typeset things like this in TeX: ![enter image description here](http://i.stack.imgur.com/tBzgj.png) When reading expressions like the one above, it's very difficult to tell which brackets match each other. I'd like to be able to define variants of '(' and ')' that were typeset differently depending on the nesting level, to make it easier to match up the parentheses. I can envisage doing this by introducing commands that increment/decrement some counter (to track the nesting level), and then use the current value of the counter to select the appropriate typesetting mechanism. But I have the impression that using a counter in that way is not very TeXish. What is the best way to do this? It's not central to the question, but the code that generated the excerpt above is:               \documentclass[a4paper]{article}     \usepackage{libertine}     \begin{document}     $\textrm{subset}(\textrm{applyfn}(\textrm{inverse}(\mathbf{f}),\textrm{union2}(\mathbf{A},\mathbf{B})),\textrm{applyfn}(\textrm{union2}(\textrm{applyfn}(\textrm{inverse}(\mathbf{f}),\mathbf{A}),\textrm{inverse}(\mathbf{f})),\mathbf{B}))$     \end{document}      A solution that involved replacing `(` and `)` in that with commands would be fine. Incidentally, editors sometimes have a facility called 'rainbow parentheses' which achieves the same effect; cf. ![enter image description here](http://i.stack.imgur.com/Q6bX3.png) I don't actually want to use colour, because it's too garish (and I don't want to be forced to use a colour printer), but the desired effect is essentially the same. Suggestions on subtler alternatives to colour would be very welcome. Edit: greyscale (using Ryan Reich's method) is pretty but ineffective: ![enter image description here](http://i.stack.imgur.com/oUsmh.png) underset numbers (a little distracting): ![enter image description here](http://i.stack.imgur.com/1zMQh.png) underlines (easy matching but distracting): ![enter image description here](http://i.stack.imgur.com/qDJ9R.png)


title: Change the spacing around select paragraphs

text: How would I make only **specified** paragraphs have a little extra space above and/or below them compared to the default setting (which seems to be no--or very little--extra space between paragraphs)? An entire newline is too much space (i.e., `\\*` is too much space since it adds an entire blank line).


title: Bibliography with Metadata:

text: I am constructing a bibliography of as much of the prior research in a field I am working in. I would like to use `BibTeX` to print the citation in the `pdf`, and then I would like to add the details of the paper after the citation. Only then would I like to print the next citation. For example: > [1] Jahan M. Dawlaty and Yunquing Chen. Measurement of the optical > absorption of graphene in the terahertz. Applied Physics Letters, 2008. > > Research Group: Cornell > > Pump Wavelength: 500 nm. > > Probe Wavelenth: 7 microns. > > Relaxation Time: 50 fs. > > [2] Paul George and Dmitry Vekslar, Measurement of Ultrafast Carrier > Dynamics in Graphene. Applied Physics Letters, 2009. . . . and so on. Does anyone know how this could be done?


title: How to render Android listings with syntax highlighting?

text: I need to include the source code of a bigger Android project in the documentation written with LaTeX. Do you recommend any particular package that is capable of **highlighting Java code** and which also addresses the **specific class types added by the Android framework**?   My Android project has been developed with Eclipse. Optional:   * It would be also convenient if there is any package that reads the project structure with package names and folders and generates some kind of table of contents from it.   * What is your opinion on the minted package that uses pygments as a syntax highlighter?


How do I use TikZ graphdrawing package with KTikZ+LuaLaTeX? Putting the following code:               \usetikzlibrary{graphs}            \tikz [rounded corners]     \graph [layered layout, sibling distance=8mm, level distance=8mm]     {      a -> {     b,      c -> { d, e }     } ->     f ->     a     };      gives this error: > [LaTeX] Line 5: Package pgfkeys Error: I do not know the key > '/tikz/graphs/layered layout' and I am going to ignore it. Perhaps you > misspelled it.


title: Image taking up full page

text: I'm using this code to place an image in my page:               \begin{figure}[htp]     \begin{center}       \includegraphics{img/helper-m.png}       \caption[labelInTOC]{Helper klasse}       \label{img:helper-m}     \end{center}     \end{figure}      I don't know why but this is taking up the entire page. The image isn't _that_ big, it's 280*339px in size. I'm using the same code on some other places and it's working fine, only this particular image is giving a problem. Any ideas what's wrong? Directly under the image there's a new section btw.


title: How to automatically include back-references from references to citations

text: In this publication at the references for each citation there is a link to the document where the reference came from. I found it very useful. How this can be done in an automatic way?


title: Consistent font size when using standalone TikZ pictures in a beamer presentation

text: I want to include a TikZ picture in a beamer presentation using the `standalone` package and I want a consistant size of the text in the picture and the rest of the frame.               \documentclass{beamer}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \beamertemplatenavigationsymbolsempty     \usepackage{standalone}          \usepackage{pgfplots}        \pgfplotsset{compat=newest}        \usetikzlibrary{arrows}        \usetikzlibrary{decorations}          \begin{document}        \begin{frame}[plain]{A frame}           \includestandalone[mode=tex,height=0.4\textwidth,keepaspectratio]{pic}           At some time $t$ there is a $\pi$ pulse along $z$\dots                {\footnotesize This is some small text.}        \end{frame}     \end{document}      This is `pic.tex`:               \documentclass[beamer]{standalone}          \usepackage{pgfplots}        \pgfplotsset{compat=newest}        \usetikzlibrary{arrows}        \usetikzlibrary{decorations}          \begin{document}     \begin{tikzpicture}[           scale=0.5,           wave/.style={decorate, decoration={snake,amplitude=0.6mm,segment length=2mm,post length=1.3mm}, ->, thick,->,>=stealth},       coordaxis/.style={->}           ]          \draw[coordaxis] (0,0) -- +(1.5,0) node[midway,below] {\footnotesize $t$};     \draw[coordaxis] (0,0) -- +(0,1.5) node[midway,left] {\footnotesize $z$};          \draw[wave] (2,2) -- +(0,2) node[midway, right] {$\pi$};          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/LQ5k0.png) As you can see the font sizes are not consistent, i.e. normal and footnote sized symbols have different sizes within the picture and the rest of the text in the frame. How can I make the font sizes consistent? **Edit:** Also, upon compiling TeXLive throws a warning that I don't know how to interpret:               /usr/share/texmf-dist/tex/latex/standalone/standalone.sty:259: File stack underflow! on input line 259.     ./presentation.tex:8: File stack underflow! on line 8.


title: PGF keys error with key filter for keys containing \par

text: I am trying to use `pgfkeys` to store some text for use later. The end goal is to use a key filter to process options first and then apply them to text before it is stored. In the MWE below, if it try to store text containing `\par`, I get an error when using `pgfkeysfiltered` but not when using `pgfkeys`, which you can see by uncommenting the commented line. I know I am not really using a key filter in the example below, but this is fairly minimal.               \documentclass{article}          \usepackage{pgfkeys}          \newcommand{\storecontent}{}     \newcommand{\usecontent}{\storecontent}          \pgfkeys{%         /test/temp family/.is family,         /test/store/.code={\renewcommand{\storecontent}{#1}},         /test/store/.belongs to family=/test/temp family,         /pgf/key filters/active families/.install key filter     }          \begin{document}          \pgfkeys{/test/store={first \par test}}          \usecontent          \pgfkeys{/test/temp family/.activate family}     %\pgfkeysfiltered{/test/store={second \par test}}          \usecontent          \end{document}      Is there any way I can resolve this? Or is this intended?


title: Create an indent in an algorithm (without using the algorithm environment)

text: So I'm trying to create an indent in an algorithm, but I'm not familiar with the \begin{algorithm} environment, so I would just like to do it in a math environment. I'm trying to create an indent, but the code below doesn't seem to work. Please help?                \documentclass{article}        \begin{document}        $S=\emptyset;\ i=k=1;\ N[j]=Z[j]=S^*[j]=COMP[j]=0;\ j=1,2,...,11\\         j=1.\\        \hspace{4ex} VISIT(1)....$        \end{document}


title: interrupting edge in automata

text: I have the following automata in tikz.               \documentclass{article}     \usepackage{pgf}     \usepackage{tikz}     \usetikzlibrary{automata, arrows}          \begin{document}          \begin{figure}[htb]       \centering       \begin{tikzpicture}[->,>=stealth', node distance=3.6cm]         \node[state] (1) {1};         \node[state] (0) [above right of=1] {2};              \path (0) edge[bend left] node {01} (1);                 \end{tikzpicture}     \end{figure}          \end{document}      I would like to ``interrupt'' the edge where the label is present. I know it is possible to put the edge label beside the edge but this is not exactly what I need.


title: Asymptote draw a vertical line (x-axis)

text: I'm trying to get a very simple plot by plotting:   * y=3    * y=2x    * x=3 I have no problem to plot y=3 and y=2x However, how do I plot x=3? ![plot](http://i.stack.imgur.com/iq6MG.png) I use this code:               usepackage("amsmath,amssymb"); usepackage("inputenc","utf8"); // code     figure import graph; unitsize(1cm,1cm); xlimits(0,10); ylimits(0,10);     real F(real x) {return 3;}     draw(graph(F,0,10,n=400),linewidth(1pt)+black+solid); real G(real x)     {return 2x;} draw(graph(G,0,10,n=400),linewidth(1pt)+black+solid);     xlimits(0,10,Crop); ylimits(0,10,Crop);          xaxis(axis=YEquals(0),xmin=0,xmax=10,Ticks(scale(.7)*Label(),beginlabel=true,endlabel=true,begin=true,end=true,Step=1,Size=1mm),p=linewidth(1pt)+black,Arrow(2mm),true);     yaxis(axis=XEquals(0),ymin=0,ymax=10,Ticks(scale(.7)*Label(),beginlabel=true,endlabel=true,begin=true,end=true,Step=1,Size=1mm),p=linewidth(1pt)+black,Arrow(2mm),true);     // code supplémentaire          shipout(bbox(0.1cm,0.1cm,white));


How to produce EPS instead of PS using latex.exe followed by dvips?


title: How to embed video and animation in LaTeX and LaTeX beamer step by step

text: I want to know the procedure to embed video and animation in LaTeX step by step. I tried to follow the instructions from this forum and wrote a LaTeX file. This is my code for embedding a video in LaTeX `beamer`...an icon is visible in the third slide but when I am clicking that video is not playing...I have tried with `.avi` file also. I do not know what went wrong               \documentclass{beamer}     \usetheme{CambridgeUS}     \usepackage{graphicx}     \usepackage{verbatim}     \usepackage{multirow}     \usepackage{ctable}     \usepackage{geometry}     \geometry{verbose,letterpaper}     \usepackage{movie15}     % \usepackage{media9}     \usepackage{hyperref}     \newcommand{\fullpage}[1]{     \begin{frame}      #1     \end{frame}     }     \author{~}     \institute{Linux Community}     \title{Emdedded Video on Latex}     \begin{document}     \frame{ \titlepage }     \fullpage{See Demo video}     \begin{frame}     abc     \includemovie[poster,autoplay,externalviewer, text={\small(Loading bloch.mp4)}]{6cm}{6cm}{bloch.mp4}     % \includemedia     % [     %   activate=pageopen,     %   width=200pt,height=150pt,     %   addresource=bloch.mp4,     % %   text={\small(Loading bloch.mp4)}     %   flashvars={%     %      source=bloch.mp4% same path as in addresource!     %    &autoPlay=true%    % optional configuration     %    &loop=true%        % variables     %   }      %   ]{}{VPlayer.swf}            def          \end{frame}     \end{document}      I would be really grateful if someone helps me out.


title: Tree in a graph's node

text: I am trying to figure out how I can draw a tree in a graph's node with `tikz`. Meaning, the node is not supposed to have a value or name but a tree inside of the circle around it. I tried the following with no success:   * Insertion of `qtree` with `\Tree [.Root[.Node Leaf] ].Root`   * Insertion of a new picture in this node


title: Increase vertical space in table

text: Creating a table using `tabulary` I am confronted with the problem that the lines of my table are too small, resulting in that the formulas touch the borders of the table. The code I used is given below.               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage{tabulary}     \usepackage{booktabs}     \usepackage{tabularx}          \begin{document}          \centering     \begin{tabulary}{18cm}{R|L L L}     \toprule     \hline     Mean squared error & MSE &= &$\frac{1}{n}\sum_{t=1}^{n}e_t^2$   \\     \hline     Root mean squared error & RMSE &= &$\sqrt{\frac{1}{n}\sum_{t=1}^{n}e_t^2}$ \\     \hline     Mean absolute error & MAE &= &$\frac{1}{n}\sum_{t=1}^{n}|e_t|$ \\     \hline     Mean absolute percentage error & MAPE &= &$\frac{100\%}{n}\sum_{t=1}^{n}\left |\frac{e_t}{y_t}\right|$\\     \hline\bottomrule     \end{tabulary}     \end{document}      How can I increase vertical space in my table so that it looks appropriate? ![enter image description here](http://i.stack.imgur.com/1rKJF.png)


title: Add a break between theorem head and theorem body if theorem note (the #3 arg) exists

text: I'm using the `amsthm` package for theorem style setting. I want the style like: > **Theorem 1** A triangle ... > > **Theorem 2 (someone)** > > A square ... that is, when the theorem includes a note, the body should begin with a new line after the theorem head.


title: How to prevent LaTeX from turning "a to an umlaut in German?

text: I want to input a string `"a"` in a LaTeX document using German (`\documentclass[ngerman]{article}`), but I do not want `"a` to be turned into `ä`; what can I do? (I know `\verb` works; are there any other solutions?) Thanks!