title: How can I add version control info (to footers say?)

text: I'd like to keep track of revisions to a document and I use version control software for basically everything (SVN by the way, monotonically increasing revision numbers are their own reward). I want to add SVN tags like `$Id$` for example, SVN will then replace this (if the property is set) with the revision's ID. I'd be nice to show this somehow if only so I can keep track of things more easily. Ideally I'd like to have this info below the title, a list of the files that make up the document (a list of these IDs) I am using subfiles to allow this to span multiple tex files if that helps. I am hoping for an easy/canned way of doing this. I'd like to then compile the document a certain way and have none of this info shown. I did some searches for LaTeX pre-processor (so I could define a constant if I wanted this info for example) but I'd then have to search for displaying info on the front (which can be done, contents pages prove this) and stitch it all together. I doubt I am the first to want to do this, so rather than reinvent the wheel, I ask you lot.


title: pstricks-doi package conflict?

text: The following does not work:               \documentclass{minimal}          \usepackage{doi}     \usepackage[pdf]{pstricks}          \begin{document}       hello world       \begin{pspicture}(1,1)         \psline(0,0)(1,1)       \end{pspicture}     \end{document}      However, loading the `doi` package after `pstricks` does:               \documentclass{minimal}          \usepackage[pdf]{pstricks}     \usepackage{doi}          \begin{document}       hello world       \begin{pspicture}(1,1)         \psline(0,0)(1,1)       \end{pspicture}     \end{document}      Why? Particularly, are there any caveats that I should be aware of? Thanks in advance.


title: mdframed with tikz-framework: roundcorner-keyword seem not to work completely

text: I got a similar problem to How to draw frame with rounded corners around box I try to make round boxex for a poster presentation, I could nearly succeed using mdframed-package with tikz-option. But the innerline is almost not rounded and I can't see the reason why. Some small example-code:               \documentclass{beamer}     \usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}          \usepackage[absolute,overlay]{textpos}     \usepackage[framemethod=tikz]{mdframed}          \tikzset{contour/.style = {rounded corners = 2ex}}          \definecolor{posterbackground}{RGB}{255,245,225}    %beige     %\definecolor{blockborder}{RGB}{0,128,0}    %green     %\definecolor{blockborder}{RGB}{0,0,0}      %black     \definecolor{blockborder}{RGB}{235,235,235} %light grey          \mdfdefinestyle{frameborderstyle}%     {innerlinewidth=0.1em, innerlinecolor=black, middlelinewidth=1.0em, middlelinecolor=blockborder, outerlinewidth=0.1em, outerlinecolor=black, frametitlerule=false, innertopmargin=\topskip, backgroundcolor=posterbackground, roundcorner=0.5em}     %{outerlinecolor=blockborder, outerlinewidth=10pt, innerlinewidth=5pt, backgroundcolor=posterbackground, roundcorner=50pt}     \newenvironment{textframe}[4][]%     {\colorlet{currentcolor}{.} \fboxrule0.2em\fboxsep1.0em \begin{textblock*}{#2}(#3,#4) \begin{mdframed}[style=frameborderstyle, frametitle=#1]}     {\end{mdframed} \end{textblock*} \vspace{2.0ex}}          \begin{document}      \begin{frame}{blabla}      \begin{textframe}{1500pt}{50pt}{670pt}       this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame this is written in a textpos-frame      \end{textframe}      \end{frame}     \end{document}      ![inner corners stay edged even after using of roundcorner- keyword](http://i.stack.imgur.com/a7l3H.png) What am I doing wrong?


title: Undefined Control Sequence - setmarginsrb

text: I wanted to modify the margins of my LaTeX document. Here's the commande I wrote:               % Margins     \renewcommand{\baselinestretch}{1.5}     \setmarginsrb{4.5cm}{2.5cm}{3.5cm}{2.5cm}{0pt}{0pt}{0pt}{0pt}          \begin{document}      I set "0pt" to the last 4 parameters because I didn't want to change their values from default. The command seems to work when I compile, but I have an error: > The control sequence at the end of the top line of your error message was > never \def'ed. If you have misspelled it (e.g., `\hobx'), type`I' and the > correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget > about whatever was undefined. Also it created a new page at the beginning of my document with "4.5cm2.5cm3.5cm2.5cm0pt0pt0pt0pt". Code: http://pastebin.com/X6d7jFPe How can I fix that?


title: Algorithm2e error reserved keyword

text: With the following code:               \documentclass{article}     \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)     \usepackage[plain,noend,noline,boxed]{algorithm2e}      \begin{document}     \begin{algorithm}     \SetKwData{Property}{property}\SetKwData{Shape}{shape}\SetKwData{Game}{game}\SetKwData{Event}{event}          \KwData{A \Game, an \Event, a \Shape, and a \Property that changed}     \KwResult{The code modifications that can change the \Property to its new value according to the game state}          \caption{\Property.template.matches \label{templatematch}}     \end{algorithm}          \end{document}      I end up with the following unreadable error (compiling with Texlipse with a basic MikTex installation on Windows 7)               Argument of \@caption has an extra }. ...ty.template.matches \label{templatematch}} (followed by: ) document.tex    /TestLatex  line 10 Texlipse Build Error     Paragraph ended before \@caption was complete. ...ty.template.matches \label{templatematch}} (followed by: )    document.tex    /TestLatex  line 10 Texlipse Build Error      Why do I get this error? What does it mean? I was not able to correct it. It was working before, I don't know what changed. Cheers, Mikaël


title: Does tlmgr show the actual package versions?

text: Today I installed TeXLive 2013 next to 2012 and updated all the PATHs to point to 2013. My main motivation for updating is the new version of LuaTeX. When calling `luatex -v` in a terminal, I also see that I now indeed have the latest version (`beta-0.76.0-2013061708 (TeX Live 2013) (rev 4627)`). However, when I open `tlmgr` it says I rather have `0.70.1`. See the screenshot below: ![TLMGR and terminal show different versions.](http://i.stack.imgur.com/5Ejzg.jpg) My question is now: does `tlmgr` actually show the correct package versions? Is anything going wrong here?


title: psplot: square root of negative number

text: Is there a possibility to have `psplot` automatically _ignore_ an invalid range? Example:               x 2 sub sqrt      This cann't be plotted requesting `\psplot{0}{10}`, but only when using `\psplot{2}{10}`. Of course my formula is more complicated than this and there can be the case that there are several intervals where there can be `(negative number) sqrt`. On top of that I'm using `\multido`, so it would be really annoying if I would have to find every point where there would be the case of `-1 sqrt`... What I would like, how it should behave in my opinion: It should only plot the real value of the function and skip the imaginary ones. edit: MWE (not working because of the negative square root):               \documentclass[pstricks]{standalone}     \standaloneconfig{border=1cm}     \usepackage{pstricks,multido,pst-func}          \begin{document}     \begin{pspicture}(10,6)          \psaxes[labels=none]{->}(0,0)(10,6)     \multido{\n=1.1+.1}{20}{%     \psplot[linecolor=red,linewidth=.5mm]{0}{9}{5 2 3.1416 mul div \n\space 2 exp x 10 mul sin 2 exp mul 1 sub sqrt mul}     }          \end{pspicture}     \end{document}


title: Trouble using pgfmathsetmacro in foreach loop more than once

text: I'm trying to draw a series of lines where the x-coordinate is given by a geometric sequence, as in the following example:               \begin{tikzpicture}         \foreach \i in {0,...,3}             \pgfmathsetmacro{\result}{7-pow(2,-\i)}             \draw [red, ultra thick] (\result,3) -- (\result,5);             \draw [blue, ultra thick] (\result,2.5) -- (\result,3);             \draw [green, ultra thick] (\result,5) -- (\result,5.5);     \end{tikzpicture}      However, I can't seem to use `\result` more than once. If I comment out 2 of the `\draw` lines it works, yet if 2 or more `\draw` lines are uncommented I receive an error:               ! Undefined control sequence.     <argument> \result


title: Schedule in LaTeX

text: I'm looking for a way to type a weekly schedule in LaTeX. The only problematic part is that it's possible that there is overlap in entries. I looked at “LaTeX Classes or Styles for Schedules and/or Calendars?” but it's not the type of schedule/calendar I'm looking for. I also looked at the `schedule.sty` package but it doesn't provides a way to deal with overlapping entries. An example of entries in this schedule would be:               Monday 8am to 12am: Virtual Reality,     Monday 8am to 10am: Real time networks,     Monday 1pm to 4pm : ESOA, ...      ![Example of output based on the entries above](http://i.stack.imgur.com/MJbFL.png) Does anyone has a way to generate weekly schedules with LaTeX ?


title: Recommendations for an academic abstract template

text: Can you point me to some examples of stand-alone abstract layouts? (I mean abstract in the 'academic' context here). I am submitting an abstract to a conference which does not provide a template. They suggest submitting a word doc or pdf - and I wanted to use Latex to produce this. I've search online and found this but not some of the associated files. I've previously used the IEEE one, and dislike it - I'm wondering if there are any other commonly used abstract templates that I have missed. The submission is to a scientific (engineering) conference and is 300-400 words.


title: Italics in the enumerate environment

text: I want to use italics in the enumerate environment. I want to have the following output: > _(a)_ Text1   >  _(b)_ Text2   >  _(c)_ Text3 I am using:               \begin{enumerate}[(a)] \end{enumerate}      How do I change this to get the desired results?


title: KOMA-Script Chapter Headings

text: How can I change the default KOMA-Script chapter heading style to the default classes' style? Specifically, how do I turn this: ![KOMA Style](http://i.stack.imgur.com/He9eb.png) Into this: ![Default Style](http://i.stack.imgur.com/uf2cN.png)


title: how to remove unwanted space between pages

text: I am writing a thesis in LaTeX with predefined styles which works fine. However, sometimes, when I finish a sub-section and start writing the new sub- section, LaTeX automatically stretches the text and adds more space (between paragraphs) in order to put the new title on the next page. Once I use `\clearpage` at the end of the current sub-section, it removes the spaces in between and makes it fine, but again starts the new part in the next page while there is still some space left at the last page before the new sub- section.


title: Is TeXLive 2010 faster than MiKTeX 2.9?

text: Some guys say that TeXLive 2010 compiles faster than MikTeX 2.9, while others say that this is not true and say that the speed of the two systems is similar.   What do you think? Please explain your reasons to support your viewpoints.


title: How to quickly troubleshoot errors caused by missing closing brackets?

text: Perhaps the most common mistake I make is to forget to place a closing bracket, i.e. `}`, or closing command, e.g. `\end{description}`. When compiling, such mistakes usually do not say, "`\begin{description}` is missing a closing command.", rather, they say something like, "`\end{document}` appeared unexpectedly."   * In a large, complicated document, it can be difficult to find the source of such errors.   * When the errors appear inside an `\input` file, these are often more difficult to find.   * These are further made difficult when some macros require additional brackets, e.g. `\begin{tabular}{lll}`. Are there any techniques or strategies one can apply to quickly locate the items which are missing closing items, in a document?


title: Using [T1]{fontenc} with Czech language looks strange

text: Using `\usepackage[T1]{fontenc}` is important e.g. if you write something in czech "je důležitý, když chceš napsat něco v češtině", but letters looks somehow strange - is it possible? I mean in word "daného" the letter "é" looks bigger than others ... Does anybody know how I could solve this problem?


title: Writing a book with LaTeX, general questions

text: Apologies if this question exceeds the scope of this forum, but I'm trying to decide whether to use LaTeX for a book. I have some experience with TeXworks and MikTeX writing academic papers and I'm very fond of the mathematical and typesetting possibilities. I do however worry about scalability. It takes about 10 seconds to compile a 14 page PDF on my machine so I fear the delays I will encounter once I start to fill up hundreds of pages. Are there good ways to separate out chapters into different documents that can be compiled individually? I obviously need references to work across chapters. The book will require an extensive index/glossary. Can I mark words somehow in the document body and have them collated alphabetically in an index with the page numbers where they occur? I.e., if I type something like \term{tensor} on pages 14, 77 and 271, I want an index that looks like:               T     ....     ....     tensor           14, 77, 271     ....     ....      Are there in general important things to know when writing big content. Is TeXworks the best editor on Windows for this?


title: Align equals inside case statement

text: I have the following code:               \begin{equation}     \frac {\partial C}{\partial {z_k}}= \begin{cases}       - \frac {1} {y_i} {y_i} (1-{y_i}) = y_{i} - 1 & k = i \\        \frac {1} {y_i} {y_{i}^{2}} = y_{i}  &  k \ne i  \\     \end{cases}     \end{equation}      It works fine, but what I want to achieve is to align the `=` from the first case and the second case. I did not manage to do that. Any advice? Thank you!


title: Reference for a commutative diagram

text: How to give a number (for later reference) to the following diagram?               \begin{displaymath}     \xymatrix@!C{ \{ \prod_{g \in A} \OO_g  \} \ar@{->>}[r] & {     \{\prod_{g \in A^{\prime}} \OO_g \} }\\ { {\tilde {\T}}^{\prime}_{     {\tilde{\m}}^{\prime} } } \ar@{^{(}->}[u] \ar@{->>}[r]^(0.55){q} &     {\T} \ar@{^{(}->}[u] }     \end{displaymath}


title: Are there any Windows-based Graphical editors for \pgfdeclareshape

text: On TeXample, Martin Scharrer contributed an excellent d-flipflop example that simplifies circuit drawing to a two step-process of   1. Place the part:              % Place FFs       \foreach \m in {0,...,\N}             \node [shape=dff] (DFF\m) at ($ 3*(\m,0) $) {Bit \#\m};        2. Connect the nets The d-flip flop uses a `\pgfdeclareshape` command and involves 120-lines of code. It's possible to save the d-flip-flop in its own file that looks something like the following:               \makeatletter         % D flip-flops (DFFs) and shift register         % Original Author: Martin Scharrer         % Data Flip Flip (DFF) shape        \pgfdeclareshape{dff}{           %... details omitted, available elsewhere        }           % Define styles, etc        \tikzset{           every dff node/.style=%... details omitted, available elsewhere        }        \makeatother      This may be a tall order, but is there a tool, similar to TikZit, that is stable under Windows and allows creation, and editing of graphics saved in this manner?


title: Using psfrag with pdflatex

text: Is there any way of using `psfrag` with pdflatex? It seems fairly similar to the problem of using `pstricks` with pdflatex. Do they both depend on the same things, or does `psfrag` include `pstricks`? Can I assume that if I use one of the workarounds to make `pstricks` work, the same workaround would do for `psfrag`? Is there an equivalent of `\usepackage[pdf]{pstricks}` that will work for `psfrag`? I realise there are a few questions here rather than just one, but they all share the overall question of how to use `psfrag` with pdflatex. Thank you.


title: PDFLatex Halt on Warning/Typesetting Error

text: I'm using vim to write my latex and have a makefile that simply runs PDFLatex on the main TeX file. The output from this is often incredibly dense and difficult to parse with the human eye. What's more there is usually a great deal and useful information will have left the terminal window before I have seen it. I am quite used to situations like in gcc where you can force it to halt on warnings, which would currently be my desired behaviour (but I can't find a way to do this). What's more, there are things that I would like to be warned about (for example overfull bounding boxes) that don't come with "LaTeX Warning" along side them. So I would be unsure of how to grep this to get all useful information. Is there any standard command line method to achieve what I am looking for? Alternatively, a method of parsing the log file to easily list these typesetting errors would be useful.


title: Tilde and slash in LaTeX

text: I am getting strange errors in LaTeX:               perhaps you should insert a `~' before "\ref"     missing `\ ' after "i.e."     missing `\ ' after "i.e."      I understand that the first expects me to put a tilde before the reference, so something like this `figure~\ref{myfigure}`, but why is it necessary? I can compile without the tilde and everything works fine. Besides that, it is annoying to have to write it like this in case I want to reference many figures. For example, I have this statement in my paper:               Figures \ref{figure:normal_rendering} and \ref{figure:silhouette_rendering} illustrates the silhouette rendering process.      With the form proposed I should keep adding `figure` before any `\ref`; it sounds weird to read: "Figure 1, figure 2, and figure 3 illustrates the silhouette rendering process" rather then just "Figure 1, 2, and 3 illustrates the silhouette rendering process". What about the second and third errors? Any help?


title: Drawing a tree of grids

text: I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes? ![Tree of grids](http://i.stack.imgur.com/cu0Ws.png)


title: TikZ + gnuplot on a Mac

text: I'm using LaTeX a lot in my work and I switched to Mac recently. I installed TeX Live and everything works fine, except for plotting a figure with gnuplot. I installed gnuplot 4.4.3 first simply in the Terminal as I read in the internet, but didn't work, then after surfing I installed Fink and Macports and gnuplot again through Macports. I know it's a mess, but the error message hasn't changed, it has remained the same, which is the following:               gnuplot> set table "proba.f0.table"; set format "%.5f"                  ^              "proba.f0.gnuplot", line 1: valid set options:  [] = choose one, {} means optional              'angles', 'arrow', 'autoscale', 'bars', 'border', 'boxwidth',         'clabel', 'clip', 'cntrparam', 'colorbox', 'contour', 'decimalsign',         'dgrid3d', 'dummy', 'encoding', 'fit', 'format', 'grid',         'hidden3d', 'historysize', 'isosamples', 'key', 'label', 'locale',         'logscale', '[blrt]margin', 'mapping', 'mouse', 'multiplot',         'offsets', 'origin', 'output', 'palette', 'parametric', 'pm3d',         'pointsize', 'polar', 'print', '[rtuv]range', 'samples', 'size',         'style', 'surface', 'terminal', tics', 'ticscale', 'ticslevel',         'timestamp', 'timefmt', 'title', 'view', '[xyz]{2}data',         '[xyz]{2}label', '[xyz]{2}range', '{no}{m}[xyz]{2}tics',         '[xyz]{2}[md]tics', '{[xyz]{2}}zeroaxis', 'zero'                    Package pgf Warning: Plot data file `proba.f0.table' not found. on input line 4     6.      The Latex code is the following:               \documentclass[trans]{beamer}          \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{amsmath,amsthm}     \usepackage{pgffor}     \usepackage{tikz}     \usepackage{hyperref}          \newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}     \newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }     \newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-| alert@+>]}{\end{enumerate}}     \newenvironment{stepitemizewithalert}{\begin{itemize}[<+-| alert@+>]}{\end{itemize} }     \usetheme{CambridgeUS}     %\useoutertheme[footline=authortitle]{miniframes}     %\setbeamercovered{still covered={\opaqueness<1->{25}}}      \setbeamercovered{invisible}     \usefonttheme{structurebold}          \begin{document}               \begin{frame}       \frametitle{P.d.f. with different degrees of freedom}            \begin{center}       \begin{tikzpicture}[y=5cm]         \draw[domain=0:4,thick,color=orange] plot[id=f0,samples=100]             function{0.5*(gamma(3)/(gamma(1)*gamma(2)))*1/((1+0.5*x)**3)} node at (1,0.8) {$\scriptstyle n=2\textsf{,}\; m=4$};              \draw (0,0) node[below left] {$0$};         \draw (3.5,1) node[above] {$\scriptstyle f\left(x;n,m\right)=\left(\frac{n}{m}\right)^{\frac{n}{2}}\frac{\Gamma\left(\frac{n+m}{2}\right)}{\Gamma\left(\frac{n}{2}\right)\Gamma\left(\frac{m}{2}\right)}\frac{x^{\frac{n}{2}-1}}{\left(1+\frac{n}{m}x\right)^{\frac{n+m}{2}}}$};              \draw[->,semithick] (-0.2,0) -- (4.2,0) node[right] {$x$};         \draw[->,semithick] (0,-0.05) -- (0,1.2) node[left] {$f\left(x\right)$};              \foreach \x in {1,2,...,4}           \draw (\x,2pt) -- (\x,-2pt) node[below] {\x};         \foreach \y in {0.2,0.4,0.6,0.8,1}           \draw (2pt,\y) -- (-2pt,\y) node[left] {\y};       \end{tikzpicture}       \end{center}            \transwipe     \end{frame}          \end{document}      What can the problem be? I'm unable to solve it, but I'd like to use gnuplot on my Mac. * * * ### Edit 1 (moved here from an answer by a moderator) Thanks a lot for the quick replies. I'm sorry, but I didn't clarify a couple of issues.   1. I'm using TexShop and it works fine.   2. `\--shell-escape` is configured, and also `-enable-write18`   3. gnuplot works, although I think I installed it twice... When in Terminal I write `gnuplot`, it starts gnuplot 4.4 with patchlevel 3, but when I write `/usr/local/bin/gnuplot`, it starts gnuplot 4.0 with patchlevel 0. The first set aquaterm (which is installed) and doesn't plot, and the second X11 (also installed) which works well. Can this be the problem? Which one should I keep and how to uninstall the other?   4. Placing `& -shell-escape`at the beginning of the document results in an error message: `Misplaced alignment tab character &`   5. Since gnuplot doesn't work, I use now pgfplot which is also great, but gnuplot is more flexible and I can represent more functions with it.   6. Some recommended on other sites to change the **pgfmoduleplot.code.tex** file and change the line              \xdef\pgf@gnuplot@head#1{set terminal table; set output “#1.table”; set format “%.5f”}       to              \xdef\pgf@gnuplot@head#1{set table; set output “#1.table”; set format “%.5f”}      However, I have no such a line, but have               \xdef\pgf@gnuplot@head{set table \noexpand\pgf@plottablefile@quoted; set format "%.5f"}      * * * ### Edit 2 (moved here from an answer by a moderator) I think I found out where the problem lies. As I wrote before, I have two gnuplots installed. When in Terminal I write gnuplot, it starts gnuplot 4.4 with patchlevel 3, but when I write /usr/local/bin/gnuplot, it starts gnuplot 4.0 with patchlevel 0. I tried to create the gnuplot table in the terminal by `gnuplot proba.f0.gnuplot` and it worked well and then TexShop could make the job. However, when i tried with the other version and wrote `/usr/local/bin/gnuplot proba.f0.gnuplot` it gave me the familiar error message. So the problem must be with version 4.0. How can I uninstall it from /usr/local/bin and put the other one there? ### Edit 3 @Altermundus: Thanks a lot, I was able to uninstall gnuplot from `/usr/local/bin`. Now the only thing I have to do is to make Texshop find gnuplot in `/opt/local/bin`, because that version works manually. How could I do that?


title: Typesetting a poem book for manual binding

text: I would like to typeset a poem book, which I am planning to print then stitch and bind manually. My requirements are:   * The book should be printed on A4 paper, with two A5 pages on each side.   * It should be possible to set desired signature thickness (i.e. number of bifolios or leafs in each section)   * Small markings should be present in the middle of the innermost section bifolio for guiding the needles (and only there)   * Some configuration of markings can be chosen, or one can set desired distances or spacing beetween markings   * According to set section thickness, the pages will be in the reqired order. If the thickness is 2: 1. bifolio: leafs 1 and 8 on one side, leafs 2,7 on other; 2. bifolio: leafs 3,6 on one side, leafs 4,5 on the other (needle markings on the side containing leafs 4 and 5)   * some form of centering or manually shifting each poem's left margin should be present   * `lettrine` package capabilites within poems I should probably write my own package to fulfill all of my requirements. Additional requirement for such a package would be:   * if possible, the package should be easily extended to any type of humanities books, not just poem books (for the same purpose of printing and manually binding) I found `verse` to be simple and nice, but `lettrine` breaks inside `verse`. I also would also like to have the options of `poemscol` to automatically generate a table of contents, an index of titles, and mark occasions when a stanza break falls at a page break. On the other hand, `poemscol` seems overly complex for my needs and also seems to be best suited for the particular purpose of typesetting critical editions. I am providing images of some poems books which seemed nice to me: ![Poem book example 1](http://i.stack.imgur.com/MzGpd.png) ![Poem book example 2](http://i.stack.imgur.com/JMWnj.png) ![Poem book example 3](http://i.stack.imgur.com/9KWyF.png) I am also uploading a screenshot of InDesign pdf output: ![InDesign output](http://i.stack.imgur.com/yEpEh.png) I don't know any low level `TeX` commands. Where to start? What can be done (or, what can be without much pain)? What cannot be done (or, what can't be done without too much pain and effort)? `Pgfpages` package seems to solve section/bifolio problems. This question is important to me, and also seems quite complex. Therefore, I will be offering a bounty.


title: aligning the x-axis labels in a figure using psfrags

text: I used `laprint` to generate the `.eps` file for my matlab graph. Now the problem is I changed the axis labels to `a,...f` but they dont seem to be aligned w.r.t the horizontal x-axis. This is the command `\psfrag{x13}[t][t]{\small a}%` ..where can I change the alignment of `a` w.r.t the axis. thank you.


title: Overfull \vbox and wrong page layout

text: I know there are plenty of questions about this kind of warning but I've not been able to find my answer in any of them. I've used a code to avoid \cleardoublepage and \clearpage after every chapter...it worked just fine in the first document but not in the second, infact I'm getting the text of the chapter broken in two pieces...one with its chapter title and half blank page, the other attached to the following chapters in a newpage. Like _Page 1:_ # first title a few line long text a few line long text a few line long text a few line long text a few line long text a few line long text a few line long text a few line long text a few line long text a few line long text v a few line long text a few line long text _Page 2:_ a few line long text a few line long text a few line long text a few line long text ## title 1 ## title 2 This is the warning showed by the compiler > Overfull \vbox (195.80104pt too high) has occurred while \output is active > [] [2] Here is the code:               \documentclass[12pt,a4paper]{report}     \usepackage[italian]{babel}     \usepackage{booktabs}     \usepackage{geometry}     \geometry{letterpaper}     \usepackage{remreset}     \usepackage{etoolbox}     \title{\Huge\textbf{Report}}     \author{di \textbf{Mengops}}          \makeatletter     \renewcommand \thesection {\@arabic\c@section}     \@removefromreset{section}{chapter}     \makeatother     %remove "chapter"          \makeatletter     \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}     \makeatother     %avoid new page          \begin{document}     \maketitle           \chapter*{first title}     Per i seguenti circuiti abbiamo calcolato il punto di BIAS. \textbf{Punto di Bias} ovvero il punto di Lavoro del BJT. La sua scelta è cruciale poichè va ad influire sulla capacità del circuito di amplificare il segnale di Input. Con un solo transistor (\textbf{Alplificatore di classe A}) si sceglie il punto di BIAS a metà della Retta di Carico in modo da poter amplificare in egual modo sia il segnale positivo che quello negativo.          \chapter*{title 1}          {\Large     \begin{tabular}{c|c|c|c}     table     \end{tabular}\par}               \chapter*{title 2}          {\Large     \begin{tabular}{c|c|c|c}     \hline     \multicolumn{4}{c}{Tabella Circuito 1}\\     \hline      & Teorico& Reale& Spice\\     \hline     $R_B$& $2.2 M\Omega$& $2.237 M\Omega$& $2.2 M\Omega$\\     \hline     $R_C$& $5.6 k\Omega$& $5.555 k\Omega$& $56 k\Omega$\\     \hline     $I_B$& $5 \mu A$& $k\Omega$& $5.15622 \mu A$\\     \hline     $I_C$& $1 \mu A$& $k\Omega$& $1.082 \mu A$\\     \hline     $V_{RC}$& $V$& $7.079 V$& $6.0594 V$\\     \hline     $V_{RB}$& $11.3 V$& $11.388 V$& $11.344 V$\\     \hline     $V_{BE}$& $0.7 V$& $0.615 V$& $0.656 V$\\     \hline     $V_{CE}$& $V$& $4.896 V$& $5.94 V$\\     \hline     \end{tabular}\par}          \end{document}      What did I do wrong? Is there any way to fix this?


title: How to place two line of text in front of the sum sign?

text: So I have this `\\[ min\sum_{i=1}^{n} \\]` which results in ![enter image description here](http://i.stack.imgur.com/sNJfE.png) What should I change to get this: ![enter image description here](http://i.stack.imgur.com/jENJn.png)


title: Simulate handwriting with LaTeX

text: I am looking for a way to randomize characters rendering, to simulate handwriting. I already saw this, but it's not enough for me, only the position of the words are randomized.


title: Applying backgrounds to TikZ scope

text: I have problems creating a background for a `scope` envionment Here is part of the code I used for a `beamer` slide:               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{arrows,positioning,calc,backgrounds}          \begin{document}     \begin{frame}[plain]              \begin{tikzpicture}[scale=2, overlay, remember picture]     \coordinate[shift={(4.5cm,-3.5cm)}] (Anchor) at (current page.north west);          \only<2>{\begin{scope}[shift={(Anchor)},/tikz/background rectangle/.style={             fill=yellow,             draw=black         },show background rectangle]     \draw[thin,->] (0,0) node (origin) [below] {$0$} -- (0,1) node (yaxis) [above] {$y$};     \draw[thin,->] (-1,0) node (xaxisL) {} -- (1,0) node (xaxisR) [right] {$x$};     \end{scope} }     \end{tikzpicture}     \end{frame}     \end{document}      Edited for clarification: Because of problem of background when **overlay** specification is active, i.e. `\begin{tikzpicture}[overlay, show background...]`, This is the reason why I want to see if there is a simple way to put the background inside a `scope` environment. There isn't unfortunately and one have to draw their own background within `scope` it seems.


title: Is there any environment that works exactly like \begin{equation}, but without going into math-mode?

text: I would like to write a sentence that is centered and numbered automatically at the end. If what I am trying to type is just an equation, `\begin{equation}` works very nicely. However, since what I write involves a lot of words, I do not want to use `\begin{equation}`. Right now, all I can think of is using `\textrm` every time I write a regular word, but there must be another solution. As we keep the automatic numbering, is there any way to do what I am trying to do? The following is the sample. Appreciate it.               \documentclass{article}     \begin{document}     \begin{equation}     \textrm{The derivative }y'\textrm{ of }y=\ln x\textrm{ is }y'=\frac{1}{x}     \end{equation}     \end{document}


title: How to create the .latexmkrc file

text: I only started with `latexmk` & I feel ridiculous because I can't create the .latexmkrc file… I'm using TeXShop on OSX 10.9 & when I try to create the file, Mac says : "It is impossible to use a name starting with a dot "." Because these names are reserved for system use. Please choose another one." So, I create a latexmkrc.tex but I understand it's not the good way. Ok, I think it may be easy, but I'm going crazy not to get there. So, I just want to use `latexmk` for this Terminal work :               xelatex <doc>.tex     makeglossaries <doc>     xelatex -shell-escape <doc>.tex     xelatex <doc>.tex      I'm using in my main document with glossaries :               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = xelatexmk-shell      in the beginning, & after in the preamble some lines like :               \usepackage[xindy={language=french, codepage=utf8}, style=altlist]{glossaries}     \usepackage[xindy, splitindex]{imakeidx}     \usepackage[itemlayout=singlepar]{idxlayout}     \makeglossaries     \def\xindylangopt{-M lang/french/utf8-lang -M style1.xdy}     \makeindex[name=can, title=Index des dates, options=\xindylangopt, intoc]      Using `xelatex`, `xindy`, `splitindex` & `glossaries`, thats my .latexmkrc content project :               $pdf_mode = "1";     $pdflatex = "xelatex";     $makeindex = 'texindy -M lang/french/utf8-lang -M style1.xdy;splitindex';     add_cus_dep('glo', 'gls', 0, 'makeglo2gls');     sub makeglo2gls {system("makeindex -s '$_[0]'.ist -t '$_[0]'.glg -o '$_[0]'.gls '$_[0]'.glo");}     push @generated_exts, 'glo', 'gls', 'glg';     push @generated_exts, 'acn', 'acr', 'alg';     $clean_ext .= ' %R.ist %R.xdy';      Thanks


title: Push long words in a new line

text: I have sometimes very long words, which are for example method names and so on. Is there any possibility to force LaTeX to push them to a new line, if they overflow the margins? It is possible to push them into a new line, because I know in my document aren't words which are too long for a line. Here a mini example which produce the problem:               \documentclass{scrartcl}          \begin{document}     \section{Test}     Finally there is a simple solution using \textsc{\textbf{XMLResource.OPTION\_RECORD\_UNKNOWN\_FEATURE}} option. And the     text must go on \ldots.     \par     And another example the show must go on, but we have too less text (\textbf{createUnspecifiedNodeWarningMarker} and     \textbf{createUnspecifiedNodeErrorMarker}, sdjklashjksa \textbf{createUnspecifiedLinkWarningMarker} and     \textbf{createUnspecifiedLinkErrorMarker}).     \end{document}      Thanks for any advices.


title: Issue with resetting theorem counter

text: I am using LyX to typeset a document. I wanted to use another theorem-like construct not available in `amsthm`. So I included it using LaTeX code.               \newtheorem{discussion}{Discussion}[section]      This works fine except the next theorem that appears using the built in theorem construct ends up having the same number as the one above. I tried using `\stepcounter` and `\addtocounter`, but this does not change the numbering. Any idea how to fix this?


title: minitoc per sections with memoir

text: I want to make a minitoc for each section with the subsections with the `memoir` class. But it doesn't works, only `\minitoc` per chapters are working. How can I do that ?


title: Footnotes with full bibliography information

text: I would like to add footnotes, with the text of the .bib file, not only the name of the cite. Found some solutions using jurabib, but my other packages aren't compatible. How could I fix this? My tex file:                   \documentclass[]{report}         \usepackage{times}         \usepackage[dutch]{babel}         \usepackage{cite}         \usepackage{comment}         \usepackage[hidelinks]{hyperref} %Makes Table of Contents clickable              \begin{document}                   \includecomment{comment} %change exclude to include for showing in pdf too                   % Article top matter         \title{X}          \author{XX}         \date{\today}           \maketitle                   \tableofcontents                   %Begin text              Text\footnote{name1} more text              %End text              \bibliography{pws}{}         \bibliographystyle{plain}              \end{document}       My bib file:                   @misc{name1,           author = "Name, Name",           title = "",           date = "17-05-2014",           howpublished = "conference"           }


title: [Optionally] Specifying arbitrary numbers for sections and subsections

text: I'm working on a package to simplify writing my homework and assignments. Unfortunately, not all of my professors assign problem sets with sequential numbering. Thus, I'd like to optionally be able to manually override the automatic numbering of sections. My goals:   * A syntax that resembles `\section[12(e)]{Fermat's Last Theorem}`, where the custom number is in brackets. I'm imagining that I'd ignore the normal section counters and simply define my own macro to contain the manually specified number. In the absence of an optional argument, this macro would simply mirror `\thesection`.   * The ability to reference my custom number in headings and footers. I'd like to say something like "Question 12(e) continued on next page…" instead of referencing the whole section name.   * And, finally, I want to have all of this work in a table of contents and the hyperref package. Is this possible? Has it been done already? I'm not tied down to a particular document class; I've attempted hacking this onto both `article` and Memoir's article mode. This gets me close:               \documentclass[article]{memoir}     \newcommand*{\theproblem}{}     \renewcommand*{\cftchaptername}{Problem\space}     \renewcommand*{\chaptername}{Problem\space}     \setcounter{tocdepth}{2}     \newcommand*{\problem}[2][\thechapter]{%       \addtocounter{chapter}{1}       \setcounter{section}{0}       \phantomsection       \addcontentsline{toc}{chapter}{\numberline {\cftchaptername#1}#2}         \chapter*{\chaptername#1\quad#2}       \renewcommand*{\theproblem}{#1}     }     \newcommand*{\subproblem}[2][\thesection]{%       \addtocounter{section}{1}       \phantomsection       \addcontentsline{toc}{section}{\numberline {#1}#2}         \section*{#1\quad#2}       \renewcommand*{\theproblem}{#1}     }      Unfortunately, it doesn't account for longer-than-anticipated numbers in the table of contents. Also, I initially started trying to directly redefine `\chapter` and `\section`; this is definitely not necessary, but it would be quite nice (and now I'm curious if it could be possible). And, finally, this is my first bit of package hacking, so I'm not entirely confident I'm doing things in a reasonable manner.


title: command for floor

text: I need something that corresponds to floor() to use it in a macro (I don't mean the notation, I really mean the function that rounds downwards). Something like this: `\floor{34.75}` produces `34` Anyone an idea?


title: Should otherwise empty pages have page numbers? Why?

text: By default, with either the standard LaTeX classes or the KOMA-script classes, empty pages (such as may occur using `\cleardoublepage`) have no page numbers. Why is this? In my — unprofessional — opinion, every page should have a page number. When I want to go to a particular page in a book, having page numbers oo every page assists me in finding the page I need, and page numbers do not only serve as an anchor for content. However, I am by no means a book designer, and perhaps the default setting is one that I should not want to override. What is the reason for the absense of page numbers on empty pages? Am I wrong with my reasoning above, or are scholarly opinions about it divided as well?


title: Hiding marginal notes

text: While writing I tend to add a lot of notes using `\marginpar`. Is there a way to hide them before printing a final version?


title: Table heading multicolumn problem

text: I have the following code, which needs 2 sub-columns in the last main column. I have written code as follows:               \begin{table}       \centering         \begin{tabular}{|c|l|c|c|}         \hline         \multicolumn{1}{|c|}{\bfseries First} & \multicolumn{1}{|c|}{\bfseries Characteristics} & \multicolumn{2}{|c|}{\bfseries Implemented in}\\ A&B \\ \hline         a & b & c & d \\         1 & 2 & 3 & 4\\         \end{tabular}     \end{table}      The result is ![enter image description here](http://i.stack.imgur.com/c6YeQ.png) I want the "A" and "B" as sub-column within the "Implemented in" column.


title: Draw reduced graph with pgfplot

text: I want to reduce the information contained in a graph to the minimum. I started with a spectrum that I drew from a data file ( http://www.sendspace.com/file/wwydju )![Spectrum](http://i.stack.imgur.com/32Dbj.png).               \documentclass{standalone}          \usepackage {tikz}     \usepackage{pgfplots}     \usetikzlibrary{pgfplots.groupplots}          \definecolor{myorange}{RGB}{238,165,52}          \begin{document}     \begin{tikzpicture}     \begin{axis}[axis lines=none]     \addplot [color=myorange,style=solid, thick] table[x index=0,y index=1,col sep=space]{spectrum.dat};          \end{axis}          \end{tikzpicture}     \end{document}      But I don't really understand how I can access the points from the graph outside the axis-environment. I want to create something like (I know that I only have the interpolant if you want to put it that way) ![Nice Graph](http://i.stack.imgur.com/ixdxK.png). How does the position of the graph relate to the normal coordinate axis? If someone could help me out on that one I would be really grateful :).


title: How to install TexLive on dualboot with shared TEXDIR?

text: Note: this question is very similar to mine, but the answer states > I would recommend you to install the full TeXLive manually (i.e. not using > the Ubuntu packages) with both Linux and Windows binaries to the shared > drive. and I'm after more detail on how to do this on my Windows 7/Ubuntu 14.04 installation. * * * I have a Windows 7 system with TeXLive installed at TEXDIR = C:/texlive/2014. I now want to install TeXLive on Ubuntu, **using the existing Windows texlive installation, and without having to redownload the packages and duplicate hard drive space**. (Of course things like binaries will not be shared with Windows; this is fine. But I would think that most of the packages are the same between Windows and Linux and hence don't need to be downloaded twice). My Windows C: drive is mounted at `/windows` on the Linux side. I ran the Linux installer and set my TEXDIR to point to `/windows/texlive/2014` and verified that the other directories are all pointing to the existing install. However, when I proceed with the installation, it appears that all the package files are being redownloaded: I can verify this by watching `iftop`, and I can _see_ that package files `*.tar.xz` are being downloaded into `$TEXDIR/temp`. For now the installation process is aborted in the download stage (I don't have reliable enough internet to do the downloads, or enough quota), so I am not sure if the packages are actually _installed_ twice, as opposed to being downloaded and then the installer says "oh, the package is already installed, I won't reinstall". **So, how can I tell texlive to not re-download/re-install packages if they already exist in my Windows texlive installation?** (Or is /nothing/ shared between a Windows and Linux texlive installation? I assumed that at least most of the packages would be). * * * Update: had a look at the `\--no-depends-at-all` option from the `tlmgr` help: > Normally, when you install a package which ships binary files the respective > binary package will also be installed. That is, for a package foo, the > package foo.i386-linux will also be installed on an i386-linux system. ... So it looks like what I want is the _reverse_ : I want to install `foo.i386-linux` but _not_ `foo` (because I already have it); is this possible or do I misunderstand how the packages work (quite likely)?


title: TOC line spacing using Revtex

text: I am trying to change the linespacing in my table of contents (using revtex4-1) but with no luck. My Preamble:               \documentclass[aps,prd,amsmath,amssymb,a4paper,nofootinbib,12pt]{revtex4-1}          \usepackage{graphicx}% Include figure files     \usepackage{dcolumn}% Align table columns on decimal point     \usepackage{bm}% bold math     \usepackage{dsfont}     \usepackage{slashed,braket} % Feynman Slash Notation     \usepackage{pdfpages}     \usepackage{hyperref}     \setlength\parindent{0pt}     \usepackage[paperwidth=210mm,paperheight=297mm,centering,hmargin=2.5cm,vmargin=2.5cm]{geometry}     \setlength{\parskip}{10pt plus 1pt minus 1pt}     \linespread{1.5}     \begin{document}     \linespread{1.0}     \tableofcontents     \linespread{1.0}      But this does nothing. Any ideas? I have also tried the package tocloft, however it doesn't seem to work with revtex and messes up the formatting. Many Thanks


title: Problem figure names containing points

text: I have several graphics named with sample's label and I want to include these graphs in my document. The problem is that the file's name contains points, for example, RT1_0.1.pdf. When I try to include using `\includegraphics`, I get the error message that LaTeX does not recognize the extension .1.pdf. Since I have several graphs and the dot is important to label the samples, is there a way to add figures with this kind of filename?


title: draw security protocol

text: It's about authenticated key exchange protocol, there are two parties party A and party B,they exchange some messages. At the end they compute the shared keys SK. ![screenshot](http://i.stack.imgur.com/5Y3VJ.png) I know that it's vey cool to use Latex to set type, I really want to learn it. Any one can give me some advices? please help me! thanks


title: URL package installed but cannot be found by pdflatex

text: I recently installed a full version of `TeXLive 2012` (around 3.2 GB installation). Following is a simple `LaTeX` code that I am unable to compile:               \listfiles     \documentclass{article}     \usepackage{hyperref}          \title{\LaTeX\ Document}     \author{Joe the Student}     \date{\today}     \begin{document}        \maketitle        Hello world!        My email is \href{mailto:my_email@server.org}{my\_email@server.org}     \end{document}      I get following error when I try to compile with `pdflatex`:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.     entering extended mode     (./tex.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo     aded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)          ! LaTeX Error: File `url.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:      )          Package hyperref Message: Driver (autodetected): hpdftex.          (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (./tex.aux) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./tex.out) (./tex.out) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]     (./tex.aux)            *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     hyperref.sty    2012/05/13 v6.82q Hypertext links for LaTeX     hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)       hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)       ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)      intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)       bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)     uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)     letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)      hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)     xcolor-patch.sty    2011/01/30 xcolor patch     atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)     atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)     refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)      hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)       pd1enc.def    2012/05/13 v6.82q Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive      hpdftex.def    2012/05/13 v6.82q Hyperref driver for pdfTeX     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)      nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)          tex.out          tex.out      ***********          )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr1         0.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb><         /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb>         Output written on tex.pdf (1 page, 34458 bytes).         Transcript written on tex.log.      Compilation halts at the prompt:               Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:      and then proceeds and **does create** the pdf as expected. However I don't understand why I get the compilation error in the first place. I **successfully verified** that packages `hyperref` and `url` are installed using command:               tlmgr show <pkg-name>      However, I read somewhere that `url` is part of `ltxmisc` and output of               ls /usr/share/texlive/texmf-dist/tex/latex/ltxmisc/       has `url.sty` missing. Please let me know what could be wrong.


title: beamer doesn't show png and pdf files

text: I have included `.png` and `.pdf` files in my `beamer` presentation. When I compile the document I can't see them. The documentation I read claim that both `.png` and `.pdf` should are readable by `beamer`. How can I use the figures then? I'm using `pdflatex` on arch-linux machine. The files are stored on a remote machine and I access them via `sshfs`.


title: Pgfplots \closedcycle introduces unwanted slope

text: I'm trying to plot two graphs with the area between them filled. This works fine, except for the fact that the \closedcycle does not go down vertically, but rather at some (arbitrary?) slope, circled in red: ![enter image description here](http://i.stack.imgur.com/NWDti.jpg) Here is my MWE:               \documentclass{article}          \usepackage{pgfplots,pgfplotstable}           \begin{document}     \begin{tikzpicture}         \pgfplotstableread[col sep=semicolon] {data.csv}\data         \begin{axis}[             xmin=0.2]             \addplot[gray,smooth,fill=black!10!white]                  table[x=xvalues,y=upper]{\data} \closedcycle;            \addplot[gray,smooth,fill=white]                  table[x=xvalues,y=lower]{\data} \closedcycle;         \end{axis}     \end{tikzpicture}     \end{document}      My data.csv looks like this:               xvalues;lower;upper     0.15;949.59;1069.76     0.21;1290.74;1457.88     0.27;1617.32;1822.28     0.33;1928.45;2167.26     0.39;2237.91;2486.17     0.45;2526.9;2776.77     0.51;2750.88;3032.38     0.57;2875.84;3249.56     0.63;2935.11;3326.71     0.69;2854.73;3237.55     0.75;2595.52;3087.41     0.81;2256.67;2756.42     0.87;1681.25;2169.95     0.93;1636.97;1974.47     0.99;1464.91;1773.17     1.05;1307.58;1590.35     1.11;1188.51;1454.49     1.17;1078.54;1317.64     1.23;981.88;1216.65     1.29;902.7;1120.32     1.35;834.92;1015.32     1.41;763.63;924.14     1.47;694.77;843.91      Edit: My workaround for the moment is making up imaginary values at 1.6, and setting xmax=1.5, so the slope is outside the plotting area. This can't be the correct way to do it though, so I'm still interested. Or is my approach for filling wrong in general?


title: How do I remove spacing from before the table of contents in memoir class?

text: I am using memoir class to create a collection of short stories, and the default space before the table of contents and chapter titles is quite large. I have seen several posts on this site that show how to remove this space for all chapters, but I want to remove it just for the table of contents, keeping it for the chapters. How would I do this?


title: Error in minted package

text: I am using `minted` to display code in my LaTeX report, and after following the instructions given here by hpesoj626, I get the error               Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "Report".tex  -shell-escape          Could Not Find E:\myreport\Report.aex          Process exited normally      What does this mean?


title: Help with cross-referencing an equation

text: I am trying to learn how to use the `\eqref` commands instead of just doing `tag{1.1}`, so I don't have to go back and renumber. I'm having trouble: in problem 3b, I say `Now \eq{y(t, \epsilon)= y_0(t) + \epsilon y_1(t) + O(\epsilon^2), \label{eq:aa}}` (\eq is an abbreviation I've defined, it is `\newcommand{\eq}[1]{\begin{align*}#1\end{align*}}`). Later I go back and write `So we can fill in \eqref{eq:aa}`, and the problems are   1. It doesn't label the equation   2. When it refers back to it, it calls it (1.2), although it is the first tagged equation. Here is a link to my code, if it helps you diagnose. https://www.writelatex.com/read/zjhhjpndjpkz I appreciate your help!


title: Outer margin of tcolorbox

text: I would like to be able to set outer margins in a `tcolorbox` environment. Something similar to the options `leftmargin` and `rightmargin` of the `mdframed` environment. Is it possible? It seems to have options only for the width and for the inner margins.


title: Foreach loop to create Tikzpicture with overlapping nodes

text: I want to create a tree that has a structure like: 1,2,3,4,5 nodes rather than 1,2,4,8,16. Is there an easy way to set up a loop for that?               \documentclass{article}     \usepackage{catchfile,tikz}     \usepackage{filecontents}% http://ctan.org/pkg/filecontents     \usepackage{silence}% http://ctan.org/pkg/silence     \usepackage{tikz}     \usetikzlibrary{shapes,trees}     \begin{document}     \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=2cm]     \tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2.5cm]     \begin{tikzpicture}[grow=right, sloped,dot/.style={circle,fill,inner sep=0.5pt}]     \node {Level 1}             child foreach \x in {1,2} {node {Level 2}                     child foreach \x in {1,2} {node {Level 3}                             child foreach \x in {1,2} {                                 node {Level 4}                             }                     }             }             ;     \end{tikzpicture}     \end{document}      I want to read the raw data to create the text from a text file like this:               %\CatchFileDef{\tempa}{assocFile.dat}{\endlinechar=`,}     %\edef\tempb{\unexpanded{\foreach\a/\b in }{\unexpanded\expandafter{\tempa}}}     %\tempb { \draw (\a,\a) node{\b}; }


title: How to Save as PDF using TexMaker

text: I have written a paper using pdflatex in TexMaker, so I have no problem viewing my document as a PDF. However, I am not sure how to SAVE the file as a PDF document and then view it outside of TexMaker. Any advice would be greatly appreciated.


title: TikZ inside pgfplot axis environment

text: I am trying to use the TkZ command MarkRightAngle in an axis environment, however I cannot get it to work. I get a "Missing character: There is no ; in font nullfont!" error and "Line 21: Package pgf Error: No shape named B is known.". An possible solution would be matching the axis and canvas scales (but I have no idea how to do that) and adding the commands outside of axis environment.               \documentclass{article}     \usepackage{mathptmx}     \usepackage{tikz, ifthen}     \usetikzlibrary{arrows,shapes,backgrounds,patterns,decorations.pathreplacing, decorations.pathmorphing,decorations.markings,shadows,shapes.misc,calc,%     positioning,% intersections}     \usepackage{color}     \usepackage{tikzpagenodes}     \usepackage{tkz-euclide}     \usepackage[active,pdftex,tightpage]{preview}     \usepackage{pgfplots}     \usetkzobj{all}     \PreviewEnvironment[]{tikzpicture}     \PreviewEnvironment[]{pgfpicture}     \DeclareSymbolFont{symbolsb}{OMS}{cmsy}{m}{n}     \SetSymbolFont{symbolsb}{bold}{OMS}{cmsy}{b}{n}     \DeclareSymbolFontAlphabet{\mathcal}{symbolsb}     \begin{document}     \begin{tikzpicture}     \begin{axis}[  axis lines =center,     disabledatascaling,     anchor=origin,         xlabel = $x$,    ylabel =$y$,      ymax=4, ymin=-8, xmax =8, xmin=-4,     ytick={-6, -4, ...,4},xtick={-4, -2, ...,6},]          \addplot [   color=black, dashed,]      coordinates {(-2,-5) (7,-5)} ;          \addplot [ color=black, dashed,]      coordinates {(7,-5) (7,-2)} node[label=above:{$T(7,-2)$},circle, fill, inner sep=2pt] {};          \addplot [color=black,]      coordinates {(7,-2) (-2,-5)} node[label=below:{$S(-2,-5)$},circle, fill, inner sep=2pt] {};          \tkzDefPoint(7,-2){A};     \tkzDefPoint(-2,5){B};     \tkzDefPoint(7,-5){C};     \tkzMarkRightAngle(A,B,C);     \end{axis}     \end{tikzpicture}     \begin{document}


title: How to un-italicise Bulletpoints

text: \begin{proposition}          An elliptic curve given by a Weierstrass equation          \begin{itemize}         \item[(a)]{is nonsingular iff $\Delta_E\neq0$.}        \item[(b)]{has a node iff $\Delta_E=0$ and $c_4\neq0$.         \item[(c)]{has a cusp iff $\Delta_E=c_4=0$.}        \end{itemize}     \end{proposition}      Because this is written as a proposition, all the text is italicised. At the same time, so are the bullet points (a),(b),(c). What do I do to remove the italics on the bullet points but still keep the text italicised as per normal. When it is written as a definition, there isn't a problem as the original text in the definition is not italicised.


title: Changing all the integral symbols from the MnSymbol package, or how to get full math support with Garamond Premier Pro in XeLaTeX?

text: I'm editing a document in which I chose the Adobe Garamond Premier Pro font as the main font. The only _free_ math font I found that _fits_ with the AGPPro so far is the one from the `MnSymbol` package. Only problem is that I hate the integral symbols from the `MnSymbol` package. ![enter image description here](http://i.stack.imgur.com/6nq3T.png) So instead I would like to use the integral symbols from the `lmodern` package or the ones from the XITS font : ![enter image description here](http://i.stack.imgur.com/zwwhc.png) I only want to change the integral symbols, but all of them as I find nothing wrong with the other large symbols from the MnSymbol... (for now). Here's a MWE for my setup (compiled using XeLaTeX) :               \documentclass{book}     \usepackage[francais]{babel}     \usepackage[no-math]{fontspec}     \usepackage{mathrsfs}     \usepackage[MnSymbol]{mathspec}     \setmainfont[Ligatures=TeX]{Garamond Premier Pro}     \setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Minion Pro}     \setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{MinionPro-Bold}     \setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{MinionPro-It}     \setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{MinionPro-BoldIt}          \begin{document}     IMHO, integrals from the MnSymbols look like simple hooks...          \[     \mathscr J = \int_0^\pi{\ddot q(t)}\,\mathrm dt     \]          \[     \iint_0^{\sqrt \pi}{5}\,\mathrm dt     \]     \end{document}


I get the following error:               Package array Error: Illegal pream-token (\renewcommand): `c' used \renewcommand      When I run my minimum working example:               \documentclass{article}          \usepackage{hyperref}     % The hyperref package is used to handle cross-referencing commands in LATEX to produce hypertext links in the document.          \usepackage[margin=0.5in]{geometry}          \usepackage{array}          \usepackage{lscape}     % For pages in landscade mode          \usepackage{longtable}     % For tables stretching over multiple pages          \begin{document}          \begin{landscape}          \begin{longtable}         \small         \centering         \renewcommand{\arraystretch}{1.2}         \begin{tabular}{|>{}m{2in} |>{}m{3.5in} | >{}m{0.8in}| >{}m{0.3in} |>{}m{0.7in} | } \hline         \textbf{Author(s)} & \textbf{Title} & \textbf{Type} & \textbf{Year} & \textbf{Cited-by} \\ \hline         F.M. Cardullo, A.V. Ercole, J.A. Houck, L.C. Kelly &         {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &         techreport &         2012 &          ~ \\ \hline              \end{tabular}     \end{longtable}          \end{landscape}          \end{document}


title: How can I make TeX find tikz's files without moving all of them?

text: I'm trying to recreate my file system on a cloud server so I can SSH into it from my new tablet. So I have def.tex, my main list of custom macros, which accesses tikz.tex:               \input tikz/plain/pgf/frontendlayer/tikz.tex      But then tikz.tex accesses its files as if they were in the same folder:               \input pgf.tex     \input pgffor.tex     \input tikz.code.tex      So I'm not sure what to do. I tried to move everything in the same folder, but there were .sty files that I couldn't find anywhere. How did other people solve this problem?


title: Can I use \lstinline for table column?

text: I want to apply `\lstinline` to one of the columns. I don't like idea to put it in every cell manually. I am trying to do               \begin{table}         \begin{center}             \begin{tabular}{| >{\lstinline}l | l |}             \hline     Имя класса & Назначение\\ \hline     Base & Базовый класс с функциями-утилитами \\ \hline             \end{tabular}         \end{center}     \end{table}      But pdflatex just hangs on these lines.


title: Wrap text in tables in rubber columns

text: I can use `p{}`, `m{}` or `r{}` but I shall pass a fixed size. Is there a way to do it with rubber columns?


title: How to break this function up between multiple lines?

text: I need to split the equation               $$f(x)=\bigg(\prod_{i=1}^n((y(\lceil\frac{i-1}{i}\rceil)+1|(\lceil\frac{i-1}{i}\rceil)-1|)     2^{(2(g(x)+(\lceil\frac{i}{3}\rceil)(\lceil\frac{(y)(2^{|y\,\bmod\,3-3|})-1}{9}\,     \bmod\,1\rceil)(\lceil\frac{i-1}{i}\rceil)+(\lceil\frac{i+2}{3}\rceil)     (|\lceil\frac{(y)(2^{|y\,\bmod\,3-3|})-1}{9}\,\bmod\,1\rceil-1|)     (\lceil\frac{i-1}{i}\rceil)+(\lceil\frac{i+1}{3}\rceil)     (|\lceil\frac{i-1}{i}\rceil-1|))+|(g(x)\,\bmod\,3)-3|)}-1)/3_i\bigg)(x)$$      between two lines maybe even three. How do I do this is TexMakerX?


title: Drawing with latex

text: I'm writing my final year mathematics project in latex and am deriving Keplers laws of planetary motion, i need some diagrams to explain the geometry I am using. I have already used tikz to draw an the areas for Keplers second law, from a model i found online, I am not entirely sure how to use the program. Is there an book or online guide to help me draw the diagrams? Thanks.


title: Column-wide formatting changes with tabular

text: I must be doing something wrong, but I follow the example precisely (as precisely as someone could reasonably guarantee) and LaTeX yet refuses to compile the document:               ERROR: LaTeX Error: Illegal character in array arg.          --- TeX said ---          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.4 \begin{tabular}{>{\bfseries}rl}          --- HELP ---     There is an illegal character in the argument of an array or tabular     environment, or in the second argument of a \multicolumn command.      Here is my MWE:               \documentclass{article}          \begin{document}     \begin{tabular}{>{\bfseries}rl}       hi & bye     \end{tabular}     \end{document}


title: weird spacing with \, and and babel

text: When using XeLaTeX and babel "francais", I sometimes get weird spacing: e.g. \, makes a wider space than the regular space (see what happens on the second line here).               \documentclass[12pt,a4paper]{article}     \usepackage{xltxtra}     \usepackage[francais]{babel}     \usepackage[margin=3cm]{geometry}     \usepackage{hyperref}          \setromanfont[Mapping=tex-text,Numbers={OldStyle},Ligatures={Common},Contextuals=Alternate]{Garamond Premier Pro}          \newcommand{\teng}[1]{\emph{#1}}          \begin{document}     \noindent (par exemple Z3 de Microsoft ou Yices de SRI)\,; ce dernier donne une solution qui correspond à une trace d'exécution menant de la précondition à une des postconditions dont on désire déterminer l'accessibilité (par exemple, des conditions d'erreur comme la division par zéro).     \end{document}


title: How can I draw dirac deltas with arrow heads with pgfplots

text: I would like to draw this in pgfplots: ![deltas](http://i.stack.imgur.com/RuBnW.png) I've tried this, but I can't figure out how to get the arrowheads.               \documentclass{article}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}       \begin{axis}[ xlabel=$x$, ylabel=$y$, axis x line=center, axis y line = center,        xmin=-3.5, xmax=3.5, ymin=-1.5, ymax=1.5]         \addplot+[ycomb,mark=triangle] plot coordinates {(-3,1) (3,-1)};       \end{axis}     \end{tikzpicture}          \end{document}      ![pgf delta](http://i.stack.imgur.com/qfEeC.png)


title: Settings for hypertext in multiline environment

text: I am writing this question after seeing this one as I had no idea that you could make forms like that in TeX. Playing a bit with the code in that example I came across two issues I could not find how to change with the `\TextField[parameters]{label}`environment. How to set the number of lines in a multiline environment and how to move the label at the top rather than the bottom of the multiline box. According to the manual the option for the multiline environment is just a boolean parameter > multiline boolean false whether text box is multiline and the label appears at the bottom rather than the top.


title: Multiple authors in a Journal style (llncs) Document

text: How to display multiple authors in a journal style e.g. `\documentclass{llncs}` document? The solution suggested in What's the correct use of \author{} when multiple authors? does not work for me, as `\and` is not working in my document.


title: Having trouble dividing lengths with calc package

text: What I want is something like `\resizebox` but which I can give a maximum height and width to, it will make it fit into those bounds, and not distort the image. (`\resizebox`, of course, always makes it fit the exact size you give it unless you use `!`. If you _do_ use `!`, you have to settle on whether you want to set the height or width dimension.) So I'm trying to write one, but I'm having problems with the `\ratio` command from the `calc` package. Whenever I use `\ratio`, I get "Missing number, please try again." What am I doing wrong? (If you have any better suggestions for my original problem, I'm open to those too, of course.)               \documentclass{article}          \usepackage{settobox}     \usepackage{etoolbox}     \usepackage{calc}          \newsavebox{\theCurrentImage}     \newlength{\theCurrentImageHeight}     \newlength{\theCurrentImageWidth}     \newlength{\heightIfWidthExpanded}     \newlength{\widthIfHeightExpanded}          \newrobustcmd{\image}[1]{%       \sbox{\theCurrentImage}{#1}%       \settoboxheight{\theCurrentImageHeight}{\theCurrentImage}%       \settoboxwidth{\theCurrentImageWidth}{\theCurrentImage}%       % If the aspect ratio of the image is wider than the aspect ratio of the       % screen, we are limited by the text width. Otherwise, we are limited by       % the text height.       Image width: \the\theCurrentImageWidth  \\       Image height: \the\theCurrentImageHeight  \\       Text width: \the\textwidth  \\       Text height: \the\textheight  \\       \ifnumcomp{\ratio{1pt}{1pt}} %\ratio{\theCurrentImageWidth}{\theCurrentImageHeight}                 {>}{\ratio{1pt}{1pt}} %\ratio{\textwidth}{\textheight}                 {% Width limited                   Width limited \\                   \resizebox{\textwidth}{!}{\usebox{\theCurrentImage}}%                 }%                 {% Height limited                   Height limited \\                   \resizebox{!}{\textheight}{\usebox{\theCurrentImage}}%                 }%     }          \begin{document}          \image{Hello world!}          \end{document}


title: How to make dictionary finderlist with glossaries or index packages?

text: I am making a bilingual Pohnpeian-English dictionary using XeLaTeX and I am trying to find a way to generate an English finderlist. So far I have the Pohnpeian to English section coded like this `\entry[headword]{headword}{English definition}` Here are actual examples `\entry[kang]{kang}{eat.} \entry[mwenge]{mwenge}{eat.} \entry[soai]{soai}{1. tale, story. 2. to tell a tale or bedtime story. See \textbf{soia}.} \entry[soaia]{soaia}{ to relay, to tell a story. See \textbf{soai}.} ` I have it set for that code to generate a nicely formatted dictionary entry. The English finderlist section is a simplified English to Pohnpeian section with a single English headword followed by all the Pohnpeian words that means that word and their page numbers. The output for the finderlist that I'm looking for is this: **eat** kang 30, mwenge 41 **relay** soaia 56 **story** soai 56; **tell a ~** soaia 56 **tale** soai 56 The numbers after each Pohnpeian word would be the page number. If the entries have the same English gloss they are separated by a comma (kang, mwenge). If the entries have a modified but related headword (tell a ~) they are separated by semicolons. Is there a way to make the finderlist by including some sort of reference in the Pohnpeian-English section like \gls and then automatically generating the finderlist with the above format, similar to the way an index/glossary is generated in LaTeX? The subentry part (as with story) is what I am having particular trouble figuring out.


title: Eforms on Mac OS X

text: I am using Texclipse and TexLive. I just updated to TexLive 2011 and set my path > /usr/local/texlive/2011/bin/universal-darwin however I don't have the eforms package that comes with acrotex. I have downloaded the acrotex bundle but I don't know how to install it. Anyone that could help me please? By the way mac users do you recommend a different application than texlive?


title: Putting a timeline for dates in moderncv

text: > **This question led to a new package:**   >  `moderntimeline` I just had the idea of using a timeline to specify dates in my CV. I've made a mockup in Inkscape: ![mockup](http://i.stack.imgur.com/p8bZK.png) The idea, as you see it, is to display the dates of experience on timelines instead of just typesetting them. I think this makes it nicer and more understandable somehow. When the position is still held, I want to use a gradient at the end of the line. Since I'm using `moderncv` and it uses lines for sections (like the orange line in front of "Experience"), I would like to calibrate the time lines on this line, setting a start and an end dates corresponding to the extremities of the section line. In my example, the section line goes from 2000 to 2011 for example. I think using TiKz could do. How would you suggest to implement this? Is there an existing package that would almost do this?


title: Flow chart nodes misaligned

text: I would like to do a flow chart with the first row width the same as that of the second row but just below the first row. I can not do it and actually I don't know how to fix the problem. If anyone can help I will appreciate it. Here is the LaTeX code:               \documentclass[10pt,a4paper]{article}           \usepackage[hmargin=1cm,vmargin=1cm]{geometry}     \renewcommand{\rmdefault}{bch}           \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{tikz}      \usetikzlibrary{     arrows,decorations.pathmorphing,     backgrounds,fit,positioning,shapes.symbols,chains}     \usepackage{verbatim}     \usepackage[active,tightpage,floats]{preview}     \setlength\PreviewBorder{5pt}%          \begin{document}          \begin{figure}[h]          \centering     \begin{tikzpicture}     [node distance = 1cm, auto,font=\footnotesize,     every node/.style={node distance=3cm},     comment/.style={     rectangle,      inner sep= 5pt,      text width=4cm,      node distance=0.25cm,      font=\scriptsize\sffamily},     force/.style={rectangle,      draw,      fill=black!10,      inner sep=5pt,      text width=4cm,       text badly centered,      minimum height=1.2cm,         font=\bfseries\footnotesize\sffamily},     forcea/.style={rectangle,      draw, fill=black!10,      inner sep=5pt,      text width=15cm,      text badly centered,         minimum height=1.2cm,      font=\bfseries\footnotesize\sffamily},     forceb/.style={rectangle, draw, fill=black!10, inner sep=5pt, text width=10cm, text badly centered, minimum height=1.2cm,  font=\bfseries\footnotesize\sffamily}]           \node [forcea] (numericalsimulation) {Numerical simulation of turbomachinery};     \node [forceb, below of=numericalsimulation] (multiplerf) {Fluid zones with multiple rotating frames};     \node [force, left=1cm of multiplerf] (singlerf) {rotational periodic in a single fluid zone};     \node [force, below of = singlerf] (steady) {steady approach};     \node [force, right=1cm of steady] (unsteady) {unsteady};     \node [force, below of = steady] (mrf) {MRF/frozen rotor};     \node [force, right=1cm of mrf] (mpl) {Mixing plane};     \node [force, right=1cm of mpl] (smm) {Sliding mesh};     \node [force, left=1cm of mrf] (rrf) {RRF};          \node [comment, below=0.25 of mrf] (comment-mrf){     (-) relative movement between fluid zones \\     (-) improper for rotor-stator interaction (mixed-out approach)};          \node [comment, below=0.25 of mpl] {     (-) relative movement between fluid zones \\     (-) improper for rotor-stator interaction (mixed-out approach)};          \node [comment, below=0.25 of smm] {     (-) unsteady approach \\     (-) for transient rotor-stator interactions};          \node [comment, below=0.25 of rrf]{     (-) Fluid Zones with constant angular speed \\     (-) One impeller channel need be modeled\\     (-) only in absence of stators or volute};          \draw [->] (numericalsimulation) -- (multiplerf);     \draw [->] (numericalsimulation) -- (singlerf);     \draw [->] (multiplerf) -- (steady);     \draw [->] (multiplerf) -- (unsteady);     \draw [->] (steady) -- (mpl);     \draw [->] (steady) -- (mrf);     \draw [->] (unsteady) -- (smm);     \draw [->] (singlerf) -- (rrf);          \end{tikzpicture}      \end{figure}          \end{document}


title: Debugging font shape undefined in TeXShop

text: I am a LaTeX newbie on a Mac running OS X Mavericks, TexShop 3.26 and MacTeX-2013. I am writing a document and I keep getting the following warning:               LaTeX Font Warning: Font shape `T1/phvr/m/n' undefined     (Font)              using `T1/cmr/m/n' instead on input line 186.      I understand that this warning is saying helvetica (Karl Berry names), medium, normal lacks a particular shape so computer modern is being used as a fallback. My problem is that I cannot determine which shape this is. The input line number appears to correspond to a processed intermediate of my document. How does one go about tracking an issue like this down? I'd like to be able to inspect the offending symbol so I can make sure to pay attention to it in the typeset document.


title: Double subscript caused error during compilation

text: I have in code:                 $\varphi(x) = \sum_{k=1}^ra_k\mathds{1}_{B_k}(x) $      but pdflatex commmand generates often:                 ?        ! Undefined control sequence.       l.1354 ...rc \xi)(\omega) = \sum_{k=1}^ra_k\mathds                                                   {1}_{B_k}(\xi(\omega))      I don't know how to repair this error. It often displays because I use `\mathds{1}` for indicator function. How to fix it ? Edit: `\mathds{}` comes from `\usepackage{dsfont}` Edit: Below is my class               \documentclass[12pt, a4paper]{article}          \usepackage[top=3.5cm, bottom=3.5cm, outer=1.5cm, inner=2cm, marginparwidth=2.5cm, marginparsep=2cm]{geometry}     \usepackage[polish]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[pdftex, linkbordercolor={0 0.9 1}]{hyperref}     \usepackage{amsthm,amsmath,amsfonts,amssymb,mathtools}     \usepackage{enumerate}     \usepackage{graphicx}     \usepackage{bbm}     \usepackage{fancyhdr}     \usepackage{marginnote}               \pagestyle{fancy}      \fancyhf{}     \fancyfoot[R]{\textbf{\thepage}}     \fancyhead[L]{\small\sffamily \nouppercase{\leftmark}}                % indicator function      \usepackage{dsfont}       \DeclareMathOperator{\1}{\mathds{1}}           \begin{document}         $\varphi(x) = \sum_{k=1}^ra_k\mathds{1}_{B_k}(x) $      \end{document}


title: Exam class: Header on odd pages - including first - footer on all

text: How do I get my header to appear on only the odd pages, including the first one, and my footer to appear on all pages? I'm using the `exam` and I have a title with `\maketitle`. I've tried various things. Currently my code looks like this               \pagestyle{headandfoot}     \lhead[O]{\makebox[.5\textwidth][l]{Name:\enspace\hrulefill}}     \rhead[O]{\makebox[.25\textwidth]{Date:\enspace\hrulefill}}     \footrule     \lfoot{Test 1: Ch 1.5 through 3.4}     \cfoot{}     \rfoot{Page \thepage\ of \numpages}      But that's printing header and footer on all pages except the first one. I did not understand any of the hacks I found on the web.


title: Reference that includes section number and name

text: I'm trying to refer (hyperlink preferably) to another section, or in this spesific case a subsection. I've fixed the problem by creating a new command:               \usepackage{hyperref}     \newcommand{\fullref}[1]{\hyperref[#1]{\ref*{#1}\ \nameref*{#1}}}      So I can type:               As seen in \fullref{subsec:options}.      Which outputs:               As seen in 2.2 Our options.      (The reference being a hyperlink) Is there any easy way to do this without creating a new command? Edit: As mentioned by **Fran** , note that the name \fullref is already used by another package and should be avoided.


title: Parts of the text code are grey and missing in the pdf

text: Hi I am an absolute beginner and so far I was able to solve all problems with the help of this platform and some other forums. But for this one I could not find a fitting thread. I pasted some text from word into a subsection of my latex document in texmaker. The last couple of words of this text block are displayed in grey in the code window and are missing in the pdf when I push quick build. Even if I try to type these last couple of words they still appear grey and are not visible in the pdf. No error occurred.               \documentclass[12pt]{report}     \usepackage[top=1in, bottom=1in, left=1in, right=1in]     {geometry}          \usepackage{graphicx}          \usepackage{tablefootnote}          \usepackage{longtable}          \usepackage{float}     \restylefloat{table}          \usepackage{setspace}     \onehalfspacing          \begin{document}               \clearpage      \pagenumbering{arabic}          \newpage     \chapter{Introduction}     \section{Glioblastoma multiforme}         \subsection{Epidemiology}     Glioblastoma multiforme (GBM) is the most common malignant primary brain tumor in adults.      It is also one of the most common primary brain tumors overall, ranking second after meningiomas.      In the United States 3.19 individuals per 100,000 were diagnosed with GBM each year, between 2005 and 2009.      An extrapolation reveals approximately 9,000 new cases per year (Dolecek et al. 2012).       An earlier study conducted in Switzerland revealed a similar incidence of 3.32 and 2.24 per 100,000 individuals per year between 1980 and 1994, for male and female patients respectively (Ohgaki et al. 2004).      Although any age group can develop this kind of tumor, the average American is 64 years old when diagnosed with GBM.      The male to female incidence rate ratio is 1.58. Glioblastoma is also the most aggressive primary brain tumor that holds the worst prognosis of all malignancies of the central nervous system.(Dolecek et al 2012).      There is no detailed data available on the epidemiology of malignant gliomas in Germany (Robert Koch Institiute 2012).              Despite great efforts in neurooncological research and a multimodal treatment    approach, patients suffering from glioblastoma have a median survival of 14.6 months (Stupp et al. 2005).      However, a subgroup of long-term survivors that are believed to constitute 3-5% of all glioblastomas, exceed an overall survival of 36 months (Krex et al. 2007).                     \subsection{Pathology}         \subsection{Clinical Presentation}                  \begin{table}[H]             \centering             \caption{Presenting symptoms of patients suffering from glioblastoma multiforme (according to Chang and Parney 2005)}             \begin{tabular}{p{6cm} c}             \hline             Symptom & Percentage of patients experiencing the symptom\\              \hline             Headache & 57.3\\              Memory loss & 39.2\\             Cognitive changes & 38.8\\             Language deficit & 36.2\\             Motor deficit & 35.9\\             Personality change & 27.4\\             Seizure & 23.5\\             Visual problems & 21.2\\             Changes in consciousness & 18.3\\             Nausea/vomiting & 14.8\\             Sensory deficit & 11.9\\             Papilledema & 4.6\\             Other & 18.5\\             \hline             \end{tabular}             \end{table}                             \subsection{Diagnosis}         \subsection{Treatment}      \section{Prognostic Markers}         \subsection{Clinical Factors}         \subsection{MGMT Promoter Methylation}         \subsection{IDH-1 Mutation}         \subsection{Primary and Secondary Glioblastoma}         \subsection{NogoA and 1p19q Codeletion}         \subsection{BRAF}         \subsection{AQP4 Polymorphism}          \end{document}