title: Did anyone succeed in playing embedded movies inside Acrobat in Linux?

text: Some time ago I asked this question How to include a movie in a PDF? Step by step instructions. (I tried everything documented there, and links therein. I can't find the combination of tools to be able to playback embedded movies in a PDF viewer in Linux.) This time I am going to be more direct: Was anyone, with a certain combination of tools and viewer, able to create a PDF from TeX with an embedded movie and play it back in a Linux viewer (for example some version of Acrobat)? If, so what package, tex version, acrobat version was used? * * * **EDIT 2014** Thanks to @AlexG, great advances have been made regarding the inclusion of movies and in particular the playback in Linux. It is just a pity that Acrobat for Linux is at its end of life (not so much for Adobe but because nobody is picking up the torch for embedded media). This edit simply summarizes a working solution that is illustrated by defining a command `\includemove[dimensions]{moviewithoutextension}`, that produces movies that can be played back in Acrobat 9.4.1 (Linux), Acrobat for Windows and Mac and that fallbacks to external players (and a still picture) in other PDF viewers. Assumptions:   1. You have a copy of jw-player 5.10 (`not 5.9 or 6.x`) in your local directory and it is named `player.swf`. (from here http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-5.10, documentation here: http://www.longtailvideo.com/support/jw5/31138/configuration-options)   2. You have `ffmpeg` version 2.1.4.   3. You have a copy of your movie in the `mp4` format. Any movie can be converted in this way `ffmpeg -i MYMOVIE.VID -qscale 0 -vcodec libx264 -x264opts keyint=25 MYMOVE.mp4`   4. A preview image with the same name but extension `png`. This can be achieved by converting your movie in this way and taking an snapshot: `ffmpeg -i MYMOVIE.mp4 -ss 00:00:2.1 -f image2 -vframes 1 MYMOVIE.png`   5. [optional] A PDF image with the same name but `pdf` extension to replace the PNG preview in case Flash content is not active.   6. You are OK using the packages `hyperref` (and `media9` of course).   7. [for playback] You have Acrobat 9.4.1 (for playback in Linux) or more modern versions in other systems.   8. [for playback] For other PDF viewers: the extension `mp4` is associated with some application and the movie is distributed with the PDF. Limitations (of my poor implementation, not of `media9`)   1. Only `width` and/or `height` can be specified as options.   2. No other player than `jw-player` can be used (options are hardcode in the command definition).   3. It assumes a lot of defaults regarding the behavior of the embedded player.   4. [For fallback] The definition tries it best to have a nice fallback mode for other viewers, and you have to choose (see the code) between embedding the movie or having an external file.   5. [For playback] I don't know if it works in all viewers, it works at least in Acrobat 9.4.1 (Linux) and Evince 3.10.3 (Linux). I saw it work in Acrobat X in Windows and Mac after a "security message" confirmation. Given this conditions, the following document that includes the definition of `\includemovie` and summarizes a working solution.               \documentclass{article}     \usepackage[noplaybutton]{media9}     \usepackage[colorlinks]{hyperref}     \usepackage{attachfile2}          \newcommand{\includemovie}[2][]{         \includemedia[             #1,             activate=pageopen,transparent,             addresource=#2.mp4,addresource=#2.png,             flashvars={                 file=#2.mp4&image=#2.png&                 stretching=uniform&start=0&                 screencolor=white& %improves render in light backgrounds                 controlbar.position=over&controlbar.idlehide=true&                 autostart=true&repeat=always&smoothing=true                 %&bufferlength=10 % may improve repetition of short videos             }         ]{ % for disabled content (in most cases this is fallback)             \begin{tabular}{ll}                 \mbox{                 %   \href{run:#2.mp4} % for not embedded fallback                     \textattachfile[color={0 0 0}]{#2.mp4} % for embedded fallback                     {\texttt{|\kern-.23em>}} % poor play button                 } & \raisebox{-\height}{\includegraphics[#1]{#2}}             \end{tabular}         }{player.swf}     }          \begin{document}          \includemovie[width=5cm]{MYMOVIE} %no extension!          \end{document}


title: How to pass a macro output to \FPeval?

text: How to pass a macro output `\X{Tpeak}` to `\FPeval\Ypeak` as shown in the following code?               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pstricks-add}     \usepackage[nomessages]{fp}     \newcommand\const[3][3]{%         \expandafter\FPeval\csname#2\endcsname{round(#3:#1)}%         \pstVerb{/#2 \csname#2\endcsname\space def}%     }          \const{Vinit}{10}     \const{Theta}{75/180*pi}     \const{Gravity}{10}          \def\X#1{Vinit*cos(Theta)*#1}     \def\Y#1{Vinit*sin(Theta)*#1-Gravity*pow(2,#1)/2}          \const{Tpeak}{Vinit*sin(Theta)/Gravity}          \const{Ypeak}{\X{Tpeak}}          \const{Xpeak}{pow(2,Vinit)*sin(2*Theta)/(2*Gravity)}     \begin{document}     \begin{pspicture}[showgrid=bottom](2\dimexpr\Xpeak\psxunit\relax,\Ypeak)     \end{pspicture}     \end{document}


title: How to (properly) remove the parentheses around the year in authoryear style?

text: Some time ago, Alan Munn asked and lockstep eloquently answered a question about removing parentheses from biblatex `authoryear` style references. Unfortunately, lockstep's solution injects an unwanted `\addperiod\space` into "dash" references. For example, given Author, A. cited twice:               \documentclass{article}          \usepackage[style=authoryear]{biblatex}     \usepackage{xpatch}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,author={Author, A.},year={2001},title={Alpha}}     @misc{A02,author={Author, A.},year={2001},title={Beta}}     \end{filecontents}          \addbibresource{\jobname.bib}     \nocite{*}          \begin{document}          \printbibliography          \xpatchbibmacro{date+extrayear}{%       \printtext[parens]%     }{%       \addperiod\space%       \printtext%     }{}{}          \printbibliography          \end{document}      we get: ![enter image description here](http://i.stack.imgur.com/oHCPr.jpg) I've tried building a solution using constructs like `\usebibmacro{bbx:dashcheck}` without success. How, then, based on lockstep's nice `xpatch`-based approach, can I conditionally include `\addperiod\space` only in the case of "non-dash" references?


title: TeX to epub conversion

text: I want to create epub document, but I only have a tex file (unfortunately, mathematical formulas, and drawing diagrams). I tried pandoc: tex to html, tex to xhtml, to xml, but nothing works properly. I use tikz. You can do the epub file with png or svg? Some ideas?


title: Problem with multiple fancyheader page styles

text: I want to use multiple fancyheader styles in my document. I've run into a problem that seems to be a bug to me. The code below doesn't compile with `latex`; it seems stuck in an infinite loop.               \documentclass{book}          \usepackage{lipsum}          \usepackage{fancyhdr}          \fancypagestyle{fancy}{%       \fancyhf{}       \fancyhead[C]{fancy \thepage}       \fancyfoot{}     }          \fancypagestyle{tocstyle}{%       \fancyhf{}       \renewcommand{\headrulewidth}{0pt}       \fancyfoot[C]{\footnotesize{TOC \thepage}}     }          \begin{document}          \frontmatter     \pagestyle{tocstyle}          \tableofcontents          \mainmatter     \pagestyle{fancy}          \chapter{Intro}          \lipsum          \end{document}      If I replace the fancyheader style `fancy` by anything else, e.g. `fancy1`, then everything does work as expected.


title: Insert initial phrase in bibliography

text: Is there a way to insert a phrase in the bibliography before the actual list of publications? What I would like to do is to have a phrase like > For a full list of related publications see www.example.com followed by the standard list of publications. I would use this with moderncv


title: Changing side of line numbering in two columns documents part two

text: I have the same question as this one: tex.stackexchange.com/questions/9510/changing-side-of-line-numbering-in-two- columns-documents/ I'd like to use the `listings` package in a `twocolumn` document. An option like `numbers=outside` would be awesome, but doesn't exist (yet?). I tried the following:               \makeatletter     \def\@numpos\if\@firstcolumn left\else right\fi     \makeatother      and in `\lstset` I set `numbers=\@numpos`. It obviously doesn't work that way. The first answer on the above-mentioned question is a neat solution, but simply does not do what I and the other question's author ask for. The presented solution has a flaw as well: the line numbers a ragged to the right (if `numbers=left`), I'd like it better if they were ragged to the left. * * * By the way / off topic: I commented on the above-mentioned question, but my answer got deleted and I was advised to start my own question about it. Probably because my answer was not an actual answer, just another question.


title: Adding a cover page for appendices and bibliography

text: I need to add two cover pages (plain page with centered text) in front of my appendices and bibliography to satisfy the typographical requirements of my graduate school. They must be treated as part of the appendices and bibliography, i.e. the entry in the table of contents defining the start of the appendices or bibliography should refer to the cover pages. Any ideas? I've included a stripped version of the main document below. Thank you! * * *               \documentclass[12pt,oneside]{book}          % \usepackage[l2tabu, orthodox]{nag}     \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}          \usepackage[latin1]{inputenc}        \usepackage[T1]{fontenc}             \usepackage[light,partialup,largesmallcaps]{kpfonts}            \usepackage{setspace}     \usepackage{microtype}          \usepackage[sort&compress]{natbib}     \bibpunct{[}{]}{,}{n}{,}{,}          \usepackage{graphicx}          \usepackage{booktabs}     \usepackage{multirow}     \usepackage{lscape}     \usepackage{longtable,ltcaption}          \usepackage{array}     \usepackage{mathtools}          \newcommand{\hmmax}{0}     \newcommand{\bmmax}{2}     \usepackage{bm}          \usepackage[bf]{caption}     \usepackage[version=3]{mhchem}     \usepackage{xspace}                    \newcommand{\clearemptydoublepage}%       {\newpage{\pagestyle{empty}\cleardoublepage}}               \begin{document}               % FRONT MATTER: TITLE, ABSTRACT, DEDICATION, AND THANKS          \pagestyle{empty}                \pagenumbering{roman}            \include{prelim/title}     \doublespace     \include{prelim/abstract}     \include{prelim/copyright}     \pagestyle{plain}            \include{prelim/dedication}     \include{prelim/thanks}               % TABLE OF CONTENTS, LIST OF FIGURES, TABLE OF TABLES          \singlespace     \tableofcontents          \cleardoublepage     \addcontentsline{toc}{chapter}{\listtablename}     \listoftables           \cleardoublepage     \addcontentsline{toc}{chapter}{\listfigurename}     \listoffigures          \doublespacing               % MAIN BODY OF THESIS     % -------------------     \newpage     \pagestyle{plain}                    \pagenumbering{arabic}               \include{ch01_intro/chapter01}     % Other chapters emitted for brevity               % APPENDICES          \appendix     \clearemptydoublepage     \include{appendices/appendix1}     % Other appendices ommitted     \clearemptydoublepage          % End matter:     \pagestyle{plain}     \singlespace     \bibliographystyle{unsrtnat}     \addcontentsline{toc}{chapter}{\protect\textit{Bibliography}}     \bibliography{references}     \clearemptydoublepage          \end{document}


title: How to automate a job of changing tags in a bunch of EPS images and convert them to PDF

text: This post is a continuation to my earlier post here: Creating standalone eps files and using batch files to automate the process `Xport` gave good answers that work! One goal of this whole process of automation also helps when using `pdfLaTeX` is used instead of the traditional `tex > dvi > ps > pdf` route. With `TeXLive 2010`, one can just issue the `pdfLaTeX` command and all `eps` files get converted on the fly to `pdf` and get inserted in the document. I do not like the `pdfLaTeX` workflow but it compiles much faster than the traditional `tex > dvi > ps > pdf` route. So I have decided to use `pdfLaTeX` while a document is still work-in-progress and then I can use the workflow `tex > dvi > ps > pdf` to get the final compilation with all proper `eps` files inserted. Now with `pdfLaTeX`, an `eps` file gets converted to `pdf` as follows: e.g. `jeffcott.eps` gets converted to `jeffcott-eps-converted-to.pdf` and `model.eps` gets converted to `model-eps-converted-to.pdf`. Making use of `Xport` batch files, I have tried to automate the above: First we have the file `automate.bat` as follows:               for %%x in (*.tex) do dobatch.bat %%~nx      where the `dobatch.bat` is                rem echo off      latex -interaction=nonstopmode %1      dvips -R -t unknown %1      ps2pdf -dAutoRotatePages#/None -dCompatibilityLevel#1.5 -dPDFSETTINGS#/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dEPSCrop %1.ps %1-temp.pdf      pdfcrop --restricted --hires %1-temp %1.pdf      rename %1.pdf %1-eps-converted-to.pdf      pdftops -level3 -eps %1-eps-converted-to.pdf      del %1.log      del %1.aux      del %1.dvi      del %1.ps      del %1-temp.pdf      ps2eps -f --fixps %1-eps-converted-to.eps      del %1.eps      Let's take an example to see what's happening: Say I have the file `jeffcott.eps` and `model.eps` with unreplaced `psfrag` labels. These files are here: http://petitlien.fr/epspicture I create the file `jeffcott.tex` working on `jeffcott.eps`as follows:                \documentclass[12pt]{standalone}      \usepackage[hiresbb,dvips]{graphicx}      \usepackage[dvips]{color}      \usepackage{psfrag}      \usepackage{fourier}      \newcommand{\figtext}{\small}      \begin{document}      {\figtext      \psfrag{A}{$m$}      \psfrag{B}{$k,c$}      \psfrag{Y}{inner stator bore}      \includegraphics{jeffcott.eps}}      \end{document}      and a similar one `model.tex` working on `model.eps` as given below:                \documentclass[12pt]{standalone}      \usepackage[hiresbb,dvips]{graphicx}      \usepackage[dvips]{color}      \usepackage{psfrag}      \usepackage{fourier}      \newcommand{\figtext}{\small}      \begin{document}      {\figtext      \psfrag{D}{$x$}      \psfrag{E}{$y$}      \psfrag{F}{$\omega_\mathrm{ro}$}      \psfrag{G}{$\omega_\mathit{fo} \thinspace t$}      \psfrag{H}{$\beta$}      \psfrag{I}{$a$}      \psfrag{J}{$r$}      \psfrag{K}{$\theta$}      \psfrag{L}{$r$}      \psfrag{M}{$\mathrm{C}_\mathrm{st}$}      \psfrag{N}{$\mathrm{C}_\mathrm{ro}$}      \includegraphics{model.eps}}      \end{document}      I place `jeffcott.tex`, `model.tex`, `automate.bat` and `dobatch.bat` in the same folder as `jeffcott.eps` and `model.eps`, and then I run `automate.bat`. The following files are now in that folder: A. The original files               jeffcott.tex     model.tex     jeffcott.eps     model.eps     automate.bat     dobatch.bat      B. And the created files from running the `automate.bat`               jeffcott-eps-converted-to.eps     jeffcott-eps-converted-to.eps.eps     jeffcott-eps-converted-to.pdf          model-eps-converted-to.eps     model-eps-converted-to.eps.eps     model-eps-converted-to.pdf      I am close to what I need as `jeffcott-eps-converted-to.pdf` and `model-eps- converted-to.pdf` have been created. These are `pdf` files with all labels by `psfrag` inserted unlike those `pdf` files generated by running `pdflatex` with `TeXLive 2010` which would not contain the replaced labels. What I did in the file `dobatch.bat` was to make sure that I get the same filenames as those which would be created by `pdfLaTeX`. Now I can just replace the `pdfLaTeX` `pdf` versions of my original `eps` files with these `pdf` files created with the batch file. I have four questions: I. In the file `dobatch.bat`, there is the line: `ps2eps -f --fixps %1-eps- converted-to.eps` whatever code comes after this line in the batch file get ignored. Why is that and how to fix that? II. Ghostscript cannot read the bbox for `jeffcott-eps-converted-to.eps` and `model-eps-converted-to.eps`. This is why I use `ps2eps` to fix the bbox and it works. And I get the files: `jeffcott-eps-converted-to.eps.eps` and `model- eps-converted-to.eps.eps`. Since I have the original `eps` files: `jeffott.eps` and `model.eps` (without the `psfrag` labels) in the same directory, I would like to have the new correct `eps` files with all labels included named as `jefcottalone.eps` and `modelalone.eps` to emphasize that they stand alone. How to achieve this in th batch file `dobatch.bat`? III. In my file `jeffcott.tex`, I have used the line:                \documentclass[12pt]{standalone}      Does the `standalone` package accept the option `12pt`? I did not see this in the manual. IV. In my file `jeffcott.tex`, I use the command:               \newcommand{\figtext}{\small}      to specify whatever text in the figure should be of size `\figtext`. It seems to work. Is this the correct way of doing things?


title: How to insert figures in two columns?

text: In my case the figure disappears.               \documentclass[a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{multicol}     \usepackage{lipsum}     \usepackage{tikz}     \begin{document}     \begin{multicols}{2}     \lipsum[1]          \begin{figure}       \begin{tikzpicture}         \draw circle (1);       \end{tikzpicture}       \caption{Figure in two column}     \end{figure}          \lipsum[2]     \end{multicols}     \end{document}


title: Wrapper to enclose several chapters in LaTeX

text: If I have a document with the order of chapters as follows               \documentclass[oneside,11pt]{report} %           ...           \tableofcontents     \listoffigures     \listoftables          \chapter{Introduction}     \chapter{Background}     \chapter{LiteratureReview}     \part{Wrapper part for chapters for case studies 1 and 2}     \chapter{CaseStudy_1}     \chapter{CaseStudy_2}         \part{Wrapper part for chapters for case studies 3 and 4}     \chapter{CaseStudy_3}     \chapter{CaseStudy_4}      \chapter{Conclusion}         ...      I want to have certain chapters wrapped into parts. This is the case using `\part` but unfortunately `\part` includes everything after it. So my Conclusion becomes part of my wrapper for chapters covering case studies 3 and 4. Is it possible to end a part when defined so that chapters after it are not part (no pun intended) of it? The following code demonstrates a simple version of the problem where the Conclusion is part of Part 2:               \documentclass[a4paper,10pt]{report}          \begin{document}          \tableofcontents     \listoffigures     \listoftables          \chapter{Introduction}     \chapter{Background}     \chapter{Literature Review}     \part{Paradigm 1}     \chapter{CaseStudy 1}     \chapter{CaseStudy 2}     \part{Paradigm 2}     \chapter{CaseStudy 3}     \chapter{CaseStudy 4}     \chapter{Conclusion}          \appendix          \end{document}      Can chapter numbers per part also be reset so that each starts at 1? Thanks to the respondents.


title: Migrating from xkeyval to kvoptions: how to retrieve \define@choicekey?

text: I'm in the process of migrating a class I wrote from `xkeyval` to `kvoptions`, mainly because I'd like to provide class options whose values could be list of comma separated values:               \documentclass[myoption={val1,val2}]{myclass}      and, for this, `xkeyval` needs `xkvltxp` which is currently buggy. I'd like to know if there is any tutorial that explains how perform this migration, especially how to deal with `xkeyval`'s `\define@choicekey` macro. Another questions are about:   * `+` extension of `xkeyval`'s macros that allow to deal with unexpected values passed by the user,   * `\ExecuteOptionsX` and `\ProcessOptionsX` equivalents.


title: Axis labels and ticks in degree, plot in radian

text: I've got a plot - the x axis is in radian (from pi/2 to pi) and with gnuplot it works like a charm - the problem is - that my x-axis labeling should be in degree (-90, -75,...,90) and i'm kinda stuck. Should i change everything to degree or is there an option to achieve this with altering the ticks?                \documentclass{article}      \usepackage{tikz,pgfplots}      \begin{document}      \begin{tikzpicture}[plot/.style={very thick,raw gnuplot,mark=none,black}]      \begin{axis}[minor y tick num=3, minor x tick num=1, width=\textwidth, domain=-pi/2:pi/2,      ymin=0, ymax=1.3, xmin=-1.571, xmax=1.571, grid=both, y=5cm, axis y line=left, axis x line=bottom]      \addplot gnuplot [plot,red]          { ag1(x) = 0.5 + 0.2*sin(10*x);plot[-pi/2:pi/2]ag1(x)};      \end{axis} \end{tikzpicture}      \end{document}      It should look similar to this picture: ![enter image description here](http://i.stack.imgur.com/605Bk.png)


title: How to draw this diagram?

text: ![enter image description here](http://i.stack.imgur.com/QNqfU.jpg) I don't know how to draw this by latex.


title: Custom chapter heading

text: I'm currently writing my thesis, using the book class. I am trying to display the table of contents in this manner: ![toc](http://i.stack.imgur.com/FlcTK.png) And each chapter is displayed this way: ![chapter](http://i.stack.imgur.com/v9rJG.png) I'm fairly new to latex and this is my first time writing a thesis so I don't know exactly how to format it this way. Any ideas would be great! Thanks!


title: Making hats (and other accents) bold

text: I've been typesetting some equations, and I've found that the default behavior accents like `\hat`, `\bar`, `\tilde`, etc. makes a rather small and easily- missed mark. Is there some way to make the accents stand out more? In particular, is there any way to make them appear in bold (without affecting the letter they are over)?


title: Draw 3D quadric surfaces

text: Hi I want to know how i can draw 3D quadric surfaces defined by equations ... ![enter image description here](http://i.stack.imgur.com/ZWJV4.png) I tried using 3d-plot and tikz but was unable to make it work :/


title: Typeset cftchapfont as uppercase

text: I'm trying to put the whole `cftchapfont` as uppercase.               \renewcommand\cftchapfont{\MakeUppercase}      does not work at all (it actually messes up everything), nor does:               \renewcommand\cftchappresnum{\MakeUppercase\chaptertitlename\;}      which only capitalizes `\chaptertitlename`, nor does:               \renewcommand\cftchappresnum{\MakeUppercase\chaptertitlename\;\MakeUppercase}      which only capitalizes the first letter of SNUM (and I've got words such as "premier" for the first chapter). How can I make sure the whole thing is uppercase?


title: How to align with enumitem?

text: I have looked into the documentation of `enumitem` but couldn't figure out how to handle this. I just want a list that aligns the item names to a standard indent from the left and then aligns the item texts according to the longest item name. Isn’t this the natural way you would put a list in typesetting? But `enumitem` does something else wihtout configuration: It aligns the item’s text to a standard indent and then puts the name left from it, so that long item names produce overfull boxes to the left.               \documentclass{article}     \usepackage{enumitem}          \begin{document}          \begin{enumerate}          \item[QuiteLongItemName] Item text...     \item[OtherItem]          \end{enumerate}          \end{document}      How do you change this?


title: weird underfull \hbox (badness 10000) in paragraph error

text: I know this question has been asked dozen of times, but I cannot find any with a problem like mine: I'm working on this document, which compiled fine yesterday (I still have the old version and it is still compiling perfectly), today I added a couple of sections and a bunch of subsections, without weird commands, only plain text and \\\ but when I tried to compile I got dozens of underfull \hbox errors, the first one being at line 16 (which compiled fine in the previous version of the document). This line, specifically, is: > In linea di principio, una volta che un algoritmo è stato sviluppato, questo > può essere eseguito, con risultati uguali e prevedibili tanto da un > calcolatore quanto da un essere umano, con l'unica differenza che un > calcolatore, a meno di errori (umani), nell'implementazione dell'algoritmo o > dell'hardware su cui viene eseguito è decine di ordini di grandezza più > veloce e più preciso a svolgere alcuni compiti.\\\\\\\ that is, plain text ending with newlines.   the problem is that even after removing the newlines I still get the same error and I cannot understand what's causing it since it wasn't a problem yesterday. How am I supposed to tell TeX to start a new line without it complaining?


title: Proofs in Beamer

text: I'm writing a presentation in Beamer, where I present proofs which are longer than one frame. How to make Beamer to break it automatically to another frame? If it is not possible how am I supposed to remove the square (the end of proof) and put it in a right place in another frame?


title: Using BibTeX to make a list of references without having citations in the body of the document?

text: Is there any way to have BibTeX insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body?


title: Print whole bibliography to PDF

text: > **Possible Duplicate:**   >  Generate a complete bibliography   >  Using BibTeX to make a list of references without having citations in the > body of the document? I got the task to show my whole bibliography to my teacher and I'm not sure she is happy to handle a `.bib` file. So I try to print them into a PDF. At first I tried a normal LaTeX bibliography, but the problem is, that LaTeX wants to be smart about it and only uses the `.bib` entries that are actually used in citations. Do I have other options to get the whole library printed? Citing all entries from my library will be quite a hassle, because there are a lot.


title: Generate .tex output from .bib file to cut and paste

text: I have a paper (written in Sci Word, but I think that's irrelevant) and I would like to format the bibliography to match a journal's style guide. The authors did the references manually, so I need to generate a bibliography in tex that I can just cut-and-paste into the references section. It seems the easiest way is to generate my own .bib file with the references and somehow trick bibtex into giving the tex output that I can save to a text file (the authors don't want me to link the references with `\cite{}`s or edit the body of the paper). Is this possible? Or are the only solutions at the extremes (i.e., doing the `\cite{}`s or completely manually generating the bibliography)? Thanks!


title: How to list all bibliography entries without citing

text: > **Possible Duplicate:**   >  Using BibTeX to make a list of references without having citations in the > body of the document? I've read that "All items listed in the bibliography should be cited in the body of the paper." But if I did not cite any item in the `.tex` file, how can I list the items in the bibliography? That's it, I did not want to cite any item, but to appear in the bibliography section


title: How to include non cited entries in bibliography with bibtex?

text: For my master dissertation, I have some bibliography entries in a standard .bib file. But some of them are books that I may not cite directly, but I have used them for theory and wish to include them. Until now, the only entries that do appear in the compiled output are the ones that I have explicitly cited. Can I include non cited entries as well with bibtex? If so, how?


title: Bibliography does not appear after running tex file

text: Using article for document class the code is as following, but when I compile `pdflatex`, `bibtex` and again `pdflatex` twice the bibliography doesn't appear in the pdf file. I created a bib database called bibliography.               \maketitle          \begin{abstract}     A     \end{abstract}          \section{Introduction}          \paragraph{Outline}     A          \section{Previous work}\label{previous work}               \section{Results}\label{results}               \section{Conclusions}\label{conclusions}               \bibliographystyle{alpha}      \bibliography{bibliography}      What should I check to find out what goes wrong?


title: a bibliography with uncited references

text: > **Possible Duplicate:**   >  Using BibTeX to make a list of references without having citations in the > body of the document? I'd like some specific entries to appear in my bibliography that I don't intend to cite (i.e. it's a first year report and I just have to show that I'm reading widely). How would you go about adding multiple entries to your natbib (preferably) managed referenced. The best I can think of is putting them in something like `\phantom`, but then I'll end up with lots of white-space


title: Reference list only shows titles which are referenced in the thesis

text: > **Possible Duplicate:**   >  Using BibTeX to make a list of references without having citations in the > body of the document? I would like to publish all titles in the reference list, including those which are not cited in the paper. How can I do so with "apacite"?


title: Display every bibtex file entry when calling \bibliography{literatur}

text: I'm using `bibtex` in combination with the LaTeX `beamer` class and have one `literature.bib` file in the same directory. In my presentation I cite several entries of `literature.bib` but I want each and every entry displayed afterwards when calling `\bibliography{literatur}` (independently from possible `\cite{}` commands). Is that possible? If yes, how?


title: Generate a complete bibliography

text: > **Possible Duplicate:**   >  Using BibTeX to make a list of references without having citations in the > body of the document? Is there an easy way, given a bibtex file, to generate a compiled version of the entire bibliography? I could create a minimal document with a bunch of `\nocite{}` commands, but that would require me to update it each time I add a reference to the bibliography.


title: Customizing the list of listings generated by \lstlistoflistings?

text: I'm using `listings` in my document, and its command `\lstlistoflistings` to generate the list of listings. The problem is that I've customized all the other lists (TOC, LOF and LOT). More precisely, I've changed the color of the page number, removed the leading dots and move the page number to appear right after the entry text (i.e. the page number is no longer right-aligned). Here's a complete example:               \documentclass[a4paper, 11pt]{memoir}          \usepackage{microtype}     \usepackage{textcase}     \usepackage{titlesec}     \usepackage{listings}     \usepackage[usenames,dvipsnames]{color}          % Define color theme     \newcommand{\titleColor}{\color[rgb]{0.616, 0.0627, 0.176}}     \newcommand{\partChapterNumColor}{\titleColor}     \newcommand{\tocPageColor}{\color[rgb]{0.0980, 0.329, 0.651}}          % Rules     \newcommand{\thinRule}{\rule{\textwidth}{0.25pt}}          % Customize heading appearance     \newcommand{\partSize}{\Huge}     \newcommand{\partStyle}{\lsstyle\scshape}     \newcommand{\chapterSize}{\huge}     \newcommand{\chapterStyle}{\lsstyle\scshape}     \newcommand{\chapterAfter}{\thinRule}     \newcommand{\sectionSize}{\Large}     \newcommand{\sectionStyle}{\lsstyle\scshape\MakeTextLowercase}     \newcommand{\subsectionSize}{}     \newcommand{\subsectionStyle}{\itshape}     \newcommand{\numberStyle}{\fontsize{60pt}{72pt}\selectfont\partChapterNumColor}     \titleformat{\part}[display]                 {\filcenter}                 {\numberStyle\thepart}                 {0pt}                 {\partSize\partStyle}     \titleformat{\chapter}[display]                 {}                 {\filleft\numberStyle\thechapter}                 {0pt}                 {\chapterSize\chapterStyle}                 [\chapterAfter]     \titleformat{\section}                 {\sectionSize}                 {\thesection\quad}                 {0pt}                 {\sectionStyle}     \titleformat{\subsection}                 {\subsectionSize}                 {\thesubsection\quad}                 {0pt}                 {\subsectionStyle}          % Customize "Table of ..." appearance     % Customize headings     \newcommand{\fixCtfHeadingBeforeSpacing}{\vspace*{1ex}} % Needed to make chapter     \newcommand{\fixCtfHeadingAfterSpacing}{\vspace*{0.5ex}} % layout coherent     \newcommand{\renewPrintXTitle}[1]{%       \renewcommand{#1}[1]{%         \fixCtfHeadingBeforeSpacing         \chapterSize\chapterStyle ##1         \fixCtfHeadingAfterSpacing         \par\chapterAfter       }     }     \renewPrintXTitle{\printtoctitle}     \renewPrintXTitle{\printlottitle}     \renewPrintXTitle{\printloftitle}          \renewcommand{\cftpartfont}{\partChapterNumColor\partStyle}     \renewcommand{\cftchapterfont}{\chapterStyle}     \renewcommand{\cftsectionfont}{}     \renewcommand{\cftsubsectionfont}{}     \renewcommand{\cftfigurefont}{}     \renewcommand{\cfttablefont}{}     \newcommand{\cftlistingfont}{}     % No leader dots     \renewcommand*{\cftpartdotsep}{\cftnodots}     \renewcommand*{\cftchapterdotsep}{\cftnodots}     \renewcommand*{\cftsectiondotsep}{\cftnodots}     \renewcommand*{\cftsubsectiondotsep}{\cftnodots}     \renewcommand*{\cftfiguredotsep}{\cftnodots}     \renewcommand*{\cfttabledotsep}{\cftnodots}     % Set page numbers immediately after entry text     \newcommand{\tocEntryPageSep}{\hspace{2em}}     \renewcommand{\cftpartleader}{\tocEntryPageSep}     \renewcommand{\cftpartafterpnum}{\cftparfillskip}     \renewcommand{\cftchapterleader}{\tocEntryPageSep}     \renewcommand{\cftchapterafterpnum}{\cftparfillskip}     \renewcommand{\cftsectionleader}{\tocEntryPageSep}     \renewcommand{\cftsectionafterpnum}{\cftparfillskip}     \renewcommand{\cftsubsectionleader}{\tocEntryPageSep}     \renewcommand{\cftsubsectionafterpnum}{\cftparfillskip}     \renewcommand{\cftfigureleader}{\tocEntryPageSep}     \renewcommand{\cftfigureafterpnum}{\cftparfillskip}     \renewcommand{\cfttableleader}{\tocEntryPageSep}     \renewcommand{\cfttableafterpnum}{\cftparfillskip}     % Customize page numbers     \newcommand{\tocPageStyle}{\tocPageColor}     \renewcommand{\cftpartpagefont}{\tocPageStyle}     \renewcommand{\cftchapterpagefont}{\tocPageStyle}     \renewcommand{\cftsectionpagefont}{\tocPageStyle}     \renewcommand{\cftsubsectionpagefont}{\tocPageStyle}     \renewcommand{\cftfigurepagefont}{\tocPageStyle}     \renewcommand{\cfttablepagefont}{\tocPageStyle}                    \begin{document}          \tableofcontents     \lstlistoflistings          \section{new section}          bla bla bla          \begin{lstlisting}[caption=test code]     Test     \end{lstlisting}          \end{document}      Now I've figured out how to change the fonts by redefining one of `listings`'s internal commands:               \makeatletter     \renewcommand*{\l@lstlisting}[2]{%       \@dottedtocline{1}                      {0em} % Indent                      {\cftfigurenumwidth} % Listing number width                      {\cftlistingfont#1} % Entry text font                      {\tocPageStyle#2}% % Page number font     }     \makeatother       But how do I remove the dots and move the placement of the page number? Also, it appears that the entries in the LOL appears slightly higher up in the document compared to the other lists. Also note that I'm using `memoir`, if that's of any use.


title: Punctuation around citations

text: > Possible duplicates: > >   * Should you put citations before or after interpunction? > I use BibLaTeX and have three options to cite: `\cite` creates just text, like “Author, Year”. `\parencite` creates “(Author, Year)” and `\footcite` creates a footnote. When I cite something within the text, I usually use the following:               From \cite{source}, it follows that …      Which renders to: > From Author, Year, it follows that … However, when I want to attribute something at the end of the sentence, where do I put the puncutation when I want to attribute the preceding sentence? Before the period, after it? Another period after the citation?   1. This is a fact. (Author, Year) And another fact. (another Author, year)   2. This is a fact. (Author, Year). And another fact. (another Author, year).   3. This is a fact (Author, Year). And another fact (another Author, year). The problem with 3. seems to be that it looks like the citation is attached to the _word_ “fact”, not the whole _sentence_. My field is Physics, and I would write in German and English. What is the right way to do this?


title: Why does pdfLaTeX fail when I try to use `begin{lstlisting}` inside a user-defined environment?

text: I'm having trouble with the `listings` package. I can't compile the following minimal example through `pdfLaTeX`:               \documentclass[a4paper, 11pt, twoside, openright, english]{memoir}          \usepackage{listings}          \newenvironment{haskellCode}     {%       \begin{lstlisting}%     }     {%       \end{lstlisting}%     }          \begin{document}     \begin{haskellCode}       test     \end{haskellCode}     \end{document}      The compilation process just stops and appears to ask me for input:               * <The hell? I'll just try pressing ENTER then...>     (Please type a command or say `\end')     *      But if I move the code in `haskellCode` directly into the document (i.e. use `lstlisting` directly) it compiles fine. Any idea what's happening and how I can fix it?


title: Controlling draft options from a Makefile

text: I would like to control class options such as `draft` and geometry package's `showframe` from a Makefile. Is there a way I can parameterise a document using LaTeX itself, or will I need to preprocess the document using sed from the Makefile?


title: equation in math mode

text: \begin{equation}          E-\epsilon_{i}-T_{i}-V_{0,i}(\textbf{R}) \tilde \chi_{i}^(+)(\textbf{K_{i}},\textbf{R})&=0               \end{equation}      Missing $ inserted and I don't know why. Can anybody help me? thanks


title: How to change the numbering of \part, \chapter, \section, ... to alphabetical, Roman numbers, etc

text: I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.               1 foo      a bar        i baz      But I want to know if there is a way to do this by default for sections and subsections.


title: Customize sections' numbering

text: I want to customize my sections to look like the following but I don't know how to do it. Can somebody help ? ![How I want my section's number to look like](http://i.stack.imgur.com/yfTVl.png)


title: Change part numbering to A, B, C, ... instead of I, II, III,

text: How can I configure the `\part` command to use A, B, C, ... to label parts, instead of I, II, III, ... Or is this bad practice?


title: scrpage2 with scrbook. Chapter on left and right header

text: I started using `scrpage2` with `scrbook`. First thing I don't understand is the usage of `\automark[chapter]{chapter}`. How could I let display chapter on left and right header. I managed to do that with subsection and chapter etc. But the first seems to be more difficult..               \documentclass[12pt, draft]{scrbook}      \usepackage[automark]{scrpage2}         between `\begin{document}` and `\end{document}`                \pagestyle{scrheadings}      \ohead{\pagemark}       \cehead{\leftmark}       \cohead{\rightmark}       \ofoot[]{}       %%%%%%               \chapter{Intro}     \automark[chapter]{chapter}                \chapter{Different Chapter}     \automark[subsection]{chapter}       etc.


title: Lettrine and section at bottom of page causes bad pagebreak

text: My custom lettrine and section causes some of my pagebreaks to ruin my layout. Please see the example of the output for the attached code run through XeLaTeX. ![Bad pagebreak!](http://i.stack.imgur.com/xz6ak.png) Verse 2 on the next page should actually be written next to the bottom part of the 117 lettrine. Or else the whole chapter starting at the 117 lettrine should be moved to the next page. But forcing `\nopagebreak` before my sections breaks the page before the 118 lettrine as well, which is wrong since chapter 117 is very short and can't be on it's own page for obvious aesthetic reasons. I have tried using `\nopagebreak[n]` but that just did not give expected results. Is it possible to customise the priority more specific for when TeX decides to do a page break?               \documentclass[paper=a5,pagesize=pdftex]{scrbook}     \usepackage[top=2cm,bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry}     \usepackage[pagestyles]{titlesec}     \usepackage{lettrine}     \usepackage{xltxtra}     \usepackage{etoolbox}     \usepackage{setspace}          \renewcommand{\thesection}{\arabic{section}}     \renewcommand{\thesubsection}{\arabic{subsection}}          \defaultfontfeatures{Mapping=tex-text}     \setmainfont{Cardo}          % definition of the page style with required headers     \newpagestyle{Biblestyle}{       \setheadrule{.02pt}       \sethead[\thepage][\chaptertitle][\firsttitlemarks\thesection:\ifthesubsection{\firsttitlemarks\thesubsection}{1}---\bottitlemarks\thesection:\bottitlemarks\thesubsection]{\firsttitlemarks\thesection:\ifthesubsection{\firsttitlemarks\thesubsection}{1}---\bottitlemarks\thesection:\bottitlemarks\thesubsection}{\chaptertitle}{\thepage}     }          % sets the marks to be used (section and subsection)     \setmarks{section}{subsection}          \newlength\howwide          \newcommand\defhowwide{         \ifnumless{\value{section}}{99}{\ifnumgreater{\value{section}}{8}{\setlength{\howwide}{2.5em}}{\setlength{\howwide}{1em}}}{\ifnumgreater{\value{section}}{98}{\setlength{\howwide}{3.5em}}{\setlength{\howwide}{2.5em}}}     }          % sections and subsections formatting     \titleformat{\section}{}{\lettrine{\thesection}}{0em}{}[\vskip-1\baselineskip]     \titleformat{\subsection}[runin]{\small\bfseries}{\thesubsection}{1em}{}     \titlespacing{\section}{\howwide}{-1pt}{0pt}     \titlespacing{\subsection}{0pt}{0pt}{1em}          \setlength{\parindent}{0pt}          \newlength\NumLen     \newlength\LinLen     % indents one line of text. Indentation= width of section number + 1em     \newcommand\IndOne{%       \setlength\NumLen{\howwide}       \addtolength\NumLen{0.5em}       \setlength\LinLen{\dimexpr\textwidth-\NumLen}%\the\NumLen\the\LinLen       \parshape 2 \NumLen \LinLen 0pt \textwidth}     % indents two lines of text. Indentation= width of section number + 1em     \newcommand\IndTwo{%       \setlength\NumLen{\howwide}       \addtolength\NumLen{0.5em}       \setlength\LinLen{\dimexpr\textwidth-\NumLen}%\the\NumLen\the\LinLen       \parshape 3 \NumLen \LinLen \NumLen \LinLen 0pt \textwidth}          \usepackage[none]{hyphenat}     \sloppy          \begin{document}     \frontmatter          \mainmatter     \pagestyle{Biblestyle}     \newlength{\myIndent}     \begin{center}     THE BOOK OF\\     \vspace{0.15cm}\textbf{\Huge{PSALMS}}\vspace{0.00cm}\\     \end{center}          \renewcommand{\chaptertitle}{Psalms}     \setcounter{section}{115}          %\pdfbookmark[1]{116}{19O116}     \defhowwide     \section{}     \settowidth{\myIndent}     {\IndOne I love the \textsc{Lord}, because he hath heard my voice and my supplications.}     \ifdimless{\the\myIndent}     {\textwidth-\howwide}     {\IndOne I love the \textsc{Lord}, because he hath heard my voice and my supplications. \stepcounter{subsection}     \subsection{} \IndOne Because he hath inclined his ear unto me, therefore will I call upon him as long as I live.}     {\IndTwo I love the \textsc{Lord}, because he hath heard my voice and my supplications. \stepcounter{subsection} \subsection{} Because he hath inclined his ear unto me, therefore will I call upon him as long as I live.}     \subsection{} The sorrows of death compassed me, and the pains of hell gat hold upon me: I found trouble and sorrow.     \subsection{} Then called I upon the name of the \textsc{Lord}; O \textsc{Lord}, I beseech thee, deliver my soul.     \subsection{} Gracious is the \textsc{Lord}, and righteous; yea, our God is merciful.     \subsection{} The \textsc{Lord} preserveth the simple: I was brought low, and he helped me.     \subsection{} Return unto thy rest, O my soul; for the \textsc{Lord} hath dealt bountifully with thee.     \subsection{} For thou hast delivered my soul from death, mine eyes from tears, and my feet from falling.     \subsection{} I will walk before the \textsc{Lord} in the land of the living.     \subsection{} I believed, therefore have I spoken: I was greatly afflicted:     \subsection{} I said in my haste, All men are liars.     \subsection{} What shall I render unto the \textsc{Lord} for all his benefits toward me?     \subsection{} I will take the cup of salvation, and call upon the name of the \textsc{Lord}.     \subsection{} I will pay my vows unto the \textsc{Lord} now in the presence of all his people.     \subsection{} Precious in the sight of the \textsc{Lord} is the death of his saints.     \subsection{} O \textsc{Lord}, truly I am thy servant; I am thy servant, and the son of thine handmaid: thou hast loosed my bonds.     \subsection{} I will offer to thee the sacrifice of thanksgiving, and will call upon the name of the \textsc{Lord}.     \subsection{} I will pay my vows unto the \textsc{Lord} now in the presence of all his people,     \subsection{} In the courts of the \textsc{Lord}'s house, in the midst of thee, O Jerusalem. Praise ye the \textsc{Lord}.          %\pdfbookmark[1]{117}{19O117}     \defhowwide     \section{}     \settowidth{\myIndent}     {\IndOne O praise the \textsc{Lord}, all ye nations: praise him, all ye people.}     \ifdimless{\the\myIndent}     {\textwidth-\howwide}     {\IndOne O praise the \textsc{Lord}, all ye nations: praise him, all ye people. \stepcounter{subsection}     \subsection{} \IndOne For his merciful kindness is great toward us: and the truth of the \textsc{Lord} endureth for ever. Praise ye the \textsc{Lord}.}     {\IndTwo O praise the \textsc{Lord}, all ye nations: praise him, all ye people. \stepcounter{subsection} \subsection{} For his merciful kindness is great toward us: and the truth of the \textsc{Lord} endureth for ever. Praise ye the \textsc{Lord}.}          %\pdfbookmark[1]{118}{19O118}     \defhowwide     \section{}     \settowidth{\myIndent}     {\IndOne O give thanks unto the \textsc{Lord}; for he is good: because his mercy endureth for ever.}     \ifdimless{\the\myIndent}     {\textwidth-\howwide}     {\IndOne O give thanks unto the \textsc{Lord}; for he is good: because his mercy endureth for ever. \stepcounter{subsection}     \subsection{} \IndOne Let Israel now say, that his mercy endureth for ever.}     {\IndTwo O give thanks unto the \textsc{Lord}; for he is good: because his mercy endureth for ever. \stepcounter{subsection} \subsection{} Let Israel now say, that his mercy endureth for ever.}     \end{document}


title: Obsolete comand \Bbb

text: A warning keeps popping up in my LaTeX editor, and it's really annoying. It says that the command `\Bbb` is obsolete and I should use `\mathbb` instead. I personally like the command `\Bbb` by the obvious reason that its shorter than the newer one. If the command `\Bbb` is obsolete then why they don't take it out? If I try to make a new command to redefine `\Bbb` as `\mathbb`, the compiler won't let me. Is there a way to get rid of this warning?


title: Weird imperfect table, horizontal line overflow

text: I've this weird problem where the horizontal lines in a table are overflowing. It might be due to one of the many packages, I'm not sure. Is there a way to forcefully fix the table border. The latex code used to generate the table is this               \begin{table}%[h]     \caption{test} % title of Table     \centering  % used for centering table     \begin{tabular}{|c|c|c|c|c|} \hline     T & t1  & t2  & t3 & t4 \\ \hline     a & 10\%  & 40\% & 70\% & 95\% \\ \hline     b & 20\%  & 50\% & 80\% & 98\% \\ \hline     c & 30\%  & 650\% & 90\% & 99\% \\ \hline     \end{tabular}     \end{table}      Sample image is: ![http://i.stack.imgur.com/0VjCB.png](http://i.stack.imgur.com/OyPBX.png)


title: Styling an "article" document

text: I'm writing a document using the class _article_. There are some things I'd like to change, for example:   * Always center `\section` and `\subsection` titles without doing it manually each time using `\begin{center} ... \end{center}`   * decrease the spacing between list elements without writing `\begin{enumerate}[itemsep=-1mm]` each time.   * etc. Where can I find instructions about this? I couldn't find a "manual" where I could look up all of the options and keys. In case there is not a manual, how could I achieve these results?


title: How to pass the option "listings" to examplep

text: I've been trying to pass the option `listings` to the `examplep` package. According to the documentation one can pass the options to activate the listing by doing `listings=yes`, `listings={}`. However, none of those works and I still get the error: > Package examplep Error: Unknown option: listings (= yes) ...name > opt@\@currname.\@currext\endcsname} I checked on the source code, and I can't find any `listings` option inside it. (I updated to TL 2014, just to check that, and still getting the same error.) What am I missing? The code I'm testing               \documentclass{article}          \usepackage{listings}     \usepackage[listings=yes]{examplep}% this doesn't work     %\usepackage{examplep}% this does               \begin{document}     \pagestyle{empty}          % This lstlisting has its own caption     \begin{lstlisting}[language=C++,caption={Caption of lstlisting},label=cod:c]     #include<iostream>          int main{       std::cout << "Hello LaTeX\n";     }     \end{lstlisting}          % The lstlisting caption is not shown here     \begin{WBoth}     \begin{lstlisting}[language=C++,caption={Caption of lstlisting}]     #include<iostream>          int main{       std::cout << "Hello LaTeX\n";     }     \end{lstlisting}     \end{WBoth}     \PexaShowSource{}     \PexaShowSample{}          \end{document}      **Edit:** I contacted the author of the package, and he kindly shared a version of the file with `listings` on it: http://www.math.bme.hu/~pts/examplep_all.zip. I'm trying to make it work, but as he pointed it out, the package is more than 8 years old. I'm trying to make it work, but still get several errors on the simple example above. Probably someone with more experience can check what's going on. As right now I'm getting `\PexaShowSample` undefined control sequence errors.


title: Create filled shape with \foreach

text: I now did it manually, but I'm interested in how I can do this with a loop:               \documentclass{standalone}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}     \tikzstyle{Punkt} = [coordinate]          \node[Punkt] (Center) at (0, 0) {};     \draw[-, thick, fill=black!30!white]{[rounded corners=1.5pt] ([shift={(30:1.2)}]Center)  arc (30:34:1.2) --                                                   ([shift={(36:1.5)}]Center)  arc (36:84:1.5) --                                                    ([shift={(86:1.2)}]Center)  arc (86:94:1.2) --                                                  ([shift={(96:1.5)}]Center)  arc (96:144:1.5) --                                                  ([shift={(146:1.2)}]Center)  arc (146:154:1.2) --                                                  ([shift={(156:1.5)}]Center)  arc (156:204:1.5) --                                                  ([shift={(206:1.2)}]Center)  arc (206:214:1.2) --                                                  ([shift={(216:1.5)}]Center)  arc (216:264:1.5) --                                                  ([shift={(266:1.2)}]Center)  arc (266:274:1.2) --                                                  ([shift={(276:1.5)}]Center)  arc (276:324:1.5) --                                                  ([shift={(326:1.2)}]Center)  arc (326:334:1.2) --                                                  ([shift={(336:1.5)}]Center)  arc (336:384:1.5) --                                                  ([shift={(386:1.2)}]Center)  arc (386:390:1.2)                                                                                };     \draw [fill=white, opacity=1, thick] (Center) circle [radius=1];          \end{tikzpicture}          \end{document}       ![pic1](http://i.stack.imgur.com/opLrF.png) If I try something like this:               \foreach \i in {1,2,...,6}{      \draw[-, fill=green][rotate=(\i-1)*360/6]      {[rounded corners=1.5pt] ([shift={(29:1.2)}]Center)  arc (29:34:1.2) --      ([shift={(36:1.5)}]Center)  arc (36:84:1.5) --       ([shift={(86:1.2)}]Center)  arc (86:91:1.2);     }      It is only filled between the start- and end-point of each segment: ![pic2](http://i.stack.imgur.com/iKLu8.png) Thank you for help. Konne


title: TeX Live can't find "tcfmgr.map" and "fmtutil.cnf"

text: I ran into some problems with TeX and re-installed TeX Live. (I'm using Fedora 16 x86_64) Now, when I try to run `pdflatex`, it says:               tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.          fmtutil: config file `fmtutil.cnf' not found      I did `texhash`, `texconfig rehash` and I still have the same problem. Actually, the two files tex complains that it can't find are in:               /usr/share/texmf/texconfig/tcfmgr.map          /usr/share/texlive/texmf/web2c/fmtutil.cnf      I've no idea what I should do next.


title: Looking for three images on top of each other with text underneath each

text: I need to place three images on a page with text under each, and then one 'overall' caption for the figure. This code puts the images on top of each other but the text is to the left of the images, I need the text under each image. E.g. n = 10 steps should be the text directly under the first image.               \begin{figure}[ht]         \centering         \subfigure[$n = 10$ steps]{             {\includegraphics[width=0.45\textwidth]{Raster/cw_10.png}             \label{cw_10}         }\\         \subfigure[$n = 25$ steps]{             {\includegraphics[width=0.45\textwidth]{Raster/cw_25.png}             \label{cw_25}         }\\         \subfigure[$n = 50$ steps]{             {\includegraphics[width=0.45\textwidth]{Raster/cw_50.png}             \label{cw_50}         }         \caption{Classical Random Walk with various step sizes.}         \label{TS}     \end{figure}


title: Change CV layout

text: I'm a beginner. I tried to write my CV in LaTeX and I downloaded the template from LaTeX Templates. I used the `\cvitem` command but I got a problem. The margin seems too short to show all worlds in one line. It should like this (This picture is from website): ![enter image description here](http://i.stack.imgur.com/HjNMv.png) But it looks like this: ![enter image description here](http://i.stack.imgur.com/R4Yyv.png) How can I solve this problem? Should I change the `moderncv` template? This is my code.               \cvitem{Date of Birth}{}     \cvitem{Place of Birth}{}     \cvitem{Gender}{Male}     \cvitem{Military Service}{}     \cvitem{Marital Status}{}      Thanks for your help.


title: display both an image and a code, side-by-side

text: I'd like to display both an image and a code using pdflatex, side-by-side to illustrate a concept. The code uses listing package. How could I do that ?


title: Alter location of edge in graph in tikz

text: So I have the following:                   \begin{tikzpicture}[shorten >=1pt,node distance=1.75cm,thick]             \node (A) {$A$};             \node (B) [below left of=A] {$B$};             \node (C) [below right of=A] {$C$};                  \path   (A) edge (B)                     (A) edge (C);              \end{tikzpicture}      This produces the following image: ![enter image description here](http://i.stack.imgur.com/e6g5I.png) What I'd really like though is where the edges meet below the nodes: ![enter image description here](http://i.stack.imgur.com/X4g7j.png) Is there a way to alter the edge locations so that they met underneath a node rather than to the unit circle surrounding the node?


title: Running AUCTeX on Windows - problem writing files

text: I love AUCTeX, and use it on an Ubuntu machine all the time. Right now, however, I am stuck with a Windows machine and would like some help getting around a problem. Whenever I try to compile my .tex file with C-c C-c and the file is also open in the viewer, I get the error that "I can't write on abc.pdf". Of course, I can close the viewer every time I want to compile, but I hope that someone knows how to get around this.


title: Automatically replace/render axis ticks with Psfrag

text: Me and a friend are using `psfrag` to include and edit `eps` figures in our reports. However, when including MatLab plots, the fonts of the text that is not replaced is the font exported by MatLab. This has as a result that the values on the axis are not rendered in the LaTeX font. Is there a way to do this automatically? Doing it by hand would be a real hassle that we don't want to go through. ![enter image description here](http://i.stack.imgur.com/JH3tW.png)


title: Adjusting column width in LaTeX with the multicol package

text: I'm trying to get a two column "academic style" paper layout on my LaTeX paper. I'm aware there are at least two common ways of doing this, either with adjusting \documentclass or with the more versatile multicol package. I'm using the latter. Initially I'm trying to just get a template I found working, it is as follows:               \documentclass{article}     \usepackage{multicol}          \begin{document}     \begin{multicols*}{2}     \addtolength{\linewidth}{2.5in}     A lot of text here ...     \end{multicols*}     \end{document}      I've been trying to use various parameters such as the \linewidth given to \addtolength as in the above example, but it seems to have no effect whatsoever on the resulting document. How is the column width adjusted? Is it correct to adjust it like I'm attempting?


title: What does rtp2xyz do?

text: A number of three-dimensional pstricks examples include the line `rtp2xyz`, which is applied to three numbers that look like angles (specified in degrees). What exactly does it do? While I'm at it, what does `Decran` do, since these often seem to appear together?


title: Converting LaTeX to HTML5

text: HTML5 allows for great rendering. Crocodoc for example does a great conversion from PDF to HTML5. Is there any tool to convert LaTeX to HTML5? Does `tex4ht` support HTML5? Here's an example of what Crocodoc achieves in HTML5, compared to the original PDF: ![Crocodoc PDF to HTML5](http://i.stack.imgur.com/z5Ztk.png) and an example of a full document in HTML5.


title: Convert LaTeX to HTML

text: Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird. I actually converted the Latex to PDF without a problem. Then I used an online PDF to HTML converter to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.               \documentclass[12pt,a4paper]{report}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{pstricks,pst-plot}     \usepackage{pst-eucl}     \addtolength{\hoffset}{0.2cm}     \addtolength{\textwidth}{1.1cm}     \addtolength{\textheight}{1.0cm}     \addtolength{\voffset}{-0.7cm}     \linespread{1.3}     \begin{document}          If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\          (4) and (6) tell us that\\          (4)  $-1 \leq x \leq 0$  \\          (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\          Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\          \vspace{50 mm}          \begin{align*}     \psgrid[unit=2cm](0,0)(-2,-2)(2,2)     \pnode(-1.8,.87){b}\uput[50](b){b}     \pnode(-1.8,1.8){a}\uput[50](a){a}     \psset{linecolor=green}     \psline[linewidth=1pt](-1.8, 0)(-1.8,4)     \psset{linecolor=green}     \psline[linewidth=1pt](-1.8, 0)(-1.8,-4)     \psset{linecolor=blue}     \psellipticarc(0,0)(2,2){0}{180}     \psset{linecolor=red}     \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41)     \psset{linecolor=red}     \psline[linewidth=1pt](-1.41,1.41)     \psset{linecolor=red}     \psline[linewidth=1pt]{->}(4,-4)     \psset{linecolor=red}     \psline[linewidth=1pt]{->}(-2,2)(-4,4)     \end{align*}          \end{document}      ### PDF output: ![enter image description here](http://i.stack.imgur.com/uxFRU.png) ### PDF->HTML output: ![enter image description here](http://i.stack.imgur.com/VUmpq.png)


title: Remove/hide content if it would appear as an orphan

text: > **Possible Duplicate:**   >  prevent "action" if top of page I have some blocks of text, separated by a `\hline`. Because the LaTeX code is generated automatically from user-entered data, sometimes the `\hline` appears last on the page, and sometimes it appears first. Since the `\hline` is only used to provide a clear division between blocks, it's not needed last or first on the page, since the page break itself provides the division. Is it possible to hide/ignore/delete the `\hline` if it would be the first or last element on the page? Here is some example code to illustrate the issue:               \vspace{20cm} % Adjust as necessary     \parbox[t]{3cm}{Example:}\parbox[t]{15cm}{This is an example}     \hline     \parbox[t]{3cm}{Example:}\parbox[t]{15cm}{This is an example}     \hline     \parbox[t]{3cm}{Example:}\parbox[t]{15cm}{This is an example}


title: Hyperref Link Spans a Pagebreak, Looks Ugly

text: I'm using `hyperref` for links in `pdflatex` and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional green link frame is visible at the footer and the link links the whole header of the following page. Code (with the list of all packages I'm using):               \documentclass[a4paper,12pt,oneside]{book}          \synctex=1 % synchronize with texmaker          \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[left=3.5cm, right=2cm, top=3.5cm, bottom=2.5cm]{geometry} % sizes     \usepackage{newcent}  % font, Century Schoolbook     \usepackage{graphicx} % include graphics     \usepackage{setspace} % control line spacing     \usepackage{amssymb}  % math     \usepackage{amsmath}  % math     \usepackage{amsthm}   % theorems     \usepackage{cite}     % numeric citations     \usepackage{epigraph} % quotations     \usepackage{booktabs} % nice looking tables     \usepackage{url}      % recognize urls     \usepackage{hyperref} % links in PDF     \usepackage{enumitem} % enhanced enumerations     \usepackage{fancyhdr} % fancy headers and footers     \usepackage{color}    % allow colors     \usepackage{pdfpages} % include assignment PDFs     \usepackage{texshade} % sequence alignments               \usepackage{lipsum} % just for the sake of this example          \fancyhead{}     \fancyhead[LO]{\nouppercase{\textsc{\leftmark}}}     \fancyhead[RO]{\nouppercase{\textsc{\thepage}}}     \fancyfoot{}     \setlength{\headheight}{15pt}          \begin{document}          \onehalfspacing     \mainmatter     \pagestyle{fancy}          \chapter{An Example Chapter}          \lipsum     Stuff stuff stuff stuff stuff stuff     Stuff stuff stuff stuff stuff stuff     Stuff stuff stuff     \cite{reference}     Stuff stuff stuff stuff stuff stuff     Stuff stuff stuff stuff stuff stuff     Stuff stuff stuff          \bibliographystyle{apalike}     \bibliography{references}          \end{document}      BibTeX file `references.bib`:               @Article{reference,        Author="LongSurnameOfTheFirstAuthor, D.  and LongSurnameOfTheSecondAuthor, R. ",        Title="Example text",        Journal="Journal of example articles",        Year="2004",        Volume="21",        Number="12",        Pages="2326--2339",        Month="Dec",        Note={[DOI:\href{http://www.example.com}{example}]}     }      Output: ![](http://i.stack.imgur.com/tFwnz.png) How can I get rid of this? I'm using pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) and BibTeX 0.99c (TeX Live 2009/Debian).


title: Numbering paragraphs in latex

text: I would like to number paragraphs for a covering report I am writing. Paragraphs should increment and not reset with new sections. The text should not be bold. Here is what I have tried               \makeatletter     \renewcommand{\paragraph}{%       \@startsection{paragraph}{4}%       {\z@}{0.25ex \@plus 1ex \@minus .2ex}{-1em}%       {\normalfont\normalsize\fontfamily{phv}\fontsize{10}{15}\selectfont}       {\arabic{paragraph}}%     }     \makeatother      This has been hacked from various questions on this site.                 \paragraph{Testing 1}       \paragraph{Testing 2}      gives me               0.0.0.1 1 Testing 1     0.0.0.2 2 Testing 2      desired format is               1 Testing 1     2 Testing 2      Where am I going wrong? Also what is `fontfamily{phv}`. Is this different from my default font?


title: double perpendicular symbol (for independence)

text: I found from http://jblevins.org/notes/latex that I could use the independence symbol: ![X \\independent Y](http://i.stack.imgur.com/fmAXt.png) > > > \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} >     \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}} >   I was wondering how this works. Can anybody explain? I don't know the commands `mathpalette`, `rlap`, and `mkern2mu`.


title: Marking (resampling) a point on a pgfplots curve, interpolated from table data?

text: I was looking for this in the `pgfplots` manual, unfortunately the term "resample" is not mentioned, and "sample" hits the `samples` key, which refers to analytical functions, not to table data; so I couldn't really find any references. Consider this MWE:               \documentclass{article}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usetikzlibrary{calc}          \pgfplotstableread[col sep=space,row sep=newline,header=true]{     ts   val     0.0  0.0     1.0  1.0     1.1  4.9     2.0  2.0     2.2  4.9     4.8  0.2     }\mytable          \begin{document}     \begin{tikzpicture}       \begin{axis}[extra x ticks={3.5}]     \addplot[smooth] table {\mytable};     \addplot[only marks,mark=*,mark options={color=blue}] table {\mytable};     \draw[red] let \p1=(rel axis cs:0,0), \p2=(rel axis cs:1,1), \p3=(axis cs:3.5,0)       in (\x3,\y1) -- (\x3,\y2);     \end{axis}     \end{tikzpicture}     \end{document}      It results with something like this: ![/tmp/test02a.png](http://i.stack.imgur.com/diU6R.png) Here `pgfplots` interpolates between the points making a smooth curve, but I'm also interested in the case of linear interpolation. Basically, I'd like to know what is the point that lies on the interpolated curve at, say, x=3.5 (where we do not have a sample/data point), so I can place a node there, and possibly stretch a horizontal line to the y axis. I gather that pgfplots just does `curveto` between the points, so it doesn't "know" about any interpolated points in between. So it seems it is possible to use the `intersection` library for this - but I was wondering if there was an "easier" approach, say through data directly; so I have the coordinates in terms of axis cs, if I also want to label the point with the coordinate value?


title: How do I get rid of particular pdftex warning message?

text: Here is a minimal example that showcases my problem:               \documentclass{article}          \usepackage{amsthm}     \usepackage{hyperref}     \usepackage{cleveref}          \newtheorem{thm}{Theorem}     \newtheorem{lem}[thm]{Lemma}          \begin{document}          \begin{lem}     Lemma     \end{lem}          \end{document}      The warning I get is the following:               [1pdfTeX warning (ext4): destination with the same identifier (name{thm.1}) has been     already used, duplicate ignored          \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                        \fi \fi      l.16 \end{document}                        {<install dir>/MiKTeX/2.9/pdftex/config/pdftex.map}]      I know that it is just a warning and that, my document will still work perfectly fine with regards to cross-referencing and hyperlinking, but I would still like to know why I am getting this warning and if anything can be done to fix it without removing functionality of the included packages. Bonus question: Whats going on behind the scenes when this warning (or any generic 'destination with the same identifier (name{XXX.YYY}) has been already used, duplicate ignored') is produced, as this is not limited to theorem environments. From log file:               Package: amsthm 2004/08/06 v2.20     Package: hyperref 2011/04/17 v6.82g Hypertext links for LaTeX     Package: cleveref.sty 2011/03/22 v0.17.9 Intelligent cross-referencing     Package cleveref Info: `hyperref' support loaded on input line 2157.     Package cleveref Info: `amsthm' support loaded on input line 2300.


title: Problem when using hyperref together with cleveref

text: As it says in the `cleveref` documentation `hyperref` must be loaded before cleveref. But at me I have to load at least one package between them and I would really like to know why. The not working minimal example is               \documentclass{scrartcl}     \usepackage{amsthm}     \usepackage{hyperref}     \usepackage{cleveref}     \theoremstyle{definition}     \newtheorem{Def}{Definition}     \newtheorem{Lemma}[Def]{Lemma}     \begin{document}     a     \begin{Lemma}     \label{Lem:fastdis}     \[ a+b=c? \]     \end{Lemma}     \end{document}      This just gives an error and doesn't compile, but switching amsthm and hyperref like this               \documentclass{scrartcl}     \usepackage{hyperref}     \usepackage{amsthm}     \usepackage{cleveref}     \theoremstyle{definition}     \newtheorem{Def}{Definition}     \newtheorem{Lemma}[Def]{Lemma}     \begin{document}     a     \begin{Lemma}     \label{Lem:fastdis}     \[ a+b=c? \]     \end{Lemma}     \end{document}      it compiles without even a warning. Why do i need to load a package between them?


title: Add a percentage error using siunitx package

text: I have a problem with the siunitx package. What I would like to do is the following. I have a number which for instance equals 145 and has the units mm. However, there is also an error expressed in percentages. So how I would like to represent this value is: 145 mm ± 5% using the siunitx package. I haven't been able to figure out how to do this using the siunitx package. What I've managed to do up to this point is the following:   * `\SI{145}{\milli \meter} $\pm$ \SI{5}{\percent}` which gives: `145 mm ± 5%` This is the correct form. However, when I'm at a line ending it will separate the plus minus 5% from the 145 mm because they do not 'belong' together.   * `\SI{145}{\milli \meter \SI{\pm 5}{\percent}}` which gives: `145 mm±5%` while I would like to have the separation after the mm and plus minus in comparison to the 145 mm. I also tried to work with `\mbox{}` to make sure that at a line ending my 145 mm would not be separated from its error, this however increases the length of a line with respect to the rest of the text which makes it very ugly. I hope someone can help me


I have attempted to do as follows, but it does not work.               \documentclass{minimal}     \usepackage{pstricks-add}          \psset     {         xunit=\dimexpr1cm/\psPi\relax,         yunit=1cm     }          \begin{document}     \begin{pspicture}[showgrid](0,-1)(\psPi,1)         \psplot[plotpoints=300,algebraic]{0}{\psPi}{sin(2*x)}     \end{pspicture}     \end{document}      How to divide a length-valued macro by a dimensionless-valued macro?


title: Upgrading to texlive 2011

text: I can't seem to upgrade to TL2011 somehow:               root@dell:/usr/local/texlive/2011# ./update-tlmgr-latest.sh -- --upgrade     Verifying archive integrity... All good.     Uncompressing TeX Live Manager Updater...............................................................................................................................................................................     ./runme.sh: updating in /usr/local/texlive/2011...     ./runme.sh: tlmgr version says this is TeX Live 2011     ./runme.sh: proceeding with tlmgr update.     D:tlmgr:main: ::tldownload_server defined     D:Using system wget (tested).     D:Using shipped /usr/local/texlive/2011/tlpkg/installer/xz/xzdec.i386-linux for xzdec (tested).     D:Using shipped /usr/local/texlive/2011/tlpkg/installer/xz/xz.i386-linux for xz (not tested).     ./runme.sh: done.     root@dell:/usr/local/texlive/2011# echo $PATH     /usr/local/texlive/2011/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games     root@dell:/usr/local/texlive/2011# tlmgr update  --self --all     tlmgr: package repository http://ftp.oleane.net/pub/CTAN/systems/texlive/tlnet     tlmgr: saving backups to /usr/local/texlive/2011/tlpkg/backups     tlmgr: no updates available      I'm following the instructions on this page: http://tug.org/texlive/upgrade.html I've tried other mirrors, but I don't get any updates. I am missing something?


title: How to show the vertical line between two columns?

text: Simply using `\twocolumn` changes my document to look like this:               -----HEADER----     ######   ######     ######   ######     ######   ######     ######   ######     ######   ######     ######   ######     -----FOOTER----      But I'd like to make the line between two columns visible like this:               -----HEADER----     ###### | ######     ###### | ######     ###### | ######     ###### | ######     ###### | ######     ###### | ######     -----FOOTER----      What command will make the line visible?


title: Typesetting the definition of a piecewise function

text: How to write this in LaTeX:               y = {1 if a >b          0 if a <b      How to make the big bracket that contains both and defines the function y?


title: Formula in LaTeX

text: > **Possible Duplicate:**   >  How I can typeset this equation with LaTeX? This'll probably be a too specific question, but I do think this forum has the most knowledge to help me with it. I would like to write this equation in latex ![enter image description here](http://i.stack.imgur.com/btxeV.png) I tried it with                \begin{pmatrix}     \end{pmatrix}      Though this also gives a bracket at the end. Would anyone be able to help me ?


title: How to write a function (piecewise) with bracket outside?

text: How to write this Piecewise function using LaTeX? ![Piecewise Function](http://i.stack.imgur.com/8BhUD.png) I tried               $     \begin{array}{cc}       \{ &          \begin{array}{cc}           0 & x\leq 0 \\           \frac{100-x}{100} & 0\leq x\leq 100 \\           0 & 100\leq x         \end{array}     \end{array}     $      but didn't work perfectly, the bracket " **{** " looks small,see: ![Piecewise Function with LaTeX](http://i.stack.imgur.com/zmi1q.png)


title: How to write conditional equations with one-sided curly brackets

text: I want to write a conditional expression such as the following. ![enter image description here](http://i.stack.imgur.com/rUP3zm.jpg) What is the best way to express such conditional expressions in Latex?


title: Mathematical Function Notation

text: How do I get this sort of notation in LaTeX? ![enter image description here](http://i.stack.imgur.com/jIkxW.png) I'm using TeXmaker.


title: How to typeset piecewise-defined functions?

text: I am attempting to write out the basic process for finding the absolute value of some number. In ASCII, this is what I am attempting to write.               |X| = {             x  if x > 0             0  if x = 0             -x if x < 0           }      This is what I have so far.               \begin{equation}     \left|x\right| = \biggl\{ x\ if\ x > 0 \biggr\}     \end{equation}      I cannot figure out how to add the vertical spacing to allow the other two lines.


title: What comand should I use to fork used in math

text: When doing practical math, you often fork your calculation due to some conditions, eg. when doing equations with absolute value.   There is a symbol for this, and I wonder if mathJax can render this one or not. And if it can, I'd like to know the command. Here is an image of what I mean: ![enter image description here](http://i.stack.imgur.com/dSPQ4.jpg)


title: Latex Brace Stack

text: > **Possible Duplicate:**   >  How to write conditional equations with one-sided curly brackets So I'm trying to take notes in LaTeX and while I've been able to keep up with everything that's been thrown at me so far, one thing that took me for a loop was when the professor made a large right facing curly brace, with text stacked on top on the right of it and a single statement to the left and center of the curly brace. Here's my photoshop rendering so that it is more clear: ![enter image description here](http://i.stack.imgur.com/3pOiQ.jpg) Is it possible to do something like this in LaTeX, without too much difficulty?


title: How to write conditional equations within equation tags

text: I used following tags to create equations in my document. But when I tried to add conditional equation within this tag, it didn't work properly. Is there any way to add conditional statement within equation tags?                 \begin{equation}         \begin{cases}              xxxxx, & \text{xxx}\\              xxxxx, & \text{xxx}          \end{cases}       \end{equation}


title: Cases for defining a math function

text: Sometimes in mathematics, when defining a function, I see something like               f(x) = 0 if x is even            1 if x is odd      where an open brace is used in front of the values 0 and 1. How can I do that in LaTeX?


title: Defining step function

text: How to define a step function using Latex ? For example, The Dirichlet function: f(x)=1 if $x\in \mathbb{Q}$ and 0 if {x\in \mathbb{R}\\\mathbb{Q}}.


title: Trying to make PK font tfrupee at 657 DPI

text: I am getting an error of The `tfrupee source file could not be found`, which is a part of tfrupee package. I was trying to insert the rupee symbol. I am using MikTeX 2.9 + TeXmaker + Windows 7. I am not very tech friendly person and I am learning LaTeX.


title: Create Table for a Family of Curves

text: Following the issue Color Management with a Family of Curves I couldn't find a proper way of creating the associated table for a family of curves. I tried to create new columns with respect to the parameter `\y` (exponent), but without success using `\foreach` or `\pgfplotsinvokeforeach` (see comment lines). Here is the code:               \documentclass[border=1mm]{standalone}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.8}          \pgfplotstableread{     1   1     2   4     3   9     4   16     5   25     }\dataQuad          \begin{document}         \begin{minipage}[c]{0.75\textwidth}             \begin{tikzpicture}                 \begin{axis}[%                     legend pos=north west,                     domain=0:5,                     cycle list name=color,                     xlabel=${x}$,                     ylabel=${y}$]                 \addplot [smooth] table[x index=0, y index=1] {\dataQuad};                 \legend{$y=x^2$}                 \foreach \y/\c in {3/green,4/red,5/brown}{%                     \edef\temp{\noexpand\addplot [color=\c,smooth] table[x index=0, y expr=\noexpand\thisrowno{0}^\y] {\noexpand\dataQuad};}                 \temp                 \addlegendentryexpanded{$y=x^\y$}                 }                 \end{axis}             \end{tikzpicture}         \end{minipage}     %         \begin{minipage}[c]{0.75\textwidth}             \pgfplotstablecreatecol[                 create col/assign/.code={%                     \foreach \y in {3,4,5} {%     %                   \pgfplotsinvokeforeach{3,4,5} {%                         \pgfmathparse{\thisrow{1}*\y}     %                   \thisrow{1}*#1                     }                 \pgfkeyslet{/pgfplots/table/create col/next content}\pgfmathresult                 }             ]{exp}\dataQuad             \pgfplotstabletypeset[columns={[index]0,[index]1,exp}]\dataQuad         \end{minipage}     \end{document}      What goes wrong here? Additionally, a header for each column with reference to each list entry from '{3,4,5}' would be great. Thanks again, Paul * * * OK, the error '! Package PGF Math Error: Sorry, an internal routine of the floating point unit' from above occurs when defining a list with `\newcommand{\param}{2,3,4,5}`, see following MWE:               \documentclass[border=1mm]{standalone}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.8}          \pgfplotstableread{     1     2     3     4     5     }\dataQuad          \newcommand{\param}{2,3,4,5}          \pgfplotsforeachungrouped \y in \param {%         \pgfplotstablecreatecol[             create col/expr={\thisrow{0}^\y}         ]{\y}\dataQuad     }          \begin{document}         \begin{minipage}[c]{0.75\textwidth}             \begin{tikzpicture}                 \begin{axis}[%                     legend pos=north west,                     domain=0:5,                     cycle list={green, red, black, purple, orange},                     xlabel=${x}$,                     ylabel=${y}$]                 \pgfplotsinvokeforeach{2,...,5}{                         \addplot +[smooth] table [x index=0, y=#1] \dataQuad;                 }                 \end{axis}             \end{tikzpicture}         \end{minipage}              \begin{minipage}[c]{0.75\textwidth}             \pgfplotstabletypeset\dataQuad         \end{minipage}     \end{document}      Do I have to use another approach for predefine a list? Thanks, Paul


title: Change line to “dashed” without changing markers

text: I use `pgfplots` and I would like to have a dashed or dotted line that still has solid markers. When I use `dashed`, it also affects the markers. That looks weird, and I would like to have solid markers instead.               \addplot[         black!100!white,         dashed,         error bars/y dir=both,         error bars/y explicit,         mark=|,     ] table[y error index=2] {CSV/-1/a-E0-0.01.csv};      Is there some way to exclude the markers from the dashing?


title: Tikz inside table

text: I want to create a two column question with a Tikz shape. The problem here is that I cannot align the text and the shape. Text should have a left-top alignment, shape can have either center-center or right-top alignment.               \item          \begin{tabular}{p{8cm}p{7cm}}         $1$ den $10$ a kadar olan tam sayılar, yandaki şekildeki on kutuya yerleştiriliyor. En üst sıradakiler dışında her kutudaki sayı, hemen üstündeki iki kutuda bulunan sayıların farkına eşitse, en alttaki kutuya yerleştirilen sayı en çok kaç olabilir?      &          \begin{tikzpicture}     \draw (0,0) rectangle (1,-1);     \draw (2,0) rectangle (3,-1);     \draw (4,0) rectangle (5,-1);     \draw (6,0) rectangle (7,-1);          \draw (1,-2) rectangle (2,-3);     \draw (3,-2) rectangle (4,-3);     \draw (5,-2) rectangle (6,-3);          \draw (2,-4) rectangle (3,-5);     \draw (4,-4) rectangle (5,-5);          \draw (3,-6) rectangle (4,-7);     \end{tikzpicture}     \end{tabular}      When I compiled the above latex code, I am getting :                              Shape                     Shape     Text-Text-Text-Shape     text-text      Shape


title: How to select unmaintained Font Awesome Symbols?

text: The current fontawesome package is not yet updated to the version 3.2.1 of Font Awesome. I'd like to manually select some of the new icons. Merging some snippets i have come up with this:               %!TEX TS-program = lualatex     %!TEX encoding = UTF-8 Unicode     \documentclass{article}     \usepackage{fontspec}     \usepackage{fontawesome}          \def\faTwitterBird{{\FA \symbol{"F099}}}     \def\faCalender{{\FA \symbol{"F133}}}     \def\faXing{{\FA \symbol{"F168}}}          \begin{document}     - \faTwitterBird - \faCalender - \faXing     \end{document}      Unfortunately, it does not display one of the newer icons (e.g. xing). ![enter image description here](http://i.stack.imgur.com/cSKCa.png)


title: How can I use figure in caption of a figure?

text: I need to include a small figure at the end of the original figure caption, is there any idea?


title: Examples with the purpose of learning LaTeX?

text: I have a basic understanding of LaTeX. But I would like to learn more through LaTeX examples or real world usage (probably commented). Where can such be found?


title: how to put \neq in bookmark

text: The not equal sign (`$\neq$`) becomes equal sign(=) in hyperref's bookmark. I know that `\texorpdfstring` will work for this, but I can not find `\textneq`, maybe another name? Thanks in advance.


title: Compilation does not work

text: I have the same problem as in this link. But I do not understand that do I need an additional TeX compiler after installing TexMaker? If yes, MiKTeX is for Windows so, is there any compiler for Linux?


title: Small letters as input but capital letters as output

text: Is it possible to define (or is there already) a macro which takes small letters as input but gives the same letters in capital as output? Example:               \CapLet{horse} and \CapLet{fish}      wiht the output               HORSE and FISH


title: TikZ Styles that set Nodepart Styles

text: In the following, I'm using user-defined macros to set the type style for the nodeparts for class nodes (`\texttt{\textbf{#1}}`), interfaces (`\texttt{\textit{#1}}`). Using the `\tikzset` command I also define styles for classes or interfaces that define how these node parts shoulde be aligned and filled. Is there a correct way to set the typesetyle of the node parts as well?               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{shapes}     \usetikzlibrary{arrows}     \usetikzlibrary{calc}            \usepackage{aeguill}     \newcommand*{\stereotype}[1]{         \guillemotleft {#1}\guillemotright%     }                                                \tikzset{class or interface/.style={%                draw,%                                    shape=rectangle split,%                   rectangle split parts=3,%                 rectangle split part align={center,left,left},%                rectangle split part fill={#1!30!white,#1!20!white,#1!10!white}},              interface/.style={class or interface=green},                                     concrete class/.style={class or interface=red}}                         \newtheorem{exercise}{Exercise}                                                       \newcommand*\umlClassStyle[1]{\texttt{\textbf{#1}}}     \newcommand*\umlAbstractClassStyle[1]{\texttt{\textit{#1}}}     \newcommand*\umlInterfaceStyle[1]{\texttt{\textit{#1}}}              \begin{document}          %     %     \begin{frame}[fragile]        \frametitle{Class Diagram of the Observer Pattern}        \begin{tikzpicture}[every text node part/.style={align=center}%                           ,every two node part/.style={align=center}%                            ,every three node part/.style={align=left}%                            ,node distance=2]                                         \path (0,0) node(Subject)[interface,anchor=east]                                      {\nodepart{text}                                                             \stereotype{interface}\\                                                  \umlInterfaceStyle{Subject}                                             \nodepart{two}                                                            \nodepart{three}\tabular{@{}l}                                              \texttt{attach( Observer o )}\\                                           \texttt{detach( Observer o )}\\                                           \texttt{notify( )}                                                      \endtabular}                                                       (Subject.south)                                                          +(+0.0,-1.5)node(ConcreteSubject)[concrete class,anchor=north]                       {\nodepart{text}                                                                 \umlClassStyle{ConcreteSubject}                                             \nodepart{two}                                                                  \texttt{Observer[] observers}                                               \nodepart{three}\tabular{@{}l}                                                  \texttt{attach( Observer o )}\\                                               \texttt{detach( Observer o )}\\                                               \texttt{notify( )}                                                          \endtabular}                                                           (Subject.north east)                +(+1.5,+0.0)node(ConcreteObserver)[concrete class,anchor=north west]                       {\nodepart{text}                          \umlClassStyle{ConcreteObserver}                        \nodepart{two}                          \texttt{Subject subject}                        \nodepart{three}                          \texttt{update( Object o )} }                 (ConcreteObserver.south |- ConcreteSubject.north)                       node(Observer)[interface,anchor=north]                       {\nodepart{text}                          \stereotype{interface} \\                          \umlInterfaceStyle{Observer}                        \nodepart{two}                        \nodepart{three}                          \texttt{update( Object o )} };           \draw[->,>=open triangle 90,dashed]                (ConcreteSubject) -- (Subject)            node[pos=0.1,anchor=south east] {\scriptsize{implements}};           \draw[->,>=open triangle 90,dashed]                (ConcreteObserver) -- (Observer)            node[pos=0.1,anchor=north east] {\scriptsize{implements}};           \draw[<->,arrows=open diamond-angle 90]                (ConcreteSubject.text east) -- (ConcreteSubject.text east -| Observer.west)            node[pos=0.1,anchor=south west] {\scriptsize{has a}}            node[very near end,anchor=south] {\scriptsize{$n$}};           \draw[<->,arrows=open diamond-angle 90]                (ConcreteObserver.text west) -- (ConcreteObserver.text west -| Subject.east)            node[pos=0.1,anchor=south east] {\scriptsize{has a}}            node[very near end,anchor=south] {\scriptsize{$1$}};        \end{tikzpicture}     \end{frame}     %     %          \end{document}      ![observer patterns](http://csweb.ucc.ie/~dongen/TeX-SX/11--12/observer.png)


title: How to vertically center text on the centerline of short lower-case letters in ConTeXt?

text: I have a title in my document like this:               Birds of South America      “Birds”, “of”, and “South America” are each in different fonts and sizes, like this:               {\ssc Birds}     {\cga of}     {\ssd South America}      When I tried vertically centering the text, it centered them on the center of the whole height of the words. This does not look right though, because the lower-case letters are the strongest elements.                _     | |     | | _  ← Vertically centered text centers text at the middle of the upper-case letters.     |_||_|      How can I vertically center each of these parts, where the center line is at the middle of the short lower-case letters?                _     | |     | | _     |_||_| ← I need to place the vertical center line at the middle of the short lower-case letters in each word.


title: How to use a custom symbol for enumerations in ConTeXt?

text: I need to make an itemized checklist in ConTeXt. I tried all of the available built-in symbols, which gives a dot, line, star, triangle, small circle, medium circle, and large circle, but I need a large square, similar to "□", but larger. The instructions about Enumerations at the ConTeXt Garden show how to do many customizations, but not how to use a custom symbol. How can I use a custom symbol for enumerations to create a checklist?`


title: Hyperref warning which doesn't affect the output of the PDF

text: I have encountered a `hyperref` warning but there are no visible negative consequences. Additionally, LaTeX complete without a complaint. I only found the warning by looking at the `.log` file.               Package hyperref Warning: Difference (2) between bookmark levels is greater     (hyperref)                than one, level fixed on input line 2366.      and               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `math shift' on input line 2206.      and               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `superscript' on input line 2200.      Does anyone know what this means? Those lines don't correspond to references either.


title: questions about matrix

text: I want to create a simple matrix and the code is give below, but i got error when i compile it, could anyone help with this.                $$e^{-{\cal L}=     \left[ \begin{array}{cccccc}     1 & 0 & . & . & . & 0 \\     0 & 0 & . & . & . & 0 \\     0 & 0 & . & . & . & 0 \\     0 & 0 & . & . & . & 0 \\     0 & 0 & . & . & . & 0 \\     0 & 0 & . & . & . & 0 \\     \end{array}  \right]$$


title: How do I remove parentheses from theorem optional argument?

text: This is a MWE:               \documentclass[12pt]{article}          \usepackage{amsfonts, amsthm, amsmath, amssymb}          \theoremstyle{definition}     \newtheorem{Theorem}{Theorem}[section]          \newtheorem*{Pythagorean theorem}{Pythagorean theorem}          %=======          \begin{document}          \begin{Pythagorean theorem}[\cite{Pythagoras}]     This is Pythagoras' theorem.     \end{Pythagorean theorem}          %===          \begin{thebibliography}{HD}          \bibitem[1]{Pythagoras}     Pythagoras' theorem.          \end{thebibliography}          \end{document}      If I use               \newtheorem*{Pythagorean theorem}{Pythagorean theorem}      plus               \begin{Pythagorean theorem}[\cite{Pythagoras}]     This is Pythagoras' theorem.     \end{Pythagorean theorem}      I get the following: > **Pythagorean theorem** ([1]) **.** This is Pythagoras' theorem. My question is: how do I remove the parenthesis around [1]? In order words, I want LaTeX to display the following: > **Pythagorean theorem** [1] **.** This is Pythagoras' theorem. Note that the first period in the sentence above must be in boldface.


title: Ibid., op. cit., with author printed

text: I'm using biblatex. If I author and year and ibid (authoryear-ibid), the second time a same work is cited in a paragraph, the author and year are replaced by the Latin abbreviation. However, I prefer to keep the author before the Latin expression. So, instead of: Keynes (1936)... (ibid.), I want to have: Keynes (1936)... Keynes (ibid.) How can I do this?


title: Why do the fonts used by achemso look different between computers?

text: I have the same latex file on two Macs: one running 10.7 (Lion) and one 10.9 (Mavericks). Both Macs have the same latest versions of `achemso`, TeXShop etc. All the packages have been updated with TeX Live Utility so I assume that in terms of LaTeX packages, the two computers should give the same manuscript. In fact no. The TeX file compiled on OS 10.9 gives a PDF file that seems to be using Computer Modern fonts whereas on 10.7 the fonts look different. eg:   * Title of the article: looks like Arial on Mac OS 10.7 and Arial Rounded on 10.9,   * Text: looks like Times New Roman on 10.7 but Garamond on 10.9. Does anyone know what's happening? How can I have the same fonts on 10.9 as on 10.7? I assume that what I get on 10.7 with achemso is what I should be getting because I get the same results as on 10.7 when I compiled my tex file on a Linux machine. Thanks


title: Sweave boxplots -- not the required output

text: I want to produce a boxplot like this in `R`:               fishdata <- read.csv("http://dl.dropbox.com/s/4w0utkqdhqribl4/fishdata.csv", header=T)     attach(fishdata)     boxplot(fishdata[,-1], las=3)      which looks like this: ![what it should look like](http://i.stack.imgur.com/JFy0P.png) but when I Sweave this, using this coding:               <<echo=F>>=     fishdata <- read.csv("http://dl.dropbox.com/s/4w0utkqdhqribl4/fishdata.csv", header=T)     attach(fishdata)     @           \begin{figure}[htbp]     \centering     <<fig=T, echo=F>>=     boxplot(fishdata[,-1], las=3)     @     \rule{35em}{0.5pt}     \caption{Boxplot of the fish catches in Bangladesh from 1950 to 2011.}     \label{histogram}     \end{figure}      produces this still, ![boxplot output](http://i.stack.imgur.com/nJWeC.png) Is there a way to get the x-axis titles as above in the coding?