title: Creating a table in two column style page

text: I want to create a table, in a two column style page (`IEEEtran`) which will range in both columns. Any idea about this issue?


title: Paragraph separation with "article" document class

text: I'm writing a text but it seems the document class "article" doesn't allow for paragraph separation. Is there any way to force the paragraphs to have an space between (even in the abstract)?               \documentclass[twoside]{article}     \bibliographystyle{nature}                \usepackage{lipsum} % Package to generate dummy text throughout this template          %\usepackage[sc]{mathpazo} % Use the Palatino font     \usepackage[latin1,utf8]{inputenc}     %\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs     %\linespread{1.05} % Line spacing - Palatino needs more space between lines     \usepackage{microtype} % Slightly tweak font spacing for aesthetics          \usepackage[hmarginratio=1:1,columnsep=28pt]{geometry} % Document margins     \usepackage{geometry}     \geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm, headsep=10mm}           \usepackage{multicol} % Used for the two-column layout of the document     \usepackage{hyperref} % For hyperlinks in the PDF          \usepackage{paralist}% Used for the compactitem environment which makes bullet points with less space between them          \usepackage{abstract} % Allows abstract customization     \renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the "Abstract" text to bold          \usepackage{titlesec} % Allows customization of titles     \renewcommand\thesection{\Roman{section}.} % Roman numerals for the sections     \renewcommand\thesubsection{\thesection\Roman{subsection}}% Roman numerals for subsections     %\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles     \titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles          \usepackage{fancyhdr} % Headers and footers     \pagestyle{fancy} % All pages have headers and footers     \fancyhead{} % Blank out the default header     \fancyhead[C]{VIZIDI $\bullet$ Generative Art \& Design $\bullet$ Winter Semester 2013/2014}  %           %----------------------------------------------------------------------------------------     %   TITLE SECTION     %----------------------------------------------------------------------------------------          \title{\vspace{-15mm}\fontsize{24pt}{10pt}\selectfont\textbf{VIZIDI}} % Article title          \author{     \large     \textsc{David Beerman \& Antonio Palacios}\\[2mm] % Your name     \normalsize Hochschule für Künste Bremen \\ % Your institution     \href{mailto:antonio@killthepixelnow.com}{antonio@killthepixelnow.com}\\     \href{mailto:mail@davidbeermann.com}{mail@davidbeermann.com} % Your email address     \vspace{-5mm}     }     \date{}          %----------------------------------------------------------------------------------------          \begin{document}          \maketitle % Insert title          \thispagestyle{fancy} % All pages have headers and footers          %----------------------------------------------------------------------------------------     %   ABSTRACT     %----------------------------------------------------------------------------------------          \begin{abstract}          Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           Donec vitae justo ac elit imperdiet ullamcorper eget vitae ante. Nam elementum condimentum sagittis. Suspendisse nibh enim, ultricies nec iaculis eu, elementum in mauris. Proin faucibus rhoncus dolor in ultricies. Curabitur interdum justo non dui rutrum pharetra quis vitae risus. Mauris odio massa, luctus et odio vitae, porta aliquam massa. Sed aliquam ligula enim, a fringilla tellus vulputate at. Aenean vitae rutrum lectus.           \end{abstract}          %----------------------------------------------------------------------------------------     %   ARTICLE CONTENTS     %----------------------------------------------------------------------------------------          \begin{multicols}{2} % Two-column layout throughout the main article text          \section{Introduction}          Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           %------------------------------------------------          \section{Methods}          \subsection{Parsing MIDI files}     Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           \subsection{Evaluating MIDI data}     Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           \subsection{Visualization and animation}     Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           Nunc orci nibh, gravida non euismod gravida, elementum quis nibh. Nulla dui ipsum, dignissim at elit sed, consequat vestibulum purus. Morbi elementum leo consectetur ipsum fermentum sollicitudin. Etiam feugiat est ac risus congue, convallis sagittis est rutrum. Donec consectetur sodales velit ut vulputate. Aliquam erat volutpat. Curabitur aliquam nunc quis placerat adipiscing. Proin scelerisque, magna in luctus faucibus, libero justo tincidunt ante, nec imperdiet augue massa in augue.           %------------------------------------------------          \section{Discussion}          A good point of discussion here concerns the level of technical complexity of the pieces that were exhibited alongside VIZIDI in the “Generative Art \& Design” space. It was interesting to appreciate that people oftentimes reacted more positively to projects that favoured aesthetics. In that sense, a possible question would be: should visual impact be the goal of generative art? There is no doubt that this is a controversial issue. An engaging experience, a room full of colorful lights or a breathtaking animation are only possible if a good program has been compiled. Therefore, code and visuals must work in tandem. Reaching that balance is perhaps the most difficult part of any job of this nature.          %----------------------------------------------------------------------------------------     %   REFERENCE LIST     %----------------------------------------------------------------------------------------          %\bibliography{vizidi}           %----------------------------------------------------------------------------------------          \end{multicols}          \end{document}


title: Where to put Latex generic commands?

text: Using more and more Latex I reach a point where I don't want to copy/paste anymore the new "generic" commands I created. As an example, I have generic commands to create Tikz pictures. These commands are generic enough (using parameters) in order to be used in different contexts. After searching on google, I din't get a clear view on the different ways to do that. Where can I put such commands, how include them and what are the benefits/drawbacks for the different solutions ? I guess, I can create packages, include files, other ...


title: Options to allow for more vertical stretching possibilities

text: I'm writing my PhD thesis and am using the document class `scrbook` (with the twosides option), which uses the `\flushbottom` command as default. This means that my text (which contains a lot of formulas) is stretched in such a way that the first and last lines of opposite pages are at the same height. This works fine most of the time but at some points I get rather long vertical empty spaces or the adjustment of lines isn't that perfect. My question is if there is a possibility to give LaTeX more options to adjust e.g. the distance between the lines or between the text and equations in a minimal way so that this problem is solved. I tried                  \setlength{\baselineskip}{12pt plus 1pt minus 1pt}      which allows for some variation but somehow it didn't give the result I hoped for. Thanks in advance!


title: Best way to make place cards in LaTeX

text: What's the best way to make a lot of foldable place cards like the following in LaTeX: I want to be able to specify the size of the card. They should be printed in a space saving way, such that I can cut them out easily after printing. ![Place Card](http://i.stack.imgur.com/QMvtp.jpg) ![Place Card 2](http://i.stack.imgur.com/WcZIu.jpg)


title: Commutative diagram with parallel arrows in opposite direction

text: I have a diagram of the following form, written with the package `amscd`:               \begin{align*}      \begin{CD}       W @>\phi>> X \\       @V{a}V{b}V  @V{c}V{d}V \\       Y @>\phi>> Z \\      \end{CD}     \end{align*}      It want the vertical arrows to be parallel arrows in opposite direction, such that `a` and `c` point downwards and `b` and `d` point upwards. (For those who understand the terms, it is about an isomorphism between chain complexes.) To my best knowledge, `amscd` does not provide these features. Can you show me a piece of code that provides this functionality and is similarly easy to use?


title: How to add LaTeX style quotation marks to the Hunspell spell checker?

text: Quotation marks in LaTeX have to be added with ```` and `''`, but this results in the word being marked as misspelled in Texmaker, which uses Hunspell files (`.dic` and `.aff`). I tried adding ```` and `''` to the `.dic` file, but this resulted in all words marked as incorrect. How do I do it correctly?


title: Rotating around computed point using PGF

text: I am trying to rotate a drawing around a specific point using PGF commands. As long as I hard code the center of rotation, this works just fine:               \usepackage{tikz}     \usetikzlibrary{calc}     \begin{document}     \begin{tikzpicture}       \draw[style=help lines] (0,0) grid[step=1cm] (3, 3);       % Rotate around (1, 1).       \pgftransformshift{\pgfpointxy{1}{1}}       \pgftransformrotate{20}       \pgftransformshift{\pgfpointxy{-1}{-1}}       \draw (0.5, 0.5) -- (1.5, 1.5);       \draw (1.5, 0.5) -- (0.5, 1.5);     \end{tikzpicture}     \end{document}      But I don't want to rotate around a hard coded center but around a computed one. I compute my center using `\coordinate (x) at ($<some computation$);`. I tried the following:               \usepackage{tikz}     \usetikzlibrary{calc}     \begin{document}     \begin{tikzpicture}       \draw[style=help lines] (0,0) grid[step=1cm] (3, 3);       \coordinate (x) at (1, 1); % In real life: ($<computation>$)       \pgftransformshift{\pgfpointscale{1}{\pgfpointanchor{x}{center}}}       \pgftransformrotate{20}       \pgftransformshift{\pgfpointscale{-1}{\pgfpointanchor{x}{center}}}       \draw (0.5, 0.5) -- (1.5, 1.5);       \draw (1.5, 0.5) -- (0.5, 1.5);     \end{tikzpicture}     \end{document}      Now what seems to happen is that the coordinate specified in the second shift is affected by the preceding `\pgftransformrotate`, even though I defined it before the transformations. Thus, the drawing is offset in the second example. Can I somehow prevent my computed center of rotation from being transformed by the `pgftransform` commands? Or is there any other solution to my problem?


title: Indention of partial TOC (titletoc)

text: I'm happily using this solution I asked for few days ago: Two independent TOCs Now a follow-up question appeared: My second TOC contains only `\subsubsection` and deeper nested elements till `\subparagraph` because of some structure I want to acchieve in my TOC and PDF-Bookmarks. I modified the appearance of those elements to match my desired layout with `\renewcommand\thesubsection{\Alph{subsection}}`. So my question is how to tweak the layout of my second TOC. It looks like sections and subsections, but it doesn't behave this way in the second TOC. I want to get rid of those indentions, the second TOC should start on the left side (MWE below): ![example of second TOC with heavy indentions](http://i.stack.imgur.com/qRmYp.png) The first TOC should not be affected by those settings. My last attempt was to use `\renewcommand*\l@subsubsection{\bprot@dottedtocline{1}{1.5em}{2.3em}}` after the `\printcontents[sections]{ }{2}{}` to set the subsubsection with the values of the section, but this had no effect at all. Here is my (not so minimal) working example demonstrating the behaviour. I left some comments in it to show different approches I tried, but without success. Thank you very much.               \documentclass[paper=A4,%             pagesize=auto,%             fontsize=11pt,%             DIV=19,%             tocleft,%             bibliography=totocnumbered,%             listof=numbered,             titlepage]{scrartcl}           \usepackage[ngerman]{babel}     \usepackage[latin1]{inputenc}        \usepackage[babel,german=quotes]{csquotes}  %% deutsche Anfuehrungsstriche     \usepackage[T1]{fontenc}          \usepackage[titles]{tocloft}  %% Einrückungen beim Appendix im Titel          \usepackage{titletoc}  %% zwei Inhaltsverzeichnisse     \setcounter{secnumdepth}{5}     \setcounter{tocdepth}{5}          \usepackage{titlesec}     %%\titleformat{\paragraph}[hang]{\normalfont\bfseries}{}{0pt}{}     \titlespacing{\paragraph}{0mm}{15pt}{3pt}  %% 30pt               %%\titlecontents{paragraph}[1.5em]{\addvspace{1pc}\bfseries}{\contentslabel{5em}}{}     %%    {\titlerule*[0.3pc]{.}\contentspage}               %% http://www.latex-community.org/forum/viewtopic.php?f=5&t=1383     \makeatletter     \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%         {-3.25ex\@plus -1ex \@minus -.2ex}%         {1.5ex \@plus .2ex}%         {\normalfont\normalsize\bfseries}}     \makeatother          \renewcommand{\figurename}{\textbf{Abb.}}   %% ersetzt Abbildung durch Abb.          %%%%%%%%%%%% hyperref und pdf-Einstellungen Start %%%%%%%%%%%%     \usepackage{hyperref}     \hypersetup{             pdfauthor={xxx},%             pdftitle={Exxx},%             pdfsubject={xxx},%             pdfcreator={xxx},%             %%pdfproducer=meinproducer,%   %% ersetzt pdfTeX-Versions-Info             pdfkeywords={xxx},%             bookmarksnumbered=true,%             plainpages=false,%             linktoc=all,             %%pdfpagelabels=true,%             hypertexnames=false,%             %%%pdfborder={0 0 0},%             pdfborderstyle={/S/U/W 1},%   %% setzt Unterstrich mit Dicke 1pt             colorlinks=true,%   %% false     }          %% farbige Links im PDF mit Unterstreichung     %% von http://tex.stackexchange.com/questions/26071/how-can-i-have-colored-and-underlined-links-with-hyperref     \makeatletter     \Hy@AtBeginDocument{%         \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true         \def\@pdfborderstyle{/S/U/W 1}% Overrides border style set with colorlinks=true                                                                     % Hyperlink border style will be underline of width 1pt     }     \makeatother               \usepackage[all]{hypcap}  %% fixt Link zum Start einer Grafik, nicht zur darunterliegenden Caption     %%%%%%%%%%%% hyperref und pdf-Einstellungen Ende %%%%%%%%%%%%               %% more space for roman numbers in TOC     %% http://www.komascript.de/node/608     \makeatletter%      \renewcommand*{\@pnumwidth}{3.0em}     \makeatother%           %% for appendix      %%\makeatletter%      %%\g@addto@macro\appendix{%     %%  \pagenumbering{Roman}%     %%  \addtocontents{toc}{\protect\renewcommand*{\protect\@pnumwidth}{2em}}%     %%}     %%\makeatother%                \begin{document}          My document.          \pdfbookmark[1]{~~~~My TOC}{toc}          \startcontents     \printcontents{ }{1}{}          \setcounter{page}{1}          \section{first section}     foo bar     \subsection{first subsection}     foo bar     \section{last section before appendix}     foo bar     \subsection{some subsection}     foo bar     \subsection{some subsection}     voo bar     \newpage     %% START APPENDIX     \appendix       \pagenumbering{Roman}     \renewcommand\thesubsection{\Alph{subsection}}           \phantomsection     \addcontentsline{toc}{section}{Anhang}      \section*{Anhang}     \markboth{Anhang}{Anhang}          \subsection{and just another subsection}          \subsection{and another subsection}          \subsection{Sources}          \stopcontents          %% START SECOND TOC     \startcontents[sections]     Here is all the sourcecode.     \printcontents[sections]{ }{2}{}          %% see http://tex.stackexchange.com/questions/33841/how-to-modify-the-indentation-before-sectioning-titles-in-the-table-of-contents     \makeatletter     \renewcommand*\l@subsubsection{\bprot@dottedtocline{1}{1.5em}{2.3em}}  %% values of section     \renewcommand*\l@paragraph{\bprot@dottedtocline{2}{1.5em}{2.3em}}      %% old values: 3.8em   3.2em     %% values of subsection     \renewcommand*\l@subparagraph{\bprot@dottedtocline{3}{7.0em}{4.1em}}   %% values of subsubsection     \makeatother          %% needs tocloft, there is no difference with these lines     %%\setlength{\cftsecindent}{2.4cm}     %%\setlength{\cftparaindent}{1.3em}  %% 2.4 cm versetzt den gesamten TOC-Eintrag (Kapitelnummer und Titel) nach links oder rechts     %%\setlength{\cftparanumwidth}{0.5cm} %% Breite der Zahl vor dem Titel     %%\setlength{\cftbeforeparaskip}{-2cm}   %% zieht das TOC insgesamt nach oben          \setcounter{subsection}{3}          \subsubsection{SQL}          \paragraph{create some tables}     bla     \subparagraph{deepest}     a lot of code          \subsubsection{PHP}     \subsubsection{JavaScript}          \stopcontents[sections]     \resumecontents          \subsection{some more}          \begingroup         \renewcommand*\section{\subsection}  %% changing for the dynamic created          \listoffigures         \listoftables     \endgroup          \subsection{last subsection}     Finally.     \stopcontents          \end{document}


title: How to break long words after n chars (long genomic sequences)

text: I have to include relatively small genomic sequences in a Latex document (still, they are words of around 600-900 As Ts Gs and Cs) but I cannot find a way to **force line wrapping after a certain number of characters**. I saw a massive amount of similar topics on the matter, most of them citing listings and discretionaries, but all of the suggested solutions rely on either the small size of the long words to manually add "invisible breakpoints", or the fact that within the words, some special characters (dots, underscores) or patterns, can be defined as breakable areas. Unfortunately, the sequences I work on are too long to edit manually, and there's no special pattern that can be used within a discretionary, and none of these solutions would help if I want to stick to the standard 50 bases per line. I'm really at loss of ideas, so if you would have any lead, please share! Here is an example of sequence that I need to include:               CTCCTTGGGCTGTTATTCCGTAAAAGTATTTGTGGAAGATACGGCTGTCATACATGATATGTTTTTTGTTTATAACAATAGTTCTTTCTTTGATTTCACCATAGGTTGCCTCAAATTGCTCTTTTGTTGCTTGTCCAGCTGTTAAGACTAAATGTTTTGACCCCTCATTTATAAGACCGATTGCGTTGAATGGTAAGACATTCTGTTGTGCTGATTGTAATTCTGAATAGCTACGGATTTTTATGAAGATATAGTTTTTTAATATTGGTATTTCATTCCAGACATACTTCTGTATAAAGGATTTATTAAACGGTGTTGTTTTGATTGCTCTATAATACTTATCTTGTTGTCCTCTTAATTTTACCCAAGGTCTTTCAAACTCTTGGGAGTTAATGATTATAAGCATATTGTAAAGCTGTCCAGCTAATCCGAAGAATACTGGAAGCCAGTGGGTAAAGCTTGTCTGTTTTGGTAAAGCTGTTTGAACGTCTGACAAGAACAAGTCCAGACCTTCATATTTGTGGATTTTTTGAAACTTCATATTTTGATATGAACCGTCTACAATATCACTATATTTTACTGGTTGCCCAGTTTTTTGATTAATGTATCCAGGTCTTTAATATCTACTACTAAAACCACCGTAACCATAGTCCACGTTAGAGATATAGAGAGGTTTCGCATAAATGTGAACCCAGATTGCTTGTTGTTGTCTTTCATAACTCATTTGAAGACCAGTTTTAATGCGTTCTTTAATTGCTTGATACGTT


title: Indenting text framed by a vertical rule

text: I would like to know how to modify the LaTeX based answer to this question so that the text left margin would be increased by a given amount. I've tried to change the value of `\leftmargin`, `\evensidemargin`, `\oddsidemargin`, `\textwidth`, etc. to no effect. I can change the text right margin by adjusting `\hsize` ... but that does not help me as I can't find out how to shift the whole thing left. I've also tried to use the `changepage` package but without success.


title: How can I create two table of contents for a solutions packet, with one of them being sorted by "topic"?

text: I am using the extbook environment to create a solutions manual. I would like two table of contents on this document: one of them created the "traditional way," i.e., `\tableofcontents` with `\section{}` used for every question with `hyperref` used to make the table of contents clickable; and, another one with the sections **sorted by topic**. The problem with this set of questions that I am writing solutions for is that the questions are in numerical order, but questions with similar numbers usually are not of similar topics. As an example, here is what I mean: let's say I have 3 questions: question 1 is on addition, question 2 is on multiplication, and question 3 is on addition. On the traditional table of contents, as I have it right now, it will sort them by page number: question 1 first, question 2 second, and question 3 third. However, I would like to create another table of contents that lets me group them by topic: perhaps something like: **Addition** Question 1..... (page number) Question 3..... (page number) **Multiplication** Question 2.... (page number) Furthermore, I would like both of these table of contents to exist in the same file. Is this possible using LaTeX? Apologies if this is a duplicate of a previous question - I am new here.


title: Measure the column width of a table

text: Is there a way to determine the width of the first column in a `tabular` enviroment? I've thought about using a `savebox` but that would only give me the size of the text (and in one cell only), not the actual column width. Or should I use `longtable` (or another package) to do that?


title: How do I stop tables from messing with alignment?

text: I'm new to TeX and I'm having a hard time understanding how paragraphs, alignment, indentation, and all that works.               Some text here.          \begin{tabular}{ l l }       a & b \\       c & d \\     \end{tabular}          Some more text here.      The text at the bottom gets shifted to the right to line up with the table. I want to stop this. It should be a new paragraph and appear exactly as the one at the top. Additionally, I've been using `\hfill` to add some space between the text and the table. Is that the "correct" way to do it?


title: If I have TeX Live 2011 how to install a previous version of biblatex (1.0)?

text: I install from the internet TeX Live 2011. I have to use MLA to write all my papers, and I have this problem: biblatex-mla sometimes \autocite[prenote][pg]{key} is not printing the author's name The problem is caused by a conflict between 2 packages. `biblatex-mla` works well with `biblatex` 1.0, and my current version of `biblatex` is 1.7. Right now, I know that I need to use `tlmgr` to remove `biblatex` 1.7. My question is related with all the dependencies. According to the package manager I need to remove the whole collection of `bibtexextra` in order to remove `biblatex`. And I don't know what to do next: Can I remove the package with (`\--no-depends`) and then install manually `biblatex` 1.0? or What is the best way to resolve this issue?


title: Parsing text letter by letter

text: The `PGF` package has a module named `parser` that can parse a block of text from an initial state to a final state letter by letter. For example, the following MWE will parse a given text and count the "Z's", ignore the `b's` and highlight the `a's`.               \documentclass{article}     \usepackage{pgf}     \usepackage{soul}     \usepgfmodule{parser}     \begin{document}     \newcount\mycount          \pgfparserdef{myparser}{initial}{the letter Z}{\advance\mycount by 1\relax Z}     \pgfparserdef{myparser}{initial}{the letter a}{\hl{a}}     \pgfparserdef{myparser}{initial}{the letter b}{} % do nothing     \pgfparserdef{myparser}{initial}{the letter c}{\pgfparserswitch{final}}% done!          \pgfparserparse{myparser}ZZZZaabaabaZbabbbbbabaabcccc%          There are \the\mycount\ Z's.          \end{document}       The code will trigger an error if in the sample text an unknown letter is included (I would like it just to be ignored). Is there a short hand way to define such an action or I would need to define all the letters?


title: Adding another answer hyperlinked to the question itself

text: I asked this question here Best way to part answers from solutions? And obtained a very good answer. Though I now have a new problem. I want to type the question, then have one answer linked to the number. And one answer linked to the question itself. (See my MWE in the inked thread for an example. Clicking on the number next to the problem should send you one place, clicking on the equation itself, should send you elsewhere) Here is an MWE, for my progress so far               \documentclass{article}          \usepackage{answers}                                 \usepackage{enumitem}                            \usepackage{hyperref}     \usepackage{multicol}     \usepackage{changepage}     \usepackage{mathtools}     \newcommand{\dx}{\mathop{}\! \text{d} x}     \setlength{\parindent}{0.0mm}          \hypersetup{colorlinks=true,     linkcolor=blue}          % very useful during de-bugging!     %\usepackage[left]{showlabels}     %\showlabels{hypertarget}     %\showlabels{hyperlink}          % solutions file     \Opensolutionfile{mysolutions}     \Newassociation{mysolution}{mySoln}{mysolutions}          % new environment that sets up hypertargets both in the question     % section, and in the answer section     \newlist{myenum}{enumerate}{3}     \newcounter{question}[section]     \newenvironment{question}%         {%         \refstepcounter{question}%         %  hyperlink to solution              \hypertarget{question:{\thequestion}}{}%              \Writetofile{mysolutions}{\protect\hypertarget{soln:\thequestion}{}}%              \begin{myenum}[label=\bfseries\protect\hyperlink{soln:\thequestion}{\thequestion}),ref=\thequestion,itemsep=5pt]              \item%             }%             {%             \end{myenum}}          \newenvironment{IntList}[1]{%     \Opensolutionfile{mysolutions}     \centering     \setlength{\columnsep}{50pt}     \begin{adjustwidth}{-3em}{-2em}\begin{multicols}{#1}}{\end{multicols}\end{adjustwidth}\Closesolutionfile{mysolutions}}          \begin{document}          \begin{IntList}{3}         \begin{question}             $\displaystyle \int\sqrt{4-x}\dx$                 \begin{mysolution}                     $2+3+4$                 \end{mysolution}         \end{question}     \end{IntList}          \section{helo}          \begin{IntList}{3}         \begin{question}             $\displaystyle \int\sqrt{4-x}\dx$                 \begin{mysolution}                     $ \int x^3 + 2$                 \end{mysolution}                 \end{question}         \begin{question}             $\displaystyle \int \sqrt{\frac{1}{x^2+1}}\dx$                 \begin{mysolution}                     $-\frac{2}{3}(4-x)^{\frac{3}{2}}+C$                 \end{mysolution}                 \end{question}         \end{IntList}          % close solution file     \Closesolutionfile{mysolutions}          % renew the solution environment so that it hyperlinks back to      % the question     \renewenvironment{mySoln}[1]{%              % add some glue              \vskip .5cm plus 2cm minus 0.1cm%              {\bfseries \hyperlink{question:#1}{#1.}}%     }%     {%     }%          \clearpage     \section{Answers!}     % input the file if it exists     \IfFileExists{mysolutions.tex}{\input{mysolutions.tex}}{}     \end{document}      So I want to add another answer below each question, for an example like below               \begin{IntList}{3}         \begin{question}             $\displaystyle \int\sqrt{4-x}\dx$                 \begin{mysolution}                     $2+3+4$                 \end{mysolution}                  \begin{myanswer}                     To solve this problem one must first...                 \end{mysanswer}         \end{question}     \end{IntList}      Where my answer is linked to the whole question and the solution is linked to the number. Prefferably the linked equation should work the same way as the answer does. Eg the hyperref works both ways. Any ideas? Edit: Here is a more minimal example               \documentclass[10pt,a4paper]{article}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsmath}          \usepackage{enumitem}     \usepackage{multicol}     \usepackage{mathtools}          \newenvironment{IntList}[1]{%     \centering     \setlength{\columnsep}{50pt}     \begin{multicols}{#1}\begin{enumerate}[itemsep=5pt]}{\end{enumerate}\end{multicols}}          \usepackage[hidelinks]{hyperref}     \newcommand{\IntExerc}[2]{\item \hyperref[#1]{\mbox{ \( \displaystyle #2 \) }}}          \begin{document}          \begin{IntList}{3}     \IntExerc{R1.1}{\int \frac{x^2+3x}{x^2} \,\mathrm{d}x}     \IntExerc{R1.22}{\int\sin(x)\,\mathrm{d}x}     \IntExerc{R1.2}{\int_0^1 \frac{x}{x^2+1} \,\mathrm{d}x}     \end{IntList}          \newpage          \newpage          \begin{align}     \int \frac{x^2+3x}{x^2} \, \mathrm{d}x & = \int \frac{x^2}{x^2} + \frac{3x}{x^2} \, \mathrm{d}x = \int 1 \mathrm{d}x + 3\int \frac{\mathrm{d}x}{x} = x + 3 \ln|x| + \mathcal{C}  \label{R1.1} \\     \int\sin(x)\,\mathrm{d}x & = -\cos(x) + C \label{R1.22} \\     \int\sin(x)\,\mathrm{d}x & = -\cos(x) + C \label{R1.2}     \end{align}          \end{document}      This is closer to the output I want from the answers, package. Note that I have to type the answers seperately, add labels. And have no hyperlinks attached to the numbers. ( I would also prefer to have the syntax below, but I guess this is not possible. )               \begin{Questions}[PartI]     \question     \solution     \answer          \question     \solution     \answer     \end{Questions}          \display{solution}{PartI}          \display{answer}{PartI}      Now, any comments and help would be great. * * * EDIT: I made some progress! Is there any way to make the \long and \short "answers" to be incuded at the beginning? It seems cumbersome to type them over and over again.               \documentclass{article}          \usepackage{answers}                                 \usepackage{enumitem}                            \usepackage{hyperref}     \usepackage{multicol}     \usepackage{changepage}     \usepackage{etoolbox}          \newcommand\getcurrentref[1]{%      \ifnumequal{\value{#1}}{0}       {??}       {\the\value{#1}}%     }              \hypersetup{colorlinks=true}          \setlength{\parindent}{0.0mm}               % very useful during de-bugging!     %\usepackage[left]{showlabels}     %\showlabels{hypertarget}     %\showlabels{hyperlink}          % solutions files     % short solutions     \Opensolutionfile{shortsolutions}     \Newassociation{shortsolution}{shortSoln}{shortsolutions}     \Newassociation{short}{shortSolns}{shortsolutions}     % long solutions     \Opensolutionfile{longsolutions}     \Newassociation{longsolution}{longSoln}{longsolutions}     \Newassociation{longs}{longsSolns}{longsolutions}          % new environment that sets up hypertargets both in the question     % section, and in the answer section     \newlist{myenum}{enumerate}{3}     \newcounter{question}[subsection]     \newenvironment{question}[1]%         {%         \refstepcounter{question}%         %  hyperlink to solution              \hypertarget{question:{\thesubsection\thequestion}}{}%              \Writetofile{shortsolutions}{\protect\hypertarget{shortsoln:\thesubsection\thequestion}{}}%              \Writetofile{longsolutions}{\protect\hypertarget{longsoln:\thesubsection\thequestion}{}}%              \begin{myenum}[label=\bfseries\protect\hyperlink{shortsoln:\thesubsection\thequestion}{\thequestion.},ref=\thequestion]              \item%                 \hypersetup{linkcolor=black}%                 \hyperlink{longsoln:\thesubsection\thequestion}{#1}%             }%             {%             \end{myenum}}          \newenvironment{IntList}[1]{%     \Opensolutionfile{mysolutions}     \centering     \setlength{\columnsep}{50pt}     \begin{adjustwidth}{-3em}{-2em}\begin{multicols}{#1}}{\end{multicols}\end{adjustwidth}\Closesolutionfile{mysolutions}}               \begin{document}          \section{Problems}          \subsection{Questions}     \begin{multicols}{3}                           \begin{short}                     \vspace*{\baselineskip}                     \color{white} hello                     \vspace*{-\baselineskip}                 \end{short}                 \begin{longs}                      \vspace*{\baselineskip}                     \color{white} hello                     \vspace*{-\baselineskip}                 \end{longs}              \begin{question}{$\int\sqrt{4-x}\mathrm{d}x$}                 \begin{shortsolution}                     $-\frac{2}{3}(4-x)^{\frac{3}{2}}+C$                 \end{shortsolution}                 \begin{longsolution}                     In order to do this, we must first make a substitution\ldots                 \end{longsolution}         \end{question}         \begin{question}{$\int(2x-1)^{50}\mathrm{d}x$}                 \begin{shortsolution}                     $\frac{1}{102}(2x-1)^{51}+C$                 \end{shortsolution}                 \begin{longsolution}                     A very long solution| much longer than the shorter solution                 \end{longsolution}         \end{question}         \begin{question}{$\int\sqrt[n]{x}\mathrm{d}x$}                 \begin{shortsolution}                     $\frac{n}{n+1}x^{\frac{1+n}{n}}+C$                 \end{shortsolution}                 \begin{longsolution}                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                     Even longer!                 \end{longsolution}         \end{question}     \end{multicols}          \subsection{Some more questions}          \begin{multicols}{3}                           \begin{short}                     \vspace*{\baselineskip}                     \color{white} hello                     \vspace*{-\baselineskip}                 \end{short}                 \begin{longs}                      \vspace*{\baselineskip}                     \color{white} hello                     \vspace*{-\baselineskip}                 \end{longs}              \begin{question}{$\int\sqrt{4-x}\mathrm{d}x$}                 \begin{shortsolution}                     $-\frac{2}{3}(4-x)^{\frac{3}{2}}+C$                 \end{shortsolution}                 \begin{longsolution}                     hi                 \end{longsolution}         \end{question}         \begin{question}{$\int(2x-1)^{50}\mathrm{d}x$}                 \begin{shortsolution}                     $\frac{1}{102}(2x-1)^{51}+C$                 \end{shortsolution}                 \begin{longsolution}                     ho                 \end{longsolution}         \end{question}         \begin{question}{$\int\sqrt[n]{x}\mathrm{d}x$}                 \begin{shortsolution}                     $\frac{n}{n+1}x^{\frac{1+n}{n}}+C$                 \end{shortsolution}                 \begin{longsolution}                    lets go                 \end{longsolution}         \end{question}          \end{multicols}          % close solution files     \Closesolutionfile{shortsolutions}     \Closesolutionfile{longsolutions}               \clearpage     \section{SHORT answers}     % renew the SHORT solution environment so that it hyperlinks back to      % the question     \renewenvironment{shortSoln}[1]{%              % add some glue              \vskip .5cm plus 2cm minus 0.1cm%              {\bfseries \hyperlink{question:#1}{#1.}}%     }%     {%     }%     % input the file if it exists     \IfFileExists{shortsolutions.tex}{\input{shortsolutions.tex}}{}          \clearpage     \section{LONG answers}     % renew the LONG solution environment so that it hyperlinks back to      % the question     \renewenvironment{longSoln}[1]{%              % add some glue              \vskip .5cm plus 2cm minus 0.1cm%              {\bfseries \hypersetup{linkcolor=blue}\hyperlink{question:#1}{#1.}}%     }%     {%     }%     % input the file if it exists     \IfFileExists{longsolutions.tex}{\input{longsolutions.tex}}{}     \end{document}


title: How can I create a table where one cell spans several rows and all the text is justified?

text: I'm trying to create a table where the first column spans 3 rows and the text will wrap several times. The second and third columns will each have 3 rows in them. The cells in the second column will have text that will also wrap several times. All the text must be left center justified. Below is an example of what I'm trying to create. Any help would be greatly appreciated.               _________________________________________________________________                             |                       |               |                             |Some text will go here |This will      |                             |that will need to wrap |be empty       |                             |                       |               |                             |_______________________|_______________|     Some really long text   |                       |               |     that i would like       |Some text will go here |This will      |     left-center justified   |that will need to wrap |be empty       |     in this column          |                       |               |                             |_______________________|_______________|                             |                       |               |                             |Some text will go here |This will      |                             |that will need to wrap |be empty       |                             |                       |               |     _________________________________________________________________


title: header line in second page of abstract

text: I'm writing my thesis. In my abstract there is two pages. So, I want a head in second page. My MWE code:               \documentclass[12pt,twoside,a4paper,openright]{report}     \usepackage[portuguese]{babel}     \usepackage[utf8]{inputenc}     \usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}     \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \fancyfoot[RO,LE]{\thepage}     \fancyhead[RO]{\slshape \rightmark}     \fancyhead[LE]{\slshape \leftmark}          \begin{document}          \chapter*{Resumo}               Esta dissertação de mestrado teve como objectivo modificar partículas de carbonato de cálcio natural (GCC) através do revestimento com sílica, \textit{in situ}, seguindo a metodologia sol-gel, de modo a aumentar a resistência mecânica da folha de papel. Assim, aumenta-se a quantidade de \textit{filler} presente na folha, ocorrendo uma substituição parcial de uma matéria-prima por outra menos dispendiosa.          Foram utilizadas três gamas de GCC, testando diferentes tamanhos e brancuras, para efectuar o revestimento de sílica, seguindo a metodologia que \cite{gamelas} aplicou ao carbonato de cálcio precipitado. A reacção sol-gel decorreu em meio ácido, utilizando TEOS como percursor, a qual prolongou-se por 24 horas a uma temperatura de .          Com o intuito de caracterizar as partículas de carbonato de cálcio, original e modificado, foram efectuados diversas técnicas analíticas para analisar: a morfologia (microscopia electrónica de varrimento), o tamanho (espectroscopia de difracção laser), a composição química (espectroscopia de infravermelho por transformada de Fourier), a quantidade de sílica presente no GCC (termogravimetria), a brancura (espectrofotometria) e métodos de potencial zeta. Concluiu-se que houve deposição de sílica nas partículas de GCC, tal como era expectável.          Tal como o PCC modificado, documentado em \cite{lou}, conseguiu-se obter melhorias nas propriedades mecânicas da folha quando o \textit{filler} modificado foi aplicado, independentemente da gama utilizada, conseguindo-se concretizar um dos objectivos propostos. Esta melhoria deve-se à presença de grupos hidroxilo da sílica, que permitem estabelecer pontes de hidrogénio com as fibras de celulose. O aumento na resistência da folha ocorreu em maior grau no GCC com menor tamanho de partícula, indicativo que a deposição de sílica depende do tamanho das partículas de GCC. Relativamente às propriedades ópticas das folhas, estas foram ligeiramente prejudicas com a aplicação dos GCC's modificados, sugerindo que a folha está "fechada" devido a uma ligação \textit{filler}-fibra mais forte, sendo que no GCC com tamanho de partícula perde-se menos opacidade. Assim, constatou-se que é preferível modificar o carbonato de cálcio com menor tamanho de partícula.          Nos GCC's que se diferenciavam pelo nível de brancura, não houve diferenças a registar entre as folhas formadas por estas duas cargas minerais.          Comparou-se os resultados obtidos com GCC modificado com os de PCC, conseguidos por \cite{lou}, constatando-se que é melhor modificar PCC do que GCC. Além da tendência natural que o PCC possui para repercutir boas propriedades ópticas na folha de papel, o revestimento com sílica induziu uma melhoria nas propriedades mecânicas da folha numa magnitude superior às obtidas com GCC, ultrapassando a capacidade intrínseca que este \textit{filler} contêm neste âmbito. Este resultado foi semelhante ao obtido pela aplicação de GCC modificado correspondente a 30 \%(w/w) da folha.          Também se produziu folhas de papel com uma mistura de cargas minerais, 20 \%(w/w) GCC modificado e 10 \%(w/w) de carbonato de cálcio precipitado, com o objectivo de reduzir a quantidade de carga modificada e para melhorar as propriedades ópticas. Os resultados indicam que é preferível usar esta carga mineral do que apenas GCC modificado, isto, se tivermos em conta os custos associados à modificação.          Ao utilizar cargas modificadas, comprovou-se que é possível aumentar o conteúdo (cerca de 10 \%) de carga mineral, sem prejudicar as propriedades mecânicas das folhas de papel. Este facto foi confirmado tanto na aplicação de GCC modificado, como na de mistura de cargas, tendo este último vantagem devido à componente económica.          Como os objectivos deste estudo estão intimamente ligados a um factor económico, deverá-se estimar os custos económicos da modificação de carbonato de cálcio a fim de avaliar devidamente os resultados obtidos.          Apesar dos resultados não serem totalmente positivos na aplicação a papéis de impressão e escrita, isto é, em relação ao carbonato de cálcio precipitado, poderá ser útil em papéis com outro tipo de utilização, onde as propriedades ópticas não são fundamentais.     \end{document}


title: Can't compile anymore after trying to install dsfont in MiKTeX 2.8

text: I'm currently writing my master thesis with MiKTeX 2.8. Now I wanted to install `dsfont`. But since 2.8 seems not to be supported anymore, I tried to install the package manually. I downloaded the `doublestroke` package, which contains `dsfont`, here and followed these instructions:   * I already created the folder `C:\localtexmf` a few months ago   * I created a new folder `dsfont` in `C:\localtexmf\tex\latex`   * I put the `dsfont.sty` file into that folder   * In MiKTeX settings, I pressed the `refresh FNDB` and the `Update formats` buttons   * I loaded the package via `\usepackage{dsfont}` in my main file That did not work. I got no error messages, but 81 warnings. Since I did not know why it didn't work, I also followed these instructions:   * I executed `initexmf --edit-config-file=updmap.cfg`   * then I entered `# <font name> or <package name> or what fits better for you Map dsfont.map` into the file   * I executed `initexmf -u` as well as `initexmf --mkmaps`   * again, I pressed the `refresh FNDB` and the `Update formats` buttons Still didn't work. Even worse, even if I don't try to load `dsfont` in my main file, the document is not compiled. That means that I can't keep working on my thesis even without using dsfont. The problem seems to be with BibTeX, because I get error messages from BibTeX: > I found no `\citation` commands > > I found no `\bibdata` Note that there is a folder for `biblatex` in the `localtexmf` folder: `C:\localtexmf\tex\latex\biblatex`. But I'm not sure that I really needed that one for bibtex to work. Furthermore, since I got these problems, there is also a new file called `Masterarbeit.synctex(busy)` in my main folder (`Masterarbeit.tex` is my main document). So, does anybody know how to make it work again? This is pretty important, because I don't have much time left and I don't want to risk to mess everything up with a new installation of MiKTeX. What did I do wrong during my installation of `dsfont`? Please help me! EDIT: uploaded the log file from Latex and also bibtex UPDATE: Installed MikTeX 2.9 on a different PC, still the same errors/warnings. Something is wrong in the way I'm creating my Bib, but I don't know what since I did not change anything concerning my Bib.


title: Creating cobweb diagrams of some functions with tikz/pstrick etc

text: I want to create cobweb diagrams with tikz (if that is possible - but reading in the internet about all the things tikz can do, I would believe it is) - or pstricks or some other graphing program - of some fairly simple functions. For an illustration of what I have in mind, see the pictures from this site. My problem is that my approach to this problem was totally wrong: I did all my cobweb diagrams in GeoGebra, because from there I can export them to tikz/pstricks - but after doing that I realized that that doesn't work very well: The conversion from the GeoGebra plot to tikz/pstricks often contains glitches. So now I did all the work for nothing - and on top I don't even know tikz good enough to do that just by code. So could you please give me on example of how to code one cobweb diagram of one function (for simplicities sake, lets take x^2) that I can afterwards adapt for my other functions ? It should have to parameters: One with which I can tell it at which point of the function it tikz how many iterations it should do from that point on.


title: What is the right order when using \frontmatter, \tableofcontents, \mainmatter, \part, \chapter, \backmatter, \appendix etc?

text: I am using the `book` documentclass and want to know the correct order when arranging   * `\frontmatter`   * `\maketitle` or `\begin{titlepage}...\end{titlepage}`   * a page that contains copyright, ISBN, edition information   * a "dedication" page saying "This book is intended to my parents, etc"   * a "target audience" page   * an "about author/editor" page   * `\tableofcontents`   * `\listoffigures`, `\listoftables` etc    * `\mainmatter`   * `\part`   * `\include`   * `\backmatter`   * `\appendix`   * `\printindex` * * *               \documentclass[twoside,a4paper]{book}     \usepackage{makeidx}     \makeindex          \begin{document}     \frontmatter             \input{titlepage}% that contains    \begin{titlepage}...\end{titlepage}             \input{copyright}% that contains copyright, ISBN, etc.             \input{dedication}% saying "this book is created for my parents..."              \input{Target Audience}             \input{author}% about the author             \input{editor}% about the editor             \tableofcontents             \listoffigures             \listoftables             \lstlistoflistings          \mainmatter             \part{Basic}                     \include{Introduction to PSTricks}                     \include{Commands}             \part{Advanced}                     \include{Tips and Tricks}                     \include{PostScript Programming}     \backmatter             \appendix% I am not sure where I should invoke \appendix             \part{Appendix}                     \include{Installing TeX Distribution}                     \include{Math Review}                     \include{Answer Keys}                     \include{Bibliographies}                     \include{Glossaries}                     \printindex% I am not sure where I should use \printindex     \end{document}      * * * What is the right order ? Is there anything I missed? To be honest I've never used a glossary, index and bibliography.


title: Media9 and non youtube videos

text: I've been already in: 1) Embedding videos using media9 Talks about how to embed a file that is already saved in your computer) 2) Can we use media9 to show a video on a PDF but the video is not embedded to the PDF? Gets closer to the solution I'm loking for ---as it uses a local web server---, but when I try to run the "answer" I get an error in the pdf file that says: > Unable to play > 'http://www.ted.com/talks/todd_kuiken_a_prosthetic_arm_that_feels.html' 3) How to include a movie in a PDF? Step by step instructions Is more of a discussion about the old and obsolete `movie15` vs the new `media9` package. 4) And, of course, the `media9` documentation (If you copy-paste the examples you still get errors during compilation) This is my MWE:               \documentclass{report}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage{graphicx}     \usepackage{subcaption}     \usepackage{media9}          \usepackage{url}     \usepackage[hidelinks]{hyperref}          \begin{document}      \includemedia[         width=0.9\linewidth,height=0.6\linewidth,         activate=onclick,         flashvars={            source=http://www.ted.com/talks/todd_kuiken_a_prosthetic_arm_that_feels.html           &loop=true         }       ]{}{VPlayer.swf}          \end{document}      How do I make this non youtube video available in my pdf without embedding it and without using a local web server?


title: Lyx margin settings for binding

text: I would like to edit the lyx default settings in respect to page margins in order to allow for a larger binding margin. However, when I print two-sided I can not simply use a larger margin for the left border. Is there a way in Lyx to set a larger binding margin for a two-sided print? Thanks for your help.


title: Tikz: Text along top and bottom of arrow path

text: How can I add text to both the top and bottom of a path? My commutative diagram below is 90% complete. I would, however, like `text={${gKer({\varphi}){\mapsto}{\varphi(G)}}$}` following the path below the arrow and `\cong` following the path above the same arrow. ![enter image description here](http://i.stack.imgur.com/DKxZD.png)               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{positioning}     \usetikzlibrary{decorations.text}     \usetikzlibrary{decorations.pathmorphing}          \begin{document}          \begin{tikzpicture}          \node (A) {$G$};     \node (B) [right of=A] {$G'$};     \node (C) [below of=A] {$G/Ker(\varphi)$};          \draw[->>] (A) --(B) node[above,midway] {$\varphi$};     \draw[->,postaction={decorate,decoration={text along path,text align=center,text={${\pi}{\;}$}}}] (A) to node[swap] {} (C);     \draw[->,postaction={decorate,decoration={text along path,text align = center,text={${gKer({\varphi}){\mapsto}{\varphi(G)}}$}}}] (C) to node[swap] {} (B);          \end{tikzpicture}          \end{document}


title: Does \Twoheadleftrightarrow exist? How to write my own?

text: I'm a LaTeX newbie. I am writing a document in which I need to have a two- headed bidirectional arrow. Two-headed like `\twoheadleftarrow`, bidirectional like `\leftrightarrow`. Is there any package that offers something like this? If not, how do I "roll my own"? Thank you a lot!


title: How come the tilde ~ sometimes does not behave like non-breaking space?

text: This is again one of the behaviors that are quite difficult to catch in a reconstructible (and simple) example, so one has to resort to animations. Basically, the issue is this: the tilde (`~`) is supposed to be a non-breaking space character, right? How come, then, when I use the `Fig.~\ref{fig:myfigure}` in the MWE below, it sometimes ends up breaking the line _exactly_ at that `~` character's location, as can be seen on the .gif below: ![test-tilde-O2.gif](http://i.stack.imgur.com/k18OJ.gif) For instance, frame 41 there ends up like this (click for full res): ![test-tilde-41.png](http://i.stack.imgur.com/ksyNgm.png) Isn't that what the tilde is supposed to prevent? How can I find out why this is happening - and how can I get a non-breaking space in my `Fig.~\ref{...}` construct? Below is the MWE, `test-tilde.tex`; it uses the package `repeat-build.sty` that I posted here (tested only on Linux currently) - and it needs to be built twice, with `-shell-escape`:               pdflatex -shell-escape test-tilde.tex # first time, refs wrong here     pdflatex -shell-escape test-tilde.tex # second time, refs ok (can enable the `convert` post action if desired)      ... so that all PDFs, used in the animaton above, are generated. EDIT: I modified the code, so it will build without the `repeat-build.sty`; and it will reconstruct the situation on the still screenshot above (where the variable `\tester`=87); then if you want to use `repeat-build`, simply (un)comment the corresponding lines. The code is:               \documentclass[%       12pt,       journal,       onecolumn,       twoside,       draftcls,       letterpaper,     ]{IEEEtran}          \usepackage[demo]{graphicx} %     \usepackage{xcolor} % \pagecolor     \pagecolor{yellow!15}     \usepackage[colorlinks=true,linkcolor=blue]{hyperref}          \usepackage[nopar]{lipsum}     \usepackage{xstring}     % http://tex.stackexchange.com/a/26808/2595     \makeatletter     \def\unpacklipsum#1#2#3{%       \count@=#1\relax       \advance\count@\m@ne       \def#3{}%       \loop\ifnum\count@<#2\relax         \advance\count@\@ne         \edef#3{#3\csname lipsum@\romannumeral\count@\endcsname}%       \repeat}     % http://tex.stackexchange.com/a/168754/2595     \def\loremnchars[#1]#2{%       \unpacklipsum{#1}{#1}{\myunpacked}%       \StrMid{\myunpacked}{1}{#2}% same as \StrLeft{\myunpacked}{#2}     }     \def\eloremnchars#1#2#3{%       \unpacklipsum{#1}{#1}{\myunpacked}%       % \StrMid is not an expandable macro (can't go in \def) - but       % can "return" by saving in #3       \StrMid{\myunpacked}{1}{#2}[#3]     }     \def\getLoremParaNumChars#1#2{%       \unpacklipsum{#1}{#1}{\myunpacked}%       \StrLen{\myunpacked}[#2]       \typeout{Lorem paragraph #1 has #2 characters}.     }     \makeatother          \usepackage[format=plain,font=small,skip=12pt]{caption} %     \usepackage{listings} %     \usepackage{units} %     \usepackage{floatrow}     \floatsetup[figure]{capposition=bottom}     \usepackage{etoolbox}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{tikz}     \usetikzlibrary{shapes,positioning}     \usetikzlibrary{fit}     \usetikzlibrary{calc}     \usetikzlibrary{decorations.markings}     \usepackage{txfonts} % Times font in math; tlmgr install txfonts     \renewcommand{\ttdefault}{pcr}     \usepackage[UTF8]{ctex} % needs simsun.ttc in same directory     \usepackage{setspace}     \usepackage{siunitx}     \usepackage[american]{babel}     \usepackage{csquotes}     \makeatletter     \let\l@AMERICAN\l@american % http://tex.stackexchange.com/q/88861/     \makeatother     \usepackage[style=ieee,isbn=true,doi=false,url=true,backend=biber]{biblatex}               % here, set the \tester at a number,     % so we don't hit an error if we     % compile without repeat-build (-shell-escape)          % http://tex.stackexchange.com/a/185976/2595     %%%% uncomment the below part if you want to use {repeat-build}:     %   \ifx\tester\undefined{%     %     \global\protected\def\tester{100} %     %   }\fi     %   % do not rm the .aux here; need them for fig label;     %   % since the process needs to run twice for correct     %   % label - comment the convert post action.     %   %% manual convert command:     %   %% convert -verbose -density 150 test-tilde-*.pdf[0] -crop 1024x580+137+773 -resize 512x +repage -delay 15 -loop 0 test-tilde.gif     %   %% gifsicle -O2 test-tilde.gif -o test-tilde-O2.gif # helps reduce size     %   \def\pacode{%     %     pwd; %     %     ls \jobname-*.log \jobname-*.aux; %     %     rm -vrf \jobname-*.log ;% \jobname-*.aux; %     %   %   convert -verbose -density 75 \jobname-*.pdf[0] %     %   %     -crop 512x290+68+386 %     %   %     +repage %     %   %     -delay 15 -loop 0 % -delay 5     %   %     \jobname.gif %     %   %   ; %     %   %   eog \jobname.gif ; % run viewer     %   }     %   \usepackage[%     %     vartoken=\tester,%  % loop the variable token: \tester     %     varvals={15,16,...,29,41,42,...,52,58,59,...,65,77,78,...,89},% set \tester to change; (was from 0 to 100 {0,...,100})     %     postactioncode={\pacode},%     %   ]{repeat-build}     %   \unprotect\tester     %   \makeatletter     %   \def\getrjname{\rpbuild@jobname}     %   \makeatother     %%%% else this should be enough for a usual run:     \def\tester{83} % comment this if using repeat-build!          \begin{document}            \title{Test title}       \author{test}            \maketitle            \begin{abstract}       The abstract text goes here.       \end{abstract}            \section{Test section}            Test text, before figure:            \setcounter{figure}{22} % if 10, then {figure} becomes 11       \begin{figure}[h!t]         \singlespacing         \includegraphics[width=\textwidth,height=100pt]{demo.whatever}         %\caption[shortdesc]{The figure is being shown here. \protect\loremnchars[3]{255}}         \captionof{figure}[shortdesc]{The figure is being shown here. \protect\loremnchars[3]{255}}         \label{fig:myfigure}       \end{figure}            Current: doc: \jobname; \verb!\tester!: \tester ... \loremnchars[1]{150}            \eloremnchars{2}{\tester}{\tretA} %       \pgfmathtruncatemacro{\tB}{\tester/2} %       \eloremnchars{4}{\tB}{\tretB} %       \eloremnchars{5}{\tester}{\tretC} %       \tretA\space on Fig.~\ref{fig:myfigure}.       \tretB\space on Fig.~\ref{fig:myfigure},       \tretC\space on Fig.~\ref{fig:myfigure}.            \loremnchars[3]{712}.. And ... \lipsum[7]            %\getLoremParaNumChars{3}{\tret} %\typeout{\tret}       %\eloremnchars{3}{712}{\tret} \typeout{\tret}          \end{document}


title: textpos and pause result in wrong order in beamer

text: I use a textpos textblock in a beamer document. I want to display content step by step, but the slides are in wrong order. example code:               \documentclass{beamer}     \usepackage[absolute,overlay]{textpos}     \begin{document}     \begin{frame}     \begin{textblock}{4}(1,2)     A \pause B \pause C \pause D     \end{textblock}     \end{frame}     \end{document}      when generating the slides with pdflatex, I get those slides: "B C D" "C D" "D" "A B C D" why does that occur, is there a simple fix?


title: \cite ouputs a (?) at the pdf

text: I'm extremely new to LaTeX, and I'm using the PhD template found at http://openwetware.org/wiki/LaTeX_template_for_PhD_thesis My problem is that after I included my `.bib` archive into the specified folder (I used the same way they use as to prevent any error) I can't seem to get any cite to work: I write `\cite{mycite}` but the PDF output is just a **(?)** and on the references page I don't see any of my citations contained on my `.bib` file. Can anyone help me? I'm really lost and this is extremely important.


title: tikz pgfplots ternary diagram, density map

text: I am plotting points in a ternary diagram using `pgfplots` and the ternary axis environment. Each point does posses a 4th value (besides the 3 that are the coordinates). At the moment I am stating this 4th value as a node next to each plotted point. This comes with the problem that the minima/maxima of this value is not easy to spot as well as it is hard to read general trends. Also nodes can't reach outside of the ternary axis which leads to inconsistency with labeling points close to the axis. I would like to have the points coloured according to their value (i.e. a value of 5 would be blue, 7.5 would be yellow and 10 would be red) this should be done gradually of course. Ideally I would like to have a fully coloured map with the space between the points interpolated. Does anyone know of a way or at least a workaround to have the points coloured according to their 4th value? **Image** : ![enter image description here](http://i.stack.imgur.com/p69jO.png) **LaTeX source** : http://depositfiles.com/files/5gaazfu5q


title: tabularx: underfull \hbox (badness 10000) in alignment

text: I'd like to have table of 15cm with fixed-width cells. I use tabularx package. For some reason, the following code gives **underfull \hbox (badness 10000) in alignment** . What causes this warning? How can I fix this?               \documentclass[a4paper,12pt]{report}          \usepackage[polish]{babel}          \usepackage[top=25mm,bottom=25mm,left=35mm,right=25mm]{geometry}     \usepackage{tabularx}          \begin{document}          \begin{table}[!ht]     \begin{tabularx}{150mm}{|>{\hsize=0.3\hsize}X|>{\hsize=0.6\hsize}X|>{\hsize=1\hsize}X|>{\hsize=1.55\hsize}X|>{\hsize=1\hsize}X|>{\hsize=1.55\hsize}X|}     \hline     a & b & c & d & e & f \tabularnewline     \hline     \end{tabularx}     \end{table}          \end{document}


title: \providecommand equivalent of \DeclareMathOperator: \ProvideMathOperator?

text: What is the `\providecommand` equivalent of `\DeclareMathOperator`? I.e. as `\providecommand` is to `\newcommand` a method for defining new commands if and only if they have not already been defined? Actually, as pointed out by @egreg in the comments, `\providecommand` can be dangerous since it might adversely affect the behaviour of packages that define it. What I would really like is something that combines the ability of `\providecommand` to quietly ensure a command exists with the functionality of `\CheckCommand` to make sure that the provided definition is consistent with previous definitions.


title: Is it possible to add math symbols to PDF?

text: In adobe reader or acrobat, you can put sticky notes. And you can add math symbols in the sticky notes, but for many of them you can only copy and paste from online (like from wikipedia). Is there a way to type math symbols in adobe pdf's? Or maybe even use LATEX?


title: Wrap text around floats only at top and bottom

text: I am having difficulties in placing floats (figures and tables) as in my thesis I need to place the floats in the sections where they appear. In the process, lots of white space is remaining here and there. My problem can be solved if I can wrap texts around floats only at top and bottom using `wrapfig' but`wrapfig' always placing texts at left and right side of the floats which I do not want. How can I do this ? Just for the sake of explaining what I need, I am attaching the picture here ![Just for the sake of explaining what I need, I am attaching the picture here](http://i.stack.imgur.com/99nIg.jpg) I need the "top and bottom" option (the fourth figure in top row)


title: Right way of citing: First author and year the same, co-authors differ

text: We had a short discussion about distinguishing bibliography, if the first author and the year is the same, but the co-authors differ. M Now I'm facing a similiar "problem" by myself or rather do not understand the behavior of `biblatex`. This questions is more about the right way of academic citing and less a matter of LaTeX.               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents*}{\jobname.bib}     @article{Smith:2004,        author = {Smith, Andrew and Sparks, Leigh},        title = {All About Eve?},        journal = {Journal of Marketing Management},        volume = {20},        number = {3-4},        pages = {363--385},        year = {2004},     }          @article{SmithEtAl:2004,        author = {Smith, Andrew and Sparks, Leigh and Hart, Susan and Tzokas, Nikos},        title = {Delivering customer loyalty schemes in retailing: exploring the employee dimension},        journal = {International Journal of Retail \& Distribution Management},        volume = {32},        number = {4},        pages = {190--204},        year = {2004},     }     \end{filecontents*}          \usepackage{csquotes}     \usepackage[backend=biber,style=authoryear]{biblatex}      \addbibresource{\jobname.bib}           \begin{document}                   \textcite{Smith:2004} as well as \textcite{SmithEtAl:2004}\ldots       \printbibliography          \end{document}      The result is > Smith and Sparks (2004) as well as Smith, Sparks, et al. (2004)... but why? The second entry could be Smith et al. (2004) and it would be clearly distinguishable from the first entry. Why is the second author named?


title: Conflict between listings and gb4e?

text: this code doesn't compile for me. Could it be a bug or is something wrong with my LaTex installation?               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{gb4e}     \usepackage{listings}     \begin{document}     \begin{exe}     \ex     \gll Isso é um exemplo.\\     This is an example\\     \trans `This is an example.'     \end{exe}     \begin{lstlisting}     source code     \end{lstlisting}     \end{document}      My goal: have glossed examples AND indented source code (the verbatim environment did not indent the code).


title: Changing the font size of document title

text: A publication I am submitting to has the rather annoying requirement of needing the document title to be size 16pt (and the regular text size being 12pt, which I know how to do). I have absolutely no idea how to change the font size of the title (beyond adding `\Large`, `\LARGE` etc. but none of these correspond to 16pt). How would I go about setting the font size of the title to a specific size?


title: Making AUCTeX aware of SageTeX

text: When you compile a file with AUCTeX, it will prompt you to re-run LaTeX and BibTeX as necessary. Is there a way to get it to also run `sage` when using SageTeX?


title: Problem with mhchem subscript and superscript alignement

text: In the `mhchem` package, there is an example of writing CrO42- with the command `\ce{CrO4^2-}` which produce a formula where the 2- is not aligned with the 4, which is exactly what I want to reproduce. However, when I try on my computer, in a minimal document:               \documentclass{article}     \usepackage[version=3]{mhchem}     \begin{document}     \ce{CrO4^2-}     \end{document}      The subscript 4 et superscript 2- are aligned ... Do someone know where it comes from and how to deal that ? Thanks in advance


title: Getting bold digits with XeLaTeX and mathspec

text: I'm trying to achieve something that I assumed was quite simple but it made me waste an insane amount of time so far. I'm using XeLaTeX for a document and I'm setting “Arno Pro” as my font. I'm using the same font also for the math mode and I need a formula with bold digits. MWE:               \documentclass{article}          \usepackage{amsmath}     \usepackage{mathspec}          \usepackage{xltxtra,xunicode}     \defaultfontfeatures{Mapping=tex-text}          \setmathsfont(Digits,Latin,Greek)[     Path = fonts/,Extension = .otf,     UprightFont=ArnoPro-Regular,     BoldFont=ArnoPro-Bold,     ItalicFont=ArnoPro-Italic,     BoldItalicFont=ArnoPro-BoldItalic,     Numbers={Proportional}     ]{ArnoPro}          \setmathrm     [Path = fonts/,Extension = .otf,     UprightFont=ArnoPro-Regular,     BoldFont=ArnoPro-Bold,     ItalicFont=ArnoPro-Italic,     BoldItalicFont=ArnoPro-BoldItalic     ]{ArnoPro}          \fontspec[Path=fonts/]{ArnoPro.otf}     \SetSymbolFont{Digits:m:n}{bold}{EU1}{\zf@family}{m}{n}          \begin{document}     \noindent     $\boldsymbol{bf\ 0123}$\\     $\mathbf{bf\ 0123}$\\     $normal\ 0123$\\     $\mathit{it\ 0123}$\\     $\mathrm{rm\ 0123}$          \end{document}      Now, this works almost perfectly except that only text and symbols are affected, no digits. I have tried all sorts of combinations, including some with `unicode-math`, but to no avail. What am I doing wrong?


title: Graphics no longer found after upgrading to TeXstudio 2.8.2

text: I am working on a document with several chapters and figures. All the figures are in a sub directory (`/fig`). Using TeXstudio 2.8. No problem. Since I upgraded to 2.8.2 I am getting the error: "I could not locate the file with any of these extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps" on all my figures (.png). I even placed the graphics using the text studio wizard. Same error. I also noticed that in 2.8 the wizard placed slightly different text (the `./` is missing): 2.8               \begin{figure}[tbph]     \centering     \includegraphics[width=1\linewidth]{./fig/CATX_GSP_(Exponential_Trend)2}      2.8.2               \begin{figure}[tbph]     \centering     \includegraphics[width=1\linewidth]{fig/CATX_GSP_(Exponential_Trend)2}      Using Windows 7 if that is important. But could use some insight from those more skilled in LaTeX than I.


title: LaTeX cannot find a lot of packages!

text: When I try to compile a file, it gives errors and the output is only math accents. Plain text is not displayed. Here is the log file:               kpathsea: Running mktextfm ecrm1200          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1200          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)          kpathsea: Running mktexmf ecrm1200          ! I can't find file `ecrm1200'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1200 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1200 Transcript written on mfput.log.          grep: ecrm1200.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1200' failed to make ecrm1200.tfm.          kpathsea: Appending font creation commands to missfont.log.          kpathsea: Running mktextfm ecrm1728          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1728          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecrm1728          ! I can't find file `ecrm1728'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1728 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1728 Transcript written on mfput.log.          grep: ecrm1728.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1728' failed to make ecrm1728.tfm.          kpathsea: Running mktextfm ecbx1728          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1728          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecbx1728          ! I can't find file `ecbx1728'. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1728 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1728 Transcript written on mfput.log.          grep: ecbx1728.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1728' failed to make ecbx1728.tfm.          kpathsea: Running mktextfm ecrm0900          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0900          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)          kpathsea: Running mktexmf ecrm0900          ! I can't find file `ecrm0900'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0900 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0900 Transcript written on mfput.log.          grep: ecrm0900.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0900' failed to make ecrm0900.tfm.          kpathsea: Running mktextfm ecbx0900          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx0900          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecbx0900          ! I can't find file `ecbx0900'. <*> ...ljfour; mag:=1; nonstopmode; input ecbx0900 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecbx0900 Transcript written on mfput.log.          grep: ecbx0900.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx0900' failed to make ecbx0900.tfm.          kpathsea: Running mktextfm ecti0900          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecti0900          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecti0900          ! I can't find file `ecti0900'. <*> ...ljfour; mag:=1; nonstopmode; input ecti0900 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecti0900 Transcript written on mfput.log.          grep: ecti0900.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecti0900' failed to make ecti0900.tfm.          kpathsea: Running mktextfm ecrm0800          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0800          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecrm0800          ! I can't find file `ecrm0800'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0800 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0800 Transcript written on mfput.log.          grep: ecrm0800.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0800' failed to make ecrm0800.tfm.          kpathsea: Running mktextfm ecrm0600          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0600          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecrm0600          ! I can't find file `ecrm0600'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0600 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm0600 Transcript written on mfput.log.          grep: ecrm0600.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm0600' failed to make ecrm0600.tfm.          kpathsea: Running mktextfm ecbx1200          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1200          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)          kpathsea: Running mktexmf ecbx1200          ! I can't find file `ecbx1200'. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1200 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1200 Transcript written on mfput.log.          grep: ecbx1200.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1200' failed to make ecbx1200.tfm.          kpathsea: Running mktextfm ecti1200          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecti1200          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecti1200          ! I can't find file `ecti1200'. <*> ...ljfour; mag:=1; nonstopmode; input ecti1200 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecti1200 Transcript written on mfput.log.          grep: ecti1200.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecti1200' failed to make ecti1200.tfm.          kpathsea: Running mktextfm eccc1200          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input eccc1200          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)          kpathsea: Running mktexmf eccc1200          ! I can't find file `eccc1200'. <*> ...ljfour; mag:=1; nonstopmode; input eccc1200 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input eccc1200 Transcript written on mfput.log.          grep: eccc1200.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input eccc1200' failed to make eccc1200.tfm.          kpathsea: Running mktextfm ecbx0800          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx0800          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecbx0800          ! I can't find file `ecbx0800'. <*> ...ljfour; mag:=1; nonstopmode; input ecbx0800 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecbx0800 Transcript written on mfput.log.          grep: ecbx0800.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx0800' failed to make ecbx0800.tfm.          kpathsea: Running mktextfm ecrm1440          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1440          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecrm1440          ! I can't find file `ecrm1440'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1440 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1440 Transcript written on mfput.log.          grep: ecrm1440.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1440' failed to make ecrm1440.tfm.          kpathsea: Running mktextfm ecbx1440          mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1440          This is METAFONT, Version 2.718281 (TeX Live 2013/Debian) kpathsea: Running mktexmf ecbx1440          ! I can't find file `ecbx1440'. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1440 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecbx1440 Transcript written on mfput.log.          grep: ecbx1440.log: No such file or directory          mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecbx1440' failed to make ecbx1440.tfm.          Process exited with error(s)      The files start with `ec` and have various latter letters such as `ecrm` `ecbx` etc. What would be the problem? I'm using Ubuntu 14.04 64-bit operating system on VM Workstation. Here's a MWE:               \documentclass[12pt]{article}     \usepackage{inputenc}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{dsfont}     \usepackage{float}     %\usepackage{multicol}     \usepackage{fixltx2e}     \usepackage{multicol}     \newcommand\blfootnote[1]{%       \begingroup       \renewcommand\thefootnote{}\footnote{#1}%       \addtocounter{footnote}{-1}%       \endgroup       }          \usepackage[T1]{fontenc}     \usepackage{comment}      \usepackage{amsmath}                                    % Math     \setcounter{MaxMatrixCols}{20}     \usepackage[margin=1in]{geometry}     \usepackage[noline, noend, ruled, linesnumbered]{algorithm2e}     \usepackage{parskip}     \usepackage{xcolor}     \usepackage{setspace}     \usepackage{hyperref}     \definecolor{bl}{rgb}{0.0,0.2,0.6}      \definecolor{dark-red}{rgb}{0.4,0.15,0.15}     \definecolor{dark-blue}{rgb}{0.15,0.15,0.4}     \definecolor{medium-blue}{rgb}{0,0,0.5}     \usepackage{sectsty}     \usepackage[section]{placeins}     \hypersetup{         colorlinks, linkcolor={dark-red},         citecolor={dark-blue}, urlcolor={medium-blue}     }     \usepackage{graphicx}     \usepackage[compact]{titlesec}      \newtheorem{observation}{\textsc{Observation}}     %%% Start of the document     \begin{document}     This is a test document with $n$ number of lines. $\dfrac{4}{5}$.     \end{document}


title: Indirectly defining two active characters within an \AtBeginDocument command

text: I'm trying to define a macro that uses two active characters inside an `\AtBeginDocument` command. I can write a macro such as the following using only one active character:               \catcode`\_=13     \begingroup     \lccode`\~=`\_     \lowercase{\endgroup     \def~#1~}{\emph{#1}}     \def\_{\char"5F\relax}      However, I'd like to define two characters as active and use them at the same time to enclose a shorthand syntax. If I use code similar to the following:               \catcode`\<=13     \catcode`\>=13     \begingroup     \lccode`\~=`\<     \lowercase{\endgroup     \def~#1>}{\url{#1}}     \def\<{\char"3C\relax}     \def\>{\char"3E\relax}      the console returns `Paragraph ended before < was complete`. It seems that both characters need to be used in an indirect method similar to defining them as a lowercase version of the tilde. Is there another character I can use in such a situation to make such a macro work? Or would there be a better way of doing this?


title: Student t-distribution with TikZ

text: I'd like to draw a Student's t-distribution with five degrees of freedom using TikZ, then another with 10 degrees of freedom, etc. In the program I am working in the degrees of freedom will be a random number from 1 to 20, so I need a t-distribution for the degrees of freedom assigned by Perl randomization.


title: Second iteration - Is there a way to clear paths previously defined with name path global in TikZ

text: In realtion to this pretty old question (back 3 years from now) Is there a way to clear paths previously defined with name path global in TikZ? I would like to know, whether there is actually a nice feature in pgfplots v1.11 (the latest, today) that allows me to delete globally defined names. My usecase: I want to use several addplot commands within the same tikzpicture, since my matlab2tikz gives me fine results in this. Afterwards I want to finetune these plots with several drawn arcs around given coordinates (script useses addplot table[] for this). I saw the [solution by sdaau for automatic naming of the nodes from the tables. This seems to work, but I have to somehow get into the scope of the addplots. Don't know how. Otherwise I get an error "shape MYNODE1 unknown"               % !TEX TS-program = pdflatex     % !TEX encoding = UTF-8 Unicode          \documentclass[tikz]{standalone}     \usepackage{pgfplots}     \usepackage{grffile}     \pgfplotsset{compat=newest}     \usetikzlibrary{plotmarks, calc, intersections}     \usepackage{amsmath}          \begin{document}     \begin{tikzpicture}               \begin{axis}[%     width=10cm,     height=10cm,     axis x line = middle,     axis y line = middle,     scale only axis,     xlabel={x [mm]},     ylabel={y [mm]},     title={$\text{n}_{\text{iterations}}\text{= 2}$}     ]               \addplot+[     only marks,     mark=text,      text mark={\coordindex}, % empty for now; try also \coordindex     text mark as node=true,     text mark style={%     name=p\coordindex,     color=orange,     shape=circle,     draw,     inner sep=0pt,     minimum size=0pt,     align=center,     text width=5pt,     text depth=0pt     }     ]     table{%         0         0            -79.9393  236.8749        143.0014  350.0007       200.0014  350.0000       200.0008  300.0000     };     \pgfplotsextra{          \path [name path=P--C-ext] (p0) -- ($(p1)!-50!(p0)$);         \draw (p0) -- (p1);         \path [name path=Rim] (p1.center) circle(50);         \path [draw, name intersections={of=P--C-ext and Rim}];              \pgfmathanglebetweenpoints{%                 \pgfpointanchor{p1}{center}         }{%                 \pgfpointanchor{intersection-1}{center}         }         \let\myendresult\pgfmathresult              \fill [fill=blue!50,draw=blue,thin,opacity=0.5] (p1) -- (intersection-1) arc [start angle=\myendresult,delta angle=-40,radius=50] -- cycle;         \fill [fill=blue!50,draw=blue,thin,opacity=0.5] (p1) -- (intersection-1) arc [start angle=\myendresult,delta angle=25,radius=50] -- cycle;     };          \end{axis}          \end{tikzpicture}          \end{document}      This code doesn't compile though... So second try is to use "path name global" but then I'd have several redefined nodes. To sum up: I want automaticly named nodes from the coordinate table in addplot command. I want to use them in the same tikzpicture for attaching some shapes and arcs to them.


title: Problem with lxfonts

text: When I compile this               \documentclass{article}     \usepackage{lxfonts}     \begin{document}     $\mathcal{A}$     \end{document}      I get an "incomplete" calligraphic "A". ![calligraphic A](http://i.stack.imgur.com/MAMWD.jpg) If I use other fonts, everything seems fine. Any idea about this?


title: Why does \mathbb{R} cause '! Undefined control sequence. - \GenericError'?

text: When I compile the following document, I get               ! Undefined control sequence.     \GenericError  ...                                                                                #4  \errhelp \@err@     ...     l.39 ...an, y=variance, col sep=comma] {data.csv};                                                       ^^M     ?       But when I change `\mathbb{R}` to `mathbb{R}` everything is fine. And the document also compiles when I put $\mathbb{R}$ over the tikz picture. What is the problem and how do I fix it? ## Code               \documentclass[varwidth=true, border=2pt]{standalone}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf     \usepackage[margin=2.5cm]{geometry} %layout          \usepackage{filecontents}  % only for this question          \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}          \usepackage{pgfplots}     \pgfplotsset{compat=1.10}          \begin{document}          \begin{filecontents}{data.csv}     label,mean,variance     B,0.66,0.14     C,0.85,0.17     \pi,1.29,0.35     \mathbb{R},0.75,0.22     \end{filecontents}          \begin{tikzpicture}         \begin{axis}[                 width=15cm, height=8cm,                 xlabel=mean,                 ylabel=variance,                 visualization depends on={value \thisrow{label} \as \label},                 every node near coord/.append style={font={\tiny}},                 nodes near coords={$\label$},              ]               \addplot[scatter,                        mark=x,only marks,                        mark size=1,                        ]                        table [x=mean, y=variance, col sep=comma] {data.csv};         \end{axis}     \end{tikzpicture}     \end{document}