title: TikZ arrows do not draw with pdflatex

text: I am using the answer from Arrow between parts of equation in LaTeX.               \documentclass{article}     \usepackage{tikz}     \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}          \begin{document}     \[       P(x)=3x^6+4x^5\tikzmark{a}+3x^3\tikzmark{b}-x-3       \begin{tikzpicture}[overlay,remember picture,out=315,in=225,distance=0.4cm]         \draw[->,red,shorten >=3pt,shorten <=3pt] (a.center) to (b.center);       \end{tikzpicture}     \]     \end{document}      This correctly draws an arrow when I compile it with `latex` then `dvipdf`, but for some reason the arrowhead does not appear when I compile with `pdflatex`. `latex -version` and `pdflatex -version` both output:               pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)     kpathsea version 5.0.0     Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     There is NO warranty.  Redistribution of this software is     covered by the terms of both the pdfTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the pdfTeX source.     Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     Compiled with libpng 1.2.46; using libpng 1.2.46     Compiled with zlib 1.2.3.4; using zlib 1.2.3.4     Compiled with poppler version 0.18.2      I am also wondering what the 3.1415626 is doing there...


title: How to show previous and next titles in infolines outter theme?

text: The infolines theme shows the section and subsection titles in the header, in one single line, preceding the title for the frame (in the second line). I'd like to show also the titles of the previous and next section and subsection (in a transparent way) to give some context, similarly to what the split header theme does (but restricted to only the previous and next elements). I think I have seen this somewhere but only on the PDF not in the code. How can this be achieved?


title: How do I shade an area in pgfplots?

text: How do I create a shaded area in a polygon created by plot intersections? In this case, up to the solid line without circle marks.               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}          \begin{figure}[htb]     \centering     \begin{tikzpicture}     \begin{axis}[     enlarge x limits=false,     axis on top,     enlarge y limits=true,     ymin=0,     symbolic x coords={Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec},     xtick=data,     ]          \addplot[dashed] coordinates     {(Jan,5.5) (Feb,5.5) (Mar,5.5) (Apr,5.5) (May,5.5) (Jun,5.5) (Jul,5.5) (Aug,5.5) (Sep,5.5) (Oct,5.5) (Nov,5.5) (Dec,5.5)};          \addplot [black,mark=circle] coordinates     {(Jan,3.2) (Feb,4) (Mar,4.5) (Apr,4.7) (May,5.5) (Jun,6.7) (Jul,6.5) (Aug,5.5) (Sep,4.7) (Oct,4.5) (Nov,4) (Dec,3.2)};          \addplot [black,mark=*,mark options=solid] coordinates     {(Jan,3) (Feb,3.8) (Mar,4.3) (Apr,4.5) (May,5.3) (Jun,6.5) (Jul,6.3) (Aug,5.3) (Sep,4.5) (Oct,4.3) (Nov,3.8) (Dec,3)};          \end{axis}     \end{tikzpicture}     \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/5USzd.jpg)


title: How do I make \dots more compact? Or are there alternatives?

text: How would I go about changing the `\dots` command to be more compact? I would like the dots to be closer together so that the printed symbol takes less horiontal space. Alternatively, does anybody know of a command that is inherently more compact than `\dots`? This is actually preferable as it would still allow for the use of `\dots` in other contexts.


title: Vertical spacing for paragraph environment

text: When I use `\paragraph{...}`, the vertical spaces in general are too big. I need to manually put `\vspace{-5em}` in front to adjust the spacing. It is not robust and unnatural. One reason may be that I have many big formulas (with many lines). Does anyone know a good way to adjust this vertical spacing automatically?


title: Prevent LaTeX from inserting a new line

text: How do I prevent LaTeX from inserting a new line? Here's the code:               bla bla bla     \begin{verbatim}C:\Program Files\Product Name\Some other extensions\mail box name\end{verbatim}       The output is: > bla bla bla   >   >  `C:\Program Files\Product Name\Some other extensions\mail box name` That's my problem: I'm unable to prevent LaTeX from inserting a new line after "bla". Is my problem somewhat related with the fact that I'm using `verbatim`?


title: Can I control the 'density' of a pattern in TikZ?

text: ...i.e. I want to control the spacing between lines in a hatch pattern. Is that possible at all with the predefined patterns from the `pattern` library, like `north east lines`? Or should I just create my own pattern? I tried the `step` modifier, but it has no effect as in the minimal _non-working_ example below. ;)               \begin{tikzpicture}         \draw [step=0.5cm, pattern=north east lines] (0,0) rectangle (1.4,1.4);     \end{tikzpicture}      **EDIT** : I changed the code a bit, because I would like to control the spacing in _any_ type of pattern and originally in the example was `grid`.


title: Putting Multiline Conditional Equations

text: I am trying to write two equation like,               a=b      when a>1     a=c      when a=0      One obvious choice is putting all in a `tabular` construct, as,               \begin{tabular}{ll}     $a=b$ & \text{when $a\ge 1$}\\     $a=c$ & \text{ $when a=0$}     \end{tabular}      But, the spacing looks rather odd. I tried putting them in `cases` construct, but it is more suitable for conditional functions, as I am getting a brace at left. So, what is the preferred way?


title: Plot function with 2 variables in tikz / pgfplots

text: Using `Tikz` / `pgfplots`, how can you plot a function with two variables, such as:   `|x| + |y| <= 1 / sqrt(2)`? If the function only had one input,`X`, it is easy to plot:               \begin{figure}[!hb]     \centering     \begin{tikzpicture}[scale=1.0]     \begin{axis}         \addplot[domain=-10000:10000, blue, ultra thick] {abs(x)};         \end{axis}     \end{tikzpicture}     \caption{Plot of $\abs(x)$}     \end{figure}      However, the following produces an error               \addplot[domain=-10000:10000, blue, ultra thick] {abs(x) + abs(y) <= 1 / sqrt(2)};


title: Lyx and kerkis font error

text: I am a LyX and Ubuntu user. I am trying to use a Greek font named `kerkis`. I have installed the needed packages in order to enable `xelatex` in LyX and Greek language:               texlive-xetex texlive-lang-greek texlive-latex-base texlive-latex-recommended      I enabled the option "Use non tex fonts (via Xetex/LuaTeX)" and in my LaTeX preamble I insert the code in order to use the `kerkis` font:               \usepackage[T1]{fontenc}      \usepackage{kmath,kerkis}      Although I get an error on LyX. You can see the error on the screeshot: ![enter image description here](http://i.stack.imgur.com/2rCXq.png) The error says:               Package polyglossia Error:      Font \zf@basefont="" not loadable: Metric (TFM) file or installed font not fo      seems to be multiple error.


title: Putting date before URL in misc citation? And spacing between arguments of citation

text: @misc{Bamboo:Density,     title = {Engineering Toolbox},     author = {``Wood Densities''},     month = {November 12,},     year = {2012},     howpublished = {\url{http://www.engineeringtoolbox.com/wood-density-d_40.html}}     }          @misc{Bamboo:Properties,     title = {Luit Nirman},     author = {``Bamboo Structural Material''},     month = {November 2,},     year = {2012},     howpublished = {\url{http://www.assambambooworld.com/bamboo-structural-    material.htm}}     }      then               \documentclass[12pt]{report}          \usepackage{url}          \bibliographystyle{plain}          \begin{document}          \Chapter{Bamboo}     Bamboo \cite{Bamboo:Density}\cite{Bamboo:Properties}          \end{document}      The output is generally the way I want it except the date appears after the URL instead of before it. I'm trying to stick to APA standards here but the apacite package is a no go. I'm only having trouble with these two sites since they're not really scholarly sources. and is there any way to stop it from trying to make each reference justified across the whole page? I'd rather the spaces not be inserted and it just cuts off the url to the next line when it no longer fits


title: Biblatex url in new line

text: How do I force biblatex to print a url in a new line? I'm using biblatex with bibtex8. greetz


title: Oversized parentheses around tabular

text: I'm having the following problem. I'm using a tabular environment to create a phrase structure rule (linguistics stuff, don't care about it) and I need parentheses for those parts in the rule which are optional. This is a demo code of what I'm using:               \documentclass{article}          \newcommand{\symb}[2]{%     \begin{tabular}[t]{c}     \normalsize{#1}\\     \footnotesize{#2}     \end{tabular}}     % Optional rule support     \newcommand{\opt}[1]{\ensuremath{\left(#1\right)}}     % Macros     \newcommand{\ra}{\ensuremath{\rightarrow}}     \newcommand{\ua}{\ensuremath{\uparrow}}     \newcommand{\da}{\ensuremath{\downarrow}}     \newcommand{\blank}{\ensuremath{\quad}}          \begin{document}         \symb{IP}{}\blank         \symb{\ra}{}\blank         \opt{             \begin{tabular}[t]{c}                 \normalsize{TopicP}\\                 \footnotesize{{\sc (\ua topic) = \da}}\\                 \footnotesize{{\sc (\ua topic) = (\ua TopicPath)}}             \end{tabular}         }\blank         \opt{\symb{IP}{\ua = \da}}     \end{document}      I know the code isn't the most elegant thing you'll ever see. It's because I've had to modify a somewhat well-known macro used for LFG phrase structure rules... which sadly doesn't support more than one annotation. Thus, I'm using the tabular in order to have more than one annotation under the phrasal category (NP, IP, whatever). Thanks!


title: Consecutive commas with ae package

text: How do I output two (or more) consecutive commas inside `\texttt{}` ? `,,` displays a black square, `\,\,` displays nothing, `\verb{,,}` display three consecutive commas (what the heck!), `\verb{\,\,}` displays a single comma. EDIT: Apparently, the issue is with the ae package. Here is the minimal example               \documentclass[a4paper, 11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage{ae}     \begin{document}     \texttt{,,}     \end{document}


title: How do I skip a subsection?

text: How do I skip a subsection (in this case, 1.2) like this:               1 Main Title     1.1 Subtitle     1.3 Subtitle     1.4 Subtitle


title: How to cite a chapter in a book (update)?

text: This is a follow-up question to How to cite chapter in book? I like the accepted solution there which basically states that one should use: •Boolos, G., 1971/1998. 'The iterative conception of set'. In R.C. Jeffrey (ed.), Logic, Logic, and Logic, Harvard U. Press, pp. 13-29. First published, The Journal of Philosophy, 68:215-232. I am very happy with this solution as long as ordinary typewriter or handwriting is used. However, when we compile this source then the two opening single quotation marks look wierd. To my naive eyes changing the opening quotation mark to `, like •Boolos, G., 1971/1998. `The iterative conception of set'. In R.C. Jeffrey (ed.), Logic, Logic, and Logic, Harvard U. Press, pp. 13-29. First published, The Journal of Philosophy, 68:215-232. would result in a more pleasant outcome after compillation. Is it typographically wrong to use the latter version?


title: Text misalign when using resizebox

text: I have the following code:               \documentclass[a4paper,landscape,12pt,oneside]{scrbook}     \usepackage[english]{babel} % Quotes won't work without babel     \usepackage[utf8]{inputenc}  % This is very important!     \usepackage[T1]{fontenc}          \usepackage{graphicx}     \usepackage[pdfborder={0 0 0}, breaklinks=true, pdftex=true, raiselinks=true]{hyperref}     \usepackage{tabularx}          \newcolumntype{Y}{>{\raggedright}X}          \begin{document}     \begin{figure}[h!]     \subsubsection{Lorem ipsum dolor}     \begin{tabularx}{\linewidth}{YY}\hline          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.     \begin{enumerate}     \item  \textbf{Lorem ipsum dolor}\\ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.     \item  \textbf{Lorem ipsum dolor}\\ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.     \item  \textbf{Lorem ipsum dolor}\\ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\\ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.     \item  \textbf{Lorem ipsum dolor}\\Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.     \end{enumerate}     &\textbf{\centering \vspace{-10pt} \resizebox{.8\linewidth}{!}{\vspace{-10pt}          \includegraphics[width=1\linewidth]{Lorem.png}} \caption{Lorem ipsum dolor}     }\tabularnewline \hline     \end{tabularx}          \end{figure}     \clearpage     \end{document}      When I set `\resizebox{\linewidth}`, the left column of the table aligns the text perfectly, but if I set `\resizebox{.8\linewidth}` the left side of the table, aligns the text at the point where the right side ends. Can somebody tell me what I am doing wrong in here, or maybe give me some tip, please? What I see: ![enter image description here](http://i.stack.imgur.com/cn9Tb.png) What I want: ![enter image description here](http://i.stack.imgur.com/SnQY1.png)


title: Creating new symbol derived from hash

text: I have rotated the hash `#` by about 45 degrees using the command:               \newcommand{\hash}{\mathbin{\rotatebox[origin=c]{45}{$\#$}}}      I used it:               \[     \B(\R^n) = \B(\R^r) \hash_{\sigma} \B(\R^s) \text{, gdzie }     \]     \[     \B(\R^r) \hash_{\sigma} \B(\R^s) = \sigma(\{ A \times B : A \in     \B(\R^r), B \in \B(\R^s) \})     \]      and it looks like: ![enter image description here](http://i.stack.imgur.com/JElkM.png) but it doesn't look beautiful. I would like to ask how can I make the symbol inside the red polygon in a more elegant way.


title: How to fit a large figure to page

text: > **Possible Duplicate:**   >  Best figure size adjustment when dealing with different image sizes Given: a large figure, whose height:width ratio is unknown.   Todo: Include this fig in LaTeX, such that:   * if the figure is very tall, then fit its height to page    * if the figure is very wide, then fit its width to page How to do it? Or in other words, is there way for LaTeX to get (or compare) the width and length of a figure?


title: `shorten` and bounding box in tikz; possible bug?

text: While working out this answer, I found out that `shorten` options do not count towards computing the bounding box of a `tikzpicture`. Case in point:               \documentclass{standalone}     \usepackage[]{tikz}     \begin{document}         \begin{tikzpicture}             \draw[shorten >=-3cm, shorten <=-3cm] (0,0) -- (1,1);             \draw (0,0) circle (1pt);             \draw (1,1) circle (1pt);         \end{tikzpicture}     \end{document}      ![bounding box problem](http://i.stack.imgur.com/yk7bg.png) The manual _does not_ specify whether this should be the case or not. Question: bug or feature?


title: Adding packages to TeXnicCenter

text: I am having problems with the packages in a document I am trying to compile, specifically `natbib.sty` and `fancyhdr.sty`. I have both of these on my computer, but I don't think that TeXnicCenter is looking in the correct place for the packages. How do I find out where TeXnicCenter is looking for packages? I know I need to ensure that the `.sty` files are in the correct place, but do I need to do anything else to ensure that the program can find the correct packages?


title: How to get listings to print only the header of a Matlab file?

text: How to extract the first line of a simple matlab file _and_ the following lines just after that begin with the character `%` ? The number of lines to extract is unknown. Then I want to use `listingsutf8` to display the code extracted. Example of matlab file :               function myfunction(args)     % Comments     % about the function     % with an unknown number of lines     command1(); % another comment     command2();     % another comment     command3();     end      lines to extract :               function myfunction(args)     % Comments     % about the function     % with an unknown number of lines


title: multirow and multicolumn

text: I want to draw a table which has multi-column in one row, as it is shown by the uploaded image. I have the code of a regular table in this style and I tried to modify it but failed. The uploaded image is a snapshot of word version table. I also want to control the line width between rows and columns, for the line width in LaTex is a little wider. So, it is not that pretty. BTW, is it possible to control the font of text in table? Could you help a little? Appreciate that. ![enter image description here](http://i.stack.imgur.com/D939l.jpg)               \definecolor{c1}{rgb}{0.30980, 0.50588, 0.73725}     \definecolor{c2}{rgb}{0.82353, 0.87843, 0.92941}          \begin{center}     \setlength{\arrayrulewidth}{2pt}     \setlength{\extrarowheight}{1pt}     \color{c1}     \arrayrulecolor{white}            \begin{tabular}{|l|c|c|l|}          \rowcolor{c2}     \multirow{3}{*}{Measure} & \multicolumn{2}{|c|}{Description} & \multirow{3}{*}{NO.} \\     \hline          \rowcolor{c2}     {DFDF} & {fdsafdas} & {asdfasdf} & {asdfasd} \\     \hline          \rowcolor{c2}     {DFDF} & {fdsafdas} & {asdfasdf}  \\     \hline          \end{tabular}     \end{center}


title: How to change the title of "question" environment from English to another language?

text: I want to change the title question in English to other language. How to do that? You can choose any other language in your answer.               \documentclass{article}     \usepackage{exsheets}          \begin{document}     \begin{question}     What is your name?     \end{question}     \end{document}      Bonus question: I still don't understand why the default language (English) uses "Exercise" rather than "Question" for the question title? Intuitively, `question` environment should be titled "Question", `solution` environment should be titled `Solution`. What do you think?


title: Problems with labeling of Chapter 0

text: I'm writing a final year project and I would like to start it with a "Preliminaries" chapter, whose number I'd like to be 0. I do the trivial `\setcounter{chapter}{-1}`, which makes the number of the chapter 0, but it also makes all formulae and all figures in the chapter be labeled as (1), (2), ..., instead of (0.1), (0.2), ... How can I fix this? PS I am not sure which package governs the formulae/figures labeling. I use `amsmath`, if this matters.               \documentclass[oneside, a4paper, 11pt]{report}     \usepackage{amsmath}          \begin{document}          \setcounter{chapter}{-1}     \chapter{Preliminaries}          Text here...          \begin{equation}\label{eq}         f = f(x)...     \end{equation}          I would like the label to be (0.1) instead of \eqref{eq}.          \chapter{Next chapter}          Compare the labels:          \begin{equation}         g = g (x)...     \end{equation}          \end{document}      ![Output](http://i.stack.imgur.com/v3bYQ.jpg)


title: LaTeX p cell width

text: totally new to LaTeX, this question occured today: I have a table made of 17 columns. Every column is 0,6cm wide.               \begin{tabular}{p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0,6cm}}      That works perfectly and fine. But i also have on several rows 2 cells which are combined with \multicolumn like this:               \multicolumn{2}{|p{1.2cm}|}{\cellcolor{grey}Inverse dependency ratio}      Because this multi column combines two differenct cells i figured out 0,6 + 0,6 = 1,2. Right? So i gave this a width of 1,2cm... However this happens: ![enter image description here](http://i.stack.imgur.com/a1JUQ.png) The combined \multicolumn doesnt fit to the 2 columns at the bottom of it. What did i do wrong?


title: Mendeley keeps adding month field to my .bib file

text: I go through and delete all the `month = mmm` fields so that my paper compiles _without_ `Last, First (YYYY, mmm)` in the references. But if Mendeley is open (or when it is opened later) it adds back the `month` field. I don't know where it gets the month, because I don't see a month field in the program's right sidebar (maybe it's called "Detail"). How do I stop this? Where do the months come from? (And OT, but if I find a Mendeley/bibtex expert, how do I prevent Mendeley from writing my .bib in UTF-8? That is also frustrating. :) )


title: Store and reuse distance between items

text: I am creating a table in which I have cells containing `itemize` environments. For a given row I have either zero or two cells containing this environment and working together. However the text for the items of the first cell is usually longer than the text for the items of the second cell. I am looking for a way to implement this table with the bullet points of the items being respectively at the same height. A picture being better than a long description, here it is: ![Problem](http://i.stack.imgur.com/wl3lL.png) I would like the bullet point of Short 1 to be at the same level as the one from the first long item, and the same goes for Short 2 and its related item. Here is the code used to produce this table:               \documentclass{article}          \usepackage{enumitem}     \usepackage{array}          \begin{document}          \begin{table}[H]     \begin{center}     \begin{tabular}{| m{0.3cm} | m{5.5cm} | m{4cm} | m{1.8cm} | m{1cm}|}     \hline      1 &     \begin{itemize}[leftmargin=0.3cm]\itemsep0pt     \item This is a first long long long item, spanning on two lines     \item And here comes a second one lon long item     \end{itemize} & Some text which can be either long or short, there is no general rule &      \begin{itemize}[leftmargin=0.3cm]\itemsep0pt     \item Short 1     \item Short 2     \end{itemize} & Some short text\\ \hline     \end{tabular}     \end{center}     \end{table}          \end{document}      **NOTE 1** I would like a solution as compact in height as possible **NOTE 2** I am using the `m{<value>}` column style because the longest cell for a different rows is not always the same. **NOTE 3** I am aware that the Table is ugly and the vertical lines should be removed to match more to a more readable and reader-friendly solution but this is a mandatory template... Too bad... **EDIT** Trylks proposed to use a combination of `\multirow` in the non-list cell and to split the list cells in more cells. This does fix the problem of the vertical alignment of the items but it also creates misalignments for the other cells. **MWE for the Edit suggestion**               \documentclass{article}          \usepackage{enumitem}     \usepackage{array}     \usepackage{multirow}          \begin{document}          \begin{table}[H]     \begin{center}     \begin{tabular}{| m{0.3cm} | m{5.5cm} | m{4cm} | m{1.8cm} | m{1cm}|}     \hline     \multirow{2}{*}{1} &      \begin{itemize}[leftmargin=0.3cm]     \item This is a first long long long item, spanning on two lines     \end{itemize}     & \multirow{2}{*}{Some text which can be either long or short, there is no general rule} &      \begin{itemize}[leftmargin=0.3cm]\itemsep0pt     \item Short 1     \end{itemize}     & \multirow{2}{*}{Some short text}\\     & \begin{itemize}[leftmargin=0.3cm]     \item And here comes a second one lon long item     \end{itemize}     & &     \begin{itemize}[leftmargin=0.3cm]     \item Short 2     \end{itemize}     & \\ \hline     \end{tabular}     \end{center}     \end{table}          \end{document}      And the corresponding output: ![Output2](http://i.stack.imgur.com/mjolv.png) **EDIT 2** jfbu proposed a solution which seems to work (see his answer) for the above case but it is just a coincidence. If one item has a text longer than two lines, it crashes also. See the MWE and its output:               \documentclass{article}          \usepackage{enumitem}     \usepackage{array}          \begin{document}          \begin{table}[H]     \begin{center}     \begin{tabular}{| m{0.3cm} | m{5.5cm} | m{4cm} | m{1.8cm} | m{1cm}|}     \hline      1 &     \begin{itemize}[leftmargin=0.3cm]\itemsep0pt     \item \strut This is a first long long long item, spanning on two lines. This is a first long long long item, spanning on two lines. This is a first long long long item, spanning on two lines \strut     \item \strut And here comes a second one lon long item \strut     \end{itemize} & Some text which can be either long or short, there is no general rule &      \begin{itemize}[leftmargin=0.3cm]\itemsep0pt     \item \strut Short 1 \hfill\break \strut     \item \strut Short 2 \hfill\break \strut     \end{itemize} & Some short text\\ \hline     \end{tabular}     \end{center}     \end{table}          \end{document}      ![Output Edit 2](http://i.stack.imgur.com/pS5dY.png)


title: Can PSTricks or others draw the 4 common tangent lines of 2 "disjoint" circles without having to do extra calculations?

text: There are two disjoint circles. Their centers and radii are given. Without doing extra calculations, can we draw the 4 tangent lines using PSTricks (preferred) or others? I asked many Illustrator, Free-hand, CAD experts, they cannot do it exactly. :-)


title: How to escape the & (ampersand) character in BibTeX?

text: I would like to put a & character in a BibTeX publisher tag. Thus far I have tried: ` \& {&} {\&} "&" ` with the full value enclosed in curly braces and double quotes. No matter what I do I always get a `Misplaced alignment tab character &.` error. Is there some special way to do this that I'm missing? Thanks.


title: Disabling command+scrolling in TeXstudio (OS X)

text: Is there any way to disable cmd+scroll zooming in TeXStudio for OS X?


title: Hyphenation with Acronyms

text: I have difficulties getting hyphenation right in long acronyms with user- defined hyphenation rules when trying to prevent line breaks between the long and the short form.               \documentclass{article}          \usepackage{showframe}          \hyphenation{mi-cros-co-py}          \begin{document}     \paragraph{Long Text} This is some text abcdefgh Acronym Containing Microscopy~(ACM).     \paragraph{Longer Text} This is some text abcdefgh Acronym Containing Microscopy~(ACM).     \paragraph{Even Longer Text} This is some text abcdefgh Acronym Containing Microscopy~(ACM).          \paragraph{Another try} Let's try manual hyphenation.          \paragraph{Long Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py~(ACM).     \paragraph{Longer Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py~(ACM).     \paragraph{Even Longer Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py~(ACM).          \paragraph{Another try} Let's also skip the non-breaking space.          \paragraph{Long Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py (ACM).     \paragraph{Longer Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py (ACM).     \paragraph{Even Longer Text} This is some text abcdefgh Acronym Containing Mi\-cros\-co\-py (ACM).          \end{document}      ![MWP](http://i.stack.imgur.com/lleo3.png) As can be seen from the MWP, in certain cases the typesetting ends up in overfull hboxes even without the non-breaking space and manual hyphenation. Setting `\hyphenpenalty=0` in the preamble doesn't help either, same result. What am I missing here? Strictly speaking, I am using the `glossaries` package in my actual document with adjusted acronym formatting including the non-breaking space before the short form: `\renewcommand{\acrfullformat}[2]{#1~(#2)}` I replaced these parts with plain text for the MWP as the result is the same. Just in case anybody knows about a solution based on `glossaries` to solve this issue.


title: Defining a new LaTeX environment for numbered two-column proofs

text: I'm trying to write up problem sets for my programming languages class, and I want to create an environment for a certain style of proof. Proofs in this style will have two columns, with numbering on the left (starting at 1), like this:               \begin{tabular}{rc|l}       (1) & Prop A & Justification \\       (2) & Prop B & Justification \\       (3) & Prop C & From (1) and (2)     \end{tabular}      I would like the numbering to happen automatically, without my having to add a column (like eqnarray does, with numbering on the right), and in perfect world, I would like to be able to use references and labels to refer to conclusions, so that if I insert steps or move them around I won't have to renumber everything. Usage would hopefully look something like this:               \begin{twoproof}     Prop A & Justification \label{A} \\     Prop B & Justification \label{B} \\     Prop C & From \ref{A} and \ref{B}     \end{twoproof}      My very simplistic first attempt was this:               \newcounter{proofc}     \newenvironment{twoproof}{         \tabular{@{\stepcounter{proof} \arabic{proofc}}c|l}       }{         \endtabular       }      But not only will this not let me use `\ref` (I think), but whenever I try to use this environment I get this error:               ! Missing \endcsname inserted.       <to be read again>                       \csname\endcsname       l.79 \begin{twoproof}      I tried running `\show\eqnarray` to see if I could use that as a template, but didn't understand the output at all, and I'm not sure where to look for enlightenment. I will appreciate any help or direction that anyone might be able to provide! * * * **Edit2:** : I figured this issue out. I tried to get clever and wrap my `twoproof` environments in `\begin{displaymath}` and `\end{displaymath}`, and I guess this environment doesn't play well with amstex, because when I changed the way I was defining `twoproof` and got rid of the `displaymath`, everything started working again. **Edit** : While Willie Wong's answer (thankfully) solved my problem with with the missing `endcsname`, when I try to run this example:               \begin{twoproof}     \label{step1} Prop A & Justification \\     \label{step2} Prop B & Justification \\     Prop C & Because \ref{step1} and \ref{step2}     \end{twoproof}      I run into this error:               Package amsmath Error: Multiple \label's: label 'step1' will be lost.          See the amsmath package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.56 \label                {step2} Prop B & Justification \\      If anyone has any ideas about what might be causing this, any help will be greatly appreciated. Also, as long as I'm editing the question, does anyone know how to right- justify the numbering in the table? It's not a big deal, but I think it might look a little nicer. I've thought very briefly about setting up a custom `\halign`, but I don't think it's worth the effort. If there's a (comparatively) easy solution, though, I'd love to hear it. Thanks again!


title: Good method for typesetting meeting minutes?

text: Can anyone suggest a good way of formatting minutes from business meetings? **[Update:]** I'm particularly looking for an easy way to have an 'action items' column at the right side, and possibly a left-most agenda column — much like printed minutes' books do.


title: Use sub and superscript as [optional] parameters for macro

text: I am defining a macro, and would like to run other macro's on any sub/superscripts given to it. For example, I would like to define it such that something like:                    \myMacro_{lower}^{upper} -----> \operatorname{something}_\someMacro{lower}^\anotherMacro(upper)      Where both sub/super-scripts would be optional. How would this best be done? * * * Prior works:   * Capture a macro's subscripts/superscripts by the macro provides a neat solution when we are just interested in a superscript.   * How can I capture both superscripts and subscripts after a macro might be the correct solution to use, but it seems like it might be overly complex - is there a simpler solution that avoids adding the xparse package (as the first solution manages)?


title: How to make pagination of inbook lowercase

text: A page range given in `@inbook` results in "Pp." (uppercase) compared to "pp." (lowercase) for `@article` when using `block=npar`. What has to be done to have it in lowercase as well?               \documentclass{article}          \usepackage[block=nbpar]{biblatex}     \usepackage{filecontents}          \begin{filecontents*}{refs.bib}     @article{foo,           author         = "Foo Bar",           title          = "Baz",           journal        = "A. B. C.",           volume         = "1",           issue          = "2",           pages          = "100-200",     }          @inbook{bar,           author         = "Foo Bar",           booktitle      = "Qux",           title          = "Baz",           pages          = "100-200",     }     \end{filecontents*}          \addbibresource{refs.bib}          \begin{document}     \nocite{*}     \printbibliography     \end{document}      ![outcome of MWE](http://i.stack.imgur.com/KQHwC.png)


title: Can I move the hat symbol vertically upwards?

text: I'm using `mathpazo` to format a document and have just become annoyed that a hat appears to be rendering too close to the letter it's decorating. I'd like to move the hat upwards, but am not sure how to go about doing it. My LaTeX is just `\hat{x}_{t+1}`, which renders as: ![rendered \\hat{x}_{t+1}](http://i.stack.imgur.com/1XUrZ.png) Is there any way to change this?


title: A bug in fontspec, lua(la)tex, or the Junicode font?

text: Consider the following MWE:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Junicode}     \setsansfont[Scale=MatchLowercase]{HelveticaNeue}     \setmonofont[Scale=MatchLowercase]{Consolas}     \begin{document}     \noindent     some ordinary text\newline     {\sffamily some sans-serif text}\newline     {\ttfamily some monospaced text}     \end{document}      On a MacBook running MacTeX2012 and MacOSX 10.7.5, this MWE produces the following output when run under LuaLaTeX: ![enter image description here](http://i.stack.imgur.com/aRMM1.png) but the following (and rather more pleasing) output when run under XeLaTeX: ![enter image description here](http://i.stack.imgur.com/V7RRv.png) Obviously, something's not working quite right under LuaLaTeX. My question is: Is this a bug (a) caused by an error in implementing the `Scale=MatchLowercase` option of fontspec/luatex, (b) caused by a poorly- specified parameter in the `Junicode` font file, or (c) are there two separate bugs at work? A work-around is to specify `[Scale=0.83]` for `HelveticaNeue` and `[Scale=0.88]` for `Consolas`. Naturally, though, I'd like to employ a somewhat more automated method to get the scaling of the sans and mono fonts adjusted to the size of the text font.


title: Problem with cross-referencing with numerical lists

text: I have a problem when applying the ref command to refer to an item in a numerical list. **Here is an example for my problem:** My list style make the list appear as : 1. , 2. , 3. I put a dot after the number of the item When I refer to any item in the list, the dot appears with the number of the item. **The question is that how to omit the dot after the number in cross- referencing?**


title: How is the interior of a path determined when reverse clipping?

text: I'm been playing around with [reverseclip] from How can I invert a 'clip' selection within TikZ?. It works quite well. When you apply [reverseclip] it seems to add another part to your path---a clockwise traversal of the current page. However, I am having trouble understanding how the interior of a multi- part path is determined. An example:               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[remember picture,overlay]     % A path that follows the edges of the current page, CW     \tikzstyle{reverseclip}=[insert path={(current page.north east) --       (current page.south east) --       (current page.south west) --       (current page.north west) --       (current page.north east)}     ]     \coordinate (A) at (0,0);     \coordinate (B) at (1,0);     \coordinate (C) at (1,1);     \begin{pgfinterruptboundingbox}        \path [clip] (A) -- (B) -- (C) [reverseclip]; % good, CCW     %  \path [clip] (C) -- (B) -- (A) [reverseclip]; % bad, CW     \end{pgfinterruptboundingbox}     \fill[red!30] (A) circle (3cm);     %\fill[red!30,even odd rule] (A) circle (3cm); % does not make bad good     \end{tikzpicture}     \end{document}      So what happens is that I only get the desired reverse clipping if the orientation of my path is counter-clockwise. When I make the orientation clockwise, everything is undesirably filled. In the documentation, Section 15.4.2 Graphic Parameters: Interior Rules, I learned about the nonzero and even odd rules. I rationalized this behavior by imagining the circle drawn in a CW fashion. Then, the first clip path is CCW and everything should work. With the nonzero rule, it made sense why a CW clip path would not clip anything. But then, I tried specifying the even odd rule, expecting that this would make the result independent of the orientation of the clip path. My expectations were wrong. It seems that the interior rules are not applying in the way I understood they would.   1. When (reverse) clipping, how is the interior region determined?   2. How can I reverse a path saved via \pgfsyssoftpath@getcurrentpath{\mypath}?   3. Besides defining [reverseclipCW] and [reverseclipCCW], is there a way to make the reverseclip concept more robust to the orientation of paths?   4. What is the orientation of basic shapes (circle, rectangle, etc)? Clockwise?


title: Bad character code (-1) when i use monospace

text: I am working with mako, python and latex, and I want to have a monospaced font in my document! I am using this commands:               \usepackage[scaled]{inconsolata}     \usepackage[T1]{fontenc}     \renewcommand*\familydefault{\ttdefault}       But I am getting this error:               Source LaTex File: /tmp/tmpPBrCPK/1394108320.270.tex     Run count: 1     Bad character code (-1).:77:{-17253.39}<!>     Bad character code (-1).:77:{-17253.39}<!>     Bad character code (-1).:77:{-17253.39}<!>     Bad character code (-1).:86:{IIBB BS AS}<!>     Bad character code (-1).:90:{Retencion ing br}<!>     Bad character code (-1).:94:{Percepciones II.BB. BSAS}<!>      I tried with `\endlinechar=98` and `\endlinechar=13`, in the second case I get the same error, in the first I get               LaTeX Error: Missing \begin{document}.:32:<!>     Undefined control sequence.:13:\else<!>     Undefined control sequence.:20:\fi<!>     Undefined control sequence.:24:\endinput<!>     Undefined control sequence.:14:\endinput<!>     Undefined control sequence.:14:\endinput<!>     Undefined control sequence.:14:\endinput<!>     Undefined control sequence.:55:\endinput<!>     Undefined control sequence.:51:\endinput<!>     Undefined control sequence.:39:\NR@showkeysfalse<!>      Any ideas? :\


title: tabular operators in a custom environment code?

text: My question concerns the combination of the **tabular** environment and the `\DeclareDocumentEnvironment` command (from the **xparse** package). How do I set up an environment that contains in its code some of the operators of the **tabular** environment, such as `&` or `\\\` ? Here is my minimal (not) working example of what I thought I could do, but I get an error :               \documentclass{article}     \usepackage{xparse,booktabs}     \DeclareDocumentEnvironment{env}{mm}{\toprule #1 & #2 &}{\\ \bottomrule}          \begin{document}     \begin{tabular}{lll}     \begin{env}{one}{two}     three     \end{env}     \end{tabular}     \end{document}      Any idea of what I could do to have this environment working Inside the **tabular** environment? Thank you in advance, Pierric


title: Can I assume that the \ht+\dp of a strutbox == \baselineskip?

text: In Context, as long as the interline space is set through the proper interface, it is safe to assume that `(tex.box.strutbox.height \+ tex.box.strutbox.depth) == tex.baselineskip.width`. This relation is important when copying the strutbox to add empty lines to some vlist. However, I am working in _Plain_ at the moment, where there is no such interface. Knuth in his examples sets the baseline skip independently of the strutbox, and what is more he uses absolute point values. Also, he defines multiple strutboxes _with different height/depth ratios_ in `gkpmac.tex` and elsewhere. Yet, in `manmac.tex` (and Appendix E, p. 414f.) the bodyfont switches (`\tenpoint`, `\ninepoint` etc.) include appropriate strutboxes whose `\ht` + `\dp` equal the `\baselineskip`. Unfortunately I don’t have the experience that I could tell whether this is a convention amongst Plain users or just, well, Knuth. So my questions: Is it reasonably safe to assume that whoever defines a font switch for Plain TeX will also take care of the strutbox? If I encounter a strutbox whose sum of height and depth does not match the local baselineskip, is it safe to recalculate these dimensions and overwrite the current strutbox? Is there some convention as to what is the correct height/depth ratio? Is it possibly part of the font metadata (OTF)? (Bonus points for good links: I can’t seem to google the topic without having my results cluttered with source files.) For reference some code to recreate the strutbox in case its dimensions don’t match the baselineskip.               local strutbox = texbox.strutbox     local get_strut = function ()       local strutht, strutdp = strutbox.height, strutbox.depth       local struthtdp        = strutht + strutdp       local texbaselineskip  = tex.baselineskip.width       local newstrut         = node.copy_list(tex.box.strutbox)       strutht = (strutht / struthtdp) * texbaselineskip       strutdp = (strutdp / struthtdp) * texbaselineskip       newstrut.height, newstrut.list.height = strutht, strutht       newstrut.depth,  newstrut.list.depth  = strutdp, strutdp       return newstrut     end     local my_strut = get_strut()     print(string.format("strutbox ht %.4f, dp %.4f, htdp %.2f factor %.2f",                         strutbox.height / 2^16,                         strutbox.depth  / 2^16,                         (strutbox.height + strutbox.depth) / 2^16,                         (strutbox.height / strutbox.depth)))     print(string.format("my_strut ht %.4f, dp %.4f, htdp %.2f factor %.2f",                         my_strut.height / 2^16,                         my_strut.depth  / 2^16,                         (my_strut.height + my_strut.depth) / 2^16,                         (my_strut.height / my_strut.depth)))     print(strutbox)     print(strutbox.list.height/2^16)     tex.box.strutbox = my_strut      (Similar topic but afaics the specified ht/dp ratio doesn’t hold for plain http://tex.stackexchange.com/a/21834/14066)


title: Displaying fractions nicely

text: I'd like the following to look nicer:               $\frac{1 - \left(\frac{r-3}{r-1}  \right)^{k-(p+q)+1}}{1 - \left(\frac{r-3}{r-1}  \right)}$      As of now, the horizontal line is way too long.


title: Do semantics matter in LaTeX? If not, why not?

text: When I ask questions about achieving some particular layout LaTeX, I get answers that suggest I should use constructs that don't make sense for their semantics. For example, I wanted to intent a single paragraph, and I was told to make it a list with no bullets. It works, but that isn't the semantic meaning of a list, so why is it acceptable to abuse it like that? We stopped doing it in HTML over a decade ago. Why are we still doing the equivalent of table layout in supposedly the best typesetting system there is? Am I not getting it, or isn't this a little inelegant? Everyone says LaTeX is elegant and that you don't need to worry about layout, but then I find myself contorting tables, lists and other semantic markup to put stuff where I want it. Does the emperor have no clothes, or am I not getting it?


title: Problem with enumerate and margins

text: I have a problem with the automatic enumeration and thus I need some help. Specifically, adding the code               \begin{enumerate}[label=\bfseries Πρόβλημα \arabic*.]               \item Αν $a,b,c$ είναι θετικοί πραγματικοί αριθμοί τότε να δείξετε ότι     $$\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b}\geq\frac{3}{2}.$$     \begin{flushright}     \textit{(Ανισότητα Nesbitt)}     \end{flushright}     \begin{center}     \textbf{\textit{Λύση.}}     \end{center}     Η προς απόδειξη ανισότητα είναι ισοδύναμη με την     $$\frac{2a}{b+c}+\frac{2b}{c+a}+\frac{2c}{a+b}\geq 3.$$     Προσθέτουμε το $3$ και στα 2 μέλη και τότε αρκεί να δείξουμε ότι     $$\frac{2a+b+c}{b+c}+\frac{2b+c+a}{c+a}+\frac{2c+a+b}{a+b}\geq 6,$$     ή ισοδύναμα     $$\frac{a+b}{b+c}+\frac{a+c}{b+c}+\frac{b+c}{c+a}+\frac{a+b}{c+a}+\frac{c+a}{a+b}+\frac{b+c}{a+b}\geq 6.$$     Αυτή η ανισότητα όμως ισχύει ήδη σύμφωνα με την ανισότητα \textit{AM-GM} αφού έχουμε     $$\sum\left(\frac{a+b}{b+c}+\frac{b+c}{a+b}\right)\geq 2+2+2=6.$$     Η ισότητα ισχύει όταν $a=b=c.$\hfill $\square$      looks like this ![latex sample](http://i.stack.imgur.com/TFYpP.png) My question is how can I have automatic enumeration but the solution I add under the problem is under the same margin with the "Πρόβλημα 1."? Thanks, George.


title: How can I cite one ref in another reference?

text: I would like to know how can I make a citation like this: > (autor1, 2000 in autor2, 2010) Is it possible in LaTeX without changing the format of all other citations?


title: App to Add photos to LaTex document with iPad camera?

text: > **Possible Duplicate:**   >  Is there a (La)TeX distribution running on iPad? Very simple app that I am trying to find: suppose I have written a long text in my Laptop in LaTex but missing images. I am lazy student and I want to just photograph the photos to the document and insert them fast to it. Does there exist some LaTex image-insertion app? **Perhaps related** >   1. iPad question to read textbooks and write in Math SE here > >   2. Is there a (La)TeX distribution running on iPad? and Now that I can run > TeX on my iPad, what shall I TeX? > >   3. Image-manipulation question here > >


title: Strange errors while writing a package

text: This short document:               \documentclass[a4paper]{report}     \usepackage{gnu}          \begin{document}     \end{document}      with the following package:               %!TEX encoding = UTF-8 Unicode     \def\fileversion{2.7}     \def\filedate{%     Tue 2014-07-22     }     \NeedsTeXFormat{LaTeX2e}[1996/06/01]     \typeout{Package 'mworx' (\filedate).}     \ProvidesPackage{gnu}               \RequirePackage{kvoptions}          \SetupKeyvalOptions{family=mworx,prefix=mw@,setkeys=\setkeys}          \newif\if@read\@readfalse     \newif\if@grave\@gravefalse          \DeclareBoolOption[true]{greek}     \DeclareVoidOption{ifgrave}{\@gravetrue}     \DeclareVoidOption{read}{\@readtrue}     \DeclareBoolOption[true]{save}     \DeclareBoolOption[false]{inpenc}     \DeclareBoolOption[false]{pack}     \DeclareBoolOption[true]{rootsyst}     \DeclareBoolOption[true]{loop}     \DeclareBoolOption[true]{fnsect}     \DeclareBoolOption[false]{fonts}     \DeclareBoolOption[false]{ptmx}     \DeclareBoolOption[true]{bb}     \DeclareBoolOption[true]{misc}     \DeclareBoolOption[true]{lengths}     \DeclareBoolOption[true]{dps}     \DeclareBoolOption[true]{xtras}     \DeclareBoolOption[true]{thm}     \DeclareBoolOption[true]{block}     \DeclareBoolOption[true]{mathdel}     \DeclareBoolOption[true]{mwmath}     \DeclareBoolOption[true]{oper}     \DeclareBoolOption[true]{mathsymb}     \ProcessKeyvalOptions*\relax               %Option "fonts"     \ifmw@fonts     \RequirePackage{ifxetex,ifluatex}     \newif\ifengineright\enginerightfalse%Define new if to check if luatex or xetex are being used. To avoid typing the xetex/luatex commands twice.     \ifengineright %Add those commands         \setmathrm{Times New Roman}         \setmathsf{Times New Roman}         \setmathtt{Times New Roman}         \setboldmathrm[BoldFont={Optima ExtraBlack}]{Optima Bold}         \defaultfontfeatures{Mapping=tex-text}         \setromanfont{Times New Roman}         \setsansfont{Times New Roman}         \setmonofont{Helvetica}         \newfontfamily{\vrb}{Helvetica}         \newfontfamily{\Ak}{Akkadian}%         \newfontfamily{\mapu}{Arial Unicode MS}         \newfontfamily{\Ar}{Geeza Pro}         \newfontfamily{\Chs}{STSong}         \newfontfamily{\Cht}{PMingLiU}         \newfontfamily{\Ja}{MS Mincho}         \newfontfamily{\Ru}{Times New Roman}         \newfontfamily{\Gr}{Times New Roman}         \newfontfamily{\He}{Times New Roman}         \newfontfamily{\Ko}{Batang}         \newfontfamily{\Ind}{Devanagari MT}         \newfontfamily{\Mal}{Malayalam MN}         \newfontfamily{\Sinh}{Free Sans}         \newfontfamily{\Thai}{Free Serif}         \newcommand{\€}{\Gr{ }}     \else         {}     \fi     %More commands that are OK in any engine I know of.     \newcommand{\mbold}{\mathbf}     \newcommand{\tbold}{\textbf}     \newcommand{\ital}{\textit}     \newcommand{\CAPS}{\textsc}     \newcommand{\slant}{\textsl}     \newcommand{\bemph}[1]{\tbold{\emph{#1}}}     \newcommand{\mrm}{\mathrm}     \fi                              %Option "misc"     \ifmw@misc     %A few unclassifiable shortcuts.     \RequirePackage{color,graphicx,xparse}     \newcommand{\tick}{\checkmark}     \newcommand{\crux}{\dagger}     \newcommand{\dcrux}{\ddagger}     \newcommand{\hs}{\heartsuit}     \newcommand{\ds}{\diamondsuit}     \newcommand{\cs}{\clubsuit}     \renewcommand{\ss}{\spadesuit}     \newcommand{\tcrux}{$\dagger$}     \newcommand{\tdcrux}{$\ddagger$}     \newcommand{\ths}{$\heartsuit$}     \newcommand{\tds}{$\diamondsuit$}     \newcommand{\tcs}{$\clubsuit$}     \newcommand{\tss}{$\spadesuit$}     \newcommand{\bs}{\backslash}     \newcommand{\tbs}{$\bs$}     \newcommand{\bk}{\Gr{ }}     \NewDocumentCommand{O{1}O{1}}     {\scalebox{#1}[#2]{\color{white}a}}     \fi                         \endinput      generates error `Extra \fi` on line 83 (right after `\newcommand{\mrm}{\mathrm}`. If I add:               \ifxetex         \enginerighttrue     \else         \ifluatex             \enginerighttrue         \else             {}         \fi     \fi      before `\ifengineright`, the error turns to `Undefined control sequence. l.56 \ifengineright`. What is happening here?


title: pass "global" options to minted/fancyvrb

text: Is there a way to override default options for the `minted` environment, rather than having to specify them for each and every snippet of code ? In other words, is there an equivalent to `listings`'s `\lstset` command ? AFAIK the `minted` package is based on `fancyvrb`, but I couldn't find anything in there either (I don't really read tex so I only looked at the documentation) Bonus question: why is there so much blank space (about two blank lines) _after_ a minted listing ?


title: How to turn equation tags off by default?

text: I'm writing a document in which very few of the equations actually need tags. So instead of using starred environments, I would much prefer to exchange the meaning of the starred with the non-starred environments. I don't mind if I need to specify each environment for which I want this done, so that I would have something like the following in my preable:               \makeatletter     %some TEX-fu magic that defines \exchangest@renv goes here     \exchangest@renv{equation}     \exchangest@renv{align}     \exchangest@renv{gather}     \exchangest@renv{alignat} %this might be a hard one as it takes an agument!     \makeatother      and then when using `\begin{equation}` I'd get the non-starred version, while the starred version `\begin{equation*}` would have a tag. * * * PS. Not sure what tags I should use for this....


title: margins in beamer columns

text: I have some trouble with margins in multi-column layout beamer slides. If put the following snippet in a non-rounded theme like "Rochester", you will see that   1. the boxes of the first row have different margins than the boxes of the 2nd row (the 1st row has an "indent", which also affects the position of the central line between the boxes)   2. the rightmost margin differs from the leftmost margin (the left margin is smaller than the right one, which optically goes away when one uses shadows) any ideas?               \begin{frame}[t]     \frametitle{...}     \begin{columns}[T]       \column{.50\textwidth}       \begin{block}{...}          ...       \end{block}       \column{.50\textwidth}         ...     \end{columns}     \vspace{3mm}     \begin{columns}[T]       \column{.50\textwidth}       \begin{block}{...}         ...       \end{block}       \column{.50\textwidth}       \begin{block}{...}         ...       \end{block}       \end{columns}     \end{frame}


title: Create slide with graph in beamer

text: I am using `beamer` to create talks. I need to create a slide with a graph. Are there ways to create graphs in LaTeX or should create a picture somewhere and add a picture to a slide? Edit: Oh, sorry for confusion. I meant this kind of graph: ![enter image description here](http://i.stack.imgur.com/xqbEU.png)


title: How to limit number of sections in minitoc using titletoc

text: Anyone know how to limit number of section titles, for example to 3 or 4, in one line minitoc using titletoc? So, in example bellow, sections starting with "Kolyvagin Classes" should be in the second line. Thanks a lot!               \documentclass{scrreprt}     \usepackage[dvipsnames]{xcolor}     \usepackage{titletoc}          \titlecontents*{csection}[0pt]         {\centering\small\itshape}{}{}         {}[\space\textbullet\space]          \begin{document}          \chapter{A chapter}          \startcontents[chapters]     \printcontents[chapters]{c}{1}{}          \section{Large Degree Isogenies}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     \section{Cassels Pairing}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      \section{The Hidden Root Problem}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      \section{Kolyvagin Classes}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      \section{Pairing-Friendly Groups}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      \end{document}


title: How to print only short name in glossary of acronym package

text: I want to achieve the following. I have an acronym in English like LED and want to display in the text the German name _Blabbla bla Licht emittierende Diode ( **LED** ) bla bla blabla._, and in the glossary the English _**LED** engl. Light-emitting diode_. There is the possibility to define a long and short form acronym with the `acronym` package:               \acro{<acronym>}[<short name>]{<full name>}      Can I use this to print only the short name (engl. Light-emitting diode) in the glossary and using `\acf{<acronym>}` in the text to print the full name?


title: Use of landscape and pdflscape packages with spanish package

text: I tried `lscape` and `pdflscape` packages with `spanish` package. It doesn't work, only with english package. Are there any solution? I want to have the list of tables and the date in spanish, but I can't use those packages. This doesn't work for me:               \documentclass[12pt,a4paper]{article}     \title{Blah }     \usepackage{spanish}     \usepackage{pdflscape}     \begin{document}     \begin{landscape}     \begin{table}[h]     \caption{Matrix table}\verb+-+     \centering     \begin{tabular}{|p{35mm}|p{42mm}|p{42mm}|p{42mm}|p{42mm}|}     \hline \rowcolor{Gray}     \centering \textbf{TITLE} & \centering \textbf{TITLE} & \centering\textbf{TITLE} & \centering\textbf{TITLE} & {\centering\textbf{TITLE}}\\[0.5ex]     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     text & text & text & text & text\\     \hline     \end{tabular}     \end{table}     \end{landscape}     \end{document}      But, if I change the spanish package by english, it works. Thanks.


title: How to use \tableofcontents well?

text: I´m trying and trying and the results are bad. Sometimes, `\tableofcontents` use red text, other point to a page that is incorrect. If a part is in page 3, the TOC point to page 2. Are there any package that runs well?, or.. how can I use `\tableofcontents` with good results? TEX PDF -------------- edited after Crhistopher comments ----- In this image you can see what I obtain and what I would like to obtain ![enter image description here](http://i.stack.imgur.com/YHv2M.jpg) Inm this code I view in TOC that 3 last items poit to page 4, when in reality they are in page 5.               \documentclass[12pt,a4paper]{article}     \usepackage[top=2.5cm, left=3.5cm, bottom=2.5cm, right=2.5cm]{geometry}  % Margenes de la normativa TFG          \usepackage{setspace} % para que no afecte el interlineado a las notas de pié de página     \usepackage{blindtext}  % para usar un texto-tipo de ejmplo Lore.... sin teclear a boleo, con \blindtext     \setstretch{1.5}          \usepackage{lipsum,blindtext}     \usepackage{hyperref}     \hypersetup{colorlinks=true, urlcolor=blue}          \usepackage[x11names]{xcolor}  % otra opcion sería \usepackage{xcolor}     %\usepackage{xcolor}     \usepackage{mathpazo}       % Fuente MathPazo     \usepackage{datetime}       % paquete para configurar formato de fecha y hora     \settimeformat{ampmtime}     \renewcommand*{\noon}{\pmname}          % ----------------------  PSTRICKS ---------------     \usepackage{pstricks}     \usepackage{pst-node}               \begin{document}          \tableofcontents               \part{Introducción General}               \part{Esquema de Funcionamiento}     \blindtext          \section{Búsqueda Tabú (Tabu Search)}     \blindtext     \section{Enfriamiento Simulado}     \blindtext     \section{Algoritmos Genéticos}               \part{Ejemplos de Aplicaciones Simples}     \blindtext     \section{Búsqueda Tabú (Tabu Search)}     \blindtext     \section{Enfriamiento Simulado}     \blindtext     \section{Algoritmos Genéticos}          \part{Análisis de su funcionamiento}          \section{Búsqueda Tabú (Tabu Search)}     \section{Enfriamiento Simulado}          \section{Algoritmos Genéticos}               \end{document}


title: TikZ: using the spy library to zoom in

text: In this post How to zoom a portion of TiKZ picture?, Martin Scharrer demonstrates how use the spy library to zoom in on a portion of a `TikZ` picture. > (1) Is it possible to construct separate lines, nodes, etc inside the spied > window that wont appear in the larger picture? > > (2) Can I change the spy to a circle?               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{calc}     \usetikzlibrary{spy}     \usetikzlibrary{intersections}     \begin{document}     \begin{tikzpicture}[spy using outlines]       \coordinate (F) at (2, 0);            \draw[name path = line] (F) -- ++(30:1cm and 2cm) coordinate (A);       \draw (F) -- ++(100:1cm) coordinate (P3);            \draw[name path = arc] let           \p0 = (F),           \p1 = (A),           \p2 = (P3),           \n1 = {atan2(\x1 - \x0, \y1 - \y0)},           \n2 = {atan2(\x2 - \x0, \y2 - \y0)},           \n3 = {1cm},           \n4 = {(\n2 + \n1) / 2}         in (F) +(\n1:\n3) arc[radius = \n3, start angle = \n1, end angle = \n2]         node[font = \scriptsize, fill = white, inner sep = 0cm] at         ([shift = (F)] \n4:\n3) {\(\nu_A\)} coordinate (N);              \path[name intersections = {of = line and arc, by = B}];         \spy [blue, draw, height = .5cm, width = .5cm, magnification = 2,         connect spies] on ($(F)!.5!(B)$) in node at ($(F)!.5!(B) + (0, -1)$);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Kg2re.png) An example of (1) would be, could I construct a normal line to the spied line that only shows up in the window and not the original picture? * * * **Edit 1:** Using Tobias method, I can get the MWE to work but when I use my code, the picture isn't drawing in the node. It is drawing outside of the node and outside of picture. Additionally, some lines that come from the parent picture that should be in the node aren't there. There are no compiling errors and the code is long. Since the MWE doesn't have this problem, what do I do to clarify my question so I can receive help? Here is an image of what is going on though: ![enter image description here](http://i.stack.imgur.com/yBrxr.png) As we can see, on the edge of the picture, lines are being drawn, in the spy window, the red ellipse is missing, and in the parent image, there is an arc with a phi just floating around that should be in the spy. Again there are no compiling errors.


title: Tooltips compatible with Mac OS X preview.app

text: I would like to achieve hover-over tooltips for bibtex entires as mentioned in this previous question, but all solutions (e.g. involving cooltooltips, fancytooltips) do not seem to be compatible with my pdf viewer: Mac OS X Preview.app version 5.5.3. Is there a solution out there for Preview? It seems feasible given that the examples listed on a stackoverflow response seem to work correctly (for general PDFs, not necessarily created via latex): http://examples.itextpdf.com/results/part2/chapter07/movie_posters_2.pdf http://examples.itextpdf.com/results/part2/chapter07/timetable_help.pdf


title: How can I make every maple inputline boldfaced?

text: I am using maplestd2e. http://users.wfu.edu/wickersg/latex/maple/maplestd2e.sty example.mw (maple file) > x:=3+5; example.tex (generated tex file)               \documentclass{article}     \usepackage{maplestd2e}     \def\emptyline{\vspace{12pt}}     \begin{document}     \pagestyle{empty}     \DefineParaStyle{Maple Heading 1}     \DefineParaStyle{Maple Text Output}     \DefineParaStyle{Maple Dash Item}     \DefineParaStyle{Maple Bullet Item}     \DefineParaStyle{Maple Normal}     \DefineParaStyle{Maple Heading 4}     \DefineParaStyle{Maple Heading 3}     \DefineParaStyle{Maple Heading 2}     \DefineParaStyle{Maple Warning}     \DefineParaStyle{Maple Title}     \DefineParaStyle{Maple Error}     \DefineCharStyle{Maple Hyperlink}     \DefineCharStyle{Maple 2D Math}     \DefineCharStyle{Maple Maple Input}     \DefineCharStyle{Maple 2D Output}     \DefineCharStyle{Maple 2D Input}     \begin{maplegroup}     \begin{mapleinput}     \mapleinline{active}{1d}{x:=3+5;     }{}     \end{mapleinput}     \mapleresult     \begin{maplelatex}     \mapleinline{inert}{2d}{x := 8}{\[\displaystyle x\, := \,8\]}     \end{maplelatex}     \end{maplegroup}     \begin{maplegroup}     \begin{mapleinput}     \mapleinline{active}{1d}{}{}     \end{mapleinput}     \end{maplegroup}     \end{document}      pdf output ![pdf output](http://i.stack.imgur.com/zzwD8.png) How could I make every maple inputline boldfaced?


title: Logo only on the first pages

text: Currently I have a logo on the bottom right on all my pages. I only want to have it on the first pages, i.e. table of contents list of figures and so. When the text starts I do not want to have the logo anymore. I added the picture with `addtoshipoutpicture` My code is: I commented out the the chapters.                 \documentclass[a4paper,                    12pt,                                                bibliography=totoc,                      index=totoc,                     abstracton,                      headsepline,                     ]{scrreprt}         \usepackage{latexsym}                      \usepackage[latin1]{inputenc}            \usepackage[ngerman,english]{babel}            \usepackage[T1]{fontenc}         \usepackage{graphicx,eso-pic,lipsum}         \usepackage{tocstyle}         \usetocstyle{allwithdot}          \usepackage[top=2cm,bottom=2.2cm]{geometry}         \usepackage{calligra}                         \setlength{\footskip}{10mm}      \begin{document}                                        \newpage          \clearpage          \AddToShipoutPicture{     \hspace{14cm}      {\includegraphics[scale=0.6]{logosblack.jpg}}}          \newpage          \noindent     \begin{minipage}[c][\textheight][c]{\textwidth}     \vspace{-10cm}{\fontfamily{calligra}\selectfont \begin{huge} \hspace{2cm}To my parents and siblings. \end{huge}}     \end{minipage}               \newpage     \tableofcontents     \newpage     \listoffigures     \newpage     \listoftables     \newpage     \setcounter{page}{1}               %\input{Chapter1}      %\input{Chapter2}     %\newpage     %\input{Chapter3}     %\newpage     %\input{Appendix}     \newpage          % no logos here !!!!!!     Text text .....     \end{document}                                                 How can I achieve this?


title: \thanks command specific to each author

text: What is the correct way to have a `\thanks` command for a specific author ? I don't want to use `\author{auth1 \and auth2}` for obvious reasons (i.e. be able to distinguish the authors). I have tried various options without success. Here is a rather minimal example where the two thanks are not attributed.               \documentclass{amsart}          \begin{document}          \title[short title]{Longtitle}          \author[Auth1]{Surn1 Auth1}          \author[Auth2]{Surn2 Auth2}          \address[Auth1]{adr1}     \email{auth1@adr.org}     \thanks{Network1}               \address[Auth2]{adr2}      \email{auth2@adr.org}     \thanks{Network2}                \maketitle      \end{document}


title: How to leave space on the side of a page for figures

text: I have noticed that a lot of technical books leave room for figures on the left side of the page. The text is on the right, and it is restricted to not take up the entire page width so that there is room for the figures. I like this layout, and would like to use it in my LaTeX documents. Does anyone know how to format a document like this? For my purposes, I think leaving `0.75\textwidth` for text and the other `0.25\textwidth` for pictures would work fine. I tried to achieve something similar using the `wrapfigure` environment, but I think it would look better if it just had a designated space for pictures (if possible). When I use `wrapfigure` it messes up the alignment of the section headings and text.


title: How to use pdf:bann and pdf:eann into a tikz node?

text: _(This question follows upHow to emulate \pdfstartlink and \pdfendlink with xetex?)_ **Note** : I used the last CVS version of TikZ/PGF. With `xelatex`, I would like to create annotations in tikz nodes. The following MWE shows my problem: the location of the _second switch_ (via TikZ) is bad.               \documentclass{article}     \usepackage{ocg-p}     \usepackage{tikz}          \def\mypdfstartlink#1{%       \special{pdf:bann << /Subtype /Link /Border [1 1 1] /A << #1 >> >>}%     }     \def\mypdfendlink{%       \special{pdf:eann}%     }     \long\def\switchocg#1#2{%       \leavevmode%       \mypdfstartlink{ /S/SetOCGState /State %         [/Toggle \csname OCGpdfobj#1\endcsname\space] }%       #2%       \mypdfendlink%     }          \begin{document}     \begin{ocg}{ocg 1}{ocg1}{1}       Some text...     \end{ocg}          \switchocg{ocg1}{text switch}          \tikz\node{\switchocg{ocg1}{tikz switch}};          \end{document}      ![enter image description here](http://i.stack.imgur.com/tvHOh.png) Result of \listfiles:                article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)        ocg-p.sty    2012/12/01 v0.3 Optional Content Group in a PDF document      eso-pic.sty    2010/10/06 v2.0c eso-pic (RN)     atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive        xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)           ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional         tikz.sty    2012/08/29 v2.10-cvs (rcs-revision 1.100)          pgf.sty    2008/01/15 v2.10-cvs (rcs-revision 1.12)       pgfrcs.sty    2010/11/07 v2.10-cvs (rcs-revision 1.25)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10-cvs (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pgfsys.sty    2012/03/30 v2.10-cvs (rcs-revision 1.38)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10-cvs (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10-cvs (rcs-revision 1.1)       pgffor.sty    2012/08/27 v2.10-cvs (rcs-revision 1.22)      pgfkeys.sty          pgfkeys.code.tex      pgfmath.sty          pgfmath.code.tex       pgffor.code.tex         tikz.code.tex


title: How can I make a graph with irregular time/date intervals on the x-axis?

text: I have a data set that has values for a set of dates, but these dates don't have a regular interval (i.e. 1 Feb., 3 Feb., 15 Feb., 5 March) . So my question is: is there a package or other method to plot this easily?


title: Performing String Manipulation on result of \cite{}

text: I would like to perform some string manipulation (using the `xstring` package) on the result of a `\cite{}` (the bib package is given to me, and wouldn't allow what I want to do without a major rewrite). However, I can't find a way to assign the _result_ of the `\cite{}` to a variable. `\edef` doesn't work, nor does `\protected@edef`. Any suggestions?


title: Is there a more correct way to show explicit exponential operators?

text: I typed in this question like this:               $\underbrace{\alpha \hat{\phantom{\hat{}}} \alpha \hat{\phantom{\hat{}}} \dots \hat{\phantom{\hat{}}} \alpha}_\text{n times}$      which `mathjax` prints as ![example output](http://i.stack.imgur.com/1mUUd.png) I feel there should be a more correct way to do this.


title: \mathrm{} or \mbox{}? What is the convention when writing a equation?

text: When writing a equation, sometimes we need write letters non-italic. For example, let `A` be a matrix and its transpose should be `A^{\mathrm{T}}` instead of `A^T`. In addition, if a letter does not represent a variable, it should not be italic either. **My question is** : there are several ways such as `\mathrm{}` and `\mbox{}`. They will give slightly different results. Let's take the transpose of a matrix for example. Which one should we use? `A^{\mbox{T}}` or `A^{\mathrm{T}}`? What is the convention when writing technique papers?


title: Are AUCTeX forward search and inverse search meant to work with C-c C-r and C-c C-b too?

text: Background: `C-c C-r` is like `C-c C-c` except it's for compiling & viewing just a fixed portion (specified by the user) of a TeX buffer. `C-c C-b` is like `C-c C-c` except it's for compiling & viewing just the current TeX file (rather than the `TeX-master` file) in a multi-file document. Is source correlate mode supposed to work with `C-c C-r` and `C-c C-b` as well? It doesn't seem to work with them under my configuration, but I don't know if it's my configuration or if it's lack of support. If no, is there a hack or a workaround?


title: Embedding extended XMP metadata into a PDF file

text: I am preparing a thesis paper for submission into an electronic library database. Our institution cooperates with the British Library that uses their EThOS system to harvest the papers from the local repositories of our and several other universities. They maintain their own recommended metadata extension to the simple DC described in the toolkit. A sample metadata XML file is provided here. I would like to attach the metadata to my thesis. I've managed to _extend_ the PDFX package so that it in addition to the usual PDF/A metadata also includes the additional elements defined in the sample EThOS XML file. I am nevertheless not entirely sure this is the right way... One of the reasons is that the generated metadata file is not valid RDF. The problem is in the XSI schema required by the language tag (see the sample XML). As far as I understand RDF and XSI do not combine well. A possible workaround could be not including the XSI schema and the tags that make use of it. That's what I've been doing so far... Given all of the above, I have two questions.   1. Is this the right way of embedding the metadata into a PDF or should I somehow attach an XML file to it? How?   2. If I am doing it right, is there a way to combine the XSI schema and RDF into a valid XMP metadata?


title: tikzpicture without leaving vertical mode

text: It seems that the `tikzpicture` environment always leaves vertical mode, even when the `overlay` option is given (and thus the picture doesn't actually take any space). This can cause unexpected behaviour. Is there a way to prevent TeX from leaving vertical mode?


title: Change color in finished pdf file

text: Suppose I have a finished PDF file, say a figure generated from some software, where the ink is black. I would include it in a document. Suppose I want to include it in a `beamer` presentation with black background. Is there a way to configure the include so i can specify whatever is black should be displayed white? If not, what command line tools could I use to process the PDF file?


title: LaTeX doesn't recognize \end{array}

text: Following code               ... \begin{align}     \begin{array}     1 & 2 & 3\\     1 & 2 & 3     \end{array}     \end{align}...      results in numerous errors:                - Argument of \array has an extra }   (line 0)      - Missing $ inserted \end{align}      - Missing \endgroup inserted \end{align}       - Extra }, or forgotten $ \end{align}       - \begin{align} on input line 101 ended by \end{array}. \end{align}       - Misplaced alignment tab character & \end{align}   (2x, same line)       - Misplaced \omit \end{align}       - Misplaced \cr \end{align}      - Misplaced alignment tab character & \end{align} (2x)      - Misplaced \cr \end{align}       - Extra }, or forgotten $ \end{align} (2x)      - Missing number, treated as zero \end{align}      - Illegal unit of measure (pt inserted) \end{align}      - Missing number, treated as zero (3x, line 0)      - Missing $ inserted \end{align}       - Display math should end with $$ (line 0)      - Missing $ inserted \end{align}      - Missing \endgroup inserted \end{align}      - Extra }, or forgotten $ \end{align}       - Missing $ inserted \end{align}       - Too many }'s \end{align}       - \begin{document} ended by \end{array}. (line 0)       - Misplaced \noalign \end{align} (2x)      -  Too many }'s \end{align}      - \begin{document} ended by \end{align}. \end{align}       - Display math should end with $$ (line 0)      Of course code without this compiles just fine. All errors are at line 109 (`\end{align}`), except those at line 0. Matrix environment (examples) also compiles with errors, but fewer. These are:                - Paragraph ended before \array was complete I've inserted a        begin-math/end-math symbol since I think           - Missing \right. inserted I've inserted something that you may have        forgotten.           - Missing \endgroup inserted      I'm using TexStudio on Ubuntu. I also tried with Geany but it throws the same errors.


title: extendable tex font

text: Is there a free font for tex and acolytes that can be extended by the user? Let's say I'm using Libertine together with a relevant maths font but a specific sign is missing. I would like to be able to draw it and then use it within my documents, thus avoiding to use extra packages (and subsequent possible font and maths alphabet limits). Thanks.


title: Show an abbreviation \ac{*} abbreviated in the first use

text: I'm using `\ac{m}` for meters, but I don't want it to be shown in the long way at first use. How can it be shown only abbreviated?


title: How to install biblatex-philosophy / biber on a fresh Linux Mint 15

text: After I tried everything to get my latex project use biblatex-philosophy I really dont know what to do any more so my question would be how is the best way to install latex on a fresh Linux Mint system to get everything to work. I want to use biblatex-philosophy but for that dependencies did not resolve when I tried to install it via synaptic (somehow different paths) /vanilla-install (everything broke and fonts were corrupted so had to reinstall system) / aptget (backport ppas were down as they are needed to get right versions for biber and biblatex working together with texlive) Can anyone help me here? Do I have to delete something on the fresh installation before I begin?


title: Package answers: is it possible to append all solutions to one output file?

text: I am trying to use the package answers and found the answer to "Please explain \Newassociation and provide an overview of how the package answers works" very useful. However, when working with answers I ran into another problem. I am writing a book with chapters and at the end of each chapter I use the package answers to create problems and write solutions to a file. However, each chapter will have its own file with solutions and in the end of the book I have to input each of these in the correct order. So if I change the order of the chapters I have to change the order of the input commands. I would prefer to have all solutions in the same file, i.e. not use `\Opensolutionfile`, but instead an `\Appendsolutionfile`-command. Then I could just have one input- command in the solutions chapter. Is this possible?


title: Starred equivalent in newenvironment

text: Let's say I want to use the `align`-environment in a `newenvironment` like this:               \newenvironment{mequation}{\align}{\endalign}      This works fine. However, what if I want to use the starred version of `align*`?               \newenvironment{mequation}{\align*}{\endalign*}      Doesn't seem to work.. Any ideas?


title: Overriding default column alignment for headings - can you explain this behaviour?

text: Thanks to various threads on this site I have almost managed to construct a readable table! In particular I have added `\newcolumntype` to allow me to insert `\newline` into my tables, and I have constructed a table heading format `\head` to allow me to easily use a different format for the heading cells of the table. I am slightly confused by the behaviour of my `head` format. The headings seem to align as desired only when I use the `\newcolumntype` to define my columns (i.e. `L` or `R` rather than `l` or `r`). Example below.               \documentclass[11pt, a4paper, twoside, fleqn]{article}          \usepackage{xspace}          \usepackage{array}     \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcommand{\head}[1]{\centering\textbf{#1}}          \newcommand{\COtwo}{CO$_{2}$\xspace}          \begin{document}          \begin{table}       \centering        \footnotesize       \begin{tabular}{ | R{2cm} | r | r | R{2cm} | }       \hline       \head{\COtwo} & \head{\COtwo} & \head{Ozone} & \head{Water\newline Vapour} \tabularnewline [0.5ex]       \hline       1.2 & 1.55555555 & 2.44444444444444444 & 1.3\\        \hline       \end{tabular}       \caption{Blah}      \end{table}          \end{document}      Ends up looking like this: ![screenshot of my example code](http://i.stack.imgur.com/xKCP7.png) I can't see why this should be - why can't my `\head` command override the default column alignment when using `r`? It's not such a big deal to use `R` instead of `r`, but I am curious as I am relatively new to LaTeX.


title: How to split algorithm2e over two pages

text: I'm using `algorithm2e` package but my algorithm does not fit in only one page. Is there any way to split it over two pages, even if manually? If doing it manually, we can use two `algorithm` environments, but there are some issues:   1. Maintain the line counting - OK, this can be done by calling the package with `noresetcount`   2. Remove the caption from the first/second algorithm (depending if we want the caption in the beginning or end) -- how to do it?   3. Take care of the vertical lines of the indentation, that is, I expect them to "cross" the pages -- how to do it?


title: problem with Greek in beamer [Lyx]

text: I am trying to write my thesis presentation in Lyx with Beamer but i have an issue with Greek language .. when i want to add a definition from drop down menu , the letters dont appear right in the compiled file. for example if i add Definition , in the compiled pdf appear Δεφινιτιον instead of Ορισμος (Definition in Greek). I attach a screenshot in order to understand my issue : ![enter image description here](http://i.stack.imgur.com/se62T.png) Anny ideas ?


title: Access values within \newcommand

text: I am a LaTeX user with moderate experience. However, I am trying to create my own `.cls` file for the first time. I would like to produce a header in a similar fashion to how title is produced in article class. Something along the following lines.               \documentclass{MyResume}          \name{Your Name}     \phone{281038901}     \email{xyz@example.com}          \begin{document}      \maketitlebox     \end{document}      I know the basics of how to use `\newcommand`s to define these. But, I am not able to figure out how to access values of the fields like `\name`, `\phone` inside the definition of `\headerbox`.


title: How do I get an empty box on each page?

text: I'd like to have an empty box on the bottom of my pages in a certain chapter. I've messed around with wrapfigure and kinda sorta gotten something that looks okay, but I'd like to do it properly so I can publish my files as a template eventually. The box should stay in the same position on each page and the text should wrap around it. MWE:               \documentclass[a4paper,book,openany,10pt]{memoir}          \usepackage{wrapfig}     \makepagestyle{mm}     \makeevenhead{mm}{\textsc{Manus}}{}{}     \makeoddhead{mm}{}{}{\textsc\leftmark}     \makeevenfoot{mm}{\thepage}{}{}     \makeoddfoot{mm}{}{}{\thepage}     \makeheadrule{mm}{\textwidth}{1pt}     \nouppercaseheads     \pagestyle{mm}     \begin{document}     \thispagestyle{empty}     \chapter{Bar}     No boxes in this chapter!     \chapter{Foo}     Blah Blah Blah      Box goes here!               \end{document}      The final result should look something like this: ![image](http://i.imgur.com/OMOXrYz.jpg) First post and all that. Let me know if you need more info, and I hope someone can help!


title: How could you make an image a hyperlink to a section in a LaTeX document?

text: I'm fairly new to latex and am currently working on a few articles as practice before I use it for more official documents. In my current document, I am attempting to make a table of icons (png images). Upon clicking on these icons, I want each of them to link to a different section of my document. Using the `hyperref` and `graphicx` packages, I have managed to create links to sections and to add images to the document, but I am unsure of how to combine these, or if it is even possible and any help would be greatly appreciated.               \begin{center}             \begin{tabular}{|c|c|c|c|c|c|}             \hline             \nameref{sec:a} & \nameref{sec:b} & \nameref{sec:c} & \nameref{sec:d} & \nameref{sec:e} & \nameref{sec:f}\\ \hline             \nameref{sec:g} & \nameref{sec:h} & \nameref{sec:i} & \nameref{sec:j} & \nameref{sec:k} & \nameref{sec:l}\\ \hline             \nameref{sec:m} & \nameref{sec:n} & \nameref{sec:o} & \nameref{sec:p} & \nameref{sec:q} & \nameref{sec:r}\\ \hline             \nameref{sec:s} & \nameref{sec:t} & \nameref{sec:u} & \nameref{sec:v} & \nameref{sec:w} & \nameref{sec:x}\          \hline             \end{tabular}     \end{center}      With that section of code I've managed to create text links to each section that display the section name. However, I was wondering if by some combination of `\includegraphics`, `\ref`, `\href`, or other commands I could present the image and have it link to the section instead of the text name of the section being shown as the link.               \href{sec:Aatrox}{\includegraphics{AatroxSquare.png}}      That was one of my thoughts but as it is not a link but rather a reference it did not go as planned. I'm unsure how to continue and would appreciate any advice/hints.


title: How to use \maketitle without make it a title page so the header and footer wouldn't change?

text: If I use `\title`, then it changes the page style. How do I display information like title, author and date with out make it a title page? Or how to show header and footer on title page? The code is bad since I learn this yesterday.               \documentclass[12pt,letterpaper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{titlesec}          %set page header and footer     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{Com S 311: Homework 1}     \chead{Daolin Cheng}     \rhead{\today}     %\cfoot{Page \thepage}               \usepackage[left=4cm,right=4cm,top=4cm,bottom=4cm]{geometry}               \titlelabel{\thetitle}% reduce the space after section title     %\titleformat{\subsection}[runin]     %{\normalfont\large\bfseries}{\thesubsection}{1em}{} %text can follow subsection title                         \begin{document}     %\pagestyle{fancy}     %\fancypagestyle{plain}               \renewcommand{\footrulewidth}{0.4pt}% default is 0pt                              \section*{Problem 1}     \renewcommand{\thesubsection}{\alph{subsection}}          \subsection{) $12|\mathbb{N}\subseteq3|\mathbb{N}$}           Proof:                    \subsection{) $35|\mathbb{N}=5|\mathbb{N}\cap7|\mathbb{N}$} Proof:                    %\newpage     \section*{Problem 2}     For arbitrary sets A, B, prove:     \setcounter{subsection}{0}%reset numbering     \subsection{) $A\cup B=B\Longleftrightarrow A\subseteq B$}     \subsection{) $A\cap B=B\Longleftrightarrow B\subseteq A$}     \subsection{) $A-(A-B)\subseteq B$}     \vspace*{1\baselineskip} %add one blank line     And prove there exists sets A,B such that:     \subsection{) $B\nsubseteq A-(A-B)$}     \section*{Problem 3}     Give an example of a function $f:\mathbb{Z}\rightarrow\mathbb{N}$ that is both one-to-            one and onto.     \section*{Problem 4}     Let $f:\mathbb{Z}\rightarrow\mathbb{Z}$ be a function defined as $f(x)=3x+7$. Prove:     \setcounter{subsection}{0}%reset numbering     \subsection{) $f$ is one-to-one}     \subsection{) $f$ is NOT onto}          \section*{Problem 5}     Let $\sim$ be a relation over the real numbers such that for $a,b\in\mathbb{R}, a\sim b$     if and only if $a-b\in\mathbb{Z}$. Prove that $\sim$ is an equivalence relation.               \section*{Problem 6}     Use the well-ordering principle to prove that proofs by induction are valid. More     precisely, prove that if: $P:\mathbb{N}\rightarrow \{T,F\}$ is a predicate with the     following properties,     \renewcommand{\thesubsection}{\arabic{subsection}}     \setcounter{subsection}{0} %reset numbering     \titleformat{\subsection}[block]{\hspace{2em}}{\thesubsection}{1pt}{.\quad} %add     indent, space after number and text followed     \subsection{$P(0)=T$}     \subsection{$P(n)=T\Rightarrow P(n+1)=T$}     then $\forall n\in\mathbb{N}, P(n)=T$.               \section*{Problem 7}     \renewcommand{\thesubsection}{\alph{subsection}}         \setcounter{subsection}{0} %reset numbering     \titleformat{\subsection}[block]{\hspace{2em}}{\thesubsection}{1pt}{)\quad}     \subsection{$\forall n \in \mathbb{Z}^+$,}     $$1+3+5+\cdots+2n-1=n^2$$     \subsection{$\forall n \in \mathbb{Z}^+$,}     $$3^n>2^n$$     \subsection{$\forall n \in \mathbb{Z}^+$,}     $$\sum_{i=1}^ni=\frac{n(n+1)}{2}$$     \subsection{$\forall n \in \mathbb{Z}^+$,}     \begin{center}     $n^3+2n$ is divisible by 3     \end{center}                         \section*{Bonus Problem}     \paragraph{\indent}%add indent to paragraph     A friend of yours challenges you to a game skittles. The game requires two piles each     containing exactly N skittles. On a player's turn, the player removes some (non-zero) number of skittles from exactly one of the piles. The player that takes the last skittle, wins!     \paragraph{\indent}     Your friend decides to go first. Describe a strategy that ensures that you will always win. Prove its correctness using induction.                         \end{document}


title: What's new in TeX, version 3.14159265?

text: The new Knuth TeX has been released in early this month, and its version number is `3.14159265` now. It can be downloaded here. What's new in this release? And a further-more question, where can one find the change log of TeX (itself), and will D.E.K. himself summarize the change(s) somewhere?


title: Change typeface of verbatim environment

text: I am new here and the following code is what I am testing. Is it possible to change the typeface of the words from a `.txt` file? Thank you for any kind help!               \documentclass[a4paper]{article}     \usepackage{titling}     \newcommand{\subtitle}[1]{%       \posttitle{%         \par\end{center}         \vskip5em         \begin{center}\LARGE#1\end{center}         \vskip5em}%     }          \usepackage{palatino}     \usepackage[utf8x]{inputenc}     \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}     \usepackage{indentfirst}     \usepackage{lipsum}     \usepackage{verbatim}     \usepackage{graphicx}     \usepackage{booktabs,multirow}      \usepackage{amsmath,amssymb}     \usepackage{xcolor}     \usepackage{cite}          \begin{document}          \section{Test section}     \subsection{Test section}     \subsubsection{Test section}     \paragraph{Test section}     \setlength{\parindent}{0pt}This document is for testing.     \Large     \verbatiminput{verb.txt}          \end{document}


title: How to label shapes in tikz?

text: I have a for loop in tikz which draws n circles I want to name them A, B, C...etc How do I do that? can I create a char array or something similar and use it within the label `{$ $}` also if I do               {$\x*\y$};      the labels appear as `1*1` and `1*2` how can I actually multiply to get labels as `1` and `2`.               \foreach \x in {1,...,2}         \foreach \y in {1,...,2}         {             \node[regular polygon, regular polygon sides=6, draw, inner sep=\hex cm] (hex\x*\y*4) at              (\x*\pi*4.2,\y*\pi*1.6 + 0.8*\pi) {};             \node[zoneMaster] at (\x*\pi*4.2,\y*\pi*1.6 + 0.8*\pi) {};               \node[zoneMaster] [minimum size=0.7cm, fill=Black,text=White] at (\x*\pi*4.2,\y*\pi*1.6 + 0.8*\pi) {$\x*\y$};         }


title: How can I install font T1 from ecrm1200 using Tex Live Manager (tlmgr)

text: I'm using TexLive on OSX and having trouble compiling my TeX file with the error:               ! I can't find file `ecrm1200'.      ...               fontenc.sty:100: Font T1     /cmr/m/n/12=ecrm1200 at 12.0pt not loadable: Metric (TFM) file not found      which suggests I'm missing a `ecrm1200.tfm` file from somewhere. However, searching for the file using the Tex Live Package Manager (`tlmgr`) like so               tlmgr search --file ecrm1200.tfm      does not produce any packages with this file in. What should I do?


title: Making the entries of bordermatrix smaller

text: How do I make the entries in bordermatrix smaller?                \documentclass[reqno]{amsart}      \usepackage{amssymb}      \usepackage{mathrsfs}      \usepackage{amsmath}      \usepackage{amsthm}      \usepackage{stackrel}       \usepackage{courier}                \makeatletter      \newif\if@borderstar      \def\bordermatrix{\@ifnextchar*{%        \@borderstartrue\@bordermatrix@i}{\@borderstarfalse\@bordermatrix@i*}%       }       \def\@bordermatrix@i*{\@ifnextchar[{\@bordermatrix@ii}{\@bordermatrix@ii[()]}}       \def\@bordermatrix@ii[#1]#2{%       \begingroup       \m@th\@tempdima8.75\p@\setbox\z@\vbox{%        \def\cr{\crcr\noalign{\kern 2\p@\global\let\cr\endline }}%        \ialign {$##$\hfil\kern 2\p@\kern\@tempdima & \thinspace %        \hfil $##$\hfil && \quad\hfil $##$\hfil\crcr\omit\strut %        \hfil\crcr\noalign{\kern -\baselineskip}#2\crcr\omit %        \strut\cr}}%       \setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}%       \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}%       \setbox\tw@\hbox{%        $\kern\wd\@ne\kern -\@tempdima\left\@firstoftwo#1%          \if@borderstar\kern2pt\else\kern -\wd\@ne\fi%        \global\setbox\@ne\vbox{\box\@ne\if@borderstar\else\kern 2\p@\fi}%        \vcenter{\if@borderstar\else\kern -\ht\@ne\fi%          \unvbox\z@\kern-\if@borderstar2\fi\baselineskip}%          \if@borderstar\kern-2\@tempdima\kern2\p@\else\,\fi\right\@secondoftwo#1 $%        }\null \;\vbox{\kern\ht\@ne\box\tw@}%       \endgroup        }       \makeatother                \begin{document}                \[ \hspace{-10mm}      \bordermatrix[{[]}]{      &a_{11} &a_{21} &a_{31} &a_{41} &b_{11} &b_{12} &b_{21} &b_{22} &b_{11}       &b_{12} &b_{13}       &b_{21} &b_{22} &b_{23} &b_{31} &b_{32} &b_{33} &b_{41} &b_{42} &b_{43} &b_{44} \cr       &1000      &1000 &1000 &1000 &1000     &1000  &1000 &1000 &1000& 1000& 1000&1000      & 1000 & 1000 & 1000 & 1000 & 1000 &1000  &1000  &1000  &1000 \cr       &1000      &1000 &1000 &1000 &1000     &1000  &1000 &1000 &1000& 1000& 1000&1000      & 1000 & 1000 & 1000 & 1000 & 1000 &1000  &1000  &1000  &1000 \cr       }      \]                            \end{document}


title: Create a "Choose between" in exam class, follow up question

text: This question was considered in an attempt to achieve what I want: Create a "choose between " questions with exam class Background: I'm a math teacher with (very) mixed ability classes. I would like to be able to add "choose between A or B" (or C) questions to my tests, where A gives less credit than B. Consider the MWE   * I would like to have only the third question to add to the sum of points.    * It would be nice if the grading table would include all three parts with their points, such that I can fill in the score the student achieved at the question he/she chose.  This MWE is very minimalistic, I honestly have no idea how I'm going to achieve this.               \documentclass{exam}          \begin{document}         \begin{questions}             \question Choose one of the three following questions             \begin{parts} % only the third part should add to the total sum of points                 \part[1] Option 1                 \part[2] Option 2                 \part[3] Option 3             \end{parts}         \end{questions}     \end{document}


title: skew unequal symbols

text: Suppose I arrange the numbers 40, 30, 20, 10 in the corner positions of a 3*3 array. To be precise, the number 40 (resp. 30, 20, 10) is located at the top- left (resp., bottom-left, top-right, bottom-right) corner. I have 3 questions: Q1. How to type a symbol at the left-middle position to indicate that 40 is larger than or equal to 30? I think the symbol looks like of shape "V" together with a vertical bar aside (at the left or right side of the shape "V"). Q2. How to type a symbol in the middle position of the array to mean that 40 is larger than or equal to 10? I imagine that it appears like a skew "V" with it mouth pointing to 40, and with a bar aside again. Q3. How to type a single symbol at the middle position, meaning that "40 is larger than or equal to 10, and 30 is larger than or equal to 20"? I hope it looks like a brute-force combination of the symbol from Q2 and its analog. I need these folk math symbols in a beamer presentation. Wish someone kindly give me a collection of feasible TeX codes to do them, so that I can learn how to make such symbols in TeX. Or, are there ready-made codes in any TeX packages? Thanks in advance! Here is an MWE: Thanks Henri. Here is an MWE:               \documentclass{amsart}     \begin{document}     \[     \begin{array}{ccc}     40 & > & 20\\     Q1 & Q2/Q3 & *\\     30 & > & 10     \end{array}     \]     \end{document}