title: Presenting a Questions and Answers

text: This is a continuation of the topic Displaying a Numbered Questions and Answer. I continue to give color to the background, then putting questions and answers in the boxes using mdframed package.               \documentclass{beamer}     \setbeamercovered{transparent=0}     \setbeamercolor{background canvas}{bg=lime!20}          \usepackage{xcolor}     \usepackage{transparent}          \usepackage[framemethod=TikZ]{mdframed}     \mdfdefinestyle{QueFrame}{%         linecolor       = blue!30,         outerlinewidth      = 2pt,         roundcorner     = 10pt,         leftmargin      = 10pt,         rightmargin     = 80pt,         innertopmargin      = \baselineskip,         innerbottommargin   = \baselineskip,         innerrightmargin    = 20pt,         innerleftmargin     = 20pt,         backgroundcolor     = red!20!white     }          \mdfdefinestyle{AnsFrame}{         linecolor       = red!30,         outerlinewidth      = 2pt,         roundcorner     = 10pt,         leftmargin      = 80pt,         rightmargin     = 10pt,         innertopmargin      = \baselineskip,         innerbottommargin   = \baselineskip,         innerrightmargin    = 20pt,         innerleftmargin     = 20pt,         backgroundcolor     = blue!20!white     }          \newcounter{num}     \setcounter{num}{0}          \newcommand<>\Que[1]{         \leavevmode\par         \stepcounter{num}         \noindent         \begin{mdframed}[style=QueFrame]                 \hbox{                       {\color{blue}\transparent{0.3}\Huge Q{\huge\thenum}} --- #1}         \end{mdframed}      }          \newcommand<>\Ans[2][]{         \leavevmode\par         \noindent         \begin{flushright}             \begin{mdframed}[style=AnsFrame]                 \textbf{#1} #2  --- {\Huge\color{blue}\transparent{0.3} A}             \end{mdframed}         \end{flushright}     }          \resetcounteronoverlays{num}          \begin{mdframed}[style=QueFrame]         \inserttitle{\huge\color{blue} Questions and Answer}     \end{mdframed}          \begin{mdframed}[style=AnsFrame]         \insertauthor{\Large\color{blue} Edy Wihardjo}     \end{mdframed}     \date{}          \begin{document}          \frame{\titlepage}          \setbeamercolor{background canvas}{bg=green!20}          \begin{frame}         \Que{What is \LaTeX{}?}         \pause         \Ans{\LaTeX{} is a document preparation system and document markup language!}     \end{frame}          \begin{frame}         \Que{Why I should use \LaTeX?}         \pause         \Ans{\LaTeX{} provides very high quality. \LaTeX{} is free and Open Source!}     \end{frame}          \end{document}      **First Problem** How to set the title to be in the middle of the page? I've added a command:               \begin{frame}         \vspace{15pt}         \titlepage     \end{frame}      but does not work. **Second Problem** ![FirstQue](http://i.stack.imgur.com/6hXv1.png) Before displaying the answer, there is an empty text box. ![FirstQueAns](http://i.stack.imgur.com/UBbCB.png)


title: LaTeX listings / email quoting

text: I've been trying to do someting with LaTeX. I have some emails that I want to insert in a document. I've searched all over the web but can't find a valid solution. What I want to do is to have those emails looking like typewriter emails, with line breaking. Right now I'm using `lstlistings` with the following options :               \lstset{         language=,         basicstyle=\ttfamily,         breaklines=true,         frame=single,         breakindent=0pt,     }      I get a fairly god result, but the problem is that the line breaks don't break words, they check for overflowing words and return them to the line. It works, but there are trailing spaces (at the end, and sometimes at the beginning of lines). I just want every line to start on the left (i.e. to be aligned and touching the left). I want spaces at the beginning of lines to be removed if there are any. I tried adding these options :               \lstset{         %...         columns={l}, % this doesn't change anything         keepspaces=false, % I tried this too, but it doesn't change anything either         showstringspaces=false % tried this too     }


title: biblatex 2.8 manual mistypeset

text: Is there an easy way to report problems of this sort? The Biblatex 2.8 manual, as distributed by TeX Live Utility on my mac from CTAN, has none of the references to to other sections or to pages resolved. One is referred to page ?? and section ??. Obviously the manual should have been pdflatexed multiple times, but wasn't. But there does not seem to be an obvious reporting channel for such problems. The authors of the manual do not advertise their email addresses.


title: Lower and upper Riemann sums

text: I am trying to create a few images for educational purposes. Therefore I need to be able to illustrate the area under various functions, using lower and upper riemann sums (rectangles) Reason for not including an MWE is that I do not know which package or tools are best suited for the task, wheter it is tikz, pgf-plots, or something else. Although prefferably not gnuplot, as it is not working for me. So my goal is to type in the function, specify the start and end value, upper or lower sum, number of rectangles, and produce something like below. ![illustration](http://i.stack.imgur.com/fPYk3.png) From another question, I was able to discover how to make middle riemann sums. But I absolutely must have lower and upper =(               \documentclass[10pt,a4paper]{minimal}     \usepackage{pgfplots}          \pgfplotsset{         integral segments/.code={\pgfmathsetmacro\integralsegments{#1}},         integral segments=3,         integral/.style args={#1:#2}{             ybar interval,             domain=#1+((#2-#1)/\integralsegments)/2:#2+((#2-#1)/\integralsegments)/2,             samples=\integralsegments+1,             x filter/.code=\pgfmathparse{\pgfmathresult-((#2-#1)/\integralsegments)/2}         }     }          \begin{document}          \pagecolor{black}          \begin{center}     \begin{tikzpicture}[color=white,/pgf/declare function={f=3*e^(-x)*x^3;}]     \begin{axis}[         domain=0:8.1,         samples=100,         axis lines=middle     ]     \addplot [ultra thick] {f};     \addplot [         white,         integral segments=4,         integral=0:8     ] {f};     \end{axis}     \end{tikzpicture}     \end{center}          \end{document}


title: Tabular bibliography with 2 cols for @inbook, @article etc

text: Is there a bibliography style for `biblatex` that arranges the data in columns, especially when the cited work is part of a larger entity? (Better than the following mockup that is.) ## Mockup with many rows per entry               \documentclass{minimal}     \begin{document}     \begin{tabular}{p{\parindent}*2{p{0.45\linewidth}}}     \multicolumn{2}{p{0.5\linewidth}}          {Authors}        & Editors \\         & Title. Subtitle & Booktitle \\         & Chapter, Pages  & Series Volume. Issue \\         &                 & Publisher, Place. Date, Edition \\         & DOI etc.        & ISBN/ISSN etc. \\         & \multicolumn{2}{p{\linewidth}}{Comment, Access Date etc.} \\ % shared data     \end{tabular}     \end{document}      ## Mockup with 2 rows per entry               \documentclass{minimal}     \begin{document}     \begin{tabular}{p{\parindent}*2{p{0.45\linewidth}}}     key & Authors: “Title. Subtitle” (Chapter, Pages).            DOI etc.         & Editors: “Booktitle” (Series Volume, Issue).            Publisher, Place. Date, Edition. ISBN/ISSN etc. \\         & \multicolumn{2}{p{\linewidth}}{Comment, Access Date etc.} \\ % shared data     \end{tabular}     \end{document}      ## Mockup with 1 row per entry               \documentclass{minimal}     \begin{document}     \begin{tabular}{p{\parindent}*2{p{0.45\linewidth}}}     key & Authors: “Title. Subtitle” (Chapter, Pages).            DOI etc. Comment, Access Date etc.         & Editors: “Booktitle” (Series Volume, Issue).            Publisher, Place. Date, Edition. ISBN/ISSN etc. \\     \end{tabular}     \end{document}      If there is nothing like that, how would you do it? (Answers) Why would you not do it? (Comments) **Update:** Since `biblatex` bibliographies are expected to be lists, some prerequisites must be met first. This seem to be solved, mostly at least, by @Audrey in an answer from 2012, which introduces `\defbibtabular` etc. I’m not sure how robust the code is regarding `biblatex` updates, because it uses `\patchcmd`. In the style requested there, however, the author names appear in the first of two columns, everything else is put right of it, whereas my primary goal is to separate `@article` and `@journal` or `@inbook` and `@book` into 2 columns and, possibly, the citation key in a third.


title: Setting up APA-Tables - three problems

text: Below, you see a table. The blue boxes display my "problem areas". Setting up tables is pretty difficult for me so far... Uper left box: I want to indent Group A/ Group B compared to Overall Group; propably using several stages (like Sex --> Female --> Group A/ Group B) Lower left box: I fail to create a legend for my table. Upper right box: I want to vertically center those variables like shown there, because the scores are referring to both lines. ![enter image description here](http://i.stack.imgur.com/ONJW5.png)


title: Access mdframed node coordinates with TikZ?

text: Is it possible to get a (breakable) frame like this with `mdframed`? Or as a more general question. Can one access the coordinates of the frame that is drawn with TikZ? ![desired result](http://i.stack.imgur.com/NVxhj.png) With a pagebreak in it:   ![page 1](http://i.stack.imgur.com/B20wG.png)   ![page 2](http://i.stack.imgur.com/pbOeQ.png) I build this example with the following code.               \documentclass{scrartcl}          \usepackage{environ}          \usepackage{tikz}     \usetikzlibrary{calc}          \NewEnviron{excursustikz}{%        \par        \vspace{0.5\baselineskip}%        \noindent        \begin{tikzpicture}%           \node (body) [%              text width=\textwidth-4pt-2ex,              inner sep=0pt,           ] {\BODY};           \draw [              line width=4pt,              blue,              line cap=round,              rounded corners=2ex,              ->           ] ($(body.south west)+(5em,-2ex)$) -| ($(body.west)+(-2ex,0)$) |- %             ($(body.north)+(-12em,2ex)$) .. controls +(0:10em) and +(190:5em) .. ++(20em,2ex);           \node [blue,fill=white] at ($(body.north west)+(3.5em,2.36ex)$) {\sffamily\bfseries Excursus};        \end{tikzpicture}%^        \par        \vspace{0.25\baselineskip}%     }          \usepackage{lipsum}          \begin{document}     \lipsum[1]     \begin{excursustikz}        \lipsum[2]     \end{excursustikz}     \lipsum[3]     \end{document}      The node that I imagine to use is `body`, but I’m not sure if `mdframed` uses a node internally. Furthermore one has to care about a page spanning frame. In that case the line at the right should be broken, as if you cut the path in two parts.


title: How can I renew the \textcite command and change the delimiter for two authors of the same cite key?

text: I am using the author-year style luh-ipw and need to use `\slash` as delimiter for two or more authors in the bibliography. I changed it via adding following code in the preamble:               \renewcommand*{\multinamedelim}{\slash}     \renewcommand*{\finalnamedelim}{\slash}      unfortunately this also affects the `\textcite` command. But instead I need the preconfigured "and" delimiter back. The biblatex option               maxcitenames=1      is not the solution. After some research and consultancy of the biblatex-manual I tried to add               \renewcommand*{\textcitedelim}{\finalandcomma}      which I thought adds an "and"-delimiter instead of the slash. Unfortunately it doesn't do anything at all. _I only want to change the`\textcite` command_ but not the `\cite` or `\parencite` commands. So the question is: **How can I renew the`\textcite` command and change the delimiter for two authors of the same cite key?** My MWE:               \documentclass{scrreprt}          \usepackage{filecontents}         \begin{filecontents}{bibliographie.bib}     @article{Kuyucu.2010a,     Author = {Kuyucu, Tuna and {\"U}nsal, {\"O}zlem},     Journal = {Urban Studies},     Month = {06},     Number = {7},     Pages = {1479--1499},     Title = {\enquote{Urban Transformation} as State-Led Property Transfer: An Analysis of Two Cases of Urban Renewal in Istanbul},     Volume = {47},     Year = {2010}     }          \end{filecontents}          \usepackage[german=quotes, strict=true]{csquotes} %Because of \enquote          \usepackage[     backend=biber,     style=authoryear-luh-ipw     ]     {biblatex}          \renewcommand*{\multinamedelim}{\slash}%     \renewcommand*{\finalnamedelim}{\slash}%     \renewcommand*{\labelnamepunct}{\addcolon\space}          \bibliography{bibliographie}          \begin{document}          \textcite{Kuyucu.2010a}          \printbibliography          \end{document}      It looks like > Kuyucu/Ünsal (2010) but should more look like Kuyucu und Ünsal (2010)


title: Equations in fancy boxes

text: I've checked the post here, where the package _empheq_ is used for embedding equations into coloured boxes. With that idea, I wrote in my file the following:               % in the preambule     \usepackage{empheq}     \newcommand*\mybox[1]{%       \colorbox{burlywood1}{\hspace{1em}#1\hspace{1em}}}          % in the body     \begin{empheq}[box=\mybox]{align}       ...equation here...     \end{empheq}      It works nicely. However, I'd like to create a new environment for such a box... I tried something like,               \newenvironment{colbox}{%       \begin{empheq}[box=\mybox]{align}}{\end{empheq}}      but this doesn't work. ### **Questions**   * Can someone help me to define this environment?   * Is it possible to define an environment which the colour is an argument? So I can use different colours. Thank you all.


title: Specify radius of an arc with pgfplots and axis direction cs?

text: I'm trying to draw an arc (the top half of a circle of radius 8, centered at (-8,0)) but I can't figure out how to specify the radius in pgfplots's coordinate system. Here's a MWE:               \pgfplotsset{compat=1.5.1}     \begin{tikzpicture}       \begin{axis}[           xmin=-20,xmax=20,         ]         \addplot{x}; % not important, just to make things show up         \draw (axis cs:-16,0) arc[start angle=180, end angle=0,                                   radius=8];       \end{axis}     \end{tikzpicture}      I read about `axis direction cs` in the pgfplots manual, but it doesn't explain how to use it to calculate a distance like a radius -- it only says that for ellipses, it's done automatically. But I don't have an ellipse, I have an arc. How can I specify a radius of 8 for my arc, using the coordinate system of my plot?


title: Adjusting layout in minipage within tikz node

text: What I want to achieve are nodes in which I can put a small index in the top left with either a one or two line description in the center. The nodes should all have the same size. What I achieved with inspiration from this is:               \documentclass{article}          \usepackage{tikz}     \usepackage{setspace}          \tikzstyle{WorkPackage} = [         rectangle,         rounded corners,         draw=black,         very thick,         minimum width = 12em,         minimum height=4.1em,          text width=10em,             node distance=0.5cm]          \newcommand{\CommonElementTextFormat}[2]     {     \begin{minipage}{10em}     \begin{spacing}{0.1}         \centering         {\hspace{-10.5em} \footnotesize #1 \hfill}%         \linebreak         {#2}         \linebreak         {\footnotesize \vspace{.6em}}     \end{spacing}     \end{minipage}     }      When I now create two nodes, one with single line, and one with a multi-line description the index is messed up:               \begin{document}          \begin{tikzpicture}     \node[WorkPackage] {\CommonElementTextFormat{1)}{Image Acquisition \& Camera Calibration}};     \end{tikzpicture}          \begin{tikzpicture}     \node[WorkPackage] {\CommonElementTextFormat{1)}{Image Acquisition}};     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/AiPme.png) edit: The reduced spacing I chose because otherwise a single lined description within the huge node seemed kinda lost.


title: Is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions remain transparent?

text: Please ignore the binary numbers. ![enter image description here](http://i.stack.imgur.com/9hMcN.jpg) Without finding the intersection points in advance, is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions remain transparent?


title: \overleftarrow in subfigure caption

text: This compiles fine.               \documentclass{article}     \usepackage{subfig}     \begin{document}          test: $\overleftarrow{a}$          \begin{figure}         %\subfloat[Subcaption $\overleftarrow{a}$]{\framebox[3cm]{First}}         \subfloat[Subcaption $b$]{\framebox[3cm]{Second}}     \end{figure}          \end{document}      I put a Math-Mode in the caption of the subfloat. In the next example I put math mode and \overleftarrow, and although it gives the right output, it produces an error.               \documentclass{article}     \usepackage{subfig}     \begin{document}          test: $\overleftarrow{a}$          \begin{figure}         \subfloat[Subcaption $\overleftarrow{a}$]{\framebox[3cm]{First}} \hfill         \subfloat[Subcaption $b$]{\framebox[3cm]{Second}}     \end{figure}          \end{document}      Error:               ERROR: Illegal parameter number in definition of \sf@captionlist.     --- TeX said ---     <to be read again>                     \crcr      l.10 ...\overleftarrow{a}$]{\framebox[3cm]{First}}      Why is there an error?


title: Construction of a Notation Page in Memoir Document Class:

text: I want to create a reference page which defines the notation which is used throughout a book I am writing. I would preferably like this page to go inside of the front cover, or inside of the back cover. For example, if the reader didn't recall the definition of some term, I would like the reader to be able to flip to the back of the book and see something like this: $C[a,b]$: The space of continuous functions defined on $[a,b]$. $C^{1}[a,b]$: The space of differentiable functions with continuous derivatives defined on $[a,b]$. . . . and so on. Is there any easy and elegant way to do this?


title: Dots in a system of constraints

text: I would like to write a linear program as follows: ![enter image description here](http://i.stack.imgur.com/vGzG7.jpg) The text above and below is shown only to indicate the position of the system on the page. I wrote               \documentclass[a4paper,11pt]{report}     \usepackage[italian]{babel}     \usepackage{amsmath}          \begin{document}          \begin{align}     & \text{max (o min)} & c_1 x_1 &+ \dots + c_n x_n \\     & \text{soggetto a} & a_{11} x_1 &+ \dots + a_{1n} x_n \sim b_1 \\     && a_{m1} x_1 &+ \dots + a_{mn} x_n \sim b_m,     \end{align}          \end{document}      but I hadn't the same result. In particular to the space between words and system, and I do not know how to insert the dots vertical.


title: Missing bars in pgfplots histograms

text: I have a problem with pgfplots, when I try to plot some data from a file. I use the following code               \begin{figure}[p]     \centering     \begin{tikzpicture}        \begin{axis}[ybar interval,xtick=,width=\textwidth]              \addplot+[hist={data=x,bins=30}]                 file {Data/Poisson/Poisson_Cs137_150.TKA};       \end{axis}     \end{tikzpicture}     \caption[]{}     \end{figure}      Where as number of bins I used the maximum value of my dataset (containing only integers), because I want a bin for each integer. The problem is that the result is the following: ![Histogram](http://i.stack.imgur.com/9byhC.jpg) As you can see there are some missing columns, while Matlab correctly shows the missing columns (I checked in the data set and the value 8 appears multiple times!). Has anyone an idea of where the problem comes from? **Addendum:** This is my preamble               \documentclass[%         10pt,%         a4paper,%         onside,%         headinclude,%         footinclude,%         BCOR5mm,%         captions=tableheading]%             {scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          %\usepackage[english]{babel}          \usepackage{indentfirst}          \usepackage{mathtools,amsmath}              \renewcommand{\vec}{\mathbold}              \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}          \usepackage{booktabs}          \usepackage{pgfplots}         \pgfplotsset{%             compat=newest,%             /pgf/number format/use comma,%             /pgf/number format/1000 sep={\,},%             /pgf/number format/min exponent for 1000 sep=4}          \usepackage[%         output-decimal-marker={,}]             {siunitx}          \usepackage{caption}          \usepackage{subfig}          \usepackage[%         nochapters,%         beramono,%         eulermath,%         pdfspacing,%         listings]%             {classicthesis}      Moreover, I'm sorry that I can't provide a MWE but I cannot reproduce the problem with an arbitrary and short data set (for data set with less bins pgfplots works correctly…) **EDIT 1** : I noticed that if we count the columns starting from 0 (that is missing) the column 5 is directly over the label 5, while the column 20 is at the right of the label 20… Maybe the missing columns represents non-integer values? Is it possible? **EDIT 2** : This is an MWE               \documentclass{standalone}          \usepackage{pgfplots}         \pgfplotsset{%             compat=newest,%             /pgf/number format/use comma,%             /pgf/number format/1000 sep={\,},%             /pgf/number format/min exponent for 1000 sep=4}          \begin{document}          \begin{tikzpicture}          \begin{axis}[ybar,xtick=,width=\textwidth]              \addplot+[hist={data=x,bins=30}]                 file {Data/Poisson/Poisson_Cs137_150.TKA};     \end{axis}     \end{tikzpicture}          \end{document}      And this are the data:               16     13     12     13     12     11     10     16     11     19     12     18     14     12     13     16     8     9     13     13     12     14     10     14     15     15     11     16     17     9     15     18     11     18     7     8     13     17     16     8     21     17     7     5     9     13     13     13     14     16     10     12     10     10     15     13     11     14     15     15     11     17     13     8     11     14     13     9     12     17     13     18     10     11     8     10     25     17     9     16     13     10     14     15     12     17     21     8     14     13     10     13     16     21     12     11     19     15     8     10     9     17     7     13     12     7     10     12     13     12     11     15     9     14     11     16     17     13     11     12     12     15     9     15     9     9     6     11     8     9     12     15     11     14     15     13     14     12     16     18     10     12     23     15     13     8     11     10     13     12     14     12     12     15     10     16     11     11     20     12     10     11     20     14     19     9     11     14     12     13     15     13     12     10     11     12     11     15     11     11     17     11     18     8     14     19     9     21     6     13     15     19     13     12     7     5     9     16     18     16     20     8     14     15     18     11     14     9     23     15     11     12     12     16     8     18     13     16     17     15     14     11     21     11     15     13     12     13     8     13     15     12     12     18     19     15     15     12     13     15     14     9     15     15     17     4     10     11     16     10     8     12     14     17     12     10     12     13     16     20     13     20     13     12     14     13     12     14     11     16     13     6     11     12     13     13     17     7     12     22     11     19     14     17     18     30     19     19     12     6     8     24     11     14     20     12     16     10     12     17     14     18     8     13     13     15     10     18     15     13     13     12     17     11     15     11     8     13     12     15     15     8     19     17     13     14     11     10     10     18     16     12     11     9     13     10     16     14     7     11     16     19     16     10     16     18     6     16     13     7     10     12     9     11     12     16     11     23     15     8     9     11     9     9     10     11     14     17     9     12     13     11     13     13     12     15     11     13     17     12     13     15     17     10     12     13     9     12     9     18     7     8     10     15     14     16     10     18     13     9     22     17     8     12     17     9     12     11     6     11     12     7     9     12     15     18     12     11     11     9     11     14     12     10     11     7     10     17     11     17     12     11     14     13     11     16     14     14     10     14     10     9     12     7     13     10     22     8     13     15     15     14     22     10     11     11     12     20     14     12     16     14     17     13     12     12     19     13     17     14     12     14     18     13     9     12     11     12     16     12     14     15     11     14     9     14     10     15     16     17     13     13     15     11     15     14     15     13     10     12     14     18     13     7     15     15     10     13     13     16      Finally this is the Matlab histogram with the same data: ![Matlab histogram](http://i.stack.imgur.com/TinZe.jpg)


title: Adding vertical line and left brackate in array

text: I want to display my content like in image. I have considered array for this. Let me know if is there any better option for this.               \textbf {accesslog : } \textcolor{red}{ Array }              \begin{tabular}{ | l  c  r }              date: & string & Data - da ocorrência. \\         ObjectId: & Usuário - & que executou. \\         action: & String - & Ação Executada.  \\ \\              date: & string & Data - da ocorrência. \\         ObjectId: & Usuário - & que executou. \\         action: & String - & Ação Executada              \end{tabular}      Currently it looks as here : https://www.sharelatex.com/project/53915feaeef2f99941486f56?r=380e068e&rs=ps&rm=d Content should look like: ![array](http://i.stack.imgur.com/FroRM.png) IS there any other possible way to show content like this?


title: Graphs of Linear Inequalities

text: The following code I got from: http://tex.stackexchange.com/a/76014/10898 ![enter image description here](http://i.stack.imgur.com/YUhWq.png)               \documentclass{article}           \usepackage{pgfplots}      \usetikzlibrary{patterns}          \makeatletter     \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis}     \makeatother     \pgfplotsset{only axis on top/.style={axis on top=false, after end axis/.code={                  \pgfplotsset{axis line style=opaque, ticklabel style=opaque, tick style=opaque,                               grid=none}\pgfplotsdrawaxis}}}          \newcommand{\drawge}{-- (rel axis cs:1,0) -- (rel axis cs:1,1) -- (rel axis cs:0,1) \closedcycle}     \newcommand{\drawle}{-- (rel axis cs:1,1) -- (rel axis cs:1,0) -- (rel axis cs:0,0) \closedcycle}          \begin{document}        \begin{figure}[htpb]          \centering          \label{fig:p3:c1}          \begin{tikzpicture}            \begin{axis}[only axis on top,             axis line style=very thick,              axis x line=middle,              axis y line=middle,               ymin=-1,ymax=5.99,xmin=-1,xmax=5.99,               xlabel=$x$, ylabel=$y$,grid=major            ]              \addplot [draw=none, pattern=north west lines, pattern color=blue!40, domain=-10:12]                      {3-3/2*x} \drawge;             \addplot[very thick, domain=-1:2.5,<->] {3-3/2*x};            \end{axis}          \end{tikzpicture}          \caption{Problem 4, Part A}        \end{figure}           \end{document}      The question here is how can I get it to work with a setting like the following: ![enter image description here](http://i.stack.imgur.com/KkvTN.png)               \documentclass[dvipsnames]{article}     \usepackage{amsmath,pgfplots,tikz}     \usetikzlibrary{arrows,calc}     \begin{document}              \begin{tikzpicture}[transform shape,scale=0.6]         \draw[step=1cm,gray,very thin] (-4,-3) grid (4,5);         \draw [-latex,thick](-4,0) -- (4,0) node[right] {$x$} coordinate(x axis);         \foreach \x in {-3,-2,-1,1,2,3}                  \draw (\x,0.1) -- (\x,-0.1) node [fill=white,below] {$\x$};         \foreach \y in {-2,-1,1,2,3,4}                  \draw (0.1,\y) -- (-0.1,\y) node [fill=white,left] {$\y$};         \draw [-latex,thick](0,-3) -- (0,5) node[above] {$y$} coordinate(y axis);         \node at (-0.25,-0.3375) {0};         \draw[color=Cerulean,latex-latex,domain=-1.3:4] plot (\x,-3/2*\x+3);         \filldraw[OrangeRed] (0,3) circle (1.5pt) node[inner sep=2pt,right,fill=white,shift={(0.25,0)}] {$(0,3)$};         \filldraw[OrangeRed] (2,0) circle (1.5pt) node[inner sep=2pt,right,fill=white,shift={(0.25,0.35)}] {$(2,0)$};         \end{tikzpicture}     \end{document}      That is, I would like to represent the solution set of the inequality in a similar manner as is done using `pgfplots` in my last example above. Is this possible?


title: Newenvironment not cursive

text: I created a new envrionment and it looks good, but I want to distinguish between normalfont and cursive font, so here is my code:               \newshadetheorem{beispiele}{Beispiel}     \newenvironment{beispiel}[1][]{%       \definecolor{shadethmcolor}{rgb}{.9,.9,.95}%       \definecolor{shaderulecolor}{rgb}{0.0,0.0,0.4}%       \setlength{\shadeboxrule}{1.5pt}%       \begin{beispiele}[#1]\hspace*{1mm}%     }{\end{beispiele}}      and the output is with the font cursive, but I want to have it with normalfont, so not cursive, could you help me? Thanks a lot! Here we go:               \documentclass{book}     \usepackage{geometry}          \geometry{left=4cm,right=3cm, top=2cm, bottom=2cm}           \usepackage{titlesec}     \titlespacing*{\chapter}{0pt}{-30pt}{20pt}     \titleformat{\chapter}[display]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}               \usepackage[ngerman]{babel}     \usepackage{mathptmx}     \usepackage{helvet}     \usepackage{wallpaper}     \usepackage{color}     \usepackage[final]{pdfpages}      %,bookmarksopenlevel={1}     %\usepackage[bookmarks=true,bookmarksopen=true,bookmarksnumbered=true,colorlinks=true,linkcolor=black,]{hyperref}     \usepackage[colorlinks,linkcolor=black,bookmarksopen=false,     hypertexnames=TRUE,pdfpagelabels=true]{hyperref}     \hypersetup{        pdftitle={},       pdfauthor={\textcopyright },       pdfsubject={},        pdfkeywords={},        }          \usepackage{xcolor,bookmark}     \usepackage{scrextend}     \usepackage{titlepic}     \usepackage{shorttoc}     \usepackage{courier}     %     \usepackage{type1cm}                             \usepackage{makeidx}         % allows index generation          \usepackage{graphicx}        % standard LaTeX graphics tool                                  % when including figure files     \usepackage{multicol}        % used for the two-column index     \usepackage[bottom]{footmisc}% places footnotes at page bottom     \usepackage{tocstyle}     \usetocstyle{allwithdot}      %\usepackage{thmbox}     \usepackage{shadethm}     \usepackage{amsthm}      %\usetocstyle{KOMAlike}               \makeindex             % used for the subject index                            % please use the style svind.ist with                            % your makeindex program               \setcounter{tocdepth}{4}     \setcounter{secnumdepth}{4}               %\theoremstyle{plain}     %\theoremstyle{remark}     %\newtheorem{beispiel}{Beispiel}[chapter]     \newshadetheorem{beispiele}{Beispiel}     \newenvironment{beispiel}[1][]{%       \definecolor{shadethmcolor}{rgb}{.9,.9,.95}%       \definecolor{shaderulecolor}{rgb}{1,1,1}%       \setlength{\shadeboxrule}{1.5pt}%       \begin{beispiele}[#1]\hspace*{1mm}%     }{\end{beispiele}}          \begin{document}     \begin{beispiel}     Test     \end{beispiel}     \end{document}


title: How can I get hieroglyphics in my MiKTeX 2.9 TeXworks application?

text: I am to write an essay which involves the use of several mathematical hieroglyphs (e.g. 1, 10..., 1,000,000, +, -, Fractions). I have tried very hard to follow (relatively) technical instructions online. Is there not a simple way to just download hieroglyphs? It all seems quite complex for someone who isn't very used to LaTex or programming. Any help in the simplest form would be very much appreciated! Thanks.


title: Will TeXLive 2014 be 64 bit?

text: I've recently seen the `TeXLive` "roadmap" here: https://www.tug.org/texlive/ It seems `TeXLive 2014` is just around the corner... I've also noticed that past versions of `TeXLive` are all 32-bit. Are they planning to release a 64-bit version for `TeXLive 2014`? If not, what are the reasons for still keeping it as 32-bit? **Additional Info** Perhaps I wasn't so clear since I'm seeing a lot of _close_ votes going on: The question is Why does the `TeXLive` group doesn't release a 64-bit version of `TeXLive` for Windows? It seems to be a 64-bit version for Linux... and I can't seem to understand what drives the group to keep Windows on 32 bits. Are there any special reasons for this?


title: Using vertical line column separator in tabular between JUST TWO cells

text: I'm trying to do long division using `tabular` environment. Here is the code:               \documentclass[11pt]{book}     \usepackage{multirow}     \begin{document}     \begin{center}     \begin{tabular}{c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{}}     \multirow{2}{*}{$-$}&1&5&7&{\huge,}&5&&&5&{\color{white}1}&{\color{white}1}&    {\color{white}1}\\     \cline{9-12}     &1&5&&&&{\color{white}1}&{\color{white}1}&3&1&&\\     \cline{2-6}     \multirow{2}{*}{$-$}&&&7&&&&&&&&\\     &&&5&&&&&&&&\\     \cline{2-6}     &&&2&&&&&&&&\\     \end{tabular}     \end{center}     \end{document}      I'm trying to achieve long division layout which is used in my country. It is very similar to the one used in France with the exception of the vertical line that exists only in the first row and does not go all the way down. To achieve this, I create my table without any vertical separators between the columns and want to add it only in the first row, before the number "5". ![What I'm trying to achieve](http://i.stack.imgur.com/WkHPA.jpg) The code above yields the second picture. Is it possible to somehow insert that single vertical line?


title: Where do I get a list of all possible texdoc's?

text: An easy way out would be to just `texdoc` the package name, but almost everyone knows that this does not apply to all packages. Some examples:   * I didn't know there was a `usrguide`   * There is an `lshort.pdf` but I cannot `texdoc lshort`   * `tikz` is frequently mentioned in the TeX community but I need to `texdoc pgfmanual` Where do I get a list (and descriptions, and possibly a search function) of all possible `texdoc`'s in my installation? Yes, there is the MiKTeX Package Manager and the MacTeX TeX Live Utility, but as I've said, the package name or the PDF filename isn't necessarily the `texdoc` name.


title: Force Hevea to use original file names for graphics

text: In my LaTeX files i use `\includegraphics` command. All images are `PNG`. I can't get Hevea to display them properly as it changes the names of the images to base_name0001.png. Imagen didn't help. I ran it as follows: `imagen -pdf base_name` but it displayed a bunch of errors. Everything would be fine if Hevea used the original png files. Any way to force it to do so?


title: Footnote in arabic with polyglossia

text: writing a book in arabic, I want to make some comments by footnotes, in english and in arabic. The footnotes in arabic are from Right to Left, and I can put the rule of the footnote on the right side of the page. By the same, the english footnote (in the english environment) is from Left to Right, and I put the rule on the left side. In the case when I have two footnotes, in arabic and in english, in the same page, I want to have two rules of the footnotes in the same time, on the left and on the right side of the page, because of the two footnotes (in the page 3 of my ECM, I want to have a rule below the arabic footnote too...). Any one have an idea for that ? Thank you... I post a minimal example...               \documentclass[14pt,a4paper]{extbook}          \usepackage{titlesec}     \usepackage{minitoc}          \usepackage{polyglossia}     \setmainlanguage[numerals=maghrib]{arabic}     \setotherlanguage{english}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.2,AutoFakeSlant=-0.02]{Traditional Arabic}     \setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}          \def\efootnote#1{\renewcommand{\footnoterule}{\raggedright\vspace*{-3pt}\rule{2in}{0.4pt}\vspace*{2.6pt}}\begin{english}     \hspace*{-5pt}\footnote{\hspace*{2pt}\LR{#1}}\end{english}}     \def\afootnote#1{\renewcommand{\footnoterule}{\raggedleft\vspace*{-3pt}\rule{2in}{0.4pt}\vspace*{2.6pt}}\footnote{\hspace*{2pt}\RL{#1}}}               \begin{document}\LR{     Page with english footnote\efootnote{English footnote}     \newpage     Page with arabic footnote\afootnote{هامش عربي \LR{Arabic footnote}}     \newpage     Page with english\efootnote{English footnote} and arabic\afootnote{هامش عربي \LR{Arabic footnote}} footnotes.     }     \end{document}


title: How do I make my document use the Times font, both for the text and the math?

text: I know that I can put `\usepackage{times}` in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using Computer Modern. How can I make Latex use Times also for the math?


title: Chage font to Times New Roman in pdfLatex

text: Is there any way to change main font to times new roman in Pdf Latex. I search over internet. And what I saw was how to change font with xelatex or lualatex, not pdflatex.


title: change font to "times new roman"

text: How to change the font to "times new roman " in LaTeX? I used               \documentclass[12pt,a4paper,oneside]{report}          \usepackage[left=1.5in,top=1in,right=1in,bottom=5em]{geometry}          \usepackage{fancyhdr}          \begin{document}          \fontfamily{Times New Roman}          ...............................          ..........................               ..................     \end{document}      but the fonts did not change. What do I need to do?


title: How to change font when using apa6

text: I'm writing a paper for a class at school, and I'm using the apa6 package (template?). However, it's required that the document be in Times New Roman font. Is this even possible? If it is, how should I go about doing it?


title: making an inset with PSTricks

text: I have a main coordinate system, and inside this I would like to plot some data in an inset. Here is my MWE:               \documentclass[pstricks,border=16pt]{standalone}     \usepackage{pst-node, pst-coil, pst-plot}     \psset     {         unit=0.1cm,     }          \begin{document}     \begin{pspicture}[showgrid=false](0.0, -25)(108, 23.0)     \psaxes[Dx=10,Dy=10,linewidth=1pt, ticksize=2pt, Oy=-20]{->}(0.0,-20)(105,20)%THIS IS THE MAIN COORDINATE SYSTEM          %THIS IS MY DATA FOR THE INSET     \savedata{\mydata}[     {{0, 0}, {1., 0.946083}, {2., 1.60541}, {3., 1.84865}, {4., 1.7582},     {5., 1.54993}, {6., 1.42469}, {7., 1.4546}, {8., 1.57419},     {9., 1.66504}, {10., 1.65835}, {11., 1.57831}, {12., 1.50497},     {13., 1.49936}, {14., 1.55621}, {15., 1.61819}, {16., 1.6313},     {17., 1.59014}, {18., 1.53661}, {19., 1.51863}, {20., 1.54824}}]     \end{pspicture}     \end{document}      The data I want to plot in an inset, which I would like to be able to move around freely inside the "main" coordinate system. Is there a smart way to do this in PSTricks? EDIT: I sincerely apologize, but I forgot to note that the inset-plot should have _psaxes_ including labels. This edit was made **after** Herbert's answer.


title: Simplest way to add an Appendix?

text: I have looked around before posting and found many different methods to do an appendix. Is there no common way to add an appendix to a {report} format paper ? The current one I use has this :               \documentclass[12pt,a4paper]{report}     \usepackage[toc,page]{appendix}      \begin{document}     \begin{appendices}     \chapter{Formula}     The contents...     \end{appendices}     \end{document}      However it adds "Appendices" on a seperate page and then says Appendix A followed by Chapter name and then contents ... However the chapter font size is big and doesn't look nice for me. I want an appendix with the following features :   * Added to TOC   * Can be referred to (using labels I'm assuming ? ) -- Optional   * Doesn't require a full page just for the title APPENDICES    * Appendix (A...Z) followed by small font titles Is there a simple and convenient way to do this ?


title: How to fit text in a box of given size?

text: Say I want to typeset small piece of text as a logo/motto/slogan or whatever. The text is not much longer than "Lorem Ipsum Dolor". I want this to fit tightly in a box of certain size (e.g. 7x2cm). Two questions here, possibly related:               How can I typeset it so that the text fits a box with certain width?      Assume fixed typeface size, and only the inter-word and inter-glyph      distance is allowed to change.      * * * A (possibly) more advanced version of this:               How can I fit the same text in a box with a given width AND height?      Possibly also adjusting spacing and typeface size?      To illustrate: Original Version: ![](http://i.stack.imgur.com/L91Mr.png) Modified spacing, Q1. ![](http://i.stack.imgur.com/xvMBu.png) Modified spacing plus scaling, Q2. ![](http://i.stack.imgur.com/9Vypi.png) Sizes, font type, etc. are assumed to be arbitrary. I'm curious how can I do this conceptually. Bonus points for a parameterized macro to experiment with. Also: I know there are many ways to do it without using TeX and friends (e.g. images, vector graphics, and what not), but I am only interested in ways how to typeset it with TeX, or popular macro packages.


title: %& magic line has no effect

text: I am using the %&format magic line in a plain TeX file. On older versions of TeX the result produces the expected results. On TeXLive 2009 (under Gentoo), however, this line has no effect. When I use 'tex -fmt format.fmt file.tex' the expected font substitutions nevertheless work. Has the magic file feature to be enabled in some config file? Many thanks.


title: Can't center vertically text in table with enumerate in one column

text: Code:               \documentclass{article}     \usepackage[a4paper]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{array}     \begin{document}     \begin{tabular}{ |m{0.8cm}| p{3cm} |c| }       \hline       1       &       \begin{enumerate}         \setlength{\leftmargin}{0pt}         \item line 1         \item line 2         \end{enumerate}       &       2\\       \hline     \end{tabular}     \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/fGXPV.png) My goal was to use `c` environment for left and right columns and vertically center their content. In this answer, @Werner says, that to center the content vertically, I must use `m{<width>}` column type from array package. So, I tried it for the 1-st column. But with `enumerate` it didn't work for some reason. How can center columns 1 and 3 vertically? Ideally, keeping `c` column type for automatic width, but even `m` is ok, if it's impossible.


title: How to choose between arguments and keys when defining a macro

text: I would like to know if there are guidelines for package writers regarding the interface preferred for passing arguments to macros. Suppose I am writing a package for typesetting a titlepage. There are three main options:   1. LaTeX macro style `\titlepage[color]{<title>}{<author>}`   2. key-val style `\titlepage{author=..., title=..., color=...}`   3. "declarative" style `\author{...}\title{...}\maketitlepage` Now, I prefer 2 and 3 to 1 because they do not require the user to remember the order of the arguments, they are more "literate" and they seem to be easier to extend. Moreover, suppose I want to make my title page "themable". Would mixing keys for "data" (author/title) and "appearance" (color) be acceptable? Is key-val better suited for customisation rather than specification of content? I think it is important to aim at uniform passing style to make adoption of packages smoother, but I could not find a clear guideline.


title: algorithm2e and Beamer - How to make algorithms wider with smaller font?

text: I would like to make the `algorithm2e` environments wider in a `beamer` document. Indeed I must you a `\scalebox` to see all of my algorithm. Is there a way to have wider algorithms with smaller size font than the standard text **WITHOUT using scalebox** ? The size in my M(merely not)WE looks good for me. ## OUTPUT ![enter image description here](http://i.stack.imgur.com/pqbqP.png) ## M(merely not)WE               \documentclass{beamer}         \usepackage[utf8]{inputenc}              \usepackage[french]{babel}              \usepackage[french, lined]{algorithm2e}              \usepackage{beamerthemesplit}               \begin{document}          \frame{         \frametitle{Premier algorithme}          \scalebox{0.65}{     \begin{algorithm}[H]         \Begin{             \ForEach{Case $C$ de la grille $G$}{                 \If{$| poss(C) | \geq 2$}{                     \ForEach{$p \in poss(C)$}{                         $isole \leftarrow Vrai$                         \\                         \ForEach{Bloc $B$ contenant la case $C$}{                             \ForEach{Case $C_B \neq C$ du bloc $B$}{                                 \If{$p \in poss(C_B)$}{                                     $isole \leftarrow Faux$                                     \\                                     Ne plus tester d'autres cases $C_B$.                                 }                             }                             \If{$isole = Vrai$}{                                 $g_{ij} \leftarrow \{ p \}$ où $(i,j) = coord(C)$                                 \\                                 $G \leftarrow \texttt{MettreAJour}(G)$                                 \\                                 Ne plus tester les blocs $B$ contenant $C$                             }                         }                         \If{$isole = Vrai$}{                             Ne plus tester les possibilités restantes de la case $C$                         }                     }                 }             }             \Return $G$         }     \end{algorithm}     }        }          \end{document}


title: How to arrange a figure consisting of four subfigures?

text: Two subfigures in one page. This figure take two page. (a) (b) * * * Page 2 (c) (d) figure 1. The caption of this figure.


title: texmaker and multiple hits for quick build for citations?

text: I'm sorry if the question might be silly. I'm getting annoyed by hitting `quick build` multiple times for citation issues. Is there any solution for this problem?


title: Roman numerals for table of contents, arabic for main text in footer

text: I am trying to use roman numerals for the table of contents (and abstract, notes of thanks etc.) and then start the main body of the text from page 1 in arabic numerals. I am using the article document class and do not want a page number on the title page. At the same time in the footer I want to show Page x of y. i.e. I want Title page: no number   Table of contents first page: Page i of ii   Table of contents second page: page ii of ii [ii was just chosen for this example]   First page of document: page 1 of x   Second page of document: page 2 of x The code works fine for the table of contents, i do get page i of ii, page ii of ii etc. However, for the rest of the document I then get page 1 of ii, page 2 of ii Actually I can see what causes the mistake (the use of a `\label{lastromanpage}`), but I do not know how to solve this.               \documentclass{article}          \newcommand{\Title}{Title}     \newcommand{\DueDate}{\today}     \newcommand{\Class}{}     \newcommand{\ClassTime}{}     \newcommand{\ClassInstructor}{}     \newcommand{\AuthorName}{Authorname}          \title{\vspace{2in}\textmd{\textbf{ \Title}}\\\normalsize\vspace{0.1in}\small{Due\ on\ \DueDate}\\\vspace{0.1in}\large{\textit{\ClassInstructor\ \ClassTime}}\vspace{3in}}     \date{}     \author{\textbf{\AuthorName}}          \pagestyle{fancy}     \lhead{\AuthorName}     \chead{\Class}     \rhead{\Title}          \lfoot{\lastxmark}     \cfoot{}     \rfoot{Page\ \thepage\ of\ \pageref{lastromanpage}}          \begin{document}\begin{spacing}{1.1}          \maketitle\thispagestyle{empty}\newpage     \pagenumbering{roman}\tableofcontents \label{lastromanpage}     \newpage\pagenumbering{arabic}\clearpage


title: Creating fancy section pages for Beamer

text: I am currently struggling to create fancy-looking section pages in `Beamer` to achieve the following layout: ![section](http://i.stack.imgur.com/Pj9go.jpg) Based on my question on the matching TOC (fancy-table-of-contents-for-beamer) I came up with the following code which does not look so bad but does to really resemble the given layout. Any idea how to improve the code?               \documentclass[svgnames]{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \pgfdeclarehorizontalshading{section shading}{2cm}{     color(0cm)=(LightSlateGrey!15);     color(3cm)=(LightSlateGrey)     }     \pgfdeclarehorizontalshading{subsection shading}{2cm}{     color(0cm)=(red!15);     color(1cm)=(red);     color(3cm)=(green)     }          \usepackage{tikz}     \tikzset{section number/.style={         draw=none,         rectangle,             left color=gray!40,         right color=gray!20!black,         minimum size=3.5em,         text=white,       },       section/.style={         draw=none,         rectangle,             shading=section shading,         minimum height=3.5em,         minimum width=0.9\textwidth,         text width=0.9\textwidth,         text=black,         align=left       },       subsection/.style={         draw=none,         rectangle,             shading=subsection shading,         minimum height=2em,         minimum width=0.9\textwidth,         text width=0.9\textwidth,         text=black,         align=left       }     }          \begin{document}          \frame{          \begin{tabular}{p{1.2cm}p{9cm}}      \tikz[baseline=-0.5ex]\node[section number]{\bfseries\Large 123}; & \tikz[baseline=-0.5ex]\node[section]{\bfseries\large fxdfsdf}; \\ & \\     & \tikz[baseline=-0.5ex]\node[subsection]{\bfseries fxdfsdf};     \end{tabular}          }          \end{document}      ![mycode](http://i.stack.imgur.com/KSjC8.jpg)


title: Automatic arrangement of equations with comments

text: > **This question led to a new package:**   >  `conteq` I am writing a paper with multiple chains of equations or inequalities, with optional explanations. Depending on the size of the equations, I use one of               \documentclass{article}     \usepackage{amsmath}     \begin{document}     Short style:     \begin{align*}     lhs1 &= rhs1 && \text{expl1} \\          &\le rhs2 \\          &= rhs3 && \text{expl3}     \end{align*}          Medium style:     \begin{align*}     lhs1 &= rhs1 \\          &\phantom{{}={}} \text{expl1} \\          &\le rhs2 \\          &= rhs3 \\          &\phantom{{}={}} \text{expl3}     \end{align*}          Large style:     \begin{align*}          &\phantom{{}={}} lhs1\\          &= rhs1 \\          &\phantom{{}={}} \text{expl1} \\          &\le rhs2 \\          &= rhs3 \\          &\phantom{{}={}} \text{expl3}     \end{align*}     \end{document}      This looks nice, but is not convenient to switch between. So I’d like to have three environments `eqchains`, `eqchainm` and `eqchainl` that produce the appropriate output, given an input in this form:               \begin{eqchain?}     lhs1 &= rhs1 & expl1 \\          \le rhs2 \\          = rhs3 & expl3      \end{eqchain?}      (Of course, the `&` can be some other symbol). Bonus points if the styling of the explanation can be modified by redefining a macro, e.g. `\newcommand{\eqchainexpl}[1]{\text{\\{ \textit{#1} \\}}`. And, if that was possible, I’d like to have an environment `eqchain` that automatically selects the right environment using the following heuristics: If lhs1 and the largest rhs is together smaller than ⅔ of the `\linewith`, use `eqchains`. If the lhs1 and the largest rhs is smaller than the `\linewidth`, use `eqchainm`. Otherwise use `eqchainl`. Final bonus points if the explanation is set in a `\parbox` so that long explanations are wrapped and do not affect the horizontal positioning of the math content.


title: Error: Extra }, or forgotten \right in align environment

text: I'm getting errors in the align environment that I'm not getting for the exact same line that compiles without error in the equation one and I can't figure it out. Can someone shed some light on this? Here's the code:               \begin{align*}     t\left(2^{\left(m+1\right)} \right) &= t\left(\frac{2^{\left(m+1\right)}}                 {2}\right)+3\log 2^{\left(m+1\right)}\\      &= t\left(2^m\right)+3\left(m+1\right)\\ &=t'\left(2^m)+3(m+1)\\      &=\frac{3\left(\log_2 n\right)\left(\log_2 n+1\right)}  {2}     \end{align*}      the error is showing up for the last line:               ! Extra }, or forgotten \right.     ! Missing \right. inserted.


title: How do I use scopes to apply a style to nodes inside a path?

text: I want to use nodes inside a single path, in order that I might position one relative to another using the `++(x,y)` notation. However, a scope that I want to use to style the nodes only styles the path (and therefore appears to do nothing, as the path is 'invisible'). Adding the scope inside the path (around the nodes) doesn't work. **So, is there anyway to apply a scope to nodes inside a path?** Many thanks for any help. * * * Example:               \documentclass{article}     \usepackage{tikz}          \tikzset{       every node/.style = {         shape = rectangle,         minimum height = 20mm,         minimum width = 20mm,         line width = .5mm},       mystyle/.style = {draw = red!50!black!50}     }          \begin{document}            \begin{tikzpicture}              % These two nodes have the correct style,         % but I have to specify the style for every node         % (I'll have around 100 nodes in total, hence the         % desire to use a scope for the style).         \path (0,6)           node(nodeOne) [mystyle] {Node One}           ++(5,0) node(nodeTwo) [mystyle] {Node Two};                   % These two nodes are in the ``mystyle'' scope,         % but the style is not applied to the nodes         % as they reside inside a path.         \begin{scope}[mystyle]           \path (0,0)             node(nodeThree) {Node Three}             ++(5,0) node(nodeFour) {Node Four};         \end{scope}            \end{tikzpicture}          \end{document}


title: How to produce white space for all text lines of an environment?

text: How can I produce whitespace before each line of an environment. If I have the following command in the preamble               \newenvironment{myenv}     {\vspace{3mm}\hspace{0.5cm}\noindent\ignorespaces\small\texttt}     {\par\noindent\ignorespacesafterend\vspace{0.5mm}}      and in the text:               \begin{myenv}     hello \\     world     \end{myenv}      this produces whitespaces only for the first line.


title: Create a register of persons with biblatex

text: How can I create a register of persons who are mentioned in my PDFLaTeX document? I want to write               The screwdriver was turned by \person[Mr.]{Miller}.      > >     The screwdriver was turned by M. Miller. >   >     Register of Persons >     =================== >     Prof. Dr. M. Miller, University of M (p. 4, 12) >     Dr. A. Foobar, University of M (p. 5) >   >     B. Foo, University of Z (p. 1) >   It would be nice, if the persons could be sorted by   1. affiliation   2. last name   3. first name


title: Embedded parentheses giving the error: ! Missing { inserted.

text: I'm getting the above error and I can't figure out why. Here's the offending code.               t\left(2^\left(m+1\right) \right)


title: How to get minipages in a Beamer presentation?

text: I'm writing a presentation with Beamer and I need the `minipage` package. When I worked on Linux there was no problem: apparently, `minipage` does not exist for Mac OS. I've so tried to install `genmpage`, but I really can't understand how to use it (I searched some examples on Google but all I can find are documentation pages I'm not too familiar with). Here is an example of what I used to do on linux:               \frame{     \frametitle{Title of the slide}     \begin{minipage}{.5\textwidth}     \hspace{-1.25cm}     \centering     \includegraphics[height=0.55\textheight]{figA.pdf}\\     \hspace{-1.25cm}     \caption{caption of figA\\     \scriptsize\textcolor{red}{[Wu et al., Nature (2009)]}}     \end{minipage}%     \begin{minipage}{.5\textwidth}     \hspace{+0.25cm}     \centering     \includegraphics[height=0.55\textheight]{figB.pdf}\\     \hspace{+0.25cm}     \caption{caption of figB\\     \scriptsize\textcolor{red}{[Tizio, Caio et al., Nature (2006)]}}\\     \end{minipage}     }      What should I do to solve this problem? Is it possible to somehow install the "original" `minipage` package? And if not, what are the commands of `genmpage`?


title: Formatting numbers while printing

text: Is there a way to format number strings while printing? Suppose I have the following declaration:               \newcommand{\MyNumberA}{40}     \newcommand{\MyNumberB}{60}      The following in the text:               \the\numexpr(\MyNumberA*\MyNumberB)\relax      will produce 2400. I want to print 2,400 or 2,400.00. Am I asking too much or this can be done? How?


title: Duplicate Contents and Glossary title

text: I am getting duplicates of my glossary and contents titles as shown below. How can I get rid of the first one? ![](http://i.imgur.com/CMMaXha.png?1) Most of my preamble is shown below.               \documentclass[11pt, a4paper]{article}     \usepackage{graphicx,pgfplots,pgfplotstable, acronym, fullpage, booktabs, rotating, multirow, longtable, siunitx, fancyhdr, filecontents, textcomp, gensymb,pdfpages, amsmath, caption, subcaption}     \usepackage[parfill]{parskip}           % Remove indentation     \usepackage[titletoc, page]{appendix}   % To number appendix in toc     \usepackage[section]{placeins}          % To stop figures floating across sections     \usepackage[hidelinks]{hyperref}        % For clickable urls     \usepackage{cleveref}                   % To allow \cref to be used     \usepackage[T1]{fontenc}                % Use EC fonts     \usepackage[utf8]{inputenc}             % Encoding     \usepackage{csquotes}                   % To manage quotes     \usepackage[english]{babel}             % Language selection     \usepackage[acronym,toc,style=tree, nonumberlist, shortcuts]{glossaries}     \usepackage[backend=biber, citestyle=authoryear,doi=true,url=true]{biblatex}


title: Error kile 3 beta on ubuntu 12.10

text: I've installed the new `kile 3 beta` (on `ubuntu`) but now it shows this problem: > [Kile] Unknown tool preview-PDFLaTeX.. How can i fix it or downgrade `kile` from 3 beta to 2.1?


title: steps in the proof, equation confusion

text: So if I want to list out the steps of my proof in multiple locations if I use                \begin{align}       fdsfdsf \\      dsfds \\      \end{align}            blah blah            \begin{align}      dsfdsf \\      dsfds \\      \end{align}      or even using equation instead of align, how come the numbers continue? So the first time I use it my steps will be 1-3, then the next time I use align or equation it wills tart from step 4? How can I get it to restart the numbers in the steps? Thanks!


title: How to avoid that a WIDE item push all the other columns?

text: I´m trying to finish my flowchart (with the inestimable help of Herbert and Bernard) How to avoid that a WIDE item (with no elements on its sides) push all the other columns?? I want the othe columns be in the same place as WIDE ITEM were a normal item (or it donesn´t exists.) ![enter image description here](http://i.stack.imgur.com/D4wkm.jpg) Code:               \documentclass[12pt,a4paper]{article}     \usepackage{amsmath,amsfonts,amssymb,latexsym}          \usepackage{pst-node}     \usepackage{pst-blur}          \usepackage{pstricks}%     \usepackage[utf8]{inputenc}     \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{amsmath,amsfonts,amssymb,latexsym}          \usepackage{graphicx}          \newpsobject{cnodeblue}{cnode}{fillstyle=solid,fillcolor=blue}     \newpsobject{cnodepink}{cnode}{fillstyle=solid,fillcolor=pink}     \newpsobject{cnodegreen}{cnode}{fillstyle=solid,fillcolor=green}     \newpsobject{psframegray}{psframe}{fillcolor=lightgray,linestyle=none,shadow,blur}          \begin{document}     \resizebox{18cm}{!}{    % if you want to resize                    \psset{framearc=0.2, shadowcolor=black!70, shadowangle=-90, unit=1.0cm}     \def\pscolhookii{\hskip 2cm}     \def\pscolhookiii{\psset[pst-node]{mcol = l}}               \begin{psmatrix}[rowsep=2,colsep=0.1]% defines the distance between two frames     %      & [name = SA]       \psframegray(-1.00,-1.00)(1.00,1.00)         \cnodeblue(0,0){0.15}{Current}         \rput[t](0,-1.15){Solución Actual}&         \\[1.2cm]     %         & [name=GV]         \psframegray(-1.00,-1.00)(1.00,1.00)%         \cnodeblue(0,0){0.15}{Current}         \cnodepink(-0.75,0.75){0.15}{Current}         \cnodepink(0,0.65){0.15}{Current}         \cnodepink(0.75,0.75){0.15}{Current}         \cnodepink(-0.55,0.15){0.15}{Current}         \cnodepink(0.65,0.15){0.15}{Current}         \cnodepink(-0.75,-0.55){0.15}{Current}         \cnodepink(-0.05,-0.5){0.15}{Current}         \cnodepink(0.65,-0.65){0.15}{Current}         \cnodepink(0.35,-0.40){0.15}{Current}         \rput[t](0,-1.15){Generar Vecindad}         \\[1.2cm]         %~\\        & [mnode = dia, shadow=true, linearc = 0.05,framesep=0.1,name = Vvacia]         \begin{tabular}{c}¿Vecindad=$\emptyset$? \end{tabular}        & [mnode = oval, shadow=true, linearc = 0.05,framesep=-0.22,name = LTfin]         \begin{tabular}{c}$\bullet$Finalizar\\$\bullet$Eligir Mejor\\Solución Visitada\end{tabular}         \\[0.75cm]     %       [name=Wr]        \psframegray(-1.00,-1.00)(1.00,1.00)         \cnodeblue(0,0){0.15}{Current}         \cnodepink(-0.75,0.75){0.15}{Current}         \cnodepink(0,0.65){0.15}{Current}         \cnodepink(0.75,0.75){0.15}{Current}         \cnodepink(-0.75,0.15){0.15}{Current}         \cnodegreen(0.65,0.15){0.15}{Boa}         \cnodepink(-0.75,-0.55){0.15}{Current}         \cnodepink(-0.05,-0.5){0.15}{Current}         \cnodepink(0.65,-0.65){0.15}{Current}         \cnodepink(0.35,-0.40){0.15}{Current}         \psset{linecolor=red,linewidth=0.09,opacity=0.3}         \psline(0.40,0.40)(0.90,-0.10)         \psline(0.40,-0.10)(0.90,0.40)         \rput[t](0,-1.15){Eliminar Vecino Elegido}                    & [name=EMV]         \psframegray(-1.00,-1.00)(1.00,1.00)         \cnodeblue(0,0){0.15}{Current}         \cnodepink(-0.75,0.75){0.15}{Current}         \cnodepink(0,0.65){0.15}{Current}         \cnodepink(0.75,0.75){0.15}{Current}         \cnodepink(-0.75,0.15){0.15}{Current}         \cnodegreen(0.65,0.15){0.15}{Boa}         \psline[linewidth=0.1]{->}(1.5,-0.2)(0.84,0.16)         \cnodepink(-0.75,-0.55){0.15}{Current}         \cnodepink(-0.05,-0.5){0.15}{Current}         \cnodepink(0.65,-0.65){0.15}{Current}         \cnodepink(0.35,-0.40){0.15}{Current}         \rput[t](0,-1.15){Elegir Mejor Vecino}&         \\[1cm]     %         [mnode = dia, shadow=true, linearc = 0.05,framesep=-0.2,name = CA]         \begin{tabular}{c}¿Verifica\\Criterio de\\Aspiración?\end{tabular}         & [mnode = dia, shadow=true, linearc = 0.05,framesep=-0.2,name = LT]         \begin{tabular}{c}¿Está en\\Lista Tabú? \end{tabular}         \\[0.32cm]     %         & [name=Ace, mnode = r]         \psframegray(-1.00,-1.00)(1.00,1.00)         \cnodegreen(0.65,0.15){0.15}{Boa}         \psline[linewidth=0.1]{->}(1.5,-0.2)(0.84,0.16)         %\rput[t](0,-1.15){\tabular{c}$\bullet$ Actualizar Lista Tabú\\$\bullet$ Aceptar Vecino Elegido como nueva solución\\$\bullet$ Repetir proceso hasta alcanzar el máximmo de iteraciones.\\$\bullet$ Si se han agotado la iteraciones,\\ tomar como Solución, la mejor de todas las visitadas\endtabular}         &\\[1cm]         &          [mnode = oval, shadow=true, linearc = 0.05,framesep=-0.22,name = Repetir]         \begin{tabular}{c}$\bullet$ Actualizar Lista Tabú\\$\bullet$ Aceptar Vecino Elegido como nueva solución\\$\bullet$ Repetir proceso hasta alcanzar el máximmo de iteraciones.\\$\bullet$ Si se han agotado la iteraciones,\\ tomar como Solución, la mejor de todas las visitadas \end{tabular} &                \end{psmatrix}     %%% Links     \psset{linewidth=3pt, linecolor=red, arrows=->, nodesep=4pt,  linearc=0.25, angleB=180, shortput=nab}     \ncline{LT}{CA}_{Si}     {\psset{nodesepB = 1.15}%      \ncline[nodesepA = 1.52cm]{SA}{GV}%      \ncline[nodesepA = 1.52cm,nodesepB=0.32]{GV}{Vvacia}      \ncline[nodesepA = 0.40cm]{Vvacia}{EMV}^{No}      \ncline[nodesepA = 0.1cm]{Vvacia}{Vfin}      %\ncline[nodesepA = 1.52cm]{GV}{EMV}      \ncline[nodesepA = 9pt]{LT}{Ace}^{No}      \ncline[nodesepB = 1.52cm]{CA}{Wr}^{No}      \ncangle[nodesepA = 7pt, angleA = -90]{CA}{Ace}^{Si} }%      \ncline[nodesepA = 1.67cm]{EMV}{LT}%%      \midAB(GV)(EMV){I}      \ncangle[nodesepA = 1.15, angleA = 90]{Wr}{Vvacia}      \ncline[nodesepA = 1.45cm]{Ace}{Repetir}     }               \end{document}       * * * This issue solved could help me to do flowcharts similar to this one, where you can see in row 3 that a part of 2 item are under one column ) ![enter image description here](http://i.stack.imgur.com/SNKr9.jpg)


title: New warning on Console

text: I've just started getting the following warning (or rather, _two_ warnings) on my console:               ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.      What _do_ they mean? More precisely, typesetting:               %!TEX TS-program = xelatex     \documentclass[a4paper]{report}     \usepackage{amsmath,mathtools,xparse}     %%Greek letters     \makeatletter     \ExplSyntaxOn     \NewDocumentCommand{\@dg}{O{0.88}oO{}}     {\str_if_eq:nnTF{#1}{n}             {\IfValueTF{#2}                 {#2{\scalebox{0.88}[0.88]{$#3\delta$}}}                 {\errmessage{Too few arguments}\errhelp{If you specify `n' as the first argument, the second optional argument must be specified, otherwise use a number as the first argument or specify no optional argument.}}             }{\str_if_eq:nnTF{#1}{e}                 {\IfValueTF{#2}                     {#2{\scalebox{0.65}[0.65]{$#3\delta$}}}                     {\scalebox{0.65}[0.65]{$#3\delta$}}             }{\str_if_eq:nnTF{#1}{b}                     {\IfValueTF{#2}                         {#2{#3\delta}}                         {{#3\delta}}              }{\IfValueTF{#2}                         {#2{\scalebox{#1}[#1]{$#3\delta$}}}                         {\scalebox{#1}[#1]{$#3\delta$}}     }}}}     \newcommand{\dg}{\@dg}     \makeatother     \ExplSyntaxOff          \begin{document}     $$\overbracket[0.01pt]{\underline{E_{ii}^2}}^{E_{ii}}+\overbracket[0.01pt]{E_{ii}E_{kk}}^{\dg[n][][\scriptstyle]_{ik}E_{ik}}-\overbracket[0.01pt]{E_{ii}E_{ik}}^{E_{ik}}-\overbracket[0.01pt]{E_{ii}E_{ki}}^{\dg[n][][\scriptstyle]_{ik}E_{ii}}+\overbracket[0.01pt]{E_{kk}E_{ii}}^{\dg[n][][\scriptstyle]_{ik}E_{ki}}+$$     \end{document}      gives:               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./gunguMWE.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mathtools.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/tools/calc.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mhsetup.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3packages/xparse/xparse.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/expl3.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3names.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3basics.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3expan.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3tl.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3seq.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3int.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3quark.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prg.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3clist.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3token.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prop.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3msg.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3file.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3skip.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3keys.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3fp.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3box.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3coffins.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3color.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3luatex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3candidates.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty)))     (./gunguMWE.aux)     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def))     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty) [1]     (./gunguMWE.aux)     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: height=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: height=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: height=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: height=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: height=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.     ** WARNING ** Too thin line: width=655 (0.00995717 bp)     ** WARNING ** Please consider using "-d" option.      )     Output written on gunguMWE.pdf (1 page).     SyncTeX written on gunguMWE.synctex.gz.     Transcript written on gunguMWE.log.      Interestingly enough, with `pdfTeX` I get:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./gunguMWE.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mathtools.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/tools/calc.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mhsetup.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3packages/xparse/xparse.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/expl3.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3names.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3basics.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3expan.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3tl.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3seq.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3int.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3quark.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prg.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3clist.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3token.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prop.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3msg.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3file.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3skip.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3keys.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3fp.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3box.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3coffins.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3color.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3luatex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3candidates.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty)))     (./gunguMWE.aux)     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     (/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ))) (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty) [1{/usr/lo     cal/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./gunguMWE.aux     ) )</usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pf     b></usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi5.pfb>     </usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></     usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></us     r/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/l     ocal/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>     Output written on gunguMWE.pdf (1 page, 46192 bytes).     SyncTeX written on gunguMWE.synctex.gz.     Transcript written on gunguMWE.log.      that's to say, the warnings vanish. Since I've given all the console messages, could you tell me also what ll. 2-3 mean? And am I right in guessing the last lines in the `pdfTeX` version, just before `Output written on`, have to do with font definitions? And how are they dealt with with `XeTeX`?


title: Strange behaviour of VIM-Latex

text: When I try to type certain words (in insert mode), suddenly a lot of code is inserted. For example, if I try to type "DEFINE", once I enter the F, this is inserted               D\begin{figure}[<+htpb+>]                                                                 \begin{center}                                                                            \includegraphics{<+file+>}                                                        \end{center}                                                                          \caption{<+caption text+>}                                                            \label{fig:<+label+>}                                                             \end{figure}<++>         How can I stop VIM from doing this? Thanks!


title: How to have fancyvrb number every other line starting with the first?

text: The following MWE using `fancyvrb` produces line numbers every other line, starting on the second line, like so:                 Writing some test     2       third line     4 fourth line       fifth line      so the numbers are `2, 4, 6,...`. I would like the numbers to start on the first line and go every other line, as in:               1 Writing some test          3 third line       fourth line     5 fifth line      How can I achieve this? MWE:               \documentclass{article}     \usepackage{fancyvrb}     \begin{document}     \begin{Verbatim}[numbers=left,firstnumber=1,stepnumber=2]     Writing some test          third line     fourth line     fifth line     \end{Verbatim}     \end{document}


title: Why does a plot of a reciprocal function using pgfplots look wrong?

text: I am trying to plot the function `1/x^2` but the result is obviously wrong, here is how it looks like ![enter image description here](http://i.stack.imgur.com/iMpHU.png) here is the code               \begin{center}          \begin{tikzpicture}          \begin{axis}[          %xlabel=$x$,         %ylabel={$f(x) = x^2 - x +4$}   ]          \addplot[blue] {1/(x^2)};         \end{axis}         \end{tikzpicture}     \end{center}      Any suggestions on how to fix this?


title: Problem of alignment of blocks in two columns?

text: Consider the following code of a beamer frame:               \begin{frame}{Test}     \begin{block}{Single column}     \justifying     This is a block.     \end{block}     \begin{columns}[onlytextwidth]     \begin{column}{0.45\textwidth}     \begin{exampleblock}{Left}     \justifying     This is the first column.     \end{exampleblock}     \end{column}     \begin{column}[right]{0.45\textwidth}     \begin{exampleblock}{Right}     \justifying     This is the second column.     \end{exampleblock}     \end{column}     \end{columns}     \end{frame}      It produces the following result: ![Illustration](http://i.stack.imgur.com/NagEo.png) The problem is that the right block is not right aligned with the full text width. How to align it correctly ? EDIT: I load the following packages:               \usepackage{marvosym} %     \usepackage{ragged2e} % define justifying     \usepackage{hyperref} %     \usepackage{transparent} %


title: Devanagari/Indic in LuaTeX

text: As I gather from the mailing lists, LuaTeX is currently unable to render devanagari properly because it doesn't understand the complex ligature rules involved. This is my experience with test documents, as well. Is there anything I can do about this?   * Can I somehow add proper devanagari rendering myself without digging deep into the guts of LuaTeX? I'm handy enough with code but suspect the core processes here go way above my paygrade.    * Since the answer to the first question is probably "very no", can anyone suggest a kludge that will get small chunks of accurate devanagari into a predominantly English document? Right now, I use a perl script to convert a minimally marked up document into (Xe)LaTeX. Eventually, I'd like to convert my process over to ConTeXt-mkiv, but devanagari support is a hard requirement. UPDATE:   phg's comment has me hopeful that I'm just doing something wrong. I'm still trying to wrap my head around typescripts, in particular. The following example:               \definefontfeature[dev][devanagari-two][script=dev2]          \starttypescript [serif] [devanagarimt]      \definefontsynonym [DevanagariMT-Light]       [name:DevanagariMT]        [features=dev]     \stoptypescript          \starttypescript [serif] [devanagarimt]      \usetypescript[serif][fallback]      \definefontsynonym [Serif]                    [DevanagariMT-Light]       [features=dev]     \stoptypescript          \starttypescript [DevanagariMT]       \definetypeface [DevanagariMT] [rm] [serif] [devanagarimt] [default]      \stoptypescript          \usetypescript[DevanagariMT]     \setupbodyfont[DevanagariMT,11pt]               \starttext     श्रेयो हि ज्ञानमभ्यासाज्ज्ञानाद्ध्यानं विशिष्यते ।          ध्यानात्कर्मफलत्यागस्त्यागाच्छन्तिरनन्तरम् ॥     \stoptext      Produces this:   ![Broken sample \(from LuaTeX\)](http://i.stack.imgur.com/nIWdl.png) But it should produce this (from XeTeX):   ![Working sample \(from XeTeX\)](http://i.stack.imgur.com/VGzWx.png) I suspect that some devanagari-specific processing is happening here, because some things do indeed work: the second word: ह + ि produces हि (like it should), but   the first glyph of the first word: श + ् + र + े should produce श्रे but doesn't. This might just be an incomplete implementation as yet, but I hope there's a mistake in my code. Is there anything obviously wrong here? I've tried a few different fonts with similar results.


title: Indenting within table column

text: I have the following table (using booktabs):               \begin{table}     \caption{Table}     \centering     \begin{tabular}{ccccc}     \toprule     & \multicolumn{4}{c}{Lags}\\[\defaultaddspace]      & 5 & 10 & 15  & 20 \\[\defaultaddspace]      EUR/USD &  &  &  &  \\[\defaultaddspace]      Ljung-Box-Test & 0,4936 & 0,7841 & 0,8457 & 0,8822 \\     \bottomrule     \end{tabular}     \end{table}      which results in the following table: ![Result of above code](http://i.stack.imgur.com/o1Teu.png) I would like to establish some hierarchy by indenting the "Ljung-Box-Test" text within the first column (I will be adding more currency pairs / categories below). Any help would be much appreciated! Thanks!


title: beamer column footnote produces format lose.

text: Using the following code               \documentclass[demo]{beamer}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @misc{A01,         author = {Author, A. and Buthor, B. and Cuthor, C.},         year = {2001},         title = {First Article Title Apha AAAAAAAAAAAAA AAA AA AA AA A AAA A A A AAAA}     }     @misc{A02,         author = {Author, A. and Buthor, B. and Cuthor, C.},         year = {2002},         title = {Second Article Title  Beta BBB B B B BBBB BBBBBB BBBBB BBBBB B B B BBBBB BBB BB}     }     \end{filecontents}               \usepackage     [   style=numeric-comp,                                 autocite=superscript, % apply options here.                                 sortcites,                                 backend=bibtex                             ]{biblatex}     \usepackage{scalefnt,lmodern}          \addbibresource{\jobname.bib}     \usetheme{Warsaw}               \begin{document}          \section{Introduction}           \begin{frame}     \frametitle{Slide with references at the bottom}     \begin{columns}     \begin{column}{5cm}             \begin{figure}             \includegraphics[width=\textwidth, height=.5\textwidth]{mypicture}              \end{figure}             \end{column}     \begin{column}{5cm}     \begin{itemize}     \item<1-> in A happens that aa aaaaa aa\footnotemark[1]     \item<1-> and aslo that A aaa a aaa a a aaaa aaa aaaaa aaa\footnotemark [1]     \item<1-> 5\textsuperscript{th} cause of bb bbbbb\footnotemark[2]     \item<1-> 1\textsuperscript{th} cause of bbb bbb bb\footnotemark[2]      \end{itemize}     \end{column}     \end{columns}     \footnotetext[1]{\fullcite{A01}}     \footnotetext[2]{\fullcite{A02}}     \end{frame}          \begin{frame}     \frametitle{Slide with references at the bottom}     \begin{columns}     \begin{column}{5cm}             \begin{figure}             \includegraphics[width=\textwidth, height=.5\textwidth]{mypicture}              \end{figure}             \end{column}     \begin{column}{5cm}     \begin{minipage}[T]{\textwidth}     \begin{itemize}     \item<1-> in A happens that aa aaaaa aa\footnotemark[1]     \item<1-> and aslo that A aaa a aaa a a aaaa aaa aaaaa aaa\footnotemark [1]     \item<1-> 5\textsuperscript{th} cause of bb bbbbb\footnotemark[2]     \item<1-> 1\textsuperscript{th} cause of bbb bbb bb\footnotemark[2]      \end{itemize}     \footnotetext[1]{\fullcite{A01}}     \footnotetext[2]{\fullcite{A02}}     \end{minipage}     \end{column}     \end{columns}          \end{frame}          \end{document}      When placing the footnotes to the right column to let the left column free the references end up out of the slide as can be seen in the picture. Why is this happening isn't it supposed to be taken care by using `minipage`? Or is the problem that the footnote environment takes the margins from somewhere else? Is there any way to visualize which margins are the environments for a particular slide? ![enter image description here](http://i.stack.imgur.com/M4iR7.png)


title: itemize under sf produce a font warning

text: It seems that `textbullet` has no `sf` version. When itemize is in a `\sf` environment, I receive the following warning:               LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined     (Font)              using `OMS/cmsy/m/n' instead     (Font)              for symbol `textbullet' on input line 14.      Here is a minimalist example:               \documentclass{article}     \begin{document}     {\sf       \begin{itemize}         \item Test       \end{itemize}     }     \end{document}      In particular, I was interested on doing this when the package `txfonts` is loaded, but I receive a similar warning:               LaTeX Font Warning: Font shape `OMS/txss/m/n' undefined     (Font)              using `OMS/txsy/m/n' instead     (Font)              for symbol `textbullet' on input line 14.      I have noticed that by uploading the `textcomp` package (before `txfonts` in the second example), I get rid of the warning. Can somebody identify what lines in that package avoid the warning? In that case, I could just put the needed lines in my file, without uploading the full package. I guess that this package defines the missing font, but I do not know how to find the specific line that I need.


title: Drawing a Neural Network architecture

text: I need to draw an image like this: ![](http://i.stack.imgur.com/4dujG.png) I saw this and this, but I could not modify it properly. Basically, I could not write the on the labels. Need your help.


title: Is it possible to use \cline multiple times when using multirow?

text: \documentclass{article}     \usepackage{multirow}     \begin{document}          \begin{table}[ht]     \begin{center}     \begin{tabular}{|c|c|c|c|c|c|c|c|}\cline{3-8}     \multicolumn{2}{c|}{\multirow{2}{*}{}}&\multicolumn{3}{c|}{Singular}&\multicolumn{3}{c|}{Plural}\\\cline{3-8}     \multicolumn{2}{c|}{}&Neuter&Masculine&Feminine&Masculine&Feminine&Neuter\\\hline     \multicolumn{1}{|c|}{\multirow{2}{*}{I}}&Inclusive&\multicolumn{3}{|c|}{\multirow{2}{*}{O}}&\multicolumn{3}{c|}{X}\\\cline{2-8}     &Exclusive&\multicolumn{3}{c|}{}&\multicolumn{3}{c|}{X}\\\hline     \multirow{2}{*}{II}&Informal&\multicolumn{3}{|c|}{X}&\multicolumn{3}{c|}{X}\\\cline{2-8}     &Formal&\multicolumn{6}{|c|}{X}\\\hline     \multirow{2}{*}{III}&Informal&\multicolumn{1}{c|}{\multirow{2}{*}{O}}&X&X&\multicolumn{2}{|c|}{X}&\multicolumn{1}{c|}{\multirow{2}{*}{O}}\\\cline{2-8}     &Formal&&\multicolumn{4}{|c|}{X}&\\\hline          \end{tabular}     \end{center}     \label{tab:multicol}     \end{table}          \end{document}      I am using multiple instantiations of `\multicolumn` and `\multirow`, and I was wondering if it were possible to use a discontinuous `\cline` so as not to strike though the O's in the code above. Any tips?


title: Why is it discouraged to use starred sectioning commands?

text: I'm currently considering to use `\section*` to add a nomenclature. Unfortunately I can't find the exact answer, but I've read on stackexchange that using starred versions of sectioning commands is considered bad practice. Can anyone tell me why?


title: How can latex and pdflatex be both symbolic links to same executable (pdftex) and not behave the same?

text: When I run               $ latex my_doc.tex      and               $ pdflatex my_doc.tex      it works, and when I run               $ pdftex my_doc.tex      it doesn't work. The thing is I noticed that both `LaTeX` and `pdflatex` commands are symbolic links to the same `pdftex` executable. That is,               $ which latex pdflatex pdftex      yields               /usr/bin/latex     /usr/bin/pdflatex     /usr/bin/pdftex      and               $ ls -l /usr/bin/latex /usr/bin/pdflatex /usr/bin/pdftex      yields               /usr/bin/latex -> pdftex     /usr/bin/pdflatex -> pdftex     /usr/bin/pdftex      So how is it possible that commands being symbolic links to a same executable do not behave in the same way ? Thanks. I have `Ubuntu 12.10` with TeXLive-full 2012.20120611-4 installed.


title: Import a template from a zip file

text: I am trying to use the AIAA template in Texstudio, however I do not know how. I have been using ShareLatex for the past year now and would like to start using Texstudio. So how do I take the downloaded zip folder and use the template? Each time I open the femplate file to the editor, it will not compile and I have no idea why.


title: How to make a global setting to box every displayed and inline math?

text: I have no idea how to make a global setting to box every displayed and inline math. The box is decorated with colored frames, colored background and colored foreground (either text or math). By making the global setting, I can easily turn it on or off and the remaining is left untouched. I know there are 2 macros, `\everydisplay` and `\everymath`, but I cannot make use of them other than changing the stroke color with `\color{red}`, for example.


title: Drawing a diagram with vectors

text: Is it possible to draw a diagram like this in LaTeX? ![enter image description here](http://i.stack.imgur.com/2tQBo.png)


title: tab is not working in latex

text: I am new in the world of latex . At this time , now I am writing thesis . I want to have tabs in tex document . For this purpose , I have written the following code .               \hspace{2cm}$ \mathbf{a_{11}x_1 + a_{12}x_2 +. . . + a_{1n}x_n = b_1 } $ \newline                         \hspace{2cm}$\mathbf{a_{21}x_1 + a_{22}x_2 +. . . + a_{2n}x_n = b_2 }$\newline                         \hspace{2cm} ...     ...     ...   ...    ...  ... \newline                         \medskip ...     ...     ...   ...    ...  ...\newline                         \medskip ...     ...     ...   ...    ...  ...\newline                         \medskip $\mathbf{a_{n1}x_1 + a_{n2}x_2 +. . . + a_{nn}x_n = b_n }   $ \newline       But this code generates tab in first line and then in the next line the tabs is not generated . Why ? Please help .


title: Decoration marking arrow style ignored in custom node shape?

text: I have this dimension line macro which I've put together from examples here; and as it should be visible from the MWE (below) output: ![test05a](http://i.stack.imgur.com/8IpHv.png) ... it works just dandy fine when called from "regular" `\draw` in a `{tikzpicture}` (A) - however, when the `\draw` is part of call to a custom node shape `\pgfdeclareshape{myshape}{...` - then both the rotation, and the scale options of the arrow are _ignored_ , when the dimension line (M) is drawn ?! (EDIT: I just tried the color parameter too; weirdly, that one is _not_ ignored ??) Why does this happen - and how can I get this arrowed line to work also in a custom shape, as it does in normal circumstances? The MWE:               \documentclass[varwidth,tightpage,border=1bp]{standalone}          \usepackage{tikz}     \usetikzlibrary{decorations}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{shapes}     \usetikzlibrary{calc}          \pagecolor{yellow!15} % ignored with preview, but not w/ varwidth          \begin{document}          Hello:          \begin{tikzpicture}          \tikzset{       %instead of dimen/.style={, using tconarrC for dimen!       declare function={multip(\a,\b)=\a*\b;}, % otherwise cannot use pgfmathparse here       tconarrC/.style n args={5}{         line width=#3,         draw=#5,         decoration={markings,           mark=at position 0 with {\arrow[rotate=180,scale=#4,fill=#5]{#1}},            mark=at position 1 with {\arrow[scale=#4,fill=#5]{#2}},          },         shorten >={multip(#4,#3)},         shorten <={multip(#4,#3)},         postaction={decorate},       },       tconarrC/.default={latex}{latex}{3pt}{1.3}{black},       dimen/.style={|-|,         tconarrC={latex}{latex}{\pgflinewidth}{2.0}{black},         every rectangle node/.style={midway,},       },       minbox/.style={shape=rectangle,inner sep=0pt,outer sep=0pt,minimum size=0pt},     } % end tikzset     \makeatletter     \pgfdeclareshape{myshape}{ %       \inheritsavedanchors[from={rectangle}] %       \inheritbackgroundpath[from={rectangle}] %       \inheritanchorborder[from={rectangle}] %       \foreach \x in {center,north,north east,north west,south,south east,south west,east,west}{ %         \inheritanchor[from={rectangle}]{\x} %       } %       \backgroundpath{ %         \edef\ename{\tikz@fig@name} %         \node[rectangle,minimum size=10pt,draw] (\ename-A) at (\ename.east) {};         \node[rectangle,minimum size=10pt,draw] (\ename-B) at (\ename.west) {};       }       \foregroundpath{ %         % here, minbox must have a shape (e.g. rectangle) defined!         % else ! TeX capacity exceeded, sorry [grouping levels=255].         \draw[dimen] (\ename-A.center) -- (\ename-B.center)           node[minbox,above=0pt] (\ename-L) {M}         ;       }     }          \node[fill] (origin) at (0,0) {};          \node[myshape,minimum size=2cm,anchor=south west] (tshape) at (1,1) {};          \draw[dimen] ($(tshape-A)-(0,2em)$) -- ($(tshape-B)-(0,2em)$) node[above=0pt] {A};          \end{tikzpicture}     \end{document}


title: Read authors from file

text: At our university, we students write a lot of summaries in LaTeX. We have the convention of adding a CONTRIBUTORS.txt file to the repository containing the document code, which lists all contributors line by line. A file could look like this:               John Doe (jdoe)     Jane Roe (jroe)      I'd like to use those names in the `\authors` declaration. The lines in the textfile (delimited by newlines) should be shown in the document separated with commas or newlines. The current code I'm using:               \author{\InputIfFileExists{CONTRIBUTORS.txt}{\relax}{https://github.com/HSR-Stud/}}      ...ignores newline characters, as LaTeX requires either `\\\` or an empty line to insert an actual newline in the generated document. How can I insert all the names from the CONTRIBUTORS.txt file as comma or newline separated values? Bonus question: How can I cut off the part inside the braces, so that the example file above would result in `John Doe, Jane Roe`? * * * Edit: The solution should also work if a person has two or more names (like "Gian Marco De Luca").