title: tikzmark position erratic in overprint environment of beamer

text: My aim is to highlight a term in an equation, and draw an arrow pointing to another one. Here's my code               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{arrows,calc,tikzmark}%decorations.markings,shapes,positioning          %% Beamer %%     \usefonttheme{professionalfonts}          %% TikZ %%     \tikzset{>=stealth,%              annotations/.style={overlay,remember picture}     }          \newcommand{\hilitTerm}[2]{\tikz[remember picture,baseline,inner xsep=0pt]\node[fill=red!20,anchor=base] (#1) {#2};}          %% Commands%     \newcommand{\uf}{\boldsymbol{u}}     \renewcommand{\vec}[1]{\boldsymbol{#1}}               \begin{document}          \begin{frame}{Balance of momentum}            \begin{overprint}            \onslide<1-2>       \begin{block}{}       \begin{align*}         \rho(\partial_t \uf + (\uf\cdot\nabla)\uf) =- \tikzmark{pPos}\nabla p + \mu \Delta \uf +  \hilitTerm{bodForce}{$\displaystyle \rho \only<1>{\vec{f}}\only<2>{\vec{g}}$}       \end{align*}       ~       \end{block}       \begin{itemize}         \item Body forces\visible<2-3>{: gravity}       \end{itemize}       \begin{tikzpicture}[annotations]         \useasboundingbox (0,0);         \draw<2>[red,->] (bodForce.north) to[bend right=45] ($(pic cs:pPos) + (1em,2ex)$);       \end{tikzpicture}            \end{overprint}            \end{frame}          \end{document}      If there's another slide after drawing the arrow (for example because of the `visible` command hiding the word "gravity" as set in the example), the arrow points to the lower left hand corner of the slide. ![enter image description here](http://i.stack.imgur.com/aPdE7.png) If there is no other slide in the frame after drawing my arrow (for example by restricting the `visible` command to `<2>`), then I get what I want. ![enter image description here](http://i.stack.imgur.com/vyjHe.png) How do I prevent the arrow from depending whether there are slides following or not? (The same phenomenon happens when the next slide doesn't feature the `tikzmark`.)


title: Naming a package built on TikZ

text: I am working on a package which builds on TikZ. How should I name it — `tkz- foo` or `tikz-foo` (`foo` is a placeholder). In CTAN both styles can be found: tikz- as well as tkz-. There are more `tkz-`named packages than `tikz-`named ones so I am inclined to go with that. Any thoughts?


title: How to center text horizontally within beamer column?

text: I've got a frame in beamer with two columns. Each column contains a figure that contains an image. I'd like to put some text below each figure. I'd like the text to be centred within each column. This is what my frame looks like:               \begin{frame}     \frametitle{Auswirkung der Knotenzahl}     \begin{columns}     \column{6.5cm}     \begin{figure}     \includegraphics[width=.90\textwidth]{KnotNo_1}     \end{figure}     Underfitting/Oversmoothing     \column{6.5cm}     \begin{figure}     \includegraphics[width=.90\textwidth]{KnotNo_3}     \end{figure}     Overfitting/Undersmoothing     \end{columns}     \end{frame}      I've tried putting the text inside a center environment but that doesn't give me the result I want (i.e. the text isn't perfectly aligned within each column).


title: How can I visualize a Torus with three paths?

text: I would like to show a Torus with three paths on its surface: ![enter image description here](http://i.stack.imgur.com/2f2s5.jpg)   * Both points ($a$ and $b$) are on the surface of the torus.   * All three paths (orange, red, green) are on the surface of the torus   * All three paths start in $a$ and end in $b$   * The orange and the red path are pretty "straight" (one goes the left side, one the right side, but the green path is more interesting. It makes a "curve" (I really don't know how to describe this better. The torus was created with sketch:               def torus {         def n_segs 40         sweep [draw=black, fill=lightgray, fill opacity=0.75] {n_segs, rotate(360/n_segs, (0,0,0), [0,1,0])}             sweep {n_segs, rotate(360/n_segs, (1.5,0,0), [0,0,1])}             (2,0,0)     }          put { view((10,4,2)) } {{torus}}          global { language tikz }      How can I print the paths on the torus?


title: Jerus10 font metric (TFM) file not found after installing TexLive 2013

text: I'll start by saying I'm new to ubuntu and texlive. I just installed texlive2013 and am trying to create a pdf on ubuntu 12.04 TLS. I'm using both English and Hebrew, but neither seam to work: when trying to create the PDF I get the (apparently known) message:               Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not found      I've already installed `texlive-fonts-recommended`, but it doesn't seem to help. I'm thinking that although the fonts are installed, there might be a problem getting their path. Does anyone have any suggestions as to fixing this problem or understanding its cause? * * * TeX MWE:               %% LyX 2.0.2 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[english,hebrew]{article}     \usepackage[T1]{fontenc}     \usepackage{babel}     \usepackage{xunicode}     \begin{document}     \selectlanguage{english}%     hello\selectlanguage{hebrew}%     \end{document}


title: How can I customise the table of contents?

text: I am new to LaTeX, please I need you help. I am writing my thesis and I face problem with table of content, I want to remove the space between the first part of my table of content which is               AUTHOR'S DECLARATION i     ABSTRACT ii     ACKNOWLEDGEMENTS iii     TABEL OF CONTENT iv     LIST OF FIGURES v     LIST OF ABBRAVIATIONS      Then PUT DOUBLE SPACING using vertical space by 0.5cm then the second part of table of content appear which is               CHAPTER ONE INTRODUCTION 1     1.1 rst section 1     1.2 second section 1     CHAPTER TWO INTRODUCTION 2     2.1 rst section 2     2.2 second section 2      Note : between the chapter one and two vertical space by 0.3 cm . I used as the following:                   %\documentclass[a4paper]{article}         \documentclass[12pt,english]{report}              \setlength{\parindent}{1.27cm}              \usepackage{setspace}         \onehalfspacing         \usepackage{titlesec, blindtext, color}         \usepackage[font=small,labelfont=bf,justification=centering]{caption}         \usepackage{geometry}              \geometry{           verbose,           tmargin=2cm,           bmargin=2.5cm,           lmargin=3.8cm,           rmargin=2.5cm         }         \newcommand{\mychapter}[3][]{%         \setcounter{chapter}{#3}         \setcounter{section}{0}         \chapter*{#2}         \if\relax\detokenize{#1}\relax           \addcontentsline{toc}{chapter}{#2}         \else           \addcontentsline{toc}{chapter}{#1}         \fi         }     \usepackage{tocloft}  % use for th next command in order to remove dots     \renewcommand{\cftdot}{} % remove dots of table of content     \renewcommand{\cfttoctitlefont}{\hfil\bf}          \begin{document}         \pagenumbering{roman}         \setcounter{page}{1}           \titlespacing*{\chapter}{10pt}{0pt}{10pt}           \titleformat{\chapter}[display]               {\centering\normalfont\large\bfseries}{ \chaptertitlename\ \thechapter}{0pt}{\large}                    \include{declartion}                    \addcontentsline{toc}{chapter}{\numberline{} AUTHOR'S  DECLARATION} \vspace*{-1cm} %                    %\abstract{\addtocontents{toc}                    \newpage                    \addcontentsline{toc}{chapter}{\numberline{}ABSTRACT} {\vspace*{6cm}}%               \include{abstract}               \newpage               \chapter*{ACKNOWLEDGEMENTS}%               \addcontentsline{toc}{chapter}{\numberline{}ACKNOWLEDGEMENTS} {\vspace{7em}}%               \newpage                    \tableofcontents                    \addcontentsline{toc}{chapter}{\numberline{}TABEL OF CONTENT} %{\vspace{-5em}}%                    \newpage               \listoffigures               \addcontentsline{toc}{chapter}{\numberline{}LIST OF FIGURES} %{\vspace{-6em}}%               \addcontentsline{toc}{chapter}{\numberline{}LIST OF ABBRAVIATIONS} % {\vspace{-6em}}%               \newpage                         \newpage               \tableofcontents                     \titlespacing*{\chapter}{10pt}{0pt}{10pt}                 \titleformat{\chapter}[display]                     {\centering\normalfont\large\bfseries}{ \chaptertitlename\ \thechapter}{40pt}{\large}     \mychapter[CHAPTER ONE INTRODUCTION]{CHAPTER ONE\\INTRODUCTION}{1} % the problem if happen fron centering     \pagenumbering{arabic}     sfsdfsf     sfsdfsf     \section{first section}     This is section one in chapter one.     \section{second section }          This is section two  in chapter one.     \mychapter[CHAPTER TWO RELATED WORK]{CHAPTER TWO \\RELATED WORD}{2} % the problem if happen fron centering     \section{first section}     This is section one in chapter TWO.     \section{second section }     This is section two  in chapter TWO.               \end{document}      ![enter image description here](http://i.stack.imgur.com/K4xGE.jpg)


title: Crossmark on an expression inside mathmode in latex

text: How can I put a crossmark on an expression inside a math mode using latex like below? ![enter image description here](http://i.stack.imgur.com/ibpPT.png)


title: Exhaustive Information about text alignment in Tabular

text: The purpose of this question is colleting the exhaustive information about text alignment in **tabular** environment and it's derivatives. As base, let us use the possibilities of Microsot Word's tools. The picture bellow is the text alignment tools for table cells. ![Cell alignment tools in Microsoft Word](http://i.stack.imgur.com/hxjp5.jpg)   * The first row of tools matrix (yellow row) are equivalent to tabular's **l** , **c** and **r** handles. However, this specification don't allow to define the fix width of the column.    * The first column of tools matrix (green column) are equivalent to tabular's **p{w}** , **m{w}** , **b{w}**. However, it's not working, as shown on figure bellow: ![The failure of the **m{w}** specification ](http://i.stack.imgur.com/HLTqx.jpg)               \begin{tabular}{|m{10mm}|m{30mm}|m{50mm}|m{20mm}|} \hline       \huge{A} & O'K Here & \footnotesize{I don't want ...} &  \\ \hline       \huge{B} & O'K Here & \footnotesize{I don't want ...} &  \\ \hline     \end{tabular}        * Next, it's hard to find the solution for really simple procedure- the simultaneous horizontal and vertical alignment (red tool is first figure). I've tried to use **\makebox** inside the cell:              \begin{tabular}{|m{10mm}|m{30mm}|m{50mm}|m{20mm}|} \hline     \makebox[10mm][c]{\huge{A}} & O'K Here & \footnotesize{I don't want ...} &  \\ \hline     \huge{B} & O'K Here & \footnotesize{I don't want ... } & \bigstrut \\ \hline     \end{tabular}      The result is not ideal, but acceptable: ![enter image description here](http://i.stack.imgur.com/xTJZY.jpg) So, please, answer the next questions.   1. What is the fix-length versions of **l** , **c** and **r** specification?   2. Why the **m{w}** specification do not provide the center vertical alignment as shown on second figure?   3. Is there the most compact solution for simultaneous horizontal and vertical alignment than my? For example, new column type?    4. For Exhaustive Information, please teach how to create remain column type of fix width, which are not colored in first figure.   5. Also, what is the solution for combining multiple columns type (e. g. **p{w}** and **m{w}** )? As you know, if to create the table like this, it's will not be desired vertical alignment: \begin{center}\begin{tabular}{|p{30mm}||p{20mm}|m{20mm}|b{20mm}|} \hline ![No desired alignment](http://i.stack.imgur.com/ynwlY.jpg) Sorry for long querstion, everyone. I Hope, one day this info helps you too.


title: TeX Live 2012 - what should be known about it?

text: TeX Live 2012 release is near, so I think it is possibly a good time to sum it a bit, like it was done before with 2011. Feel free to add anything relevant in this community wiki. **What should we know about TeX Live 2012?** E.g. As a debian user I'm happy that wheezy (aka testing atm, freeze is planned on June 30) has the new TeX Live on board since May.


title: 'List of theorems', translated into my language

text: I'm using `\listoftheorems` (part of the `thmtools` package) to show a list of all my theorems. It works really well, but it prints "List of theorems" in English; I would obviously prefer it to be in my language, i.e. "Elenco dei teoremi". What can I do?


title: LaTeX with no embedded Fonts

text: I have a simple question, I would like to produce some latex document which has all its fonts rendered in vector graphic form, no embedded fonts, is this possible and how can I achieve this by using the standard latex build chain? Do I need to use `dvi2ps` or `ps2pdf`? And what are the properties to set there?


title: IfDecimal in pgfplotstable

text: I try to calculate the values of a new column `errorx`in a pgfplotstable on the fly with `\pgfplotstableset{create on use...` based on the colums `error1` and `error2` as `error1 - error2`. This works fine, if I do not have missing values. Some of the values of `error1` may be missing (the data contains "NA" instead of a number). In this case, the new column `errorx` should contain `error2`. How can I do that? I tried to use `\IfDecimal` from the `xstring` package, but that fails. Here is an example based on code from the `pgfplotstable` manual:               \documentclass{article}     \usepackage{xstring}     \usepackage{pgfplotstable}          \begin{document}          % Alternative: inline table data:     \pgfplotstableread{     level   dof     error1 error2 info      grad(log(dof),log(error2))      quot(error1)     1       4       NA             7.57858283e-01 48        0                   0     2       16      6.25000000e-02 5.00000000e-01 25        -3.00000000e-01 4     3       64      1.56250000e-02 2.87174589e-01 41        -3.99999999e-01 4     4       256     3.90625000e-03 1.43587294e-01 8         -5.00000003e-01 4     5       1024    9.76562500e-04 4.41941738e-02 22        -8.49999999e-01 4     6       4096    2.44140625e-04 1.69802322e-02 46        -6.90000001e-01 4     7       16384   6.10351562e-05 8.20091159e-03 40        -5.24999999e-01 4     8       65536   1.52587891e-05 3.90625000e-03 48        -5.35000000e-01 3.99999999e+00     9       262144 3.81469727e-06 1.95312500e-03 33         -5.00000000e-01 4.00000001e+00     10      1048576 9.53674316e-07 9.76562500e-04 2         -5.00000000e-01 4.00000001e+00     }\loadedtable          % fails with     % ERROR: Package PGF Math Error: Unknown function `NA' (in 'NA-7.57858283e-01 ').     \pgfplotstableset{create on use/error12/.style={         create col/expr={\thisrow{error1}-\thisrow{error2}         }       }     }               % fails with     % ERROR: Undefined control sequence.     %      % --- TeX said ---     % \@xs@IfDecimal@@ ...@xs@arg@i {#1}\edef \@xs@call      %                                                   {\noexpand \@xs@IfDecimal ...     % l.38 ...etypeset[columns={dof,errorx}]\loadedtable     \pgfplotstableset{create on use/errorx/.style={         create col/expr={\IfDecimal{\thisrow{error1}}{\thisrow{error1}-\thisrow{error2}}{\thisrow{error2}}         }       }     }               \pgfplotstabletypeset[columns={dof,error12}]\loadedtable     \hspace{2cm}     \pgfplotstabletypeset[columns={dof,errorx}]\loadedtable          \end{document}


title: Hide section in table of contents but show it in pdfbookmark

text: This question is linked to another newer question. For my PDF Bible I need the Bible-Chapter (section) to be hidden in the table of contents. The same Bible-Chapter (section) should however appear in the pdfbookmark which I am producing with the hyperref package, to enable navigation in the PDF file. I am able to produce either the one where everything is visible in both or the other where the Bible-chapters (sections) does not appear in either the bookmarks or table of contents. How can I perhaps create pdfbookmarks that are not associated with the table of contents? Perhaps this would enable me to customise it some more. This is what I can produce so far: ![enter image description here](http://i.stack.imgur.com/kY4JS.png) or ![enter image description here](http://i.stack.imgur.com/5hcNL.png) The only change between the two is this line: \addtocounter{tocdepth}{-2} changed to \addtocounter{tocdepth}{-1} Here is my code example:               \documentclass[paper=a5,pagesize=pdftex]{scrbook}     \usepackage[top=2cm,bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry}     \usepackage[pagestyles]{titlesec}     \usepackage{lettrine}     \usepackage{xltxtra}     \usepackage{tocloft}     \usepackage{titletoc}          \defaultfontfeatures{Mapping=tex-text}     %\setmainfont{Times New Roman}     \setmainfont{Cardo}          % definition of the page style with required headers     \newpagestyle{Biblestyle}{       \setheadrule{.01pt}       \sethead[\thepage][\chaptertitle][\toptitlemarks\thesection:\toptitlemarks\thesubsection---\bottitlemarks\thesection:\bottitlemarks\thesubsection]{\toptitlemarks\thesection:\toptitlemarks\thesubsection---\bottitlemarks\thesection:\bottitlemarks\thesubsection}{\chaptertitle}{\thepage}     }          % sets the marks to be used (section and subsection)     \setmarks{section}{subsection}          % sections and subsections formatting     \titleformat{\section}{}{\lettrine{\thesection}}{0em}{}[\vskip-1\baselineskip]     \titleformat{\subsection}[runin]     {\small\bfseries}{\thesubsection}{1em}{}     \titlespacing{\section}{1em}{-1pt}{0pt}     \titlespacing{\subsection}{0pt}{0pt}{1em}          \renewcommand{\LettrineFontHook}{\bfseries}          \setlength{\parindent}{0pt}          \newlength\NumLen     \newlength\LinLen     % indents one line of text. Indentation= width of section number + 1em     \newcommand\IndOne{%       \settowidth\NumLen{\thesection}       \addtolength\NumLen{1em}       \setlength\LinLen{\dimexpr\textwidth-\NumLen}%\the\NumLen\the\LinLen       \parshape 2 \NumLen \LinLen 0pt \textwidth}     % indents two lines of text. Indentation= width of section number + 1em     \newcommand\IndTwo{%       \settowidth\NumLen{\thesection}       \addtolength\NumLen{1em}       \setlength\LinLen{\dimexpr\textwidth-\NumLen}%\the\NumLen\the\LinLen       \parshape 3 \NumLen \LinLen \NumLen \LinLen 0pt \textwidth}          \usepackage[none]{hyphenat}     \sloppy     \usepackage{hyperref}     \hypersetup{     %   bookmarks=true,         unicode=true,         colorlinks=true,         citecolor={black},         linkcolor={black},         urlcolor={black},         pdffitwindow=true,     }          \renewcommand{\thesection}{\arabic{section}}     \renewcommand{\thesubsection}{\arabic{subsection}}     \renewcommand{\contentsname}{Table of Contents}     \renewcommand*\cfttoctitlefont{\Large\hfill\MakeUppercase}     \renewcommand*\cftaftertoctitle{\hfill}          \dottedcontents{chapter}[2.5em]{}{2.3em}{1pc}          \begin{document}     \frontmatter         % Titlepage         \pdfbookmark[0]{Titlepage}{title}         \title{}         \subject{             \vspace{3cm}             \textbf{\Large{THE}\\\vspace{-0.3cm}             \Huge{HOLY}\\\vspace{0.05cm}             \Huge{BIBLE}}\\\vspace{0.5cm}         \author{} \date{}         }         \maketitle              % Dedication         \newpage\pdfbookmark[1]{Extra Page}{ep}\vspace*{1cm}          \newpage     \pdfbookmark[0]{Table of Contents}{tofcontents}     \addtocounter{tocdepth}{-2}     \tableofcontents          \mainmatter     \pagestyle{Biblestyle}     \renewcommand{\chaptertitle}{Genesis}     \begin{center}     \phantomsection     \addcontentsline{toc}{chapter}{Genesis}\noindent     %\pdfbookmark[0]{Genesis}{Genesis}     THE FIRST BOOK OF MOSES, CALLED\\     \vspace{0.15cm}\textbf{\Huge{GENESIS}}\vspace{0.00cm}\\     \end{center}     %\phantomsection     %\addcontentsline{toc}{section}{1}     \pdfbookmark[1]{1}{Genesis1}     \section{}          \IndTwo And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. \stepcounter{subsection}         \subsection{} And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.         \subsection{} And God said, Let there be light: and there was light.         \subsection{} And God made the firmament, and divided the waters which were under the firmament from the waters which were above the firmament: and it was so.         \subsection{} And God called the firmament Heaven. And the evening and the morning were the second day.         \subsection{} And God said, Let the waters under the heaven be gathered together unto one place, and let the dry land appear: and it was so.         \subsection{} And God called the dry land Earth; and the gathering together of the waters called he Seas: and God saw that it was good.         \subsection{} And God said, Let the earth bring forth grass, the herb yielding seed, and the fruit tree yielding fruit after his kind, whose seed is in itself, upon the earth: and it was so.         \subsection{} And the earth brought forth grass, and herb yielding seed after his kind, and the tree yielding fruit, whose seed was in itself, after his kind: and God saw that it was good.         \subsection{} And the evening and the morning were the third day.          %\phantomsection     %\addcontentsline{toc}{section}{2}     \pdfbookmark[1]{2}{Genesis2}     \section{}     \IndTwo Thus the heavens and the earth were finished, and all the host of them.\stepcounter{subsection}         \subsection{} \IndOne And on the seventh day God ended his work which he had made; and he rested on the seventh day from all his work which he had made.         \subsection{} And God blessed the seventh day, and sanctified it: because that in it he had rested from all his work which God created and made.         \subsection{} These are the generations of the heavens and of the earth when they were created, in the day that the \textsc{Lord} God made the earth and the heavens,         \subsection{} And every plant of the field before it was in the earth, and every herb of the field before it grew: for the \textsc{Lord} God had not caused it to rain upon the earth, and there was not a man to till the ground.         \subsection{} But there went up a mist from the earth, and watered the whole face of the ground.         \subsection{} And the \textsc{Lord} God formed man of the dust of the ground, and breathed into his nostrils the breath of life; and man became a living soul.         \subsection{} And the \textsc{Lord} God planted a garden eastward in Eden; and there he put the man whom he had formed.         \subsection{} And out of the ground made the \textsc{Lord} God to grow every tree that is pleasant to the sight, and good for food; the tree of life also in the midst of the garden, and the tree of knowledge of good and evil.         \subsection{} And the LORD God took the man, and put him into the garden of Eden to dress it and to keep it.          %\phantomsection     %\addcontentsline{toc}{section}{2}     \pdfbookmark[1]{3}{Genesis3}     \section{}     \IndTwo Thus the heavens and the earth were finished, and all the host of them.\stepcounter{subsection}         \subsection{} \IndOne And on the seventh day God ended his work which he had made; and he rested on the seventh day from all his work which he had made.         \subsection{} And God blessed the seventh day, and sanctified it: because that in it he had rested from all his work which God created and made.         \subsection{} And the \textsc{Lord} God formed man of the dust of the ground, and breathed into his nostrils the breath of life; and man became a living soul.         \subsection{} And the \textsc{Lord} God planted a garden eastward in Eden; and there he put the man whom he had formed.         \subsection{} And out of the ground made the \textsc{Lord} God to grow every tree that is pleasant to the sight, and good for food; the tree of life also in the midst of the garden, and the tree of knowledge of good and evil.         \subsection{} And a river went out of Eden to water the garden; and from thence it was parted, and became into four heads.         \subsection{} The name of the first is Pison: that is it which compasseth the whole land of Havilah, where there is gold;         \subsection{} And the LORD God took the man, and put him into the garden of Eden to dress it and to keep it.          \clearpage     \renewcommand{\chaptertitle}{Exodus}     \begin{center}     \phantomsection     \addcontentsline{toc}{chapter}{Exodus}\noindent     THE FIRST BOOK OF MOSES, CALLED\\     \vspace{0.15cm}\textbf{\Huge{Exodus}}\vspace{0.00cm}\\     \end{center}     \setcounter{section}{0}     \pdfbookmark[1]{1}{Exodus1}     \section{}     \IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \pdfbookmark[1]{2}{Exodus2}     \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \pdfbookmark[1]{3}{Exodus3}     \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.             \subsection{} And when the woman saw that the tree was good for food, and that it was pleasant to the eyes, and a tree to be desired to make one wise, she took of the fruit thereof, and did eat, and gave also unto her husband with her; and he did eat.             \subsection{} And the eyes of them both were opened, and they knew that they were naked; and they sewed fig leaves together, and made themselves aprons.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \clearpage     \renewcommand{\chaptertitle}{Leviticus}     \begin{center}     \phantomsection     \addcontentsline{toc}{chapter}{Leviticus}\noindent     THE FIRST BOOK OF MOSES, CALLED\\     \vspace{0.15cm}\textbf{\Huge{Leviticus}}\vspace{0.00cm}\\     \end{center}     \setcounter{section}{0}     \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.             \subsection{} And when the woman saw that the tree was good for food, and that it was pleasant to the eyes, and a tree to be desired to make one wise, she took of the fruit thereof, and did eat, and gave also unto her husband with her; and he did eat.             \subsection{} And the eyes of them both were opened, and they knew that they were naked; and they sewed fig leaves together, and made themselves aprons.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.             \subsection{} And when the woman saw that the tree was good for food, and that it was pleasant to the eyes, and a tree to be desired to make one wise, she took of the fruit thereof, and did eat, and gave also unto her husband with her; and he did eat.             \subsection{} And the eyes of them both were opened, and they knew that they were naked; and they sewed fig leaves together, and made themselves aprons.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.             \subsection{} And when the woman saw that the tree was good for food, and that it was pleasant to the eyes, and a tree to be desired to make one wise, she took of the fruit thereof, and did eat, and gave also unto her husband with her; and he did eat.             \subsection{} And the eyes of them both were opened, and they knew that they were naked; and they sewed fig leaves together, and made themselves aprons.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \section{}\IndTwo Now the serpent was more subtil than any beast of the field which the LORD God had made. And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden?       \stepcounter{subsection}\subsection{} And the woman said unto the serpent, We may eat of the fruit of the trees of the garden:         \subsection{} But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die.         \subsection{} And the serpent said unto the woman, Ye shall not surely die:         \subsection{} For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.             \subsection{} And when the woman saw that the tree was good for food, and that it was pleasant to the eyes, and a tree to be desired to make one wise, she took of the fruit thereof, and did eat, and gave also unto her husband with her; and he did eat.             \subsection{} And the eyes of them both were opened, and they knew that they were naked; and they sewed fig leaves together, and made themselves aprons.         \subsection{} And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden.         \subsection{} And the LORD God called unto Adam, and said unto him, Where art thou?         \subsection{} And he said, I heard thy voice in the garden, and I was afraid, because I was naked; and I hid myself.         \subsection{} And he said, Who told thee that thou wast naked? Hast thou eaten of the tree, whereof I commanded thee that thou shouldest not eat?         \subsection{} And the man said, The woman whom thou gavest to be with me, she gave me of the tree, and I did eat.         \subsection{} And the LORD God said unto the woman, What is this that thou hast done? And the woman said, The serpent beguiled me, and I did eat.         \subsection{} And the LORD God said unto the serpent, Because thou hast done this, thou art cursed above all cattle, and above every beast of the field; upon thy belly shalt thou go, and dust shalt thou eat all the days of thy life:         \subsection{} And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.         \subsection{} Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.          \section{}\IndTwo And Adam knew Eve his wife; and she conceived, and bare Cain, and said, I have gotten a man from the LORD.         \stepcounter{subsection}\subsection{} And she again bare his brother Abel. And Abel was a keeper of sheep, but Cain was a tiller of the ground.         \subsection{} And in process of time it came to pass, that Cain brought of the fruit of the ground an offering unto the LORD.         \subsection{} And Abel, he also brought of the firstlings of his flock and of the fat thereof. And the LORD had respect unto Abel and to his offering:         \subsection{} But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell.         \subsection{} And the LORD said unto Cain, Why art thou wroth? and why is thy countenance fallen?         \subsection{} If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.         \subsection{} And Cain talked with Abel his brother: and it came to pass, when they were in the field, that Cain rose up against Abel his brother, and slew him.         \subsection{} And the LORD said unto Cain, Where is Abel thy brother? And he said, I know not: Am I my brother's keeper?         \subsection{} And he said, What hast thou done? the voice of thy brother's blood crieth unto me from the ground.         \subsection{} And now art thou cursed from the earth, which hath opened her mouth to receive thy brother's blood from thy hand;         \subsection{} When thou tillest the ground, it shall not henceforth yield unto thee her strength; a fugitive and a vagabond shalt thou be in the earth.          \end{document}


title: Biblatex encoding

text: I've got a large document which I wrote some time ago. It contains a bibliography for which I use `biblatex`:               \usepackage[style=authoryear-comp, maxnames=1, doi=false, url=false, backend=bibtex8]{biblatex}      For the encoding within the LaTeX-document, I use:               \usepackage[ansinew]{inputenc}     \usepackage[T1]{fontenc}      Last time I was working with the document (around a month ago), the encoding of bibliography items was not a problem and special characters were displayed in a correct way, e.g. the author name "Brydøy". However, now, it's only displayed as "BrydÃ¸y". If I simply put "Brydøy" into the normal text, it is displayed properly, but within the citations (in text citation as well as the bibliography) there seems to be something wrong with the encoding. I would appreciate help on how to fix this issue very much.


title: Letterspacing titles with LuaLaTeX

text: I'm using LuaLaTeX to write my thesis and I've been learning about typography thanks to Robert Bringhurst's "The elements of typographic style". Problem is I can't replicate the letterspacing used in titles sectioning, so do you know how I can achieve that? (I tried with microtype package with no success at all). My cls is inspired heavily by Evind Uggedal's thesis (which at the same time he is inspired by Robert Bringhurst's book) but he is using pdflatex instead of LuaLaTeX. Here is Eivind Uggedal's cls: https://bitbucket.org/uggedal/thesis/src/5017b3e8bdb8/src/uiothesis.cls And here is mine: https://bitbucket.org/aldoborrero/alma- pfc/src/b89264c1b2fd/src/UAHMemoir.cls Here you have an screenshot: ![Sceenshot](http://i.stack.imgur.com/K7HvN.png) Thanks!! **UPDATE:** As @rdhs has pointed in the comment below you can use the two options he wrote. In my case I prefer the first one because I don't have to import another package, so if you are going to use it make sure you update your microtype package to the last beta version (visit this site if you need more info http://latex-alive.tumblr.com/post/1303450459).               tlmgr --repository http://tlcontrib.metatex.org/2011 update microtype      Here is the final result: ![enter image description here](http://i.stack.imgur.com/B9Ft0.png) **UPDATE 2:** As @NVaughan said in the comment below, if you're using TexLive 2012 you should type:               tlmgr --repository http://tlcontrib.metatex.org/2012 update microtype


title: Beamerposter… Columns not all aligned at top

text: I'm making a poster using the `beamerposter` package, and for some reason am having a devil of a time getting the top of the columns to all line up together. Here's a picture of what I'm talking about. ![enter image description here](http://i.stack.imgur.com/eiZ3E.png) See how the left and middle columns are shifted way down the page? What's going on? Here is a link to a ZIP containing all the files you should need to replicate this yourself (I didn't want to paste all that code here). Sorry if this has been answered before, but I've followed some of the suggestions for similar questions and they tend to break things further. Thanks in advance.


title: Pgfplots axis environment, loop for function works but not for plotting options

text: My question is related to this one, \foreach not behaving in axis environment , but the solution there does not work in my case and **unlike** the related question, the loop works well in the axis environment **until** we try to pass the parameter `color=\c`. Also, if I remove the plot from outside the axis environment and plot in TikZ, it works fine (so the `foreach` syntax is OK) but then I can not fit the picture properly to its axis (see second source code example). Here is the MWE (addplot and plot generate the same error):               \documentclass[12pt]{article}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}      \begin{document}      \begin{tikzpicture}[      declare function={ kL(\x,\n)=5/max(5,6*\x*\n+\n-\n*\x);}]      \begin{axis}[      title=Test,      xlabel=$\frac{\alpha_L}{\alpha_H}$,      ylabel=$\kappa_{L}$]      \foreach \n/\c in {0/black,1/green,2/red,3/blue}       {\plot[color=\c,       domain=0.1:1,       samples=50,        ]{kL(\x,\n)};        }         \end{axis}        \end{tikzpicture}        \end{document}      Here is what happens if you take it outside the axis environment and write it in TikZ:               \documentclass[12pt]{article}      \usepackage{tikz}      \usepackage{pgfplots}      \pgfplotsset{compat=1.10}      \begin{document      \begin{tikzpicture}[      declare function={kL(\x,\n)=5/max(5,6*\x*\n+\n-\n*\x);      \begin{axis}[      title= Test II,      xlabel=$\frac{\alpha_L}{\alpha_H}$,      ylabel=$\kappa_{L}$]      \end{axis}      \foreach \n/\d in {0/black,1/green,2/red,3/blue}      \draw [color=\d,      domain=0.1:1,     samples=50,      ]  plot (\x,{kL(\x,\n)});      \end{tikzpicture}      \end{document}


title: Why is TeX functionality for mathematical typesetting not found on standard word processors, like MS Word?

text: It doesn't seem hard to me to put the symbols in the product, and allow users to draw mathematical formulas. Is the user pool too small to attract the interest of major software companies?


title: How to align decimal separator inside a specific table?

text: The table comes from the excellent answer of Philippe Goutet about this question :               \documentclass[a4paper,12pt]{article}           \usepackage{array,booktabs} % I add booktabs AM     \usepackage[hmargin=2cm]{geometry}     \usepackage{xcolor}          \makeatletter     %http://groups.google.com/group/comp.text.tex/msg/7e812e5d6e67fcc5     \def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1}     \makeatother          \begin{document}  %           \begin{center}\begin{tabular}  % Philippe Goutet        {>{\def\colunit{pt}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{mm}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{cm}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{ex}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{em}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{bp}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{dd}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{pc}}l<{\convertto{\rowunit}{1\colunit}}        >{\def\colunit{in}}l<{\convertto{\rowunit}{1\colunit}}        >{\bfseries}l}     \multicolumn{1}{l}{\bfseries 1pt} & \multicolumn{1}{l}{\bfseries 1mm} &              \multicolumn{1}{l}{\bfseries 1cm} & \multicolumn{1}{l}{\bfseries 1ex} &        \multicolumn{1}{l}{\bfseries 1em} & \multicolumn{1}{l}{\bfseries 1bp} &      \multicolumn{1}{l}{\bfseries 1dd} & \multicolumn{1}{l}{\bfseries 1pc} &      \multicolumn{1}{l}{\bfseries 1in} & \\     \gdef\rowunit{pt} & & & & & & & & & \rowunit\\     \gdef\rowunit{mm} & & & & & & & & & \rowunit\\     \gdef\rowunit{cm} & & & & & & & & & \rowunit\\     \gdef\rowunit{ex} & & & & & & & & & \rowunit\\     \gdef\rowunit{em} & & & & & & & & & \rowunit\\     \gdef\rowunit{bp} & & & & & & & & & \rowunit\\     \gdef\rowunit{dd} & & & & & & & & & \rowunit\\     \gdef\rowunit{pc} & & & & & & & & & \rowunit\\     \gdef\rowunit{in} & & & & & & & & & \rowunit\\     \end{tabular}\end{center}          \end{document}      I would like to align the decimal separator in each column. I try with `numprint` and `siunitx`. I know the trick `r@{.}l` but here ... I'm waiting to see ...


title: using chapterbib with author-year citations

text: I'm typesetting my PhD dissertation but have run in to some unexpected troubles using chapterbib. I'm working with a custom bibliography style file (`aea.bst`) and want LaTeX to typeset `\cite{boun01}` as (Bound, Brown and Mathiowetz, 2001) instead of [1]. However, when I compile my document, I receive the following error message > 36: Package natbib Error: Bibliography not compatible with author-year > citations. (natbib) Press to continue in numerical citation style. A minimal reproducible example is provided below. The main file:               \documentclass[11pt,a4paper,english]{report}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage{babel}     \usepackage{lmodern}     \usepackage{blindtext}     \usepackage{natbib}     \usepackage{har2nat}     \usepackage{chapterbib}          \begin{document}     \include{chp01}     \include{chp02}     \end{document}      chp01.tex:               \blinddocument     \cite{boun01}     \cite{zeld89}     \bibliographystyle{aea}     \bibliography{sample}      chp02.tex               \blinddocument     \cite{boun01}     \bibliographystyle{aea}     \bibliography{sample}      sample.bib               @article{boun01,     title={Measurement error in survey data},     author={Bound, John and Brown, Charles and Mathiowetz, Nancy},     journal={Handbook of econometrics},     volume={5},     pages={3705--3843},     year={2001},     publisher={Elsevier}     }     @article{zeld89,     title={Optimal consumption with stochastic income: Deviations from certainty equivalence},     author={Zeldes, Stephen P},     journal={The Quarterly Journal of Economics},     volume={104},     number={2},     pages={275--298},     year={1989},     publisher={Oxford University Press}     }      and finally, `aea.bst`, can be downloaded here http://faculty.ses.wsu.edu/Cassey/Webpage/Bib_files/aea.bst.txt (save as `aea.bst`). Thanks in advance, best, Sebastian


title: How to place abstract before first section in org-mode's LaTeX-export

text: Here's another newbie question about org-mode's LaTeX export: Given this file `test.org`               #+BEGIN_abstract     asdf, or whatever I want to write in the abstract ...     #+END_abstract          * Introduction       This is my inroduction ...      an export via               $ emacs --batch --visit=./test.org --funcall org-export-as-latex      Produces this error:               unbalanced begin/end_abstract blocks with "#+BEGIN_abstract     "      When I switch the abstract and introduction in the file, everything works fine:               * Introduction          #+BEGIN_abstract     asdf, or whatever I want to write in the abstract ...     #+END_abstract      But then, the abstract comes _within_ the introduction. However, I need it to be _before_ the introduction. How can I achieve this? I'm running Emacs 23 on Ubuntu 12.04. **UPDATE** following the advice by @giordano, I created a file emacs_setup.el:               (defun org-export-latex-no-toc (depth)           (when depth           (format "%% Org-mode is exporting headings to %s levels.\n"                   depth)))     (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)      And changed my org file to               #+TITLE: My Document     #+AUTHOR: Andreas H.          #+LATEX: \tableofcontents     #+LATEX: \listoftables     #+LATEX: \listoffigures          #+begin_abstract       asdf, or whatever I want to write in the abstract ...     #+end_abstract          * Introduction      But when calling               $ emacs --batch -l emacs_setup.el --visit=test.org --funcall org-export-as-latex      I get the exact same error.


title: lstlistings - How to highlight single quotes og keywords

text: I want to highlight some keywords in a listing. One keyword has an apostrophe. I searched and read already quite some time and found a couple of postings that textcomp could be very helpful for quotes. Following a minimal example. The goal would be do color "Don't" also orange. Does anybody know my mistake? Best, TomBoo               \documentclass[a4paper, 12pt]{article}          \usepackage{listings, xcolor}     \usepackage{textcomp}          \definecolor{darkblue}{rgb}{0.0,0.0,0.6}           \lstdefinelanguage{XML}      {        identifierstyle=\color{darkblue},      }          \lstdefinestyle{my-xml-style}     {                         basicstyle=\ttfamily\footnotesize,  % Nichtproportionale Schrift, klein für den Quellcode                         extendedchars=true,                                 % Alle Zeichen vom Latin1 Zeichensatz anzeigen.                         keywords=[1]{attribute, xmlns},                         keywordstyle=[1]\color{red},                         keywords=[2]{Tove, Jani, Reminder},                         keywordstyle=[2]\color{cyan},                         keywords=[3]{Don\'t, forget, me, this, weekend, Don\textquotesingle t},                         keywordstyle=[3]\color{orange},                                          morestring=[b]",                          stringstyle=\color{violet},                         frame=tblr     }     \lstdefinelanguage{myxml}{language=XML,style=my-xml-style}                    \begin{document}          \begin{lstlisting}[language=myxml]     <note attribute="main" xmlns="http://www.w3.org/1999/xhtml">         <to>Tove</to>         <from>Jani</from>         <heading>Reminder</heading>         <body>Don't forget me this weekend!</body>     </note>     \end{lstlisting}          \end{document}


title: pst-barcode, textpos and XeLaTeX

text: Please consider the following MWE, which shall place a QR code (`pst-barcode` package) at a fixed position on the page using the `textpos` package:               \documentclass{article}     \usepackage{pst-barcode}     \usepackage[absolute,showboxes]{textpos}     \setlength{\TPHorizModule}{1mm}     \setlength{\TPVertModule}{1mm}     \textblockorigin{0mm}{0mm}          \newcommand{\insertBarcode}{         \begin{pspicture}(1in,1in)             \psbarcode{Test}{}{qrcode}         \end{pspicture}     }          \begin{document}              \begin{textblock}{75}(80,50)           Here should be a QR code:\\           \insertBarcode\\           But there is none.         \end{textblock}              \vspace*{50mm}         W/o being placed in a \texttt{texblock} environment, the QR code will show up:\\         \insertBarcode          \end{document}      If this document is compiled with XeLaTeX (MikTeX), the QR code within the normal page content is displayed without any problems. But the one enclosed in the `textblock` environment won't show up. I get the following warning:               MiKTeX GPL Ghostscript  9.00: Unrecoverable error, exit code 1          ** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile="mik56F0.tmp" "mik56EF.tmp" -c quit<-- failed.     ** WARNING ** Image format conversion for PSTricks failed.     ** WARNING ** Interpreting special command pst: (ps:) failed.     ** WARNING ** >> at page="1" position="(226.77, 618.307)" (in PDF)     ** WARNING ** >> xxx "pst:  tx@Dict begin STP newpath 0.8 SLW 0  setgray   gsave 0.  "      Using LaTeX -> dvi2ps -> ps2pdf, the QR code will show up as intended. So my question is: Is it possible to place barcodes from the `pst-barcode` package within a `textblock` environment using XeLaTeX (MikTeX)? I would appreciate any help.


title: Problem with listings package using stix fonts

text: Consider the following code:               \documentclass{article}     \usepackage{stix}     \usepackage{listings,xcolor}     \lstdefinelanguage{test}{sensitive=true,       morekeywords={TEST},     morecomment=[l]{--}}     \lstnewenvironment{testcode}     {\lstset{breaklines=true,language=test, basicstyle=\color{blue}\tiny}}     {}     \begin{document}     \begin{testcode}     TEST          -- Testing 8*8=64     \end{testcode}     \end{document}      compiling with `pdflatex` gives the following output: ![enter image description here](http://i.stack.imgur.com/ugYZo.png) As seen, the asterix `*` does not show up in the `listings` comment.. If I don't use the `stix` package, it works fine: ![enter image description here](http://i.stack.imgur.com/jTS2V.png)


title: How to write text document in two colums in Lyx2.0.2?

text: How to write text document in two columns in Lyx2.0.2, as authors write in published papers?


title: penalize page breaks in \lstlistings

text: I have a document with some rather lengthy \lstlisting's (source code snippets). It looks really bad if there is a page break within a listing/snippet. Thus I tried to avoid page breaks in listings by putting the listings into a minipage ( Avoid page breaks in \lstlistings ). However, on the other hand it looks really bad if consecutive long snippets with little text in between create very underfull vboxes and pages with only a few lines of text. So basically I want to tell LaTeX that both extremes look rather bad, and that page breaks may be used _sparingly_ to avoid bad cases of underfull vboxes but should be avoided/penalized. Right now I can totally ban page breaks or I can allow them, but then it is assumed they are "totally OK" and used a lot when they should be a last resort. How can I fine-tune the badness of either alternative in order to get a visually pleasing result?


title: Centered, left-aligned list

text: I'm attempting to left-align a centered list of elements.               \begin{center}     \begin{align}     \begin{description}     \item[] lorem     \item[] ipsum     \item[] lorem     \item[] ipsum     \end{description}     \end{align}     \end{center}      "align" can only be used in a math environment, however, which isn't appropriate for my usage. This seems like a simple problem, but I continue to trip over it.


title: natbib using et al with econometrica style

text: Hi I'm using `natbib` with econometrica. For many of my citations the author lists are very long, and I'd like them to show in the text as first author + "et al.". How can I achieve this?


title: Move QED symbol to the left, i.e. at the end of the sentence

text: I want to make the qed symbol at the end of a proof appear at the end of the last sentence, not at the far right of the same line. Would like to do this the simplest way possible. All I can find online is people using `\qedhere` to fix the symbol being on the wrong line.


title: Using KOMAoptions to produce landscape output produces empty page

text: I am writing my thesis and received a template for inserting landscape graphics on a typical paper when using `pdflatex` (which I am). It looks like this:               \newpage     \KOMAoptions{pagesize,paper=landscape,DIV=20}      \thispagestyle{empty}     \vspace*{2cm}     \begin{figure}[htbp]     ...     \end{figure}     \newpage     \KOMAoptions{paper=a4,paper=portrait,DIV=10}      If I typeset the template it looks perfect, but if I do it on my own thesis, the following happens: I get an empty page (this is also where `thispagestyle` is applied) and one with my graphic (which now has a header again). Commenting out `newpage` (both) did not change _anything_! And moving `thispagestyle` around (below figure, in figure block) did not change _anything_ as well. So basically whatever I change its like `pdflatex` ignores all everything and just does what it wants. Removing `thispagestyle` just adds header to the empty page again. So my goal: One page with a landscape image. But what I get: One empty page (even no header) and one page with image & header (both are in landscape). Why is that happening and why is latex ignoring all my settings (if it doesn't matter if I write two `newpage` why bother adding them? Since I am not a latex guru, please tell me if you need additional information. Thanks in advance.


title: How do I have a second line in my header?

text: I would like to have a header that looks like               <my name>            <Class>             <page number>     <Student number>      However, I can't figure out how to insert the second line. What I've attempted is:               %Page layout here     \documentclass[letterpaper]{article}     \usepackage{lastpage}           %lets me find out how many pages there are          \usepackage{fancyhdr}           %allows me to fiddle with the header and such          \pagestyle{fancyplain}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt} % remove lines as well     \setlength{\headheight}{15.2pt}     \chead{How do I get this to work?}     \rhead{\thepage\ of \pageref{LastPage}} %Add the page numbers to the to right     \lhead{Canageek\\3.14159}     %End footer          \begin{document}     Test     \end{document}      However, as you can see, this causes the essay name and page number to be on the same line as my student number, not up with my name as they should be. I've found two related questions. The first does some stuff that I think I can avoid, since I don't want everything right-aligned, while the second seems to accomplish it by modifying the second titles, which isn't what I need.


title: (Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

text: This was brought to my attention by our colleague, Lover of Structure, but since it affects my _scalerel_ package (which began using the _mathstyle_ package to detect the current math style, as of version 1.4) it is now my problem too. I even think I know why it happens, and I have a workaround, but I was hoping for a more satisfying solution. Here is the MWE:               \documentclass{article}     \usepackage{amsmath}     \usepackage{mathstyle}     \newcommand*{\testcmd}{\(M_{\texttt{k}}\)}     \begin{document}     \(M_{\texttt{k}}\)  \par     \testcmd     \end{document}      and here is the result. ![enter image description here](http://i.stack.imgur.com/YWl4k.jpg) In it you see two different sized subscripts (call them small and large, respectively), which would not seem obvious from code. Investigating, I found that: 1) with neither package loaded, both subscripts are large 2) with only amsmath loaded, both subscripts are small 3) with only mathstyle loaded, both subscripts are large 4) with both packages loaded (as in my MWE), the first is small, the second is large 5) with both packages loaded, if the definition of `\testcmd` is moved after `\begin{document}`, both subscripts are small (this is what I call the WORKAROUND). 6) If I load _mathstyle_ before _amsmath_ , the code breaks, saying `\dfrac` is already defined. "Aha," I say to myself. It would appear that one of these packages is using a "feature" I've seen mentioned wherein certain commands are loaded just prior to `\begin{document}`. But this would seem to put a significant constraint on users of these two packages (or users of _amsmath_ and _scalerel_ ); namely, one would be forbidden from defining math command shortcuts in their document preamble. So, my questions are these: am I understanding the nature of the problem properly? Is there a fix that would still allow users to define math shortcuts in their preamble, while using the package combination?


title: I can't get LaTeX to recognize the Venndiagram package even though TeX Live says the package is installed

text: I am new to using LaTeX, I have not figured out how to properly install a package yet. I believe this is my issue, if someone could help guide me through the proper way of doing so I would appreciate it. Even though I grew up with computers, I act like someone one from the 1940's when using them. I know some basic techniques, but a lot of the stuff advanced users might consider trivial is non-trivial to me. Set up:   * I run a MacBook Pro 2012 with Snow Leopard OS.   * I installed LaTeX using macports on my machine from the terminal. I also downloaded Texmaker editor and use that to write my documents.  Research:   * I looked on this website and it says you should install packages in `~/Library/texmf/tex/latex`. Which I am guessing the `~` = `/Users/<username>`   * I checked my finder and this is all I found; `/Users/Obitus/Library/texlive/2012/texmf-var` I also found these: `/usr/local/texlive/texmf-local/tex/latex` `/usr/local/texlive/2012/texmf/tex/latex` `/usr/local/texlive/2012/texmf-dist/tex/latex`   * I can't find the `venn` package folder anywhere, but Tex Live Utility says its installed. Steps I have performed:   * I have installed `texlive-math-extra` package from macports, this is where I originally found the package. It did not work, so I tried installing TeX Live full, which I think a friend of mine did for me a while back.  I figure the files will overwrite themselves and all will be good, or at least I hoped. Nothing happened, all my previous documents run fine.   * I became a little braver and downloaded `venndiagram.dtx` and `venndiagram.sty` and followed the instructions given to me. I actually got the file to work but only on my desktop. So it only works when I save files on my desktop, not with my TeXmaker editor which saves the files somewhere else.  So now I am I hoping someone can point me in the right direction.


title: Specify minitoc for each chapter

text: To specify the toc depth of each chapter I can do               \chapter{Title}     \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}     ...     \chapter{Title}     \addtocontents{toc}{\protect\setcounter{tocdepth}{2}}     ...      How can I do this for the minitoc? Setting the minitocdepth counter does not seem to work.


title: Assign initial value to \pgfmathaccuma

text: I cannot assign zero initially to `\pgfmathaccuma` and `\pgfmathaccumb`. It gives this error: `! Missing number, treated as zero.` Then I press `s` to skip. However, `\pgfmathaccumb` is always empty! I want to set its initial value to zero. Here is my MWE:               \documentclass{article}     \usepackage{pgfplotstable}     \usepackage{filecontents}          \begin{filecontents}{data.txt}     index   mmtype     0       0     1       0     2       0     3       1     4       0     \end{filecontents}          \begin{document}     \pgfplotstableread{data.txt}\origtable          \pgfplotstablenew[]{6}\newtable          \pgfplotstablecreatecol[     create col/assign/.code={\pgfkeyslet{/pgfplots/table/create col/next content}\pgfplotstablerow},     ]{rowid}\newtable          \pgfplotstablecreatecol[     create col/assign/.code={%     \ifx\pgfmathaccuma\pgfutil@empty     \pgfmathparse{0}%     \let\pgfmathaccuma=\pgfmathresult     \fi     \ifx\pgfmathaccumb\pgfutil@empty     \pgfmathparse{0}%     \let\pgfmathaccumb=\pgfmathresult     \fi     \pgfmathtruncatemacro\orgrow{\pgfplotstablerow-\pgfmathaccuma}%     b:\pgfmathaccumb|     \ifx\pgfmathaccumb=0         \pgfplotstablegetelem{\orgrow}{mmtype}\of\origtable%         \ifx\pgfplotsretval=1             01             \pgfmathparse{\pgfmathaccuma+1}%             \let\pgfmathaccuma=\pgfmathresult%             \pgfmathparse{1}%             \let\pgfmathaccumb=\pgfmathresult%         \fi         \pgfkeyslet{/pgfplots/table/create col/next content}\orgrow%     \else         \orgrow:1         \pgfmathparse{0}%         \let\pgfmathaccumb=\pgfmathresult%           \pgfkeyslet{/pgfplots/table/create col/next content}\orgrow%     \fi     },]{mmtypenewrow}\newtable          \pgfplotstabletypeset\newtable          \end{document}      My aim is to repeat `index` if its `mmtype` is equal to 1. For example, when input data is as follow:               index   mmtype     0       0     1       0     2       0     3       1     4       0      output data must be:               mmtypenewrow    mmtype     0               0     1               0     2               0     3               1     3               1     4               0


title: Are LaTeX's label names case-sensitive? Can label names contain spaces?

text: According to _Guide to LaTeX_ , 4th edition, when creating a `\label{name}`, > The keyword _name_ may be any combination of letters, numbers, or symbols. Is the _name_ of a label case-sensitive? Can the _name_ contain spaces? I'm asking because when using Vim's snipmate TeX snippet, if I type `sec` and hit tab, I automatically get:               \section{section name}     \label{sec:section name}      Then when I enter the _section name_ in the `\section`, Vim automatically puts the same text after the `sec:` portion of the `\label`. Since my sections are often multiple, capitalized words, the label name ends up containing spaces and are capitalized. For instance, I might get:               \section{Planned Testing}     \label{sec:Planned Testing}      Prior to allowing Snipmate in Vim automatically enter the label name based on the section name, I would have manually typed:               \section{Planned Testing}     \label{sec:planned_testing}      # Spaces not allowed Syntastic in Vim shows an error if a label name contains spaces.


title: TOC, too long for fitting

text: I've used next code in to my preamble to make my TOC, because I want that the `section` I will talk about is shown. But now is my TOC too large for one frame, how can I make it fit in one frame?               \AtBeginSection[] % Do nothing for \section*     {     \begin{frame}<beamer>     \frametitle{Inhoudsopgave - Sectie \thesection}     \tableofcontents[currentsection]     \end{frame}     }


title: Problem using \write18 in beamer frame

text: I am stuck in front of this little but annoying problem. I am trying to use a `\write18` command in which I use a local variable `\mytest`. I really don't understand why this SWE works if I comment the two `\begin{frame}` and `\end{frame}` and doesn't if I use them. Also, it works if I use `\jobname` in place of `\mytest` in the `\write18` statement. Does anybody can has an idea ?               \documentclass{beamer}          \makeatletter     \newcommand{\print}[1]{       \def\mytest{#1}       \mytest       \write18{echo;echo my test is \mytest\   }       }     \makeatother          \begin{document}     \begin{frame}{}     \print{hello world}     \end{frame}          \end{document}


title: Is there a \urlstyle{tt} (or something else) for \href to make it the same font as \url links?

text: Is there a `\urlstyle{tt}` (or something else to that effect) for `\href` to make it the same font as `\url` links? I'm happy with any monospace font, as long as they both (`\url` and `\href`) show up the same.


title: Changing indentation in friggeri CV template

text: I am pretty new to latex and currently in the need of writing an CV, so after some googling I found the friggeri CV template (https://github.com/afriggeri/cv), which looked very promising. Unfortunately, I would like it to be a bit more conservative. In other words, I would like to remove the left sidebar, which is easily achieved, and then reduce the indentation of the remaining sections, which I couldn't manage to do yet (Tried some dirty/ugly stuff like addmargin...). So, in short: How do I reduce the indentation when I remove the side block of the friggeri CV template? Thank you in advance :)


title: How can I include the R source code in the appendix?

text: I really have no idea how to include the R code into latex, so I only can provide my R code. I would like to put it in the appendix. I am really looking forward to your help. Thx! The codes will show the place where I would like to include the R codes.               \documentclass[12pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     This is the main part of the dissertation.          \newpage     \appendix     \section{The codes of equilibrium distribution.} \label{app:Codes}     \subsection{The analytical method.}          Here is the R codes.          \section{The codes of analysing the parameters in the model.} \label{app:Analysis}          Here is the R codes as well.          \end{document}      Below is the R code.               pi<-rep(1,n)     #Geometric     pi[2]<-a/(lambda*q+a*q+d)     for (i in 3:n){       f.1<-1       f.2<-1       for (j in 1:(i-2)){         f.1<-f.1*(a+j*lambda)       }       for (k in 1:(i-1)){         f.2<-f.2*(a+k*lambda+k*d/q)       }       pi[i]<-f.1*a/(f.2*(q^(i-1)))     }     pi[1]<-1/sum(pi)     for (i in 2:n){       pi[i]<-pi[i]*pi[1]     }


title: cases environment inside an array

text: LyX is giving a lot of error messages for my Latex code which runs in other places.               \[     \begin{array}{rl}     p_{Y \mid H_1}(y \mid H_1) & = f_X(g^{-1}(y))\left| \dfrac{dg^{-1}(y)}{dy} \right| \\ \\     & = \begin{cases} y>0 & : & f_X(\ln(y))\left| \dfrac{d \ln(y)}{dy} \right| = \dfrac{f_X(\ln(y))}{y} \\     \text{otherwise} & : & 0     \end{cases}     \end{array}     \]      LyX says:               Extra alignment tabs changed to \cr.      & = \begin{cases} y>0 & : &                                       f_X(\ln(y))\left| \dfrac{d \ln(y)}{dy} \ri...     You have given more \span or & marks than there were     in the preamble to the \halign or \valign now in progress.     So I'll assume that you meant to type \cr instead.      However the exact code works perfectly in the SE Mathematics domain to give this output: ![should have been like this](http://i.stack.imgur.com/5cv2y.png) What does LyX not like in my code?


title: Beamer ignores citecolor from hyperref

text: How do I make _citation_ links green in Beamer? It seems that Beamer ignores the hyperref option `citecolor`. I tried using the `linkcolor` option instead, but that affects all links (such as the link to the next slide, see example below). I want to change **only** the citation color.               \documentclass{beamer}          \hypersetup{       colorlinks = true,     % linkcolor = green,       citecolor = green     }          \begin{document}          \begin{frame}     This is a great result~\cite{Paper}.     But this is a link to slide~\ref{Bib}.     \end{frame}          \begin{frame}{Bibliography}\label{Bib}     \begin{thebibliography}{}       \bibitem[Author, 1942]{Paper}         Author. B.         \newblock The great result.     \end{thebibliography}     \end{frame}          \end{document}


title: algorithm2e and \algomargin with negative value

text: How can I use a negative length in `\algomargin` using algorithm2e? I get the unpleasant effect that the vertical lines and the caption are not moved accordingly, see for example: ![MWE image](http://i.stack.imgur.com/QrxlT.png) Note that this image is cut in the left incorrectly by the `standalone` document class (use `article` class instead). The text "Algorithm 0.2" extends into the left margin (which is wanted) but the caption and the vertical lines are not. I am happy with any solution that lets me extend the algorithm environment slightly in the left and right margins, not necessarily using `\algomargin`.               \documentclass[varwidth]{standalone}     %\documentclass{article}          \usepackage[ruled,vlined,algosection]{algorithm2e}          \begin{document}          \begin{algorithm} normal computation \caption{normal algorithm} \end{algorithm}          \setlength{\algomargin}{-2em}     \begin{algorithm} long computation \caption{long algorithm} \end{algorithm}          \setlength{\algomargin}{2em}     \begin{algorithm} short computation \caption{short algorithm}     \end{algorithm}          \end{document}


title: What is the difference between \everypar and \EveryPar?

text: In a previous question I got recommended to use `\EveryPar` instead of `\everypar`. What is the difference between the two? Are there other commands that I should capitalize the same way in ConTeXt?


title: Filling an angle arc with a pattern

text: Consider an angle (on a plane) with the vertex O, the initial side (ray1) and the terminal side (ray2). Assume the measure of this angle is less than 360 degrees. (There are two such angles.) Consider another ray (ray3) with the same vertex O that can rotate between ray1 and ray2 with center O. I want to shade the region swept out by ray3 using a hatch pattern. There are two possibilities. (1) The rotation is counterclockwise   (2) The rotation is clockwise After reading several questions and answers (at tex.sx on pgfplots), I have a reasonably acceptable answer to possibility (1). (See the code and the figure below.) (Please feel free to improve the answer to the first possibility.)               \documentclass[11pt]{article}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepgfplotslibrary{fillbetween}     \usetikzlibrary{patterns}     \begin{document}          \pgfdeclarepatternformonly[\LineSpace]{my north west lines}{\pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{\LineSpace}{\LineSpace}}{\pgfqpoint{\LineSpace}{\LineSpace}}%     {         \pgfsetlinewidth{0.4pt}         \pgfpathmoveto{\pgfqpoint{0pt}{\LineSpace}}         \pgfpathlineto{\pgfqpoint{\LineSpace + 0.1pt}{-0.1pt}}         \pgfusepath{stroke}     }          \newdimen\LineSpace     \tikzset{         line space/.code={\LineSpace=#1},         line space=3pt     }          \begin{tikzpicture}          \begin{axis}[hide axis, xmin=-1, ymin=-1, xmax=10,ymax=10,     disabledatascaling]          \addplot[domain=0:10,samples=300]     {0};     \addplot[domain=0:6,samples=300]     {x};          \addplot[red,domain=0:7,samples=300]     {x/2};          \addplot[domain=0:9,samples=300,name path=A]     {0};     \addplot[domain=0:4,samples=300,name path=B]     {x};     \addplot[line space=5pt, pattern= my north west lines] fill between[of=A and B];     \draw [red, line width=2pt, ->] (axis cs:2,0) arc [radius=2, start angle=0,end angle=45];     \end{axis}     \end{tikzpicture}     \end{document}       ![enter image description here](http://i.stack.imgur.com/vj2vp.png) Is it possible to get an answer to the second possibility? ![enter image description here](http://i.stack.imgur.com/FRjFV.png) Note: I want to shade the region within the angle so that the boundary of the shaded region has some sort of a blurry shape. (Definitely not a circular shape.) I failed miserably conveying this idea through my posted image. However, I might be able to get something reasonable by playing with the clipping idea. ![enter image description here](http://i.stack.imgur.com/wMvQu.png)


title: memoir tutorials or introductions

text: I'm looking for `memoir` tutorials or introductions. The main manual is a wonderful piece of documentation, but at nearly 600 pages it is a bit overwhelming as a starting place. Likewise the more examples I can find (with associated code) the more quickly I can move to the real work of typesetting the book in question---a collection of short stories gathered together in one place for the first time.


title: AMS Split inside AMS Align

text: I'd like to have multiple lines inside a single align cell like so:               \begin{alignat*}{1}     = & \begin{split}x+\\     y\end{split}     \end{alignat*}      But I get an error like:                \end{alignat*}          \An extra & here is so disastrous that you should probably exit      and fix things up.       What's the correct way to achieve this?


title: Longtable and modified \footnoterule

text: > **Possible Duplicate:**   >  How can I change the footnote line (thickness, length) I want to modify the `\footnoterule` and still be able to use `longtable` but the following code doesn't compile:               \documentclass{article}     \usepackage{lipsum}     \usepackage{longtable}     \renewcommand{\footnoterule}{\vspace*{0.3cm}\noindent\rule{2.5cm}{0.4pt}\vspace*{0.3cm}}     \begin{document}     \lipsum[1-4]     Text\footnote{Footnote}     \begin{longtable}{c}     N.\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\                 \end{longtable}     \end{document}


title: Problem with tikz picture and polyglossia with XeTeX

text: The problem is that the section headings disappear and herein there is a minimal example               \documentclass{report}          \usepackage{setspace}          \usepackage{fontspec}     \usepackage{polyglossia}     \setmainlanguage{english}     \setotherlanguage{arabic}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade}          %\usepackage{amsmath, amsfonts, amssymb, amsthm}     %=========================================================     \usepackage{tikz}          \usepackage{etoolbox}          \AtBeginEnvironment{tikzpicture}{\selectlanguage{english}}     \tikzset{font=\selectlanguage{arabic}}               \begin{document}     Some latin text and inline arabic: \textarabic{السلام عليكم}          And for larger blocks of text you can use Arabic environment:     \begin{Arabic}          \section{المتتاليات العددية}          \tikzset{     mybox/.style={         draw=red, fill=blue!20, very thick,         rectangle, rounded corners, inner sep=10pt, inner ysep=20pt     },     fancytitle/.style={         draw=red, fill=blue!20, text=black, rectangle, rounded corners     }     }     \begin{tikzpicture}     \node [mybox] (box){%     \begin{minipage}{.89\textwidth}          العربية أكثر لغات المجموعة السامية متحدثينَ، وإحدى أكثر اللغات انتشارًفي العالم، يتحدثها أكثر من 422 مليون نسمة،1 ويتوزع متحدثوها في المنطقة المعروفة باسم الوطن العربي، بالإضافة إلى العديد من المناطق الأخرى المجاورة كالأحواز وتركيا وتشاد ومالي السنغال وإرتيريا. اللغة العربية ذات أهمية قصوى لدى المسلمين، فهي لغة مقدسة (لغة القرآن)، ولا تتم الصلاة (وعبادات أخرى) في الإسلام إلا بإتقان بعض من كلماتها.     \end{minipage}     };     \node[fancytitle, left=10pt] at (box.north east) {\AR{نظـريـة}};     \node[fancytitle, rounded corners] at (box.south east) {$\clubsuit$};     \end{tikzpicture}%          هذه محاولة ناجحة للكتابة بالعربية مع استخدام التكزد          \section{المحاولة الثانية لكتابة تكزد }          \begin{tikzpicture}     \node [mybox] (box){%     \begin{minipage}{.89\textwidth}          يجب التأكد من جودة الفونت بكل طريقة ممكنة     \end{minipage}     };     \node[fancytitle, left=10pt] at (box.north east) {\AR{نظرية رقم - 2}};     \node[fancytitle, rounded corners] at (box.south east) {$\clubsuit$};     \end{tikzpicture}%          \end{Arabic}     \end{document}


title: What is MikTeX?

text: I want to learn LaTeX. I was looking for some form of software when I found them at http://miktex.org/ It seems like it is free. They say easy to download. However, I don’t usually do stuff like this. Is the download an independent LaTeX program, like Waterloo Maple ("plug-in-play")? Is this what people here use? Please forgive my naivety... If this is the wrong forum for such questions please re-direct. I would, just, hate to have to restore my computer on some experiment. EDIT: SamSung laptop. About 2 years old. Windows 7 Professional


title: Chemical Structural formula in math latex without package

text: I need to draw the chemical structures of carbon compounds like benzene, acetone. The problem I am having is that I am using script from http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML to render the latex code and need to find the method to draw chemical structures. I know of the package called "chemfig" for drawing chemical structures but since I am using above script to render the latex code, I am having problem to draw the chemical formula. Can anyone suggest how can I draw chemical structures from above script. Thanks in advance


title: DVItoPDF gives an error

text: I have previously compiled my tex file with images, and everything worked alright. Lastly, I have changed only the text in my tex file and when compiling the pdf I received in error of DVItoPDF due to an image. However I did not modify the image with respect to the previous compilation. I think the problem comes from the font, but I cannot see why it was working before and not anymore Here is the error message:               "Operand stack:        --nostringval--   --nostringval--   Arial-Bold     Execution stack:        %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   --nostringval--   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   1868   3   4   %oparray_pop     Dictionary stack:        --dict:1167/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   --dict:199/256(L)--     Current allocation mode is local     Current file position is 19565     GPL Ghostscript 9.05: Unrecoverable error, exit code 1     ** WARNING ** Filtering file via command -->gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile=/tmp/dvipdfmx.Xn9tqR6 ./images/verif_thetaK_multiplot.eps -c quit<-- failed. ** WARNING ** Image format conversion for "./images/verif_thetaK_multiplot.eps" failed...     ** ERROR ** pdf_ref_obj(): passed invalid object.          Output file removed."      The image in eps who seems to be the source of error (made using gnuplot). The answer to `gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile=/tmp/dvipdfmx.Xn9tqR6 ./images/verif_thetaK_multiplot.eps -c quit` is               Error: /typecheck in /findfont     Operand stack:        --nostringval--   --nostringval--   Arial-Bold     Execution stack:        %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   --nostringval--   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   1868   3   4   %oparray_pop     Dictionary stack:        --dict:1167/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   --dict:199/256(L)--     Current allocation mode is local     Current file position is 19565     GPL Ghostscript 9.05: Unrecoverable error, exit code 1


title: why there is space in the borders of the table?

text: I used the following code to draw the table, however, there is blank space in the border. the lines are not connected. May someone help me?               \usepackage{tikz}     \usetikzlibrary{         shapes.geometric,         positioning,         fit,         calc     }     \usepackage{array}     \usetikzlibrary{decorations.markings}     \newcommand*{\Shift}{0.6ex}     \usepackage{fancyvrb}     \usepackage{listings}     \usepackage{adjustbox}     \usepackage{etex}     \usepackage{amsmath, amssymb, proof} % mathabx,     \usepackage{ctable}     \usepackage{multirow}     \usepackage{bigstrut}     \usepackage{lipsum}          \usepackage[ruled,vlined,linesnumbered]{algorithm2e}          % GRAPHICS          \usepackage{pgf}     \usepackage{graphicx}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{verbatim}     \usetikzlibrary{arrows,automata,positioning,shapes,patterns}          \usepackage{mathtools}     \usepackage{hyperref}          \usepackage{scalefnt}      \begin{table}[h]       \centering              \begin{tabular}%{@{}p{0.7in}c@{\hspace{0.5em}}c@{\hspace{0.5em}}c@{\hspace{0.5em}}c}         {| >{\centering\arraybackslash}m{0.7in} | >{\centering\arraybackslash}m{0.7in} |>{\centering\arraybackslash}m{0.7in} |}         \toprule         {\small{Response Time}} & \small{Availability} & \small{Throughput} \\         \midrule         $\sum\limits_{i=1}^n q(\si)$  &  $\prod\limits_{i=1}^n q(\si)$  & $\min\limits_{i=1}^n q(\si)$   \\         \bottomrule         \end{tabular}%     \caption{Aggregation Function}       \label{tab:compositionalStructure}%     \end{table}      ![enter image description here][1]


title: How to spread floats automatically over a whole chapter?

text: In a chapter with many figures, I'm having trouble to get the floats to be interlaced with the text. To quote http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions: > Authors sometimes have many floats occurring in rapid succession, which > raises the problem of how they are supposed to fit on the page and still > leave room for text. In this case, LaTeX stacks them all up and prints them > together if possible, or leaves them to the end of the chapter in protest. > The skill is to space them out within your text so that they intrude neither > on the thread of your argument or discussion, nor on the visual balance of > the typeset pages. I somehow feel this can't be the point, to have to manually spread the figures within the source file so that LaTeX will feel compelled to produce a visually pleasing result (if I felt that's how a typesetting software should work I'd be using Word). Why can't I just take a bunch of floats and tell LaTeX: "You take these and put them _somewhere_ in this chapter. I know you can do it!" I produced a MWE that shows that neither putting text before nor after a bunch of figures will help.               \documentclass{article}     \usepackage{mwe}     \begin{document}     \blindtext\par\blindtext\par\blindtext\par\blindtext\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par          \begin{figure}     \centering     \includegraphics[width=\linewidth]{example-image-a}     \caption{A figure.}     \end{figure}          \begin{figure}     \centering     \includegraphics[width=\linewidth]{example-image-a}     \caption{A figure.}     \end{figure}          \begin{figure}     \centering     \includegraphics[width=\linewidth]{example-image-a}     \caption{A figure.}     \end{figure}          \begin{figure}     \centering     \includegraphics[width=\linewidth]{example-image-a}     \caption{A figure.}     \end{figure}          \begin{figure}     \centering     \includegraphics[width=\linewidth]{example-image-a}     \caption{A figure.}     \end{figure}     \blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par\blindtext\par     \end{document}      ![texttexttextfigurefigurefiguretexttexttext](http://i.stack.imgur.com/oB4bc.png) I know I could just use `\begin{figure}[t]` and would get what I want but, again, it can hardly be the point of floats to _force_ them into a certain position. I am willing to let LaTeX put floats on a float page or at the bottom or whereever, as long as it at least tries to achieve a decent result. Mixing text and figure on one page and not on the others doesn't make any sense in any typography universe that I can conceive.


title: Line breaking in equation

text: This is the equation I want to write in LaTex: ![enter image description here](http://i.stack.imgur.com/G9YxK.png) I have read these advices, but for split and multilined commands it says that they are undefined (and also for multiline, but nevertheless this is not suitable for me). Is there another possibility how to break line?


title: Importing separate file into my LaTeX file

text: I'm curious as to whether it's possible to insert an entire separate file into a LaTeX document as an inline command. For example, I have the following LaTeX code:               \begin{Verbatim}[frame=single]     %Want to insert all the text from another file here     \end{Verbatim}      So where it says %Want to insert... I'd like to insert all of the text from another file (in the same directory) into the `.tex` document so that the text in the other file appears in a box in the `.tex` document. I hope that's clear, if not I'll clarify in the comments.