title: running texshop?

text: I just downlodaded MacTeX from website below for my Mac Osx 10.6.8: http://www.tug.org/mactex/2009/ I am trying to run some older `.tex` files and they won't run, the message is: > Syntax error Do you know what is happening? Here is copy of a simple `.tex` file I am trying to run:               \documentclass[preprint,12pt]{report}          \usepackage{graphicx}     \usepackage{amssymb}          \begin{document}     \begin{center} {\bf  Abstract} \end{center}          In the present work, we define brain to brain communication as the associated information transfer in non-local wave function collapse.  We analyze non-linear Schrodinger type equations of Benney-Roskes and Davey-Stewartson in non-linear optical systems, and ...     \end{document}


title: Set the highlight style of a link to "none" instead of "invert"

text: I've read all documentation possible regarding **hyperref** but I still don't know how to **set the highlight style of a link to "none" instead of "invert"** (which is the default by the way). Is there any other package that could deal with this, or is there any workaround to solve this? Below is the Adobe Acrobat menu for hyperlinking something. As you can see the default for Highlight style is "invert". With hyperref is easy to change all other properties but how about highlight style? Sometimes is awkward to click on an image that is linked since acrobat (for instance) displays it with the colours inverted when clicking (when the mouse button is down)... Can someone help me out? Thanks a lot! Example file here. If you download the pdf file (because browsers display pdfs in a simpler manner) and open it in adobe reader and if you click (and leave the mouse button down) on a link you'l see that the colors will become inverted. If set the highlight style to none this will not happen. How to do it is the million dollar question? :) ![Adobe Acrobat menu for links](http://i.stack.imgur.com/t2dgi.png)


title: PGFPlots: Make tick labels tiny

text: I want to make the tick labels tiny in size. Additionally, I need to hide the z-axis. Finally, I would like to suppress the y-axis tick labels. **Update** : Red was able to help with the tick label size, as well as correctly hiding the z-axis. Lastly, the ticks on the y-axis were suppressed. The complete solution is included in my code.   1. Leave the z-axis in and the labels are too big. See the left image.   2. Remove the z-axis and **all** labels go away, which is not what I need either. Also, two strange, short lines appear toward the top of the graph when I remove the z-axis. See the right image. ![enter image description here](http://i.stack.imgur.com/t6biJ.png)![enter image description here](http://i.stack.imgur.com/nyfQ3.png) Here is an image of the correct solution. (Note: Made irrelevant adjustments to the square size.) ![enter image description here](http://i.imgur.com/zTQaw2D.png) MWE:               \documentclass{memoir}     \usepackage{pgfplots}          \begin{document}          \pgfplotsset{         compat=1.8, % Allows drawing of circles.         standard/.style={             axis line style=help lines,             axis x line=center,             axis y line=center,             axis z line=center,             xlabel={$x$},             ylabel={$y$},             zlabel={$z$},         every axis/.append style={font=\tiny},       }          {\centering     \begin{tikzpicture}[scale=1]          \begin{axis}[         standard,         hide z axis,         xmin=-1.25, xmax=1.25,         ymin=-1.25, ymax=1.25,         zmin=0, zmax=2.5,         xtick={-1,1},         xticklabels={$-2r$,$2r$},         ytick=\empty,     ]     % Draw Square         \draw[green]    (axis cs: -0.86602540378,0.5,0) --                     (axis cs: -0.86602540378,-0.5,0) --                     (axis cs: -0.86602540378,-0.5,1) --                     (axis cs: -0.86602540378,0.5,1) --                     (axis cs: -0.86602540378,0.5,0);     \draw[blue] (axis cs: 0,0,0)         ellipse [         x radius=1, y radius=1];          \end{axis}     \end{tikzpicture}     \vspace{0.5 cm}     }          \end{document}


title: How to set exact radius for a node?

text: I have a bunch of nodes and would like to size them so that their areas represent some numbers I have (so that if I have two nodes with corresponding values 1 and 2, then the second node's area should be double the first's). I'm trying to achieve this using some combination of `minimum size` and `inner sep`, but I've noticed that if I set `minimum size` to `0pt`, then a node with `inner sep = 2pt` will not be double the area of a node with `inner sep = 1pt`.


title: Why doesn't “\vphantom” work in section titles?

text: For reasons of my own (so please don't advise me to simply not do that, I considered that already) I want to have this expression in the title of a section               \section{$\left< a \vphantom{L} \right| \left. b\vphantom{L} \right>$}      but this gives me               ! Incomplete \iffalse;      Any idea why that happens? And maybe a workaround?


title: IC50 with curve fit line and value of IC50 appear on the graph using pgfplot

text: Please help me to make IC50 graph with data as follow               S(mM)   Activity (%)      0.00080 99 %     0.00800 91 %     0.08000 89 %     0.40000 89 %     0.80000 79 %     1.60000 61 %     4.00000 39 %     8.00000 25 %     80.00000    4 %      and also IC50 value appear at 50% inhibition on the graph with curve fit line like EC50. I give sample (modefied by me) from web site http://bpsbioscience.com/poly- adp-ribose-polymerase/inhibitors/xav-939-27100 ![enter image description here](http://i.stack.imgur.com/TTOwh.jpg)


title: What is the difference between local and global in a TeX meaning?

text: In tikz declare function and babel french option it came to the question about the difference between local and global in a TeX meaning. In the liked question the babel shorthand `;` should be deactivated inside a `{tikzpicture}`, which can be done with               \begin{tikzpicture}        \shorthandoff{;}        ...     \end{tikzpicture}


title: autoinst -- cannot use truetype font

text: I'm trying to use the `DroidSans` font in a deck of slides I'm making with `Beamer`. I got the truetype file for this font, that is `DroidSans- webfont.ttf`, hence I executed, in my working directory:               $ autoinst DroidSans-webfont.ttf      This generated three files, specifically:               DroidSans.map     DroidSans.sty     LY1DroidSans-TLF.fd      Then, I included the following command in my .tex source file               \usepackage{DroidSans}      and compiled the source with `pdflatex`. Compilation fails, reporting this error:               kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+300/600 --dpi 300 DroidSans-tlf-ly1--base     mktexpk: don't know how to create bitmap font for DroidSans-tlf-ly1--base.     kpathsea: Appending font creation commands to missfont.log.          !pdfTeX error: pdflatex (file DroidSans-tlf-ly1--base): Font DroidSans-tlf-ly1--base at 300 not found     ==> Fatal error occurred, no output PDF file produced!      What's going on here? Am I missing something?


title: pgfplots spline and colorseries do not work

text: I want to create a plot with predefined colors and have the points connected by a spline curve. Both things do not happen. The color series is not applied (all lines are black) and a spline is not applied to the curve.               \documentclass[]{scrbook}          \usepackage{pgfplots}     \usetikzlibrary{pgfplots.patchplots}          \definecolor{colorseriesRGB1}{RGB}{0,     0, 192}     \definecolor{colorseriesRGB2}{RGB}{192,   0,   0}     \definecolor{colorseriesRGB3}{RGB}{0  , 128,   0}     \definecolor{colorseriesRGB4}{RGB}{192,   0, 192}          \pgfplotscreateplotcyclelist{colorseries-rgb}{       {colorseriesRGB1},       {colorseriesRGB2},       {colorseriesRGB3},       {colorseriesRGB4},     }          \begin{document}     \pgfplotsset{width=0.8\textwidth, height=0.6\textwidth}     \begin{tikzpicture}     \begin{axis}[cycle list name=colorseries-rgb]     \addplot[samples = 10,patch type=quadratic spline] {x^2 - x +4};     \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/cP3OW.png) EDIT: My original code is using a datatable. If I add the options `mesh,patch,patch type=quadratic spline` then the plot looks completely wrong               \begin{tikzpicture}     \begin{axis}[scale only axis,                  every axis plot/.append                     style={line width=1.5pt},                  mark=none,                  style=solid,                  enlargelimits=false, ymax = 3.5,                  cycle list name=colorseries-office,                  % smooth,                  mesh,patch,patch type=quadratic spline                  ]       %  column with header  "y1"       \addplot+   table[x=x1,y=y1]  from  \datatable;       \addplot+   table[x=x1,y=y2]  from  \datatable;       \addplot+   table[x=x1,y=y3]  from  \datatable;       \addplot+   table[x=x1,y=y4]  from  \datatable;     \end{axis}     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/Wr2sb.png) However the option `smooth`, although I have no idea what it really does looks like what I want: ![enter image description here](http://i.stack.imgur.com/OR78F.png)


title: Are there tools for importing patents from patent databases into BibTeX?

text: I need to import a large number of patents (e.g., all the patents by a particular inventor or assigned to a specific assignee) into BibTeX format. Are there tools for doing this? I'm not interested in single patents or in approaches that do this one patent at a time, but in ways to import large batches all at once. In particular, I'd be interested in tools provided directly by online patent databases and repositories (e.g. the USPTO or the EPO).


title: Are there tools for importing from CSV to BibTeX?

text: I'm seeking a way to get my books database, stored on Goodreads, into BibTeX form. As near as I can tell, Goodreads provides no support for this directly, but does provide for CSV export (on the right). Are there tools I could used to import from the CSV file into BibTeX? * * * FWIW, the fields exported by goodreads are               Book Id,Title,Author,Author l-f,Additional Authors,ISBN,ISBN13,My Rating,Average Rating,Publisher,Binding,Number of Pages,Year Published,Original Publication Year,Date Read,Date Added,Bookshelves,Bookshelves with positions,Exclusive Shelf,My Review,Spoiler,Private Notes,Read Count,Recommended For,Recommended By,Owned Copies,Original Purchase Date,Original Purchase Location,Condition,Condition Description,BCID      and I can, of course, easily rearrange their order or convert to other delimiters.


I wrote a C++ code, which will create a LaTeX file with Tikz commands. The tex file the code creates is pretty long i.e. around 43,000 lines. However, when I try to compile it gives me the following error.               ! TeX capacity exceeded, sorry [main memory size=3000000].      Is there anyway I can circumvent this error?


title: Add list of figures / tables only when content

text: How can I add the list of figures, tables or listings to the frontmatter, ONLY when there is content in each respectively?


title: ConTeXt: How to adjust the space before and after a section with respect to gridset

text: I use               grid=yes      in my setuplayout. With `\showgrid` I can see, that the space before and after a section is the same as before and after a subsection (3 lines before, and 2 lines after). But it would be nicer, if the subsection-title empty-space would be 2 lines before, and 1 line after, there should be a significant difference between the space around section and the space around subsection. This is possible with respect to grid=yes, indicated by the shown lines, but how?


title: Beginner, finding the right directory

text: I'm just starting out and every tutorial I use begins by asking me to type up a file, save it as a .tex and use a command window in which I am in the directory where I have my file. I how do I get into the right directory?


title: Framed floats and background colors for captions

text: i wanted to edit my floats. Found the package `floatrow` and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the `\parbox`, i inserted to `captionsetup`, is bigger than the frame of the float and doesn't end up with the frame. I wrote an example:               \documentclass{article}     \usepackage{caption}     \usepackage{floatrow}      \floatsetup[figure]{framestyle=fbox,                framearound=all,rowfill=yes}     \DeclareCaptionFormat{box}{     \colorbox{red}{\parbox{\textwidth}{#1#2#3}}      }      \captionsetup[figure]{format=box}     %%     \begin{document}     \begin{figure}         TEST TEST TEST     \caption{BLA}     \end{figure}     \end{document}


title: Remove compress option from beamer between sections (miniframes)

text: I'm putting together some slides using the Szeged theme. I'm omitting frame titles, and instead using subsection titles to display the desired frame information. In the first section, I would like to have all of the navigation dots on one row, however in the second section I would like the navigation dots to be displayed in two rows. The code below results in the navigation bar looking correct for section 1, but incorrect for section 2. Removing "compress" after `\documentclass` results in the navigation bar looking correct for section 2, but incorrect for section 1. Ideally I would like to apply the compress option from `\documentclass` to only the first section.               \documentclass[compress, usepdftitle=false]{beamer}     \mode<presentation>     \usetheme{Szeged}     \usepackage{amsmath,amssymb,amsfonts}     \usepackage[english]{babel}     \usepackage{pgf}     \usepackage{times}     \usepackage[T1]{fontenc}     \usepackage{hyperref}          \begin{document}          \section{Section 1}     \subsection{Some Title}     \begin{frame}     ...     \end{frame}          \subsection{Some Different Title}     \begin{frame}     ...     \end{frame}               \section{Section 2}     \subsection{This is a line graph}     \begin{frame}     ...     \end{frame}          \begin{frame}     ...     \end{frame}          \begin{frame}     ...     \end{frame}               \subsection{This is a bar chart}     \begin{frame}     ...     \end{frame}          \begin{frame}     ...     \end{frame}          \begin{frame}     ...     \end{frame}          \end{document}      **Edit** \- An ideal solution would be to display frame titles in the space reserved for subsection titles, however I have not found how to do that. I'm sure this is possible by making a custom theme, but that is beyond the scope of my latex expertise and I unfortunately don't have the time to learn currently. If this is possible without modifying the .sty file, then that would certainly answer my question.


title: Recommended workflow? LaTeX -> ePub with math viewable on iPad

text: This started as a comment in an older thread, but I thought I repost it here as a question to the forum... I'm looking for a workflow that will take me efficiently and reliably from existing LaTeX documents (e.g., books) with lots of (sometimes) complex embedded math to high-quality ePubs that will display nicely in iBooks under iOS6 and, ideally, on other readers as well (lower priority). I've been looking at LateXML, TeX4ht, plasTeX, XhtmLaTeX, pandoc, ebook- convert, and the tbook DTD (which starts with XML rather than LaTeX and thus looks promising primarily for new documents). All of these tools seem to have a lot to offer, but none of them, as far as I can tell, gets me to the finish line without what appears to be significant manual intervention (implying a need for significant learning/debugging as well). I haven't been able to decide yet which pathway is worth investing the time and energy on. Looking forward to an up-to-date assessment. I'll note that I already published an ePub textbook with equations rendered as SVG, and it displayed very nicely in iBooks under iOS5. Unfortunately, iOS6 broke it, and the eBook is now a virtual paperweight. I'm trying to recover and get the same book back into a usable ePub format that renders equations nicely. I don't mind investing in a commercial product if it's the least painful means to solve the problem, but I'd prefer to build a script-based workflow based on open-source tools for Mac OS X.


title: Plotting .dat file in pgfplot with multiple columns

text: I'm trying to use `pgfplots` with a `.dat` file to plot multiple data points on a graph, but for some reason it's plotting the same two columns over and over again, what have I done wrong?. The `.dat` file I'm using looks like this:               eang    disppos dispvel dispacc      0.0000  50.0000 0.0000  -32.8125     1.0000  49.9950 -0.5726 -32.8043     2.0000  49.9800 -1.1450 -32.7796     3.0000  49.9550 -1.7168 -32.7386     4.0000  49.9201 -2.2877 -32.6811     5.0000  49.8752 -2.8575 -32.6073     6.0000  49.8204 -3.4258 -32.5172     7.0000  49.7556 -3.9924 -32.4108     8.0000  49.6810 -4.5571 -32.2882     9.0000  49.5966 -5.1194 -32.1495     10.0000 49.5023 -5.6792 -31.9948       11.0000 49.3983 -6.2361 -31.8241     12.0000 49.2847 -6.7900 -31.6376     13.0000 49.1613 -7.3404 -31.4354     14.0000 49.0284 -7.8872 -31.2176     15.0000 48.8860 -8.4300 -30.9844     16.0000 48.7342 -8.9687 -30.7358     17.0000 48.5730 -9.5028 -30.4721          \pgfplotstableread{pistonkinetics.dat}{\pistonkinetics}     \begin{tikzpicture}[scale=1]     \begin{axis}[minor tick num=1,     xlabel=Degrees]     \addplot [x={eang}, y={disppos},black,very thick] table {\pistonkinetics};     \addplot [x={eang}, y={dispvel},dashed,red,very thick] table {\pistonkinetics};     \addplot [x={eang}, y={dispacc},dashed,blue,very thick] table {\pistonkinetics};     \end{axis}     \end{tikzpicture}


title: Logarithmic axes using \DTLplot

text: I am working with the dataplot package for quite some time and find it useful for my purpose. But now I have to display a log-log diagram and failed to find a suitable function; is there any command for logarithmic axes after all? This is what I got so far               \DTLloaddb{514}{../Bilder/514.csv}     \begin{figure}[htbp]     \centering     \setcounter{DTLplotroundXvar}{1}     \DTLplot{514}{x=x,y=Curve1,style=lines,         linecolors={black},width=3.9in,height=2.5in,bounds={0.1,0.4,20,20},         xlabel={Reduced massflow [kg/s]},ylabel={Total pressure ratio},         xticpoints={0.1,0.2,0.4,0.6,0.8,1,2,4,6,8,10,20},         yticpoints={0.4,0.6,0.8,1,2,4,6,8,10,20}     }     \caption{Characteristic engine operating lines in the compressor map}     \label{fig:Char}     \end{figure}


title: Indenting footnotes in ConTeXt

text: How to modify               \footnote      in ConTeXt, such that the complete footnote is indented?


title: Compilation error when a command argument contains a math formula with a bracket ]

text: When I try to compile the following document:               \documentclass{article}          \newenvironment{modelDefinitions}{%       \begin{description}     }{%       \end{description}     }     \newcommand{\modelDef}[2]{\item[#1] \hfill \\ #2}          \begin{document}     \begin{modelDefinitions}       \modelDef{$test[a, b]$}{tmp}     \end{modelDefinitions}     \end{document}      I get a compilation error saying:               ! Extra }, or forgotten $.     \sbox ...hbox {\color@setgroup #2\color@endgroup }          l.12   \modelDef{$test[a, b]$}{tmp}      However, if I remove the `]` from the first argument of `\modelDef`, then it works. What's the problem, and how do I fix it?


title: Aquamac AucTeX should open PDF in external viewer, not render it in Emacs buffer

text: I use AucTeX in my Mac Emacs, which is Aquamac 23.1. Typically in AucTeX, when I type C-c C-c it runs `pdflatex`, then C-c C-c again and it opens it in a PDF viewer. But in this Aquamac emacs version, it renders the PDF right in the emacs buffer. How can I change that? I just want it to open the PDF in a PDF viewer (ideally, Skim) when I press C-c C-c.


title: Remove underline from Table of Contents

text: I'm trying to create a Table of Contents but I am having some trouble getting it to look how I want. At the moment I have the section headings underlined in the document and because of this when the table of contents is generated it underlines all the section headings. So my question is, is there a way to remove the unwanted underlines from the table of contents and keep them in the document. My `.tex` file.               \documentclass{article}     \usepackage{graphicx}     \usepackage{fancyhdr}     \usepackage[english]{babel}     \usepackage{color}   % color links     \usepackage{hyperref}     \hypersetup{         colorlinks=true, %set true if you want colored links         linktoc=all,     %set to all if you want both sections and subsections linked         linkcolor=black,  %color for links     }     \pagestyle{fancy}     \fancyhead{} % clear all header fields     \renewcommand{\headrulewidth}{0pt} % no line in header area     \fancyfoot{} % clear all footer fields     \renewcommand{\footrulewidth}{1pt} % line in footer      \fancyfoot[RE,LO]{\begin{flushleft}\large     name\newline title\end{flushleft}     \begin{flushright} \thepage\end{flushright}}     \begin{document}     \begin{titlepage}     \begin{center}          \end{center}     \end{titlepage}     \tableofcontents     \listoffigures     \listoftables     \newpage          \section{\underline{The Client}}     \subsection{Sub section 1}          \section{\underline{Scope}}     \subsection{Sub Section 2}          \end{document}      Any help would be appreciated.


title: Lyx Table has unwanted extra column (in an additional row) with APA

text: I am encountering this strange problem in LyX when my table ends up having additional "legs" as seen in the figure below. ![Table showing the extra column sides](http://i.stack.imgur.com/F5ykm.png) The document class article `apa`, `doc` is what seems to be causing the problem. If I copy and paste the table including the float to a new document with a different document class (`article`), it works fine. Anyone else has encountered this issue and know a fix? * * * Edits after comments Thanks for the prompt response and help. Based on Werner's comments, I tried out adding the following in preamble but resulted in several compilation issues. I am using captions and apa doc. The second recommendation, adding \makeatletter\let\BBAB\normal@BBAB\makeatother as ERT right before the caption![ERT before caption](http://i.stack.imgur.com/qoPg0.png) still results in ![this](http://i.stack.imgur.com/nsnhc.png). I even modified the apa6.cls commenting out the problematic line but it still dodn't fix it. Adding the suggested ERT within the caption leads to undefined control sequence hence it has to be outside. Suggestions?


title: XeLaTeX crashing only in AUCTeX

text: I'm running xelatex installed from TeXLive 2013 running on Cygwin, and it works fine compiling from the commandline with `xelatex input.tex` or `latexmk`, but for some reason running the same file through AUCTeX's compile command with `C-c C-c` with **TeX-engine** set to **xetex** crashes xelatex with the output of the log file:               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/W32TeX) (format=xelatex 2014.4.9)  9 APR 2014 22:55     entering extended mode      restricted \write18 enabled.      %&-line parsing enabled.     **\input input.tex          ! Emergency stop.      \input input.tex          *** (job aborted, file error in nonstop mode)               Here is how much of TeX's memory you used:      2 strings out of 493918      17 string characters out of 6151720      52462 words of memory out of 5000000      3428 multiletter control sequences out of 15000+600000      3640 words of font info for 14 fonts, out of 8000000 for 9000      1144 hyphenation exceptions out of 8191      4i,0n,3p,1b,8s stack positions out of 5000i,500n,10000p,200000b,80000s     No pages of output.           `C-c `` just says: `Error occurred after last TeX file closed.` Does anyone know of any additional configuration I need to do to get AUCTeX working under windows? Or is there a way to run the AUCTeX compile command with some flags to get some more info about why xelatex is exiting? The relevant parts of my emacs configuration are as follows:               (setq TeX-auto-save t)     (setq TeX-parse-self t)     (setq-default TeX-master nil)     (setq TeX-engine 'xetex)     (setq TeX-PDF-mode t)      I would appreciate any help as it would be nice to not have to switch back to the commandline to compile everytime I make changes. Also, if there are more relevant lists or boards I should post this to in order to get help, I would love to know.


title: Complex objects delay compiling time - how to make latex faster for draft versions?

text: Working on my phd thesis has become a nightmare since I tried to insert some very large (sideways)tables with many columns and cells all containing citations. A complete compiling run with `latexmk` took more than 5 minutes. Before I inserted the tables, it was about 3 minutes which is still long enough. As the tables contain references (`\cite`), they can not be handled as "static", as the numeric references might change with changes of the document. (Otherwise I'd typeset the tables in a separate document and insert the pdf with `includegraphics`.) What possibilities are there to speed up compiling?   * Is there a way to exclude parts of a document (similar to `includeonly`), so that I could normally replace the tables (which will normally fill an entire page) by a large rectangle? _Sure I could remove chapters I'm currently not working on, but it partially need them for cross-referencing and cross-checking information..._ _and sure, I could compile less often, but to avoid mistakes and see what I'll get after small changes, I'd like to compile directly after making changes to the text, if possible. Any ideas?


title: remove comma after the last author

text: I've finally manged to produce my custom \bibliographystyle (.bst) file. Below is the output (sample) of listed references. Is it possible to remove the comma after the last author (just before the year)? I would also like to get rid of "Literatura" title that is assigned as well. Any help appreciated.               Literatura     Abbiati, M., Bianchi, C. N., Castelli, A., 1987. Polychaete vertical zonation along a      littoral cliff in the western Mediterranean. Marine ecology, 8(1): 33–48.     Antoniadou, C., Nicolaidou, A., Chintiroglou, C., 2004. Polychaetes associated with      the sciaphilic alga community in the northern Aegena Sea: spatial and temporal      variability. Helgoland Marine Research, 58: 168–182.


title: Is there any way to remove the "Theorem" in theorem block titles?

text: I'm writing a `beamer` presentation and using the `theorem` environment in the standard manner:               \begin{theorem}[Subject]     this is text     \end{theorem}      Which creates the textbox with the proper look but my problem is with the title, right now it is `Theorem (Subject)` while I would like it to be only `Subject`. I'm thinking there should be a way to change the title while still using `theorem`.


title: Open Sans and LaTeX Beamer

text: I'm working on a presentation in LaTeX Beamer and would like to use Open Sans Condensed for titles, Open Sans Normal for regular text on the slides and TikZ for graphics. Is there any way to do so? This is my draft at the moment:               \documentclass[xcolor=x11names, compress]{beamer}          \usepackage[T1]{fontenc}     \usepackage[default, osfigures]{opensans}          \usepackage[utf8x]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{booktabs}     \usepackage{color}     \usepackage{array}     \usepackage{multirow}          \usepackage{tikz}          \usepackage{soulutf8}     \setul{1pt}{0.4pt}          \begin{document}          \begin{frame}{Title}             Text 1234567890     \end{frame}          \end{document}


title: LaTeX table frustratingly too wide

text: I'm getting really frustrated. I want to enter the following table into my LaTeX document, but the first and third columns refuse to narrow so it is too wide. Can someone please tell me what I am doing wrong? If I can format it properly the table should fit to about half a page width. Thanks for any help.               \begin{table}     \begin{tabular}{|c p{3cm}|c p{2cm}|c p{5cm}|c p{2cm}|}     \hline      & Gene & Protein & Disease \\     \hline     \multirow{3}{*}{Soluble lysozomal enzyme deficiencies} & CLN10 (CTSD)  & Cathepsin D & Congenital*, LINCL, JNCL, ANCL \\     & CLN1 & Palmitoyl protein thioesterase 1 (PPT1) & INCL*, LINCL, JNCL, ANCL \\     & CLN2 & Tripeptidyl peptidase 1 (TPP1) & LINCL, JNCL \\     \multirow{5}{*}{Non-enzyme deficiencies} & CLN3 & Transmembrane protein & JNCL* \\     & CLN5 & Soluble; lysosomal & LINCL, JNCL, ANCL \\     & CLN6 & Transmembrane protein; ER & LINCL, ANCL Kuf's Type A \\     & CLN7 (MSFD8) & Transmembrane protein; Endolysosomal transporter & LINCL \\     & CLN8 & Transmembrane protein; ER & LINCL \\     \hline     \end{tabular}     \caption{Classification of NCLs by CLN gene affected \cite{haltia} \\ *indicates main form of NCL associated with the gene}     \label{table1}     \end{table}


title: Plot and imagesc (from Matlab) with PSTricks

text: I'd like to plot with PSTricks some data from Matlab. I usually plot these data using the `imagesc` and the `colorbar` in Matlab, but I'd rather do it in LaTeX... Here is the picture I want to plot in LaTeX : ![enter image description here](http://i.stack.imgur.com/2N6I3.png) It's actually plotting `2 vectors` (time and velocity) and `1 array` (the color), but I can't figure how to do it... Is there a special `PSTricks package` to do it ? If it could read the 3 data files, I'd be simple... If it's just a couple of commands, it's good too... **Edit : providing data files** Here are the data (all are .csv files):   * time is an 175x1 matrix   * velocity is an 14112x1 matrix   * tension is ans 14112x175 matrix... I compressed them in a zip file The data are quite huge, but an example with 10 points is good too..


title: Fit large image on one page with section title

text: I have a large image that needs to be scaled and put onto one page, which has a section title as well. The image should fill the maximum space avaiable. I tried passing different arguments to the `\includegraphics` command, but it doesn't seem to work, because it doesn't take the section header into account. I've tried different variations of               \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{myfig.png}     \includegraphics[width=\linewidth,height=\textheight,keepaspectratio]{myfig.png}     \includegraphics[page=1,width=\textwidth,height=\textheight,keepaspectratio]{myfig.png}


title: Turn off column length equalizing in elsarticle class

text: I'm working with the `elsarticle` class, available here. I have a lot of figures, and it seems like the class is using something equivalent to `multicol` to encourage columns to be of equal lengths within any given page. This is resulting in some really horrible looking pages such as those shown in the screenshots, which show two consecutive pages. It would be preferable in the attached examples if some of the text from the second page filled up below the right column of the first page to bring it down to the bottom of the first page. I thought if I was using `multicol` myself and switched to `multicol*` I could at least see if turning off column equalization helped, but I can't find where to do this in `elsarticle.cls`. Also, if I'm totally barking up the wrong tree here and there's a much better way to make the text fit in around the images, that would be great. ![Page 2](http://i.stack.imgur.com/gB2MV.jpg) ![Page 3](http://i.stack.imgur.com/roYqE.jpg)


title: Beamer table drop shadow

text: I'm trying to design a good-looking table with Beamer. I'm following the tutorial here. In page 8 of that tutorial, the table is very nice, with alternating colored rows and a pleasant drop-shadow. Moreover, some vertical bars are black while others are grey: ![enter image description here](http://i.stack.imgur.com/AErZt.png) However, when I follow that same code, I get something like this: ![enter image description here](http://i.stack.imgur.com/qnYFb.png) The code is pasted below:               \begin{center}       \rowcolors{1}{RoyalBlue!20}{RoyalBlue!5}       \begin{tabular}{|l|c|}\hline         J.\ S.\ Bach & 1685--1750 \\         W.\ A.\ Mozart & 1756--1791 \\         L.\ Beethoven & 1770--1827 \\         F.\ Chopin & 1810--1849 \\         R.\ Schumann & 1810--1856 \\ \hline       \end{tabular}     \end{center}      I looked around that tutorial but did not figure out how to achieve this effect. Could anyone help? Thanks in advance!


title: Color is not working properly with XeLaTeX RTL documents?

text: The following minimal example produced the desired results:               \documentclass{article}     \usepackage[usenames]{color}          \begin{document}     black {\color{red} red} black          black     \end{document}      But the following example, which is just the same, other than the fact it is RTL, does not produce the desired results:               \documentclass{article}     \usepackage[usenames]{color}     \usepackage{polyglossia}     \setmainlanguage{hebrew}     \def \hebrewFont{David CLM}     \setmainfont[Mapping=tex-text]{\hebrewFont}     \newfontfamily{\hebrewfont}{\hebrewFont}          \begin{document}     black {\color{red} red} black          black     \end{document}      Am I doing something wrong, or is it a simple bug?


title: Abstract with light background color

text: Is there a way to add a background color to the abstract? I tried various combinations of `\colorbox` and the `\begin{abstract} ... \end{abstract}` environment, but nothing worked. I use the current TexShop version with default setting. Here is my preamble:               \documentclass[12pt,twocolumn]{amsart}     \usepackage{geometry}                        \usepackage{graphicx}     \usepackage[superscript]{cite}     \usepackage{amssymb}     \usepackage{upgreek}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{wallpaper}     \usepackage[size=normalsize,format=plain,textfont=sc]{caption}          \bibstyle{alpha}     \geometry{a4paper}                                \title{some title}     \author{the author}     \date{} % delete this line to display the current date          \begin{document}     \onecolumn     \maketitle          \begin{abstract}          Lorem ipsum dolor sit amet,           \end{abstract}          \tableofcontents          \twocolumn     \input{1}          \input{2}          \input{3}          \input{4}          \bibliographystyle{plain}     \bibliography{Lit}          \end{document}


title: Compilation issue with pdfLaTeX and auto-pst-pdf

text: I am using a lot of png/jpg images in a document, so I decided to use **pdfLaTeX**. The main issue of this approach is that **PSTricks** is not directly supported. Since I found a package ( **auto-pst-pdf** ) supposed to solve this, I gave it a go. But I found a problem. Let's take a simple example:               \documentclass[12pt,a4paper]{report}          \usepackage[pdf]{pstricks}     \usepackage[on]{auto-pst-pdf}          \begin{document}          This is a test file     \newline     \newline     \begin{pspicture}(-5.25,-5.25)(5.25,5.25)       \pscircle*[linecolor=cyan]{5}       \psgrid[subgriddiv=0,gridcolor=lightgray,gridlabels=0pt]       \Huge\sffamily\bfseries       \rput(-4.5,4.5){A} \rput(4.5,4.5){B}       \rput(-4.5,-4.5){C}\rput(4.5,-4.5){D}       \rput(0,0){auto-pst-pdf}       \rmfamily       \rput(0,-3.8){PSTricks}       \rput(0,3.8){\LaTeX}     \end{pspicture}          \end{document}      If we try to compile this file in its folder (with output folder = `build`):               pdflatex -shell-escape -output-directory=build test.tex      Everything works well, and the resulting PDF is moved to `result`. Now, let's imagine that we have a folder with the following structure:               -- root (Makefile)      |___ src (tex files)      |___ build (everything generated by pdfLaTeX)      If we call make from the root folder, the following command will be executed:               pdflatex -shell-escape -output-directory=build src/test.tex      Even though the only difference is the location of the tex file, this does not work: the temporary image files (dvi, ps, pdf) are not compiled, and the resulting document does not get its figure. I have tried using some auto-pst-pdf options:               \usepackage[on,                 latex={-out-directory=. -jobname=test-pics test.tex},                 dvips={-o test-pics.ps test-pics.dvi},                 pspdf={-dAutoRotatePages=/None test-pics.ps test-pics.pdf},                 crop=off                ]{auto-pst-pdf}      But this does not work so far, and I do not know if that is the right way to do this. Has anyone faced any similar problem, and if yes, how did you solve it?


title: biblatex URL shown twice in bibliography

text: I didn't find a solution in the web, so I'm asking here. I am using `authoryear-icomp` style for my bibliography (without any modification). When I have a BibTeX entry like:               @online{guizzo_i-limb_2008,     title = {{i-LIMB} snatches {MacRobert} Award - {IEEE} Spectrum},     url = {http://spectrum.ieee.org/automaton/robotics/robotics-software/ilimb_snatches_macrobert_award},     abstract = {{IEEE} Spectrum},     journal = {{IEEE} Spectrum},     author = {Guizzo, Erico},     month = jun,     year = {2008}     },      I get the URL twice in the bibliography. Once in the `url` field with nice linebreaks and once rudely running into the margins:               Guizzo, Erico (June 2008). i-LIMB snatches MacRobert Award - IEEE Spectrum.     http://spectrum.ieee.org/automaton/robotics/robotics-software/ilimb_snatches_macrobert_award.     URL: http://spectrum.ieee.org/automaton/robotics/robotics-software/ilimb_     snatches_macrobert_award.      How do I get rid of the entry not starting with `URL` (that is the one without linebreak)?


title: Prevent image from automatically centering?

text: I'm inserting an image like so...               \begin{figure}[h!]       \includegraphics[width=400mm]{wut.png}         \caption{Gantt Chart}     \end{figure}      However, the image is automatically beginning in the center of my page and due to its size it's running off of the right hand side of the page. How would I force this image to begin at the left margin?


title: Forcing figures position in (last page) column

text: I'm writing a two columns document and I have two figures on the last page stacked in one column. The first one at the top and the second one almost at the bottom. How can I force the second one to be shown just after the first one with no empty lines between them?


title: Ensuring that floats are displayed in order of first reference

text: There are many questions on this web site and elsewhere about ensuring that floats are displayed in the order in which they are placed in the source. What I want is different--I have all my floats at the end of my document and want to ensure that floats are displayed in the order in which they are _referenced_ using `\ref` or `\autoref`. Using something like the `endfloat` package is not sufficient, because that requires me to make sure that the source order of the floats is the same as the reference order. It is easy to disrupt this ordering during editing. It would suffice to have some sort of process that checked this for me automatically and required manual adjustments. Just as long as I don't have to go through and manually check again that Figure 13 is referenced in the output text before Figure 14.


title: Making extra produced schunk globally invisible in Sweave

text: I'm using `ASREML-R` for data analysis. When I fit the model in `ASREML-R`, it produces some information regarding the model like this               dat <- data.frame(y=rnorm(20),x=seq(1,20))     ex.asr <- asreml(y ~ x, data=dat)               asreml(): 3.0.1 Library: 3.01gl IA32  Run: Wed Jan 11 16:53:31 2012               LogLik         S2      DF         -13.3387      0.9556    18  16:53:31         -13.3387      0.9556    18  16:53:31          Finished on: Wed Jan 11 16:53:31 2012          LogLikelihood Converged       and even using `<<echo=FALSE>>=` in `Sweave` produces this extra `Schunk`               \begin{Schunk}     \begin{Soutput}          asreml(): 3.0.1 Library: 3.01gl IA32  Run: Wed Jan 11 16:53:31 2012               LogLik         S2      DF         -13.3387      0.9556    18  16:53:31         -13.3387      0.9556    18  16:53:31          Finished on: Wed Jan 11 16:53:31 2012          LogLikelihood Converged           \end{Soutput}     \end{Schunk}      I wonder how can I remove this extra information to display in my final output.


title: geographic maps with TikZ/pgfplots

text: I have recently discovered **pgfplots** and I love it. I'm converting the figures from my thesis to **pgfplots** , or at least the ones I have made myself. One of my figures is a map that I created using the Matlab Mapping Toolbox. I'd love to convert it to LaTeX + **pgfplots** , but I feel like I don't really have the tools. For mapping, one would need:   * A projection, e.g. to convert from GIS coordinates to lat/lon (or UTM/UPS, or ...). This should be possible to build on top of the existing mathematical engine. Equirectangular projections are easiest. Preferably quite integrated, so one can use it as a coordinate system, such as `(axis latlon:30.0,40.0)`.   * Something to keep track of scale, e.g. a scale-ruler would be quite nice to add directly.    * Anything else? So far I used Matlab but I am not too happy about the result. Did anybody ever try to hack something like this together? ![example of a map of the Kiruna region](http://i.stack.imgur.com/0ynaD.png) (This should be a community wiki question, but I don't see any button to mark it as such, maybe I don't have the reputation?)


title: biblatex-chem warning: Macro 'institution+location+date' already defined. What does it mean and how do I get rid of it?

text: As a rule of thumb, I aim to make my latex compilations complete without errors or warnings. I've come to accept some underful badboxes as unavoidable though :( I'm trying to change over to `biblatex`, as evidence by several of my other posts. With a rather stripped down code I am given this warning message, when I compile:               Package biblatex Warning: Macro 'institution+location+date' already defined.     (biblatex)                Using \renewbibmacro.      But don't really know what it means or how to sort it. I can provide more info in necessary, but it could get rather cumbersome. I am using a custom `.cls` file, partially handed down to me and partially modified by me. It's based on the `book` class. I have searched for the word "institution" in it (not as whole word only), with no success. So if someone has some knowledge of this and how I might resolve the warning then please let me know. If you need some more info then hopefully I can help there too. EDIT: I'm also using the `chem-rsc` biblatex package option. EDIT: The following would appear to be a VERY minimal working example of the bug/feature/eccentricity:               \documentclass{book}     \usepackage[style=chem-rsc]{biblatex}     \begin{document}     \end{document}


title: Short way to create simple multiple rows in a tabular

text: Let me please emphasise first, that I do not need a sophisticated tabular --- I'm looking for a clever way to create a simple, but long tabular. I'd like to create an empty tabular which has e.g. 25 rows. MWE:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \begin{document}            \begin{tabular}{|*{4}{c|}}\hline        \textbf{Akten-Nr.} & \textbf{Angelegenheit} & \textbf{Frist} & \textbf{SB} \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline           & & & \\\hline            & & & \\\hline            & & & \\\hline            \end{tabular}               \end{document}      What I'd like to write is something like:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \begin{document}            \begin{tabular}{|*{5}{c|}}\hline        \textbf{Akten-Nr.} & \textbf{Angelegenheit} & \textbf{Frist} & \textbf{SB} \\\hline         \multiplerows{25}{& & & \\\hline}            \end{tabular}          \end{document}      You see, I'd like to save the effort to print 25 (or howmuch ever) times `& & & \\\hline` and instead one line with a »multiplicator«. Any ideas of a (simple?) package, which offers something like » **\multiplerows{}{}** «? Or can someone with greater karma in tabulars spill some lines of code?


title: Converting a PDF document to PostScript/LaTeX

text: I have a resume in PDF format. I have seen people linking to PostScript versions of their resume. I am not sure why they do that yet. How can I convert my PDF document to a LaTeX/PostScript document?


title: Replacing all dots in a document

text: I want to replace all dots in a LaTeX document with a call to a macro. Just doing a search and replace on '.' won't help as this will not replace the dots generated by LaTeX, e.g. in section numbers, enumerates, ...


title: Creating virtual files for better biblatex

text: Platform: OSX. MWE is impossible as this is not a LaTeX question per se (more for the working environment that LaTeX can be used in). I use Zotero to manage my references. I use LaTeX for most of my technical writing. So, I need BibTeX. I found the following tool that attempts to link the two. Came across this link that generates a URL that returns the .bib file. For me, the URL is better-bibtex/library?library.biblatex (on localhost). I am writing a journal article and am unsure about whether they use BibLaTeX. Play it safe - use BibTeX? So, the question is (if any of you have done something like this) - how do you create a "smart file" that is updated continuously with the contents of the URL above. If what I am asking is pointless, then can someone point me to a MWE for using BibLaTeX? The manual would be a start, but I would rather use that for reference if something went wrong.


title: Dashed draw with a node including a fraction

text: Is this intended behavior (with plain XeTeX):               \input tikz     \tikz\draw[dashed] node {$3T\over4$};     \bye      It renders as: ![enter image description here](http://i.stack.imgur.com/TNtFs.png)!? The fraction line is dashed, too! Is this intentional? Is there something I can do to change that? I know I can separate the fraction into its own node, but other than that?


title: How to wrap text around framed floats in ConTeXt?

text: The goal is to embed an image into a coloured box with text. I tried with \placefigure and \starthangaround. They work fine outside a frame, but once put inside a frame the text collides with the image.               \useMPlibrary[dum]     \setupcolors[state=start]          \starttext            \placefigure[right]{}{\externalfigure[placeholder][width=27mm,height=27mm]}       \input knuth            \startframedtext[width=broad, background=color, backgroundcolor=green]         \placefigure[right]{}{\externalfigure[placeholder][width=27mm,height=27mm]}         \input knuth       \stopframedtext            \startframedtext[width=broad, background=color, backgroundcolor=green]         \starthangaround{\externalfigure[placeholder][width=27mm,height=27mm]}         \input knuth         \stophangaround       \stopframedtext     \stoptext      Is there a way to support floats inside frames? Or is there another object which can provide a background colour that plays nicely with floats?


title: change numbering in table of content for Beamer

text: I want to use roman number for section and bullet for subsection in TOC for Beamer as shown in this figure: ![enter image description here](http://i.stack.imgur.com/hc5uE.png)


title: PgfGantt: Customization of canvas to mark Vacations

text: I've looked at the documentation, search on the forum, etcetera... and found no answer to my question. I'm writing a Gantt chart,                 \begin{ganttchart}[%           x unit=.4cm,           y unit title=0.5cm,           y unit chart=0.6cm,           vgrid={*2{draw=none}, *1{dotted}},           time slot format=isodate-yearmonth,           compress calendar,           title/.append style={draw=none, fill=blue!50!black},           title label font=\sffamily\bfseries\color{white},           title label node/.append style={below=-1.6ex},           title left shift=.05,           title right shift=-.05,           title height=1,           bar/.append style={draw=none, rounded corners=2pt, fill=OliveGreen!75},           bar height=.6,           bar label font=\normalsize\color{black!70},           group label node/.append style={%             align=left,             text width=\widthof{L\'imites impuestos por mediciones de presici\'on},           },           group right shift=0,           group top shift=.6,           group height=.3,           group peaks height=.2,           bar incomplete/.append style={fill=Maroon},           %% Other customisation           newline shortcut=true,           bar label node/.append style={align=left},         ]{2014-10}{2017-09}         \gantttitlecalendar{year} \\         \ganttgroup{Primer Periodo}{2014-10}{2015-09} \\         \ganttbar[%           progress=40,           bar progress label node/.append style={right=1ex},           name=ModTeo         ]{Construcci\'on de modelos de part\'iculas         }{2014-10}{2015-01} \\         \ganttset{progress label text={}, link/.style={black, -to}}         \ganttlinkedbar[%           progress=0,           name=LimLHC,         ]{L\'imites impuestos por mediciones del LHC}{2015-03}{2015-05} \\         \ganttlinkedbar[%           progress=0,           name=LimPres,         ]{L\'imites impuestos por mediciones de presici\'on}{2015-06}{2015-08}\\         \ganttlinkedmilestone[%           name=MS1,         ]{Predicciones y L\'imites Experimentales}{2015-8} \\         \ganttgroup{Segundo Periodo}{2015-10}{2016-09} \\         \ganttbar[progress=0,name=Mez]{Mezcla}{2015-9}{2016-01} \\         \ganttlink{MS1}{Mez}         \ganttlinkedbar[%           progress=0         ]{An\'alisis de anomal\'ias en los modelos}{2016-3}{2016-06} \\       \end{ganttchart}      resulting on the chart ![enter image description here](http://i.stack.imgur.com/WLX9i.png) However, I'd like to use a "canvas" color for highlight the vacations... something like this ![enter image description here](http://i.stack.imgur.com/W0dmQ.png) Does anyone know how to achieve this? or at least say whether it is possible... Thank you! Cheers.


title: How to define a custom environment caption for table of contents?

text: I want to define a custom environment _example_. This is not a problem at all, the only thing I humble upon is the caption (short title below the element) and its listing in the table of contents or rather "List of examples". I want to get a caption like this: Example `<normal-counter>`: My caption And in the appendix a "list of examples". In other words, copy the entire stuff for figures to my example environment. I'm sure that there is a solution and that there is also an answer within tex SE, but I'm not able to find it :-( Thank you! PS: I always prefer avoiding additional packages :-)


title: specific Box Diagram with multiple arrows

text: I never did a box diagram before. I tried to build this diagram, but couldn't find a solution for these kind of arrows: Could someone tell me, how to perform this? Thank you in advance.![role of affect in decision making](http://i.stack.imgur.com/LxDa2.png)               \tikzset{     decision/.style = {draw, text width=6.0em, text badly centered, node distance=3cm, minimum height=2.0em},     block/.style = {rectangle, draw,text width=6.0em, text centered, rounded corners=2ex,     minimum height=2.0em},     line/.style = {draw, -latex'},     cloud/.style = {draw, ellipse, node distance=3cm, minimum height=2em}     }          \begin{figure}[H]     \caption{bla}     \centering     \begin{tikzpicture}[node distance = 2cm, auto]          \coordinate (1) at (0,0);     \node [decision, right = 0cm of 1]  (2) {Antizipierte Einflüsse};     \node [decision, below left = .8cm and .1 of 2]  (3) {Sofortige Emotionen};     \node [decision, right = .8cm of 3] (4) {Entscheidung/\\Verhalten};     \node [decision, right = .8cm of 4] (5) {Erwartete\\Konsequenzen};     \node [decision, right  = .8cm of 5] (6) {Erwartete Emotionen};     \node [decision, below = .8cm of 3, node distance=1cm] (7){Zufällige Einflüsse};          \path [line] (2) -- node{b,c} (3);     \path [line] (3) -- node{d} (4);     \path [line] (4) -- node{e} (5);     \path [line] (5) -- node{f} (6);     \path [line] (7) -- node{g} (3);     \path [line] (6) -- node{c} (2);     \path [line] (6) -- node[near end,below=.5ex]{a} (4);     \end{tikzpicture}     \label{bla}     \end{figure}


title: How to create diagonal matrix with an aligned diagonal?

text: How do I display truly diagonal matrices? I want to have a diagonal bloc matrix. The solution below has several problems : the diagonal terms aren't really aligned in the first half, and the diagonal dots `\ddots` aren't steep enough between the zeros in the second half.               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \[     \mathrm{Mat}(u;\mathcal{B})=     \begin{pmatrix}     I_{n_+}\\&-I_{n_-}\\     &&R_{\theta_1}\\     &&&R_{\theta_2}\\     &&&&\ddots\\     &&&&&R_{\theta_r}\\     &&&&&&0\\     &&&&&&&0\\     &&&&&&&&\ddots\\     &&&&&&&&&0\\     \end{pmatrix}     \]     \end{document}


title: How to activate Autocomplete

text: I just downloaded TeXmaker and found, that my autocomplete does not work. Do I have to configure it? And if so, how? Thank you for the information!


title: Makefile problem

text: I am having problems with compiling EPS images, I don’t know whether it is a problem with my `makefile` or not. When I am compiling a document with EPS images, it takes like 4 minutes to compile them, how can I overcome that? Is it a `makefile` problem? If it is can someone help me with a working example? Or could you help me with a template with a `makefile` and a sample image included? I just don't know whether EPS is becoming obsolete but it is taking ages to be compiled.


title: LaTeX aligning different parts of the theorem

text: I'm using                pdflatex test.tex      This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)      restricted \write18 enabled.     entering extended mode     (./test.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class      How can I align parts a) and b) in a theorem like this:               a) For each a prime prime prime prime prime prime prime prime prime         prime prime prime prime prime prime prime      b) For each a prime prime prime prime prime prime prime prime prime         prime prime prime prime prime prime prime      as I got only                  a) For each a prime prime prime prime prime prime prime prime prime      prime prime prime prime prime prime prime        b) For each a prime prime prime prime prime prime prime prime prime      prime prime prime prime prime prime prime      I tried               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{stmaryrd}     \usepackage{euscript}     \usepackage[nottoc,numbib]{tocbibind}     \linespread{1.6}     \begin{document}     \newtheorem{lem}{Lemma}[section]     \begin{lem}     \label{lemTwentyNineTwo}     Let $\lambda$ be the test sentence.          $(a)$ For each $a$ prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime          $(b)$ For each a prime prime prime prime prime prime prime prime prime      prime prime prime prime prime prime prime     \end{lem}     \end{document}


title: The page number is missing from the bottom of the page within the manuscript

text: I am writing my PhD dissertation and I noticed that the last page of the manuscript, right before the bibliography, is missing the page number. All the other pages are numbered correctly, just this one is not. How can I correct this mistake?![enter image description here](http://i.stack.imgur.com/5omop.jpg)               \documentclass{umthesis}      \frontmatter     \maketitle     \copyrightpage        \signaturepage     \chapter{Acknowledgments}       ...     \begin{abstract}       ...     \end{abstract}     \tableofcontents                % Table of contents     \listoftables                   % List of Tables     \listoffigures     \mainmatter      \chapter{Chapter 1}     ...     \chapter{Chapter 2}     ...     \chapter{Chapter 3}     ...     \backmatter  %% <--- mandatory               \interlinepenalty=10000  % prevent split bibliography entries     \bibliographystyle{chicago}     \thispagestyle{empty}     \bibliography{umthsmpl}     \end{document}


title: How to write a source description under the loaded picture?

text: I loaded a picture with screen capture from a PDF book, besides giving the title of this picture, I also need to cite the source of it. How should I do this? I tried put the source in the               \captions{}      But looks aweful, and can't make line break. Please anyone tell me how to do this in a proper way.


title: arrow crossings of curves in xy-pic

text: I want a diagram like ![enter image description here](http://i.stack.imgur.com/ixrLD.jpg) What I can do is               \[      \xy      (-10,0)*+{ml}="ml";     (10,0)*+{mr}="mr";     (-5,13)*+{t}="t";     (10,-10)*+{b}="b";     {\ar@{-}@`{(10,0),(0,10),(-10,0)}|(0.11){\hole}|(0.501)\hole|(0.96){\dir{>}} "ml";"mr"};     {\ar@{-}|(0.5){\hole}|(0.75){\dir{>}} "b";"t"};     \endxy     \]      and get this diagram: ![enter image description here](http://i.stack.imgur.com/pkb1U.jpg) I have the following questions:   1. If I change `|(0.501)\hole` to `|(0.5)\hole`, the right part of arc disappears, why and how to fix it?   2. Making holes by `|(0.501)\hole` only works with `{\ar ... "b";"t"};`. If I use `"b";"t"**\crv{(10,0)&(0,10)&(-10,0)}?(0.501)*{\hole};` instead, the hole can not be seen in the diagram. Am I doing something wrong?   3. Can I use the calculating intersection function, by inserting something like `|!{"b";"t"}\hole`? I had the trouble in applying `!` to the curves.  Thank you!


title: Including .eps figure in PDFLatex

text: This question has been asked a lot, but for reason I cannot get it to work. I'd like to include a `.eps` image in my document - I am using `pdflatex` in `TeXMaker`. Below is the input (I am providing the whole preamble incase there is some interference.               \documentclass[11pt]{article}     \usepackage{times}     \usepackage{graphicx}     \usepackage{epstopdf} %converting to PDF     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{mathtools}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \usepackage[parfill]{parskip}     \setcounter{secnumdepth}{5} %how deep sections are numbers     \usepackage{float}     \usepackage[font={sf,footnotesize},labelfont=bf, justification=justified, singlelinecheck=off]{caption}     \usepackage[font=footnotesize]{subcaption}     \usepackage[scaled]{helvet}      \usepackage{titlesec}      \usepackage[T1]{fontenc}     \usepackage[export]{adjustbox} %for large figures     \usepackage{upgreek}     \usepackage{microtype}     \usepackage{setspace}     \singlespacing     \usepackage[defaultlines=4,all]{nowidow}          \includegraphics[scale=1]{/../model_1_2.eps}       The error I get is: > ! Package pdftex.def Error: File `/model_1_2-eps-converted-to.pdf' not > found.See the pdftex.def package documentation for explanation.Type H for > immediate help.... .../../model_1_2.eps} I hope someone can help.


title: Passing options to loaded package not working with Beamer class

text: I have this :               \documentclass[translator={frenchb}]{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[frenchb]{babel}     \PassOptionsToPackage{frenchb}{translator}     \usepackage{pgfgantt}     \usepackage{tikz}               %\usepackage{concrete}     \usetheme{Goettingen}     \begin{document}     \begin{frame}[fragile]     \uselanguage{French}     \languagepath{French}           \scalebox{.42}{     \begin{tikzpicture} % optional        \begin{ganttchart}[x unit=2.2mm,                            y unit chart=1.2cm,                            time slot format=isodate,                           ]                           {2014-04-14}{2014-07-11}        \gantttitlecalendar{month=name} \\              \end{ganttchart}     \end{tikzpicture}     }          \end{frame}          \end{document}      I can't mange to print the month names in French. Normally I have just to load `translator` package with the `frenchb` option (look at this answer). This package is already loaded by beamer so I tried `\PassOptionsToPackage{frenchb}{translator}` but it's not working. How can I fix that?


title: arrows with edges in tikz

text: I have this tikz figure for my conceputal model. I am trying to have an edged arrow from contextual factors to inputs. Can't figure out how to do it               \begin{figure}[h]          \centering     \begin{tikzpicture}     [node distance = 1cm, auto,font=\footnotesize,     % STYLES     every node/.style={node distance=3cm},     % The comment style is used to describe the characteristics of each force     comment/.style={rectangle, inner sep= 5pt, text width=4cm, node distance=0.25cm, font=\scriptsize\sffamily},     % The force style is used to draw the forces' name     force/.style={rectangle, draw, fill=black!10, inner sep=5pt, text width=4cm, text badly centered, minimum height=1.2cm, font=\bfseries\footnotesize\sffamily}]           % Draw forces     \node [force] (organization) {Organizational Structure};     \node [force, text width=3cm, dashed, below=1cm of organization, fill=red!30] (state) {Police Reform};     \node [force, left=1cm of organization] (input) {Inputs};     \node [force, right=1cm of organization] (output) {Outputs/Outcomes};     \node [force, above of=output] (external) {Contextual Factors};     %%%%%%%%%%%%%%%     % Change data from here          % ORGANIZATION STRUCTURE     \node [comment, above=0.25 of organization] (comment-rivalry) {-Adaptive Organization\\     -hierarchical\\     -horizontal};          % INPUTS     \node [comment, above=0.25cm of input] {-Labor $L$\\     - Capital $K$};          % EXOGENOUS FACTORS     \node [comment, above=0.25 of external] {-Regulatory framework\\ -Socioeconomic factors, \\     -Functioning of the public administration\\     -Organized crime};                    %%%%%%%%%%%%%%%%          % Draw the links between forces     \path[->,thick]      (state) edge (input)     (state) edge (organization)     (state) edge  (output)     (external) edge (output)     (input) edge (organization)     (organization) edge (output);          \end{tikzpicture}      \caption{Conceptual Model}     \end{figure}


title: How to create custom section titles with a "<title> <number>" format in ConTeXt?

text: I am making a book, with chapters titled "Week 1", "Week 2", "Week 3", etc., and sections titled "Activity 1", "Activity 2", "Activity 3", etc., and other sections titled "Presentation 1", "Presentation 2", "Presentation 3", etc.   * The preceding numbers, e.g. "1.1 Activity 1", are not used.   * No other text, e.g. "Week 1 Topic" appears in the text.   * The numbers for sections never reset. Here is a sample table of contents, showing how I hope it will appear:                ______________________     |                      |     |      Contents        |     |                      |     | Week 1               |     |     Activity 1       |     |     Activity 2       |     |     Presentation 1   |     | Week 2               |     |     Activity 3       |     |     Activity 4       |     |     Presentation 2   |     |______________________|      The document occassionally has other orginary chapter and section titles as well. These should get the same font formatting, but otherwise, not be modified, and appear without any number, e.g., using chapter titles "Forward", "Conclusion", and a section title called "Notes":                ______________________     |                      |     |      Contents        |     |                      |     | Forward              |     | Week 1               |     |     Activity 1       |     |     Activity 2       |     |     Presentation 1   |     | Week 2               |     |     Activity 3       |     |     Notes            |     | Conclusion           |     |______________________|      I have tried my own solution, by removing the preceding numbers using `\setuphead[chapter][number=no]`, creating counters, e.g. `\definenumber[weekcount]`, then defining custom macros which call for chapter titles to use these counters, however, my solution does not work:               \definenumber[weekcount]     \definenumber[activitycount]     \definenumber[presentationcount]     \setnumber[weekcount]{1}     \setnumber[activitycount]{1}     \setnumber[presentationcount]{1}     \define\week{\chapter{Week~\getnumber[weekcount]}\incrementnumber[weekcount]}     \define\activity{\section{Activity~\getnumber[activitycount]}\incrementnumber[activitycount]}     \define\presentation{\section{Presentation~\getnumber[presentationcount]}\incrementnumber[presentationcount]}     \setuphead[chapter][number=no]     \setuphead[section][number=no]     \starttext         \week             \activity                 This is some text.             \activity                     This is some text.             \presentation                 This is some text.         \week             \activity                 This is some more text.             \activity                 This is some more text.             \presentation                 This is some more text.     \stoptext      This results in this:                ______________________     |                      |     |      Contents        |     |                      |     | Week                 |     |     Activity         |     |     Activity 1       |     |     Presentation     |     | Week                 |     |     Activity         |     |     Activity 1       |     |     Presentation     |     |______________________|      If you remove `\setuphead[chapter][number=no]`, results are also unusual:                ______________________     |                      |     |      Contents        |     |                      |     | 1. Week 1.           |     |  1.1 Activity 1.     |     |  1.2 Activity 1.1    |     |  1.2 Presentation 1. |     | 2. Week 2.           |     |  2.1 Activity 2      |     |  2.2 Activity 2.1    |     |  2.3 Presentation 2. |     |______________________|        * Why is the numbering of the counters appear in this manner, when used inside section titles?   * How can I create custom chapter titles using a "Week " format, and similarly formatted section titles?


title: OpenType MPlib labels with luatex-plain

text: I am trying to get the `luamplib` to work with the `luatex-plain` -format. I installed BasicTeX2014, and then did `tlmgr install context`. Then I did `luatex --ini /usr/local/texlive/2014basic/texmf- dist/tex/generic/context/luatex/luatex-plain.tex`, and moved the generated `.fmt` to `~/Library/texlive/2014basic/texmf-var/web2c/luatex`. I already had a soft link in my `~/bin/luatex-plain` to `/usr/texbin/luatex` from last year. Now, with a TeX document such as               \mplibcode     beginfig(1);     label.rt("sup", origin);     endfig;     \endmplibcode          \bye      I get `Illegal unit of measure (pt inserted).` in the log file, pointing to the expansion of the macro `\MPLIBtextext` as               l.4 ...{s}\hbox{u}\hbox{p}}{0}{-2.9448582181895e-05}      Surrounding the `sup` with `btex`/`etex` instead of double quotes, I get an error message informing me I should use those only with files, so I assume double quotes is the way to go. Can you tell if I am doing something wrong here?


title: Command txs:///dvipng not defined?

text: After I installed texstudio and texlive on my linux mint 16 os, I received the following error when I compiled using pdfLatex:               Command txs:///dvipng not defined     Segmentation fault      What additional packages must I install?


title: Spacefactor & Unicode Curly Quotes

text: Unicode curly quotes seem not to have the correct space factor. Consider the following minimal example ( _not_ using french spacing):               \documentclass[12pt]{minimal}     \usepackage[utf8]{inputenc} % Or fontspec with XeLaTeX/LuaLaTeX     \begin{document}          Compare:          ``Is the spacing correct?\@'' he asked. % Yes, as it should be          ``Is the spacing correct?'' he asked.   % No, as it should be          “Is the spacing correct?\@” he asked.   % Yes…          “Is the spacing correct?” he asked.     % Yes -- but it shouldn’t be     \end{document}      Is there a way—either in PDFLaTeX or XeLaTeX/LuaLaTeX—to give the Unicode curly quotes the same space factor (sfcode 0) as the straight quotes have?


title: horizontally center table

text: Strangely in this MWE the table is shifted to the left but in my original document I have exactly the same code but the table is centered. Can anyone solve the mystery?               \documentclass{article}          \begin{document}          \begin{table}[H]     \caption{Robustness checks---Organised events}     \begin{tabular}{lc} \hline     VARIABLES & Org. event \\ \hline      &  \\     Price shock & -0.212 \\      & (0.177) \\      &  \\     Observations & 2,226 \\     Number of city\_group & 37 \\     R-squared & -0.021 \\ \hline     \multicolumn{2}{c}{ Robust standard errors in parentheses} \\     \multicolumn{2}{c}{ *** p$<$0.01, ** p$<$0.05, * p$<$0.1} \\     \end{tabular}     \end{table}          \end{document}


title: Tikz rectangle shaped arrows

text: I have a problem with the placement of labels on "rectangle shaped" arrows. I would like to place the labels middle and most right or left on the most right and left arrows respectively. Does anyone know how to do this? Thanks!! **My code**               \begin{center}      \begin{tikzpicture}      \matrix(cd)[matrix of math nodes,       row sep=2.6em, column sep=2cm,        text height=1.5ex, text depth=0.25ex]{       F_0a & F_0b \\        F_1a & F_1b \\        F_2a & F_2b \\     };      \draw[->] (cd-1-1) edge node[label=above:$F_0f$] (U) {} (cd-1-2);      \draw[->] (cd-2-1) edge node[label=above:$F_1f$] (V) {} (cd-2-2);      \draw[->] (cd-3-1) edge node[label=below:$F_2f$] (W) {} (cd-3-2);      \draw[->] (cd-1-1) edge node[label=left:$t_a$ ] (U) {} (cd-2-1);      \draw[->] (cd-2-1) edge node[label=left:$t'_a$] (V) {} (cd-3-1);      \draw[->] (cd-1-2) edge node[label=right:$t_b$ ] (W) {} (cd-2-2);      \draw[->] (cd-2-2) edge node[label=right:$t'_b$] (U) {} (cd-3-2);      \draw[->] (cd-1-1.west) -| ++(-.5,0) node[label=left :$(t'\circ t)_a$] {} |- (cd-3-1.west);      \draw[->] (cd-1-2.east) -| ++(.5,0)  node[label=right:$(t'\circ t)_b$] {} |- (cd-3-2.east);      \end{tikzpicture}      \end{center}


title: Axis break in pgfplots - Large box around plot

text: I had the same problem as TSGM: Axis break in pgfplots I wanted to break the y-axis in a plot. I have tried the solution, which Michi had suggested on Axis break in pgfplots. It worked fine for me, except one litte problem: The plot I have created takes a whole page and there is no caption below it. The box around the plot gets very long: ![enter image description here](http://i.stack.imgur.com/DJRB0.jpg) I have used the below code to create the plot:               \documentclass{article}       \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{pgfplots.groupplots}          \begin{document}     \pgfplotsset{         every non boxed x axis/.style={}      }     \fbox{     \begin{tikzpicture}[scale=1.0]          \begin{groupplot}[     scaled ticks=false,         group style={                    group name=my fancy plots,             group size=1 by 2,             xticklabels at=edge bottom,             vertical sep=0pt         },         legend cell align=left,         legend pos=north west,         legend style = {font=\footnotesize},             width = 0.9\linewidth,         xtick=\empty,         yticklabel={\footnotesize ~\pgfmathparse{\tick*100}\pgfmathprintnumber{\pgfmathresult}\%}     ]          \nextgroupplot[ymin=0.95,ymax=1.05,                    ytick={1},                    axis x line=top,                     axis y discontinuity=parallel,                height = 0.3\linewidth,     ]     \addplot+[no marks,                          mark options={fill=black, color = black},                         color = black,                         mark size = 1] table                         {data1.dat};         \addplot+[only marks,                         color = blue,                         mark = *,                         mark options={fill=blue},                         mark size = 1.5,                         error bars/.cd,                         error bar style={color=blue},                         y dir = both,                         y explicit,                         x dir = none] table[x index={0},y index={1}, y error plus index ={2}, y error minus index ={3}]{data2.dat};           \legend{~R,~TRC}                  \nextgroupplot[ymin=-0.005, ymax=0.015,                    ytick={0,0.01},                    axis x line=bottom,                                  ylabel={\qquad\footnotesize Anzahl der Dissecting-Kanten},                                 xlabel={\footnotesize Testinstanzen},                                 height = 0.4\linewidth,                              ]     \addplot+[no marks,                          mark options={fill=black, color = black},                         color = black,                         mark size = 1] table{data1.dat};             \addplot+[only marks,                         color = blue,                         mark = *,                         mark options={fill=blue},                         mark size = 1.5,                         error bars/.cd,                         error bar style={color=blue},                         y dir = both,                         y explicit,                         x dir = none] table[x index={0},y index={1}, y error plus index ={2}, y error minus index ={3}]{data2.dat};           \end{groupplot}     \end{tikzpicture}     }     \end{document}      Does someone have a idea about this problem? I really appreciate your help! :) Cheers, Alex * * * Some example data files: data1.dat:               0   1.000000     1   1.000000     2   1.000000     3   1.000000     4   1.000000      data2.dat:               0   0.0056  0.0045  0.0044     1   0.0052  0.0046  0.0038     2   0.0055  0.0040  0.0035     3   0.0053  0.0034  0.0039     4   0.0049  0.0042  0.0032


title: Formatting chapter style in REPORT document class

text: * * * I am trying to write my Thesis using LaTeX. I am using the `report` document class. I have created multiple TeX files (one each for abstract, acknowledgment, and chapters) using 'chapters'. When I use the `titlesec` package to format the chapter heading it applies to the whole document changing even the table of content, list of figures and list of tables. I want to keep the default chapter heading style for `frontmatter` and use a custom chapter style for the `mainmatter` **Is there a way to apply different chapter style (default/multiple custom styles) to different chapters in the same document? Something similar to`pagestyle`!** * * *


title: Latex Presentation: letting bullets appear

text: I am using latex to create a document in the beamer class. Say I have a frame with three bullets. In order to keep the attention of my public, I would like to start with only the first bullet and then advance to the next two bullets by letting them appear after I click on the mouse/pointer. In Powerpoint I would do this by using one slide and letting the additional bullets appear via the appearance option. However, the only way I can think of to do this in Latex, is making three different frames: one with one bullet, the second with two bullets and the third with three bullets. This is unhandy and furthermore (I am using `\usetheme{Darmstadt}`) every frame is given a different circle in the contents in the upper part of the frame, such that I get way too many circles. Any smart ways to resolve this?


title: Prevent ibid tracking in natbib

text: I want to prevent `natbib` from replacing a list of author names by a long dash, which is the default behavior for citations with the same authors. Why? Because I'm using `\bibentry` to place full citations in a CV and actually want the full citation. I'm using packages `bibentry`, `natbib` and the `amnatnat.bst` style. First post, sorry for the lack of fancy formatting, links, etc... UPDATE: Can I modify the following function in amnatnat.bst to prevent the substitution?               FUNCTION {name.or.dash}     { 's :=        oldname empty$          { s 'oldname := s }          { s oldname =              { "---{}---{}---" }              { s 'oldname := s }            if$          }        if$     }


title: How to remove image of tree in beamer progressbar theme

text: When I run:               \documentclass[color=option]{beamer}     \mode<presentation>          \usepackage[english] {babel}     \usepackage{amsmath, amsfonts, graphicx}     \usepackage{bibunits, tikz}          \usetheme{Antibes}     \useoutertheme{progressbar}     \useinnertheme{progressbar}     \usecolortheme{progressbar}     \usefonttheme{progressbar}          \progressbaroptions{headline=sections, frametitle=normal}      gives following error:               [1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <./ima     ges/tree04.jpg>] (./Carro_and_Mira_real_v6.toc)     ! Missing } inserted.     <inserted text>                      }     l.34 \end{frame}      Using               \progressbaroptions{headline=sections, title=normal}       executes, but the tree remains. The previous entry under this topic did not fix. I also deleted the image from the tree image from the file. Any help is greatly appreciated. Thanks.


title: Is there a tool/service that can enrich a BibTex database?

text: For my PhD thesis I'm using a BibTex database that I have used and extended over the years. However, over time I 'abused' it by deleting fields instead of creating copies and keep the main database with original entries. I'm using JabRef but as far as I know this does not have an option or plug-in to mass "search and merge" my entries with 'correct' entries from other sources, whilst keeping keys intact. Does anyone know if such a tool or service exists? (since I'm in the field of computer science, a DBLP-specific service would already help me out big time)


title: \BeforeBeginEnvironment not doing anything?

text: I'm attempting to do something similar to Two column glossary, making an extant glossary style wrap into multiple columns. I've followed the suggestion in the comment to the first answer, i.e. use `etoolbox` to put the `theglossary` environment inside `\multicols`. The problem is, only the `\AfterEndEnvironment` seems to be doing anything. This code:               \documentclass{article}     \usepackage{glossaries}         \setacronymstyle{long-sc-short}     \newacronym{acr}{acr}{Acronym}     \makeglossaries     \newglossarystyle{twocollong}{         \glossarystyle{long}         \BeforeBeginEnvironment{theglossary}{\begin{multicols}{2}}         \AfterEndEnvironment{theglossary}{\end{multicols}}         }     \begin{document}     Text text      \acrshort{acr}      text text          \printglossary[style=twocollong]          \end{document}      gives me the error that '`\begin{document}` is ended by `\end{multicols}`'. Commenting out only the `\AfterEndEnvironment` line (and leaving in `\BeforeBeginEnvironment`) gives me a working document - no errors about `\begin{multicols}` being ended by `\end{document}`. It seems as if `\BeforeBeginEnvironment` isn't inserting anything at all. What am I doing wrong here?


title: How to horizontally merge two symbols?

text: This is a very short question and hopefully there's a short answer. I know I can use `\stackrel{top}{bot}` to vertically merge two symbols into one with `top` on top and `bot` on the bottom. Is there something similar for left- right merging? I ask because I want to make a `+=` symbol (for an additive update step in code). If there's already a symbol for that, that would be OK too.


title: How to prevent breaklines inside \cvcomputer in moderncv

text: I'm writing my CV in Latex using the package `moderncv` and I've realized that the default behavior of the `\cvcomputer` command is to insert automatic breaklines inside the text, making it about as long as half of the page's width. Is there a way to prevent the command from inserting breaklines and make it use all the available page space?


title: Pages in beamer are incorrectly numbered when using "show notes on second screen"

text: I'm using `beamer` to create a presentation, and want to use the mode "show notes on second screen". Unfortunately, there seems to be a bug: when I turn it on, the page numbers are shifted one page up, so page 1 becomes 2, 2 becomes 3, and so on, with the last page number being repeated. With overlays, the numbers also shits one position, so the previous page of the overlay, and the last one has incorrect number. I attach a minimum sample file: just check the PDF page numbers. By commenting the line `\setbeameroption{show notes on second screen=left}`, the numbers work fine; when adding it, the numbering fails.               \documentclass{beamer}          \usepackage[spanish]{babel}          \usepackage{pgfpages}          \setbeameroption{show notes on second screen=left}          \begin{document}          \begin{frame}     First frame (should be 1)     \end{frame}          \begin{frame}     Second frame (should be 2)     \end{frame}          \begin{frame}     Third frame (should be 3)\\          \pause     Also third frame (should also be 3)     \end{frame}          \begin{frame}     Fourth frame (should be 4)     \end{frame}          \end{document}


title: How can I get all paragraphs in a block to have a hanging indent?

text: I have a manual bibliography (i.e. not bibtex) that I'd like to indent with hanging indent (only second, third, etc, lines). Ideally, I'd like not to have to do this with a command on each line, but for the whole block, like `\begin{hangingindent}` and `\end{hangingindent}`. How do you do that?


title: Spacing behavior changes with empheq

text: If I replace an `align*` environment with the `empheq` environment (of `align*` flavor) the spacing behavior changes: With `empheq` the spacing depends on the amount of text in the last line of the previous paragraph, with `align` it does not (see mwe). How can I make `empheq` behave just like `align` without messing around with the spacing manually? The reduced spacing may be a good thing for small equations (as in the mwe), but if I use `empheq` my equations are always large enough that I feel the extra space is a good thing..               \documentclass{article}     \usepackage{blindtext}     \usepackage{empheq}     \begin{document}          \blindtext     \begin{empheq}{align*}     f(x) = x^2 % less spacing than align     \end{empheq}          \blindtext Test test test test test test test.     \begin{empheq}{align*}     f(x) = x^2 % more text on last line of paragraph => same spacing as align     \end{empheq}          \blindtext     \begin{align*}     f(x) = x^2     \end{align*}          \blindtext     \end{document}      Edit. Just to be clear: It's not so much that I dislike the fact that the environment is sensitive to its surrounding, with a little more space I would even prefer this. But I use `\[ .. \]` or `align*` for my other equations and the inconsistent spacing is really noticeable and makes my other equations stand out.


title: Cross-reference between two tex files WITHOUT preamble?

text: I have a "structure" file `paper.tex` that inputs two section `.tex` files, `A.tex` and `B.tex`. Both `A.tex` and `B.tex` do not have any preambles. i.e. they are simply two snippets. All the preambles are in `paper.tex`. I now wish to cross-refer a figure in `A.tex` from `B.tex`. How may I do this? This answer here suggests using               \usepackage{xr}     \externaldocument{chapterI}      But I think it won't work in my case, as the preambles are not allowed in `A.tex` and `B.tex`.


title: White-colored text and black background using the article class

text: I'm using the `article` class to generate an exam paper. In this exam paper, I want the subject header to be bold and centered aligned as shown in the picture below: ![enter image description here](http://i.stack.imgur.com/YssFv.png) I tried a couple of options as mentioned in other posts, e.g. this one. Is there any way to get the same text effect with the `article` class without use of any extra package (like `verbatim`)?


title: vertical alignment at the start of each section

text: I need to center vertically the start of the section. Here is my code:               \documentclass{article}          \usepackage[english]{babel}     \usepackage{sectsty}          \let\stdsection\section     \renewcommand\section{\newpage\stdsection} %starts each section on a new page     \sectionfont{\raggedleft}                  %section title to the right               \begin{document}        \section{Introduction} Some text here        \section{Materials and Methods} More text here        \section{Conclusion} Finish!!!     \end{document}


title: Figure between title number and title

text: I'm using `titlesec` package and `\titleformat` command in `display` shape mode. (Unfortunately I am forced to do it, it's the format required for MSc thesis in my university...). The command in my .cls file is:               \titleformat{name=\subsection}     [display]     {\penalty -4000\singlespacing\large\arial\bfseries}     {\thesubsection}     {0pt}     {\autolabel}      I'm getting some odd results, like, title number and title in different pages and even figures placed between title tumber and the title itself. How do I avoid that?


title: TeXMaker compilation error, Font OT1/ptm/bx/n/20.74=ptmb7t at 20.74pt not loadable: Metric (TFM) file not found

text: when I am compiling any TeX document in my TeXMaker, it is giving me the following error message. `Font OT1/ptm/bx/n/20.74=ptmb7t at 20.74pt not loadable: Metric (TFM) file not found.` I am using Linux.


title: Synchronization between the typseset PDF and the editable file fails on OC 10.9.3

text: I have identical `.tex` files on my MacPro (OS 10.6.8) and MacAir (OS 10.9.3), and the same TexShop application on each. PDF synchronizes with the `.tex` file on my the old machine, but won't synchronize on the new MacAir. What is the problem?


title: Robert Sedgewick - Algorithms Fourth Edition Style in LaTeX

text: Recently, I've read "Algorithms" (in Java) - Fourth Edition by Robert Sedgewick. Aside the useful and interesting contents of the book, I was also captivated by book's style. Later on, I read some papers written by this professor and really like his typesetting style. Here is an example. I know that this style should be complicated in settings... However, is there anyone has ideas about how to make papers similar to this style.


title: Adding color package destroys listing centering

text: I am using @egreg's answer to make listings centered:               \documentclass[a4paper]{book}     \usepackage[T1]{fontenc}          \usepackage[       hang,       small,       it,       hypcap=true     ]{caption}     \usepackage{fancyvrb}     \usepackage{listings}     \lstset{       fancyvrb=true,     }     \usepackage{varwidth}          \lstset{         basicstyle=\linespread{0.94}\ttfamily,         fancyvrb=true,         captionpos=b     }          \begin{document}          \begin{center}     \begin{varwidth}{\linewidth}     \begin{lstlisting}     trait Sys[S <: Sys[S]] {       type Tx     <: stm.Txn[S]       type Var[A] <: stm.Var[S#Tx, A]       type ID     <: stm.Identifier[S#Tx]       type Acc       ...     }     \end{lstlisting}\end{varwidth}     \captionof{lstlisting}{I want to be centered}\label{lst:label2}     \end{center}          \end{document}      This looks ok at first: ![enter image description here](http://i.stack.imgur.com/3g0X1.png) **However** : Something odd happens. When I add the `color` package, the alignment is broken:               \usepackage{color}  % add somewhere to above document      Result: ![enter image description here](http://i.stack.imgur.com/02sQk.png) Please help. I need to include the color package. How can it break the alignment?


title: biblatex: How can I get \citetitle to be registered in the ibidtracker?

text: In `biblatex` author-title, I use `\citetitle` to refer to dictionaries I cite often: when citing the _Oxford English Dictionary_ , for instance, you don't want to have to print an editor alongside the title at every citation, as is done in short form citations. However, `\citetitle` doesn't seem to be tracked by `ibidtracker`, so there's a risk of false ibids. How can I include `\citetitle` events in the `ibidtracker` count? (Alternative ways of citing just the title of a work, or some custom shorthand, are also welcome.)               \documentclass{book}     \usepackage{fontspec}     \usepackage[style=american]{csquotes}     \usepackage{polyglossia}     \usepackage[style=authortitle-ibid,ibidtracker=strict]{biblatex}          \setdefaultlanguage{english}          \begin{filecontents}{book.bib}     @Book{nussbaum,       sorttitle   = {Aristotle's De Motu Animalium},       author      = {Nussbaum, Martha},       title       = {Aristotle's \mkbibquote{De Motu Animalium}},       publisher   = {Princeton University Press},       location    = {Princeton},       date        = {1978},     }          @reference{onp,        editor = {Helle Degnboll},        title = {A Dictionary of Old Norse Prose},        shorttitle = {ONP},        location = {Copenhagen},        publisher = {Den arnemagnæanske kommission},        date = {1989/}     }          \end{filecontents}     \addbibresource{book.bib}          \begin{document}          Statement one\footnote{\cite[55]{nussbaum}; \citetitle[s.v. \mkbibquote{hestr}]{onp}.},      statement two\autocite[but this entry should not read \emph{ibid.}]{nussbaum}.          \end{document}      ![Ibid demonstration](http://langeslag.org/images/sx/citetitle-ibid.png)


title: How to change xticklabel or yticklabel style to Percentage?

text: When using `tikzpicture` in the `pgfplots` package, how can I change use PERCENTAGE for xticklabel or yticklabel. Here is a simple example:               \documentclass[a4paper]{article}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}         \begin{axis}[             xlabel=Cost,             ylabel=Rate]         \addplot[color=red,mark=x] coordinates {             (2,0.003)             (3,0.004)             (4,0.005)     };         \end{axis}     \end{tikzpicture}     \end{document}      How can I change the yticklabel to percentage style: i.e. 0.3%, 0.4%, 0.5%, etc. I checked the documentation `pdfplots.pdf` and `pdfplotstable.pdf`. There are many Number Printing Settings available but I couldn't find anything that can covert the numbers to percentage style. Thanks to all for your help! This is what I have right now. It still has problems.               \documentclass[a4paper]{article}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}         \begin{axis}[             xlabel=Cost,             ylabel=Rate,             scaled ticks=false,             yticklabel=\pgfmathprintnumber{\tick}\,\%,             yticklabel style={/pgf/number format/.cd,fixed,precision=3}]         \addplot[color=red,mark=x] coordinates {             (2,0.003)             (3,0.004)             (4,0.005)     };         \end{axis}     \end{tikzpicture}     \end{document}


title: Formatting keywords, data in algorithm2e

text: I am just wondering if there is a way to reference the keyword data outside the algorithm in algorithm2e package. For example, given the example in algorithm2e, if I want to reference \KwData{this text} in my text outside the algorithm, how should I do it?               \begin{algorithm}[H]     \SetLine     \KwData{this text}     \KwResult{how to write algorithm with \LaTeX2e }     initialization\;     \While{not at end of this document}{     read current\;     \eIf{understand}{     go to next section\;     current section becomes this one\;     }{     go back to the beginning of current section\;     }     }     \caption{How to write algorithms}     \end{algorithm}


title: "Title page" for section

text: I want to modify the section headers. Every time I create a new section, I want a simple card (something similar to a title page: something like the first answer on this question Creating a titlepage) to be inserted. Is there a package that already lets me do this, or do I have to muddle around with the code? Any pointers in the right direction would be very much appreciated!


title: Strange bug with hyperref, percent symbol and cyrillic character

text: I minimized it to the following snippet:               \documentclass{article}     \usepackage{hyperref}     \begin{document}     \section{\%н}     \end{document}      When I compile it:               xelatex test.tex      the first run compiles fine, but on the second run it complains:               Runaway argument?     {     ! File ended while scanning use of \@@BOOKMARK.     <inserted text>                     \par     l.3 \begin{document}      If I remove either `hyperref`, or percent sign, or cyrillic char, it compiles fine. I observe this behavior only on TeXLive 2012 distribution - 2009 distribution works just fine. What is the problem?


title: \newenvironment does not work

text: I have created a new environment using this commands:               \newenvironment{eqs}         {\begin{subequations}\begin{align}}         {\end{align}\end{subequations}         }      I would like to combine subequations and align environment together, but it just does not work. Any thought would be appreciated.


title: Which one should be chosen for making a transposition of matrices: `fourIdx`, `leftidx`, `tensor`, `subsupscripts`, `mathtools`?

text: I want to get a transposition symbol of matrices like `^t(1 2 3)`, as title. I used the macro `\prescript` (in mathtools) at present. There is no any problem occured, these packages' macros work well. I just want to know whether there is some rules to help distinguishing them.


title: Extensible injection arrow

text: I want to label an `\rightarrowtail`, but the arrow is too short for my label. So I want an extensible version of this arrow. I've tried the extpfeil package, but am not sure how to use it to create my arrow. At present, I would know how if I had an arrow-like symbol that looked like the following:               " >-- "      However, I am unaware of any such symbol. Detexify and the symbol list don't seem to have it either. How should I make my arrow?


title: Garamond font with LaTeX

text: Is there any package that allows to use Garamond font with LaTeX documents that are generated with `pdflatex`? If so:   1. Does this package allow to use font for commercial purposes for free?   2. If not, is there any other way to use that font for commercial purposes with LaTeX document? If so, where license could be obtained for it? I thnk ebgaramond package meets my criteria, but I am not sure.


title: Justify hebrew text

text: I want to justify hebrew text but cannot do so , i have added centering for a heading. even when i remove centering the text is not justified               \documentclass[hebrew]{article}     \usepackage[a4paper,nohead,twoside,top=2.5cm,bindingoffset=1.5cm,hmargin=2.5cm]{geometry}          \usepackage[utf8x]{inputenc}     \usepackage{babel}     \begin{document}     \clearpage     \thispagestyle{empty}     \selectlanguage{hebrew}        \centering               מחקר זה בוצע בפיקוחו של פרופסור דפנה ויס, הפקולטה להנדסה ביו רפואית, פרופסור נח לוטן, הפקולטה להנדסה ביו רפואית ופרופסור יורם ברעם, הפקולטה למדעי מחשב , בטכניון, המכון טכנולוגי לישראל.            \\[0.3in]                  \textbf{\Large \textsc{ תודות}}             \\[0.1in]          אני מודה לפרופסורים להדרכה, הסבלנות והאמונה בי שלהם.      אני מודה להוריו ואחות  שנתנן לי  תמיכה  רגשית      . ואחרון אך לא פחות חשוב את החברים וקרובי המשפחה שהיו שם  תמיד בשבילי.     \\\hfill               הכרת תודה מסורה לטכניון על מימון מחקר זה.          \end{document}


title: Is it possible to flush left equations using "numcases" or "subnumcases"?

text: I am wondering if it is possible in LaTeX to flush left equations when using the `numcases` or `subnumcases` environment provided by the `cases` package. Hereafter I include a bit of code to explain the problem.               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[fleqn]{mathtools}     \usepackage{cases}          \begin{document}     \begin{equation}     \tau = k \cdot i_a     \end{equation}     \begin{numcases}{v_a = }     v_s - k_1 \cdot (i_a - i) & if ia\\     v_p     &   if ia $\le$ i     \end{numcases}     \begin{subnumcases}{v_a = }     v_s - k_1 \cdot (i_a - i) & if ia\\     v_p     &   if ia $\le$ i     \end{subnumcases}     \end{document}      Compiling this code, you will see that the first equation is flushed left while the other two are not. I would appreciate any suggestions.