title: Why sidebar TOC lists a section with \paused items many times?

text: I'm trying to create my own theme, but as a newbie I have encountered few problems which I wasn't able to solve... I'm using `\useoutertheme{sidebar}` option and it automaticly creates TOC with sections and subsections, which is as it should be. However, in one section I have               \begin{itemize}[<+->]     \item One     \item Two     \item Three     \end{itemize}      and this shows as a multiple section entries in TOC. Frame number, however, is not affected by `\pause` command and multiple sections. Any ideas? * * *               \documentclass[compress,mathserif]{beamer}     \mode<presentation>     \usepackage[utf8x]{inputenc}     \usepackage{graphicx}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{tikz}     \useoutertheme[width=2cm,height=2cm]{sidebar}     \title[]{Long title}     \author[]{Author}     \begin{document}     \begin{frame}     \titlepage     \end{frame}     \begin{frame}     \section{Lists}     \frametitle{Bullets and lists}     \begin{overprint}     \begin{itemize}[<+->]     \item One      \item Two      \item Three      \end{itemize}      \end{overprint}      \end{frame}      \end{document}


title: wrong header in bibliography (classicthesis)

text: I'm using classicthesis and have a problem with the header of my bibliography: instead of small caps I receive normalfont letters. I don't know how to make a reproducible MWE, because when I load a bibliography with               \begin{thebibliography}{99}     \bibitem{example}     \bibitem{example}     \bibitem{example}     \end{thebibliography}      the problem doesn't occur. And in the classicthesis-package itself, the bibliography is too short to show the problem (header starts at the second page). So here's what I'm doing:                \documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,footinclude=true,                  cleardoublepage=empty,                 fontsize=11pt, ngerman,american]{scrbook}     \input{classicthesis-config}          \bibliography{bibliography} % change to your own bibliography     \renewcommand*{\bibname}{Bibliography}     \setbibpreamble{}          \begin{document}     \tableofcontents     \pagestyle{scrheadings}     \part{Introduction}     \include{Chapters/test} % insert chapter with lots of citations          \manualmark     \markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}} % work-around to have small caps also     \refstepcounter{dummy}     \addtocontents{toc}{\protect\vspace{\beforebibskip}} % to have the bib a bit from the rest in the toc     \addcontentsline{toc}{chapter}{\tocEntry{\bibname}}     \printbibliography           \end{document}      I'm not sure if this is working... if not you might have an idea anyway what I can try


title: How to capture a colon in a macro?

text: I am trying to capture punctuation marks and I have a number of macros, two of which are shown in the minimal below:               \documentclass{article}     \usepackage[english]{babel}     \def\isColon#1{%     \ifx:#1         colon!     \else        Not a colon!     \fi}          \def\isPeriod#1{%     \ifx.#1        Period!     \else        Not a period!     \fi}          \begin{document}     \isColon:          \isPeriod.     \end{document}      If the `babel` language is changed to `[french,english]` the colon is not captured, as babel makes it active. What modifications are required to the `isColon` macro to work in both cases?


title: Write in Urdu font

text: I want to write some lines in **Urdu font** in Tex writing. Someone help me that which packages I must use and how I write in .tex file, either in Urdu text or in English text. Please help me with a example. And also tell me that how can I update **natbib** reference packages file after using packages for Urdu writing. I am using TexMaker in Ubuntu 13.10.


title: Metapost crashes when adding tex labels

text: I am using Miktex 2.9 (64-bit) and TexnicCenter when compiling Metapost (version 1.504). My files will compile fine without labels. When I try to add a tex label, metapost crashes. I NEED HELP PLEASE! Also, when compiling it is generating files with filenames like'mp755048' which have a .tex, .dvi, and .txt associated with the filename. The .dvi file contains the latex label by itself. The text file contains:               This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex 2012.3.18)  1 FEB   2013 16:44     **mp755048.tex     ("C:\Users\Documents\Research\Thesis - Paper 2\Graphs\mp755048.tex"     ! Undefined control sequence.     l.2 \documentclass                   {article}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     l.3 \begin           {document}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          [1] [1] )     Output written on mp755048.dvi (2 pages, 340 bytes).      A minimal example that fails:               prologues :=3;     verbatimtex     %&latex     \documentclass{article}     \begin{document}     etex          beginfig(1);         label(btex $x$ etex, origin);     endfig;     end;


title: Way too much extra space in my tables

text: I'm new to making tables and I'm having a problem with them taking up way too much of my page.               \begin{table}[ht]       \centering       \caption{Table F8: Fertility Rates by Generation and Marriage Type}         \begin{tabular}{lrrrrrr}         \hline \hline     & \multicolumn{3}{c}{First Generation} & \multicolumn{3}{c}{Second Generation} \\         \hline     & \multicolumn{1}{c}{Single} & \multicolumn{1}{c}{Endogamous} & \multicolumn{1}{c}{Exogamous} & \multicolumn{1}{c}{Single} & \multicolumn{1}{c}{Endogamous} & \multicolumn{1}{c}{Exogamous} \\     15-19 & 0.13  & 0.45  & 0.26  & 0.12  & 0.46  & 0.58 \\     20-24 & 0.58  & 1.27  & 0.75  & 0.42  & 0.90  & 1.14 \\     25-29 & 0.71  & 1.11  & 0.65  & 0.52  & 0.85  & 1.08 \\     30-34 & 0.71  & 1.02  & 0.60  & 0.53  & 0.52  & 0.66 \\     35-39 & 0.50  & 0.46  & 0.27  & 0.15  & 0.34  & 0.43 \\     40-44 & 0.13  & 0.13  & 0.08  & 0.03  & 0.21  & 0.27 \\     Total Fertility Rate & 2.76  & 4.43  & 2.61  & 1.78  & 3.29  & 4.16 \\     \hline         \textit{Source: National Survey of Family Growth, 2006-2010} &  \\         \hline         \end{tabular}      % \label{tab:addlabel}     \end{table}      From this, I'm getting a massive first column (takes up almost the entire page) and I can't see the rest of my columns. How do I get the right spacing?


title: Customizing arrow tips with tikz in order to to mimic arrows of engineering drawings

text: I need to mimic in Tikz the arrow tip created by most CAD packages for engineering drawings. The targeted arrow tip is an elongated sharp triangle, with an angle of about 17 degrees. The desired shape would be approximately the equivalent of "triangle 17" as shown in the arrow library (link below), but the length of the tip is also about three times the width (the short side of the triangle). List of available TikZ libraries with a short introduction I have found below an example of a customized arrow tip, but do not have the skills to convert the code in a way solving my problem. Customizing arrows with Tikz


title: Autoref and capital subfloat references don't match in letter size

text: If I refer to a `subfloat` using `\autoref{fig:subfloat1a}` I get (1.0a) instead of (Figure 1.0a) but my subfloat captions are actually FIGURE 1.4: (A) blah blah, (B) blah bal etc. Can anyone spot or know what to look for in this `.cls` file? eg. ![enter image description here](http://i.stack.imgur.com/itjjZ.png)               %%     %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn     %% generated with the docstrip utility.     %%     %% Created by Steve R. Gunn, modified by Sunil Patel: www.sunilpatel.co.uk     \usepackage{etex}     \reserveinserts{28}     \NeedsTeXFormat{LaTeX2e}[1996/12/01]     \ProvidesClass{Thesis}                   [2007/22/02 v1.0        LaTeX document class]     \def\baseclass{book}     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}     \def\@checkoptions#1#2{       \edef\@curroptions{\@ptionlist{\@currname.\@currext}}       \@tempswafalse       \@tfor\@this:=#2\do{         \@expandtwoargs\in@{,\@this,}{,\@curroptions,}         \ifin@ \@tempswatrue \@break@tfor \fi}       \let\@this\@empty       \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi     }     \@checkoptions{11pt}{{10pt}{11pt}{12pt}}     \PassOptionsToClass{a4paper}{\baseclass}     \ProcessOptions\relax     \LoadClass{\baseclass}     \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}          \newcommand\Declaration[1]{     \btypeout{Declaration of Authorship}     \addtotoc{Declaration of Authorship}     \thispagestyle{plain}     \null\vfil     %\vskip 60\p@     \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}     %\vskip 60\p@     {\normalsize #1}     \vfil\vfil\null     %\cleardoublepage     }          \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}     \def\today{\ifcase\month\or       January\or February\or March\or April\or May\or June\or       July\or August\or September\or October\or November\or December\fi       \space \number\year}     \usepackage{setspace}     \onehalfspacing     \setlength{\parindent}{0pt}     \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}     \usepackage{vmargin}     \setmarginsrb           { 1.2in}  % left margin                             { 0.6in}  % top margin                             { 1.0in}  % right margin                             { 0.8in}  % bottom margin                             {  20pt}  % head height                             {0.25in}  % head sep                             {   9pt}  % foot height                             { 0.3in}  % foot sep     \raggedbottom     \setlength{\topskip}{1\topskip \@plus 5\p@}     \doublehyphendemerits=10000       % No consecutive line hyphens.     \brokenpenalty=10000              % No broken words across columns/pages.     \widowpenalty=9999                % Almost no widows at bottom of page.     \clubpenalty=9999                 % Almost no orphans at top of page.     \interfootnotelinepenalty=9999    % Almost never break footnotes.     \usepackage{fancyhdr}     \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}     \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}     \chead{}\lfoot{}\rfoot{}\cfoot{}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}     \renewcommand{\sectionmark}[1]{}     \renewcommand{\subsectionmark}[1]{}     \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else     \hbox{}     \thispagestyle{empty}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace,amstext}     \theoremstyle{plain}     \newtheorem{example}{Example}[chapter]     \newtheorem{theorem}{Theorem}[chapter]     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{axiom}[theorem]{Axiom}     \theoremstyle{definition}     \newtheorem{definition}[theorem]{Definition}     \theoremstyle{remark}     \newtheorem{remark}[theorem]{Remark}     \usepackage[centerlast,small,sc]{caption}     \setlength{\captionmargin}{20pt}     \newcommand{\fref}[1]{Figure~\ref{#1}}     \newcommand{\tref}[1]{Table~\ref{#1}}     \newcommand{\eref}[1]{Equation~\ref{#1}}     \newcommand{\cref}[1]{Chapter~\ref{#1}}     \newcommand{\sref}[1]{Section~\ref{#1}}     \newcommand{\aref}[1]{Appendix~\ref{#1}}     \renewcommand{\topfraction}{0.85}     \renewcommand{\bottomfraction}{.85}     \renewcommand{\textfraction}{0.1}     \renewcommand{\dbltopfraction}{.85}     \renewcommand{\floatpagefraction}{0.75}     \renewcommand{\dblfloatpagefraction}{.75}     \setcounter{topnumber}{9}     \setcounter{bottomnumber}{9}     \setcounter{totalnumber}{20}     \setcounter{dbltopnumber}{9}     \usepackage{graphicx}     \usepackage{epstopdf}     %\usepackage[scriptsize]{subfigure}     \usepackage{subfig}     \usepackage{booktabs}     \usepackage{rotating}     \usepackage{listings}     \usepackage{lstpatch}     \usepackage{ctable}     \usepackage{media9}     \usepackage{minitoc}     \usepackage{tabularx}     \usepackage[table]{xcolor}               \usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography     \usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments     \usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths     %%\usepackage{graphicx,subfig} (subfigure package works with \subfigure, whereas subfig uses \subfloat     \usepackage{wrapfig}     \usepackage{lscape}     \usepackage{pdflscape}     \usepackage{multicol}     \usepackage{multirow}     \usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} %matlab to latex s     \usepackage{pgfplots,tikz}     \usepackage{array}     \usepackage{listliketab}     \usepackage{enumitem}     \usepackage[section]{placeins}               %\usepackage{arydshln}     %\usepackage{hyperref}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \usetikzlibrary{plotmarks,pgfplots.units,shapes,arrows}     \usepgfplotslibrary{units}     \usetikzlibrary{calc,     arrows,decorations.pathmorphing,     backgrounds,fit,positioning,shapes.symbols,chains}     \usetikzlibrary{decorations.pathreplacing}     \usetikzlibrary{shapes,arrows}     \usepgfplotslibrary{external}     \tikzexternalize     \usepackage{standalone}     \usepackage[per-mode=symbol]{siunitx}     \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}     \usepackage{ragged2e}     \lstset{captionpos=b,             frame=tb,             basicstyle=\scriptsize\ttfamily,             showstringspaces=false,             keepspaces=true}     \lstdefinestyle{matlab} {             language=Matlab,             keywordstyle=\color{blue},             commentstyle=\color[rgb]{0.13,0.55,0.13}\em,             stringstyle=\color[rgb]{0.7,0,0} }     \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,        bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,        colorlinks,linkcolor={black},citecolor={black},urlcolor={black},        pdfstartview={FitV},unicode,breaklinks=true]{hyperref}     \pdfstringdefDisableCommands{        \let\\\space     }     \newcommand*{\supervisor}[1]{\def\supname{#1}}     \newcommand*{\examiner}[1]{\def\examname{#1}}     \newcommand*{\degree}[1]{\def\degreename{#1}}     \newcommand*{\authors}[1]{\def\authornames{#1}}     \newcommand*{\addresses}[1]{\def\addressnames{#1}}     \newcommand*{\university}[1]{\def\univname{#1}}     \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}     \newcommand*{\department}[1]{\def\deptname{#1}}     \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}     \newcommand*{\group}[1]{\def\groupname{#1}}     \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}     \newcommand*{\faculty}[1]{\def\facname{#1}}     \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}     \newcommand*{\subject}[1]{\def\subjectname{#1}}     \newcommand*{\keywords}[1]{\def\keywordnames{#1}}     \supervisor  {}     \examiner    {}     \degree      {}     \authors     {}     \university  {\texorpdfstring{\href{http://www..ac.uk }                     {University of }}                     {University of }}     \UNIVERSITY  {\texorpdfstring{\href{http://www..ac.uk}                     {UNIVERSITY OF }}                     {UNIVERSITY OF }}     \department  {\texorpdfstring{\href{http://www.engineering..ac.uk/}                     {Civil Engineering}}                     {Civil Engineering}}     \DEPARTMENT  {\texorpdfstring{\href{http://www.engineering..ac.uk/}                     {School of }}                     {School of }}     \group       {\texorpdfstring{\href{http://www...ac.uk/}                     {Pathogen }}                     {Pathogen }}     \GROUP       {\texorpdfstring{\href{http://www...ac.uk/pace}                     {}}                     {}}     \faculty     {\texorpdfstring{\href{http://www...ac.uk/}                     {Faculty of Engineering}}                     {Faculty of Engineering}}     \FACULTY     {\texorpdfstring{\href{http://www...ac.uk/}                     {FACULTY OF ENGINEERING}}                     {FACULTY OF ENGINEERING}}     \addresses   {}     \subject     {}     \keywords    {}     \renewcommand\maketitle{       \btypeout{Title Page}       \hypersetup{pdftitle={\@title}}       \hypersetup{pdfsubject=\subjectname}       \hypersetup{pdfauthor=\authornames}       \hypersetup{pdfkeywords=\keywordnames}       \thispagestyle{empty}       \begin{titlepage}         \let\footnotesize\small         \let\footnoterule\relax         \let \footnote \thanks         \setcounter{footnote}{0}         \null\vfil         \vskip 60\p@         \begin{center}           \setlength{\parskip}{0pt}           {\large\textbf{\UNIVNAME}\par}           \vfill           {\huge \bf \@title \par}           \vfill     {\begin{figure}[h!]      \centering % Requires \usepackage{graphicx}       \includegraphics[scale=1.2]{./Figures/logo.png}\\       %\caption{}\label{}     \end{figure}}                {\LARGE by \par}           \smallskip           {\LARGE \authornames \par}           \smallskip           \vfil           {\large A thesis submitted in partial fulfillment for the \par}           {\large degree of Doctor of Philosophy\par}           %\bigskip           \bigskip           {\large in the \par}           {\large \facname \par}           {\large \deptname \par}           \bigskip           \bigskip           \bigskip           {\Large \@date \par}           \bigskip         \end{center}         \par         \@thanks         \vfil\null       \end{titlepage}       \setcounter{footnote}{0}%       \global\let\thanks\relax       \global\let\maketitle\relax       \global\let\@thanks\@empty       \global\let\@author\@empty       \global\let\@date\@empty       \global\let\@title\@empty       \global\let\title\relax       \global\let\author\relax       \global\let\date\relax       \global\let\and\relax       \cleardoublepage     }     \newenvironment{abstract}     {       \btypeout{Abstract Page}       \thispagestyle{empty}       \null\vfil       \begin{center}         \setlength{\parskip}{0pt}         {\normalsize \UNIVNAME \par}         \bigskip         {\huge{\textit{Abstract}} \par}         \bigskip         {\normalsize \facname \par}         {\normalsize \deptname \par}         \bigskip         {\normalsize Doctor of Philosophy\par}         \bigskip         {\normalsize\bf \@title \par}         \medskip         {\normalsize by \authornames \par}         \bigskip       \end{center}     }     {       \vfil\vfil\vfil\null       \cleardoublepage     }     \addtocounter{secnumdepth}{1}     \setcounter{tocdepth}{6}     \newcounter{dummy}     \newcommand\addtotoc[1]{     \refstepcounter{dummy}     \addcontentsline{toc}{chapter}{#1}}     \renewcommand\tableofcontents{     \btypeout{Table of Contents}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\contentsname             \@mkboth{                \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}         \@starttoc{toc}         \if@restonecol\twocolumn\fi        \cleardoublepage     }\end{spacing}     }     \renewcommand\listoffigures{     \btypeout{List of Figures}     \addtotoc{List of Figures}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listfigurename           \@mkboth{\MakeUppercase\listfigurename}                   {\MakeUppercase\listfigurename}}         \@starttoc{lof}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \renewcommand\listoftables{     \btypeout{List of Tables}     \addtotoc{List of Tables}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listtablename           \@mkboth{               \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}         \@starttoc{lot}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \newcommand\listsymbolname{Abbreviations}     \usepackage{longtable}     \newcommand\listofsymbols[2]{     \btypeout{\listsymbolname}     \addtotoc{\listsymbolname}         \chapter*{\listsymbolname           \@mkboth{               \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listconstants{Physical Constants}     \usepackage{longtable}     \newcommand\listofconstants[2]{     \btypeout{\listconstants}     \addtotoc{\listconstants}         \chapter*{\listconstants           \@mkboth{               \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listnomenclature{Symbols}     \usepackage{longtable}     \newcommand\listofnomenclature[2]{     \btypeout{\listnomenclature}     \addtotoc{\listnomenclature}         \chapter*{\listnomenclature           \@mkboth{               \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\acknowledgements[1]{     \btypeout{Acknowledgements}     \addtotoc{Acknowledgements}     \thispagestyle{plain}     \begin{center}{\huge{\textit{Acknowledgements}} \par}\end{center}     {\normalsize #1}     \vfil\vfil\null          }     \newcommand\dedicatory[1]{     \btypeout{Dedicatory}     \thispagestyle{plain}     \null\vfil     \vskip 60\p@     \begin{center}{\Large \sl #1}\end{center}     \vfil\null     \cleardoublepage     }     \renewcommand\backmatter{       \if@openright         \cleardoublepage       \else         \clearpage       \fi       \addtotoc{\bibname}       \btypeout{\bibname}       \@mainmatterfalse}     \endinput     %%     %% End of file `Thesis.cls'.      **EDIT: FIXED** I've added `\usepackage{cleveref}` and use `\Cref` before referring to any subfigures... now I get the correct: > Such and such is shown in Figure 1.5a I know this is a workaround, so I'd still appreciate if anyone could see what is causing the other behaviour in that .cls file


title: Animate swaps of elements in beamer

text: I need a nice way to show sequential swaps of two elements in verbatim. By swaps I mean two elements changing their positions with each other. Is there any specific command in beamer to animate this? Should it be one frame or several frames? Here is my MWE:               \documentclass{beamer}          \usepackage{beamerthemesplit}     \usepackage{listings}     \usepackage[absolute,overlay]{textpos}          \begin{document}     \begin{frame}[fragile]     \begin{verbatim}     q E(x) A     q E(y) B     q Ok() B     q Ok() A     q D() B     q Ok(x) B     q D() A     q Ok(y) A     q E(z) A     \end{verbatim}     \end{frame}     \end{document}


title: pgfplots xbar example fails

text: I have only modified the pgfplots xbar example very little and it completely fails: EDIT: Removed original example, it contained only a missing comma. And do I really need to define for every entry a `symbolic y coords`? My complete list is about 40 entries. EDIT: I implemented the answer with pgfplotstable, but the result looks wrong:               \pgfplotstableread[header=false, col sep=comma]{ % Read data table.      % First row doesn't have column names, hence the "header=false"     0.34,LaTeX Kernel     0.36,pre document class     0.48,document class     0.54,template packages     0.64,encoding (documents)     0.72,encoding (files)     0.88,Fonts     0.98,Packages: Base     1.01,Packages: Bugfix     1.03,relsize     1.13,Math     1.43,Math (using LaTeX 3)     2.64,pgf/tikz     2.72,siunitx     2.81,Symbols     2.85,Tables     3.01,Text     3.04,Quotes (csquotes)     3.3475,Bibliography (biblatex)     3.365,Figures     3.48,Captions     3.58,Index     3.745,Glossary     3.85,{Verbatim, Listings}     3.91,Fancy     3.92,Layout     4.015,Head and Foot     4.03,Headings     4.33,PDF     4.46,Additional     4.55,Style.tex     6.57,Document     }\compilationtimes          \begin{tikzpicture}       \begin{axis}[         xbar, xmin=0,         width=12cm, height=10cm, enlarge y limits=0.5,         xlabel={compilation time / seconds},         ytick=data,         nodes near coords, nodes near coords align={horizontal},         yticklabels from table={\compilationtimes}{1} % Get tables from second column of data table       ]       \addplot table [                 y expr=-\coordindex, % Use negative coordinate index as y coordinate                 x index=0 % Use first column as x coordinate             ] {\compilationtimes};       \end{axis}     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/V0LQv.png)


title: Format LaTeX code in TexMaker

text: I'm doing a presentation using Beamer in TexMaker. The structure of the LaTeX source code is deeply nested and I need a way to format the code as in most programming IDE. Is this feature present in TexMaker or any other editor?


title: querying whether a font feature has been activated via a fontspec command

text: A LaTeX package I'm currently writing makes use of -- and definitely requires -- some of the power of LuaLaTeX. I would like to make my package's user interface -- in particular, the options that need to be loaded -- as simple as possible by making the package determine on its own which "font features" have been activated via commands such as `\fontspec`, `\setmainfont`, `\defaultfontfeatures`, and `\addfontfeatures` that are provided by the `fontspec` package. The font features I'm most interested in are ligatures, in particular those called "Common" (activated by `+liga`), "Required" (`+rlig`), "Contextual" (`+clig`), "Historic" (`+hlig`), and "Discretionary"/"Rare" (`+dlig`). Some functionality of the type I'm looking for is mentioned in section 25.3 of the user guide (named "Programmer's interface) of the `fontspec` manual. However, no specific examples are provided to demonstrate how the macros listed in this section might be used in practice. Moreover, I must confess, I'm not at all familiar with LaTeX3, the LaTeX dialect used by the `fontspec` package. Thus, I'm in no position to construct a user macro of this type on my own. _My question thus is_ : How would one write a Boolean test -- likely based on a macro that uses the interface noted in section 25.3 of the `fontspec` manual -- to query if, say, "historic" ligatures have been activated via one of the methods provided by the `fontspec` package?


title: Defining arithmetic operators that insert brackets according to usual precedence rules

text: I have a program that generates bits of Tex code like these:               $\product{a}{\add{b}{c}}\leftrightarrow \add{\product{a}{b}}{\product{a}{c}}$     $\add{a}{\add{b}{c}}\leftrightarrow \add{\add{a}{b}}{c}$     $\product{a}{b}\leftrightarrow \product{b}{a}$     $\product{a}{\product{b}{c}}\leftrightarrow \product{\product{a}{b}}{c}$     $\subtract{\power{x}{\two}}{\power{y}{\two}}\leftrightarrow \product{\add{x}{y}}{\subtract{x}{y}}$      At the moment, I have defined               \newcommand\add[2]{({#1}+{#2})}     \newcommand\subtract[2]{({#1}-{#2})}     \newcommand\product[2]{({#1}{#2})}      But this results in far too many brackets being produced -- for example `\sum{\product{a}{b}}{c}` is rendered as _((ab)+c)_. **How can I define`\add`, `\product` and other arithmetic operations so that the minimum number of necessary brackets are added?** Just to clarify, I want `\product{a}{\add{b}{c}}` to generate _a(b+c)_ , but `\sum{\product{a}{b}}{c}` to produce _ab + c_. NB. If it was straightforward to do this in the code that generated the TeX, I would be doing so!


title: Bringhurst chapter style in memoir

text: I'm trying to imitate Robert Bringhurst's chapter style in `memoir`. The class includes one such chapter style, but does _not_ typeset the chapter number on the right side margin, as in Bringhurst's book. This is a sample of Bringhurst's _The Elements of Typographic Style_ (grabbed from Amazon): ![Bringhurst](http://i.stack.imgur.com/zjQ0x.png) My MWE is as follows:               \documentclass{memoir}     \usepackage{kantlipsum}     \makeatletter     \makechapterstyle{Bringhurst}{%       \chapterstyle{default}       \renewcommand*{\chapterheadstart}{}       \renewcommand*{\printchaptername}{}       \renewcommand*{\chapternamenum}{}        \renewcommand*{\printchapternum}{%          \makebox[0pt][l]{%            \hspace{\textwidth}%            \resizebox{!}{\beforechapskip}{\chapnumfont \thechapter}%          }%        }%       \renewcommand*{\afterchapternum}{}       \renewcommand*{\printchaptertitle}[1]{%        \raggedright\large\scshape\MakeUppercase{##1}}       \renewcommand*{\afterchaptertitle}{%       \vskip\onelineskip \hrule\vskip\onelineskip}}     \makeatother     \frenchspacing     \begin{document}       \chapterstyle{Bringhurst}       \chapter{This Is My First Chapter}       \kant[3]     \end{document}      which renders thus: ![mine](http://i.stack.imgur.com/niAJk.png) How can I fix my code in order lower the chapter number to the level of the first text line before the chapter title?


title: Align text and logo

text: I'm trying to find a way to place a logo at the top left of the page, with **at the same height** and right aligned my information (eg name, adress). The rest of the text has to be placed below that. I can't find how to do that. My problems are   1. my information (name) is not on the same height as the logo;   2. the text just starts under my name, on the right side of the logo, not under it. Most search results I saw are about headers and footers and I'm not looking for that. My code:               \begin{wrapfigure}{l}{0.5\textwidth}       \begin{center}         \includegraphics[width=0.5\textwidth]{D:/SkyDrive/Backup/Latex/logo.jpg}        \end{center}     \end{wrapfigure}          \begin{flushright}         \noindent name\\         info\\         \today     \end{flushright}          Text


title: Pgf plot square not positive

text: I am using pgfplot to draw a node and a cusp but it seems to be that the squares `\x^2` are returning negative numbers to the coordinates. This is strange. I was using the same code before and getting the right pictures. Now I moved to Windows 8 and MikTeX 2.9 and the problem appeared. The result is that the cusp is looking smooth like a cubic parabola and the node doesn't self-intersect. ![enter image description here](http://i.stack.imgur.com/Iw84d.png) The code is                \documentclass{beamer}       \usepackage{amsmath,amssymb,stmaryrd}      \usepackage{mathtools}       \usepackage{tikz}       \usetikzlibrary{calc}      \usepackage{pgfpages}       \usepackage[ansinew]{inputenc}      \usepackage{lmodern}       \usepackage{mathtools}       \usepackage{pgfplots}      \usepackage{textcomp}       \usepackage{microtype}           \begin{document}       \begin{frame}{Definition of Simple Normal Crossings}       \begin{center}      \begin{tikzpicture}       \draw[thick,domain= -1.2:1.2] plot (\x^2,\x^3);      \draw[thick,domain=-1.4:1.4] plot (\x^2+4,\x^3-\x);       \end{tikzpicture}      \end{center}       \end{frame}           \end{document}      There is a solution using the code               \documentclass{beamer}     \usepackage{amsmath,amssymb,stmaryrd}     \usepackage{mathtools}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{pgfpages}     \usepackage[ansinew]{inputenc}     \usepackage{lmodern}     \usepackage{mathtools}     \usepackage{pgfplots}     \usepackage{textcomp}     \usepackage{microtype}          \begin{document}     \setbeamercolor{alerted text}{fg=red}     \begin{frame}{Definition of Simple Normal Crossings}     \begin{center}     \begin{tikzpicture}     \draw[thick,domain=0:1.2] plot (\x^2,\x^3);     \draw[thick,domain=0:1.2] plot (\x^2,-\x^3);     \draw[thick,domain=0:1.4] plot (\x^2+4,\x^3-\x);     \draw[thick,domain=0:1.4] plot (\x^2+4,-\x^3+\x);     \end{tikzpicture}     \end{center}     \end{frame}               \end{document}      This give the right image. ![enter image description here](http://i.stack.imgur.com/znj1U.png) But there should be an explanation of what is wrong in the first.


title: How to get the References section to be numbered as if it were created via \section

text: I am using the bibtex library to reference. Everything works fine but ideally I would like the reference section generated by bibtex to have the ordered number like \section{} generates. For example,               \section{abstract}     \section{Intro}     \section{conclusion}     \section{reference}      would give a the labels 1,2,3,4 but I am using bibtex to generate the reference section:                \section{abstract}      \section{Intro}      \section{conclusion}      \bibliography{my_.bib_file_name}      This generates labels 1,2,3 but not the next number. Please let me know if there is a nice way to do this, thanks!


title: matlab2tikz and bar3 function

text: If I use the function `hist3()` it perfectly works with `matlab2tikz`. But if I use the function `bar3` I find this in my `matrix.tikz`:               % This file was created by matlab2tikz v0.2.3.     % Copyright (c) 2008--2012, Nico Schlömer <nico.schloemer@gmail.com>     % All rights reserved.     %      % The latest updates can be retrieved from     %   http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz     % where you can also make suggestions and rate matlab2tikz.     %      %      %      \begin{tikzpicture}     \pgfplotset{compat=1.6}     \begin{axis}[%     view={-37.5}{30},     width=4.52083333333333in,     height=3.565625in,     scale only axis,     xmin=0.6, xmax=9.4,     xtick={1,2,3,4,5,6,7,8,9},     xmajorgrids,     y dir=reverse,     ymin=0, ymax=10,     ytick={1,2,3,4,5,6,7,8,9},     ymajorgrids,     zmin=0, zmax=1,     zmajorgrids,     axis lines*=left,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump,     unbounded coords=jump]          \addplot3[%     surf,     colormap/jet,     shader=faceted,     draw=black]     coordinates{      (NaN,(NaN,(NaN,(0.6,0.6,0)(0.6,1.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,1.6,0)(0.6,2.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,2.6,0)(0.6,3.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,3.6,0)(0.6,4.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,4.6,0)(0.6,5.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,5.6,0)(0.6,6.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,6.6,0)(0.6,7.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,7.6,0)(0.6,8.4,0)(NaN,(Na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,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,5.6,0)(9.4,6.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,6.6,0)(9.4,7.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,7.6,0)(9.4,8.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,8.6,0)(9.4,9.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,          };     \end{axis}     \end{tikzpicture}%      And I can' t compile it with LaTeX. There is no error, all it says is `Package pgfplots Warning: running in backwards compatibility mode (unsuitable tick labels; missing features)`. All I initially wanted to do, is to represent a 9x9 Matrix with the help of a histogramm, to see which entrys are high... I also found this: 3-dimensional histogram in pgfplots where anton explained how to do a Diagramm by yourself, but I don't understand why he uses triple like (NaN, NaN, 0 ) and there is also no nice colering solution... EDIT: This is how my matlab code looks now (I think C has changed slightly)               function work_for_me_mr_pc()          C=[ 0.8445  0.0398  0.0069  0.0341  0.0199  0.0143  0.0109  0.0196  0.0099        0.0119  0.8153  0.0041  0.0057  0.0544  0.0086  0.0089  0.0847  0.0065        0.0852  0.1921  0.1077  0.0875  0.1365  0.2143  0.0102  0.0993  0.0671        0.0176  0.0135  0.004   0.7776  0.0693  0.0678  0.0203  0.0163  0.0136        0.0047  0.0129  0.0012  0.0055  0.9565  0.0045  0.0012  0.0135  0.            0.007   0.0118  0.008   0.0842  0.0572  0.8044  0.0038  0.0132  0.0102        0.0876  0.0878  0.0151  0.2129  0.1377  0.0905  0.095   0.1883  0.085         0.0109  0.0963  0.0046  0.0099  0.0867  0.0162  0.0092  0.7528  0.0134        0.0098  0.0164  0.0059  0.017   0.028   0.0319  0.0078  0.0304  0.8528];          bar3(C)     matlab2tikz( 'matrix.tikz' );


title: Different types of ampersand symbols

text: So I'm aware that \& can be used to produce the traditional ampersand symbol, however I would like to use the type of ampersand symbol which looks something like a cursive E, here is a picture: ![enter image description here](http://i.stack.imgur.com/Y6bKV.jpg) Does anyone know a package which has this symbol? Thanks.


title: Align nodes containing numbers on the decimal separators

text: In a plot, I have several vertically distributed nodes containing numbers with different numbers of digits before and after the decimal separator, and a trailing percent sign. I would like to align these nodes horizontally along the decimal separator, similar to what can be done using the `S` column type in tables using the `siunitx` package. However, I do not want to use a table for the alignment, since the nodes are unevenly spaced vertically. How can I align these nodes properly? I thought about somehow adding space before the numbers depending on the number of digits, but couldn't think of an elegant way of doing that without lots of manual work. Here's a MWE: ![](http://i.stack.imgur.com/ZKv3t.png)               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}     What I have:          \begin{tikzpicture}     \begin{axis}[         ymode=log,         height=4cm, width=8cm,         domain=1:10,         axis lines=left,         clip=false     ]     \pgfplotsinvokeforeach{0.01, 0.1, 1, 10, 100}{         \addplot [black] {#1*x} node [anchor=west] {#1\,\%};     }     \end{axis}     \end{tikzpicture}          What I want:          \begin{tikzpicture}     \begin{axis}[         ymode=log,         domain=1:10,         height=4cm, width=8cm,         axis lines=left,         clip=false     ]     \addplot [black] {x*0.01} node [anchor=west] {\hphantom{10}0.01\,\%};     \addplot [black] {x*0.1} node [anchor=west] {\hphantom{10}0.1\,\%};     \addplot [black] {x*1} node [anchor=west] {\hphantom{00}1\,\%};     \addplot [black] {x*10} node [anchor=west] {\hphantom{0}10\,\%};     \addplot [black] {x*100} node [anchor=west] {100\,\%};     \end{axis}     \end{tikzpicture}     \end{document}


title: LyX Hyphenation

text: In LyX I want my paragraphs to be justified, without the use of hyphenation. I am using `\exhyphenpenalty=10000\hyphenpenalty=10000` in my preamble and it works, but I notice that the first line of the first page of text extends about 0.5cm past the right alignment. Is this a problem with the code? Or, is there better code to deal with this?


title: How to insert Tex into PDF?

text: I have a PDF with a math excercise and space to write the solution. I know a bit math-related Tex like `$ \sqrt2 = 2^{1/2} $`. My goal is to print the result so I have excercise and solution on one page.


title: Dark colors in Asymptote

text: I came across strange color behavior in Asymptote. It seems that colors are darker as they should be when I draw 3D figure. Please consider the figures embedded below. Any idea or pointer? ![figure-1](http://i.stack.imgur.com/3kZkr.png) ![figure-2](http://i.stack.imgur.com/fj20Q.png) Source code for Figure 1:               import graph;     import settings;     outformat="pdf";     size(8cm, 4cm, IgnoreAspect);     real xmin=-3.5,xmax=3.5;     real ymin=0,ymax=5;     real f(real x) {return 0 + exp(-abs(x)^2);}     path Cf=graph(f, xmin,xmax, n=400);     path mypoly=buildcycle(pA--(1.64,0)--(0.5,0)--pB,graph(f,0.5,1.64));     draw(Cf);     xaxis(Label("$x$"), xmax=3.6, Arrow(3));     yaxis(Label("$p$"), ymax=1.1, Arrow(3));     filldraw(mypoly, red, black);      Source code for Figure 2:               import graph3;     import settings;     outformat="pdf";     size(7.5cm,0);     real f(pair x) {return 1 + exp(-abs(x)^2);}     currentprojection=perspective(4,5,2);     limits((-3,-3,-0.2),(3,3,3.2));     xaxis3(Label("$x$",1),blue,arrow=Arrow3);     yaxis3(Label("$y$",1),blue,arrow=Arrow3);     zaxis3(Label("$z$",1),blue,arrow=Arrow3);     path3 p1=(-2.5,-2.5,0)--(2.5,-2.5,0)--(2.5,2.5,0)--(-2.5,2.5,0)--cycle;     path3 p2=scale3(2)*unitcircle3;     draw(p1);     draw(surface(reverse(p1)^^p2,planar=true),red);     draw(surface(f,(-2.5,-2.5),(2.5,2.5),nx=20,Spline),lightgray,meshpen=black+thick(),nolight);


title: Modifying the header in fancyhdr - review

text: I don't want to ask questions in my edits or comments so I am posting my question freshly. The solution that was given for the problem Modifying the header in fancyhdr. **I want the chapter name to appear on the header without numbering. What should I do? I tried removing the section mark but it doesn't just work?** It works in a separate code. Now If I am embedding it in original code it doesn't work or rather the output expected doesn't come. I want to achieve the following:   1. Chapter 1 or similar should not appear in the heading of the chapter so I used chapter*   2. In header only chapter name should appear without numbering but section names are also appearing.  Here is the code:               %Template for Technical Document     \documentclass{book}     \usepackage{graphicx}     \usepackage[explicit]{titlesec}     \usepackage{tikz}     \usepackage{suffix}     \usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}     %\renewcommand{\chaptername}{Article}     \usepackage{fancyhdr}     \usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}     % Can also use centering, or hcentering          \usetikzlibrary{shapes.misc,arrows}     \newcommand\titlebar{%     \tikz[baseline,trim left=0.5cm,trim right=2.5cm] {%         \node [             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (a) at (2.5cm,0.6ex) {%         };        \path[fill=red!70!blue] (a.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (a.east) |- (\textwidth+3cm,-0.75ex);     }%     }          \newcommand\subtitlebar{%     \tikz[baseline,trim left=1cm,trim right=3.05cm] {%         \node[             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (b) at (3.05cm,0.6ex) {%         };        \path[fill=red!70!blue] (b.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (b.east) |- (\textwidth+2cm,-0.75ex);     }%     }          \titleformat{\subsection}{\normalfont\sf}{\subtitlebar}{0.2cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\subsection}{-2cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\subsection,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesubsection}{\arabic{subsection}}               \titleformat{\section}{\large\sf}{\titlebar}{0.25cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\section}{-2.15cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\section,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesection}{\arabic{section}}          \newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}}     \WithSuffix\newcommand\chapterauthor*[1]{\printchapterauthor{#1}}     \makeatletter     \newcommand{\printchapterauthor}[1]{%       {\parindent0pt\vspace*{-25pt}%       \linespread{1.5}\large\scshape\filcenter #1%       \par\nobreak\vspace*{35pt}}       \@afterheading%     }     \newcommand{\authortoc}[1]{%       \addtocontents{toc}{\vskip-10pt}%       \addtocontents{toc}{%         \protect\contentsline{chapter}%         {\hskip1.3em\mdseries\scshape\protect\scriptsize#1}{}{}}       \addtocontents{toc}{\vskip5pt}%     }     \makeatother          \titleformat{\chapter}[display]       {\bfseries\Large}       {\filright\MakeUppercase{\chaptertitlename}\Huge\thechapter}       {1ex}       {\titlerule\vspace{1ex}\filcenter #1}       [\vspace{1ex}\titlerule]          \fancypagestyle{myfancy}{     \fancyhf{}     \fancyhead[LE,RO]{\slshape\nouppercase{\rightmark}}     \fancyhead[LO,RE]{\slshape\nouppercase{\leftmark}}     \fancyfoot[LE,RO]{\thepage}     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}     }               \usepackage{microtype}          \usepackage{afterpage}     \let\oldcleardoublepage\cleardoublepage     \renewcommand{\cleardoublepage}{\afterpage{\thispagestyle{empty}}\oldcleardoublepage}          \pagestyle{myfancy}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{#1}}               \begin{document}     \chapter{Install Backtrack on an Android Device}     \chapterauthor*{K.DINESH KUMAR \par II Year B.Tech CSE}     \section{What is Backtrack?}     BackTrack is a distribution designed by Jason Dennis based on the Ubuntu Linux distribution aimed at digital forensics and penetration testing use. BackTrack provides users with easy access to a comprehensive and large collection of security-related tools ranging from port scanners to Security Audit. Support for Live CD and Live USB functionality allows users to boot BackTrack directly from portable media without requiring installation, though permanent installation to hard disk and network is also an option.\par     \section{Security Tools in Backtrack}     BackTrack includes many well known security tools including:     \begin{itemize}         \item Metasploit for integration         \item Wi-Fi drivers supporting monitor mode (rfmon mode) and packet injection         \item Aircrack-ng         \item Gerix Wifi Cracker         \item Kismet         \item Nmap         \item Ophcrack         \item Ettercap         \item Wireshark (formerly known as Ethereal)         \item BeEF (Browser Exploitation Framework)         \item Hydra         \item OWASP Mantra Security Framework, a collection of hacking tools, add-ons and scripts based on FirefoX.         \item Cisco OCS Mass Scanner, a very reliable and fast scanner for Cisco routers with telnet and enabling of a default password.     \end{itemize}          \section{Installing Backtrack on Android Device}     \subsection{Tools Required}     \begin{enumerate}     \item Backtrack 5 ARM.\\     Download Backtrack 5 ARM from Backtrack official site. Backtrack with ARM architecture only on Backtrack 5 version. ARM architecture not available for Backtrack 5 R1, Backtrack 5 R2, and Backtrack 5 R3.     \item Rooted android device \\     Why rooted android device ? Because we need install some application that need Android to be root     \item Busybox, Superuser, Terminal Emulator, and AndroidVNC. \\     You can download search and all of them on Google Play. BusyBox is installer and uninstaller Android program, Superuser is superuser rights manager for Android, Terminal Emulator is Android's built-in Linux command line shell program, and AndroidVNC is a VNC viewer for Android.     \end{enumerate}     \subsection{Installation}     \begin{enumerate}     \item Extract BT5-GNOME-ARM.7z to folder, for example "BT5" folder and then put on device root directory.     \item Open Terminal Emulator on device then go to BT5 folder using the command \verb+ cd sdcard/BT5 +     \item Then run this following command \verb+ su + and \verb+ sh bootbt + and you will see \verb+ root@localhost +     \item Now lets run Backtrack GUI with VNC viewer \verb+startvnc+     \item To connect wth VNC we must know the port where VNC listening. Run \verb+netstat -anpt+ and remember the port where VNC listening. In this case the port is 59016. Open AndroidVNC and fill the form like this: \\     Nickname : BT5\\     Password : toortoor\\     Address  : 127.0.0.1\\     Port     : 5901 \\     \item Connect it and you will see Backtrack 5 interface \par     \textit{Remember! Some of the Backtrack tools can't work properly and do it for your own risk. I hope you can Install Backtrack on Android device without any problems, tell me if you get problems.}     \end{enumerate}     \end{document}


title: How can I import nbib to emacs bib file

text: how can I import to emacs jabref the bibliographic contents exported from pubmed in nbib format?


title: Is typing an accented character and compositing it the same?

text: Suppose that I have T1 as font encoding (and therefore I will have no copy, search and hyphenation problems, etc).   Is there any difference between typing, for example, `\^e` and `ê` in the output?   My pratical experiences tell me that I have no problem with copy&paste or searching, both seem to work in the same way. -- EDIT: 'font' encoding where it read 'input' and typo correction ty @David Carlisle


title: How can I create simple 3D models?

text: I would like to reproduce the following image, but in addition labelled with "Wheelbase $w$" and "Track $t$". ![enter image description here](http://i.stack.imgur.com/GPbnH.png) (Wikipedia image source) I've tried my best with `pst-solides3d`, but the result is much worse (and I didn't even try to write text by now): ![enter image description here](http://i.stack.imgur.com/hWe9P.png) (source is here) There seems not to be any possibility to get this with TikZ (see e.g. this question - I don't want to have to think about how a 3D model can be created by only using 2d graphics). I would like to know a convenient way to create 3D images that describe geometric situations. So I need basic geometric objects (cylinders, cuboids, spheres, cones), an easy way to change the viewpoint, arrows, text that can be placed in 3d (like in the first image) and - if possible - a way to write variables like in LaTeX. I thought about using Blender or POV-Ray, but both seem to be quite complicated to use and I do not know where to start / ask questions when I'm stuck with one of them. I also don't know how to write variables like in LaTeX. ## My Question Do you know either a way to get a similar result with `pst-solides3d` or any other LaTeX package to the first image? If not, do you know if Blender / POV-Ray or any other software is   * able to create 3d models (are they called wire-frame models?),   * free (not necessarily open source, but I would prefer it),   * available for Linux,   * able to create PDF / SVG / TEX files,    * has a good documentation and    * a forum (preferably a StackExchange site) where I can ask questions when I don't know how to continue?


I am following the tutorial in the tiKz and PGF manual v3.0.0 with the following LaTeX commands:               \begin{tikzpicture}[scale=3][>=latex']         \clip (-0.1,-0.2) rectangle (1.1,1.51);         \draw[step=.5cm,gray,very thin] (-1.4,-1.4) grid (1.4,1.4);         \draw[->] (-1.5,0) -- (1.5,0);         \draw[->] (0,-1.5) -- (0,1.5);         \draw (0,0) circle [radius=1cm];         \filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm)         arc [start angle=0, end angle=30, radius=3mm] -- cycle;         \draw[red,very thick] (30:1cm) -- +(0,-0.5);         \draw[blue,very thick] (30:1cm) ++(0,-0.5) -- (0,0);         \path [name path=upward line] (1,0) -- (1,1);         \path [name path=sloped line] (0,0) -- (30:1.5cm);         \draw [name intersection={of=upward line and sloped line, by=x}]         [very thick,orange] (1,0) -- (x);     \end{tikzpicture}      I have included the `\usetikzlibrary{intersections}` but I still get the following error:                ! Package pgfkeys Error: I do not know the key '/tikz/name intersection' and Iam going to ignore it. Perhaps you misspelled it. See the pgfkeys package documentation for explanation.Type H <return> for immediate help.... ...on={of=upward line and sloped line, by=x}]      I am using TeXMaker v4.1.1 on a Windows 7 64-bit computer and Any suggestions?


title: pgfplots - plusminus doesn't match its definition

text: I've been trying to make a ybar plot with error bar using `pgfplots`. I want to make this graph inside a tex template, but one weird thing has occurred - when I inserted the following code (be more specific - inserted only `tikzpicture` and its content) into the template this error message occurred: > ! Use of \pgfplots@foreach@plot@coord@NEXT@plusminus doesn't match its > definition.               \documentclass[10pt]{article}          \usepackage{pgfplots}     \pgfplotsset{compat=1.5.1}          \begin{document}     \begin{tikzpicture}     \begin{axis} [%log ticks with fixed point     ,symbolic x coords={Lighting,Computers,Total}]     \addplot+[only marks] plot[error bars/.cd, y dir=both, y explicit]     coordinates{         (Lighting,0.12) +- (0.31,0.03)         (Computers,0.06) +- (0.12,0.01)          (Total,0.07) +- (0.14,0.02)     };     \end{axis}      \end{tikzpicture}          \end{document}      (The code is taken from pgfplots with symbolic x coords and error bars .) When I inserted this code into a separate tex file, everything works fine and it produced a graph. I know that one solution is to make the graph in an external file and then import it, but I am asking what can cause this error message (I'm still novice to tex, yet read manual for `pgfplots`) and if there is a way to get it to work. I've tried to google it but found nothing. Also I've tried to change order of items in the preamble in the main file. The preamble looks like this:               \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage{amsmath,amssymb,verbatim}     \usepackage{txfonts, cleveref}     \usepackage[linesnumbered]{algorithm2e}     \usepackage{multirow}     \usepackage{array}     \usepackage{float}          \usepackage{pgfplotstable}     \usepackage{caption}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.5.1}     \usetikzlibrary{positioning}     \usetikzlibrary{calc}     \usetikzlibrary{patterns}      I'm intentionally not posting the template because it would be simpler to import the graph from external file for me than for someone to read through a template.


title: Beamer overlay and listing conundrum

text: When I try to overlay the `lstlisting` C code with escape character (so that I can insert a `\colorbox`), I get the following error:               ! Missing number, treated as zero.     <to be read again>                    \let     l.15    }      See below for some `beamer` code that reproduces the error. Note that, if I comment out the overlay instructions (see the annotation reading `% comment this` in my code), the code compiles and works perfectly. I would like the overlay to be operational with my `lstlisting` environment. Any clues as to how to resolve this problem?               \documentclass[smaller]{beamer}     \usepackage{graphicx}     \usepackage{color,xcolor}       \usepackage{boxedminipage}     \usepackage{listings}     \usepackage{pgf,pgfpages}     \usepackage{tikz, subfig}     \usetikzlibrary{arrows,shapes,positioning}     \usetheme{boxes}     \usefonttheme[stillsansseriftext,stillsansserifsmall]{serif}      \setbeamerfont{frametitle}{size=\large,series=\bfseries,shape=\sf}          \definecolor{red}       {rgb}{.8,0,0}     \definecolor{blue}      {rgb}{0,0,.9}          \begin{document}          \begin{frame}[fragile]     \frametitle{C Program}     \only<1>{ % comment this     \begin{minipage}{\textwidth}      \begin{minipage}{0.5\textwidth}       \begin{lstlisting}     [language=C,keywordstyle=\color{red},escapechar=\!,basicstyle=\ttfamily\scriptsize]         !\colorbox{blue}{x++;}!       \end{lstlisting}      \end{minipage}      \begin{minipage}{0.5\textwidth}       \begin{lstlisting}[language=C,keywordstyle=\color{red},escapechar=\!, basicstyle=\ttfamily\scriptsize]         !\colorbox{red}{y++;}!       \end{lstlisting}      \end{minipage}     \end{minipage}     } % comment this     \only<2>{ % comment this     \begin{tikzpicture}[font=\footnotesize]     \node at (0,0) {$P_M$};     \node at (1,0) {$P_{W_1}$};     \node at (2,0) {$P_{W_2}$};     \draw (-1,-0.3) -- (3,-0.3);     \end{tikzpicture}     } % Comment this     \end{frame}     \end{document}


title: How to better combine several PDF files with DVI and PS available?

text: I got 5 pdf files with their original dvi and ps, but i don't have the tex files which created them. Now I would like to combine them to a single pdf. I know I can easily do it using Adobe acrobat. But it seems pdf mergers differ in efficiencies and qualities. e.g. the total size of my 5 pdf is 800kb, without any graphs. The Mac OS preview produces a combination file of size 10mb.. ridiculous. Acrobat gives 750kb which is a decent result. So I think since I got the dvi and ps available maybe I could get better solution?


title: IPA characters in plain TeX

text: Is there a way to type IPA characters in TeX? There is the `tipa` package for LaTeX, but what about plain TeX? I don't have any experience with installing fonts in TeX and can't find any good resource on it.


title: Redefining ordering in index

text: I'm generating an index of Bible references (using the `bibleref`) package. Bible references are usually not sorted by alphabetical order of book, but rather by order of appearance in the Bible (Genesis, Deuteronomy, etc.). The verses inside each chapter should be sorted numerically. Currently, my index looks like (it's in French):               Actes        1, 20        1.4, 20     Apocalypse        3.20, 56        5, 62     1 Corinthiens        2.9, 69     Daniel        12.4, 29      Instead, I would like:               Daniel        12.4, 29     Actes        1, 20        1.4, 20     1 Corinthiens        2.9, 69     Apocalypse        3.20, 56        5, 62      ordered by Bible book as they appear in the Bible. I think `xindy` can do that (and `imakeidx` can use `xindy`). How would I go about doing it? **Edit:** The `bibleref` package provides a `\biblerefmap` command to fix the index. This works fine in general, but French Bible book names have accents, and `\biblerefmap` concatenates the book name as found in the index to create a macro name, like:               \newcommand*{\biblerefmap}[2]{%        \expandafter\def\csname @bibleref@map@#1\endcsname{#2}%     }       So, this fails because of accents:               \biblerefmap{Genèse}{1@Ancien Testament!01}     \biblerefmap{Exode}{1@Ancien Testament!02}     \biblerefmap{Lévitique}{1@Ancien Testament!03}      When generating the index, `bibleref` then considers the `\@bibleref@map@bookname` macros and replaces the book name with the contents if they exist. Since the key entry is the full book name as present in the index, I don't see how to not use accentuated characters in French. Is there a way I could circumvent the accents issue?


title: Cyrillic bibliographic entry using Biblatex and Polyglossia (initials broken)

text: I have a problem with either getting the correct font type in the bibliography, or (when enforcing the language setting in the bibliographic entry) getting the author first name processed as it should. The preferred solution would be to get the `Author = {\textrussian{Белый}, \textrussian{Андрей}},` processed properly in the bibliography part. Currently the name initials is thrown out and the `\` from the `\bibinitperiod` also disappears. Any suggestions welcome :) ![result](http://i.stack.imgur.com/zd7fo.png)               % !TEX TS-program = arara     % !TEX encoding = UTF-8 Unicode          % arara: xelatex: { shell: true }     % arara: biber     % arara: xelatex: { shell: true }          \documentclass{article}     \usepackage{xcolor}          \usepackage[no-math]{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \newfontfamily\greekfont[Script=Greek,Scale=MatchUppercase]{Linux Libertine O}     \newfontfamily\cyrillicfont{Linux Libertine O}          \usepackage{polyglossia}                                     \setdefaultlanguage[variant=british]{english}     \setotherlanguages{latin,greek,russian,polish,german}          \usepackage{csquotes}     \PassOptionsToPackage{%       natbib=true,       style=authoryear-comp,       hyperref=true,       backend=biber,       maxbibnames=99,       firstinits=true,       uniquename=init,       maxcitenames=2,       parentracker=true,       url=false,       doi=false,       isbn=false,       eprint=false,       backref=true,       }{biblatex}       \usepackage{biblatex}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @article{Attanasio2010,       abstract = {This paper provides a critical survey of the large literature on the life cycle model of consumption, both from an empirical and a theoretical point of view. It discusses several approaches that have been taken in the literature to bring the model to the data, their empirical successes and failures. Finally, the paper reviews a number of changes to the standard life cycle model that could help solve the remaining empirical puzzles.},       author = {Kaminsky, Graciela Laura and Schmukler, Sergio L.},       journal = {NBER Working Paper},       month = feb,       shorttitle = {Consumption and saving},       title = {{Consumption and saving: models of intertemporal allocation and their implications for public policy}},       url = {http://papers.ssrn.com/sol3/papers.cfm?abstract\_id=1558816 http://www.nber.org/papers/w15756},       volume = {756},       number = {12},       year = {2010}     }     @article{Galindo2002,       author = {Galindo, Arturo and Schiantarelli, Fabio and Weiss, Andrew},       journal = {American Economic Review},       month = apr,       shorttitle = {Does Financial Liberalization Improve the Allocati},       title = {{Does Financial Liberalization Improve the Allocation of Investment?: Micro Evidence from Developing Countries}},       url = {http://ideas.repec.org/p/idb/wpaper/4295.html},       volume = {47},       number = {2},       year = {2002}     }     @book{belyj1919a,       Address = {München},       Author = {Bjäly, Andrej},       Publisher = {Georg Müller},       Title = {Petersburg},       Year = {1919},       language = {german},       hyphenation = {german},     }     @book{belyj1919b,       Address = {\textgerman{München}},       Author = {\textgerman{Bjäly}, \textgerman{Andrej}},       Publisher = {\textgerman{Georg Müller}},       Title = {{\textgerman{Petersburg}}},       Year = {1920},       language = {german},       hyphenation = {german},     }     @book{belyj1913a,       Address = {\textrussian{Москва}},       Author = {\textrussian{Белый}, \textrussian{Андрей}},       Publisher = {\textrussian{Наука}},       Title = {\textrussian{Петербург}},       Year = {1981},       language = {russian},       hyphenation = {russian},     }     @book{belyj1913b,       Address = {Москва},       Author = {\textrussian{Белый}, \textrussian{Андрей}},       Publisher = {Наука},       Title = {Петербург},       Year = {1982},       language = {russian},       hyphenation = {russian},     }          \end{filecontents}     \addbibresource{\jobname.bib}          \usepackage{hyperref}     \hypersetup{%       colorlinks=true,        citecolor=blue}           \begin{document}          \textgerman{\cite{belyj1919a}}     \cite{belyj1919b},     \cite{belyj1913b},      \textrussian{\cite{belyj1913a}},      \cite{Attanasio2010}     \citep{Galindo2002}     (see, for example, \citealp{Attanasio2010})          For \emph{russian} and \emph{german} languages the author first name is not processed as it should\ldots          \printbibliography          \end{document}


title: Two sections on one page make fancyhdr takes the second one as page header

text: I have two sections on one page. Unfortunately `fancyhdr` takes the second one as the page header, which will result in something like seen in the image below. I want to have the **first** section as the header title (in this case: _Introduction_ ). ![enter image description here](http://i.stack.imgur.com/Xh3GB.jpg) Here is the code for the above image:               \documentclass[12pt, oneside]{article}     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{\fancyplain{}{\leftmark }}     \rhead{}     \usepackage{lipsum} %only for dummy text          \begin{document}         \section{Introduction}             \lipsum[2]         \section{Overview}             \lipsum[2]     \end{document}


title: Apacite - changing "ed." / "edition" brackets in generated bibliography entry

text: I need explicit entrys in my (german) normed bibliography. After a lot of work i have settled with apacite, because it sounded like it could do the stuff i need. So far i am able to change: Title, Year, Publisher, Adress by `\renewcommand`'ing commands out of the `apacite.sty`.      Author is missing and i have not found any relation to the edition in the file. I tried to change practically everything that had anything to do with ed. or edition.   Can someone tell me which functions change the author and edition brackets?   It would also be nice if someone knows how to change the order of the outcome in the bibliography. I haven't gotten into it yet.      Here 2 examples of what is happening. First is the one I get, the second is the one i need.      > Bocuse, P. 1977. Die neue Küche (1. translated ed.). Düsseldorf: Econ.    > Bocuse 1977   >  Bocuse, Paul: Die Neue Küche.   >  1. translated edition. Düsseldorf: Econ, 1977.    Edit:   I hoped code wouldn't be necessary since nothing actually has to do with the implementation, that's as far as i know. I included all my usepackages, maybe they are needed too.                 \documentclass[12pt]{scrbook}     \usepackage[a4paper]{geometry}          %~~~~~~~~~~~~~~~~~~~~~~~~~     % Norm von A4 Buchform     %~~~~~~~~~~~~~~~~~~~~~~~~~     \geometry{top=25mm,bottom=25mm,footskip=20mm,headsep=15mm}     \renewcommand{\baselinestretch}{1.0}          \usepackage{times}     \usepackage[ngerman]{babel}     \usepackage [utf8]{inputenc}     \usepackage [T1]{fontenc}     \usepackage [pdftex]{graphicx}          \usepackage{verbatim}     \usepackage{array}     \usepackage{booktabs}     \usepackage{dcolumn}     \usepackage{units}     \usepackage{rotating}     \usepackage[pdftex]{color}     \usepackage{listings}     \usepackage{tabularx}     \usepackage{longtable}          %~~~~~~~~~~~~~~~~~~~~~~~~~     % Citing and Bibliography     %~~~~~~~~~~~~~~~~~~~~~~~~~     \usepackage{apacite}          % Testing area     % This actually changes "something" with the author(s),      % it makes the title go into a new line          \renewenvironment{APACrefauthors}{%       \begingroup \APACrefauthstyle     }{\endgroup }               % Title     \renewcommand{\APACrefbtitle}[2]{\Bem{#2}}          % Year     \renewcommand{\APACrefYear}[1]{%       {#1}%     }          % Adress and Publisher     \renewcommand{\APACaddressPublisher}[2]{%       \ifx\@empty#1\@empty         \ifx\@empty#2\@empty         \else           {#2}%                 publisher         \fi       \else         {#1}%                   address         \ifx\@empty#2\@empty         \else           \unskip: {#2}%        publisher         \fi       \fi     }               % Doesn't do anything with my citing     \renewcommand{\BVOL}{Vol.\hbox{}}       % volume (of a multi-volume book)     \renewcommand{\BVOLS}{Vols.\hbox{}}     % volumes     \renewcommand{\BEd}{ed.\hbox{}}         % edition     \renewcommand{\APACrefatitle}[2]{#2}     \renewcommand{\APACrefaetitle}[2]{[#2]}     \renewcommand{\APACrefbetitle}[2]{[#2]}     \renewcommand{\BVOLS}{Vols.\hbox{}}     % volumes     \renewcommand{\APACjournalVolNumPages}[4]{%       \Bem{#1}%             journal       \ifx\@empty#2\@empty       \else         \unskip, \Bem{#2}%  volume       \fi       \ifx\@empty#3\@empty       \else         \unskip({#3})%      issue number       \fi       \ifx\@empty#4\@empty       \else         \unskip, {#4}%      pages       \fi     }     \renewcommand{\APACaddressPublisher}[2]{%       \ifx\@empty#1\@empty         \ifx\@empty#2\@empty         \else           {#2}%                 publisher         \fi       \else         {#1}%                   address         \ifx\@empty#2\@empty         \else           \unskip: {#2}%        publisher         \fi       \fi     }                    \begin{document}          \citeauthor{bocuse} \citeyear{bocuse}          \bibliographystyle{apacite}     \bibliography{Literaturverzeichnis}               \listoffigures     \newpage     \listoftables     \newpage          \end{document}      Literaturverzeichnis.bib contains:               @book{bocuse,          address ={Düsseldorf},           author   ={Bocuse, Paul},           edition ={1. übersetzte},           title    ={Die Neue Küche},           publisher={Econ,},           year     ={1977}        }      I think thats it.


title: Enumeration marker appears centered to the left of the table

text: \item            \begin{tabular}{ |l| l| l| }         ...       \end{tabular}       \quad       \begin{tabular}{ |l| l| l| }         ...       \end{tabular}      The following causes the enumeration marker (ie, "(b)"), to appear in the middle and to the left of the first table. How can I have the marker appear at the top (and to the left) of the table instead? (If I add some random text before the tables this works, but I don't want any text there.)


title: How to reduce distance between two columns?

text: I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2. I tried `\setlength{\tabcolsep}{5pt}` but it didn't look good. I want top row to take only two rows, not three. how do I do that? ![enter image description here](http://i.stack.imgur.com/SwHh2.png)               \usepackage{tabularx,booktabs}          \usepackage{array}     \newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X}     \newcolumntype{C}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p}          \begin{table}[t]     \caption{Case studies}     \centering      \begin{tabularx}{\textwidth}{C{3cm}*5{Z}}         \toprule      Nature of unreliability &  Sender SST &  Receiver SST &  Implementation SST &  Retransmission Bound \\               \midrule          Noisy (Single fixed error message) & DSST & DSST & DSST & Unbounded \\     \bottomrule     \end{tabularx}     \label{case-studies}     \end{table}


title: How can I make text automatically visible or high contrast in a Beamer presentation with photo backgrounds?

text: Is there an environment or package I can use to make text **always visible** on a beamer presentation (with photo backgrounds)? How can one ensure a **'high contrast text colour depending on the background'**? (thanks @percusse) Another way to ask this **how can I make the text auto-adjust colour for optimum readability depending on it's surroundings and background**? Let's say I have a photo as a background, how can I make text pixel aware of it's surroundings and have it become lighter on the darker part of an image background and darker on the lighter parts of a background. In instances where you have a rapid gradient (sharp or sudden white to black), the text should be outlined or some adjustment should be made to keep text readable. An example might be pulling random photos into as frame backgrounds and not having to worry about self-adjusting and tweaking every frame for readability. Some have suggested that content should always be the most important thing, which I understand, but that is not the issue here. An example image (stolen from this page) ![enter image description here](http://i.stack.imgur.com/NHHYe.jpg) It might also be usable if the package specifies ranges so that colour adjustment can happen as in this picture: ![enter image description here](http://i.stack.imgur.com/bO9Mj.jpg) Another example would be where we have a black to white (left to right) gradient in a picture. Layering text on this would have the text respond in the opposite gradient direction white to black (left to right). This would make the text readable regardless of where it is. **Is there a way to do this in beamer/LaTeX? Maybe the presentation and visual experts can give me a phrase or a word for what I'm looking for here.**