title: Biblatex prints white space plus period before PART field

text: When I print the bibliography with a BOOK entry using the PART field, biblatex prints white space followed by a period before the PART field is printed. Is this a bug, or am I missing something?               \documentclass{article}     \usepackage{csquotes}     \usepackage[             bibstyle = authoryear,             citestyle = authoryear-comp,             sorting = nyt,             sortcites = false,             language = american,             abbreviate = false,             backend = biber]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{smith1965,         AUTHOR = "John Smith",         LOCATION = "London",         NUMBER = "3",         PART = "Part one",         PUBLISHER = "Johnson Press",         SERIES = "Classic books",         TITLE = "A good book",           YEAR = "1965"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \noindent     Text \parencite{smith1965}.     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/eMxjS.png)


title: CV Style and Layout

text: Can anyone tell me which syle the following CV is compiled from? http://www.cns.nyu.edu/~umesh/bio/rajashekarCV.pdf


title: subfigure in llncs class

text: When I am using `\usepackage{subfigure}` with `\documentclass{report}` it is working fine and I am able to use it but if I use `\usepackage{subfigure}` with `\documentclass{llncs}` then the file is not compiled and gave me output as 0 error ... 0 Page(s) with Couldn't file input index file file_name and file_name.idx Can someone help me what should I do? I want to display two figures side by side.


title: Too many erros after upgrading TeX

text: I am getting too many errors since I upgraded my computer with the latest version of TeX. For instance, the following piece of code doesn't work any more. Could you help me do a clean install and \ or make the following piece of code work again? I am using the TeXworks editor and I run Ubuntu 12.04 LTS.               \documentclass[a4paper]{article}          \usepackage[polutonikogreek,english]{babel}     \usepackage[utf8]{inputenx}          \newcommand{\greek}[1]{{\selectlanguage{polutonikogreek}#1}}          \listfiles          \begin{document}          Protagoras (\greek{Πρωταγόρας}) says that ``Man is the measure of all things''     (\greek{Ἄνθρωπος μέτρον}), meaning that there is no objective truth. One     opinion can be better than another, but it cannot be \emph{truer}.          \end{document}      EDIT: I attached the .log file.


title: How can I fix this problem: "Cannot determine size of graphic"

text: > **Possible Duplicate:**   >  MikTex error for PNG images when trying to produce DVI I have the following line in my tex file:                 \includegraphics[width=1.0\textwidth]{pic.png}      There is no error with `pdflatex`, but When I try to build it by `latex` command I get this error: _Cannot determine size of graphic pic.png (no Bounding box)._ How can I fix this error? **Update:** I could fix(?) it by inserting two more values(`natwidth` and `natheight`) to `includegraphics'. Now I can build my file, however I'm not sure that it is the right way to do it.


title: Without using intersection method, can we find the following vector component?

text: Given that two vectors, i.e., green and red ones. The objective is to find the blue one such that the resultant of the green and blue ones is parallel to the red one and with the same direction as the direction of the red vector. ![enter image description here](http://i.stack.imgur.com/NCyfk.png)               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-eucl}          \begin{document}          \begin{pspicture}[showgrid=true](4,3)     \pnode(0,0){O}     \pnode(4,3){A}     \pnode(0,2){B}     \pnode(A|B){C}     \psset{arrows=->}     \psline[linecolor=red](A)     \psline[linecolor=green](B)     \pstInterLL[PointName=none,PointSymbol=none]{B}{C}{O}{A}{D}     \psline[linecolor=blue](D|O)     \psline[linestyle=dashed,linecolor=gray,arrows=-](B)(D)(D|O)     \end{pspicture}          \end{document}      How to get the blue one in the simplest way without using intersection? I want to apply the method in question for drawing the tension vector and its horizontal component as shown in the following figure (but such vectors have not been implemented yet): ![enter image description here](http://i.stack.imgur.com/oeskc.png)


title: Disable parentheses auto-completion in TeXStudio 2.7.0

text: Previously, it was possible to disable parentheses auto-completion in TeXStudio through the advanced options in the Configure options. Is this still possible in version 2.7.0? Here's a screen shot of my configuration window for completion and the parentheses option is no longer there: ![TeXstudio configure screenshot](http://i.stack.imgur.com/XS2B1.png) Any tips on disabling parentheses (including braces and brackets) in 2.7.0?


title: 'fi' or 'fl' result in big "S"-like symbol

text: I use LyX with XeTeX, and the output font is DejaVu Sans. When I write in the input text 'fi' or 'fl', the output text displays a strange big "S"-like symbol. I don't know why is that. Any help would be appreciated.


title: How can I write greek in TexnicCenter with Miktex

text: Using the standard babel package is compeltely counter-intuitive as the letters in the keyboard do not match the babel package and also the accent is in a different key which makes it impossible to write anything longer than a couple of lines (without real patience). What I am looking is to directly type in greek in the TexnicCenter environment without having use the babel settings. As suggested here `http://www.eelvex.net/latex/greek-in-latex/` these two commands in the preamble should work `\usepackage[english,greek]{babel} \usepackage[iso-8859-7]{inputenc}` but in that case the greek text compiles to ';;;;;;'. When I change the setting to iso-8 `\usepackage[utf-8]{inputenc}`the document does not compile at all. Also I am trying to use `\usepackage{auto-greek}` but in that case I cannot find the package. When I am saving the .tex file the default setting is in ANSI rather in any of the UTF options. When I change the encoding of the final saved file to UTF it compiles but still no greek in the output. How is it possible to write greek direct to TexnicCenter and getting a proper document? (A small example of a document would greatly help) Thanks


title: Defining a list and range of \ang values in siunitx

text: The angle processing function `\ang` provided in `siunitx` to print angles are printed in arc format with degree, arcmin and arcsec separated by semi-colons:               \ang{1;2;3}      Is it possible to define a macro for lists and ranges of angular quantities in a similar way as the `\SIlist` and `\SIrange` functions to handle lists and ranges of numbers?


title: Listings float with sublistings

text: I want to have 2 listings side-by-side in a float environment with its own name (i.e. Listing 1 instead of Figure 1) and counter (so that I can have a separate listoflistings besides listoffigures). I also want the subcaptions aligned and _not_ the listings themselves. This is about what I'd imagine: ![Small picture to show what I have in mind.](http://i.stack.imgur.com/w2WbN.jpg) I don't see how to get the captions aligned with the subfigure package, but it works fine with the subcaption package:               \begin{figure}     \centering     \subcaptionbox{Subcaption a.}%       [.47\textwidth]{\includegraphics[width=.45\textwidth]{imga}}     \subcaptionbox*{}[.03\textwidth]{}     \subcaptionbox{Subcaption b.}       [.47\textwidth]{\includegraphics[width=.45\textwidth]{imgb}}     \caption{Main caption.}     \end{figure}      The problem is that I can't include lstlistings in the subcaption and that I still don't know how to get the separate counter and name from figure. Related question about putting 2 listings side-by-side, which isn't what I have in mind.


title: How can I an place a figure next to an equation?

text: I'm new to LaTeX. This is my first script, an exercise. I'm try to place a 4 figures (`SCfigure`) I already charted with `KmPlot` next to its correspondent equations, but they always appear on the next page. Any suggestions?               \documentclass[a4paper]{report}     \usepackage[spanish,activeacute]{babel}     \usepackage{amssymb,amsmath,amsbsy,amstext,amscd,amsxtra,amsopn}     \usepackage{fullpage}     \usepackage{graphicx,wrapfig,sidecap}     \title{Matem\'atica - Parcial 1}     \author{Ignacio Guerrero\\     Leg.Nº 57.866\\     Univ. Blas Pascal}     \begin{document}     \maketitle          \subsection*{1.a}          \begin{equation*}\label{xx}     \begin{split}     2(x-1)-3(x-4)&=4x\\     2x-2-3x+12&=4x\\     2x-3x-4x&=-10\\     \frac{-5x}{-5}& =\frac{-10}{-5}\\     \\     \boxed{x=-2}     \end{split}     \end{equation*}          \subsection*{1.b}          \begin{equation*}\label{xx}     \begin{split}     x^2-9&=0\\     x^2&=9\\     x&=\pm \sqrt{9}\\     \\     \boxed{x_1=3} & \qquad \boxed{ x_2=-3}     \end{split}     \end{equation*}          \subsection*{2}          \begin{equation*}\label{xx}     \begin{aligned}     (x_1,y_1)=(-2,0) & \qquad  (x_2,y_2)=(1,3)     \end{aligned}     \end{equation*}     \begin{equation*}\label{xx}     \begin{split}     a&=\frac{y_1-y_2}{x_1-x_2}\\     \\     a_1&=\frac{0-3}{-2-1}=\frac{-3}{-3}=1\\     a_2&=\frac{2-k}{-1+6}=\frac{2-k}{5}\\     \\     a_1&=a_2\\     1&=\frac{2-k}{5}\\     5&=2-k\\     \\     \boxed     {k=-3}     \end{split}     \end{equation*}          \subsection*{3.a}          \begin{SCfigure}     \includegraphics[width=7cm,height=7cm]{exer3a}     \caption{La gr\'afica nos muestra que ambas rectas son paralelas dado que compaten la misma pendiente $(a=-3x)$ pero cortan al eje $x$ en distintos puntos. Por lo tanto, el sistema es incompatible.}     \label{3.a}     \end{SCfigure}          \begin{equation*}\label{xx}     \begin{aligned}     \begin{cases}     3x+y&=3\\     x+\frac{1}{3}y&=-1     \end{cases}     \end{aligned}     \end{equation*}          \begin{equation*}     \begin{split}     y_1&=-3z+3\\     y_2&=3(-x-1)=-3x-3     \end{split}     \end{equation*}          \subsection*{3.b}          \begin{equation*}     \begin{split}     \begin{cases}     2x-5y&=4\\     x-3y&=2     \end{cases}     \end{split}     \end{equation*}          \begin{equation*}     \begin{split}     y_1&=\frac{-2x+4}{-5}\\     y_2&=\frac{-x+2}{-3}     \end{split}     \end{equation*}          \begin{equation*}     \begin{split}     x-3y&=2\\     x&=3y+2\\     \\     2(3y+2)-5y&=4\\     6y+4-5y&=4\\     y&=0     \end{split}     \end{equation*}          \begin{SCfigure}     \includegraphics[width=7cm,height=7cm]{exer3b}     \caption{Como se ve en el gr\'afico, correspondinte al punto 3.b, ambas rectas se cortan en el punto $(2,0)$ y por lo tanto, el sistema es compatible determinado.}     \end{SCfigure}          \subsection*{4.a}          \begin{equation*}     \begin{split}     h_{(x)}=f_{(g(x))}&=\sqrt{x^2-2}\\     \\     f_{(x)}&=\sqrt{x}\\     g_{(x)}&=x^2-2     \end{split}     \end{equation*}          \subsection*{4.b}          \begin{equation*}     \begin{split}     h_{(x)}=f_{(g(x))}&=\frac{x+1}{(x+1)^2+2}\\     \\     f_{(x)}&=\frac{x}{x^2+2}\\     g_{(x)}&=x+1     \end{split}     \end{equation*}          \subsection*{5.a}          \begin{equation*}     \begin{aligned}     g_{(x)}=3\cos\left(\frac{x}{2}\right)     \end{aligned}     \end{equation*}          \begin{tabular}{ l | r }     $x$ & $y$\\ \hline     0 & 3\\     1 & 2.63\\     2 & 1.62\\     3 & 0.21\\     $\pi$ & 0\\     4 & -1.25\\     5 & -2.4\\     6 & -2.97\\     $2\pi$ & -3     \end{tabular}          \begin{SCfigure}     \includegraphics[width=7.5cm,height=7.5cm]{exer5a}     \caption{Gr\'afica de la funci\'on $g_{(x)}$, entre $0$ y $2\pi$.}     \end{SCfigure}          \subsection*{5.b}          \begin{equation*}     \begin{aligned}     D=\{0,2\pi\} & \qquad I=\{3,-3\}     \end{aligned}     \end{equation*}          \subsection*{5.c}          \text{La funci\'on no es biyectiva $\mathbb{R}\rightarrow\mathbb{R}$ dado que, por ejemplo, para $x=3\pi\rightarrow y=0$ o para $x=4\pi\rightarrow y=3$, etc.} \\     {Sin embargo, s\'i lo es dentro de $D_f\rightarrow I_f$.}          \subsection*{6.a}          \begin{equation*}     \begin{aligned}     f_x=\left\{      \begin{array}{l l}     -2 & \quad -1\leq x < 0 \\      3-x & \quad  0\leq x \leq \\     -\frac{x^2}{2}+8 & \quad 3< x \leq 5     \end{array}     \right.     \end{aligned}     \end{equation*}               \begin{equation*}     \begin{aligned}     \text{La siguiente f\'ormula nos indica cu\'al es el eje de simetr\'ia de la funci\'on:}\\     x_v&=\frac{-b}{2a}=\frac{0}{2 \frac{1}{2}}=0\\     \text{Reemplazando $x_v$ en la funci\'on, obtenemos que...}\\     y_v&=-\frac{0^2}{2}+8=8\\     \text{...de lo cual obtenemos el v\'ertice de la par\'abola.}\\     v&=(x_v,y_v)=(0,8)     \end{aligned}     \end{equation*}          \begin{SCfigure}     \includegraphics[width=7.5cm,height=7.5cm]{exer6a}     \caption{Gr\'afica de la funci\'on $f_{(x)}$, del ejercicio 6.}     \label{3.a}     \end{SCfigure}          \end{document}


title: Problems in expansion of a setcounter macro (Use of \csname doesn't match its definition)?

text: Followup to Split the reference counter for any numbered item (like with subequations) : I was trying to make a generic subanything macro, and I fail miserably - see MWE below for what I get as error at, basically, `\setcounter{parent#1}{\value{#1}}`:               \documentclass{article}     \usepackage{amsmath}     \usepackage{listings}     \usepackage{xcolor} % \pagecolor     \usepackage{hyperref}     \pagecolor{yellow!15}     \usepackage{trace}          % modded from {subequations}, `kpsewhich amsmath.sty`     \newcounter{parentlstlisting}% Counter for ``parent lstlisting''; set up manually for all that may be used in subanything     \makeatletter     \newenvironment{subanything}[1][]{%       \traceon       \xdef\subanyin{#1}%       \xdef\dosubany{1}%       \typeout{subanything: inside '#1'}%       \ifx#1\undefined%         \xdef\dosubany{}%         \typeout{subanything: Didn't get argument: '#1'; skipping start}%       \else%         \ifx\subanyin\empty%           \xdef\dosubany{}%           \typeout{subanything: Didn't get argument: '#1'; skipping start}%         \else%         \refstepcounter{#1}%         \typeout{subanything: A}%         \edef\tcsa{theparent\subanyin}%         \edef\tcsb{the\subanyin}%         \expandafter\protected@edef\expandafter\csname\tcsa\endcsname{\expandafter\csname\tcsb\endcsname}%         \typeout{subanything: B}%         \edef\tcsc{parent#1}%         \makeatletter%         % problem here with setcounter:         % \csname theparentlstlisting\endcsname ->1         % ! Use of \csname doesn't match its definition.         % <argument> c         %             @parentlstlisting         % \@ifundefined #1->\expandafter \ifx \csname #1         %                                               \endcsname \relax \expandafter...         \expandafter\setcounter\expandafter{\tcsc}{\value{#1}}%         \setcounter{#1}{0}%         \typeout{subanything: C}%         \expandafter\def\csname the\subanyin\endcsname{\expandafter\csname theparent\subanyin\endcsname\alph{#1}}%         \ignorespaces%         \fi%       \fi%     }{%       \ifx\dosubany\empty% ifx #1: ! Illegal parameter number in definition of \endsubanything.: 1         \typeout{subanything: skipping end}%       \else%       \setcounter{\subanyin}{\value{parent\subanyin}}%       \ignorespacesafterend%       \fi%     }     \makeatother               \begin{document}          Hello...          \begin{subequations}\label{eq:ex1}     \begin{minipage}{0.45\textwidth}     \begin{align}     \label{eq:ex1a}     a = b + c     \end{align}     \end{minipage}     \begin{minipage}{0.45\textwidth}     \begin{align}     \label{eq:ex1b}     x = y + z     \end{align}     \end{minipage}     \end{subequations}          \vspace{\baselineskip}     Ref'ing: master eq.~\ref{eq:ex1};     inner a eq.~\ref{eq:ex1a}, inner b eq.~\ref{eq:ex1b} ...          \begin{subanything}[lstlisting] \label{lst:ex1}     \noindent\begin{minipage}[t]{.325\textwidth}     \begin{lstlisting}[basicstyle=\scriptsize\ttfamily,     caption={[short] Some instructions here; the font here is \texttt{\ttdefault}.},     escapechar=!,     showlines=true,     label=lst:ex1a,     columns=fixed,     frame=tlrb]     080484c4 <list>:      80484c4: cmd one      80484c7: cmd two      80484ca: cmd three, four      80484cf: cmd five      80484d6: cmd six, seven      80484dd: cmd more than enough      80484e0: cmd  not_even_joking     \end{lstlisting}     \end{minipage}     \hspace{1cm}     \noindent\begin{minipage}[t]{.325\textwidth}     \begin{lstlisting}[basicstyle=\scriptsize\ttfamily,     caption={[short] Some instructions here; the font here is \texttt{\ttdefault}.},     escapechar=!,     showlines=true,     label=lst:ex1b,     columns=fullflexible,     % basewidth=\tlen,     frame=tlrb]     080484c4 <list>:      80484c4: cmd one      80484c7: cmd two      80484ca: cmd three, four      80484cf: cmd five      80484d6: cmd six, seven      80484dd: cmd more than enough      80484e0: cmd  not_even_joking     \end{lstlisting}     \end{minipage}     \end{subanything}          Ref'ing:     inner a listing~\ref{lst:ex1a}, inner b listing~\ref{lst:ex1b} ...          \end{document}      It looks like it's breaking on the at `@` in `c@parentlstlisting` - which should be absurd, given we're explicitly inside a `\makeatletter`?! What am I missing here?


title: How to change the annotation of a clickable bar plot

text: Reading the manual always helps, but in this case it hasn't been very fruitful. I have created the following stacked bar plot. The bars are clickable (only in acrobat pdf). I would like to be able to change the value shown to the value of the segment of a bar and the symbolic co-ordinate). How can this be achieved?               \documentclass[oneside,sffamily]{scrreprt}     \usepackage{pgfplots, pgfplotstable}     \usepgfplotslibrary{clickable}     \usetikzlibrary{pgfplots.clickable}     \begin{document}     \pgfplotsset{bar/.style ={ybar,draw=white,fill=blue!20}}     \pgfplotsset{/pgfplots/annot/printable=false}     \begin{tikzpicture}[scale=1.0]     \begin{axis}[         width=1.05\textwidth,         height=0.4\textheight,         bar width=25pt,         %nodes near coords,         ybar stacked,         ymin=0,         enlargelimits=0.08,         legend style={at={(0.5,-.30)},         anchor=north,legend columns=-1},         ylabel={Technicians},         symbolic x coords={Jul 14, Aug 14, Sept 14, Oct 14,              Nov 14, Dec 14, Jan 15},         xtick = data,         title = {\textbf{Resource Histogram.}},         x tick label style={yshift=-5pt,rotate=0},         ]     % Duct Erectors     \addplot +[bar] plot coordinates {(Jul 14, 165) (Aug 14,200)        (Sept 14,200) (Oct 14, 250) (Nov 14,250) (Dec 14,250) (Jan 15,200)};     % Pipe Fitters     \addplot+[ybar, fill=black!60, draw={white}] plot coordinates {(Jul 14,150) (Aug 14,150)        (Sept 14,160) (Oct 14,200) (Nov 14, 200) (Dec 14, 250) (Jan 15,250)};     % Insulator     \addplot+[ybar, fill=black!30, draw=white] plot coordinates {(Jul 14,70) (Aug 14,60)       (Sept 14,80) (Oct 14, 80) (Nov 14, 80) (Dec 14,85) (Jan 15, 76)};     % Plumber     \addplot+[ybar, fill=black!20, draw=white] plot coordinates {(Jul 14, 167) (Aug 14,200)        (Sept 14,200) (Oct 14,200) (Nov 14,300) (Dec 14,300) (Jan 15,300)};     % Electricians     \addplot+[ybar, fill=black!10, draw=white] plot coordinates {(Jul 14, 184) (Aug 14, 300)        (Sept 14,350) (Oct 14, 400) (Nov 14,450) (Dec 14, 500) (Jan 15, 565)};     % Staff     \addplot+[ybar, fill=black!7, draw=white] plot coordinates {(Jul 14, 126) (Aug 14, 132)        (Sept 14,135) (Oct 14, 140) (Nov 14,140) (Dec 14, 135) (Jan 15, 120)};          % legend     \legend{ Duct Erectors, Pipe Fitters, Insulators, Plumbers, Electricians, Staff}     \end{axis}     \end{tikzpicture}     \end{document}      Also any suggestions on styling will be most welcomed. ![enter image description here](http://i.stack.imgur.com/14NxR.jpg)


title: The argument of foo has an extra }.

text: I'm trying to write a command that does, effectively, an `\fbox` in something like an `align` environment. The following code works:               \usepackage{etextools}     \makeatletter     \newcommand*{\alignedfbox}[1]{\@aligedfbox{#1}{}#1&\@endalignedfbox}     \def\@aligedfbox#1#2#3&#4\@endalignedfbox{%       \ifempty{#4}{%         \vrule         \edef\temp{\expandafter\unexpanded\expandafter{\@@aligedfbox{#2#3}#1&\@@endalignedfbox}}%         \temp       }{%         \edef\temp{\expandafter\unexpanded\expandafter{\@aligedfbox{#1}{#2#3}#4\@endalignedfbox}}%         \temp       }%     }     \def\@@aligedfbox#1#2&#3\@@endalignedfbox{%       \underline{\overline{{}#2\vphantom{#1}}}       \ifempty{#3}{%         \vrule       }{%         &         \edef\temp{\expandafter\unexpanded\expandafter{\@@aligedfbox{#1}#3\@@endalignedfbox}}%         \temp       }%     }      and then               \begin{align*}       \alignedfbox{1 & = 2}     \end{align*}      However, the `\edef\temp{\expandafter\unexpanded\expandafter{...}}\temp` sequence is very ugly, and I'm not sure why I need it. (But if I replace it with `...`, it fails with the error mentioned in the title of this post, that my arguments to `\@alignedfbox`/`\@@alignedfbox` have an extra }. Surprisingly, this error does not occur when I call `\@aligedfbox{#1}{}#1&\@endalignedfbox}` from `\alignedfbox`.) I think it has something to do that `align` and friends gather everything inside the environment into a macro before execution, and something to do with `\protect`/`\protected` and how TeX's behavior in expansion-only contexts is different from its behavior in other contexts, but I'm not sure. What's a replacement for `\edef\temp{\expandafter\unexpanded\expandafter{...}}\temp`, and what's an explanation for why `...` doesn't work by itself, in this instance?


title: Error when trying to generate a PDF from a latexdiff document.

text: I used `latexdiff` to generate a tex document with the differences between two other tex documents. This worked fine, but when I try to generate a PDf from the diff document I always get this error:               ''! Undefined control sequence.      l.20 \DIFdelbegin      \DIFdel{In this chapter all the necessary information to f...           ? ''       I think the problem is that I should include a package or something like that in my diff document, but I don't know which one. Any hints? Here is the beginning of my diff document:               \documentclass[12pt,a4paper]{article}          \RequirePackage{changebar}     \RequirePackage{ulem}     \RequirePackage{color}          \newcommand\TLSins[1]{     \cbstart{}%     \textcolor{blue}{\uline{#1}}%     \cbend{}%     }          \newcommand\TLSdel[1]{     \cbdelete{}%     \textcolor{red}{\sout{#1}}%     }          \begin{document}          \DIFdelbegin \DIFdel{In this chapter all the necessary information to fully understand the actual application is presented. First, a short overview about the history of multi-touch interfaces is provided. Particular attention is paid to the Microsoft Surface that was used to develop this application. Since the application is used to automatically detect code smells in a software project, the chapter \textit{\nameref{chp:metrics}} explains how code metrics can be used to detect code smells. Finally this chapter addresses how the necessary structural information and code metrics of a software project were retrieved from a web service in order to perform a code smell analysis. }%DIFDELCMD <           %DIFDELCMD < \FloatBarrier     %DIFDELCMD < %%%     \section{\DIFdel{The history of multi-touch user interfaces}}     %DIFAUXCMD     \addtocounter{section}{-1}%DIFAUXCMD     \DIFdel{The user interface is the place where the }\DIFdelend \DIFaddbegin \section{\DIFadd{Motivation}}     \DIFadd{User interfaces are one of the fastest changing areas in software engineering. Not long ago \textit{Command Line Interfaces (CLI)} were the only available input method. \textit{Graphical User Interfaces (GUI)} changed the }\DIFaddend interaction between humans and \DIFdelbegin \DIFdel{machines takes place. Most user interfaces allow bidirectional interactions. This means the user has the possibility to enter input in order to manipulate and control the system and the machine has the possibility to create output to inform the user about the effects of its inputs. The basic goal of all user interfaces is to require minimal input in order to produce the desired output while minimizing the undesired output at the same time.}%DIFDELCMD < \\     %DIFDELCMD <


title: Where to get older versions of biber?

text: I need a copy of biber v0.99 to go with `biblatex` v1.7 so I can test some build software in scons. I think I am right that biber v 2.2 won't work with `biblatex` v1.7.


title: How to make a reverse dictionary via `glossaries` package?

text: From http://www.latex-community.org/forum/viewtopic.php?f=51&t=12595 > I want to compile an new English terms on my proffesional field collections. > It's much like a dictionary but in reverse sort of words for learning > convenience, e.g.               ...     romance ...     ...(other words whose root is "-ance")     science ...     ...     romantic ...     ...     Titantic ...     ...     scientific ...      > I am going to write the words as follow               \newglossaryentry{romantic}{name=romantic,     description={(corresponding paraphrase)}     }      > but can't find any sort option fit my demand. Please give me a hand.


title: How to write N x N (with a multiplication symbol, for matrix dimensions)?

text: I need to write something like NxN in LaTeX but I do not get how... How to do such thing?


title: Are there typographical drawbacks to using .otf font files?

text: Recently I've been messing around with different fonts in LaTeX and tonight got set up with the `fontspec` package which allows you to use `.otf` fonts in your LaTeX documents (in my case compiling with `xelatex` instead of `pdflatex`). Given the presence of online `.ttf` to `.otf` converters, this opens up a world of opportunity in terms of font usage -- particularly with the availabliliy of high-quality free fonts available from sources such as The League of Movable Type. My only concern with this is that, well, it sounds a little too good to be true. One of the reasons I use LaTeX is because the basic typesetting is just so good. Sometimes people mention that one of the reasons this works is that LaTeX font files contain more information than basic `.ttf`s which allows LaTeX to fine tune character placement. I'm worried that using `.otf`s through the `fontspec` package might compromise typographical quality. * * * So I have two questions, and my naive answers. **First question (.otf)** : Will the use of original `.otfs`s through `fontspec` result in lower typographical quality than using, say, the default Computer Modern? By "original" I mean `.otf` files created by the type designers themselves, rather than automated conversion software. My naive answer is no ... mainly because I want it to be no! But I did install Linux Libertine, and the first thing I noticed was a ligature (Th) I'd never even seen before: ![enter image description here](http://i.stack.imgur.com/nOCXv.png) This gave me hope! **Second question (.ttf)** : Will the use of `.otfs`s created through automated conversion software from, say, `.ttf` files result in worse typography? My naive answer to this is yes. This is because of the partial attributions of LaTeX's good typography to the complexity of its font files, implying that default Microsoft Word font files simply didn't contain enough information to place the fonts correctly.


title: Problem with hyperref and subfloats

text: I'm using `subfloats` rather extensively, and want to use `hyperref` to refer to the `subfloats`. It works, sort-of. In the below example, when clicking the hyperref to the first figure, the `pdf` goes nicely to the top-left of the figure. However, when clicking the reference to the second figure, the `pdf` goes to near the bottom of the second figure, such that most of the figure is out of view. ![screenshot](http://i.stack.imgur.com/Wvlsn.png) `Hyperref` goes to the light green crosses, which is fine for `1.1a)`, but I want it to go to the blue cross for `1.1b) Below is my MWE, which I build by running `pdflatex` twice using `texlive 2012`.               \documentclass[a4paper,11pt]{report}          \usepackage{chngcntr}     \counterwithin{figure}{chapter}     \usepackage{graphicx}     \usepackage{caption,subfig}     \usepackage{hyperref}          \begin{document}     \chapter{First chapter}          This will be a reference to the first part of Figure~\ref{fig:firstfigure}          This will be a reference to the second part of Figure~\ref{fig:secondfigure}          \begin{figure}[ht]     \centering         \subfloat[Some subfloat caption for the first figure goes here.]{\label{fig:firstfigure}\includegraphics[width=0.4\textwidth]{./placeholder}}\hspace{0.15\textwidth}                       \subfloat[And some other caption for the second subfigure goes here.]{\label{fig:secondfigure}\includegraphics[width=0.4\textwidth]{./placeholder}}     \caption{\protect\subref{fig:firstfigure} is the first figure. \protect\subref{fig:secondfigure} is the second figure.}\label{fig:somefigures}     \end{figure}          \end{document}      Any insight in how to fix the `hyperref` behaviour for the second `subfigure` is much appreciated!


title: Is there a sans-serif font that appears different for I (capital i) and l (small L)?

text: Is there a sans-serif font that appears different for I and l? If we are not familiar with "Kim Jong Il", we might spell his name as Kim Jong Two or other incorrect ones.


title: lrbox in \newenvironment

text: I cannot make `lrbox` work if put within a `\newenvironment`. I'll explain with an example. If I write:               \documentclass{article}          \newsavebox{\mybox}          \begin{lrbox}{\mybox}         \begin{minipage}[t]{\textwidth}          \hfill           \begin{minipage}[t]{0.7\textwidth}              \noindent              \textbf{ABSTRACT} \\              Test Test Test Test Test Test Test Test Test Test Test Test Test               \\              \\            \end{minipage}         \end{minipage}     \end{lrbox}          \begin{document}          \usebox{\mybox}          \end{document}      Then I obtain the result I want. But if I try to create a new environment that has to behave like the code above, I obtain a blank page. Specifically, if I write:               \documentclass{article}          \newsavebox{\mybox}          \newenvironment{myenv}     {        \begin{lrbox}{\mybox}          \begin{minipage}[t]{\textwidth}          \hfill          \begin{minipage}[t]{0.7\textwidth}             \noindent             \textbf{ABSTRACT} \\     }{             \\             \\          \end{minipage}         \end{minipage}        \end{lrbox}     }          \begin{myenv}     Test Test Test Test Test Test Test Test Test Test Test Test Test Test      \end{myenv}          \begin{document}          \usebox{\mybox}          \end{document}      I obtain a blank page. Is anyone able to explain me why, please?


title: url not showing in references

text: this LaTeX code:               @ONLINE{Doe,     author = {Doe, Ringo},     title = {This is a test entry of type {@ONLINE}},     month = jun,     year = {2009},     url = {http://www.test.org/doe/}     }      generates this output (reference 3): ![enter image description here](http://i.stack.imgur.com/2iy5G.jpg) How can I fix the code to show the URL?


title: Insert text before end of page, and at the begining of the next page

text: I'm putting a template together and I have created a custom command which I'm going to use to set specific margins on the text passed to its argument and a few more formatting things, like this:               \newcommand{\mytextbox}[1] {#1}      I want it so text passed to this command splits across new pages nicely but before the new page begins, I want to print a new separate line saying "Continued on next page" and on the next page, print a line above the remaining text saying "Continued from previous page". So for example if I do this near the bottom of a page:               \mytextbox{\lipsum}      It will print a few lines before flowing to the next page, but have my custom titles at the bottom and top of the next page, like this:               Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae,     felis.     **Continued on next page**          -----new-page-------------------------------           **Continued from previous page**     Curabitur dictum gravida mauris. Nam arcu libero,     nonummy eget, consectetuer id, vulputate a, magna. Donec     vehicula augue eu neque. Pellentesque habitant morbi tristique     senectus et netus et malesuada fames ac turpis egestas. Mauris     ut leo.      I've been banging my head against the wall trying to figure out a way to do this. Nothing seems to work for me. My best guess is finding something in TeX that controls when it wraps the lines, checking if its the last line of the page and inserting a `\newpage` command in to the text but I haven't found a way to do this and it seems a bit convoluted. I don't care whether `mytextbox` is a command or environment as long as it behaves as above.


title: LyX Cross Referencing in Different Language not working

text: I'm having troubles using the cross referencing system with LyX (version 2.1.1). I place labels on the side of the environment i want to be able to make reference in the future, using the label function from gui. When i want to add a reference i use the reference function from gui. I choose the lable i want and, since i don't want just the numbers but also the environment name (e.g. : Section, Theorem, ecc..), i also select "Formatted reference". I'm using ams classes since i need to input math. In particular, from Document > Settings > Modules i choose "Theorems (AMS, Numbered by Type), Theorems (AMS Extended, Numbered by Type), Theorems (Numbered by Type Within Sections)", plus others which have nothing to do with math (e.g. fixcm). I'm also editing a document in Italian language, so i want references to be labled in Italian. Keep in mind that in the Lyx editor and in pdf i see correctly translated names for all the environments. The problems comes up only in cross referencing. The problem is that if i make reference to a Theorem i get the label automatically placed, but in english (Theorem unstead of teorema). If i reference a Definition, i get nothing apart the numbers. Seems that the problem with the appearance of only some kinds of evironment lables is common but trying some of the solutions proposed seems not to work for me. For instance, adding the following:               \newcommand{\figref}[1]{Figure~\ref{#1}}     \newcommand{\tabref}[1]{Table~\ref{#1}}     \newcommand{\eqnref}[1]{Eq.~\ref{#1}}     \newcommand{\secref}[1]{Section~\ref{#1}}     \newcommand{\defref}[1]{Definition~\ref{#1}}      will give error, since LyX seems to add some kind of definition to be able to manage the only working lables (Theorems, Lemma, Section), by adding hte following:               \AtBeginDocument{\providecommand\thmref[1]{\ref{thm:#1}}}          \RS@ifundefined{subref}       {\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}}       {}     \RS@ifundefined{thmref}       {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}       {}     \RS@ifundefined{lemref}       {\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}       {}      Any suggestions? Am i using LyX the wrong way? Any help will be appreciated.


title: KOMA - Footnote for enclosure?

text: How can I add footnotes to enclosures using `\encl`? The code below is not working.               \documentclass[version=last]{scrlttr2}     \usepackage[ngerman]{babel}     \begin{document}     \begin{letter}{Markus Kohm}     \opening{Dear Mr. Kohm,}     how can I add footnotes to enclosures\footnote{works}?     \setkomavar*{enclseparator}{Enclosures: }     \encl{encl\footnote{not working}} % footnote is not showing     \end{letter}     \end{document}


title: Same preamble in 2 files causes pdflatex to crash in just one

text: I was compiling two different files with _the exact same preamble_. The important thing is that I'm using together `scrbook` and `classicthesis` (with also `classicthesis-preamble` loaded) but when I compile two different things happen. **Small note** : I'm on a Fedora 15 SO, with the original TeXLive installation retrieved from tug.org. To compile i use either "TeXWorks" or the `pdflatex` command from the terminal. File1 compiles great, no problems at all. However, file2 gets stuck giving this output:               Class scrbook Warning: \float@addtolists detected!     (scrbook)              You should use the features of package `tocbasic'     (scrbook)              instead of \float@addtolists.     (scrbook)              Support for \float@addtolists may be removed from     (scrbook)              `scrbook' soon .      The same output is thrown also by file1 (I later realised this by compiling from Terminal), but file1 does not stuck there, goes on and generates the PDF. The preamble in both files is loaded by a `file0.tex` which I wrote to keep the two files clean, so I am sure that the preamble is identical. I've found on the net (thanks Google!) a package that should fix this problem, but it doesn't seem to work: it's called `scrhack`. _1st edit:_ I created another main file, and added just the custom headers I wrote. Everything's fine, so my custom headers are not the problem. I've added random text, with a `\chapter{Foo}` and `\section{Bar}`. Still no problems. So I've added a file with `\input{file2.1}`. This was originally added also to file2. At this point, compilation freezes, without saying a word about why... Since I can't understand the mistake, nor I can find and errore in the source of file2.1, I've made a pastebin for you to see. **2nd edit:** I've narrowed down the problem, it stucks because I renewed the `\vec` command. This is a MWE that makes my compiler freeze without giving any feedback or traceback or error messages.               \documentclass{scrbook}     \usepackage[italian]{babel}     \usepackage{classicthesis}     \usepackage{classicthesis-preamble}     \usepackage{amsmath}          \renewcommand{\vec}[1]{\vec{\textbf{#1}}} % vettori     \begin{document}     Let $\vec{F}$ be the force vector...     \end{document}      Although I've found where the problem is, I don't why it happens...


title: What is the easiest way to modify catcodes in a string?

text: Assume that a token register contains a sequence of letter tokens, each having a `catcode` of 12. I want to store in a second token register the same sequence of letter token, altering some `catcodes` on the way (like changing all `#` so that they have catcode 6). I see three ways to do this:   1. Iterating over the sequence of tokens with `futurelet` and do the replacement. This method has the inconvenient that adding tokens at the end of a token register involves a lot of expansions and parsing but the advantage that it can be generalised.   2. Using a macro with an argument template (like what we do to see if a token is in a sequence) to quickly parse the token register. It has the drawback that it is maybe not easy to generalise.   3. Write the tokens in some auxiliary file, reconfigure the lexer and reread these tokens. It is ugly. Is there an easier way to go? (In plain TeX, no Lua, no Perl, no OCaml…)


title: comment package - \excludecomment{} gives error

text: I'm trying to generate a pdf file without the pictures for draft revision, and as seen here and here the `\excludecomment{}` is not working for me. Here is my error:               line 31: Extra }, or forgotten \endgroup \end{wrapfigure}     line 31: Undefined control sequence \end{wrapfigure}     line 31: Missing number, treated as zero \end{wrapfigure}     line 31: Illegal unit of measure (pt inserted) \end{wrapfigure}      given by my test code:               \documentclass[letterpaper]{article}     \usepackage[hmargin=2.5cm,vmargin=3.0cm]{geometry}     \linespread{1.3}    % use 1.5 line spacing     \usepackage[pdftex]{graphicx}     \usepackage{wrapfig}    % puts the figure wrapped          \newif\ifshow     %\showtrue     \showfalse               \usepackage{comment}     %\excludecomment{itemize}     \ifshow     \includecomment{wrapfigure}     \else     \excludecomment{wrapfigure}     \fi     \excludecomment{wrapfigure}               \begin{document}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tempus convallis euismod. Vestibulum aliquet lacus at diam laoreet a scelerisque purus posuere.                 \begin{wrapfigure}{r}{0.5\textwidth}                 \begin{center}                     \includegraphics[width=0.4\textwidth]{latex.png}                 \end{center}                 \caption{Caption}                 \label{fig:00}         \end{wrapfigure}     \end{document}      Neither using the `\removecomment{}` or the `if` sentence works.


title: Which editors can autocomplete any word from document?

text: Of course, any LaTeX editor will autocomplete common LaTeX commands and environments. Many (most?) let user add new commands to be autocompleted. However, in technical documents there will usually be specific terms, which are encountered often enough (and may be quite long) to be worth autocompleting, but aren't commands and are different from one document to another. So it's quite nice to be able to autocomplete any word which exists in the document (or any of the open documents). I know Emacs, Vim, Kile and TeXstudio support this; do any others?


title: Is there a command to write the form of a combination or permutation?

text: I'm trying to write               ^nP_k=\frac{n!}{(n-k)!}       \binom nk=^nC_k=\frac{n!}{k!(n-k)!}      but when compiled the n is a little far away from the P and C for my liking. Is there a command to write this? I know there is a `\binom` so I was hopeful. If not, is there a way to force the n to be closer?               \documentclass{article}       \begin{document}       $ ^nP_k=\frac{n!}{(n-k}!} - permutation \\       \binom nk=^nC_k=\frac{n!}{k!(n-k)!} - combination $       end{document}


title: Difficulties with math formatting in LNCS

text: I have some more problems I can't figure out how to solve and I need to finish this for tomorrow, so it would be nice if you could check out what's wrong (and especially how to fix it). Thanks a lot! I've pasted it here http://pastebin.com/JbVCu8nQ so it doesn't clutter this site.


title: Is it necessary to obtain permissions for copying figures from published articles in your proposal/dissertation?

text: I am currently writing a proposal for my research topic and I want to copy figures from published articles into my proposal document. To put it in perspective, almost all the copied figures are to go in the `Literature review` section of the document. Is it necessary to send an email to each and every author requesting permissions to copy the figures, even though complete citations and references are included? I referred to the following link:   MITLibraries: Reuse of content in thesis. From what it says, copying images in thesis (with correct citations) seems to be valid under US copyright law.


title: Table rowspan and colspan

text:
I need to create similar table using LaTeX: ![table](http://i.stack.imgur.com/qfS9Y.png) I have tried to use `\tabular` and `\multicolumn`, but every time I get something wrong. I want:   * Fixed width columns and fixed height rows;   * Centered cells (vertically and horizontally)   * Borders around each cell Could someone help me? Here is pure HTML markup:

             State of Health	             Fasting Value	             After Eating

             Minimum	             Maximum	             2 hours after eating

             Healthy	             70	             100	             Less than 140

             Pre-Diabetes	             101	             126	             140 to 200

             Diabetes	             More than 126	             N/A	             More than 200


title: horizontal maya numerals (mathabx)

text: After researching, mathabx is the only package supporting maya numerals within tex. For example, typing `$\maya{2013}$` results in: ![mayan number for 2013](http://i.stack.imgur.com/MAwVC.png) now the problem is... the numerals are rotated sideways (oddly, the conch shell meaning zero is not rotated). That is.. groups are properly stacked vertically but within each group, the numbers themselves are rotated sideways Compare with wikipedia's example for 19 I understand the reason is that the font was coded with numbers rotated, but I don't really understand what should I edit in order to get horizontal numbers I gather the numbers are created in fonts\source\public\mathabx\maydigit.mf but opening it shows metafont and not tex, and metafont looks like chinese (mayan?) to me Could someone help me understand how to rotate back numerals into horizontal mode? * * * EDIT> Minimal example:               \documentclass{minimal}     \usepackage{mathabx}          \newcommand\mathbfont{\usefont{U}{mathb}{m}{n}}          \begin{document}          \mayadigit{17}          \[     \maya{2013},     \maya{123},     \maya{45}     \]     \end{document}      It produces: ![minimal output](http://i.stack.imgur.com/kounY.png) What I try to achieve (edited in a graphics program): ![desired result](http://i.stack.imgur.com/m9qqR.png) **I don't need to fix`\maya` since it behaves properly.** It selects the correct numeral and puts it on the proepr place. What I need is to rotate "the number symbol" So I went ahead and tried to edit the source maydigit.mf. I thought I could try fixing "two" (two points) so instead of showing ":" it would show ".." The relevant code is               beginchar("2",fig_width#+2appr#,fig_height#,0);       "Maya numeral 2 (ca)";     %  italcorr fig_height#*slant-0.5u#;       pickup fine.nib;       adjust_dot1((0.5w,0.25h),dtsz,false,false);       dot(1,1');       adjust_dot2((0.5w,0.75h),dtsz,false,false);       dot(2,2');     endchar;      And I figured swapping those coordinates (0.5w,0.25h) and the other would to the trick. I did it, saved source, recompiled my .tex sample... and it had no effect (it was as if the fonts had already been "compiled" and changing the source did not update the fonts used themselves). I'm beginning to see the light. Changing that code to               beginchar("2",fig_width#+2appr#,fig_height#,0);       "Maya numeral 2 (ca)";     %  italcorr fig_height#*slant-0.5u#;       pickup fine.nib;       adjust_dot1((0.25h,0.5w),dtsz,false,false);       dot(1,1');       adjust_dot2((0.75h,0.5w),dtsz,false,false);       dot(2,2');     endchar;      works (spacing is funny, but at least the two dots are now horizontal). Not only I had to swap the coordinates, but also the suffixes (h, w). Here the result: ![enter image description here](http://i.stack.imgur.com/bBRr1.png) I'll keep trying


title: Conflict between gb4e and \thanks in title

text: The following code results in a stack exceeded error:               \documentclass[10pt]{article}     \pagestyle{empty}          \usepackage[landscape, twocolumn]{geometry}     \setlength{\columnsep}{3pc}     \geometry{letterpaper,margin=0.8in}          \usepackage{titling}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{concmath}     \usepackage{lmodern}     \usepackage{verbatim}     \usepackage{graphicx}     \usepackage{xypic}     \usepackage{amssymb}     \usepackage{graphpap}     \usepackage{stmaryrd}     \usepackage{enumerate}     \usepackage{epsfig}     \usepackage{epstopdf}     \usepackage{natbib}     \usepackage{xfrac}     \usepackage{tikz}     \usetikzlibrary{shapes,backgrounds}     \usepackage{enumitem}     \usepackage{stmaryrd}     \usepackage{qtree}     \usepackage{wrapfig}     \usepackage[stable]{footmisc}     \usepackage{gb4e}     \noautomath     \tikzset{>=latex}          \begin{document}     \pagestyle{myheadings}     \pagenumbering{arabic}          \title{XXX}     \author{X\thanks{X}}     \maketitle          \end{document}       The culprit seems to be a tension between the `gb4e` package and the `\thanks` command inside the `\author`. If I remove either, everything compiles fine. Any ideas what exactly is causing the problem and how I can keep the `gb4e` package and still have a footnote for the author? Thanks! Justin


title: Document possessing simultaneously text in single column and double column;

text: I would like to make a list of math exercises. Formatting that intend this list is as follows. The first half of the page I would write in a single column. From the second half of the page into two columns I write normally. Is there any resource (package LaTeX command or setting in the preamble of the LaTeX document) to write a document possessing simultaneously (and even on the same page) text in single column and double column?


title: hyperref token not allowed warning, possible bug?

text: I currently am using the `hyperref` package and I'm currently getting a lot of error messages. Currently all of the chapter and section titles give this same error. I decided to try make a minimum example and currently:               \documentclass{amsbook}          \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{hyperref}     \usepackage[dvipsnames,usenames]{color}          \begin{document}     \pagenumbering{roman}          \chapter{Preface}          \mainmatter     \pagenumbering{arabic}          \part{The}          \end{document}      Is giving me the following warnings:               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                \kern 5.0pt     (hyperref)                replaced by space on input line 18.          Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing '\noindent' on input line 18.      Is this a bug with the `hyperref` package or is this just a result of me not setting up things properly? How do I go about either fixing this or silencing the warning messages?


title: Draw multiple arrows as a bus

text: It's my first post, I've been using LaTeX for some time now but frankly I'm still a rookie. But this question is more about TikZ than about LaTeX: I want to draw somehting like this, set of parallel arrows to represent a bus in the digital system, does anybody know to accomplish it? ![want to draw this](http://i.stack.imgur.com/1ryZI.png)


title: Spacing around \cdot when used as a wildcard

text: I have to use `\cdot` as a _wildcard_ indicator in an expression like: `K(\cdot,y)`. My concern is: is the spacing around the `\cdot` correct? should I force something in either one side or the other of it?


title: Can I have bigger margins on pages containing only floats?

text: Latex sets the margins to give a good reading experience for text. For pages containing only figures this generally does not matter and I would like my figures to fill as much space as possible, in both the horizontal and vertical directions. Is there a way to automatically have pages containing only floats to have a different header footer and margin widths?


title: Indentation within an Itemized List

text: I am using `res.cls` to write my resume. I have changed the indentation of my itemized list using:               \setlength{\itemindent}{-.5in}      This works great for the first line, but if the item goes onto the next line, the following line is not indented in this manner. Is there anyway to fix this?


title: Incorrect page numbers in ToC

text: I am using `tocbibind` to get Acknowledgements, Declaration and Intro into ToC. The problem is, page numbers are incorrect. I have also tried adding them by `\addcontentsline`, it stays the same. ToC shows Acknowl and Decl, both at p.2 and Intro at p.4 whereas Acknowl is at page 1 and Decl at page 2 and Intro at page 5. It gives correct page numbers for the rest of the document (Including Index and Bib). I am also using `fancyhdr`, `titlesec`, `idxlayout`, if they have any effect on this problem.   Ideally I want page numbers to start from Title page (I have tried `\setcounter{page}{1}` within title but doesn't seem to work) and also the printed page numbers must start from ToC page. At the moment numbering starts and shows from Acnowl page. Here is the MWE.               \documentclass[oneside]{book}       \usepackage[nottoc]{tocbibind}            \begin{document}            \title{NAME}       \setcounter{page}{1}       \maketitle            \chapter*{Acknowledgments}       \chapter*{Declaration}            \tableofcontents            \chapter*{Introduction}       \chapter{First}            \end{document}


title: Continuing list item after sublist in Lyx

text: I'm trying to continue a list item after existing a sublist, like so:   * Content      1. sublist     2. sublist Continuing CONTENT...   * bla bla  For some reason when trying to write the Continuing CONTENT   I either had the option to continue the list (as in - creating another sublist item) or creating another list item (like bla bla)   Any ideas?


title: How do I disregard automatic spacing between characters in math mode?

text: I realize this is a bit of an odd request. I'd like to typeset some characters in math mode (such as `1 \land \lnot 2 \lor 3`), and have them appear equally spaced, rather than with automatic spacing. By default, this code produces ![](http://i.stack.imgur.com/JpLSH.png) You can see the `\lnot` is right up next to the 2. And when multiple numbers are together they're close to each other as well. How can I make these spaced evenly so there's no distinction between characters?


title: No indent in the first paragraph in a section?

text: I am just curious that the following format looks good to you or not? The preamble I used is just               \documentclass[12pt,a4paper]{article}      \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amssymb}      I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this? ![enter image description here](http://i.stack.imgur.com/r3eDA.png)


title: How to edit the words in TeX Live grammatically?

text: I have a problem with editing the words in TeX Live? When I installed the program, the program doesn't edit the words after typing, that is, If I make a mistake with typing a word then I can't be noticed by the program, while as I found from my friends it is impossible event. Why? How to solve this?


title: Ugly spacing in lstinline

text: I am using the `listings` package to typeset Erlang source code in my thesis. For short snippets, I use `\lstinline`. The result is often unsatisfying. Consider the following example, which contains `\lstinline` twice: I am using `lstlistings` to typeset `Erlang` source code in my thesis. For short               \documentclass{article}          \usepackage{fancyvrb} % needed for listings     \usepackage{listings}     \lstset{language=erlang}          \usepackage{pslatex}          \begin{document}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt     ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation     ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in     reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur     sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id     est laborum \lstinline|config:read(rt_frt_reduction_ratio_strategy)|.     sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et     dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris     nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in     voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat     cupidatat non proident, \lstinline{ugly:typeset/1} sunt in culpa qui officia deserunt     mollit anim id est laborum.     \end{document}      The result contains spaces where they should not occur (or at least less wide): ![result of the example code above](http://i.stack.imgur.com/mZZfM.png) Is there a way to tell `listings` to avoid such spacing?


title: Piecewise styling and decoration of a tikz path?

text: I have this path, which I would like to style "piecewise" from a single specification, shown on the image below: ![test06.png](http://i.stack.imgur.com/HzCdF.png) As the image says, I'd like to decorate segments 2-3 and 5-6, and colorize only 3-4. I'd like to decorate 2-3 with a `snake` (sinusoidal decoration), which implies that the 1-2 segment going upwards should be drawn invisibly (somewhat like a moveto). The problem, as visible on the image, is that I get absolutely no decorations on the third picture, which means I didn't get the right syntax for piecewise styling and decorations (if it is even possible). My question is - how could I achieve the kind of decoration I want, but with on a "single line" (with a single coordinates' path specification)? The MWE so far is below:               % \documentclass{article}     \documentclass[varwidth,tightpage,border=1bp]{standalone}          \usepackage{tikz}     \usetikzlibrary{decorations}     \usetikzlibrary{decorations.pathmorphing} % (solid) snake :)     \usetikzlibrary{decorations.pathreplacing} % show path construction          \pagecolor{yellow!15} % ignored with preview, but not w/ varwidth          \begin{document}          This is the plain linear path:          \begin{tikzpicture}     \draw[]       (0,0) -- ++(1,0) node[fill,scale=0.5](A){}       -- +(0,1) -- +(0,-1) -- ++(1,0)       -- ++(2,1) -- ++(0,-1) -- ++(1,0);     \end{tikzpicture}          This is the path construction:          \gdef\cnt{0}     \begin{tikzpicture}     \draw[decoration={show path construction,       moveto code={         \fill [red] (\tikzinputsegmentfirst) circle (2pt);       },       lineto code={         \pgfmathtruncatemacro{\tmp}{\cnt+1} \xdef\cnt{\tmp} %         \ifnum\cnt=2{\gdef\tw{3pt}}\else{\gdef\tw{1pt}}\fi %         \ifnum\cnt=3{\gdef\tc{blue!50}}\else{\gdef\tc{blue}}\fi %         \draw [draw=\tc,line width=\tw,->] (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast) node[fill=none,draw=green,minimum size=2pt,font=\bf]{\tmp};       },       closepath code={         %\draw [draw=none] (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast);       },     },     decorate]       (0,0) -- ++(1,0) node[fill,scale=0.5](A){}       -- +(0,1) -- +(0,-1) -- ++(1,0)       -- ++(2,1) -- ++(0,-1) -- ++(1,0);     \end{tikzpicture}          Attempt at decorating only segments\\ 2-3 and 5-6, and coloring only 3-4          \begin{tikzpicture}     \draw[]       (0,0) -- ++(1,0) node[fill,scale=0.5](A){}       { [draw=none]-- +(0,1) }       { [decorate,decoration={snake},draw=red]-- +(0,-1) } % 2-3       { [draw=green]-- ++(1,0) }       -- ++(2,1)       { [decorate,decoration={snake},draw=red]-- ++(0,-1) } %5-6       -- ++(1,0);     \end{tikzpicture}     \end{document}


title: Balanced Scorecard diagram

text: I want to make a Balanced Scorecard diagram in tikz. Is there an example already? ![Balanced Scorecard by Robert S. Kaplan and Dave P. Norton. Harvard Business School Press. 1996](http://i.stack.imgur.com/YA3s5.jpg)


title: How can "execute at begin node" be used with special characters like curly braces? (or: how to raise node content)

text: I'd like to define the following style:               test/.style={         execute at begin node={\raisebox\{-0.2cm\}\{},         execute at end node={\}}     }      and use it like               \documentclass{article}      \usepackage{tikz}          \tikzset{         test/.style={             execute at begin node={\raisebox\{-0.2cm\}\{},             execute at end node={\}}         }     }          \begin{document}              \begin{tikzpicture}             \node[test,circle,draw] {g};             \end{tikzpicture}          \end{document}      But it seems to be wrong, as I get errors like `"! Extra }, or forgotten \endgroup"` or `"Missing number, treated as zero"`. I guess the problem is due to the braces. How can I escape them properly? **EDIT** : From the answers it became clear that `\raisebox` alone (like I tried in my broken solution) would've somehow worked in my case (because the dimension was so small that it didn't change the node size (at least I can't see it), which is what I wanted). So I consider all answers correct that only handled this specific/simple case. Answers using `\smash` and `\phantom` solved the problem I had actually in mind (but which I didn't clearly formulate as a question). Thanks again for all the great answers! :) **WARNING** : As already said by percusse, if one only wants to align the text baselines, don't use this! Instead, as described in the "Putting a Diagram in Chains" tutorial of the manual, use `text height` and `text depth` on all nodes to be aligned, e.g. `text height=1.5ex,text depth=.25ex`.


title: Placing labels as numbers at the top of each bar in this plot in pgfplots

text: I have this bar chart where numbers seem to appear to be not centered at the top of each bar. I tried writing "center" in the \node area, but it did not work. The code is written using pgfplots. The numbers at the top are some labels of each bar. Below is my code:                   \pgfplotsset{         every axis/.append style={font=\large},}     \begin{tikzpicture}[scale=0.35]       \begin{axis}[       title=Data,         xbar, xmin=0,         every node near coord/.append style={font=\large},         width=10cm, height=15cm,         xlabel={\large A},         symbolic y coords={M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15},         ytick=data,         nodes near coords align={horizontal},         ]         \addplot [color=black,fill=black] coordinates {(0.930,M1) (0.868,M2) (0.857,M3) (0.799,M4) (0.741,M5) (0.858,M6) (0.862,M7) (0.862,M8) (0.862,M9) (0.862,M10) (0.864,M11) (0.865,M12) (0.861,M13) (0.866,M14) (0.868,M15)};         \node[above right] at (axis cs:0.930,M1) {80};         \node[above right] at (axis cs:0.868,M2) {50};         \node[above right] at (axis cs:0.857,M3) {30};         \node[above right] at (axis cs:0.799,M4) {60};         \node[above right] at (axis cs:0.741,M5) {70};         \node[above right] at (axis cs:0.858,M6) {50};         \node[above right] at (axis cs:0.862,M7) {50};         \node[above right] at (axis cs:0.862,M8) {80};         \node[above right] at (axis cs:0.862,M9) {80};         \node[above right] at (axis cs:0.862,M10) {60};         \node[above right] at (axis cs:0.864,M11) {70};         \node[above right] at (axis cs:0.865,M12) {70};         \node[above right] at (axis cs:0.861,M13) {60};         \node[above right] at (axis cs:0.866,M14) {60};         \node[above right] at (axis cs:0.868,M15) {60};       \end{axis}     \end{tikzpicture}      ![output bar plot with numbers as labels at top of each bar](http://i.stack.imgur.com/mUYp8.png)


title: WinEdt - Could one compile in a temporary folder without saving the changes in the current file

text: What I want to do is:   1. After press PDFLaTex button, it will save the modified content in a temporary folder. For example, if I am editing `C:\math\article.tex`, then it will save the modified content to `C:\math\temp\article.tex`. But the modified content is not saved to `C:\math\article.tex`. I would like the keep `C:\math\article.tex` as before, and save it manually when I need. Also, the working window stays still on the current editing document, namely `C:\math\article.tex`.   2. Then it compile the file `C:\math\temp\article.tex` I have already know how to compile `C:\math\temp\article.tex` when I am working on `C:\math\article.tex`. The remained question is that how to save the modified content to `C:\math\temp\article.tex` , but no to `C:\math\article.tex`. There are macros like "SaveDoc", "SaveAllDoc", "SaveDocAs" and "SaveDocCopyAs". The first two save the contents to the original file (I didn't find parameters for another folders) and the last two will prompt to ask the localization. ( I hope it is always the subfolder `%P\temp` and don't hope the prompt appear). So is there a way to save the modified content into another file, but not into the original file in WinEdt?


title: How to Reference a pgfplotstable

text: I am still generating a table from a `cvs` file with the `pgfplotstable` package. In my text I will reference to the generated table but I did not know how to do this. Normal your make a `\label{tab:foo}` and in the text you can reference to `\ref{tab:foo}`. How can I do this with the pgfplotstable? For more you can see my code               \usepackage{pgfplotstable}     \usepackage{booktabs}         \begin{document}              Here should be a text which is referencing to the Table~\ref{tab:foo}. But I did not know how to make a label at the table.                  \pgfplotstableset{             begin table=\begin{longtable},             end table=\end{longtable},             }                  \pgfplotstabletypeset[                 col sep=semicolon,                 string type,                 columns/Hersteller/.style={column name=Hersteller, column type={l}},                 columns/Produktname/.style={column name=Produktname, column type={l}},                 columns/Betriebssystem/.style={column name=Betriebssystem, column type={l}},                 columns/Version/.style={column name=Version, column type={l}},                 every head row/.style={before row=\toprule,after row=\toprule},                 every last row/.style={after row=\hline caption={foo}},                 ]{./files/NFCDeviceTabletStand20121230.csv}     \end{document}


title: Custom Shortcuts in WinEdt 8.0

text: How do I add a panel with all the math, greek, international symbols and other environments in WinEdt 8.0. I couldn't find any customizations for this. ![enter image description here](http://i.stack.imgur.com/tNdy9.png)


title: Is it possible to call a latex macro at the command line in order to return a string, not create a document?

text: I'm curious as to whether there is a way to pass a small amount of LaTeX code to a compiler at the command line and return the string corresponding to the value of a variable or length. For instance I would like to pass this code               \usepackage{calc}     \def\contnt{\tt{I wish I knew how much space was occupied by this string when typeset...}     \settowidth{\contntwdth}{\contnt}      and I'd like to indicate that the string output I'm after is the width of the content e.g.               \the\contntwdth      Any suggestions are greatly appreciated.


title: Longtable and page break

text: I'm writing the use case documentation for my Software Engineering project. I'm using `longtable` to get a template that spans over multiple pages.               \documentclass{article}     \usepackage{array}     \usepackage{lipsum} % Used to produce long text     \usepackage{longtable}     \newcolumntype{L}{>{\raggedleft}p{0.2\textwidth}}     \newcolumntype{R}{p{0.74\textwidth}}     \newcommand\VRule{\vrule width 0.5pt}          \begin{document}         \begin{longtable}{L!{\VRule}R}             \hline             \textbf{ID}                & \texttt{UC\_01\_01}            \\             \textbf{Name}              & Password recovery              \\             \textbf{\textit{Macro}-UC} & Registration (\texttt{UC\_01}) \\             \textbf{Actors}            & \texttt{ACTOR\_02}             \\ \hline             \textbf{Preconditions}     & \lipsum[2-4]                   \\ \hline             \textbf{Main flow}         & Some itemize list here!        \\ \hline             \textbf{Postconditions}    & \lipsum[5-7]                   \\ \hline         \end{longtable}     \end{document}      The problem is that the table doesn't break within the row. I would need a breakable content to put into a row to have a homogeneous filling on each page. I tried to wrap this row in a box using the `framed` package but it doesn't work. I noticed that I can achieve a break page within a box with the `mdframed` package but I can't use it since I'm working on ScribTeX and I've no version of LaTeX installed on my computer. I've also tried the `usecase` package but it doesn't support page breaking. Could you please suggest me a trick or an alternative to achieve this result? I've been stucking on this matter for two days.


title: Dashbox text positioning

text: can someone tell me how to fine position the text inside a dashbox. I have the following MWE:               \documentclass[12pt]{article}                                    \usepackage{graphicx}                 \begin{document}          \begin{picture}(380,320)          \put(10,0){\dashbox{2.5}(360,100)[tl] {Core-Standards}}          \end{picture}          \end{document}      It doesn´t look good I want the text top left but it intersects with the dotted square, I want the text a little bit to the right and down: ![enter image description here](http://i.stack.imgur.com/pN0nh.png)


title: LaTeX on the reference including the wave line

text: There is a reference I have to use, which is just an URL but there is a wave line (tilde) located in the middle of the URL. I don't know how to express it exactly. The code I used now is as follows:               @misc{33_oxfordvgg,note = {\url{http://www.robots.ox.ac.uk/~vgg/data/}},}      In addition, I have put this code below in the front of the latex file, But, in the result showing in the final PDF file, the wave line is just located in the top and I could not use it to find the correct URL.               \usepackage[pagebackref=true,breaklinks=false,letterpaper=true,colorlinks = brack,bookmarks=false]{hyperref}      And it turns out to show the reference in the pdf in the way below, just the picture shows, ![reference](http://i.stack.imgur.com/CGP2r.jpg) In fact, the waveline in loacted in the middle. But the result in the reference is located in the top. So I could not go to the correct webpage after I click on the reference of the url on the pdf file. Does anyone know how to solve this?


title: how to overlay math text with tikz image?

text: I have an equation in an `align' environment. Over one of the equality sign I would like to draw an arrow (slanted, preferred) with the text on the other end being 'This is always true'. How can I use TikZ package in an equation environment like this? This link contains what I am looking for: ![](http://i.stack.imgur.com/WTk3m.png)


title: How to type three points diagonally?

text: In an equation, I want to display three points like "...", but instead of horizontally, they should be diagonally. I'm sure there must be a command to do that, but a google search did not really help. Any idea?


title: Kile: how to use shortcut to compile the root file directly?

text: I have several tex files to create a pdf. The `root.tex` use `\input{}` to import other tex files. While I'm editing other tex files, I want to compile my tex by using some shortcut instead of using mouse to switch to `root.tex` and compile it. My question is: Is there any shortcut that can help me compile the root.tex no matter which file I'm in in Kile?


title: How to type left/right quotes in mathmode?

text: I want to type "left-quotes" and "right-quotes" in an equation. I tried               $P(x):`` \forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2. ``$      I get ![enter image description here](http://i.stack.imgur.com/l2inp.jpg) The end sign is not correct. How to typeset?


title: Do until there is no intersection point

text: I want to do a loop until there is intersection points between two paths **edit** I oblic lines until they don't intersect the circle. When there is zero intersection points I have an error. Is there a way to deal with zero intersection points ?               \documentclass[tikz,margin=3pt]{standalone}     %\usepackage{}     \usetikzlibrary{calc,intersections}          \def\Dir{45}     \def\DirStep{1pt}     \def\Length{10}          \begin{document}          \begin{tikzpicture}          \coordinate (Depart) at (0,0) ;          \begin{scope}[shift=(Depart),rotate=\Dir]     \clip[name path=bob,draw] (0,0) circle (1) ;          \pgfmathtruncatemacro\i{0}          \loop         \draw[name path=trait,shift={(0,\i*\DirStep)}] (-5,0)--(5,0) ;         \path[name intersections={%             of=trait and bob,             name=\i,             sort by=trait,             total=\t}]             \pgfextra{\xdef\InterNb{\t}} ;         \pgfmathtruncatemacro\i{\i+1}         \ifnum\i<10         % I want :         %\ifnum\\InterNb>0     \repeat          \end{scope}          \node   {\InterNb} ;     \end{tikzpicture}          \end{document}


title: Chemscheme numbering of schemes

text: I am very new to latex and I am trying to use the chemscheme package to help with my compound numbering (which seems to be working ok so far) but I am having trouble with the actual scheme numbering within my chapters. I would like to have my schemes numbered continuously throughout the document, so that it begins at scheme 1, scheme 2 ... etc (rather than what is currently happening with scheme 1.1, scheme 1.2...etc). I'm sure there is probably a very simple way to do this, but my searching hasn't helped so far. I read in another post about using the chngcntr package followed by the counterwithout commands (see: here) - however, when I tried this, it told me that schemes were not a counter and didn't really work. Here is a test file that reproduces what I am talking about below (I realise that a lot of the included packages are probably unimportant for you to reproduce the issue, but it seems like every time I change the preamble something new pops up that annoys me).               \documentclass[11 pt]{report}     %-----------------------------------------     %                  Packages     %-----------------------------------------          \usepackage{titlesec}     \usepackage[a4paper, scale=1.0, textwidth=145mm, textheight=237mm, layoutvoffset=0pt,   layouthoffset=0pt, ignoremp, includehead, marginparsep=0pt, bottom=4cm, top=2cm, left=4cm, right=2.5cm, verbose=true, bindingoffset=0pt]{geometry}      \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}      \usepackage[english]{babel}      \usepackage{setspace}      \usepackage[toc, page, header]{appendix}      \usepackage{fancyhdr}      \usepackage[super,sort&compress,comma]{natbib}      \usepackage[plain]{fancyref}      \usepackage[version=3]{mhchem}     \usepackage{times,mathptmx}     \usepackage{textcomp}      \usepackage{sectsty}     \usepackage{balance}      \usepackage{graphicx}      \usepackage{lastpage}      \usepackage[format=plain,justification=centering,singlelinecheck=false,font=small,labelfont=bf,labelsep=space]{caption}           \usepackage[runs=2]{auto-pst-pdf}     \usepackage[journal=rsc]{chemstyle}          \begin{document}          \onehalfspace     \chapter[Introduction]{Introduction}     \chaptermark{Introduction}     \label{ch:introduction} % label for referring to chapter in other parts of the thesis     \section[Importance]{Importance}\label{C1:Intro}     Filling in later          \section[Synthesis]{Synthesis}     Ketone \compound{cmpd:ketone} blah blah to acid chloride \compound{cmpd:acid}.          \begin{scheme}[ht]     \begin{center}     \schemeref[TMP1]{cmpd:ketone}        \schemeref[TMP2]{cmpd:acid}     \includegraphics[scale=0.8]{Schemes/synthesis}     \end{center}     \caption{}     \end{scheme}          \end{document}      ![Looks like this in the end](http://i.stack.imgur.com/1l4nj.jpg) Thank you.


title: How to remove page number in TOC for Part entry (not page number printed in TOC pages)

text: I want to remove page number in TOC entry for Part (in this example 3 must be removed)               \documentclass{scrbook}          \usepackage{lmodern}% for sans-serif plus bold plus italic          \renewcommand\partname{Module}          \usepackage{tocstyle}     \usetocstyle{standard}     \usetocstyle{nopagecolumn}     \settocstylefeature{pagenumberhook}{\itshape}          \settocfeature{pagenumberhook}{~}     \renewcommand*{\addparttocentry}[2]{%       \addtocentrydefault{part}{}{\protect\parbox{\textwidth}{\protect\centering#2}}% original #1 in second argument     }          \usepackage{blindtext}               \begin{document}          \tableofcontents          \part{First Module}          \blinddocument          \end{document}      Answer update from **lockstep** answer               \documentclass{scrbook}     \usepackage{lmodern}% for sans-serif plus bold plus italic          \renewcommand\partname{Module}          \usepackage{tocstyle}     \usetocstyle{standard}     \usetocstyle{nopagecolumn}     \settocstylefeature{pagenumberhook}{\itshape~}     \makeatletter     \settocstylefeature[-1]{pagenumberhook}{\@gobble}     \makeatother          \renewcommand*{\addparttocentry}[2]{%       \addtocentrydefault{part}{}{\protect\parbox{\textwidth}{\protect\centering Module #1 ~--~ #2}}% original #1 in second argument     }          \usepackage{blindtext}          \begin{document}          \tableofcontents          \part{First Module}          \blinddocument          \part{Second Module}          \blinddocument     \end{document}      ![enter image description here](http://i.stack.imgur.com/VTGkP.jpg)


title: pgfplots: How to specify custom tick and label at specified value on an axis

text: I would like to specify a custom tick with a custom label at a sp               \begin{axis}[            symbolic y coords={<{Critical point} at 2.138  ???>},     ]     \addplot+[samples=100,domain=-2:2] {x^2};     \end{axis}


title: Making the TikZ drawing(ER Diagram) looking nicer

text: My ER Diagram is finally complete. But I need help in making it look complete. I need changes in,   i) Making the diagram centered to the page   ii)Adjusting the node distances (need very badly, not able to do as well)   iii)Giving a label to the diagram.   Here is my code:               \documentclass[12pt]{article}     \usepackage{tikz-er2}     \usepackage{pdflscape}     \usepackage{adjustbox}     \usetikzlibrary{shadows,positioning}     \begin{document}     \tikzset{         every entity/.style = {top color=white,bottom color=blue!30,draw=blue!50!black!100,drop shadow},         every attribute/.style = {top color=white, bottom color=yellow!20,                                       draw=yellow, drop shadow},         every relationship/.style ={top color=white, bottom color=red!20,                                       draw=red!50!black!100, drop shadow},         every edge/.style = {link},         every isa/.style = {top color=white, bottom color=green!20,                                       draw=green!50!black!100, drop shadow},     }     \begin{landscape}     \begin{adjustbox}{max height=0.5\textwidth}     \begin{tikzpicture}[node distance=10em]         \node[entity] (student) at (-2,0) {Student};         \node[isa] (isa1) [below = 2em of student, node distance=5em] {ISA} edge node [auto,swap] {disjoint} (student);         \node[entity] (mtech-stud) [below left = 2em of isa1] {MTech$-$student} edge (isa1);         \node[attribute] (btechproj) [below left = 2em of mtech-stud] {No.-of-BTech-Projects} edge (mtech-stud);         \node[entity] (btech-stud) [below = 4em of isa1] {BTech$-$student} edge (isa1);         \node[entity] (phd-stud) [below right = 2em of isa1] {Ph.D.$-$student} edge (isa1);         \node[attribute] (btechproj1) [below left = 2em of phd-stud] {No.-of-BTech-Projects} edge (phd-stud);         \node[attribute] (mtechproj) [below right = 2em of phd-stud] {No.-of-MTech-Projects} edge (phd-stud);         \node[attribute] (stud-id) [left = 0.5cm of student] {\key{student-id}} edge (student);         \node[attribute] (name) [above left = 0.75cm and 0cm of student] {Name} edge (student);         \node[attribute] (fname) [above left = 0.75cm and 0cm of name] {First-Name} edge (name);         \node[attribute] (lname) [above right = 0.75cm and 0cm of name] {Last-Name} edge (name);         \node[attribute] (cgpa)  [above right = 0.75cm and 0cm of student] {CGPA} edge (student);         \node[relationship] (joins) [right = 3cm of student] {joins} edge [total] (student);         \node[entity] (pgroup) [right = 3cm of joins] {Project-Group} edge [<-] (joins);         \node[attribute] (group-id) [above left = 0.75cm and 0cm of pgroup] {\key{group-id}} edge (pgroup);         \node[derived attribute] (group-cgpa) [above = 2cm and 0cm of pgroup] {group-CGPA} edge (pgroup);         \node[multi attribute] (areas) [above right = 0.75cm and 0cm of pgroup] {areas-of-interest} edge (pgroup);         \node[relationship] (pgroup-guide) [right = 3cm of pgroup] {Project-Group-Guide} edge[<->] (pgroup);         \node[attribute] (pdomain) [above left = 2.5cm and 0cm of pgroup-guide] {Project-Domain} edge (pgroup-guide);         \node[attribute] (ptitle) [above right = 2.5cm and 0cm of pgroup-guide] {Project-Title} edge (pgroup-guide);         \node[entity] (faculty) [right = 3cm of pgroup-guide] {Faculty} edge[<->] (pgroup-guide);         \node[attribute] (facid) [above left = 0.75cm and 0cm of faculty] {\key{faculty-d}} edge (faculty);         \node[attribute] (name) [above = 1.5cm and 0cm of faculty] {Name} edge (faculty);         \node[attribute] (fname) [above left = 0.75cm and 0cm of name] {First-Name} edge (name);         \node[attribute] (lname) [above right = 0.75cm and 0cm of name] {Last-Name} edge (name);         \node[multi attribute] (specialisation) [above right = 0.75cm and 0cm of faculty] {Specialisation} edge (faculty);         \node[attribute] (email) [below left = 0.75cm and 0cm of faculty] {Email} edge (faculty);         \node[multi attribute] (phoneno) [below right = 0.75cm and 0cm of faculty] {Phone-no} edge (faculty);     \end{tikzpicture}     \end{adjustbox}     \end{landscape}     \end{document}       ![enter image description here](http://i.stack.imgur.com/ETr05.png)


title: Writing around a figure (XeTeX)

text: In Microsoft Word, there is an alignment option for pictures which is called "Square". It allows you to write text around the picture. Is there a LaTeX equivalent of that? How does it work? And is there an equivalent for "In front of (Behind) text", which puts the picture behind (in front of) the text you type?


title: use string variable as format string in \begin{tabu}

text: I have the following problem. I'm using the `tabu` package to create tables but instead of a format string like this: `\begin{tabu}{ccc}` I want to use a format string like this (as string variable): `\begin{tabu}{\reptemp}`. Here is my code:               \documentclass{article}     \usepackage{forloop,tabu}          \begin{document}          \def\reptemp{}                \newcounter{ct}              \forloop{ct}{1}{\value{ct} < 5}%         {%             \g@addto@macro\reptemp{c}         }          \begin{tabu}{\reptemp}     \end{tabu}          \end{document}      And get the following compiling error: `! Package array Error: Illegal pream-token (\reptemp): 'c' used.` I hope you have a tip for my how I can solve this problem.


title: xypic: custom arrow shaft(stem)

text: I've noted that `xy-pic` have predefined some dir's. The tail and head (tip) are easy to custom (one can learn by `xyrefer.pdf`), but I find it hard to implement my own shaft types. Because the dash stem is drawn evenly with a invisible space. I want to control the space step. Tried `\newdir{}{}`, `\composite{}` but in vain. Furthermore, the following code gives ugly downward arrow:               \documentclass{minimal}     \usepackage[all]{xy}     \begin{document}     {         \def\arr{ \ar@{*{\bullet}*{\cdot}*@{>}} }         \xymatrix{ A \arr[dr]\arr[d]\arr[r] &B \\ C&D }     }     \end{document}      ![enter image description here](http://i.stack.imgur.com/KUTMA.jpg) `xyrefer.pdf` is so fuzzy for beginners. Even the `yacc` style Syntax-List figures are just for compilers, not for human-reading (I would prefer the Unix-command-syntax-style). Any help ?


title: Problem with margins using amsart and geometry packages

text: I do not want different margins on even and odd sides, I just want the usual page setup from the `amsart` package. However, consider:               \documentclass{amsart}     \usepackage{geometry}     \usepackage{lipsum}     \begin{document}     \lipsum[1-20]     \end{document}      compiling this with `pdflatex` gives different margins on odd and even sides. I think the problem is the combination of the `amsart` and `geometry` packages. If I do not use the `geometry` package it works fine. If I use `\documentclass{article}` it also works fine.


title: Should I use a space or a new line after a period?

text: After a period in a .tex file, within a paragraph, should I use a space or a new line? I.e. like this:               Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus vestibulum metus ut suscipit. Sed suscipit sem ligula, iaculis dignissim turpis ultricies vitae. Curabitur interdum lorem fermentum tellus blandit venenatis et et nisi. Ut elementum interdum nulla, at dapibus urna consequat ut. Nulla sodales in nulla et semper. Proin et consequat lacus. Nam faucibus, dui sit amet sodales cursus, nunc neque mattis eros, a pharetra purus elit quis tortor.      Or like this:               Lorem ipsum dolor sit amet, consectetur adipiscing elit.     Donec rhoncus vestibulum metus ut suscipit.     Sed suscipit sem ligula, iaculis dignissim turpis ultricies vitae.     Curabitur interdum lorem fermentum tellus blandit venenatis et et nisi.     Ut elementum interdum nulla, at dapibus urna consequat ut.     Nulla sodales in nulla et semper.     Proin et consequat lacus.     Nam faucibus, dui sit amet sodales cursus, nunc neque mattis eros, a pharetra purus elit quis tortor.


title: Animating Beamer slides with pstricks code in them

text: I have made a beamer presentation and have a series of the slides with pstricks images on them. Each of these images either builds upon the previous, or moves an element of the previous. Is there a way I can set up the presentation so I only have to click once to run the whole series of slides? Note: I have attempted to use the \animate command as described in the Beamer manual, but have had no success.


title: PSTricks, conditional frame size

text: Consider the following code:               \documentclass{article}          \usepackage{pst-eucl}     \usepackage{siunitx}          % LaTeX 3 syntax     \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff          % constants     \def\northB{\calc{90-\north} }     \def\lengthC{\calc{\length*sin(\northB*pi/180)} }     \def\lengthB{\calc{\length*sin(\north* pi/180)} }     \def\coorx{\calc{\lengthC*sin(\northB*pi/180)} }     \def\coory{\calc{\lengthB*cos(\north* pi/180)} }     \def\maxx{\calc{\length+0.45} }     \def\maxyA{\calc{1/2*\lengthB*(sin(\north*pi/180)+cos(\north*pi/180))} }     \def\maxyB{\calc{\coory+0.6} }          \begin{document}          % settings     \psset{unit = 0.67}     \sisetup{round-mode = places, round-precision = 1}     % constants     \def\length{16 }     \def\north{55 }     % picture     \begin{pspicture}(-0.6,-0.15)(\maxx,\maxyB)       \pnodes{P}(0,0)(\coorx,\coory)(\length,0)       \pspolygon(P0)(P1)(P2)       \pstMarkAngle{P2}{P0}{P1}{\SI{\north}{\degree}}       \pstRightAngle{P0}{P1}{P2}       \pstMarkAngle{P1}{P2}{P0}{\SI{\northB}{\degree}}       \uput[180](P0){$A$}       \uput[90](P1){$C$}       \uput[0](P2){$B$}       \pstMediatorAB[         PointSymbol = none,         PointNameA = none,         PointNameB = none,         CodeFig = true,         CodeFigColor = black       ]{P1}{P2}{M}{MN}       \psset{offset = -9pt, linestyle = none, nrot = :U}       \pcline(P0)(P1)       \ncput*{\SI{\lengthC}{\cm}}       \pcline(P1)(P2)       \ncput*{\SI{\lengthB}{\cm}}       \pcline[offset = 9pt](P0)(P2)       \ncput*{\SI{\length}{\cm}}     \end{pspicture}          \end{document}      ![output](http://i.stack.imgur.com/yFfGY.jpg) How do I make PSTricks choose `\maxyA` if this value is bigger than `\maxyB` and choose `\maxyB` if this value is bigger than `\maxyA`, I.e., choose the biggest of the two values? (I'm talking about the hight of the PSTricks frame.) **Update** Here is what I ended up with:               \documentclass{article}          \usepackage{pst-eucl}     \usepackage{siunitx}          % LaTeX 3 syntax     \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff          % constants     \def\northB{\calc{90-\north}}     \def\lengthB{\calc{\length*sin(\northB*pi/180)}}     \def\lengthC{\calc{\length*sin(\north* pi/180)}}     \def\coorx{\calc{\lengthB*sin(\northB*pi/180)}}     \def\coory{\calc{\lengthC*cos(\north* pi/180)}}     \def\maxxA{\calc{\length+0.45}}     \def\maxxB{\calc{1/4*\length*(sin(2*\north*pi/180)+cos(2*\north*pi/180)+3)}}     \def\maxx{\calc{max(\maxxA,\maxxB)}}     \def\maxyA{\calc{1/2*\lengthC*(sin(\north*pi/180)+cos(\north*pi/180))}}     \def\maxyB{\calc{\coory+0.6}}     \def\maxy{\calc{max(\maxyA,\maxyB)}}          \begin{document}          % settings     \psset{unit = 0.67}     \sisetup{round-mode = places, round-precision = 1}     % constants     \def\length{16 }     \def\north{55 }     % picture     \begin{pspicture}(-0.6,-0.15)(\maxx,\maxy)       \pnodes{P}(0,0)(\coorx,\coory)(\length,0)       \pspolygon(P0)(P1)(P2)       \pstMarkAngle{P2}{P0}{P1}{\SI{\north}{\degree}}       \pstRightAngle{P0}{P1}{P2}       \pstMarkAngle{P1}{P2}{P0}{\SI{\northB}{\degree}}       \uput[180](P0){$A$}       \uput[90](P1){$C$}       \uput[0](P2){$B$}       \pstMediatorAB[         PointSymbol = none,         PointNameA = none,         PointNameB = none,         CodeFig = true,         CodeFigColor = black       ]{P1}{P2}{M}{MN}       \psset{offset = -9pt, linestyle = none, nrot = :U}       \pcline(P0)(P1)       \ncput*{\SI{\lengthB}{\cm}}       \pcline(P1)(P2)       \ncput*{\SI{\lengthC}{\cm}}       \pcline[offset = 9pt](P0)(P2)       \ncput*{\SI{\length}{\cm}}     \end{pspicture}          \end{document}


title: Detect if \\ can be used

text: How can I detect if I am at a point in the source where I can end a text line, for example, with `\\\\[5pt]`? I would like to have something like               \ifTEST \\[5pt]\else\vspace*{5pt}\fi      but I do not know what "TEST" might be.


title: How to change the language when working with the a0poster class?

text: How can I change the language (i.e. the `and` in the author separations) of the `a0poster` class? For example: `\documentclass[german]{a0poster}` did not work, it still shows the `and` in English.


title: Latex: Create tree diagram from text file

text: I want to create a TIKZPICTURE using some data output from SAS. The following code creates a simple tree with a few nodes. I can't continue to add the values by hand as the actual tree I'm using has much more nodes and I've a number of trees to do. How can I do something similar to the following, but for a much more complicated tree?               \begin{filecontents*}{assocFile.dat}     1/Node one     2/Node two     3/Node three     4/Node four     \end{filecontents*}          \documentclass{article}     \usepackage{catchfile,tikz}          \begin{document}          \begin{tikzpicture}         \CatchFileDef{\tempa}{assocFile.dat}{\endlinechar=`,}         \edef\tempb{\unexpanded{\foreach\a/\b in }{\unexpanded\expandafter{\tempa}}}         \tempb { \draw (\a,\a) node{\b}; }     \end{tikzpicture}          \end{document}      This is the kind of tree I need to create.               \documentclass{article}          \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{trees}     \begin{document}     \pagestyle{empty}               % Set the overall layout of the tree     \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm]     \tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm]          % Define styles for bags and leafs     \tikzstyle{bag} = [text width=4em, text centered]     \tikzstyle{end} = [circle, minimum width=3pt,fill, inner sep=0pt]          % The sloped option gives rotated edge labels. Personally     % I find sloped labels a bit difficult to read. Remove the sloped options     % to get horizontal labels.      \begin{tikzpicture}[grow=right, sloped]     \node[bag] {1000}             child {                     node[bag] {500}                                     child {                                     node[end, label=right:                                             {254}] {}                                     edge from parent                                     node[above] {L}                                     node[below]  {253}                             }                             child {                                     node[end, label=right:                                             {252}] {}                                     edge from parent                                     node[above] {W}                                     node[below]  {251}                             }                             edge from parent                              node[above] {L}                             node[below]  {501}             }             child {                     node[bag] {505}                             child {                                     node[end, label=right:                                             {254}] {}                                     edge from parent                                     node[above] {L}                                     node[below]  {253}                             }                             child {                                     node[end, label=right:                                             {252}] {}                                     edge from parent                                     node[above] {W}                                     node[below]  {251}                             }                     edge from parent                                      node[above] {W}                             node[below]  {502}             };     \end{tikzpicture}     \end{document}


title: set a maximum width and height for an image

text: I would like to define a maximum height and a maximum width for an image at same time. I suppose there must be a package to do this, but actually I'm unable to find it...


title: Specific indentation for enumerate item

text: MWE:               \documentclass{beamer}          % Custom theme from https://bitbucket.org/marczellm/beamerports/src/30de28e687e2dfad6ebe0765d2eb622ed12fdbfe/beamerthemeKlope.sty?at=master     % It overwrites the default list style (see screenshot below)     \usepackage{../marczellm-beamerports-ad2150496d62/beamerthemeKlope}               \begin{document}     \begin{frame}       \begin{enumerate}         \item A         \item B         \item C       \end{enumerate}     \end{frame}     \end{document}      I wish to change the indentation of item C. The closest result I achieved was by using `\item \hspace{-4em}C`. Obviously the number `3` has also to be moved to the left.   ![Screenshot of \\hspace{-4em}](http://i.stack.imgur.com/z8EGy.png) I also read about `leftmargin` in conjunction with `itemize`. Unfortunately, it does a) not work with `enumerate`: `\begin{enumerate}[leftmargin=-.5in]` ("Something's wrong--perhaps a missing \item.") b) and I don't see a way of assigning it to specific items. `\item[leftmargin=-.5in]` gives weird results. * * * @Steven B. Segletes' (now deleted) answer: I am actually using Beamer and a custom theme (this one). It seems that overridden styles are not taken into consideration with your code: ![](http://i.stack.imgur.com/uIcYr.png)


title: Finding cross references in Lyx

text: Is there any way to find all the cross references to a label in a LyX document? One solution is to search through the source file, but I was wondering if there is anything provided in the GUI.


title: Beamer: Highlight text in bold (math mode)

text: I want to highlight a certain part of a formula from one slide to the next. I'm looking for something similar to               Non bold on slide 1 \textbf<2>{this is bold on slide 2}      just in math mode.


title: How to enlarge a picture on click?

text: I am trying to create a technical manual which contains a lot of screen-shots. Nevertheless I am looking for:   * Insert the pictures as thumbnails and when one clicks on them, they expand as embedded pictures. Can that behaviour be achieved using the LaTeX technology? If the answer is yes, can you suggest some tips about it, please?


title: How can I label TikZ-graphs on four vertices with a loop?

text: I need to draw all these simple labelled graphs on four vertices. Anyway, can I do this in a quick manner with a loop? And put them in an array? I have already drawn all unlabelled simple graphs on four vertices. Therefore I am hoping that I can just run a loop that labels the edges six different ways for each graph except the complete one and the empty one. Any ideas would be very helpful. * * * These are the graphs that I have drawn so far. I want to make a loop that permutes the labeling of the edges. ## Code               \documentclass[tikz,convert=false]{standalone}     \begin{document}         \begin{tikzpicture}[scale=.5,auto=left,every node/.style={circle,fill=black!20}]             \node (n1) at (0,0) {1};           \node (n2) at (0,2)  {2};           \node (n3) at (2,2)  {3};           \node (n4) at (2,0) {4};         \foreach \from/\to in {n2/n3}         \draw (\from) -- (\to);         \end{tikzpicture}     \end{document}      ## Output ![enter image description here](http://i.stack.imgur.com/HIxan.png) I want to make a loop draw the same picture relabeling the vertices, six times.