title: Draw curved arrows between nodes in tikz-qtree

text: Is there a "clever" way to draw curved lines between nodes without them to go all through the picture? Here is my MWE :               \documentclass[11pt]{beamer}     \usepackage{ulem}     \usepackage{tikz-qtree}     \usepackage{tikz-qtree-compat}     \usetikzlibrary{positioning}     \usepackage{philex}          \begin{document}          \begin{frame}{Contraintes sur le mouvement}          \lb{}{La fille que j'aidais aime ce que tu détestes.}     \begin{center}     \begin{tikzpicture}[scale=.8]     \tikzset{every tree node/.style={align=center,anchor=north}}% to allow linebreaks          \Tree      [.TP     [.DP          [.DP \edge[roof]; {La fille} ]         [.\node(aidais){CP};  \edge[roof]; {que j'\fbox{aidais}} ] ]     [.T$'$       [.\node(temps) {V\\\Huge\color{blue}?};  ]     [.VP      [.DP \edge[roof]; {\sout{La fille...}} ]      [.V$'$      %[.V \fbox{aime} ]     [.V \node(aime){\fbox{aime}}; ]     [.\node(détestes) {CP};  \edge[roof]; {ce que tu \fbox{détestes}} ] ] ] ] ]          \node (aidais2) [below=.7cm of aidais] {};     \node (aidais3) [right=.2cm of aidais2] {};     \node (temps2) [below=.3cm of temps] {};     \node (détestes2) [below=.7cm of détestes] {};     \node (détestes3) [right=.3cm of détestes2] {};          %\draw[semithick,->] (aidais3)..controls +( west:1) and +(east:1)..(temps2);     %\draw[semithick,->] (aime)..controls +( west:1) and +(east:1)..(temps2);     %\draw[semithick,->] (détestes3)..controls +( west:4) and +(east:4)..(temps2);     \draw[-latex] (aidais3.south) -- (temps.south west);     \draw[-latex] (aime.south) -- (temps.south east);     \draw[-latex] (détestes3.south) -- (temps.south);          \end{tikzpicture}     \end{center}     \end{frame}          \end{document}      And here is the result : ![enter image description here](http://i.stack.imgur.com/acdSe.png) My question is : **What code could draw the arrows to go 'around' the trees-- not through it-- in order to reach the interrogation dot without them to cross each other ?** I've tried many different codes, but I don't really understand what I do, I change the options randomly to discover what they do, but I can't find a way do to it. This is an example amoung many others, and I'm always embarrassed with these arrows. So I'm looking for a solution that could be generalized to similar examples (arrows on trees). And I don't even know where to look for in the tikz documentation. Thanks for your help!


title: How to draw a 3D hexagonal structure with TikZ?

text: What is the best way in TikZ to draw a hexagonal stucture **in 3D**? For example, graphite crystals, honeycombs or stable racks made of hexagonal aligned stiffeners. I already found this nice solution: Drawing hexagons. But this is only for 2D hexagons. Currently I'm just writing down all nodes separately with (x,y,z) coordinates. But this has the disadvantages of being (a) very annoying, (b) connecting lines don't care about the layers (lines don't go "behind" plane 2 if I connect plane 1 and 3, it's just drawn on top). **What is the best way of realizing a _3D_ hexagonal structure in TikZ that takes care of the layers and don't needs all coordinates entered by hand but by an algorithm?**


title: currvita, multibib & scrbook - multibib does not work

text: I need a list of own publications inside a c.v. which is an appendix to my actual document. I'm using `currvita` for a simple c.v. and I'm trying to employ `multibib` as suggested in the `currvita` manual to get the publication list like this (my `.bib` file is called `bibliography.bib`)               \documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof]{scrbook}     \usepackage{multibib}     \usepackage[ManyBibs]{currvita}     \newcites{cv}{Publikationen}     \bibliographystyle{hep}     \bibliographystylecv{hep}          \begin{document}     %lots of stuff and citations     \bibliobgraphy{bibliography}          \begin{cv}{}     \begin{cvlist}{Publikationen}      \nocitecv{cite1,cite2,cite3}      \item \bibliographycv{bibliography}     \end{cvlist}          \end{cv}      \end{document}      The normal bibliography works without a problem and there is no actual error when compiling, but a warning               No file cv.bbl      and the publication list is not created. Why is it trying to look for `cv.bbl`? Or: why is it not created?


title: Spellcheck in LEd editor

text: I'm writing a paper and have some problems with the LEd editor. I need to do a spellcheck (english) and the editor seems to have one built-in. When I click on spellcheck (or press `ctrl`+`f7`) it says "end of spellchecking", without doing it. Can you give me advice how to do this?


title: Caption alignment

text: For my master degree thesis I'm using a quite complicated latex template. The relevant part of the template is here: http://pastie.org/1728702 Probably this wasn't a good idea since I cannot understand how to put the text in the captions just below the "Figure #". The text in the caption is aligned as in the figure in this page: ![enter image description here](http://i.stack.imgur.com/HJ2lN.png) I'm using the _scrbook_ class. I tried to remove the caption package but nothing changed. What am I missing?


How do you put a circle on top of an exponential symbol ![enter image description here](http://i.stack.imgur.com/5MyEt.png)


title: Macro to take {032911} and return 03 29 11

text: It's in the title -- I am looking for a macro to insert spaces. I would like to call `\mycmd{032911}` to get `03 29 11`.


title: How to detect and condition based on hostname

text: How do I construct a conditional statement based on the hostname of the compiling computer in LaTeX? For example:               \ifhostname{mymachine}       \dostuff     \else       \dootherstuff     \fi      Why: I am working with a collaborator on a document that has dependencies on a couple files that are located in different places. I would like the document to automagically detect who is compiling it and use the appropriate file locations.


title: Table footnotes in same line

text: What I need to do: footnotes written (typset) in the same paragraph/line within tabular environment. What I am doing:               \begin{table}[!htb]       \caption{Caption text.}       \label{tab:text}       \begin{ruledtabular}         \begin{tabular}{p}           & \multicolumn{1}{c}{Reference} \\ \cline{2-1}           \textrm{Text} & \colrule           Text & Text & A\footnote{one} B\footnote{Two} & C\footnote{Three} \\         \end{tabular}       \end{ruledtabular}     \end{table}      This yields footnotes on three lines at the bottom of the table > a One > > b Two > > c Three What I am trying to achieve: > a One; b Two; c Three After some search, I stumbled upon `footmisc` package with its `para` option.               \usepackage[para]{footmisc}      This declaration does nothing but causes result above to be centered instead (of ragged to the right). Any suggestions will be much appreciated. **ETA: here is a concrete MWE** ￼               \documentclass[%      reprint,     ]{revtex4-1}     \usepackage{graphicx}     \usepackage{dcolumn}     \usepackage{color}     \usepackage{float}     %\usepackage[para]{footmisc}     %\usepackage{dblfnote}     \begin{document}     \renewcommand{\arraystretch}{1.05}     \begin {table}[!h]     \caption{\label{tab1}     Table.}     \begin{ruledtabular}     \begin{tabular}{ccc}     \textrm{Label}&     \textrm{Value} &\\     \colrule     1 & One\footnote{testl} \\     2 & Two\footnote{test2} \\     3 & Three\footnote{test3} \\     \end{tabular}     \end{ruledtabular}     \end{table}     \end{document}      which compiles to ![enter image description here](http://i.stack.imgur.com/gqF5E.png)


title: Using listing to include only some lines of a file

text: How can I use listings in order to include some lines from a file keeping the numeration right, that is, if I include lines 1-3,8,11-14 they should keep that numeration rather than 1,2,3... Is this possible?


title: Got Error "! Missing $ inserted." when using \includegraphics

text: I use the following code to include a rotated figure but failed because of this error. I found the problem is with `\includegraphics` but I cannot see what went wrong.               \documentclass{article}           \usepackage{graphicx}     \usepackage{rotating}          \begin{document}           \graphicspath{ {D:\Update} }      \begin{sidewaysfigure}     \centering     \includegraphics{figure1.png}     \end{sidewaysfigure}          \end{document}


title: Refering to the same (alphabetically "numbered") footnote more than once

text: Following my previous post concerning the change of numbering in footnote to temporally be alphabetical, I'm trying to merge this with the possibility to refer various time to the same footnote as described here. I tried this :                      %---alpha footnotes             \newenvironment{alphafootnotes}          {\par\edef\savedfootnotenumber{\number\value{footnote}}           \renewcommand{\thefootnote}{\alph{footnote}}           \setcounter{footnote}{0}}          {\par\setcounter{footnote}{\savedfootnotenumber}}                  %---refer to same footnote more than ounce          \newcommand{\footlabel}[2]{%         \addtocounter{footnote}{1}         \footnotetext[\thefootnote]{%             \addtocounter{footnote}{-1}%             \refstepcounter{footnote}\label{#1}%             #2%         }%         $^{\ref{#1}}$%     }          \newcommand{\footrefa}[1]{%         $^{\ref{#1}}$%     }          \newcounter{savefootnote}      But the new `\footlabel` command inside the newly defined environment seems to enter in conflict ( missing number ... treated as zero )? Any help? Another part of my question would be redefining the style of the footnote numbering (that is: obtain _italic_ , alphabetical "numbering" of the footnote) The third and final question is: Is there a package managing all theses footnotes tunings?


title: Biblatex and custom bibtex entries - is it possible?

text: Is it possible to have entries in a bib file with custom @entry types? For example, below I have entries I've created for a legal encyclopaedia and a United Nations document.               @undocument{modeleclaw,             Author = {United Nations Commission on International Trade Law (UNCITRAL)},             Date-Added = {2011-04-11 15:27:46 +0800},             Date-Modified = {2011-04-11 15:44:53 +0800},             Shorttitle = {Model Law},             Title = {Guide to Enactment of the UNCITRAL Model Law on Electronic Commerce},             Year = {1996}}     @encyclopaedia{halsbury,             Chapternumber = {7},             Chaptertitle = {Contract: General Principles},             Date = {31 August 2006},             Date-Added = {2011-04-11 11:22:57 +0800},             Date-Modified = {2011-04-11 11:25:06 +0800},             Encyclopaediatitle = {Halsbury's Law of Australia},             Publisher = {LexisNexis},             Title = {An offer is comprised of particular elements},             Titlenumber = {7.1.460},             Volume = {TLA [7.1.460]},     }      I've been through the biblatex manual but I can't find anything that says I can define my own type. Is it possible? Then, if so, how would I define drivers in the bbx and cbx files to manage the types? I tried creating this as an example but I'm not sure I'm on the right track:               % United Nations Document (undocument)     \DeclareBibliographyDriver{undocument}{%       \usebibmacro{bibindex}%       \usebibmacro{title}%       \setunit{\addcomma\space}%       \iffieldundef{resolutionnumber}{}{\thefield{resolutionnumber}\setunit{\addcomma\space}}%       \iffieldundef{officialrecords}{}{\thefield{officialrecords}\setunit{\addcomma\space}}%       \iffieldundef{committeenumber}{}{\thefield{committeenumber}\setunit{\addcomma\space}}%       \iffieldundef{sessionnumber}{}{\thefield{sessionnumber}\setunit{\addcomma\space}}%       \iffieldundef{meetingnumber}{}{\thefield{meetingnumber}\setunit{\addcomma\space}}%       \iffieldundef{agendaitem}{}{Agenda Item \thefield{agendaitem}\setunit{\addcomma\space}}%       \iffieldundef{supplement}{}{Supp No \thefield{supplement}\setunit{\addcomma\space}}%       \iffieldundef{undocnumber}{}{UN Doc\thefield{undocnumber}\setunit{\addcomma\space}}%       \iffieldundef{date}{}{\mkbibparens\thefield{date}\setunit{\addcomma\space}}%       \iffieldundef{annex}{}{\thefield{annex}\setunit{\addcomma\space}}%       {\printlist{publisher}\setunit{\addcomma\addspace}}%     }               % ENCYCLOPAEDIA (encyclopaedia)     \DeclareBibliographyDriver{encyclopaedia}{%       \usebibmacro{bibindex}%       {\printlist{publisher}\setunit{\addcomma\addspace}}%       \usebibmacro{encyclopaediatitle}     }      When I compile my tex file I get this:                    Package biblatex Warning: No driver for entry type 'misc'.     (biblatex)                Skipping entry 'modeleclaw' on input line 146.      I'm not sure if I'm going about this the right way or not.


title: Define word with mixed case letters (upper/lower)

text: I am using some acronym-like words in my text that actually do not have a phrase but have a standard way of writing, like a "brand". (for ex. MyWorD) Is there a library for this or a way to define mixed case words and use them in text? Like `\formattingcommand{myword}` resulting in `MyWorD`. Something similar to the `\newacronym{myword}{MyWorD}{boohoo...}` glossary entry definition would be really nice. Edit: Thanks to MattAllegro's answer I tried some things with the `acronym` package. My problem was that I wanted to print my nomenclature so didn't want to have empty definitions for these mixed-case words. The other thing was to somehow avoid the first time printing of `definition (acronym)` format. The second problem can be avoided by the `\acrshort{myword}` command. And since I am lazy, I wrapped it into a shorter command with `\newcommand{\glss}[1]{\acrshort{#1}}`. The first one I solved by splitting the glossary in two files. One for the words with definitions which is going to be printed, and one for the mixed- case words. If there is a nicer, cleaner way to do it I would love to know about it.


title: What is the best symbol for vector/matrix transpose?

text: What is the best or most popular symbol for vector/matrix transpose? I have used simply `^T`, for example `$c^T x$`. I think it is ugly, mainly because it is a little too big compared with vector variables usually denoted by lower- case characters. Can you suggest a better one?


title: How can I annotate a figure with lines and circled numbers

text: I want to replace static image annotations with annotations in LaTeX to have them be all the same size. I always use figures and sometimes subfigures. How would I get the same lines as in the image with numbers as in http://tex.stackexchange.com/a/7045/50965 ? Can I resuse that circled code? ![annotated image](http://i.stack.imgur.com/SjiK4.jpg) I tried and searched for some tikz solutions but am not familiar with how I would approach this. The code of this specific image (in a sub figure) is:               \documentclass{scrbook}     \usepackage{tikz}          \begin{figure}[tph]     \hspace{5mm}\subfloat[figure 1 description]{%     \begin{minipage}[b][1\totalheight][c]{0.4\columnwidth}%     \noindent \begin{center}     \includegraphics[width=1\columnwidth]{path/To/Image}     \par\end{center}%     \end{minipage}                    }\hfill{}\subfloat[mentioned figure from question]{\noindent \begin{centering}     \begin{minipage}[b][5.5cm][c]{0.4\columnwidth}%     \noindent \begin{center}     \includegraphics[width=1\columnwidth]{path/To/Image}     \par\end{center}%     \end{minipage}     \par\end{centering}                    }\hspace{5mm}          \protect\caption{de}               \end{figure}


title: Is it possible to have hyphenations in \underlined{text}?

text: In a document I was writing, I had some really long captions and I wanted to emphasize the important parts in them. I tried to use `\underline{}` but no hyphenation was used at both the caption and at the list of figures. So I switched to `\textbf{}`. So, as the title states, is it possible to have hyphenations in underlined text? If not, why is that so?


title: How to write a single Hiragana character in latex

text: I've run out of letters and I would like to use the Hiragana ''ro'' in a latex document. How can I produce it in the simplest way?


title: Same indentation of itemize and itemize in columns

text: How can I get the indentation to be the same for normal itemize and itemize in columns? Like in the example code below, the itemize in a column is less indented.               \documentclass{beamer}          \begin{document}          \frame {       \begin{itemize}         \item foo         \item bar         \item baz       \end{itemize}     }          \frame {       \begin{columns}         \column{.5\textwidth}           \begin{itemize}             \item foo             \item bar             \item baz           \end{itemize}         \column{.5\textwidth}           A picture       \end{columns}     }          \end{document}      ![code preview](http://i.stack.imgur.com/G2L6P.png) Is there a simple solution?


title: nomencl package and vertical bar |

text: I am using the `nomencl` package; however, it seems that my nomenclature entries which contain a vertical bar | in math mode are not handled properly. Is this a known issue, and is there a suggested workaround? As an example, the following entry in my document               \nomenclature{$s(A)$}{equivalent to $|A|$}      makes it into the .nlo file, but not the .nls file.


title: TikZ Aperture Problem

text: I try to generate a TikZ graphic for the visualization of the aperture problem. What I am looking for is something like shown in this picture: ![aperture problem](http://stoomey.files.wordpress.com/2008/04/untitled1.jpg?w=450) I tried to search for something similiar, but couldn't find anything suitable. May I ask for your help?


title: Margin notes *and* footnotes in a table environment

text: I am working on a translation. The original text has marginal notes, and I also need footnotes for commentary. Some of it needs to be tabulated in big two-column tables. So I use `\longtable` because   1. it spreads tables nicely on several pages,    2. it accommodates footnotes (something table does not). Problem: `\marginpar` doesn't work with `\longtable`, so the marginal notes won't appear when called, but show up the next time you use `\marginpar` in plain text thus shifting the whole marginal notes. How can I get marginal notes while in a table environment? Secondary problem: it would be very nice to use footnotes in marginal notes (that would be counted as a normal footnote, and appear at the bottom of the page).


title: Width of \chapter section with titlesec

text: I use the `titlesec` package for styling the sectioning commands. But I have a problem with the chapter width or right margin: ![Chapter Title](http://i.stack.imgur.com/g7VBw.png) The width of the text should only reach to the blue line, "Organisation" and "Display" should break. I know `\\\` is an option, but in the footer is also the chapter name referred: ![enter image description here](http://i.stack.imgur.com/2oHoi.png) So, if I use `\\\`, the text in the footer is: "Konzepte für die semantische"... The styling ist:               % > formats: \chapter     \titleformat{\chapter}[display]%     {\usekomafont{chapter}}%     {\vspace{-8em}\raggedleft{%         {\color{ctcolorchapterline}%             \rule[-5pt]{2pt}{5cm}}\quad%         {\color{ctcolorchapternum}             \fontsize{60}{60}\selectfont\thechapter}%         }%     }%     {-2.1em}%     {\raggedright}%     [\phantomsection]


title: Lyx error: Could not find bind file: ertWarning

text: I use Lyx 2.0.2 under Linux and I've never hat problems. Since yesterday Lyx does not recognize short cuts. Every time when I try to configure Lyx using the Lyx gui (tools - new configuration) I get the following message: > Fehler beim Lesen der Konfigurationsdatei ert. Bitte prüfen Sie Ihre > Installation. I've already deinstalled and installed Lyx but the problem is still there. If I call Lxy on the console with the dbg-Option 4 (key), I obtain the following output: > lyx -dbg 4   >  Festlegen des Test-Levels auf 4   >  Testen von `key' (Verarbeitung von Tastatureingaben)   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777236, > Right   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777234, > Left   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777235, > Up   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777237, > Down   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777217, > Tab   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777217, > Tab   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777217, > ISO_Left_Tab   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777218, > BackTab   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777232, > Home   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777233, > End   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777238, > Prior   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777239, > Next   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777220, > Return   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777223, > Delete   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777219, > BackSpace   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777221, > KP_Enter   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777236, > KP_Right   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777234, > KP_Left   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777235, > KP_Up   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777237, > KP_Down   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777232, > KP_Home   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777233, > KP_End   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777238, > KP_Prior   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 16777239, > KP_Next   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 > > ## Could not find bind file: ertWarning: Es konnte keine Tastenkürzeldatei > gefunden werden. > > Fehler beim Lesen der Konfigurationsdatei   >  ert.   >  Bitte prüfen Sie Ihre Installation.   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 76, l   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(635): Init key to 76, l   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1   >  ../../../../src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 What do I have to do exactly in order to check the installation and to solve the problem?


title: How to use/define a customized parameter?

text: I´m generating any grpahs... and I´m playing with any linewidhts values so I would like to type on the beginning of the .TEX a line similar to               width1=0.1cm     width2=0.15cm     width2=0.20cm      to avoid chaging all the values of linewidth trough all the lines in the graphs. So, I would change only, and I view all the lines with that width.                  width1=0.32cm       How can I do this? I suposse this is easy, but I can´t find the answer. -- That´s my doubt --- and in the next lines I type my .tex file, where I can´t reach a good way to do an amount as a parameter               \documentclass[12pt,a4paper]{article}     \usepackage[top=2.5cm, left=3.5cm, bottom=2.5cm, right=2.5cm]{geometry}  % Margenes de la normativa TFG          \usepackage{setspace} % para que no afecte el interlineado a las notas de pié de página     \setstretch{1.5}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[spanish]{babel}     \usepackage{amsmath,amsfonts,amssymb,latexsym}     \usepackage{eurosym}     \usepackage{graphicx}     \usepackage{verbatim}          \usepackage{hyperref}     \hypersetup{colorlinks=true, urlcolor=blue}          \usepackage{xcolor}     \usepackage{mathpazo}       % Fuente MathPazo     \usepackage{datetime}       % paquete para configurar formato de fecha y hora     \settimeformat{ampmtime}     \renewcommand*{\noon}{\pmname}     \spanishdecimal{.}     % ----------------------  PSTRICKS ---------------     \usepackage{pstricks}     \usepackage{pst-plot,pst-3dplot,pst-node,pst-tree,pst-grad,pst-coil,pst-text,pst-3d,pst-eps,pst-fill,pstricks-add,multido}     % -------- Paquetes de pst-all \usepackage{pst-all}   paquete pstricks para las figuras en postcript     \usepackage{pst-node}     \usepackage{pst-eps}     \usepackage{pstricks-add}     % ---- Fin Paquetes de pst-all          w1=0.085cm          (HERE I WANT TO DEFINE A PARAMETER)     w2=0.1cm                (HERE I WANT TO DEFINE A PARAMETER)     w3=0.15cm             (HERE I WANT TO DEFINE A PARAMETER)     w4=0.30cm            (HERE I WANT TO DEFINE A PARAMETER)               \begin{document}     \psset{xunit=1cm,yunit=1cm}       \begin{pspicture}(-0,-0)(7.28,4.5) %\malla      \psframe[fillcolor=lightgray,fillstyle=solid,linestyle=none](-.0,0)(7.28,4.5)           \rput(1,1){\circlenode{1}{\textcolor{black}{1}}}      \rput(1,3){\circlenode{2}{\textcolor{black}{2}}}      \rput(3,2){\circlenode{3}{\textcolor{black}{3}}}      \rput(3,4){\circlenode{4}{\textcolor{black}{4}}}      \rput(5,1){\circlenode{5}{\textcolor{black}{5}}}      \rput(5,3){\circlenode{6}{\textcolor{black}{6}}}      \rput(7,2){\circlenode{7}{\textcolor{black}{7}}}           \ncline[linewidth=w1]{-}{1}{2}\naput{\scriptsize $2$} (IN THIS LINE I WANT TO USE A PARAMETER)      \ncline{-}{1}{3}\naput{\scriptsize $6$}      \ncline{-}{1}{4}\naput{\scriptsize $4$}      \ncline{-}{1}{5}\naput{\scriptsize $6$}      \ncline{-}{2}{4}\naput{\scriptsize $7$}      \ncline[linewidth=w2]{-}{2}{3}\naput{\scriptsize $3$} (IN THIS LINE I WANT TO USE A PARAMETER)      \ncline[linewidth=w3]{-}{3}{4}\naput{\scriptsize $5$} (IN THIS LINE I WANT TO USE A PARAMETER)      \ncline{-}{3}{5}\naput{\scriptsize $4$}      \ncline{-}{3}{6}\naput{\scriptsize $9$}      \ncline{-}{3}{7}\naput{\scriptsize $3$}      \ncline{-}{4}{6}\naput{\scriptsize $3$}      \ncline[linewidth=0.12cm]{-}{4}{5}\naput{\scriptsize $4$}      \ncline[linewidth=0.12cm]{-}{5}{6}\naput{\scriptsize $6$}      \ncline{-}{5}{7}\naput{\scriptsize $8$}      \ncline[linewidth=0.12cm]{-}{6}{7}\naput{\scriptsize $4$}           \nccurve[angleA=335,angleB=255,linewidth=0.12cm]{-}{1}{7}\naput{\scriptsize $4$}           \end{pspicture}     \end{document}


title: Cut-Off Subfigure Captions

text: I created a figure with four subfigures (two rows of two subfigures) where each subfigure has a caption below the subfigure. Strangely, the captions for the subfigures in the top row are partially covered by the subfigures in the second row. I can't seem to figure out why that is or how to fix it. An example of the code is given below.               \begin{figure}[ht!]     \begin{center}     \subfigure[$k$~$=$~0.1]{\label{fig:1}\includegraphics[scale=0.4]{Fig1}}     \subfigure[$k$~$=$~0.5]{\label{fig:2}\includegraphics[scale=0.4]{Fig2}} \\     \subfigure[$k$~$=$~1.0]{\label{fig:3}\includegraphics[scale=0.4]{Fig3}}     \subfigure[$k$~$=$~2.0]{\label{fig:4}\includegraphics[scale=0.4]{Fig4}}      \end{center}     \caption{Plots.}     \label{fig:Figs}     \end{figure}


title: Setting paths for different types

text: I wonder if it is possible to set several paths for different types of images, that im including in my document. Currently im using               \graphicspath{{./Figures/}}      for saying that, it should use figures folder for includes. But now i have diagrams that are saved as pdf and they are in ./diagrams . Is there any posibility to define several paths as variables that i can use them later?


title: Xypic problem: can't find file

text: I'm trying run pdflatex, but I get this one very unusual error. I've downloaded xypic from CTAN, and it still seems that pdflatex is unable to find some documents that are supposedly related to that package (I did texhash). Here's the output:                Xy-pic version 3.8.4 <2010/10/11>      Copyright (c) 1991-2010 by Kristoffer H. Rose <krisrose@tug.org>      Xy-pic is free software: see the User's Guide for details.          Loading kernel: messages; fonts;     kpathsea: Running mktextfm xydash10     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input xydash10     This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)               kpathsea: Running mktexmf xydash10     ! I can't find file `xydash10'.     <*> ...ljfour; mag:=1; nonstopmode; input xydash10          Please type another input file name     ! Emergency stop.     <*> ...ljfour; mag:=1; nonstopmode; input xydash10          Transcript written on mfput.log.     grep: xydash10.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input xydash10' failed to make xydash10.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font \xydashfont=xydash10 not loadable: Metric (TFM) file not found.     <to be read again>                         \gdef      l.159 \xydef@\xydashl@                           {\fontdimen6\xydashfont}     ?


title: How to make footnote bibliography?

text: I want the citation in the footnote of the page it is being cited. How can I do it?


title: How to reference an equation without knowing the number for it?

text: I have done this with figures before using.               \ref{}      Where you give the image an associated name so that it does not matter whether you change up the order, (i.e. latex will automatically number your referenced figure correctly). I am sure it is possible for equations but I have not been able to find out how to do it. This would be very handy to be able to achieve as I am often dealing with lots and lots of equations and moving them about. Here is a snippet of what I have been writing for my equations:               \begin{align}     \begin{split}     E_{k}={m  {\langle v^2 \rangle} \over 2 } = \frac{3k_{B}T}{2}     \end{split}     \end{align}       I tried messing about with other ways but could not find the right way to use `\ref{}` or similar to get the desired result! Can anyone advise?


title: For a group of symbols, how to get column headings(description) in the next page?

text: This question is with reference to the answer provided in How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc? I am able to achieve different styling for different categories. Sorting is also done similar to the way illustrated in the figure. ![enter image description here](http://i.stack.imgur.com/zedS2.jpg) However what is happening is that if a category starts on one page and continues over the next page headings do not appear in the next page. I want to be able to get headings in the next page if the contents do not fit in one page. Please suggest a way to be able to get headings in a new page.


title: Include latex macros in eps/pdf images

text: Is it possible to have latex macros in eps (or some other format) images instead of using fixed text? I want to be able to change some variable names that are also used in figures.


title: Inserting a single hyperlink in LaTeX

text: I want to insert a single URL that is clickable in the resulting PDF file I produce, but when I use the `hyperref` package, that turns every use of `\ref`, the table of contents, etc. into a hyperlink in the document. I just want the one URL to be a hyperlink. Any simple solutions?


title: Colon in bibliography keys incompatible with babel, biblatex and tex4ht

text: Keys are labeled as `author:year` in my BibTeX file. For example, `@article{John:2000, author={John}, year={2000}, ...}`. This scheme works well with `pdftex`, `biblatex` and `mk4ht oolatex`. But if in addition `babel` is loaded with the `french` option, then `mk4ht oolatex` cannot find any BibTeX key. In the example below it looks for `John:{}2000` instead of `John:2000`:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[french, american]{babel}     \usepackage{csquotes}     \usepackage[backend=biber, style=verbose]{biblatex}     \bibliography{sample.bib}          \usepackage{filecontents}     \begin{filecontents}{sample.bib}     @article{John:2000,     author={John},     title={Title},     journal={Journal},     year={2000}}     \end{filecontents}          \begin{document}     La première phrase \autocite [100] {John:2000}.     \end{document}      By running:               $ latex foo     $ biber foo     $ mk4ht oolatex foo      I get this warning:               LaTeX Warning: Citation 'John:{}2000' on page 1 undefined on input line 19.      My question is: whose bug is this: `tex4ht` or `babel`? Any ideas as to how to avoid it without changing my BibTeX keys?


title: pdfx package gives me Option clash for package hyperref

text: I'm using the following package for convert a PDF to a PDF/A format               \usepackage[a-1b]{pdfx}      When I compile, I receive the following error. > "Option clash for package hyperref" I've searched within TEX but until now I didn't find any valid solution. I compile with Mac OS Tex in TexShop. The typeset is set as LaTex. Thank you in advance. _Edit_ Here a small example of what I'm trying to achieve               \documentclass[english,lof,lot]{thesis}      \errorcontextlines=9          \RequirePackage[utf8]{inputenc}     \RequirePackage[T1]{fontenc}          \usepackage{lmodern}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Added Packages     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage{amsmath}     \usepackage{mathtools}     \usepackage{caption}     \usepackage{algorithmic}     \usepackage{array}     \usepackage{amssymb}     \usepackage{longtable}     \usepackage{booktabs}     \usepackage[figuresright]{rotating}     \usepackage{float}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % PDF/A     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage[a-1b]{pdfx}          // begin document here...      where thesis.cls is a document class that contains the following               \RequirePackage{ifpdf}     \ifpdf       \RequirePackage[pdfpagelabels]{hyperref}     \else       \RequirePackage{hyperref}     \fi      Since I didn't write the class, I would like to know if how is it possible to overcome the error. When I try to compile with this configuration, the error is the following > The package hyperref has already been loaded with options: [pdfpagelabels]. > There has now been an attempt to load with option [pdftex,pdfa] Adding the > global options:pdfpagelabels,pdftex,pdfa to your \documentclass declaration > may fix this.


title: Common bold command for Latin and Greek letters

text: Following this post, Bold math: Automatic choice between \mathbf and \boldsymbol for Latin and Greek symbols?, I created the command               \newcommand{\vect}[1]{\boldsymbol{\mathbf{#1}}}      and include               \usepackage{bm}.      In a previous paper I wrote this worked great. The greek symbols were bold and the normal Latin letters were bold roman (not italic). I am writing my thesis now with a template provided by our department and using this command doesn't work (you use the command and everything shows up non-bold, non-italics roman.) Removing the \mathbf from the command so it is just               \newcommand{\vect}[1]{\boldsymbol{#1}}      makes it so it at least bolds everything, but the Latin letters are now italicized. The only possible clue I see in the log file is a warning that say "There are no bold math fonts." Any ideas on where to look to see what would cause this?


title: insert images into a tabular environment

text: I have 8 images, in which i want two images across, by 4 images down. I am trying to do this with the following code:               \begin{figure}[htb]     \centering       \begin{tabular}{@{}cccc@{}}         \includegraphics[scale=0.4]{../random_forest/TP-Pred/program/error1.jpg}          \includegraphics[scale=0.4]{../random_forest/AFP-AFP-like/program/error1.jpg}         \includegraphics[scale=0.4]{../random_forest/TP-Pred/program/error1.jpg}          \includegraphics[scale=0.4]{../random_forest/AFP-AFP-like/program/error1.jpg}           \multicolumn{4}{c}{\includegraphics[width=.23\textwidth]{example-image-a}}       \end{tabular}       \caption{A plot of the random forest error split culmulatively over the 4 sets of features}     \end{figure}      however all 4 images appear on the same horizontal line. How do I get them to appear like:               image 1      image 2     image 3      image 4     image 5      image 6     image 7      image 8      thanks in advance.


title: texify or latexmk?

text: MiKTeX 2.9 comes with both and they apparently do the same thing. I was wondering what the difference between them is (if any) and which one is preferable for large documents.


title: Producing printable pdfs

text: I've finished writing my thesis, and it is now at our University print service. However, I got a call from the today, saying that they can't print my thesis, because of some errors (don't know which ones, they couldn't specify). I can print it on our lab's printer (HP Color LaserJet 4700dn). So, my question is: what is the right workflow in order to produce printable PDFs? My setup is:   * Mac OS X 10.6.8, running latest MacTeX-2011   * `pdflatex` to produce the final PDF      * packages: `microtype`, `graphicx`, `xcolor`, `biblatex`, `fourier`   * OmniGraffle 5 to draw figures      * save as EPS     * `eps2pdf` to convert them to PDF   * `ggplot2` to produce graphs and other figures built on some external data     * R version 2.13.1     * this snippet produces PDF:                          ggsave(file=image.name,dpi=150,width=8,height=4.9443)         embedFonts(image.name,options="-dEmbedAllFonts=true -dPDFSETTINGS=/printer")              * some graphs contains throusands of points and transparent layers If I use `pdf2ps` to produce a PS file, converting the PS file back to PDF through Acrobat Distiller's "Press Quality" preset gives me the following, useless, error:               %%[ Error: ioerror; OffendingCommand: imageDistiller ]%%          Stack:     -dict-     -mark-     -dict-     1894          %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%     %%[ Warning: PostScript error. No PDF file produced. ] %%      My second question would be: How to debug these issues? How to find where the problem in the workflow may be?


title: How to align TikZ figures in subfigs

text: I use subfig to show an array of tikz figures. Unfortunately these figures are sometimes of different height, so they don't show up properly aligned: ![enter image description here](http://i.stack.imgur.com/unShs.png) I'd like to see all nodes on the same line. I'm new to TikZ, so I'm wondering if it is possible to give all figures a minimum height. I tried to set a bounding box using `\useasboundingbox (0,0) rectangle (5,2);` but it was difficult for me to estimate the correct values. Is there a way to calculate that, or is it possible to render an invisible phantom edge (with label) that gives the figure a) the same height as figure b)? Or is there a way to do the alignment on subfig's side? Below is a MWE:               \documentclass{article}     \usepackage{subfig}     \usepackage{amsmath}     \usepackage{tikz}          \usetikzlibrary{arrows}     \tikzstyle{state}=[circle,thick,draw=black!75,fill=black!20,minimum size=6mm, text=black]          \begin{document}               \begin{figure}     \centering     \subfloat[In-only]{\label{fig:in}        \begin{tikzpicture}[node distance=2.8cm, bend angle=35,auto]           \node [state] (v1) at (1,0) {$D$};           \node [state] (v2) at (4,0) {$N$};           \draw (v1) edge [<-, bend left] node {$M_\text{in}$} (v2);         \end{tikzpicture}     }     \quad     \subfloat[In-only]{\label{fig:in}        \begin{tikzpicture}[node distance=2.8cm, bend angle=35,auto]           \node [state] (v1) at (1,0) {$D$};           \node [state] (v2) at (4,0) {$N$};           \draw (v1) edge [<-, bend left] node {$M_\text{in}$} (v2);           \draw (v1) edge [->, bend right] node {$M_\text{out}$} (v2);         \end{tikzpicture}     }          \end{figure}     \end{document}


title: Where can I find out what various hyperref options do?

text: Where can I find a description of `hyperref` options, deeper than the one of the manual? I do not understand the meaning of several options. For instance, what is "redefines LaTeX internals" (option `implicit`), or "use guessable names for links" (option `hypertexnames`)?


title: Bold text in newenvironment

text: I want to define my own environment, like               \newenvironment{question}     {\begin{tiny}}     {\end{tiny}}      That may not make much sense, but it works. How can I do the same with bold font?


title: Curved waved lines with TikZ

text: I'm trying to write a code for Feynman diagrams with TikZ (I know it is a common subject in the forum). I found very useful posts. However, I would like to draw a curved waved line               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{decorations.pathreplacing,decorations.markings,snakes}          \begin{document}          \begin{tikzpicture}[thick]       \path [draw=blue]         (-4,0) -- (-2,0) -- (2,0) -- (4,0);       \draw[draw=blue,snake=coil, segment aspect=0] (2,0) arc (0:180:2cm);     \end{tikzpicture}          \end{document}      The above code just draw a solid line, no waved. Can anyone help me solve this weird behaviour?


title: KOMA-Script typearea and DIV

text: I was going through the `KOMA-script Documentation` and I found on page 32 a nice table with the `type area` according to the number of `DIV` you set up your document. ![enter image description here](http://i.stack.imgur.com/5vC1H.png) Now, I **MUST** be doing something wrong, because when I set my MWE with different `DIV` values, I get different `\textheight` and `\textwidth` than the one in the KOMA documentation.               \documentclass[a4paper,BCOR=0mm,DIV=12]{scrbook}          \usepackage{layouts}          \begin{document}          \printinunitsof{mm}{\pagevalues}          \verb|\marginparwidth|: \printinunitsof{mm}\prntlen{\marginparwidth}          \pagediagram     \end{document}      ![enter image description here](http://i.stack.imgur.com/ewTMh.png) Furthermore, I took the trouble to print the pages and then measure the distances. None of them seem to agree (some of them are off for a couple of mm, other are off by way more). So, my questions are:   1. How did the guys from the KOMA script documentation arrived to these values shown above?    2. If they did it right (which I'm positive they did), why this doesn't hold true on the printed version?   3. Why are the values I obtained from the `layouts` package is not consistent with the KOMA documentation ---or the printed version, for that matter?


title: How can I make Hindi pdf document in Latex without transliteration?

text: I want to write a letter in Hindi. I want to use LaTeX to create the PDF document in Hindi. I don't want to have transliteration from English to Hindi. How can I do this?


title: TeXLive and MikTeX behave differently in handling BOM

text: It is a followup of my answer that has been converted to comment (click) posted several decades ago. Shortly speaking, MikTeX does not remove leading BOM but TeXLive does as shown in the following outputs. The leading BOM effect can be clearly seen by comparing the first line of the code, i.e., `using System` produced with MikTeX and TeXLive.               % The filename is MikTeX-VS-TeXLive.tex          \documentclass[preview,border=12pt]{standalone}          \usepackage{listings,xcolor}     \lstset     {         language={[Sharp]C},         backgroundcolor=\color{cyan!20},         basicstyle=\scriptsize,         keywordstyle=\color{blue},         identifierstyle=\color{red},         breaklines=true,     }               \begin{document}     \lstinputlisting{program.cs}     \end{document}      ## With MikTeX ![enter image description here](http://i.stack.imgur.com/GcMsk.png) ## With TeXLive ![enter image description here](http://i.stack.imgur.com/0LTPw.png) If you are "lazy" to type, here (click) you can download the complete files which are `MikTeX-VS-TeXLive.tex` and `program.cs` used above. No virus attached but no warranty as I don't install any anti-virus so far. :-) ## Questions: What should I do to make MikTeX do the same thing as TeXLive does but without having to use `literate`? Bonus question: Is the source code of `pdflatex`, `xelatex`, `latex` used for MikTeX exactly identical to that of for TeXLive? If yes, why do they behave differently? If the source code is different, why are they made different?


title: Listings and multiline labels

text: I wish a multiline label in the `lstlisting` environment. I would like to reference more than one line within the same listing. Can you help me to find a solution? I have found this link but this only helped me to refer to a certain line within the listing.


title: How can I align text across two nodes in a Tikzpicture?

text: Consider the following code:               \begin{tikzpicture}     \node[align=left,font={\small\bfseries}] at (-30 pt, 30pt) {99.99\%        $500 \mu s$};     \node[align=left,font={\small\bfseries}] at (-30 pt, 10pt) {Median Latency $5 \mu s$};     \end{tikzpicture}      How can I make the `500 us` align with the `5 us` in the rendered image? More specifically, I want it to align almost exactly like I have it in the plain text in the code above, with the left edge of `99` aligning with the left edge of `Median`, as well as having the numbers line up. I tried using `&` as I would when trying to align two equations, but it just causes an error.


title: Turning off/on numbering when using mcode

text: I have an appendix with a full Matlab script, quoted verbatim, numbered and coloured as I want. However, I want to quote about 10 lines of it as a figure in the body of my report, and since I will not quote any specific line numbers, they do not need to be included (the numbers also look nasty next to a table with a wrapped caption, where you get the 1 essentially sitting on the hyphen!) At the moment, I have numbered turned on in the package options, and cannot seem to turn it off for the extract. Alternatively, I could take the numbered out of the package options and then tell it to number the appendix.                   \documentclass{article}     \usepackage[numbered,breaklines=true]{mcode}          \begin{document}          some body     \begin{figure}[h]                 \begin{lstlisting}[language=Matlab,breaklines=true]         % loop over different monosaccharide in minimal media         offset = 2;         for j = 1:length(carbonSourceList)         disp(['Current carbon source in media is: ', carbonSourceList{j}]);         %fprintf('\n');         lbColumn = (j - 1) * offset + 2;         %ubColumn = (j - 1) * offset + 3;         ubColumn = lbColumn + 1;         currentFBAsettings = allFBAsettings(:, [1 lbColumn:ubColumn]);         tempModel = batch_modify_flux_bounds(currentFBAsettings, origModel);         \end{lstlisting}         \label{Extract}           \caption{Extract from FBA Matlab script showing looping over different carbon sources}      \end{figure}      more body     \newpage     \appendix     \onecolumn     \small     \newpage     \section{MATLAB FBA Script, quoted verbatim}     %\lstinputlisting[language=Matlab,breaklines=true]{ATCC29149_FBA_all_v4_3.m}     \begin{lstlisting}[language=Matlab,breaklines=true]         % loop over different monosaccharide in minimal media         offset = 2;         for j = 1:length(carbonSourceList)         disp(['Current carbon source in media is: ', carbonSourceList{j}]);         %fprintf('\n');         lbColumn = (j - 1) * offset + 2;         %ubColumn = (j - 1) * offset + 3;         ubColumn = lbColumn + 1;         currentFBAsettings = allFBAsettings(:, [1 lbColumn:ubColumn]);         tempModel = batch_modify_flux_bounds(currentFBAsettings, origModel);         \end{lstlisting}     \label{FBAscript}     \end{document}      This produces both with numbers. When I tried putting numbered=False as a parameter, it started throwing up error messages about breaklines, which works when a 'numbered' parameter is not included in the \lstinputlisting options.


title: pgfplots contour example error

text: I'm reproducing the following example from pgfplots manual.               \begin{tikzpicture}     \begin{axis}[view={0}{90}]     \addplot3[contour gnuplot]     {x*y};     \end{axis}     \end{tikzpicture}      But this code produces the following error:               Package pgfplots Error: sorry, plot file{Example_contourtmp0.table} could not be opened.      I would highly appreciate if you point me what I'm missing. Thanks P.S. I'm using MikTex 2.9 on Windows 7. **Edit** Following @hpesoj626 guidelines, I got the following error message. ![enter image description here](http://i.stack.imgur.com/77gkh.png)


title: Parskip: Suppressing parskip in some places

text: I use the package `parskip`, but want to suppress the parskip in some places, i.e. after headings inserted by a specific macro. A negative `vspace` doesn't work, since `parskip`'s spacing can stretch. The only workaround I found is using `\\\` instead of a paragraph, but that feels wrong. Is there a better way?


title: .eps file generated by matlab not centered correctly

text: Everything is all right before I updated all my MiKTeX package to latest version. But after that, I find that all `.eps` file generated by Matlab cannot be shown correctly. For example. I use Matlab to plot sin(n)               n = 1:0.1:50;     plot(n, sin(n));      And I got the figure like this. ![matlab figure](http://i.imgbox.com/adxNeWyk.png) I use Matlab 2013a(tested in 2011b as well). I save this figure by `File-> Save As...-> test.eps`. But when I use LaTeX to generate `.pdf` file with this piece of code               \documentclass[a4paper]{article}     \usepackage{graphicx}     \begin{document}     test1     \begin{figure}      \begin{center}       \includegraphics[height=140mm]{test.eps}      \end{center}     \end{figure}     test2     \end{document}      I use xelatex to compile my `.tex` file, and got a pdf like this ![.eps shown at wrong position](http://i.imgbox.com/aczCFLYq.png) The `.eps` file is shown at wrong position. "center" seems to be useless. I have done other tests, which prove that `.eps` file generated by other software(Word, Adobe Acrobat) can be shown correctly. Therefore, I think the problem may lie in Matlab. Perhaps the `.eps` file generated by Matlab is not compatible with some tex package. This subtle problem has wasted me much time. Does anybody know why and how to solve the problem ? Thanks!


title: CTAN package 'invoice' on texlive debian/ubuntu

text: I am trying to use the 'invoice' latex package, which is supposed to be in texlive-latex-extra, however I keep getting the error "invoice.sty not found" at my `\usepackage{invoice}` line. I installed texlive-latex-extra and texlive-generic-extra which didn't do the trick, and then I installed texlive-full, but I'm still getting the same error. Has this package been removed from texlive?


title: Curly brace to insert something into an equation? Like an inverted underbrace

text: I have a generic equation, into which I want to "insert" something so that the reader can see what I inserted into the equation and at which point. E.g.               \documentclass{plain}          \begin{document}     \[ f = < x | R y > \]          Insert $\int d^3 p |p> <p|$ = 1 before y.     \end{document}      What I imagine is a horizontal curly brace, which extends underneath the equation, and which has its tip touching a spot just slightly to the left of the `$y$`, while in the brace there is written `$\int d^3 p |p> <p|$`. It would look something like an inverted `\underbrace{foo}_{bar}`, but I have no idea how to achieve something like that. In ASCII art this would maybe look like this:               f = <x | R y >            (1)             __|__        ____|     |____       | Insert here! |


title: Shifting a symbol vertically in Math mode

text: I have a small nitpicking query I have:               $S\sqsubset\mathbf{P}$      and noticed that the `\sqsubset` symbol is a bit too low (off centered) for my liking. Is it possible to shift it up slightly?


title: LaTeX, Sweave: How to get \upshape (or \rm) in lines which display code?

text: How can get an upshape font (\rm) [with Sweave] in lines which display code (such as `1:300 + runif(300)`) below? I tried a couple of things (I found `fontshape=n` online), but they did not influence the result.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[american]{babel}     \usepackage{fancyvrb}          % \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontsize=\small, fontshape=n}     % \DefineVerbatimEnvironment{Soutput}{Verbatim}{fontsize=\small, fontshape=n}     % \DefineVerbatimEnvironment{Scode}{Verbatim}{fontsize=\small, fontshape=n}     \fvset{listparameters={\setlength{\topsep}{0pt}}, fontsize=\small}          \SweaveOpts{engine=R, pdf=TRUE, eps=FALSE, width=5.33, height=3}     \SweaveOpts{strip.white=TRUE, keep.source=TRUE}          \begin{document}     <<label=preliminaries, echo=FALSE, results=hide>>=     options(width=70, useFancyQuotes="UTF-8", prompt="> ", continue="  ")     options(SweaveHooks=list(fig=function() par(mar=c(4, 4, 0.4, 0.7))))     @     <<label=foo>>=     1:300 + runif(300)     @     \end{document}


title: Why is the doi in biblatex a different font?

text: I am using `biblatex-chicago` (with `\autocite`) and a standard BibTeX file. For some reason, the DOI in my references is in a different font from the rest of the entry. Is this normal?


title: \vec{p_{\bar p}} renders strangely

text: When I do:               \vec{p_{\bar p}}      I get: ![strange rendering](http://i.stack.imgur.com/lfS7y.png) instead of ![proper-ish rendering](http://i.stack.imgur.com/M6LRb.png) with the `\vec` shifted over a bit. Why does this happen? (Also, `\vec{\mbox{p_{\bar p}}}` renders identically, even though `\mbox{p_{\bar p}}` looks fine, which clashes with my previous mental model of `\mbox` – I thought that things outside the box don't really affect things inside the box; guess I'm wrong.)


title: Add text at an optional page-break only when breaking occurs

text: I have two tables (created with `tabularx` in the memoir class):               [ Table 1 ]     [ Table 2 ]      They may be adjacent on the same page, or split across two pages like this:               [ Table 1 ]     ---- page break ----     [ Table 2 ]      If and only if a page break occurs between Table 1 and Table 2 I would like to add text of the following sort:               [ Table 1 ]     continued on page M     ---- page break ----     continued from page N      [ Table 2 ]      I am not sure whether it is relevant that the blocks being split are tables, but I thought to include just in case. Is this possible in LaTeX? If so, how? Thanks for reading.


title: What's up with the tag key?

text: Subsection 4.18 of the current `listings` documentation (2013/08/26 Version 1.5b) describes a key called `tag`. That key is used in `lstdrvrs.dtx`, which is a file that ships with `listings` and takes care of predefining languages. More specifically, the `tag` key is used in the definition of the `HTML` and `XML` languages , as follows:               \lst@definelanguage{<languagename>}{       % ...       tag=**[s]<>,%       % ...     }      Why, then, can't I use the `tag` key in the definition of a custom language? For instance, the code below throws the following error:               !Package keyval Error: tag undefined.      My TeX distribution is up-to-date. I don't understand...               \documentclass{article}          \usepackage{listings}     \lstdefinelanguage{mylang}%     {%         tag=**[s]<>,     }          \begin{document}     \begin{lstlisting}[language=mylang]     <b>foobar</b>     \end{lstlisting}     \end{document}


title: What does the font size documentclass option actually do?

text: When using e.g. the `[12pt]` option for a document class like               \documentclass[12pt]{article}      what does (Xe)LaTeX actually do/set? I noticed that for example a `multicols` environment behaves different whether I use the `[12pt]`, or no such option but a `\fontsize{12pt}{14.5pt}\selectfont` at the beginning of the document, with some spaces around headlines being 1 or 2 pt different. (The value of `14.5pt` I got from `\the\baselineskip` from the original `[12pt]` version).


title: Tikz: Using \pgfmathwidth (or \widthof) with \Large text causes crash

text: I;m trying to utilise this method for putting a box around text: http://tex.stackexchange.com/a/20326/17049 But it doesn't work with large text... MWE:               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}         \pgfmathwidth{\Large "Text"}     \end{tikzpicture}     \end{document}      Causes:               ! TeX capacity exceeded, sorry [input stack size=5000].     \@nomath ...e \@font@warning {Command \noexpand #1                                                       invalid in math mode}\fi     l.6     \pgfmathwidth{\Large "Text"}


title: Getting numbers to appear in circles

text: I have a linked question that I previously found on here, but I cannot make any comment yet to post. The link being: Good way to make \textcircled numbers? My question was how could we use this command more then once in our TeX file in different parts of our file without generating an error. Example Code:               \documentclass{article}     \usepackage{tikz}     \newcommand*\circled[1]{\tikz[baseline=(char.base)]{                 \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}     \begin{document}     Numbers aligned with the text:  \circled{1} \circled{2} \circled{3} end.     \end{document}      The error message is this:               ! LaTeX Error: Command \circled already defined.                    Or name \end... illegal, see p.192 of the manual.     See the LaTeX manual or LaTeX Companion for explanation.     Type H <return> for immediate help.     ...          1.222 ...circle,draw,inner sep=2pt] (char) {#1};}}      When removing the `\newcommand*` it shows this next error message:               ! You can't use 'macro parameter character #' in restricted horizontal mode.     <argument> ...ircle,draw,inner sep=2pt] (char {##                                                      1}      Can someone help out please. Thank You so much.


title: Adding a list of bios to the book class

text: I am busy with a document where I need to add an Appendix with a list of names and short biographies (about a paragraph each). I would be happier if I can do that as I describe the person in the relevant chapters save that to a macro and then add at the end. Similar to a Bibliography. Is there a package that can do this or a way to build such macros?


title: Combining packets of different layers

text: I am starting with bytefield package. I'd like to combine differents byte layers, for example, how this: ![First option](http://i.stack.imgur.com/gpH9P.png). Or this: ![Second option](http://i.stack.imgur.com/mojGz.png). Can someone put a similar example? Thanks Best regards Oscar


title: Trouble with contextuals in LuaLaTeX with fontspec - trying to get internal long Ss to work

text: I have been trying to get a project of mine set with internal long Ss. Using fontforge, I have tried to set up the contextual (both [calt] and [cswh]) feature - but when I do, I get no results in the typesetting. I have gone the other direction and set all Ss to be long, but to have the regular one as a final [fina]. This _almost_ works - however, it doesn't regard the symbol as "final" if followed by a punctuation mark. Is there a way to investigate and alter what constitutes Word-Final? It may be that I'm building the internal context wrong for [calt]. I'm make a single substitution of base glyph "s" and substitute glyph "s.long"; then doing a [calt] chaining substition: match "s" with lookahead and pointing it to the single substitution; and the same with match "s" lookahead "s". Any suggestions on what else I should try?


title: Drawing a triangle with rounded corners in TikZ

text: I'm trying to draw a simple equilateral triangle with rounded corners in Tikz. However, I can't get the rounded corners correct. I have the following MWE which draws the triangle:               \documentclass{article}     \usepackage{pgf}     \usepackage{tikz}     \usepackage{xcolor}     \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}          \begin{document}     \begin{tikzpicture}         \draw [fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;     \end{tikzpicture}     \end{document}      I've tried this to get rounded corners, but it has a very strange result:               \documentclass{article}     \usepackage{pgf}     \usepackage{tikz}     \usepackage{xcolor}     \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}          \begin{document}     \begin{tikzpicture}         \draw [rounded corners=10mm,fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;     \end{tikzpicture}     \end{document}      Any idea how to get simple rounded corners for the three corners of the triangle? P.S. I'm not sure which libraries are needed, so I've left them all for now but I know this is probably not needed.


title: Centering xymatrix in equation environment

text: The `xymatrix` diagram does not seem to vertically align when grouped in an equation environment. For example, this code produces the following image (which seems to place the `xymatrix` 2.5em lower than it should be). How can I remedy this without using `\raisebox{2.5em}`?               \[\boxed{     \begin{array}{ccc}     A & B & C \\     A & B & C \\     A & B & C \\     A & B & C \\     A & B & C \\     \end{array}     }     \quad      \boxed{     \begin{array}{ccc}     A & B & C \\     A & B & C \\     A & B & C \\     A & B & C \\     A & B & C \\     \end{array}     }     \qquad\boxed{     \xymatrix@-1pc{     A & B & C \\     A & B & C \\     A & B & C \\     }}     \]      ![Example diagram](http://i.stack.imgur.com/Zun6k.png)


title: Parallel arrows without heads

text: The official tikz-cd is available here. On page 3, one reads: > The following list shows all available arrows. I tried all items in the list, and got error messages for the three items: `dash`, `equal`, and `mapsfrom`. All the other items worked perfectly. As pointed out by egreg in his answer to this question, one can use `[-]` instead of `[dash]`. I tried to use `[=]` instead of `[equal]`, but it didn't work. I got a not very good-looking `mapsfrom` using `[<-|]`. Of course I'd be delighted to have an explanation, but, above all, I'd like to find a way of obtaining the `equal` and `mapsfrom` arrows (mainly the `equal` one). Here is a Minimal Working Example:               \documentclass{article}     \usepackage{tikz-cd}     \begin{document}     \[     \begin{tikzcd}     X \ar[equal]{r} & Y     \end{tikzcd}     \]     \end{document}


title: Footnotemark and footnotetext on different pages

text: Is there a way to permit footnotes to begin on a page subsequent to the one on which they were invoked? If the footnote is separated by no more than 1 page from the invoking line of text, then this is acceptable and even desirable in certain circumstances. Please see the MWE below to get an idea of document layout problems engendered by demanding footnotes be placed on the same page as the invoking text.                   \documentclass{article}         \usepackage{lipsum}         \begin{document}         This line gets broken across two pages in order to accomodate long footnotes. %         Preferably, the second footnote would not obligatorily begin on the %         same page as the first footnote. This would avoid awkwardly large blank pages.%         \footnote{The footnote itself has a footnote.\footnotemark%         \lipsum}%         \footnotetext{\lipsum}%         \end{document}      Note: I do not wish to use endnotes because footnotes avoid the problem of having to flip/scroll to the end of the document. I merely wish to alter the properties of footnote placement to avoid large spaces that are incurred by the requirement for footnotes to be placed on the invoking page. Note: the command `\interfootnotelinepenalty=0` does not resolve the problem as this parameter affects whether a footnote is permitted to break across pages, not whether a footnote is allowed to begin on a different page than the invoking page.


title: Control System diagram

text: I found an example of a control system with TikZ in http://www.texample.net/tikz/examples/control-system-principles/ . I wanted to adapt this example by removing the measurements node and keeping only the loop, but, being a `tikz` newbie, I was unable to get what I want. Any suggestion is welcome.


title: Why aren't my psfrag substitutions occurring?

text: I can't get simple `psfrag` substations go happen, and wonder if I'm missing an option or preference somewhere that will make them work. I'm using LyX to build by document, but I have the same problem in nearly every tool I try. The only way I've been able to get substitutions to happen is by choosing `Typeset > TeX and DVI` in TeXShop using a MWE. But that's not were I build my actual document, and I don't think I can (and probably don't want to) make the equivalent change in LyX, where I actually work. Is there some way I can modify the code below to so that substitutions will occur, using pdflatex (if that's even relevant)?               \documentclass{scrartcl}       \usepackage{pstool}     \usepackage{psfrag}     \usepackage{tikz}          \begin{document}          \psfragfig*{graphA}{         \psfrag{X}{$\epsilon$}     }           \psfragfig{graphA}{         \psfrag{X}{$\pi$}     }           \psfragfig!{graphA}{         \psfrag{X}{Q}     }           \psfrag{X}{Help}     \includegraphics{graphA}          \end{document}


title: winfont.sty not found on mactex

text: I'm trying to build a model here with Sublime + MacTex + Skim But I get this message: winfont.sty not found   1. I looked at the winfont readme (http://repositorios.cpai.unb.br/ctan/fonts/winfonts/README) but I'm not sure whether I'm able to use this with my OS (Mavericks)   2. I located the texmf-local (at least I believe I did) under /usr/local/texlive   3. But I cannot follow steps 2 and 3 now... Can anyone help me? Thanks a lot! Rafael


title: Integer arithmetic in TeX

text: After many years of being merely a regular TeX (LaTeX lately) I started reading little bit more recently. I wrote a small program (very naive) which is suppose to illustrate doing integer arithmetic in TeX.               \message{Please enter the first number:}     \read-1 to \first          The first entered number is \first          \count0=\first          \message{Please enter the second number:}     \read-1 to \second          \count1=\second          The second entered number is \second          \advance\count0 by \count1               Could you please compare the sum of number you have entered and     the number of the page :)     \bye      Is there a simple way to recover the content of register `\count0` on an arbitrary place on the page?


title: Bibliography does not appear after running PDFTexify and Bibtex

text: In my code:               \documentclass{book}     \usepackage[refsection=section]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,       author = {Author, A.},       year = {2001},       title = {Alpha},     }     @misc{B02,     author = {Buthor, B.},     year = {2002},     title = {Bravo},     }     @misc{C03,      author = {Cuthor, C.},      year = {2003},     title = {Charlie},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \section{First}          Some  text \autocite{A01,B02}.          \printbibliography[heading=subbibliography]          \section{Second}          Some  text \autocite{A01,C03}.          \printbibliography[heading=subbibliography]          \end{document}      This is how it shows up: ![enter image description here](http://i.stack.imgur.com/dtxSo.png) I have run PDFTexify countless times and also biber and could not get this to work properly. The bibliography did not print and the `\cite` came out as text instead of numbers. Any help will be greatly appreciated.


title: Normal Greek sigma (and not varsigma) before apostrophe

text: Strangely enough, LaTeX automatically changes a normal sigma (σ) into a "varsigma" (ς) if no proper letter follows. Of course, in most cases that's perfectly fine. It's a bit annoying, though, when there's an apostrophe after the sigma because the sigma isn't supposed to change in this particular case. For example: LaTeX changes my "ἀπολλυσ᾽ οὐχ" into "ἀπολλυς᾽ οὐχ" which I don't like. Has anybody an idea how to fix this? Here's a minimal example:               \documentclass{minimal}     \usepackage[greek]{babel}     \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}     \textgreek{φίλος μ᾽ἀπόλλυc᾽οὐχ ἑκοῦσαν οὐχ᾽ ἑκών.}     \end{document}


title: configuring bibliography with biblatex

text: so, I am trying to configure the bibliography so that it appears chronologically, (so first citation is (1) in the references), it appears within parentheses () instead of brackets [] and it has the following format: this is an example in which I cite some papers (1) and later on (2), References 1. **Ho, DD, Neumann, AU, Perelson, AS, Chen, W, Leonard, JM, and Markowitz, M.** Rapid turnover of plasma virions and CD4 lymphocytes in HIV-1 infection. Nature **373**.6510 (1995), pp. 123–126. so note that the authors are BOLD, last name first, initials without periods, ALL the authors are listed, then comes the YEAR, without parentheses. The article does NOT have " " around it and ideally, the number of the journal is also bold. So far, I have been able to put the authors bold, last name first, initials without periods, all the authors listed and article without " ". BUT, I cannot find a way to have the year immediately after the authors and the parentheses around the citations. And I have NO idea as of how to put the number of the journal bold... Here is my code so far:                   \documentclass[12pt]{article}         \usepackage[style=numeric,subentry,sorting=none,firstinits=true,terseinits=true,url=false,doi=false,isbn=false,maxbibnames=99]{biblatex}              %make the names of the authors bold:         \DeclareNameFormat{author}{%         {\ifthenelse{\value{listcount}>7\AND\value{listcount}<\value         {liststop}}         {}         {\ifthenelse{\iffieldequalstr{usere}{unkauth}\OR\iffieldequalstr         {usere}{unkauthdate}}         {\mkbibbrackets{\bfseries{\usebibmacro{name:last-first}{#1}{#4}         {#5}{#7}?}}}         {\bfseries{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}}}}}                        %puts first the last name and then the first name         \DeclareNameAlias{default}{last-first}         \renewbibmacro{in:}{}         \AtEveryBibitem{%         \clearlist{language}%          }              \DeclareFieldFormat           [article,inbook,incollection,inproceedings,patent,thesis,unpublished]           {title}{{#1\isdot}}         \addbibresource{example}              \begin{document}               this is an example in which I cite some papers \cite{ho1995} and later on                \cite{ahr2004},             \printbibliography         \end{document}      and here is the result: ![enter image description here](http://i.stack.imgur.com/xF7e1.jpg) any help will be greatly appreciated.


title: How to colorize only one of the three branches in a game tree?

text: I am using Osborne's egameps package to create a game tree of an extensive game. How could I colorize only the right branch of the tree branch in the first movement as red. I attempted to use `\iiib[][][linecolor=red]{$X$}{$Y$}{$Z$}`, as I deal with the two-branch situation, but it doesn't colorize anything, and disturbs the entire game tree. What should I do? Here is the code:               \documentclass[12pt]{scrartcl}     \usepackage{pstricks,egameps}      \usepackage{pst-3d}% Above two packages are for extensive games          \begin{figure}[htb]%     \hspace*{\fill}%     \begin{egame}(810,290)     \putbranch(360,250)(3,1){360}     \egalvshift=5     \iiib[][][linecolor=red]{1}{$X$}{$Y$}{$Z$}     \putbranch(0,130)(1,1){90}     \egalhshift=18     \iib{2}{$Y$}{$Z$}[$0,2$][$1,1$]     \putbranch(360,130)(1,1){90}     \egalhshift=18     \iib{2}{$X$}{$Z$}[$0,2$][$2,0$]     \putbranch(720,130)(1,1){90}     \egalhshift=18     \iib[linecolor=red][]{2}{$Z$}{$Y$}[$1,1$][$2,0$]     \end{egame}     \hspace*{\fill}%     \caption[]{An extensive game.}\label{f:se1}     \end{figure}


title: How can I tell Emacs to correctly fill around Latex comments

text: When I edit a .tex file in emacs, I frequently use fill-paragraph. Comments indicated with '%' sometimes wrap correctly, and sometimes they do not. It is not clear to me what is making this fail. Example:               % This is a comment     This is a very very very long line of very very very long text      When I run fill-paragraph, I sometimes get the undesirable:               % This is a comment This is a very very      very long line of very very very long text      I'm using Emacs 23.1.1 in Latex-mode, and the following minor modes are enabled:               Enabled minor modes: Abbrev Auto-Composition Auto-Compression     Auto-Encryption Auto-Fill Display-Time File-Name-Shadow Font-Lock     Global-Auto-Composition Global-Font-Lock Iswitchb Line-Number Outline     Shell-Dirtrack Show-Paren


title: Installing biber for use with TeX Live 2013 on Debian wheezy

text: I recently backported what I think is TeX Live 2013 from Debian testing/unstable to Debian wheezy. The version number is `2013.20140314-1`. This is no longer the most current version in Debian; there is now a `2013.20140408-1`. This was not without difficulty, but that is another story. At least, I thought I had backported it, but it turns out I had overlooked something. When I installed the `texlive-bibtex-extra` package, (which contains the biblatex LaTeX package), I discovered that biber 1.8 was also required. This is in unstable, so I tried to backport it. This is where things went wrong. For reasons unclear to me, biber requires Perl 5.16. According to perlhist, 5.16 was released in May 2012, so relatively recently. Unfortunately, Debian wheezy uses Perl 5.14. In general, updating a basic system component like Perl is not a good idea, so I have not tried to do this, though it is possible it is harmless; I don't know. In any case, I find that I am now stuck. It is possible that I will have to fall back to the TeX Live 2012 packaged for wheezy, which would be annoying. Can anyone suggest a solution or workaround? I know one can do a local install of TeX Live, but would that not be subject to the same problem? Unless one was to include a local copy of Perl to use specifically for this purpose, that is. Another vague possibility seems to be to bundle perl with the program somehow, perhaps by some form of static linking? The Biber README says > You do not need to install Perl use biber--binaries are provided for many > operating systems via the main TeX distributions (TeXLive, MacTeX, MiKTeX) > and also via download from SourceForge. > > You only need a Perl installation to use biber in one of the following > cases: > >   * A binary version is not available for your OS/platform * You wish to > keep up with all of the bleeding-edge git commits before they are packaged > into a binary. > When I built and installed the Debian binary Biber package, it still complained about 5.16 being available, so I am not sure what is meant by binaries here.


title: Problem finding metafonts at compilation

text: I'm trying to compile a document using the `latex` command. This document compiles fine on other machines, but on the machine I'm currently using (Ubuntu 12.04 with texlive installed via aptitude), it doesn't work. Here's a portion of the compile log that seems relevant to me:               (/usr/share/texmf-texlive/tex/latex/jknapltx/ursfs.fd)     kpathsea: Running mktextfm rsfs10     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10     This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)               kpathsea: Running mktexmf rsfs10     ! I can't find file `rsfs10'.     <*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10          Please type another input file name     ! Emergency stop.     <*> ...:=ljfour; mag:=1; nonstopmode; input rsfs10          Transcript written on mfput.log.     grep: rsfs10.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rsfs10' failed to make rsfs10.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font U/rsfs/m/n/8=rsfs10 at 8.0pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.71           ?      Frankly, I have no idea what's wrong here. I should note that I'm using the following document class:               (./svjour3.cls     Document Class: svjour3 2007/05/08 v3.2      LaTeX document class for Springer journals     (./svglov3.clo     SVJour Class option: svglov3.clo for standardised journals     ))       Any ideas?


title: Hide hyperref internal links but apply a border to external links?

text: I know that I can use `\usepackage[hidelinks]{hyperref}` to turn off borders for all links generated by the `hyperref` pacakge, but is there a way to turn off borders only for _internal_ links?


title: dynamically imports tex files

text: How can I dynamically import a tex file? I essentially have hundreds of .tex files in one folder, all of these files have multiple versions. I can't move them out of this folder. **Ex:**               ver1file1.tex     ver2file1.tex     ...     ver8file1.tex     ...     ver8file100.tex      I want to be able to set a environment variable or pass a command line argument so that latex will be able to dynamically load all the files from a particular version. **Example:**               pdflatex ver1     or     EXPORT LATEX_VER=ver1      to have only the following being imported in the main latex file.               ver1file1     ver1file2     ...     ver1file100      Below is an example of what i've tried so far but I can't get the I basically want to have 2 .tex files, `file1.tex` and `file2.tex` . I want to be able to accept a command line argument that defines the name of the file to import. **main.tex**               \import{c:\path}{aux}          \import{c:\path}{\dynavar} % should load variable from commandline + added string ex: ver1file1      **aux.tex**               %accept a command line argument     \ifdefined\myflag       \newcommand\dynavar[1]{\emph{#1}}     \else       \newcommand\dynavar[1]{defaultval}     \fi               \expandafter\def\expandafter\dynavar\expandafter{\dynavar { }file1}


title: Attempts to manually change \linewidth ignored by LaTeX

text: I was going to try to answer the question: How can I change the geometry of a page on the chapter header page only, and return to normal on the next page? It didn't seem like it should be too difficult (despite the comments of some). Well, it turned out to be exceptionally difficult and very frustrating. # Using the `geometry` package Using `geometry`, it's easy to go into a document and manually change the margins etc. and easy to restore things. In the preamble, you simple invoke:               \usepackage[margin=1in]{geometry}      If you want to change this temporarily, you can write:               \savegeometry{mydefaultgeometry}     \newgeometry{margin=3in}      And then later you can call:               \loadgeometry{mydefaultgeometry}          I thought the solution to OP's questions might be simply solved through some finagling of the page shipout. I tried a number of approaches. I tried using `atbegshi`, `everyshi`, and `afterpage`. All to no effect. # It's a _local_ vs. _global_ issue Then I got an idea: maybe this was a problem of locally defined vs. globally defined values etc. I decided to test this out with something simple to verify:               \newcommand{\myname}{AEllett}      Here's the MWE I tried with `afterpage`:               \documentclass{report}     \usepackage{afterpage}     \usepackage{lipsum}     %%     \newcommand{\myname}{AEllett}     \newcommand{\mychapter}[1]{%         \chapter{#1}%         \afterpage{\renewcommand{\myname}{someone else's name}}%     }     %% loading fancy to test whether `\renewcommand` took effect globablly     \usepackage{fancyhdr}     \pagestyle{fancy}     \chead{\myname}     \begin{document}     \lipsum[1-15]     \mychapter{Hello}     \lipsum[1-15]     \end{document}      But if, for example, I wrote instead               \afterpage{\gdef\myname{someone else'sname}}      Then the desired effect occurred. So I concluded that the OP's problem stemmed from the fact that               \afterpage{\loadgeometry{mydefaultgeometry}}      only sets the parameters for the page geometry locally, not globally. (I tried the same experiment with the package `everyshi`; same conclusion.) # Manually reset values from within `\afterpage` So, in order to automatically change the page geometry, I thought I could do something like:               \afterpage{\setlength{\global\oddsidemargin}{1in}%                \setlength{\global\evensidemargin}{1in}%                \setlength{\global\textwidth}{\dimexpr\paperwidth-2in\relax}%               }          But I got completely unexpected results: namely, the changes were inconsistently occurring. Here's MWE:               \documentclass{report}     \usepackage{afterpage}     \usepackage{lipsum}     \usepackage[showframe,margin=1in]{geometry}     %%     \newcommand{\myname}{AEllett}     \newcommand{\mychapter}[1]{%         \newgeometry{margin=3in}         \chapter{#1}%         \afterpage{\setlength{\global\oddsidemargin}{0in}%                    \setlength{\global\evensidemargin}{0in}%                    \setlength{\global\textwidth}{\dimexpr\paperwidth-2in\relax}%                    %%\setlength{\global\linewidth}{\dimexpr\paperwidth-2in\relax}%                   }         }     \begin{document}     \lipsum[1-15]     \mychapter{Hello}     \lipsum[1-25]     \end{document}      Something very strange is happening. # Manually setting all page dimensions I thought maybe there was some bad interaction between using the `geometry` package and my manually setting things. So, I tried the experiment again without using the `geometry` package. MWE:               \documentclass{report}     \usepackage{afterpage}     \usepackage{lipsum}     \usepackage{showframe}     \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\textwidth}{6in}     %%     \newcommand{\myname}{AEllett}     \newcommand{\mychapter}[1]{%         \setlength{\oddsidemargin}{3in}         \setlength{\evensidemargin}{3in}         \setlength{\textwidth}{3in}         \chapter{#1}%         \afterpage{\setlength{\global\oddsidemargin}{0in}%                    \setlength{\global\evensidemargin}{0in}%                    \setlength{\global\textwidth}{\dimexpr\paperwidth-2in\relax}%                    %%\setlength{\global\linewidth}{\dimexpr\paperwidth-2in\relax}%                   }         }     \begin{document}     \lipsum[1-15]     \mychapter{Hello}     \lipsum[1-25]     \end{document}      What I find interesting is that I am successfully able to change the effective left-hand side margin. But, I am not able to change the width of the text. Uncommenting the lines for setting `\linewidth` doesn't make matters any better. # Forgetting about doing anything fancy with chapters! I decided to try to change parameters mid-document and see what happens. MWE:               \documentclass{report}     \usepackage{afterpage}     \usepackage{lipsum}     \usepackage{showframe}     \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\textwidth}{6in}     %%     \begin{document}     \lipsum[1-15]          \setlength{\global\oddsidemargin}{2in}%     \setlength{\global\evensidemargin}{2in}%     \setlength{\global\textwidth}{\dimexpr\paperwidth-4in\relax}%          \lipsum[1-25]     \end{document}      I get similar results. I do not understand what is going on here. `showframe` clearly believes that the dimensions of the text width have been changed. Why doesn't LaTeX? If I add the following to my preamble:               \usepackage{fancyhdr}     \pagestyle{fancy}     \chead{\string\textwidth=\the\textwidth}      I can see that `\textwidth` has in fact been changed: and as I understand the conversion between inches and pts, the correct values are being displayed. # `\linewidth` won't let me change it!!! I tried comparing `\textwidth` to `\linewidth`. There were discrepencies. So I went in and manually changed `\linewidth` * _to absolutely no avail!!!_ MWE:               \documentclass{report}     \usepackage{afterpage}     \usepackage{lipsum}     \usepackage{showframe}     \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\textwidth}{6in}     %%     \usepackage{fancyhdr}     \pagestyle{fancy}     \chead{\string\textwidth=\the\textwidth\hspace*{2em}\string\linewidth=\the\linewidth}          \begin{document}     \lipsum[1-15]          \setlength{\global\oddsidemargin}{2in}%     \setlength{\global\evensidemargin}{2in}%     \setlength{\global\textwidth}{\dimexpr\paperwidth-4in\relax}%     \setlength{\global\linewidth}{\dimexpr\paperwidth-4in\relax}%     %%\large\normalsize     %%\clearpage          \lipsum[1-25]     \end{document}      How is it possible to apparently have the correct `\textwidth` and yet not have the correct `\textwidth`? Why does LaTeX ignore what I'm doing when I'm setting `\linewidth`? What am I failing to understand here? **EDIT** I just found `\hsize`. Setting that seems to work! Sigh! Effects are predictably ugly, but `\hsize` does make the necessary changes effective. This edit might suggest that I have a solution. I guess I do. But, I don't really understand what I've done. What other parameters are there that might have be reset? Why did I have to go in and change `\hsize`, the only documentation I can find for it is in `source2e` and what I find there seems a bit obfuscatory. :*( So, I still welcome feedback from others who understand better what I've done.


title: Creating multiplication table of symmetric group S_3

text: How one can create multiplication table of symmetric group S_3? (In that table 6 columns and 6 rows) Edit: here some progress:               \begin{table}         \begin{tabular}{l|llllll}         ~   & e   & a   & a^2 & b   & c   & d   \\         e   & e   & a   & a^2 & b   & c   & d   \\         a   & a   & a^2 & e   & c   & d   & b   \\         a^2 & a^2 & e   & a   & d   & b   & c   \\         b   & b   & d   & c   & e   & a^2 & a   \\         c   & c   & b   & d   & a   & e   & a^2 \\         d   & d   & c   & b   & a^2 & a   & e   \\         \end{tabular} \end{table}      But now I can't figure how making the horizontal line...


title: Symbol for chapter endings?

text: Is there an accepted way of marking a chapter ending? Right now I have new chapters start on new pages, but that leaves the last page of the previous chaater looking rather unfinished. I know that for proofs:               \blacksquare      Is sometime used. Is there an equivalent for chapter endings?


title: Animate animategraphics outputs frames in wrong order

text: I tried the Asymptote pdfmovie.asy example and the frames came up in the wrong order. I tried numerous other examples, including wheel.asy, and several of my own tests always with the same results. Basically, the frame order is always: 45 frames, 1 to 45: 1, 2, 13, 24, 35, 41 .. 45, 3 .. 12, 14 .. 23, 25 .. 34, 36..40. This varies with the number of frames, but there is a pattern (shown below). Sample asymptote code to generate x number of frames (up to 45 but easily extended to as large as you want to test):               // Test Media9 Animate.          // Uncomment the following 2 lines to support pdf animations:     usepackage("animate");     settings.tex="pdflatex";          import graph;     import animation;          size(5cm,0);          // Draw axes.     xaxis( L="x", xmin = -1.0, xmax = 1.0, arrow=EndArrow(3));     yaxis( L="y", ymin = -0.2, ymax = 1.2, arrow=EndArrow(3));          // new array     int [] arrayr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,     20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};//, 32, 33, 34, 35, 36, 37, 38, 39,     //40, 41, 42, 43, 44, 45};          animation a;          // Process all radius entries     for(int j=0; j < arrayr.length; ++j)     {       save();       label(format("\small r= %d",arrayr[j]),(-.45,.45));  // So I know the frame number.       a.add(); // Add current picture to animation.       restore();     }          erase();          // Merge the images into a pdf animation.     label(a.pdf(BBox(0.25cm),delay=250,"controls",multipage=false));      At first I thought it was this code. Then I thought it was animation.asy. But, by saving the pdf files, I'm able to generate the same results with this LaTeX file:               % Try to make Figure 4.     \documentclass{article}          \usepackage{graphicx}     \usepackage{animate}          \begin{document}     \animategraphics[controls]{4}{_fig4+}{00}{26}          \end{document}      The pdf files here have the name _fig4+00.pdf through _fig4+26.pdf. I had added the leading zero to see if that was what was causing the problem but it wasn't; this doesn't fix it. So then I modified Asymptote's animation.asy program to call animate graphics with a timeline file, and built a timeline file to specify the order of the frames. The timeline file for these 27 images looks like:               ::0     ::1     ::10     ::11     ::12     ::13     ::14     ::15     ::16     ::17     ::18     ::19     ::2     ::20     ::21     ::22     ::23     ::24     ::25     ::26     ::3     ::4     ::5     ::6     ::7     ::8     ::9      And in the tex file above, changed the line to:               \animategraphics[controls,timeline=_fig4.tl]{4}{_fig4+}{00}{26}      _**and this works correctly._** So I can work around the problem by changing Asymptote's animation.asy file:               // animation delay is in milliseconds     real animationdelay=50; // original line 9     string ftimename;       // [CW fix]     ...     ftimename = prefix +".tl";             // [CW fix]     for(int i=0; i < fits.length; ++i) {   // original line 105     ...     // [CW fix; autoload a timeline file to fix PDF ordering error]     //    string s="\animategraphics["+options+"]{"+format("%.18f",1000/delay,"C")+     string s="\animategraphics["+options+**", timeline="+ftimename+"**]{"+format("%.18f",1000/delay,"C")+       "}{"+basename();    // original line 129      But this really isn't a solution, it's just a work-around. The pattern of frame numbers in the timeline file makes it very clear what the problem is: the frame numbers are being sorted as if they're left-justified ASCII character strings and that's obviously not correct. Okay, I'm doing this in (arggh) Windows 7, using MinGW (4/26/12), MiKTeX 2.9, with all packages up-to-date (Asymptote v2.21, Animate version 2012/12/06), ImageMagick v6.8.1-10, etc. Basically, everything works okay (well, making mp4 files isn't working but that's another issue); I can use TeXworks, latexmk, biblatex, hyperref, etc. and crank stuff out pretty much as I expect. Now I can see these examples run on Asymptote's web page. So I create a VirtualBox Debian install (6.0.4), download TeX Live 2012 and install the whole thing. I don't update the packages, so it's Asymptote v2.16, Animate version 2012/05/04, ImageMagick v6.6.0-4, etc. Basically stuff that's 9 months older than what I'm using on Windows. And I try the various examples. _And they work just fine._ So there is some difference in how Animate works on Windows as opposed to how it works on Linux. I would be interested in any suggestions as to how this can be fixed. Is it a bug that I should report? Do I have something messed up on my Win PC? I can make the timeline file when I need it to get the output I want, but that just becomes another step that I would rather avoid.


title: Unwanted Indenting

text: With the following code, everything from "Scenario containing 3 pirates.." and below has been indented relative to the text above.               \documentclass{article}     \title{Assignment \#1}     \author{Giri}     \date{March 20, 2014}     \begin{document}     \maketitle          \section*{Question 1}     \textit{Scenario containing 2 pirates :} \\*\\*      Regardless of how the gold is split, the 2nd pirate will vote against the 1st pirate and take all the gold. \\*\\*          \textit{Scenario containing 3 pirates:}           \begin{table}[ht]     \caption{3 Pirates}     \centering     \begin{tabular}{c c c}     \hline\hline     Pirate\#1 & Pirate\#2 & Pirate\#3 \\       \hline     x & x & x \\     \hline     \end{tabular}     \end{table}          In this...          \end{document}      Could someone please tell me why this is happening?


title: Collapse footnote in TeXstudio

text: I have the following: > The text has a long `\footnote{` so I'd like to collapse this footnote `}` > to make the text more legible when editing. I want to collapse the footnote: > The text has a long `\footnote{collapsed}` to make the text more legible > when editing.


title: Granting write access to tex when using solides3d

text: There is an obstacle when using `action=writesolid` in `pst-solides3d`. Mainly, I need to generate some datafiles for some solides like the following. I want to perform some slices and the examples use this approach               \begin{pspicture}(-3,-4)(3,4)     \psset{viewpoint=50 40 30 rtp2xyz,lightsrc=viewpoint,Decran=40,}     \psSurface[ngrid=.25 .25,incolor=gray,action=writesolid,file=./silla](-2,-2)(2,2){x y mul}     \end{pspicture}      Which should generate the following files   * silla-couleurs.dat   * silla-faces.dat   * silla-sommets.dat   * silla-io.dat I knew that I would bump into security issues `Error: /invalidaccessfile in -file-` I am using WinXP and I would like to know how to configure my system to set an exception to allow me to write such datafiles but the manual entry on the subject is beyond my comprehension > Windows: Within the menue Options, the option Security of files must be > turned to unchecked. > > **pst-solides User Manual: Chapter 5 - Usage of external files** PS: I may have used an incorrect title for this question (and tags for that matter), any suggestions on improving (or edits) are more than welcome