title: Cross-references in eledmac

text: When I create an `\edlabel{}` in a critical text made with `eledmac`, the result I get from referencing the label with either `\edpageref`, `\lineref`, `\sublineref` or `\pstartref` don't seem quite intelligble to me. MWE:               \documentclass{article}     \usepackage{eledmac}     \begin{document}          List of references:          Pageref: \xpageref{cicero}          Lineref: \lineref{cicero}          Sublineref: \sublineref{cicero}          pstartref: \pstartref{cicero}               \beginnumbering     \pstart     neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,      adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et      dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum      exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi      consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse     quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas      nulla pariatur?\edlabel{cicero}     \pend     \endnumbering          \end{document}      This produces the following result on my system: ![output of MWE](http://i.stack.imgur.com/ZDFqx.png) I believe that the first 1 (before the dash) refers to the page, since it is 2 if I insert a pagebreak. But none the less, I don't see how either of these would be understandable references to the current label. It is located on line 7 of the text. What am I doing wrong here? Additional note: It seems to me that when the labels are not in the same document as the refs (two seperate files included in master document with `\include{}`), the "reference" only has the second part and is formated with a pipe, e.g.: `|1` or `|2` for `\edpageref` and `\lineref` respectively.


title: Can/does hyphenation ignore accents?

text: LuaLaTeX MWE:               \documentclass[11pt]{article}          \usepackage{polyglossia}     \setotherlanguage{russian}     \usepackage{tabu}     \usepackage[textwidth=6.5in,textheight=9in,nohead,headheight=39pt,headsep=12pt,                 top=72pt]{geometry}     \usepackage{fontspec}     \setmainfont{CMU Serif}          \begin{document}          \begin{tabu}{X|X}         Е́сли вы изу́чите ру́сский язы́к, вы полу́чите хоро́шую пабо́ту.         & If you master (will master) Russian, you will get a good job. \\              Е́сли вы изу́чите ру́сский язы́к, вы по\-лу́\-чите хо\-ро́\-шую пабо́ту.         & If you master (will master) Russian, you will get a good job. \\     \end{tabu}          \end{document}      Notice that I've used U+0301, "combining acute accent," to add accents to the Russian. (Showing where the accents are is common in English texts designed for learning Russian.) Here's the Russian half (the left half of the table) from the resulting PDF: ![Russian results](http://i.stack.imgur.com/iC3UB.png) On the first row of the table I get `Underfull \hbox (badness 6332) in paragraph at lines 19--19`, presumably because LuaLaTeX doesn't know how to hyphenate the words with added accents. If I explicitly hint the hyphenation, as I did on the second row, it gets hyphenated correctly. Is there any way to tell LuaLaTeX/Polyglossia/whatever to ignore the added accents when hyphenating words?


title: Urldate field gets ignored

text: I need help :) I am writing in Danish and need citations in the harvard style. I am using the following minimum setup:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[Danish,english]{babel}     \usepackage{natbib}     \usepackage{har2nat}     \bibliographystyle{agsm}     \usepackage[colorlinks, linkcolor = black, citecolor = black, filecolor = black, urlcolor = blue]{hyperref}     \renewcommand{\harvardurl}[1]{\textbf{URL:} \url{#1}}     \usepackage{breakcites}     \renewcommand*{\UrlFont}{\itshape}          \begin{document}     \selectlanguage{danish}     \bibliography{mybib}     \nocite{*}     \end{document}      with for example following bibiographic entry:               @TechReport{AgnSchu2009,     author={Agnello, Luca and Schuknecht, Ludger},     title={{Booms and busts in housing markets: Determinants and implications}},     year=2009,     month=Jul,     institution={European Central Bank},     type={Working Paper Series},     url={http://ideas.repec.org/p/ecb/ecbwps/20091071.html},     urldate={01.04.2014},     number={No. 1071},     }      In principle it works well, and I am happy with the style and the hyperlinks etc BUT the urldate field gets ignored. I would need a solution that works also for @article, @misc, @booklet, @incollection entries. Tried using the "note" field but then the date of last access ends in front of the URL (and not after it, where it belongs). If you then also could help me with two more 'esthetic' problems: the URLs are set on a new line (I would like them to just continue on the last line of the literature entry) and (of course) URL linebreaks look funny (but I guess that i will have to change manually...) Help is very much appreciated. I am no LaTeX expert - so please be patient :)


title: *.sty file not found

text: This question is very similar to a previous post: Where do I place my own .sty files, to make them available to all my .tex files? I am using MiKTeX 2.9 and TeXnicCenter to compose and execute my LaTeX file(s) on Windows 7. I am using a template from Elsevier to submit a journal article, but I am getting the LaTeX Error that File 'numcompress.sty' not found. This file is currently located in the same directory as the other `elsarticle` files: `C:\Program Files (x86)\MikTex 2.9\tex\latex\elsarticle`. I have actually followed the directions posted to the above question exactly: http://tex.stackexchange.com/a/20121/ but still have had no change in outcome.


title: Why does TexWorks in MikTex only compile documents from a single directory?

text: Using Portable MikTex on a Windows7 machine, my document compiles only when I save the document in my `c:\users\temp` folder. If I save the same file to my thumb drive e.g. `G:\useraa\downloads\drafts\` then I get an error message as shown in the image. **Question:** What's so special about the directory `C:\users\temp` that allows document to compile without errors? At one time, I was able to save .tex file to another directory and could complile. I don't know what changed.![enter image description here](http://i.stack.imgur.com/O2Ub8.png)


title: Description environment with customized labels

text: Objective:   * Change font style, in this case removing bold;   * Customize the text into `Page <$my_text>.`; and   * Do this for a single description environment, I don't want to change the other ones. To remove the bold I use `font=\normalfont` which seems to work. However, I cannot change the text format into `Page <$my_text>.`. What am I doing wrong?               \documentclass{report}     \usepackage{enumitem}     \begin{document}          \begin{description}[leftmargin=!, labelwidth=0.3\textwidth, font=\normalfont, label=Page~*.]       \item[12]       Hello.       \item[33]       Text text text text text text text text.       \item[92]       Some more text here.     \end{description}          \end{document}


title: biblatex-chicago, backref, and crossref

text: Using `biblatex-chicago` with `backref=true` and `longcrossref=false`, the list of backreferences of cross-referenced items appears with the parent item, not the child. How can I make it appear with the child, or, ideally, both? The MWE below shows the current behaviour:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{filecontents}     \usepackage[authordate,backend=biber,backref=true,longcrossref=false,mincrossrefs=1]{biblatex-chicago}          \begin{filecontents}{\jobname.bib}     @INBOOK{Leibniz1695,     author={Gottfried W. Leibniz},     crossref={Leibniz1994},     options={cmsdate=both},     origdate={1695},     pages={49–58},     title={Dialogue effectif sur la liberté de l'homme et sur l'origine du mal}     }          @BOOK{Leibniz1994,     address={Paris},     author={Gottfried W. Leibniz},     editor={Christiane Frémont},     publisher={Flammarion},     title={Système nouveau de la nature et de la communication des substances et autres textes 1690–1703},     year={1994}     }     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}          \cite{Leibniz1695}     \newpage     \printbibliography          \end{document}      **Edit:** One workaround would be to drop the crossref field from the child and add a note field with a citation of the parent in it:               @INBOOK{Leibniz1695,     author={Gottfried W. Leibniz},     note={In \cite[49–58]{Leibniz1994}},     options={cmsdate=both},     origdate={1695},     date={1994},     title={Dialogue effectif sur la liberté de l'homme et sur l'origine du mal}     }       Semantically, this is no doubt not preferable to having an explicit crossref field; and the parent does not yet inherit the backrefs. **Edit:** In the MWE, I have inserted a `\newpage` so as to make it clear, in the printed result, that the backref shown at the parent is to the citation in the note in the child, and not, by inheritance, to the citation in the main text of the document.


title: Automatically adjusting abstract from one to two columns and back

text: I am editing the latex template that has a custom abstract environment. I would like to keep the width of (0.65) in two column mode, but to change to full width in single column mode. Would someone please advise on how to make this adjustment automatically. Original code is below:               \renewenvironment{abstract}{        \usefont{OT1}{phv}{m}{n}       \hfill\begin{minipage}{0.65\textwidth}       \rule{\textwidth}{1pt}\\ \textcolor{Blue}{\textbf{\abstractname}}}       {\par\noindent\rule{\textwidth}{1pt}\end{minipage}}       Please advise.


How can we put two bibitems (that is in form of icons) horizontally after some spaces? > [1] text1 [2] text2 Actually I need it in my `beamer`.               \begin{thebibliography}{9}      \setbeamertemplate{bibliography item}[article]      \bibitem{} (Jungck and Rhoades [72],      \bibitem{} Padaliya and Pant [88], Pant [92,94], Pant and Pant [100], Sastry and Murthy [119], and Singh and Kumar [128])      \end{thebibliography}      \end{frame}


title: Plot the cusp catastrophe surface

text: I'm trying to draw (plot) the Cusp catastrophe surface into latex using any software logic. I am completely stuck because I'm definitely not a mathematician. The surface has the potential:               V(x) = F(x,u,v) = x^4 + ux^2 + vx      so it should be given by this implicit equation:               4x^3 + 2ux + v = 0      But I don't know how to implement this. Apparently gnuplot can't do this (even if I find something approaching) so I should go with a CAS like Octave or scripting something in Maxima first, then feed gnuplot or export the graphic. Ideally, it would be great if it was as easy as this Mathematica example:               F[x_, u_, v_] :=  x^4 + u x^2 + v*x          Needs["Graphics`ContourPlot3D`"]          ContourPlot3D[Evaluate[D[F[x, u, v], x]],       {u, -2.5, 2}, {v, -2.2, 3}, {x, -1.4, 1.3},        PlotPoints -> 7, ViewPoint -> {-1.5, 1.5, 1.4},        Axes -> True, ContourStyle -> {EdgeForm[]},        AxesLabel -> TraditionalForm /@ {u, v, x}] // Timing      * * * ## edit / updates So I dig I lot, apparently, I can't do it perfectly without the ability of a mathematician (that's for sure) si I decided I should stick with an implicit solving method. I can translate the Mathematica code into Sage:               u, v, x = var('u, v, x')     f(u,v,x) = x^4 + u*x^2 + v*x     g = f.diff(x)     implicit_plot3d(g, (u, -2, 2), (v, -2, 2), (x, -2, 2))      It produces neat results: ![cusp surface from Sage](http://i.stack.imgur.com/a5eBw.png) You can also check the result on cloud.sagemath (subscription required). But unfortunately 3d plot can't be exported in vector format, maybe there's a method for raw (x,y,z) points export, dunno... I tried an other solution with a the experimental `psplotImpIIID` feature of ps-tricks, it's ugly and produce a lot of artefacts. And to end up with `pstricks`, one could do something like this:               \begin{pspicture}(-6,-4)(6,5)         \pstThreeDCoor[xMin=-4,xMax=4,yMin=-4,yMax=4,zMin=-4,zMax=4,RotY=90,RotX=25]         \psplotThreeD[plotstyle=line,hiddenLine,% does not work in my case (xelatex?)         yPlotpoints=50,xPlotpoints=50,linewidth=.5pt,algebraic](-3,3)(-3,3){4*x^3 - 2*y*x}     \end{pspicture}      ![pst-plot3d cusp surface](http://i.stack.imgur.com/CrMLn.png) The advantage being that we can easily rotate the axis, the disadvantage (from the perspective of a pstricks noob) being styling, plus I need to clip the result image. There's also a solution that uses a R package which I tried and and it works great and outputs vector graphics. But honestly, I think I loop the web (I even scripted it as a Blender Python) and there is definitely no easy straight solution for this.


title: What is the Vim Latex-Suite shortcut for inline math parenthesis?

text: Vim Latex-Suite has shortcuts for typing `\left(` and `\right)` just by typing `((`. What is the shortcut for typing `\\(` and `\\)`?


title: Command for argmin or argmax?

text: How can you get the argmin or argmax in Latex? Two solutions I found are:               \underset{x}{\operatorname{argmax}}           \DeclareMathOperator*{\argmin}{arg\,min}      Any other ideas? [1] http://www.breakthru.altervista.org/?p=27 [2] http://researchonsearch.blogspot.com/2007/05/enter-argmax-argmin-in- latex.html


title: How to put indices under argmin (using _ is not sufficient)

text: > **Possible Duplicate:**   >  Command for argmin or argmax? How to put indices under "argmin" in: `\operatorname{argmin}_{z}` ? For the sum we can do something like: `\sum\limits_{z}`, but it does not work for the argmin example. EDIT MWE:               \begin{equation}     \label{myequation}       F =        \begin{cases}         n + b + 1 & \text{if $a \neq \emptyset$}\\         \tilde{z} = \operatornamewithlimits{argmin}_{\tilde{z}}\operatorname{dist}(z, \tilde{z}) & \text{otherwise}       \end{cases}     \end{equation}


title: Matrix in small size

text: Does anyone have a good idea for an alternative matrix definition with a font size between the standard size used for say `pmatrix` and the `\scriptstyle` size used by `smallmatrix`? I have several vectors in manuscript that I'm editing, and I think               \begin{pmatrix}     1 \\ 2      \end{pmatrix}      take up too much space and (requite `mathtools`)               \begin{psmallmatrix}     1 \\ 2     \end{psmallmatrix}      is too small. The contents of these _medium_ matrices may contain numbers and most likely also `x_2` types of constructions. Any ideas? **EDIT:** My bad, I was of course referring to vertical vectors. And they will only be used in displayed mode.


title: pdflatex hangs during compiling (every 2nd run)

text: Newly, it frequently happens that `pdflatex` hangs during compile. The system:   * TeXLive 2010   (yes, I know that 2011 is out already)   * MacOS X 10.6.8.   * Texstudio as editor Currently, I'm compiling in the command line by                 pdflatex -synctex=1  filename.tex      Often, but not always (!) it then happens that `pdflatex` stops e. g. at the following line, the cpu usage of the process `pdftex` increases dramatically and it does not proceed compiling until I stop it with Ctrl-C, x and Return.                 LaTeX Warning: Reference `nameofreference' on page 49 undefined on input line 1179.      If I compile again, mostly it works and the pdf is created completely... (And as I tried it some minutes ago, the 3rd try again stopped at the same line..., the 4th try worked, the 5th stopped. It seems to happen alternately - every second pdflatex run hangs at this line...)   * How is that possible    * and what can I do to avoid this incomplete processing?


title: Professional-looking tables with alternating row colors?

text: Both the Booktabs documentation and the Small Guide to Making Nice Tables provide some nice rules-of-thumb for making professional-looking tables (e.g., no double rules, no vertical rules, etc.) Q: What are the "rules" about alternating row-coloring? The former discusses the functionality for alternating row-coloring. The latter provides some example tables from _The Economist_ which show some row- coloring. Neither say when it is/isn't a good idea though. Personally, I think alternating row-coloring is nice. It's easier to find things (especially when tables are wide). But I'd rather not do it if it's considered bad practice. I created the table below which I think looks pretty good (sans weird vertical alignment in the math, which is the subject of my question Vertical spacing in tables with math). But I'm open to criticism. ![mytable](http://i.stack.imgur.com/nk269.jpg)


title: beamer headline logo no vertical gap

text: We are trying to insert a logo on top of beamer slides It's working with e.g. this template for headline:               \defbeamertemplate*{headline}{lifbody}     {       \hskip.9\paperwidth       \includegraphics[scale=0.5]{logo_lif}     }      The problem with this is that the whole slide will be shifted from the height of the logo. We would like to have the slide with normal vertical position, with only the new logo on top of it. We tried another way by putting a negative vspace after the logo, like this:               \defbeamertemplate*{headline}{lifbody}     {       \begin{flushright}         \includegraphics[scale=0.5]{logo_lif}       \end{flushright}       \vspace*{-2cm}     }      The problem with this is that only a part of the logo is visible because it's on background and the title of the frame is above it. Is there a way to have the logo in foreground or any other method to have the same title vertical alignment with a logo in the headline?


title: Labeling Plots?

text: I haven't been able to find anything on this after searching for a while, so I apologize if this is a duplicate. I need to replicate the following image: ![enter image description here](http://i.stack.imgur.com/tWQBl.png) Here's what I've got so far: ![enter image description here](http://i.stack.imgur.com/MTEWc.png)               \documentclass{minimal}          %%for graphs     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \usepgfplotslibrary{fillbetween}     %%end graph code              \begin{document}         \begin{tikzpicture}[scale=1]         \begin{axis}[                 axis x line=bottom,%need to change to bottom to put 0 in                  axis y line=middle,                 x label style={at={(axis cs: 2.6, -0.12)},anchor=south},%rotate = degrees number can be used to rotate the label                 y label style={at={(axis cs:0, 2.5)},anchor=south},                 xtick={0, 1, 2}, %or {listofvalues, , },                 ytick={0, 1, 2},                 yticklabels={$0$, $1$, $2$},                 xticklabels={$0$, $1$, $2$},                 ymin=0,                 ymax=2.5,                 xmin=0,                 xmax=2.5,                 ylabel=$y$,                  xlabel=$x$,                 area style,                 ]             %thick lines             \draw[draw = black, ultra thick] (axis cs: 0, 0) -- (axis cs: 0, 2);             \addplot+[draw = black, ultra thick, name path = upper, domain=0:2] {2-x};             \addplot+[draw = black, ultra thick, name path = lower, domain=0:2] {0};               %shading                 \addplot[gray!40] fill between[of = upper and lower];         \end{axis}         \end{tikzpicture}         \end{document}      It doesn't matter to me where the axis labels are - the main problem is trying to get the x + y = 2 on the line. How can I get the x + y = 2 on the line?


title: Listing language for "screen session"

text: I am writing a set of tutorial documents on some command-line based tools. This tutorials need to show a "screen session". Something along the lines of:               $ git status     # on branch "master"      I want to be able to:   1. mark the shell prompt with a particular color (I always use the initial $ to indicate I'm on the prompt)   2. Identify the command output with a different color   3. Identify keywords in the shell commands I was looking at the `listings` package and it seems to be on the right path, but I couldn't find a way to produce that kind of output. I saw the documentation on how to produce a different "language" for the listings package, but I couldn't get myself around that, since I couldn't find much documentation. Is there a public implementation of such "language" specification? If not, can you give me some tips on how to define it?


title: Vertical spacing in tables with math

text: How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the `$JV$` and added the tildes, hats, and subscripts as an afterthought. The result is extra space under the `$JV$` and little space above the hats and tildes. ![mytable](http://i.stack.imgur.com/WmO7N.jpg)               \documentclass[xcolor=table,svgnames]{beamer}      \usepackage{booktabs}     \usepackage{amsmath}     \begin{document}     %==============================================================================%       \begin{frame}{}         \begin{table}           \begin{center}             \rowcolors{1}{}{RoyalBlue!20}             % alternate row coloring             \newlength{\oldtabcolsep}                 % keep track of old \tabcolsep             \setlength{\oldtabcolsep}{\tabcolsep}     % 6.0pt             \setlength{\tabcolsep}{0pt}               % so coloring doesn't run off                                                       % ends of the table             \renewcommand{\arraystretch}{1.3}         % because math expressions                                                       % almost run into each other             \begin{tabular}{l<{\hspace{\oldtabcolsep}}l<{\hspace{\oldtabcolsep}}l}                 \toprule               Estimator & ME & MAE \\               \specialrule{\lightrulewidth}{0pt}{0pt} % so row-coloring aligns               \(\widehat{JV}_{\text{na\"{\i}ve}}\)          & 4.37e-07 & 4.37e-07 \\               \(\widetilde{JV}_{\text{na\"{\i}ve}}\)        & 3.88e-07 & 3.88e-07 \\               \(\widehat{JV}\)                              & 1.33e-06 & 1.33e-06 \\               \(\widetilde{JV}\)                            & 1.20e-06 & 1.20e-06 \\               \bottomrule             \end{tabular}           \end{center}         \end{table}       \end{frame}      \end{document}


![Venn Diagram](http://i.stack.imgur.com/8gkwr.png) How do I make the text in the following figure white and center the figure?               %% LyX 1.6.9 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{babel}     \usepackage{multicol}     \usepackage{tikz}          \begin{document}     \begin{center}     %     \begin{figure}     \caption{Overlap of valley regions in tumourigenic cell line vs. control}          \definecolor{darkColor}{rgb}{0.102,0,0.2} %darkPurple      \definecolor{mediumColor}{rgb}{0.2,0,0.4} %purple      \definecolor{lightColor}{rgb}{0.413,0.315,0.615} %lightPurple     \begin{tikzpicture}[scale=1]     \tikzstyle{LeftLabel}= [text=white]     \tikzstyle{RightLabel}= [text=white]     \tikzstyle{CenterLabel}= [text=white]     \def\firstcircle{(-1.25,0) circle (1.75)}     \def\secondcircle{(1.25,0) circle (1.75)}      %\draw[help lines] (-4,-4) grid (8,4);       \begin{scope}     \fill[lightColor] \firstcircle;     \fill[lightColor] \secondcircle;     \clip \firstcircle;     \fill[mediumColor] \secondcircle;       \end{scope}       \draw \firstcircle ;       \draw (-1,0) node [left] (LeftLabel) {Cancer} ;       \draw node[below of=LeftLabel, node distance=.4cm] {1710};       \draw \secondcircle ;        \draw (1,0) node [right] (RightLabel) {Control};       \draw node[below of=RightLabel, node distance=.4cm] {2180};       \draw (0,0) node [] (overlap) {};       \draw node[below of=overlap, node distance=.4cm] {373};     \end{tikzpicture}%          \end{figure}          \par\end{center}     \end{document}


title: Using the same number for repeated use of the same equation

text: I'm a LyX beginner so please don't worry about stating the obvious. I'm numbering equations by section in my document. That's working fine. However, when I refer to the same equation later on in the text I can't see how I can give it its original reference number. So if `y=x+2` is numbered as `4.2.2`, I want to be able to give `y=x+2` the same number next time I use it. Is there a straightforward way of doing this? I'm assuming I have to sandwich the equations in code of some sort. I'm using the `scrbook` (Koma-script) document class. I'm using the modules: Theorems (AMS), Theorems Numbered by Chapter, Number Equations by Section. The LaTeX preamble is:               \usepackage{microtype}     \usepackage {hyperref}     \usepackage{amsmath}      \numberwithin{equation}{section}     \setkomafont{captionlabel}{\bfseries}      To date I've been changing the code in my LyX documents using Windows Notepad. Is that the best way of editing code?


title: compare two latex files with pdflatex.fmt format and not for .cls format

text: I would like to compare `old.tex` with `new.tex` file. I have find `latexdiff` is good for two latex comparison. But it's supporting only `\documentclass{article}`. But i have `%&update-article.fmt` format. Any ideas?               %&update-article     \begin{document}     \title{Article Title Here}     \maketitle      some text for compare two latex files;      \end{document}


title: Merge two TikZ pictures into one

text: Is it possible to merge two existing TikZ pictures into one? I have two pictures of this type and want to set them beneath each other in one `tikzpicture` environment (and adding some arrows between both pictures) without editing all the coordinates :                 \begin{tikzpicture}[domain=0:2.1, smooth, scale=0.8]       \draw[->] (0,0) -- (4.2,0);       \draw[->] (0,0) -- (0,3.2);       \draw[] (1,0) -- (1,-0.15) node[below] {$\alpha_0$};       \draw[color=red,thick,samples=500] plot (\x,{3*exp(-5*(\x-1)^2});       \draw[color=blue,dashed,thick,samples=500] plot (\x,{3*exp(-5*(\x-1)^2});       \end{tikzpicture}      Is there an easy way to do that?


title: Add some text on an inserted PDF

text: I had inserted a pdf file in latex use this code               \documentclass[a4paper,12pt]{book}     \usepackage{mdframed}     \begin{document}     \includepdfmerge{hello.pdf,1}     \end{document}      I want to insert some text on the first page . I want this text have background color green and it can be put at any location i want so I found this code to have my second requirement .               \definecolor{Green}{rgb}{0.465,0.725,0}     \put(99,9){\fcolorbox{Green}{Green}{\textcolor{black}{hello}}}      How can I combine this ?


title: Fancyheaders: how to turn off the page number on the first page?

text: > **Possible Duplicate:**   >  Custom first page with fancyhdr I don't know how to turn off the page number on the first page of the following article with different headers on odd and even pages. I tried `\thispagestyle{empty}` after `\begin{document}` but it doesn't work. The rest is OK.                \documentclass[a4paper,12pt,twoside]{article}      \usepackage{lipsum}      \newcommand\shorttitle{The Short Title}      \newcommand\authors{Author}      \usepackage{fancyhdr}      \pagestyle{fancy}      \fancyhf{}      \fancyhead[RO,LE]{\thepage}      \fancyhead[CO]{\shorttitle}      \fancyhead[CE]{\authors}      \renewcommand{\headrulewidth}{0pt}      \begin{document}      \thispagestyle{empty}        \title{The Full Title}      \author{Author}      \maketitle      \section{Section A}      \lipsum[1-2]      \section{Section B}      \lipsum[3-10]      \end{document}      ADDED. I don't want any header or footer on the first page. ADDED 2: As commented by Herbert writing `\fancypagestyle{plain}{\fancyhf{}}`after `\usepackage{fancyhdr}` makes what I want. EDIT: `\thispagestyle{empty}` is not needed. The revised code becomes                \documentclass[a4paper,12pt,twoside]{article}      \usepackage{lipsum}      \newcommand\shorttitle{The Short Title}      \newcommand\authors{Author}      \usepackage{fancyhdr}      \fancypagestyle{plain}{\fancyhf{}}      \pagestyle{fancy}      \fancyhf{}      \fancyhead[RO,LE]{\thepage}      \fancyhead[CO]{\shorttitle}      \fancyhead[CE]{\authors}      \renewcommand{\headrulewidth}{0pt}      \begin{document}      \title{The Full Title}      \author{Author}      \maketitle      \section{Section A}      \lipsum[1-2]      \section{Section B}      \lipsum[3-10]      \end{document}


title: Fancyhdr on the first page only

text: I'm writing an article and I need to put a figure on the top right but only on the first page. Also on the top left I need to place the type of article for Example                     Scientific Paper (left header).............................Figure (right header)                                        Title of the Article                                      Author 1, Author 2, Author 3                                 Affiliation1, Affiliation2, Affiliation3,                          Other Abstract                          Abstract                    Some text                               Some text                     Some text                               Some text                     Some text                               Some text                     Some text                               Some text       I try to put "Scientific Paper" using `fancyhdr` but it only shows up from the second page onwards. the code I've worked with so far is:               \documentclass[12pt,twoside,titlepage]{ingenius}     \usepackage{blindtext}     \usepackage[spanish]{babel}     \usepackage{multicol}     \usepackage{booktabs}     \usepackage{subfig}     \usepackage{marvosym}     \usepackage{authblk}     \usepackage{blindtext}     \usepackage{url}     \usepackage{caption}     \captionsetup{font=small}     \captionsetup[figure]{labelfont=bf}%,textfont=it}     \captionsetup[table]{labelfont=bf}%,textfont=it}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[LO]{}      \fancyhead[RE]{Journal Name}     \fancyhead[LE,RO]{{ \thepage }}     \fancyhead[LO]{{Author 1 / Title of the Article}}      \renewcommand{\headrulewidth}{0.5pt}     \usepackage{amsmath}     \date{}     \title{      {\textsc {Title of the Article}}}          \author[1,*]{Author 1}     \author[2]{Author 2}     \author[1]{Author 3}     \affil[1]{\it Department of Mechanical Engineering}     \affil[2]{\it Department of Electrical Engineering}          \begin{document}     \maketitle     \let\oldthefootnote\thefootnote     \renewcommand{\thefootnote}{\fnsymbol{footnote}}     \footnotetext[1]{Autor para correspondencia. Email:      \url{apsarmientoc@gmail.com} }     \let\thefootnote\oldthefootnote          \renewcommand{\tablename}{Table}     \renewcommand{\figurename}{Figure}     \renewcommand{\refname}{References}          \vspace{-.7cm}     \noindent      \begin{center}     {\bf Received:} 18 -- May -- 2012;  \hspace{0.25cm} {\bf Approved:} 20 -- May -- 2012     \end{center}          \begin{multicols}{2}     \noindent {\bf \large  Abstract}     \vspace{0.5cm}     \blindtext     \palabrasclave{keyword 1, keyword 2, etc}     \vfill     \columnbreak          \noindent {\bf \large Other Abstract}     \vspace{0.5cm}     \blindtext     \keywords{keyword 1, keyword 2, etc}     \end{multicols}     \twocolumn     \section{Introduction}     \blindtext     \blindtext     \blindtext     \section{Conclusions}     \blindtext     \blindtext     \blindtext     \section{Conclusions}     \blindtext     \blindtext     \blindtext     \end{document}      The code of the class to use is               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{ingenius}[2011/09/13]      \LoadClass{article}         \RequirePackage[latin9]{inputenc}     \RequirePackage[T1]{fontenc}     \RequirePackage[english,spanish,es-nolayout]{babel}     %\RequirePackage[font={small},tablename=Tabla,labelfont=     {bf,small},labelsep=period,justification=centerlast]{caption}     \RequirePackage{graphicx}     \RequirePackage{setspace}     \RequirePackage{lmodern}     \RequirePackage[obeyspaces,spaces]{url}     \urlstyle{same}     \RequirePackage[papersize=     {21cm,28cm},twoside,top=2cm,bottom=1.5cm,left=1.2cm,right=1.2cm,      headheight=1.8cm,headsep=.35cm,footskip=0.85cm]{geometry}               \RequirePackage[colorlinks,linkcolor=black,urlcolor=black,       citecolor=black,breaklinks=true,%     bookmarks=true,pdfstartview=XYZ]{hyperref}          \newcommand{\keywords}[1]{\vspace{\baselineskip}\parindent      0pt\textit{\textbf{Keywords}}: #1}     \newcommand{\palabrasclave}[1]{\vspace{\baselineskip}\parindent      0pt\textbf{\textit{Palabras clave}}: #1}          \newcommand{\tituloingles}[1]%     {\newcommand\@tituloingles{#1}}      Thanks for your help


title: Beamer Multimedia package

text: I have written the following document               \documentclass[aspectratio=1610]{beamer}          \usetheme[hideallsubsections]{Berkeley}     \useinnertheme{rounded}     \usepackage{multimedia}     \title[]{{\scshape Infodag wiskunde}}     \date{{\scshape 16 maart 2013}}          \begin{document}          \begin{frame}     \titlepage     \end{frame}          \begin{frame}\label{chaosfrag1}\frametitle{{\scshape Chaos 1 - }}     \begin{center}     \movie[showcontrols]{\includegraphics[width=0.8\textwidth]{chaos1.png}}{chaos1.mpg}     \end{center}     \end{frame}          \end{document}      For some reason however, neither Adobe Reader nor Foxit PDF Reader are able to display the movie on click. I figured the issue was probably with the pdf readers, but last year I made a similar document, and though I no longer have the TeXcode, I still have the pdf, and this does work. (the embedded media there is also `.mpg`). I already tried different media types (`.avi`, `.mp4`, .`flv`) but none of them work. I know about the `media9` package, however, as my final document will contain about 18 movies of each 10 minutes, the resulting pdf would be 2GB. Whenever I open it, it takes at least 10 seconds to start playing the media, and even then, it doesn't work (I just get a gray rectangle). EDIT: Okay, appearantly i was using a wrong code for media9, so now I can play the video (though the filesize still is huge). But still, it would be nice to see if I made a mistake somewhere in the `\movie` command or something... I hope someone can help :)


title: Draw a circle node with a cross symbol inside it to resemble a multiplier of a signal modulator

text: How do I do this in TikZ: I want to draw a circular node with a cross in it to resemble a multiplier like in the diagram shown in the link below. I can draw a circle but I don't know how to put the cross inside. ![](http://i.stack.imgur.com/lzezJ.jpg)


title: don't split verbatim by tables

text: I have quite long verbatim, which I don't want to be split by table, which is present in source document before verbatim. I have my table wrapped by `\begin{table}[h]`. Any suggestions?


title: tabular align with irregular number of rows

text: I am trying to set up a tabular system like the one below, but latex does not seem to want to work with different number of elements in each row. Any way to fix this ?               |Prime numbers| |   Integers  | | Square numbers  | | Difference  |     | p |           | n_1 | | n_2 | | n_1^2 | | n_2^2 | |n_1^2 - n_2^2|     | 3 |           |  2  | |  1  | |  2^2  | |  1^1  | |      3      |      Anyone have a good method for seting up sucha a table? =)


title: TeXMaker crashes with this TikZ tree

text: \node [rectangle,draw]  at (0,-13) {I:18};     \node [circle, draw] at (2,-13) {19}         child{node[rectangle,draw] (left node) {S:9}}         child{node[rectangle,draw] (right node) {M:10}};     \node [circle, draw] at (4, -13) {26}         child{\node [rectangle,draw] (left node) {A:12}}             child{\node [circle, draw] (right node) {14}             child{node[rectangle,draw] (left node) {B:7}}             child{node [circle, draw] {7}                 child{node[rectangle,draw] (left node) {Z:2}}                 child{node[rectangle,draw] (right node) {X:5}}             }         };      This chunk of code never allows me to build. I just wait and wait until my laptop sounds like it's going to die. I'm using TikZ for tree building. Can anyone see a mistake in the code? Thanks


title: How can I disable the linking for figures in LyX?

text: Complete LaTeX and LyX newbie here. I am currently writing a document in LyX and I'm using hyperref to have links in the ToC, citations etc. The problem is that I added a figure (with float) and when I make a cross-reference in the text, the reference itself becomes a link that leads to the page that contains the actual figure. For example:               ------Sample Graphic-------          Figure 1.1: Example of a graphic      And in the text that follows:               As we can see in figure 1.1 there is...      Now if I hover the mouse over 1.1 there is a link pointing to the location of the actual figure. Is there any way to disable the links for figures? Perhaps using "hypersetup" or a renewcommand...? Thank you in advance. :-)


I am attempting to install TeX Live 2011 on a Windows Vista machine. The steps I followed were:   1. Downloaded `install-tl.zip` from http://tug.org/texlive/acquire-netinstall.html.    2. Double clicked on the directory to unzip it.   3. Launched `install-tl` from the unzipped directory. Now, I am attempting to update the packages to the current release by launching `TeX Live Manager 2011`. I select the following from the `tlmgr` pull-down menu:               Load default net repository:http://mirror.ctan.org/systems/texlive/tlnet      The clicking on `Update all installed` button I get: > Fundamental package texlive.infra not present, uh oh, goodbye Surprisingly there is no mention of `texlive.infra` on this site. The output of `tlmgr show texlive.infra` is below: ![enter image description here](http://i.stack.imgur.com/gCtzT.png) Similar error with `tlmgr update --self --all`: ![enter image description here](http://i.stack.imgur.com/5hkcf.png) Werner's suggestion to use `tlmgr install bin-texlive texlive.infra` seemed promising but yields the same message: ![enter image description here](http://i.stack.imgur.com/4SAoa.png) Any suggestions as to what to do to resolve this?


title: How to tell pgfplots to keep empty "series"?

text: I have a plot with `xticklabels` defined as symbolic. In a modified version of my plot, I want to set `ymin` value. When doing this, my plot is automatically updated: all x series having only points which y value is below this new ymin are removed. How can I change this behavior ? Here is an example:               \documentclass[a4paper, landscape]{article}          \usepackage{pgfplots}     \usepackage[utf8]{inputenc}     \usepackage[margin=0.5cm]{geometry}          \pgfplotsset{compat=1.3}          \begin{document}          \centering     \begin{tikzpicture}       \begin{axis}[         symbolic x coords={X0, X1, X2, X3},         xtick=data,         grid=major,         only marks         ]         \addplot coordinates {(X0,0) (X1,1) (X2,2) (X3,3)};         \end{axis}     \end{tikzpicture}          \begin{tikzpicture}       \begin{axis}[         symbolic x coords={X0, X1, X2, X3},         xtick=data,         grid=major,         only marks,         ymin=1         ]         \addplot coordinates {(X0,0) (X1,1) (X2,2) (X3,3)};         \end{axis}     \end{tikzpicture}          \end{document}      Here is the result. On the second graph I would like to have X0 xtick label visible even if it's point is not. ![enter image description here](http://i.stack.imgur.com/WmkLs.png)


title: m column doesn't center text vertically

text: I want vertically centered text in a simple table like this:               \documentclass{article}     \usepackage{array}     \newcolumntype{Z}{>{\centering\arraybackslash}m{0.2cm}}          \begin{document}     \begin{tabular}{|Z|Z|Z|Z|}     \hline      4 & 3 & 2 & 1 \\     \hline     \end{tabular}          \end{document}      but the text is not vertically centered, it almost touches the upper hline. What should I do to fix this?


title: How to add graphics in LaTeX

text: How can we define the path if our file is at another place? I got this one that in preamble, we will write               \usepackage{graphicx}      Then for uploading graphics we will use               \includegraphics{File.extension}      But what in case if file is at another place, how will I give the path to it, how will I center it and how can I add text to it?


title: Theorem numbering as chapter.section.subsection.theorem number

text: This might be a simple question but it's weird that I couldn't find the answer anywhere on the internet. If I set as               \newtheorem{-}{-}[section]      then I get the numbering as Theorem `[section.subsection.thm number]`, so I always need to specify the chapter, but the problem is that the chaptering is likely to change until the final stage. Otherwise, if I were to set as               \newtheorem{*}{*}[chapter]      then I only get Theorem `[chapter.thm number]` so that sectional structure is lost and the numbering becomes very unclear and inefficient. At first, this seems very simple but it's funny that I could not find the answer. Is there any way of doing this only with AMSthm package? If it is not, it's still okay, and any solution on this would be very much appreciated.


title: How can I produce a document with Gujarati language in LaTeX?

text: I have tried the `itrans` package, but was unsuccessful to achieve producing document with indian language (especially gujarati). The documentation of `itrans` is not clear, at least to me. Can anyone help me in this problem?


title: Numbering the pages in LyX

text: Can someone help me understand how to make the pages in LyX numbered in Roman numerals?


title: Thesis class error Extra } or forgotten \endgroup on second compile (not first) in float caption

text: I am adapting a paper to a thesis format, and I am getting an error on the _second_ compile of my document (the first one seems to work fine). I am using TeXshop, v. 2.47; I am compiling using pdfTex v.3.1415926-1.40.10 (TeX Live 2009). I have a bibliography in BibTex format and I am using `natbib` citations. The error message points to the first place that I've included a citation in the caption of a figure. The error message:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)  \write18     enabled. entering extended mode (./MinExample.tex LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax,     dumylang, noh yphenation, german-x-2009-06-19, ngerman-x-2009-06-19,     ancientgreek, ibycus, ar abic, basque, bulgarian, catalan, pinyin,     coptic, croatian, czech, danish, dutc h, esperanto, estonian, farsi,     finnish, french, galician, german, ngerman, mono greek, greek,     hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada ,     malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian,     interlingua, i rish, italian, kurmanji, latin, latvian, lithuanian,     mongolian, mongolianlmc, b okmal, nynorsk, polish, portuguese,     romanian, russian, sanskrit, serbian, slova k, slovenian, spanish,     swedish, turkish, turkmen, ukenglish, ukrainian, upperso rbian, welsh,     loaded. (./duthesis.cls Document Class: duthesis 2008/01/04 v1.0     University of Denver Electronic Thesis  class     (/usr/local/texlive/2009/texmf-dist/tex/latex/setspace/setspace.sty     Package: `setspace' 6.7 <2000/12/01> )     (/usr/local/texlive/2009/texmf-dist/tex/latex/base/report.cls Document     Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size11.clo)))     (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/usr/local/texlive/2009/../texmf-local/tex/latex/local/natbib.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty     (/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amsfonts.sty))     (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/epstopdf.sty     (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/grfext.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifluatex.sty)     (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))     (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)))     (./psfig.sty)     (/usr/local/texlive/2009/texmf-dist/tex/latex/caption/caption.sty     (/usr/local/texlive/2009/texmf-dist/tex/latex/caption/caption3.sty))     (/usr/local/texlive/2009/texmf-dist/tex/latex/caption/subcaption.sty)     (./aastex_hack.sty) (./MinExample.aux (./Introduction.aux)     (./Chapter1.aux) (./Chapter2.aux) (./Chapter3.aux))     [1{/usr/local/texlive/2009/texmf-var/fonts/m     ap/pdftex/updmap/pdftex.map}]     (/usr/local/texlive/2009/texmf-dist/tex/latex/base/omscmr.fd) [1]     Underfull \hbox (badness 10000) in paragraph at lines 22--22          [2] (./MinExample.toc     (/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/umsb.fd) [3])     [4] (./MinExample.lot) [5] (./MinExample.lof          LaTeX Warning: Citation `[' on page vi undefined on input line 5.               LaTeX Warning: Citation `[' on page vi undefined on input line 5.               LaTeX Warning: Citation `[' on page vi undefined on input line 5.          ! Extra }, or forgotten \endgroup. <argument> ...ider it to be very     reliable.\relax }                                                        l.5 ...onsider it to be very reliable.\relax }}{2}                                                        ?      Here is my minimized preamble and master document:               \documentclass[11pt,lot,lof]{duthesis} \usepackage[pdftex]{graphicx}          \usepackage{natbib} \usepackage{amssymb} \usepackage{epstopdf}     \usepackage{psfig} \usepackage{caption} \usepackage{subcaption}     \usepackage{deluxetable} \usepackage{aastex_hack} \def\mic{$\mu$m$\;$}          \includeonly{Chapter3} \title{Theis title} \submitted{2013}     \author{David Tennant} \advisor{The Master} \abstract {abstract}          \begin{document}          \include{Introduction} \include{Chapter1} \include{Chapter2}     \include{Chapter3}          \end{document}      Then in `Chapter3.tex`:               \chapter{Interferometric Study of Wolf-Rayet stars}          \begin{figure}[htb]          \centering          \includegraphics[scale=0.8]{Fig1}          \caption{Our attempts to reproduce the wideband data with a binary     orbit for WR 137. Both binary models adopted the values of     \citet{2005MNRAS.360..141L}; the missing angular parameter ($\Omega$ ,     longitude of the Ascending Node) was varied to find the best fit to     the Position Angle and separation derived from interferometric     measurements at a particular phase in two cases.  The resulting models     are shown for \citealt{2010RMxAC..38...54R}, yielding     $\Omega=112\degr$, and the value that best agrees with our data,     $\Omega=137\degr$.  Both agree with the separations predicted by     \citealt{2005MNRAS.360..141L} to within their published error bars.     The data point from PTI's NW baseline was taken in poor weather     conditions, so we do not consider it to be very reliable.}     \label{wr137wb}          \end{figure}      Fig1 is an eps file, which worked in the document I submitted for publication, so I don't think there's a problem with it. The `duthesis` class file looks like this:               \NeedsTeXFormat{LaTeX2e} \ProvidesClass{duthesis}              [2008/01/04 v1.0 University of Denver Electronic Thesis class]          \RequirePackage{setspace}          \newcounter{subyear}          \setcounter{subyear}{\number\year}          \def\submitted#1{\gdef\@submitted{#1}}     \def\advisor#1{\gdef\@advisor{#1}}          \def\@submittedyear{\ifnum\month>10 \stepcounter{subyear}\thesubyear       \else\thesubyear\fi}          \def\@submittedmonth{\ifnum\month>10 January\else\ifnum\month>5     November   \else June\fi\fi}          \long\def\@abstract{\@latex@error{No \noexpand\abstract given}\@ehc}          \newcommand*{\frontmatter}{   \pagenumbering{roman}  }          \newcommand*{\mainmatter}{\pagenumbering{arabic}}     \newcommand*{\makelot}{} \newcommand*{\makelof}{}     \newcommand*{\makelos}{}          \newcommand*{\begincmd}{ \doublespacing \maketitlepage \frontmatter     \makecopyrightpage \makeabstract \makededication     \clearpage\makeacknowledgements %\makeapprovalpage     \begin{spacing}{1.0} \tableofcontents \clearpage \makelot \clearpage     \makelof \clearpage \makelos \end{spacing}          \mainmatter } %bibliography and appendix goes in your file     \newcommand*{\DUendcmd}{ \newpage     \addcontentsline{toc}{chapter}{Bibliography} \bibliographystyle{apj}     \bibliography{bibdatabase} %\clearpage     %\addcontentsline{toc}{chapter}{Appendix} %\section*{\Huge{Appendix     1}} \input{Appendices} } \AtBeginDocument{\begincmd}     \AtEndDocument{\DUendcmd}               \def\@submitted{\@submittedmonth~\@submittedyear}     \def\@division{Natural Sciences and Mathematics} \def\@dept{Physics     and Astronomy} \def\@deptpref{Department of }     \def\departmentprefix#1{\gdef\@deptpref{#1}}     \def\department#1{\gdef\@dept{#1}}     \long\def\acknowledgements#1{\gdef\@acknowledgements{#1}}     \def\dedication#1{\gdef\@dedication{#1}}          \newcommand{\maketitlepage}{{   \thispagestyle{empty}   \sc       \vspace*{0in}   \begin{center}   \@title   \end{center}       \vspace{.3in}   \begin{center}         A Dissertation \\         Presented to the Faculty \\         of \@division \\         University of Denver   \end{center}   \vspace{.3in}   \begin{center}   in Partial fulfillment  \\         of the Requirements for the Degree \\         of Doctor of Philosophy   \end{center}   \vspace{.3in}   \begin{center}               by \\         \@author \\         \@submitted \\         Advisor: \@advisor   \end{center}   \clearpage   }}          \newcommand{\makeabstracttitlepage}{{   \thispagestyle{empty}   \sc       \vspace*{0in}   \begin{center}         \LARGE \@title   \end{center}   \vspace{.3in}   \begin{center}         An Abstract of a Dissertation \\         Presented to the Faculty \\         of \@division \\         University of Denver   \end{center}   \vspace{.3in}   \begin{center}   in Partial fullfillment  \\         of the Requirements for the Degree \\         of Doctor of Philosophy   \end{center}   \vspace{.3in}   \begin{center}               by \\         \@author \\         \@submitted \\         Advisor: \@advisor   \end{center}   \clearpage   }}          \newcommand{\makeapprovalpage}{{   \thispagestyle{empty}       \vspace*{0in}   \begin{center}   \sc{   \large{         Graduate Studies \\         At \\         The University of Denver}}   \end{center}   \vspace{.3in}   \small   \noindent Upon the recommendation of the chairperson of the \@deptpref     \@dept { }this dissertation is   hereby accepted in partial     fulfillment of the requirements for the degree of \\         \begin{center}  Doctor of Philosophy   \end{center}   \vspace{.3in}   \flushright   \begin{minipage}{2.5in}   \begin{center}     ~\hrulefill \\ \vspace{-.065in}   Professor in charge of dissertation     \\ ABC\\   \vspace{1in}         ~\hrulefill \\   Dissertation Committee Members \\   ~\hrulefill \\   X\\   Y\\   Z\\   \vspace{1in} ~\hrulefill \\ \vspace{-.06in}       Vice Provost for Graduate Studies \\   \end{center}    \end{minipage}      \vspace{.5in}   \flushleft   \begin{minipage}{1.5in}   \begin{center}     ~\hrulefill \\ \vspace{-.06in}   Date \\   \end{center}       \end{minipage}   \clearpage   }}          \newcommand*{\makecopyrightpage}{   \thispagestyle{empty}       \vspace*{0in}   \begin{center}         \copyright\ Copyright by \@author, \number\year. \\         All Rights Reserved   \end{center}   \clearpage   } \def\makededication{   \ifx\@dedication\undefined   \else         \vspace*{3in}    \begin{center}         \@dedication \end{center}              \clearpage   \fi   }      \newcommand*{\quotationpage}{   \thispagestyle{empty}   \vspace*{0in} \begin{flushright}     {\Large{Endings...}}  \end{flushright}    \end{flushright}     \begin{flushright} Quotation \end{flushright}   \clearpage   }     \newcommand*{\makeabstract}{   \newpage   %\thispagestyle{empty}       \setstretch{1.0}         \noindent Author: \@author\newline   Title:  \@title\newline   Advisor: \@advisor \newline   Degree Date: \@submitted\newline            \begin{center}                \Large \textbf{Abstract}         \end{center}         \setstretch{1.6434}         \@abstract   \clearpage   }               \def\makeacknowledgements{   \ifx\@acknowledgements\undefined   \else         \addcontentsline{toc}{section}{Acknowledgements}         \begin{center}           \Large \textbf{Acknowledgements}         \end{center}         \@acknowledgements         \clearpage   \fi   }          \DeclareOption{lot}{\renewcommand*{\makelot}{       \addcontentsline{toc}{section}{List of Tables}\listoftables}}       \DeclareOption{lof}{\renewcommand*{\makelof}{       \addcontentsline{toc}{section}{List of Figures}\listoffigures}}     \DeclareOption{los}{   \renewcommand*{\makelos}{         \RequirePackage{losymbol}         \section*{List of Symbols\@mkboth {LIST OF SYMBOLS}{LIST OF SYMBOLS}}         \@starttoc{los}         \addcontentsline{toc}{section}{List of Symbols}   } }          \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}     \ProcessOptions          \LoadClass[11pt]{report} \setlength{\rightmargin}{1.25in}     \setlength{\leftmargin}{1.00in} \setlength{\oddsidemargin}{0.75in}     \setlength{\evensidemargin}{0.75in} %\setlength{\topmargin}{1.25in}     %\setlength{\bottommargin}{1.25in} %\setlength{\oddsidemargin}{.5in}       %{.4375in} %\setlength{\evensidemargin}{.5in} %{.4375in}     \setlength{\topmargin}{-.25in}  %{-.5625in}     \setlength{\textheight}{8.25 in} \setlength{\textwidth}{5.5in}          \long\def\abstract#1{\gdef\@abstract{#1}}                    \endinput          %%  %% End of file `duthesis.cls'.      and the aastex_hack.sty is just a list of symbols and abbreviations               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %% Bibliography stuff from aastex.cls     %% lines 1551-1648     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \let\jnl@style=\rmfamily      \def\ref@jnl#1{{\jnl@style#1}}%      \newcommand\aj{\ref@jnl{AJ}}% Astronomical Journal      \newcommand\araa{\ref@jnl{ARA\&A}}% Annual Review of Astron and Astrophys      \newcommand\apj{\ref@jnl{ApJ}}% Astrophysical Journal      \newcommand\apjl{\ref@jnl{ApJ}}% Astrophysical Journal, Letters      \newcommand\apjs{\ref@jnl{ApJS}}% Astrophysical Journal, Supplement      \newcommand\ao{\ref@jnl{Appl.~Opt.}}% Applied Optics      \newcommand\apss{\ref@jnl{Ap\&SS}}% Astrophysics and Space Science      \newcommand\aap{\ref@jnl{A\&A}}% Astronomy and Astrophysics      \newcommand\aapr{\ref@jnl{A\&A~Rev.}}% Astronomy and Astrophysics Reviews      \newcommand\aaps{\ref@jnl{A\&AS}}% Astronomy and Astrophysics, Supplement      \newcommand\azh{\ref@jnl{AZh}}% Astronomicheskii Zhurnal      \newcommand\baas{\ref@jnl{BAAS}}% Bulletin of the AAS      \newcommand\jrasc{\ref@jnl{JRASC}}% Journal of the RAS of Canada      \newcommand\memras{\ref@jnl{MmRAS}}% Memoirs of the RAS      \newcommand\mnras{\ref@jnl{MNRAS}}% Monthly Notices of the RAS      \newcommand\pra{\ref@jnl{Phys.~Rev.~A}}% Physical Review A: General Physics      \newcommand\prb{\ref@jnl{Phys.~Rev.~B}}% Physical Review B: Solid State      \newcommand\prc{\ref@jnl{Phys.~Rev.~C}}% Physical Review C      \newcommand\prd{\ref@jnl{Phys.~Rev.~D}}% Physical Review D      \newcommand\pre{\ref@jnl{Phys.~Rev.~E}}% Physical Review E      \newcommand\prl{\ref@jnl{Phys.~Rev.~Lett.}}% Physical Review Letters      \newcommand\pasp{\ref@jnl{PASP}}% Publications of the ASP      \newcommand\pasj{\ref@jnl{PASJ}}% Publications of the ASJ      \newcommand\qjras{\ref@jnl{QJRAS}}% Quarterly Journal of the RAS      \newcommand\skytel{\ref@jnl{S\&T}}% Sky and Telescope      \newcommand\solphys{\ref@jnl{Sol.~Phys.}}% Solar Physics      \newcommand\sovast{\ref@jnl{Soviet~Ast.}}% Soviet Astronomy      \newcommand\ssr{\ref@jnl{Space~Sci.~Rev.}}%          % Space Science Reviews      \newcommand\zap{\ref@jnl{ZAp}}% Zeitschrift fuer Astrophysik      \newcommand\nat{\ref@jnl{Nature}}% Nature      \newcommand\iaucirc{\ref@jnl{IAU~Circ.}}% IAU Cirulars      \newcommand\aplett{\ref@jnl{Astrophys.~Lett.}}% Astrophysics Letters      \newcommand\apspr{\ref@jnl{Astrophys.~Space~Phys.~Res.}}% Astrophysics Space Physics Research      \newcommand\bain{\ref@jnl{Bull.~Astron.~Inst.~Netherlands}}% Bul. Astr. Inst. of the Netherlands      \newcommand\fcp{\ref@jnl{Fund.~Cosmic~Phys.}}% Fundamental Cosmic Physics      \newcommand\gca{\ref@jnl{Geochim.~Cosmochim.~Acta}}% Geochimica Cosmochimica Acta      \newcommand\grl{\ref@jnl{Geophys.~Res.~Lett.}}% Geophysics Research Letters      \newcommand\jcp{\ref@jnl{J.~Chem.~Phys.}}% Journal of Chemical Physics      \newcommand\jgr{\ref@jnl{J.~Geophys.~Res.}}% Journal of Geophysics Research      \newcommand\jqsrt{\ref@jnl{J.~Quant.~Spec.~Radiat.~Transf.}}% Journal of Quantitiative Spectroscopy and Radiative Trasfer      \newcommand\memsai{\ref@jnl{Mem.~Soc.~Astron.~Italiana}}% Mem. Societa Astronomica Italiana      \newcommand\nphysa{\ref@jnl{Nucl.~Phys.~A}}% Nuclear Physics A      \newcommand\physrep{\ref@jnl{Phys.~Rep.}}% Physics Reports      \newcommand\physscr{\ref@jnl{Phys.~Scr}}% Physica Scripta      \newcommand\planss{\ref@jnl{Planet.~Space~Sci.}}% Planetary Space Science      \newcommand\procspie{\ref@jnl{Proc.~SPIE}}% Proceedings of the SPIE      \newcommand\pasa{\ref@jnl{PASA}} % Publications of the Astron. Soc. of Australia     \newcommand\nar{\ref@jnl{New A Rev.}} % New Astronomy Review               \let\astap=\aap      \let\apjlett=\apjl      \let\apjsupp=\apjs      \let\applopt=\ao           %%%%%%%%%%%%%%%%%%%%%%%%%%     %% Symbols from aastex.cls     %%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%     %% lines 1649-1771     %%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand\phn{\phantom{0}}%      \newcommand\phd{\phantom{.}}%      \newcommand\phs{\phantom{$-$}}%      \newcommand\phm[1]{\phantom{#1}}%      \let\la=\lesssim            % For Springer A&A compliance...      \let\ga=\gtrsim      %\newcommand\sq{\mbox{\rlap{$\sqcap$}$\sqcup$}}%      \newcommand\arcdeg{\mbox{$^\circ$}}%      %\newcommand\arcmin{\mbox{$^\prime$}}%      %\newcommand\arcsec{\mbox{$^{\prime\prime}$}}%      \newcommand\fd{\mbox{$.\!\!^{\mathrm d}$}}%      \newcommand\fh{\mbox{$.\!\!^{\mathrm h}$}}%      \newcommand\fm{\mbox{$.\!\!^{\mathrm m}$}}%      \newcommand\fs{\mbox{$.\!\!^{\mathrm s}$}}%      \newcommand\fdg{\mbox{$.\!\!^\circ$}}%      \newcommand\farcm@mss{\mbox{$.\mkern-4mu^\prime$}}%      \let\farcm\farcm@mss      \newcommand\farcs@mss{\mbox{$.\!\!^{\prime\prime}$}}%      \let\farcs\farcs@mss      \newcommand\fp{\mbox{$.\!\!^{\scriptscriptstyle\mathrm p}$}}%      \newcommand\micron{\mbox{$\mu$m}}%      \def\farcm@apj{%       \mbox{.\kern -0.7ex\raisebox{.9ex}{\scriptsize$\prime$}}%      }%      \def\farcs@apj{%       \mbox{%        \kern  0.13ex.%        \kern -0.95ex\raisebox{.9ex}{\scriptsize$\prime\prime$}%        \kern -0.1ex%       }%      }%      \newcommand\case[2]{\mbox{$\frac{#1}{#2}$}}%      \newcommand\slantfrac{\case}%      \newcommand\onehalf{\slantfrac{1}{2}}%      \newcommand\onethird{\slantfrac{1}{3}}%      \newcommand\twothirds{\slantfrac{2}{3}}%      \newcommand\onequarter{\slantfrac{1}{4}}%      \newcommand\threequarters{\slantfrac{3}{4}}%      \newcommand\ubvr{\mbox{$U\!BV\!R$}}%% UBVR system      \newcommand\ub{\mbox{$U\!-\!B$}}%   % U-B      \newcommand\bv{\mbox{$B\!-\!V$}}%   % B-V      \newcommand\vr{\mbox{$V\!-\!R$}}%   % V-R      \newcommand\ur{\mbox{$U\!-\!R$}}%   % U-R      \newcommand\ion[2]{#1$\;${\small\rmfamily\@Roman{#2}}\relax}%      %%%%\newcommand\nodata{ ~$\cdots$~ }%      \newcommand\diameter{\ooalign{\hfil/\hfil\crcr\mathhexbox20D}}%      \newcommand\degr{\arcdeg}%      \newcommand\Sun{\sun}%      \newcommand\Sol{\sun}%      \newcommand\sun{\odot}%      \newcommand\Mercury{\astro{\char1}}% Mercury symbol, "1"      \newcommand\Venus{\astro{\char2}}% Venus symbol, "2"      \newcommand\Earth{\earth}%      \newcommand\Terra{\earth}%      \newcommand\earth{\oplus}%      \newcommand\Mars{\astro{\char4}}% Mars symbol, "4"      \newcommand\Jupiter{\astro{\char5}}% Jupiter symbol, "5"      \newcommand\Saturn{\astro{\char6}}% Saturn symbol, "6"      \newcommand\Uranus{\astro{\char7}}% Uranus symbol, "7"      \newcommand\Neptune{\astro{\char8}}% Neptune symbol, "8"      \newcommand\Pluto{\astro{\char9}}% Pluo symbol, "9"      \newcommand\Moon{\astro{\char10}}% Moon symbol, "M"      \newcommand\Luna{\Moon}%      \newcommand\Aries{\astro{\char11}}%      \newcommand\VEq{\Aries}% vernal equinox (Aries)      \newcommand\Taurus{\astro{\char12}}%      \newcommand\Gemini{\astro{\char13}}%      \newcommand\Cancer{\astro{\char14}}%      \newcommand\Leo{\astro{\char15}}%      \newcommand\Virgo{\astro{\char16}}%      \newcommand\Libra{\astro{\char17}}%      \newcommand\AEq{\Libra}% autumnal equinox (Libra)      \newcommand\Scorpius{\astro{\char18}}%      \newcommand\Sagittarius{\astro{\char19}}%      \newcommand\Capricornus{\astro{\char20}}%      \newcommand\Aquarius{\astro{\char21}}%      \newcommand\Pisces{\astro{\char22}}%      \def\load@astro{%       \dimen@=1\aas@ptsize\p@       \font\astro@font=Astrosym at\dimen@      }%      \def\astro#1{\leavevmode\hbox{\astro@font#1}}%      \def\astro@font{%       \ClassWarning{aastex}{%        Please use class option `astro', since you are using the astro font.%       }%      }%      \newcommand\sbond{\chem@bnd{\@sbnd}}%      \newcommand\dbond{\chem@bnd{\@dbnd}}%      \newcommand\tbond{\chem@bnd{\@tbnd}}%      \def\chem@bnd#1{%       {%        \kern.1em\relax        \setbox\z@\hbox{M}%        \dimen@ii.8em\relax        \p@=.1em\relax        \dimen@.5\ht\z@\dimen@i-\dimen@        \advance\dimen@1.5\p@\advance\dimen@i-1.0\p@        #1%        \kern.1em\relax        }%       }%      \def\@sbnd{%       \advance\dimen@-1.5\p@\advance\dimen@i1.5\p@       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       }%      \def\@dbnd{%       \advance\dimen@-0.5\p@\advance\dimen@i0.5\p@       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       \advance\dimen@-1.5\p@\advance\dimen@i1.5\p@       \hskip-\dimen@ii       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       }%      \def\@tbnd{%       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       \advance\dimen@-1.5\p@\advance\dimen@i1.5\p@       \hskip-\dimen@ii       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       \advance\dimen@-1.5\p@\advance\dimen@i1.5\p@       \hskip-\dimen@ii       \vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak       }%       Sorry if this is too much information, this is my first post and I want to be thorough.


> **Possible Duplicate:**   >  Adequate hyphenation of words already containing a hyphen How to change hyphenation of a particular word? specifically I don't like how it is line breaking position                      ...po-      sition...      I would like to have it                    ...pos-     ition...      is there a way to change this? PS You may or may not agree with the hyphenation of position


title: video embedding in beamer

text: I know this was asked before, and the solution was `y4pdf`, however my question is: do we just compile our latex file with pdfLaTeX or how then? Because the question was asked over a year ago, are pdf viewers up to speed on this?


title: Formatting an equation

text: \begin{align} \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2     = \frac{1}{2} \left(1-\epsilon ^2\right) \left(      -\frac{S \epsilon \sin\tau }{\sqrt{\lambda }}      -\frac{\text{g2} S^2 \epsilon ^2\sin2\tau }{3 \lambda }      +\epsilon ^3 \left(-\frac{\left(-\frac{1}{54} \text{g2}^2 S        \left(32+19 S^2\right) \lambda +Z \left(       \frac{35 \text{g2}^4}{27}      -\frac{7 \text{g2} \text{g4}}{4}+\frac{5 \text{g5}}{8}      -\frac{\text{g2}^2 \lambda }{6}       +\frac{\lambda ^2}{24}\right)\right) \sin\tau }{\lambda ^{5/2}}      -\frac{S^3 \left(4 \text{g2}^2-3 \lambda \right) \sin3\tau }            {24 \lambda ^{3/2}}\right)\right)^2      \end{align}      I want to split the equation in my latex file, I have used `&` `\qquad` but it is not working because of bracket. What else I can do? ![enter image description here](http://i.stack.imgur.com/bRoRH.jpg)


title: How to use StyleSlide at Simpleslides ? (ConTeXt)

text: I am very interesting use Simpleslides and My MWE like this :               \usemodule[visualcounter]     \usemodule[simpleslides][style=Swoosh]     \setupTitle       [ title={Simple Slides?},        author={Hirwanto},          date={6 Januari 2013},       ]          \starttext     \placeTitle          \SlideTitle {The first slide}     Write whatever you want.          \SlideTitle {The second slide}     Continue writing.          \stoptext      But I get error message like this error style simpleslides . As a comparison, i try other style slide like this :               \usemodule[visualcounter]     \usemodule[simpleslides][style=BigNumber]     \setupTitle       [ title={Simple Slides?},        author={Hirwanto},          date={6 Januari 2013},       ]          \starttext     \placeTitle          \SlideTitle {The first slide}     Write whatever you want.          \SlideTitle {The second slide}     Continue writing.          \stoptext      And The Result : ![Result BigNumber Style](http://i.stack.imgur.com/iKWHr.png) **Any Requirement use StyleSlide and How to use StyleSlide at Simplesldes ?**


title: Clarification about how TeX/LaTeX decides it's fully read in a number

text: I started off a bit confused about how `\romannumeral` works. Then I tried several experiments testing various ways of incorportating numbers into LaTeX and got even more confused. The following table summarizes some of my experimenting.               \documentclass{article}     \newcounter{mycounter}     \setcounter{mycounter}{8}     \def\mynumber{8}     \begin{document}          \begin{tabular}{cll}     behavior    & Code                                                   & reults in:                                       \\\hline     as expected & \verb!\ifnum20<\mynumber 2 small\else large\fi!        & \ifnum20<\mynumber 2 small\else large\fi         \\     as expected & \verb!\romannumeral82!                                 & \romannumeral82                                  \\     as expected & \verb!\romannumeral\mynumber 2!                        & \romannumeral\mynumber 2                         \\     as expected & \verb!\ifnum20<\number\mynumber2 small \else large\fi! & \ifnum20<\number\mynumber2 small \else large\fi \\     unexpected  & \verb!\romannumeral\value{mycounter}2!                 & \romannumeral\value{mycounter}2                  \\     unexpected  & \verb!\ifnum1<\value{mycounter}2 small\else large\fi!  & \ifnum1<\value{mycounter}2 small\else large\fi   \\     unexpected  & \verb!\ifnum20<\value{mycounter}2 small\else large\fi! & \ifnum20<\value{mycounter}2 small\else large\fi  \\     unexpected  & \verb!\ifnum100<\number`Q2 small \else large\fi!       & \ifnum100<\number`Q2 small \else large\fi        \\     unexpected  & \verb!\ifnum100<`Q2 small \else large\fi!              & \ifnum100<`Q2 small \else large   \fi            \\     \end{tabular}          \end{document}      ![enter image description here](http://i.stack.imgur.com/jDAdc.png) Could someone explain how it is that in the bottom six examples `2` is not read in as part of the number testing evaluated or tested?


title: Handling margins and indent in itemize

text: I have looked around the site for a while and haven't found a specific answer about this particular problem: I am typing up a paper and was asked to separate different sections with headings. I would like to use `itemize` to do so, but have had trouble with formatting. I want the text to align with the rest of the document, so I found I should use the `enumitem` package so that I can adjust `leftmargin`. Here is an example of what I have now:               \documentclass[12pt]{article}     \usepackage{lipsum, enumitem}          \begin{document}          \lipsum[1]          \begin{itemize}[leftmargin=0cm]     \item[I.] First Section          \lipsum[1]          \lipsum[2]          \item[II.] Second Section          \quad \quad \lipsum[3]          \end{itemize}          \end{document}      This is the exact format I want except I noticed that the paragraphs are no longer indented. I tried using `\indent`, but to no avail. For now, I am using `\quad \quad`, which is neither the same as an indent nor good markup, I'm sure. Do any of you know a better way to approach this?


title: LOF: Formatting Figurenames and adding Column Names

text: Here is the specific format I have to apply to the LOF: It should be Basically 3 aligned columns that contain: page number - figure number - the figure name (in this very order, like a tabular). And I need to display the names of the columns. * * * # List of Figures **Page Figure# Figure name** 1 1 thename_of_figure1 8 2 thename_of_figure2 that does not fit on a single line 15 3 thename_of_figure3 16 4 thename_of_figure4 * * * Currently, I have the following `\titlecontents` configuration (I have struggled to reach this alignement of the 3 columns: Hopefuly it was the correct way to do it!=)               \titlecontents{figure}     [0em]     {}     {\thecontentspage{\ifthenelse{\thecontentspage<10}{\hspace*{6ex}}{\hspace*{5ex}}}%     \thecontentslabel{\ifthenelse{\thecontentslabel<10}{\hspace*{6ex}}{\hspace*{5ex}}}}%     {}     {}      which display the following : * * * # List of Figures 1 1 thename_of_figure1 8 2 thename_of_figure2 that does not fit on a single line 15 3 thename_of_figure3 16 4 thename_of_figure4 * * * Now, I need help for...   1. adding the **Page Figure# Figure name** headers, and   2. aligning the rest of the title that does not fit on the line, so that it is placed just below the very first letter of the title.


title: What is the simplest way to draw this triangle exactly?

text: I want to see how we can exactly construct the following diagram as simple as possible. It means that the manual calculation should be avoided. ![enter image description here](http://i.stack.imgur.com/AHyLS.png) Note that the angle marks attached to angles represent the measure of the angles are exactly equal. Can you do it with either PSTricks, TikZ, Asymptote, Metapost, etc? I am more interested in compass-straight-edge method that we probably learnt at school. ## MWE The following is my MWE (just to show my effort).               \documentclass[pstricks,border=15pt]{standalone}     \usepackage{pst-eucl}     \begin{document}     \begin{pspicture}[showgrid=false](10,8)         \pstGeonode[PosAngle=-90](0,0){A}(6,0){B}         \pstInterCC[RadiusA=\pstDistVal{8},RadiusB=\pstDistVal{7}]{A}{}{B}{}{C}{D}         \pspolygon(A)(B)(C)         \pstMarkAngle{A}{C}{B}{}     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/BX9nW.png) The remaining is left unknown. ## Edit 1: Thanks for answering. As I have other thing to do right now, I have not checked every single line of each new answer whether or not I understand it. Please be patient and probably I will switch the accepted answer to the best one. ## Edit 2: It will be much easier if you provide us with the code using `beamer` to show the procedure step by step (one step per slide). What do you think? I think TikZ users have no problem with it as `beamer` and `tikz` are tightly coupled.


title: Curved Paths as Callouts

text: I often want to add what I call "callout arrows" to draw attention to some part of a technical graphic, such as the two curved paths with arrows below: ![enter image description here](http://i.stack.imgur.com/RTMXm.png) Although I have used TikZ only a few times, my question is _not_ **"will someone do this for me?"** but rather, **"could you outline to me the philosophy or approach you take?"** to adding a curved path with an arrow to a technical graphic, which may be placed in a variety of positions and/or take on a variety of lengths depending on the particular task at hand. Right now, I am playing around with using `in` and `out` commands, and doing this by placing a path through particular coordinates, and manually adjusting the angles in and out, but the downside is that it seems every new callout I want is a brand new problem. So I am mainly wondering what approaches others would use for this.


title: Separating caption of first figure from top of second figure

text: I am setting two TikZ subfigures on top of each other by setting `1\textwidth` for both subfigures. Now, the caption of the first figure is really close to the top of the second figure. Is there any way to put in some space between them?               \begin{figure}          \begin{subfigure}{1\textwidth}     \centering     \begin{tikzpicture}[scale=1]       ...     \end{tikzpicture}     \caption{...}      \end{subfigure}          \begin{subfigure}{1\textwidth}     \centering     \begin{tikzpicture}[scale=1]       ...     \end{tikzpicture}     \caption{...}      \end{subfigure}          \caption{...}             \label{...}          \end{figure}


title: Using \Letter symbol in ifsym package

text: Here is what I did:   1. I downloaded `ifsym` package from MiKTeX Package Manager. (MPM)   2. I added the line to my .tex file:              \usepackage{ifsym}        3. I tried typing `\Letter` in the document. but it doesn't work. The `\Letter` is a symbol in `ifsym` package if I know correctly, which looks like an envelope. Do I miss something?


title: Overlay of blocks in Beamer

text: I have several `blocks` in a slide:               \begin{block}{block 1}       block 1     \end{block}     \begin{block}{block 2}       block 2     \end{block}     \begin{block}{block 2}       block 2     \end{block}      Does anyone know how to overlay them so as to show them block by block by left-clicking mouse?


title: Making table cells independent of one another

text: I'm making a table of molecule structures and some information about them. A minimum working example looks like this:               \documentclass{article}     \usepackage[version=3]{mhchem}     \usepackage{chemfig}     \begin{document}            \begin{tabular}{|c|c|p{2.5cm}|}         \hline         Compound & Structure & Hazard Protection \\ \hline         Cyclopentadiene & \chemfig{*5(-=-=-)} & Irritant: Avoid skin contact, ingestion, inhalation, use under hood. Flammable: avoid sources of ignition \\ \hline       \end{tabular}     \end{document}      Which looks like this (Dots added to mark area of interest): ![with molecule](http://i.stack.imgur.com/hokin.png) I am wondering how to remove the space (Marked with red dots) on the non- structure columns created by the structure column. Removing the structure will do this, resulting in: ![without molecule](http://i.stack.imgur.com/rf7Tg.png) But that of course results in me not having the molecule. Is there a way that I make the cells independent of one another so they are always aligned to their top most boarder regardless of if a larger object exists on their row?


title: How to add numbering to author-year bibliography / how to modify .bst style

text: I would like to to get the Bibliography list in the form of: > [1] Author. (Year). Title. Journal Volume: PageFrom-PageTo I think it might be sufficient to slightly modify (if such a style already exist, please share a link) e.g. the style `model5-names.bst` (can be found here) to add numbers to the listing.


title: Strange interaction between amsmath and setspace

text: Compiling the MWE below, you will observe in the output the following phenomenon (you may have to zoom in):   * Comment `amsmath` out. Then, the spacing beteen lines is such that the subindex of the first line is not too close to the superindex of the second line, **whatever the settings of** `setstretch`.    * Now, load `amsmath`. Then, for `\setstretch{1.0}` and `\setstretch{1.05}` line spacing is again automatically adjusted so as to ensure that subindices of the first line do not get too close to superindices of the second line. **BUT** with `\setstretch{1.15}` the subindex of the first line almost overlaps the superindex of the second line. Hope it's clear what I mean. * * *               \documentclass{article}     \usepackage{setspace}\setstretch{1.0}      %\usepackage{setspace}\setstretch{1.05}     \usepackage{setspace}\setstretch{1.15}     %\usepackage{amsmath}     \begin{document}     XXXXXXXXXXXX $\Omega^{(\alpha,N)}_{\textup{brannnnnnnn}}$ XXXXXXXXXXXXXXXXXXXXXXXXX          XXXXXXXXXXXX $\Omega^{(\alpha,N)}_{\textup{bran}}$ XXXXXXXXXXXXXXXXXXXXXXXXX     \end{document}       * * * Am I having hallucinations or is there a strange behaviour? PS: There are no such problems with the following code: * * *               \documentclass{article}     %\usepackage{setspace}\setstretch{1.0}     %\usepackage{setspace}\setstretch{1.05}     \usepackage{setspace}\setstretch{1.15}     \usepackage{amsmath}     \begin{document}     XXXXXXXXXXXX $\Omega^{(\alpha,N)}_{\textup{bran}}$ XXXXXXXXXXXXXXXXXXXXXXXXX          XXXXXXXXXXXX $\Omega^{N^{N^{N^N}}}_{\textup{bran}}$ XXXXXXXXXXXXXXXXXXXXXXXXX     \end{document}


title: \listings environment inside \marginnote?

text: Is it possible to use `\listings` or similar environment inside `\marginnote` or in margins in general?               \marginnote{         \begin{lstlisting}             test         \end{lstlisting}     }      If not, what would be a workaround if I wanted to simply put coding notes in margins?


title: Beautiful tables with TikZ

text: Tables generated by LaTeX are usually not good looking. The standard thickness of row and column separators and also the corners where the rules meet leave much to be desired. Are there any examples of beautiful tables using TikZ available?


title: Best way to index in spanish / xindy on windows? / makeidx and spanish accents

text: I am unluckily on a Windows machine and that seems currently tough to be changed. I want capital letters to appear before each block in the index. This is my current .ist file:               headings_flag 1     heading_prefix "\\textbf\{"     heading_suffix "\}"      By running this in the preamble:               \usepackage{imakeidx}     \makeindex      I get the following output: ![enter image description here](http://i.stack.imgur.com/XuXvW.png) **Things I don't like:** I would prefer the word "Símbolos" rather than "Symbols". I also would prefer words like "álgebra" to be in the A group (to this I might just resign to do something like `\index{algebra@álgebra}` but hopefully there is going to be a better way. I have seen the post here Sorting index entries with accented words for the case of portuguese. It uses `xindy` but I am not sure if it works on a Windows machine because I have tried for a long time to do what is stated in the post and I don't seem to get their results. When I type xindy directly on the command line I get an error saying that xindy is not a valid command. I would appreciate if someone can give a user-friendly explanation of how I can achieve to to this. Here is the essential part of the code I am using:               \documentclass{book}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}      \usepackage[spanish,mexico]{babel}     \usepackage{subfiles}     \usepackage{appendix}     \usepackage{makeidx}     \makeindex     % ----------     BibLaTex     ------------ %     \usepackage[style=american]{csquotes}     \usepackage[backend=bibtex, citestyle=numeric,bibstyle=authoryear,url=true,firstinits=true]{biblatex}     \usepackage{tocloft}     \renewcommand{\cftchapdotsep}{\cftdotsep}     \usepackage[nottoc,numbib]{tocbibind}     \DefineBibliographyStrings{spanish}{%       bibliography = {Referencias},     }     % ----------      Hyperref    ------------ %     \usepackage{hyperref}     \hypersetup{%         colorlinks=true,          citecolor=blue,         linkcolor=black,         urlcolor=black}      \addbibresource{ref.bib}     % ---------    Cuerpo del documento  -------------- %     \begin{document}     \maketitle     \frontmatter     \tableofcontents     \mainmatter     \appendix     \backmatter     % ------     Referencias  ---------- %     \printbibliography[heading=bibintoc]     % ------     Índice  ---------- %     \phantomsection     \printindex     \end{document}


title: Is there a "smoking gun" to distinguish between ConTeXt and plain TeX

text: I'm writing a tool to streamline some typesetting jobs, and I am having trouble distinguishing between plain Tex and ConTeXt. LaTeX is straightforward to recognise by the `\documentclass` command (or `\documentstyle` for old documents), however I am struggling to find a "smoking gun" to differentiate ConTeXt source from plain TeX source. It seems that the `\starttext . . . \stoptext` pair is common in ConTeXt, but not guaranteed. Is there something better, or a combination of things that are better? I understand that due to TeX's nature it is impossible write a filter to do this 100% accurately, but 90-95% accuracy will still be a great help.


title: How can I use plain TeX with TeXnicCenter or another IDE?

text: Currently I use TeCnicCenter and MiKTeX with LaTeX on a Windows machine. I am contemplating using plain TeX for certain purposes. I would like to know how to use TeXnicCenter with plain TeX. I like TeXnicCenter, but I can use another program if I have to. I really dislike the Windows command prompt. If I need to switch, I am not looking for just an editor, but an IDE like TeXnicCenter, if IDE is an appropriate term here. I want to be able to produce PDF files. I can think of no reason I would want to make Postscript or DVI files. I am a mathematician, not a computer person, so please over-explain if necessary. I do not enjoy TeX or LaTeX like many people do, but it is free and I think we all agree it produces better-looking output than anything else out there.


title: \citeyear{} omits trailing character for citations from same date

text: > **Bug in biblatex 2.2 or older** Well, I have this document:               \documentclass[11pt]{scrreprt}     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[style=authoryear-luh-ipw,natbib=true]{biblatex}     \usepackage[printonlyused]{acronym}     \bibliography{eva.bib}     \begin{document}     \citep{a}          \citep{b}          \citeyearpar{a}     \citeyearpar{b}     \end{document}      with A & B being published by the same author, in the same year. LaTeX produces: > (title a, 1980a) > > (title b, 1980b) > > (1980)(1980) I'd like to have the ordering character appended on the latter two year- citations. It's so simple, what am I missing?


title: span x columns in y multicol environment

text: Currently I'm using the `baposter` document class and one of my figures would take exactly 3/4 of the given poster block. So, pretty much, there's a box,               \headerbox{options}{         sketch goes here     }      and I want to fit a sketch like this ![enter image description here](http://i.stack.imgur.com/opS4B.jpg) into it. Numbers correspond to the text path. Please note that in both 1, 2, 3 there's might be figures, which I add simple doing `\includegraphics` and 5 is a huge figure (or set of figures going horizontally). I've tried to do something with `multicols` but didn't find a way to achieve this layout. As well, I've thought about using table for 1-5, but the `\multirow` and `\multicolumn` commands don't work with adjusting the height of the table. Is there a way to achieve this?


title: Bibliography aux file mismatch (.aux.bcf versus .bcf)

text: I have migrated from OS X/TeXShop to Linux/TeXMaker. Something in the configuration must be different, because my project doesn't build the bibliography any longer. I tried the sequence pdflatex > bibtex (biber) > pdflatex. My original setting was like this:               % NOTE: do not use backend=biber, this fucks up everything. ignore the uf8 warning,     % we do _not_ use utf8 characters in the .bib files, I don't know where that comes from.     \usepackage[natbib=true,citestyle=verbose-ibid,isbn=false,maxnames=3,bibstyle=authoryear,useprefix=true,citereset=chapter]{biblatex}      This worked on the Mac. On Linux, biblatex falls back to biber (I'm not sure it did on OS X), and biber finds the correct aux files, nevertheless the second pdflatex run doesn't pick up the output of biber, and I end up with an empty bibliography. If I _do add_ `backend=biber` to the above statement, then there are messed up aux files (and this is probably why I put the comment originally):               INFO - This is Biber 1.8 INFO - Logfile is 'main.aux.blg'          ERROR - Cannot find control file 'main.aux.bcf'! - did you pass the "backend=biber" option to BibLaTeX? INFO - ERRORS: 1      So what is wrong here?


title: italic correction in math mode

text: I use `txfonts` and `\texttt` in italics in math mode, but the letters' italic correction is not working: an italic/"TT" letter "d" adjacent to a closing parenthesis touches it. Here is minimal sample code:               \documentclass{article}     \usepackage{times}     \usepackage{txfonts}          \newcommand*{\halfthinspace}{\kern .08333em} % not sure whether I got this value right     \newcommand*{\shorthalfthinspace}{\kern .06em}     \newcommand*{\somefunction}[1]{\textit{F}(#1)}     \newcommand*{\ittt}[1]{\textit{\texttt{#1}}}          \begin{document}          \(\somefunction{\ittt{pd}}\) (what I get)          \(\somefunction{\ittt{pd}\shorthalfthinspace}\) (I want this)          \(\somefunction{\ittt{pd}\halfthinspace}\) (or this)          This is entity \ittt{pd}. (use of \verb|\ittt| within text; the spacing here is good)          \(\ittt{pd} \times \ittt{pd}\) (the space before the times symbol is minimally too thin)          \end{document}      To include additional space in the definition of `\somefunction` (`\newcommand*{\somefunction}[1]{\textit{F}(#1\shorthalfthinspace)}`) seems to be semantically the wrong approach. To include additional space in the definition of `\ittt` seems equally wrong, especially since I would occasionally like to use `\ittt` within text (see line 4 generated by my sample code) and don't want additional spacing before the sentence-final period. Finally, I may use `\ittt` in other contexts, such as around a `\times` operator (see line 5 generated by my sample code); the spacing doesn't only _look_ too thin, it _is_ too thin (easy to verify by turning the result by 180° in your viewer). What it the easiest way to get appropriate spacing in all situations? _Note: I don't know whether this is an italic correction issue or something to do with`\texttt` or the structure of my macros. Feel free to improve the title of my question accordingly._


title: How can I improve the look of an arrowhead at the end of a small-radius arc?

text: Arrow heads added to arches with small radius look ugly, they do not look symmetrical. Here is an example :                   \documentclass{article}         \usepackage{tikz}         \usetikzlibrary{arrows.meta}              \begin{document}         \begin{tikzpicture}[>=stealth]         \draw[->] (0,0) arc (00:290:.15cm);         \end{tikzpicture}         \end{document}      This gives an arrow like (screenshot of 24x magnification): ![enter image description here](http://i.stack.imgur.com/lwgQv.png) What I would like to have is something like: ![enter image description here](http://i.stack.imgur.com/WjeFL.png) Is it possible, how?


title: Defining commands to select different package fonts

text: I would like to have two different font styles in my document that are, unfortunately called by the same command. I would like to have `\mathscr{}` as called by the package `eucal` with the `mathscr` option. Additionally, it would be very helpful to have the `\mathscr{}` as called by the package `mathrsfs`. Is there a way to define commands at the beginning of my document so I only need to use one of these packages while have the font effect from the other package?