title: Converting LaTeX into Mathtype or MS Word format in Ubuntu

text: I need a lot of help here, and am not sure if this is the correct place for my question - but here goes. I am about to start (assuming I can get over this issue with software) working for a company that authors solutions and solution guides for math textbooks. However, they do not use LaTeX, but rather MathType. I am running Lubuntu 12.04, and cannot afford to buy any software at the present. This company wants me to type up math in MathType (or TeX, then convert to MathType format), and insert the math equations and what not into a MS Word document (I believe MS Word 1997-2003 format). My contact sent me a free version of MS Office 2010 Starter software, but I have yet to be able to get it to install at all. Additionally, I would like to not have to rely on wine and ANY windows software if at all possible. I am already having to use a trial version of MathType under Wine, but I cannot find anyway to add the MathType equations into say LibreOffice, or Abiword without destroying their format - and (this is important!) this company wants the end result to be still editable using MathType. Please any help would be appreciated as I have already spent two days researching and have found nothing yet.


title: draw a plot with point

text: i try to draw something like this : ![enter image description here](http://i.stack.imgur.com/4ryRH.png) to do that i have write some code using tikz,unfortunately i dont get what i want               \documentclass{report}          \usepackage{tikz}     \usetikzlibrary{automata,topaths}           \begin{document}           \begin{tikzpicture}[x=1cm,y=0.4cm]           \draw[<->] (-4,0)--(4,0); % l'axe des abscisses      \draw[<->] (0,-5)--(0,5); % l'axe des ordonnées      \draw[-] (-3,-2)--(3,4); % l'axe des abscisses           \draw (-2,1.5) node[anchor=south] {.};      \draw (-1,1) node[anchor=south] {.};      \draw (-2,3) node[anchor=south] {.};      \draw (-1,2.5) node[anchor=south] {.};      \draw (1,3) node[anchor=south] {.};      \end{tikzpicture}               \end{document}      The result is : ![enter image description here](http://i.stack.imgur.com/Jk8uM.png)


title: Create a name box on an exam

text: Is there an easy way to put a box in the upper right corner asking for student name/number on the first page? Is there something analogous to defining the location of something on a web-page in terms of absolute positions? I need the following criteria to be met:   * Does not use the exam class   * Puts the box inside of the margin (i.e. Does not move the title down/get in the way)


title: biblatex punctuation issue when book titles end in quotation marks

text: 1. The _Chicago Manual of Style_ specifies American punctuation: periods and commas should precede closing quotation marks (§ 6.9).   2. It also specifies that titles within book titles should be enclosed in double quotation marks (§ 14.102).   3. Accordingly, some book titles will end in a closing double quotation mark. Unfortunately, the `biblatex-chicago` package (and maybe `biblatex`) doesn't seem to have counted with the combination of rules 1 and 2 above. In the following minimal working example, the third citation results in a comma following the closing quotation mark, while the bibliography has a period following the closing quotation mark. Both should precede the closing quotation mark. How do I fix this?               \documentclass{book}     \usepackage{xltxtra}     \usepackage{etoolbox}     \usepackage{etex}     \usepackage{keyval}     \usepackage{ifthen}     \usepackage{url}     \usepackage[style=american]{csquotes}     \usepackage{polyglossia}     \usepackage{verbatim}     \usepackage[notes]{biblatex-chicago}          \setdefaultlanguage{english}     \begin{filecontents}{book.bib}     @book{key1,        author = {Marty McFly},        title = {This Book Title Ends in \enquote{Quotation Marks}},        location = {Oxford},        publisher = {Oxford University Press},        year = {1976}     }          @book{key2,        author = {John Updike},        title = {Some Title},        location = {Cambridge, MA},        publisher = {Harvard University Press},        year = {2002}     }     \end{filecontents}     \addbibresource{book.bib}          \begin{document}          Here I cite a book whose title ends in a closing quotation mark\autocite[55]{key1}.     I follow this up with an unrelated citation\autocite[xi]{key2}.     Here I cite the first work a second time, which results in a short reference\autocite[75]{key1}, which unfortunately misplaces the period.          \printbibliography          \end{document}      ![Footnote citation](http://langeslag.org/images/sx/cmspunctmwe1.png) ![Bibliographical entry](http://langeslag.org/images/sx/cmspunctmwe2.png) The problem also occurs where my postnote ends in a closing quotation mark:               \autocite[s.v. ``word'']{dictionary}      but there I can hack my way through by adding a period inside the postnote itself.


title: Too wide figure caption

text: I included a figure using the `figure` environment with a rather long caption. The width of the caption is the same as the page width, which doesn't look so nice. Is there any way to reduce the width of the caption frame?


title: How to negate a specific symbol?

text: I want to negate the symbol whose code is `\models` (this would be specific to Formal Logic). How can I do that? I tried a number of combination, but didn't find how this could be done. I tried `\neqmodels`, `\nemodels`, `\notmodels`, `\nmodels` but all of them are wrong. Is there a general way to negate symbols?


title: l3doc in combination with minted

text: The following question is related: How to add listings environment to DTX files * * * I want to use the document class `l3doc` in combination with minted. However I am not able to get a nice result. If I use `ltxdoc` it works: Here a "small" MWE:               % \iffalse meta-comment     % arara: pdflatex: { shell: true}     %<*internal>     \iffalse     %</internal>          %<*internal>     \fi     \def\nameofplainTeX{plain}     \ifx\fmtname\nameofplainTeX\else       \expandafter\begingroup     \fi     %</internal>     %<*install>     \input docstrip.tex     \keepsilent     \askforoverwritefalse     \preamble     ----------------------------------------------------------------     demopkg --- description text     ----------------------------------------------------------------          \endpreamble     %</install>     %<install>\endbatchfile     %<*internal>     \nopreamble\nopostamble     \ifx\fmtname\nameofplainTeX       \expandafter\endbatchfile     \else       \expandafter\endgroup     \fi     %</internal>     %<*package>     \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{demopkg}[2009/10/06 v1.0 description text]     %</package>     %<*driver>     % \documentclass{l3doc}     \documentclass{ltxdoc}     \usepackage{minted}     \usepackage{etoolbox}     \begin{document}       \DocInput{\jobname.dtx}     \end{document}     %</driver>     % \fi     %  Text     %     % \begin{minted}{latex}     %  \begin{document}     %   \DocInput{\jobname.dtx}     %  \end{document}     % \end{minted}     % \iffalse     %<*example>     % \fi     \begin{minted}{latex}      \begin{document}       \DocInput{\jobname.dtx}      \end{document}     \end{minted}     % \iffalse     %</example>     % \fi          %  Text     %     %\Finale      Bonus: I want to use the environment minted without using the trick `iffalse`


title: Dotted column sep in multicolomn minipage

text: I'm trying to typeset a table whose cells are divided into columns, and the columns are separated by dotted lines. This is for variable-length enumerations of (short) entries and planned to look approximately like this:               +-----------+------------------+     | A   . E   | H   . L   . P    |     | B   . F   | I   . M   .      |     | C   . G   | J   . N   .      |     | D   .     | K   . O   .      |     +-----------+------------------+      Because this table is generated from data, there are some factors that i can easily handle with the generating software, and since it is only a single table with like a hundred entries, i can manually fine-tune which table columns get one, two, or three sub-columns to optimize the appearance. My idea is to use a `minipage` inside each table cell, thereby taking advantage of the fact that columns are filled in a balanced way; however, it would be perfectly acceptable to forego `minipage`s and instead create a table with so-and-so many sub-cells and place each entry programmatically. What I don't get working is the dotted dividers. These are intended to be dots, not dashes. Furthermore, whatever technique is used to draw them, they must get their coordinates from inside of XeLaTeX (it is conceivable to set absolute columns widths, but i'd rather avoid that; it is also conceivable to put the table at specific offset from the top of the page, but I really want to avoid that). Also, I would love to draw each divider individually — if you just drew dashed or dotted dividers across the entire table, there would otherwise inevitably occur clashes between the verticals and the horizontals. When I started out, I experimented with `cline`s and the like, but I realized that drawing partial lines will cause small gaps in the borders of the cells that do not have a partial line — this is why I started to think about `subtable`s and/or `minipage`s. Below is a MWE of what I have right now. It looks like this: ![MWE output](http://i.stack.imgur.com/F5CrI.png) What I'm trying to do here is to record the current position on the page, then look at the column widths and the `minipage` height, then derive the x and y values from those. I'm struggling with the units vs integers vs floats distinction and with the (apparently) differing frames of reference — sometimes `-y` seems to be 'down', sometimes `-y` seems to be 'up'. But at this point I'm so confused I can hardly tell up from down! Before I waste another day on this, does anyone have ideas on how to improve on this code? I've tried so many packages, and each is pretty much a law unto itself — the macro syntax, whether integers or floats or lengths are required for parameters, whether you can do math with them, and so on.               \documentclass{book}     \usepackage{polyglossia}     \setdefaultlanguage{english}     \usepackage{multicol}     \setlength{\parindent}{0mm}          % http://tex.stackexchange.com/questions/56875/how-do-i-make-one-minipage-the-same-size-as-another     \usepackage{adjustbox}     % http://tex.stackexchange.com/a/37300/28067     \usepackage{zref-abspos}     \usepackage{zref-user}          \usepackage{calc}     \usepackage[absolute]{textpos}     \usepackage{epic}     \usepackage{fp}               % ----------------------------------------------------------------------------------------------------------     % http://tex.stackexchange.com/a/6424/28067     \makeatletter     \newcommand*{\DivideLengths}[2]{%       \strip@pt\dimexpr\number\numexpr\number\dimexpr#1\relax*65536/\number\dimexpr#2\relax\relax sp\relax     }     \makeatother          % ----------------------------------------------------------------------------------------------------------     % http://tex.stackexchange.com/a/37317/28067     \catcode`@=11     \begingroup       \catcode `P=12  % digits and punct. catcode       \catcode `T=12  % digits and punct. catcode       \lowercase{%       \def\x{\def\rem@pt##1.##2PT{##1\ifnum##2>\z@.##2\fi}}}          \expandafter\endgroup\x%     \def\strip@pt{\expandafter\rem@pt\the}     \def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1\relax\relax}     \catcode`@=12          % ##########################################################################################################     \begin{document}          % set units for package `textpos` (`textblock`)     \setlength{\TPHorizModule}{1mm}     \setlength{\TPVertModule}{1mm}     % set units for package `epic` (`dottedline`)     \unitlength1mm          % i set a definite width for the minipage here; in reality, that would be the text width inside a table     % cell:     \begin{minipage}[t]{20mm}       \begin{multicols}{2}%       \newcounter{flowX}       \newcounter{flowY}       \zsavepos{topleftcorner}%       \FPround\resultc{\convertto{mm}{\the\linewidth}}{0}       \setcounter{flowX}{\zposx{topleftcorner}/186450+\resultc+2} % `+2` to be replaced by 1/2 of columns divider width       \setcounter{flowY}{\zposy{topleftcorner}/186450}       \begin{textblock}{5}(\value{flowX},20)%       \leavevmode\dottedline[.]{1}(0,0)(0,20)%       \end{textblock}       A\\B\\C\\D\\E\\F\\G\\H\\I\\J\\K\\L\\M\\       \end{multicols}     \end{minipage}          % ##########################################################################################################     \end{document}


title: Cabinet projection in PSTricks

text: I would like to draw pictures in cabinet projection in PSTricks. This is close to `coorType=2`, but I need shorten the oblique axis by factor `1/2` rather than `1/sqrt(2)`. Is there any way how to arrange this? Reated question is here but the answer in PSTricks contains `coorType=2`, i.e. the scaling factor is not what I need.


title: How to measure the minimum width or height of several boxes?

text: I know we can get the maximum width or height of several boxes via:               \setbox0=\vbox{\hbox{a}\hbox{b}\hbox{c}}     The maximum width is \the\wd0          \setbox0=\hbox{\hbox{a}\hbox{b}\hbox{c}}     The maximum height is \the\ht0      But how to get the minimum width or height?


title: TikZ intersection command not returning desired result

text: I am trying to place a node at the intersection of two lines, however I do not obtain the desired result. I would like the circled `x` in the pciture below to appear on the intersection of the two lines. What am I doing wrong? ![enter image description here](http://i.stack.imgur.com/ikFdo.png) mwe:               \documentclass{article}     \usepackage{tikz}     \usepackage[active,tightpage]{preview}     \usetikzlibrary{intersections}     \PreviewEnvironment{tikzpicture}     \begin{document}         \begin{tikzpicture}             \node (l3) at (-1,-2) {test};             \node (c1) at (intersection of (0,0)-- ++(300:7) and {l3.north--++(99,0)})[draw, circle]{x};             \draw (0,0)-- ++(300:3) (l3.north)--++(4,0);         \end{tikzpicture}     \end{document}      **EDIT** Explanation, why I need the different syntax: I am creating a picture like this: ![pyramid](http://i.stack.imgur.com/ddfw8.png) I draw and adjust the text nodes by hand, afterwards I need to draw the horizontal lines into the triangle. I decided to be to lazy to use `pgfmath`, with the chosen awnser I can write the following to generate the horizontal lines:               \foreach \level in {nodeL1, nodeL2, ...} {               \coordinate (c1) at (intersection of 0,0--[shift={(300:7)}]0,0 and \level.north--[xshift=99]\level.north);         \coordinate (c2) at (intersection of 0,0--[shift={(240:7)}]0,0 and \level.north--[xshift=99]\level.north);               \draw (c1) -- (c2);     };


title: Naming files for Adobe Times-Roman small caps

text: I want to install the genuine Adobe Times-Roman Small Caps and Times-Roman Bold Small Caps fonts for use with LaTeX. They were distributed by Adobe as `TIRSC___.PFB` and `TIBSC___.PFB`, respectively, along with the corresponding `.PFM` and `.AFM` files. My question is what names to use that would be consistent with the TeX font-naming standards. (This is before all the processing with `fontinst`.) For Times-Roman Small Caps, is it correct to use `ptmrc8a`? That is, `p` for Adobe; `tm` for Times-Roman; `r` for Regular; `c` for small-caps (and `8a` for Adobe Standard Encoding)? Or instead of `r` should it be `m`, for medium weight? For Times-Roman Bold Small Caps, should it then be `ptmbc8a`? (Elsewhere, it was suggested that this should be `pfmb8a` \-- see http://latex- community.org/forum/viewtopic.php?f=48&t=20093. But I suspect that `f` there was a typo for `t`; and surely a `c` is needed after `b`?)


title: Size and position of the table caption

text: I need a caption of my table/figure to be 9pt size. The whole text should stay 12pt-sized, while only table/figure caption should be 9pt size. I also need the caption to appear above the table, and below the figure (I managed to do this, see MWE below). Unfortunately, I can't really work out how to handle caption sizes. I tried: `\fontsize{9}{11}\selectfont {\caption{My awesome table}}` with no effect (the effect was that the text INSIDE the table was modified to fit 9pt size, caption stayed the same ...). Any ideas? Thank you so much for help and your time!               \documentclass[12pt]{article}     \usepackage{floatrow}     \usepackage{graphicx}     \usepackage[draft]{pgf}          \floatsetup[table]{capposition=top}     \floatsetup[figure]{capposition=bottom}          \begin{document}          \begin{table}         \fontsize{9}{11}\selectfont {\caption{My awesome table}}         \begin{tabular}{*4{l}}             A & B & C & D\\             x & w & y & z\\             1 & 2 & 3 & 4\\         \end{tabular}     \end{table}          \begin{figure}     \centering       \begin{pgfpicture}         \pgftext{\pgfimage[width=5cm,height=4cm]{scratch.png}}     \end{pgfpicture}       \fontsize{9}{11}\selectfont {\caption{My awesome picture}}     \end{figure}          \end{document}


title: What does each AMS package do?

text: In my view, any document with a substantial amount of mathematics should load the packages from AMS-TeX. Hence, most of my document's preambles contain               \usepackage{amsmath, amsthm, amssymb, amsfonts}      (I could add to that the non-AMS `mathtools`, etc.). What do each of those packages do? Do I really need to list all of them, or do some of them load others? In particular, does any package load all of them, so that I can simply type               \usepackage{ams-everything}      shorter than the current list?


title: Using mathspec’s \setallmainfonts with Russian in polyglossia causes hang during compilation

text: I’ve just run into a problem with the combination of `mathspec`’s `\setallmainfonts` command and `polyglossia` with language set to Russian. I’m using MiKTeX 2.9 and compiling with XeLaTeX and when I use these two together, compilation just hangs and doesn’t complete. I’ve found that there’s a difference in the log file between when Russian and other languages are loaded. In the case of Russian there is one more line where it loads something like babel shorthands which is not present while loading other languages. Maybe that might have something to do with the problem. The hang occurs only when I actually use some math commands in the document, either between `$` or using `equation` enviroment. This is a minimal example:               \documentclass[12pt]{article}     \usepackage{mathspec}     \usepackage{xltxtra}     \setallmainfonts[Mapping=tex-text, Numbers={Lining,Proportional}]{Linux Libertine O}          \usepackage{polyglossia}     \setdefaultlanguage{russian}          \begin{document}      \begin{equation}      f(x)=\sigma      \end{equation}     \end{document}      I’m using `mathspec` and `\setallmainfonts` because I want to change the math font (`\setmathsfont` causes the hang as well). So removing them is not an option.


title: Tikz: drawing concentric circles with specified origins and the arc that connects the intersections

text: I would like to draw a few concentric circles with origins of P1 and P2 where all the circles are greater than the minimum distances. The min distances is where the circles will touch at one point only. I would also like to have that circle added to the diagram as well. How can I find the min circles where this would occur? For the other circles greater than this distance, how can I add them in with a for loop or something of that nature? Then I want to draw the arc that connects all the intersecting points.               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[scale = .75]       \node[scale = .75] (P1) at (3, 0) {\(P_1\)};       \node[scale = .75] (P2) at (-1.5, 2) {\(P_2\)};       \node[scale = .75] (F) at (0, 0) {\(F\)};       \draw (F) -- (P1);       \draw (F) -- (P2);       \draw (P1) -- (P2);     \end{tikzpicture}     \end{document}      Here is my horrible example drawing, just remember those are circles: ![enter image description here](http://i.stack.imgur.com/9bE1m.png) Here is another extremely poor example: ![enter image description here](http://i.stack.imgur.com/Nh5A4.png)


title: Tighter-spaced bulleted list should have ordinary line spacing to paragraphs/lines above and below

text: To get tighter line spacing (my document's main spacing is 1.5-spacing, and I'm using `memoir`), I normally use a self-defined "tight list" (`tightlist` in the code below). This works well. However **I would like the list's spacing to the text above and below to be identical to the ordinary** (here: 1.5) **line spacing, that is I would like the list to behave like a vertical line- like atom with respect to the rest of the document.** In the following document               \documentclass{memoir}          \OnehalfSpacing          \newenvironment{mytightlist}[3]{%       % noticeably tighter than the memoir class's tightlist facilities       \begin{Spacing}{1}%       \begin{list}{#1}{%         \setlength{\topsep}{0pt}%         \setlength{\parskip}{0pt}%         \setlength{\parsep}{0pt}%         \setlength{\itemsep}{0pt}%         \setlength{\leftmargin}{#2}%         \setlength{\labelwidth}{#3}%         \setlength{\labelsep}{0.5em}%       }%     }%     {\end{list}\end{Spacing}}               \begin{document}          Text. HHHHHHHHHH          Text. HHHHHHHHHH          \begin{mytightlist}{\(\bullet\)}{1.5em}{0.5em}     \item Text. HHHHHHHHHH     \item Text. HHHHHHHHHH     \end{mytightlist}          Text. HHHHHHHHHH          Text. HHHHHHHHHH          \end{document}      the spacing within line pairs 2/3 and 4/5 is _slightly_ less than the intended spacing, namely that found within line pairs 1/2 and 5/6. Why? How can one fix this? Btw, I don't care about whether a list "belongs" to a paragraph around it: for me, such spacing should be uniform. ("LaTeX goes to a lot of effort to distinguish in-paragraph lists from end- or start-of-paragraph lists"; comment (quoted approximately) by David Carlisle) Using the `MySpacing` environment from this answer to a related question about spacing around blocks instead of `Spacing` doesn't do the trick in this context.


title: Problems with insert_before and post_linebreak_filter

text: I'm coding an algorithm to detect and highlight homeoarchies. Here my current almost working (but compiling at least) code:               \documentclass{article}     \usepackage[french]{babel}     \usepackage{kpfonts}          \usepackage{luatexbase}      \usepackage{luacode}      \begin{luacode}      compare_lines = function (line1,line2)        local head1 = line1.head        local head2 = line2.head             local char_count = 0        local word_count = 0             while (head1.id == 37 and head2.id == 37               and head1.char == head2.char)          -- identical glyph           or (head1.id == 10 and head2.id == 10) do  -- glue                if (head1.id == 37) then -- glyph              char_count = char_count + 1           elseif (head1.id == 10) then -- glue              word_count = word_count + 1           end           head1 = head1.next           head2 = head2.next        end        return char_count,word_count,head1,head2      end           homeoarchy = function ( head )        local cur_line = head        local prev_line -- initiate prev_head             local max_char = 3        local max_word = 1             while head do          if head.id == 0 then -- new line            print("new line")            prev_line = cur_line            cur_line = head            if prev_line.id == 0 then               char_count,word_count,prev_head,cur_head = compare_lines(prev_line,cur_line)               if char_count >= max_char or word_count >= max_word then                  w1_prev = node.new("whatsit","pdf_literal")                  w1_prev.data = "q 1 0 1 rg"                  w1_prev.mode = 1                       w2_prev = node.new("whatsit","pdf_literal")                  w2_prev.data = "Q"                  w2_prev.mode = 1                       node.insert_before(prev_line,prev_line.head.next,w1_prev)                  node.insert_before(prev_line,prev_head,w2_prev)                       w1_cur = node.new("whatsit","pdf_literal")                  w1_cur.data = "q 1 0 1 rg"                  w1_prev.mode = 1                       w2_cur = node.new("whatsit","pdf_literal")                  w2_cur.data = "Q"                  w2_cur.mode = 1                       node.insert_before(cur_line,cur_line.head.next,w1_cur)                  node.insert_before(cur_line,cur_head,w2_cur)                       print("done placing markers")               end            end          end          head = head.next        end            return true      end           luatexbase.add_to_callback("post_linebreak_filter",homeoarchy,"homeoarchy")      \end{luacode}          \begin{document}          \begin{minipage}{1.7in}     Je suis venu non pour juger le monde, mais pour sauver le monde. Celui qui me rejette     et qui ne re\c coit pas mes     \end{minipage}          \bigskip     \begin{minipage}{1.7in}     Je suis venu non pour juger~le monde, mais pour sauver le monde. Celui qui me rejette     et qui ne re\c coit pas mes     \end{minipage}          \bigskip     \begin{minipage}{1.7in}     Je suis venu non pour juger le monde, mais pour sauver~le monde. Celui qui me rejette     et qui ne re\c coit pas mes     \end{minipage}          \bigskip     \begin{minipage}{1.6in}     Je suis venu non pour juger le monde, mais pour sauver le monde. Celui qui me rejette     et qui ne re\c coit pas mes     \end{minipage}          \bigskip     \begin{minipage}{1.8in}     Je suis venu non pour juger le monde, mais pour sauver le monde. Celui qui me rejette     et qui ne re\c coit pas mes     \end{minipage}     \end{document}      and the result: ![two bugs to go](http://i.stack.imgur.com/QiX9p.png) It's easy to spot two bugs here:   * the color starts after the "l" instead of before it. I've tried all sorts of combinations, from "prev_line.head" to "prev_line.head.next.prev", and I always get an error saying I can't insert before a non-existing node. I'm pretty sure the "l" node does exist. How can I insert before it?   * the text stops after the second colored word. So I've colored the words alright, but I'd still like the rest of the text... How can I do that?


title: Setting \topsep in breqn package

text: I'm using the `breqn` package en `dmath` environment for multiline equations, and the normal `equation` environment for single line equations. However, the `\topsep` of `\abovedisplayskip` of this `dmath` environment is very large (especially in comparison to the normal equations), and I would like to make this smaller (and equal to the `equation` environment). However, I seem to not being able to change this; can anyone help me on this?


title: arXiv messing up bibliography

text: I'm having a little trouble with a submission to arXiv and I don't know if people here can help diagnose it. Simply put, the arXiv tex compiler is screwing up the bibliography for reasons I don't understand. In the paper.bbl file for paper.tex, you have entries such as:               \bibitem[\protect\citename{Mitchell and Lapata}2008]{mitchell2008vector}     J.~Mitchell and M.~Lapata.     \newblock 2008.     \newblock {Vector-based models of semantic composition}.      \newblock In {\em Proceedings of ACL}, volume~8.      When I compile the paper with `pdflatex`, I obtain bibliography items such as: ![Citations in local version](http://i.stack.imgur.com/wzhnj.png) However, when I upload the tex to arxiv (along with all the accompanying files, and with the macro `\pdfoutput=1` at the top of the tex document) I get the following output for the same bibliography item. ![Citations on arXiv](http://i.stack.imgur.com/zHFW7.png) As you can see, it's adding the information from the `bibitem` option into the references themselves. Does anyone have any idea how I can get arXiv's pdflatex to stop doing this? Am I doing something wrong on my end, or should I contact arXiv and tell them something is broken on their end? If it helps. here's the tex log generated by arxiv: http://pastebin.com/uCFBzuiH Thanks in advance for any help you can provide! **Edit:** Answer to this problem provided by Lev Bishop in the comments below. Just make a file `00README.XXX` with the line `nohypertex` in it.


title: xkeyval gives error with siunitx on some LaTeX installations

text: \documentclass{article}          \usepackage{siunitx}          \begin{document}          \SI[per-mode = fraction]{3.00e8}{\meter\per\second}          \end{document}      I've tested this on three different computers, all running TexLive 2009 (the one that comes with Ubuntu or Linux Mint), and got an error message on one of them:               ! Package xkeyval Error: `per-mode' undefined in families `key'.      More generally, any attempt to provide an extra option to `siunitx` (e.g., `output-decimal-marker = {,}`, which I also need) leads to the same error. I suspect this is a clash of versions between `xkeyval` and `siunitx`, but so far haven't been able to pinpoint what is different in that computer that produces the error. I even removed the LaTeX3 package to no avail. A similar question was asked on Error: "per-mode" is undefined, but the question is now closed.


title: Selectively turn off hyperref links for citations

text: I'm using both the `natbib` and the `hyperref` packages. I would like to be able to selectively not generate hyperlinks for some of the in-text citations. I know that I can use the asterisk with `\ref*{...}` in order to prevent a hyperlink from being generated for that reference, but adding an asterisk changes nothing with `\cite*{...}`. I see that Selectively turn off hyperref links and Remove link from selected references describe how to selectively disable hyperlinks for cross- references, and How to turn on/off certain types (e.g. citation, url, file) of hyperref links? describes how to disable ALL hyperlinks of a given type, but neither of these address my problem.


title: Align matrices problem

text: I have an equation of matrices and I want to align the dimensions of the matrices below the equation of matrices. However, I produce something very ugly. Can someone advise how to make it look better or properly aligned ?               \documentclass[10pt,a4paper]{article}     \usepackage{amsmath, amsfonts}     \begin{document}     \begin{align*}     A     &     \begin{bmatrix}     &&\\     \vec{v}_1 & \cdots & \vec{v}_r \\     &&     \end{bmatrix}     &= &     \begin{bmatrix}     &&\\     \vec{u}_1 & \cdots & \vec{u}_r\\     &&     \end{bmatrix}     &     \begin{bmatrix}     \sigma_1 &&\\     &\ddots&\\     && \sigma_r     \end{bmatrix}     \\     (m \times n) & (n \times r) & & (m \times r) & (r \times r)     \end{align*}     \end{document}


title: Spurious newline in \write

text: When I `\immediate\write\somefile{foo}`, TeX writes `foo` to the file open in the output stream `\somefile`, but it also goes to the next line. (The resulting file has 4 bytes.) Since I am writing files and reading them as the body of some environments, it would be nice if I could disable this extra new-line character. The main problem is when I write `foo^^M` at the end of a file, and the newline I write combines with the 'default' one: it leads to a spurious `\par`, which breaks short macros (and the `align` environment). So, is it possible to avoid going to the next line using `\write`?


title: How to separately access the abscissa and ordinate of the current point?

text: Consider the following code.               \documentclass[pstricks,border=12pt]{standalone}     \SpecialCoor          \begin{document}     \begin{pspicture}[showgrid](-5,-5)(5,5)         \pscustom         {             \psline(1,0)             \rlineto(0,1)             %\translate(!!CP.x 0) % does not work!         }     \end{pspicture}     \end{document}      I want to separately access the abscissa and ordinate of the current point, how to do so?


title: Place algorithm inside block of beamerposter

text: I need to place algorithm inside block of beamerposter, but got error like this: ![enter image description here](http://i.stack.imgur.com/Q4SpP.png)


title: Why DOESN'T the color of overlapped region between opaque red and green objects become opaque yellow?

text: In theory, additive mixing Red color and Green color produces Yellow color. In my mental model, additive mixing opaque Red and opaque Green will produce opaque Yellow. But the following attempt, I got a result that is different from my mental model. WHY? ![alt text](http://i.stack.imgur.com/XVySo.png) ## Minimal Code (PSTricks)               \documentclass[dvipsnames,dvips,rgb]{minimal}     \usepackage{pstricks}          \begin{document}     \begin{pspicture}(3,3)       \psset{fillstyle=solid,opacity=0.5,linestyle=none}         \pscircle[fillcolor=red](1,1){1}           \pscircle[fillcolor=green](2,1){1}           \psframe[fillcolor=yellow](0,2)(3,3)     \end{pspicture}      \end{document}      * * * ## Minimal Code (PGF/Tikz)               \documentclass[dvipsnames,dvips,rgb]{minimal}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}         \draw [fill=red,opacity=0.5](1,1) circle (1);         \draw [fill=green,opacity=0.5](2,1) circle (1);         \draw [fill=yellow,opacity=0.5] (0,2)--(0,3)--(3,3)--(3,2)--cycle;     \end{tikzpicture}      \end{document}


title: How to use \valign?

text: I just bumped into a interesting command called `\valign`. It seems to be the sister of `\halign`, but the TeXbook seems to be rather shy on explaining its use. As is the TeX by Topic. They only mention it swaps the meaning of rows and columns in its use when compared to `\halign`. But given the following example:               \valign{&#\cr     How  & is\cr     this & supposed\cr     to   & work?\cr     }     \bye      the produced box is overfull; the second column starts only after the right margin! So my question is: how is it supposed to be used; how can you change the start of the second (or third) column so it doesn't go out of the page? Also if you have some usage examples somewhere, that'd be great!


title: Is there a smart solution to fix the precision issue for atan?

text: \documentclass[pstricks,border=12pt]{standalone}          \psset{unit=.25}     \def\Atom#1{%     \begin{pspicture}[dimen=m](-12,-12)(12,12)         \pstVerb{/AA 1 5 atan def /RR 26 sqrt def}         \pscustom[fillstyle=eofill,fillcolor=red,linearc=#1]         {                 \pscircle{3}                 \moveto(5,-1)                 \psLoop{6}                 {                         \translate(5,0)                         \psline(0,-1)(4,-1)(4,1)(0,1)                         \translate(-5,0)                         \psarc(0,0){!RR}{!AA}{!60 AA sub}                         \rotate{60}                 }                 \closepath         }     \end{pspicture}}          \begin{document}     \Atom{.5}     \Atom{0}     \end{document}      What causes the strange output for nonzero `linearc` below? ## Output for `linearc=.5` ![enter image description here](http://i.stack.imgur.com/6hxkX.png) ## Output for `linearc=0` ![enter image description here](http://i.stack.imgur.com/hX8OY.png) ## Edit According to Werner's comment, it is related to precision issue. Is there a smart solution to solve it?


title: Why does \foreach \x in {0,1,...,0}{} perform two iterations (instead of one)?

text: See the following MWE to understand what I mean better.               \documentclass[preview,border=12pt]{standalone}     \usepackage{pgffor,multido}     \begin{document}     \section*{foreach}     \foreach \ix in {0,1,...,3}{%         \foreach \iy in {0,1,...,\ix}{(\ix,\iy)\ }\endgraf}          \section*{multido}     \multido{\ix=0+1}{4}{%         \multido{\iy=0+1}{\the\numexpr\ix+1\relax}{(\ix,\iy)\ }\endgraf}     \end{document}      ![enter image description here](http://i.stack.imgur.com/iu3Um.png) Why cannot `\foreach \x in {0,1,...,0}{}` discharge the second iteration?


title: Including bibliography in LaTex gives error

text: I'm writing an IEEE paper and I wanted to use the IEEEtran bibliography style for my research paper. I used the following code to add the bibliography               \documentclass[conference]{IEEEtran}     \title{Title}     }     \begin{document}     \bibliographystyle{IEEEtran}     \bibliography{myreferences}     \end{document}      When I compile the code using PDFLatex for first time it will not generate any error, infact it generates a new file called myPaper.bbl and when I compile the document for second time I get the following error               ./myPaper.bbl:3:Something's wrong--perhaps a missing \item. \end{thebibliography}      The contents of `myPaper.bbl` are               % Generated by IEEEtran.bst, version: 1.13 (2008/09/30)     \begin{thebibliography}{}     \providecommand{\url}[1]{#1}     \csname url@samestyle\endcsname     \providecommand{\newblock}{\relax}     \providecommand{\bibinfo}[2]{#2}     \providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}     \providecommand{\BIBentryALTinterwordstretchfactor}{4}     \providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus     \BIBentryALTinterwordstretchfactor\fontdimen3\font minus       \fontdimen4\font\relax}     \providecommand{\BIBforeignlanguage}[2]{{%     \expandafter\ifx\csname l@#1\endcsname\relax     \typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%     \typeout{** loaded for the language `#1'. Using the pattern for}%     \typeout{** the default language instead.}%     \else     \language=\csname l@#1\endcsname     \fi     #2}}     \providecommand{\BIBdecl}{\relax}     \BIBdecl          \end{thebibliography}      One more observation I made is, if I change the style of bibliography from IEEEtran to plain, in this case also I notice the same error. After doing this change what I understood is, the problem is not with the IEEEtran file or plain style file, the only problem is because of the myPaper.bbl file which is being created automatically. I couldn't understand about the problem more than this as my knowledge in kile documents is limited. Could someone please help me solve this issue.


title: Macro for pgfplot cycle list entry

text: I'm trying to define multiple cycle lists based on macro variables. The reason for this is that I need more than one list and I want to be able to change the appearance quickly while keeping the coherence.               \documentclass{standalone}     \usepackage{pgfplots}               \begin{document}          \newcommand{\var1}{solid, red, every mark/.append style={solid, fill=red}, mark=o}     \newcommand{\var2}{dashed, blue, every mark/.append style={solid, fill=blue}, mark=x}          \pgfplotscreateplotcyclelist{cycle1}{     \var1\\%     \var2\\%     }     \pgfplotscreateplotcyclelist{cycle2}{     \var1\\%     }     \begin{tikzpicture}        \begin{axis}[cycle list name = cycle1]             \addplot             coordinates             {                 (0,0)                 (10,5)             };             \addplot+[only marks,forget plot]             coordinates             {                 (0,0)                 (10,7)             };         \end{axis}          \end{tikzpicture}     \end{document}      This code-example fails with the message               ! Undefined control sequence.     \pgfkeyscurrentkey ->\var1      It has probably got something to do with macro-expansion, so I tried `\noexpand` and `\expandafter` but none of them seem to work.


title: Why is my algorithm nowhere to be found in the PDF?

text: I need to typeset a pseudocode algorithm. (I use **TexStudio** on **Windows 7**.) If I put the code in a single new tex file, I can see the pdf file. But, I cannot see it if I put it inside one of the other tex files. I have many tex files that cannot be shown here. But, the other parts can be displayed well, only the algorithm part disappear.               \documentclass[11pt]{article}     \usepackage{amsmath}     \usepackage{algpseudocode}     \usepackage{algorithm}          \begin{document}          \begin{algorithm*}  **// add star here**      \caption{Euclid’s algorithm}\label{euclid}     \begin{algorithmic}[1]       \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}       \State $r\gets a\bmod b$       \While{$r\not=0$}\Comment{We have the answer if r is 0}       \State $a\gets b$       \State $b\gets r$       \State $r\gets a\bmod b$       \EndWhile\label{euclidendwhile}       \State \textbf{return} $b$\Comment{The gcd is b}      \EndProcedure     \end{algorithmic}     \end{algorithm*}          \end{document}      Compilation works fine (I get no errors), but the algorithm is nowhere to be found in the PDF file. To repeat, I use the following packages:                \usepackage{amsmath}      \usepackage{algpseudocode}      \usepackage{algorithm}      If I put the algorithm part in this way :               mark1        "the algorithm part"      mark2 **UPDATE** The output :                 ----------------------------------       caption        -----------------------------------                the algorithm, but , it crosses two columns , is it possible to make it only occupy one column, my article is two column style.       I can see the "mark1" and "mark2" in pdf but not the "the algorithm part". Any idea?


title: Changing style of Proof

text: I'm using the `\begin{proof}` of the `amsthm` package. And I want to change the style of the `Proof` word that is added in the beginning. By default it is italic, I want to make it bold. How can I do it?


title: Example from tutorial does not work: problem with edge style in graph

text: I tried an example from the TikZ tutorial:               \documentclass{article}          \usepackage{tikz}     %\usepackage{pgfsys}      \usetikzlibrary{positioning}     \usetikzlibrary{graphs}     %\usetikzlibrary{arrows}     %\usetikzlibrary{topaths}     \usetikzlibrary{shapes.misc}          \tikzset {     terminal/.style={     rounded rectangle,% : the shape     minimum size=6mm,% size      very thick,draw=black!50,% border      top color=white,bottom color=black!20,% filling with shading      font=\ttfamily % font      },     nonterminal/.style={     rectangle,% : the shape     minimum size=6mm,% size      very thick,draw=red!50!black!50,% border      top color=white,bottom color=red!50!black!20,% filling with shading      font=\itshape % font      },     point/.style={circle,inner sep=0pt,minimum size=2pt,fill=red},     skip loop/.style={to path={-- ++(0,#1) -| (\tikztotarget)}},     hv path/.style={to path={-| (\tikztotarget)}},     vh path/.style={to path={|- (\tikztotarget)}}     } % \tikzset          \begin{document}          text          \begin{tikzpicture}     \matrix[row sep=1mm,column sep=2mm] {     % First row:     & & & & & & & & & & & \node (plus) [terminal] {+};\\     % Second row:     \node (p1) [point] {}; &     \node (ui1) [nonterminal] {unsigned integer}; &     \node (p2) [point] {}; &     \node (dot) [terminal] {.}; &     \node (p3) [point] {}; &     \node (digit) [terminal] {digit}; &     \node (p4) [point] {}; &     \node (p5) [point] {}; &     \node (p6) [point] {}; &     \node (e) [terminal] {E}; &     \node (p7) [point] {}; &      &     \node (p8) [point] {}; &     \node (ui2) [nonterminal] {unsigned integer}; &     \node (p9) [point] {}; &     \node (p10) [point] {};\\     % Third row:     & & & & & & & & & & & \node (minus)[terminal] {-};\\     };     \graph[use existing nodes]  {     p1 -> ui1 -- p2 -> dot -- p3 -> digit -- p4     -- p5 -- p6 -> e -- p7 -- p8 -> ui2 -- p9 -> p10;     %p4 ->[skip loop=-5mm]      %p3;     % p2 ->%[skip loop=5mm]      % p5;     % p6 ->%[skip loop=-11mm]     %  p9;     % p7 ->%[vh path]      % plus -> %[hv path]      % p8;     % p7 ->%[vh path]      % minus -> %[hv path]      % p8;     };     \path (p4) edge [->,skip loop=-5mm] (p3)     (p2) edge [->,skip loop=5mm] (p6);     \end{tikzpicture}     \end{document}      That code works. However, if I replace the edges with `skip loop` by the ones in the path, so that it looks like in the example, LaTeX tells me:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/TeX Live for SUSE Linux)     ...     ! Package pgfkeys Error: I do not know the key '/tikz/graphs/skip loop' and I am going to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.90 }           ;      I Actually uncommented               % p2 ->%[skip loop=5mm]      % p5;      The same thing happens with the parts of the graph containing `vh path` and `hv path`. What am I doing wrong? It seems as if styles of nodes work but styles of edges do not. I dont understand this.... Maybe the log file for the ok-case i added below gives some hint. I feel, it does not look very smooth, does it?!               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/TeX Live for SUSE Linux) (format=pdflatex 2014.8.9)  9 AUG 2014 20:02     entering extended mode      restricted \write18 enabled.      %&-line parsing enabled.     **\input test.tex     (./test.tex (/usr/share/texmf/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty     (/usr/share/texmf/tex/latex/pgf/basiclayer/pgf.sty     (/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty     (/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex     \pgfutil@everybye=\toks14     )     (/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-latex.def     \pgfutil@abb=\box26          (/usr/share/texmf/tex/latex/ms/everyshi.sty     Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)     ))     (/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex     Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24)     ))     Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12)          (/usr/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty     (/usr/share/texmf/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          (/usr/share/texmf/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks15     )     (/usr/share/texmf/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          (/usr/share/texmf/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (/usr/share/texmf/tex/latex/latexconfig/graphics.cfg     File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live     )     Package graphics Info: Driver file: pdftex.def on input line 91.          (/usr/share/texmf/tex/latex/pdftex-def/pdftex.def     File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX          (/usr/share/texmf/tex/generic/oberdiek/infwarerr.sty     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     (/usr/share/texmf/tex/generic/oberdiek/ltxcmds.sty     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     \Gread@gobject=\count87     ))     \Gin@req@height=\dimen103     \Gin@req@width=\dimen104     )     (/usr/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty     (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex     Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37)          (/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex     \pgfkeys@pathtoks=\toks16     \pgfkeys@temptoks=\toks17          (/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex     \pgfkeys@tmptoks=\toks18     ))     \pgf@x=\dimen105     \pgf@y=\dimen106     \pgf@xa=\dimen107     \pgf@ya=\dimen108     \pgf@xb=\dimen109     \pgf@yb=\dimen110     \pgf@xc=\dimen111     \pgf@yc=\dimen112     \w@pgf@writea=\write3     \r@pgf@reada=\read1     \c@pgf@counta=\count88     \c@pgf@countb=\count89     \c@pgf@countc=\count90     \c@pgf@countd=\count91          (/usr/share/texmf/tex/generic/pgf/systemlayer/pgf.cfg     File: pgf.cfg 2008/05/14  (rcs-revision 1.7)     )     Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900.          (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-pdftex.def     File: pgfsys-pdftex.def 2009/05/22  (rcs-revision 1.26)          (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def     File: pgfsys-common-pdf.def 2008/05/19  (rcs-revision 1.10)     )))     (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex     File: pgfsyssoftpath.code.tex 2008/07/18  (rcs-revision 1.7)     \pgfsyssoftpath@smallbuffer@items=\count92     \pgfsyssoftpath@bigbuffer@items=\count93     )     (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     ))     (/usr/share/texmf/tex/latex/xcolor/xcolor.sty     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          (/usr/share/texmf/tex/latex/latexconfig/color.cfg     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: pdftex.def on input line 225.     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcore.code.tex     Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)          (/usr/share/texmf/tex/generic/pgf/math/pgfmath.code.tex     (/usr/share/texmf/tex/generic/pgf/math/pgfmathcalc.code.tex     (/usr/share/texmf/tex/generic/pgf/math/pgfmathutil.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathparser.code.tex     \pgfmath@dimen=\dimen113     \pgfmath@count=\count94     \pgfmath@box=\box27     \pgfmath@toks=\toks19     \pgfmath@stack@operand=\toks20     \pgfmath@stack@operation=\toks21     )     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.code.tex     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)))     (/usr/share/texmf/tex/generic/pgf/math/pgfmathfloat.code.tex     \c@pgfmathroundto@lastzeros=\count95     ))     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex     File: pgfcorepoints.code.tex 2010/04/09  (rcs-revision 1.20)     \pgf@picminx=\dimen114     \pgf@picmaxx=\dimen115     \pgf@picminy=\dimen116     \pgf@picmaxy=\dimen117     \pgf@pathminx=\dimen118     \pgf@pathmaxx=\dimen119     \pgf@pathminy=\dimen120     \pgf@pathmaxy=\dimen121     \pgf@xx=\dimen122     \pgf@xy=\dimen123     \pgf@yx=\dimen124     \pgf@yy=\dimen125     \pgf@zx=\dimen126     \pgf@zy=\dimen127     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex     File: pgfcorepathconstruct.code.tex 2010/08/03  (rcs-revision 1.24)     \pgf@path@lastx=\dimen128     \pgf@path@lasty=\dimen129     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex     File: pgfcorepathusage.code.tex 2008/04/22  (rcs-revision 1.12)     \pgf@shorten@end@additional=\dimen130     \pgf@shorten@start@additional=\dimen131     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex     File: pgfcorescopes.code.tex 2010/09/08  (rcs-revision 1.34)     \pgfpic=\box28     \pgf@hbox=\box29     \pgf@layerbox@main=\box30     \pgf@picture@serial@count=\count96     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex     File: pgfcoregraphicstate.code.tex 2008/04/22  (rcs-revision 1.9)     \pgflinewidth=\dimen132     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex     File: pgfcoretransformations.code.tex 2009/06/10  (rcs-revision 1.11)     \pgf@pt@x=\dimen133     \pgf@pt@y=\dimen134     \pgf@pt@temp=\dimen135     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorequick.code.tex     File: pgfcorequick.code.tex 2008/10/09  (rcs-revision 1.3)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex     File: pgfcorepathprocessing.code.tex 2008/10/09  (rcs-revision 1.8)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex     File: pgfcorearrows.code.tex 2008/04/23  (rcs-revision 1.11)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex     File: pgfcoreshade.code.tex 2008/11/23  (rcs-revision 1.13)     \pgf@max=\dimen136     \pgf@sys@shading@range@num=\count97     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex     File: pgfcoreimage.code.tex 2010/03/25  (rcs-revision 1.16)          (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex     File: pgfcoreexternal.code.tex 2010/09/01  (rcs-revision 1.17)     \pgfexternal@startupbox=\box31     ))     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex     File: pgfcorelayers.code.tex 2010/08/27  (rcs-revision 1.2)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex     File: pgfcoretransparency.code.tex 2008/01/17  (rcs-revision 1.2)     )     (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex     File: pgfcorepatterns.code.tex 2009/07/02  (rcs-revision 1.3)     )))     (/usr/share/texmf/tex/generic/pgf/modules/pgfmoduleshapes.code.tex     File: pgfmoduleshapes.code.tex 2010/09/09  (rcs-revision 1.13)     \pgfnodeparttextbox=\box32     )     (/usr/share/texmf/tex/generic/pgf/modules/pgfmoduleplot.code.tex     File: pgfmoduleplot.code.tex 2010/10/22  (rcs-revision 1.8)     )     (/usr/share/texmf/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty     Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7)     \pgf@nodesepstart=\dimen137     \pgf@nodesepend=\dimen138     )     (/usr/share/texmf/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty     Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1)     ))     (/usr/share/texmf/tex/latex/pgf/utilities/pgffor.sty     (/usr/share/texmf/tex/latex/pgf/utilities/pgfkeys.sty     (/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex))     (/usr/share/texmf/tex/generic/pgf/utilities/pgffor.code.tex     Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18)     \pgffor@iter=\dimen139     \pgffor@skip=\dimen140     \pgffor@stack=\toks22     \pgffor@toks=\toks23     ))     (/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex     Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76)          (/usr/share/texmf/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex     File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15)     \pgf@plot@mark@count=\count98     \pgfplotmarksize=\dimen141     )     \tikz@lastx=\dimen142     \tikz@lasty=\dimen143     \tikz@lastxsaved=\dimen144     \tikz@lastysaved=\dimen145     \tikzleveldistance=\dimen146     \tikzsiblingdistance=\dimen147     \tikz@figbox=\box33     \tikz@tempbox=\box34     \tikztreelevel=\count99     \tikznumberofchildren=\count100     \tikznumberofcurrentchild=\count101     \tikz@fig@count=\count102          (/usr/share/texmf/tex/generic/pgf/modules/pgfmodulematrix.code.tex     File: pgfmodulematrix.code.tex 2010/08/24  (rcs-revision 1.4)     \pgfmatrixcurrentrow=\count103     \pgfmatrixcurrentcolumn=\count104     \pgf@matrix@numberofcolumns=\count105     )     \tikz@expandcount=\count106          (/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopat     hs.code.tex     File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2)     )))     (/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryposit     ioning.code.tex     File: tikzlibrarypositioning.code.tex 2008/10/06 v2.10 (rcs-revision 1.7)     )     (/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibra     rygraphs.code.tex     File: tikzlibrarygraphs.code.tex 2010/10/23 v2.10 (rcs-revision 1.1)     )     (/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryshape     s.misc.code.tex     File: tikzlibraryshapes.misc.code.tex 2008/01/09 v2.10 (rcs-revision 1.1)          (/usr/share/texmf/tex/generic/pgf/libraries/shapes/pgflibraryshapes.misc.code.t     ex     File: pgflibraryshapes.misc.code.tex 2008/10/07 v2.10 (rcs-revision 1.3)     )) (./test.aux)     \openout1 = `test.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 33.     LaTeX Font Info:    ... okay on input line 33.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 33.     LaTeX Font Info:    ... okay on input line 33.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 33.     LaTeX Font Info:    ... okay on input line 33.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 33.     LaTeX Font Info:    ... okay on input line 33.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 33.     LaTeX Font Info:    ... okay on input line 33.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 33.     LaTeX Font Info:    ... okay on input line 33.      ABD: EveryShipout initializing macros     (/usr/share/texmf/tex/generic/oberdiek/pdftexcmds.sty     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )          (/usr/share/texmf/tex/generic/oberdiek/ifluatex.sty     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     (/usr/share/texmf/tex/generic/oberdiek/ifpdf.sty     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is detected.     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode found.     )     (/usr/share/texmf/tex/latex/oberdiek/epstopdf-base.sty     Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf          (/usr/share/texmf/tex/latex/oberdiek/grfext.sty     Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)          (/usr/share/texmf/tex/generic/oberdiek/kvdefinekeys.sty     Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)     ))     (/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)          (/usr/share/texmf/tex/generic/oberdiek/kvsetkeys.sty     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          (/usr/share/texmf/tex/generic/oberdiek/etexcmds.sty     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     Package grfext Info: Graphics extension search list:     (grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE     G,.JBIG2,.JB2,.eps]     (grfext)             \AppendGraphicsExtensions on input line 452.          (/usr/share/texmf/tex/latex/latexconfig/epstopdf-sys.cfg     File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv     e     ))     Missing character: There is no p in font nullfont!     Missing character: There is no g in font nullfont!     Missing character: There is no f in font nullfont!     Missing character: There is no @ in font nullfont!     Missing character: There is no s in font nullfont!     Missing character: There is no t in font nullfont!     Missing character: There is no o in font nullfont!     Missing character: There is no p in font nullfont!          Overfull \hbox (30.17874pt too wide) in paragraph at lines 93--94     [][]       []          [1          {/usr/share/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )      Here is how much of TeX's memory you used:      10189 strings out of 493315      199059 string characters out of 6145894      256968 words of memory out of 5000000      13455 multiletter control sequences out of 15000+600000      4154 words of font info for 16 fonts, out of 8000000 for 9000      957 hyphenation exceptions out of 8191      56i,14n,79p,429b,905s stack positions out of 5000i,500n,10000p,200000b,80000s     </usr/shar     e/texmf/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf/fonts/type1/     public/amsfonts/cm/cmti10.pfb></usr/share/texmf/fonts/type1/public/amsfonts/cm/     cmtt10.pfb>     Output written on test.pdf (1 page, 33969 bytes).     PDF statistics:      27 PDF objects out of 1000 (max. 8388607)      18 compressed objects within 1 object stream      0 named destinations out of 1000 (max. 500000)      25 words of extra memory for PDF output out of 10000 (max. 10000000)


title: LuaTeX error "table index is nil" loading Cinzel OTF font with fontspec

text: In a LuaLaTeX document I am creating with MiKTeX 2.9 64-bit (LuaTeX version beta-0.70.2-2012060719) in Windows 7, I get the following error:               ! LuaTeX error ...)/MiKTeX 2.9/tex/luatex/luaotfload/otfl-font-otf.lua:553: table index is nil.       <to be read again>                           \scan_stop:        l.10     {Cinzel-Regular}`        Here is an MWE:               \documentclass[letterpaper,twoside,10pt,extrafontsizes, onecolumn,openany,final]{memoir}       \usepackage{luatextra} % Package also loads fontspec       \newfontfamily\memfont[Path=./Fonts/,%           Extension=.otf,%           ItalicFont=CinzelDecorative-Regular,%           BoldFont=Cinzel-Bold,%           BoldItalicFont=CinzelDecorative-Bold]%           {Cinzel-Regular}       \begin{document}       \memfont       blah!       \end{document}      If I hit Enter to continue, I get a fontspec error saying that the font can't be found, which is silly. Other fonts load fine from the same location, and Cinzel loads without a hitch when run in XeLaTeX; neither spelling or directory information mistakes are the problem. It seems that there is something about Cinzel that LuaTeX just doesn't like--a missing "table" of some sort that Lua looks for in the font file that XeTeX just ignores, possibly. If anyone wants to poke around in the font itself with FontForge, Cinzel is freely distributed under the SIL Open Font License. Or is LuaTeX just being perverse? Any workaround for this? Or will I have to give up on Cinzel, a truly gorgeous font?


title: Using totcount with lastpage

text: My goal is to achieve n of m type page numbering if the document has more than 1 page and no page numbers otherwise. I have no problem putting n of m page numbers thanks to How can I add "page # of ##" on my document?. My plan was to use the totcount package to test the total number of pages. The problem is that the lastpage package screws up the total count. Specifically, the resulting 1 page document of the following MWE:               \documentclass{article}     \usepackage{lastpage}     \usepackage{totcount}     \regtotcounter{page}     \begin{document}     totcount: \total{page}          lastpage: \pageref{LastPage}     \end{document}      has `\total{page}` equal to 2 while `\pageref{LastPage}` is equal to 1. Any ideas what is going on?


title: commath and \ifinner

text: The `commath` package use the TeX command `\ifinner` to select between inline math mode and display math mode. Because of this, it fail to work properly with some display math environments. In the `breq`n package, we find: > The test `\ifinner` is unreliable for distinguishing whether we are in a > displayed formula or an inline formula: (...) So we provide a more reliable > test. But it might have been provided already by the amsmath package. The more reliable test should be `\if@display` but only replace `\ifinner` with `\if@display` in `commath.sty` not work. Any suggestion?


title: problem with image rotation

text: I am facing a weird problem. I am trying to include an eps file into my thesis. The code I am using is as follows:                \documentclass[11pt,twoside]{ce}      \usepackage{graphicx}      \usepackage{wrapfig}      \usepackage{color}      \usepackage{caption}      \usepackage{amsmath}      \usepackage{amssymb}      \usepackage{float}      \usepackage{url}      \begin{document}           \newpage           \begin{figure}[H]          \includegraphics[angle=45,width=0.75\textwidth]{images/final.eps}           \caption{Final image}           \label{fig:final}       \end{figure} %working code, page does not rotate. just image rotates.                \end{document}      This code works. But when I rotate the image with 90 deg., the image rotates but the page also rotates. If I rotate it by an angle less than or equal to 45, then the page does not rotate and only the image rotates. When the rotation is greater than 45, the page and image both rotate.                \begin{figure}[H]          \includegraphics[angle=46,width=0.75\textwidth]{images/final.eps}           \caption{Final image}           \label{fig:final}       \end{figure} % non-working code, image as well as page rotates.           \begin{figure}[H]          \includegraphics[angle=90,width=0.75\textwidth]{images/final.eps}           \caption{Final image}           \label{fig:final}       \end{figure} % non-working code, image as well as page rotates.      I want to rotate the image by 90 deg but not the page. Since each page has a header, page rotation is annoying me. Due to rotation of the page, the header comes to the right side, instead of being on the top. Can somebody help?


title: Biblatex: Get rid of ISSN, URLs and DOIs in references

text: My `.bib` files are generated by Mendley desktop and usually contain URLs, ISSN and DOIs, but I don't want those to be displayed in my list of references. How can I get rid of them (short of deleting those from the entries, I just want to not display them...) I am using `biblatex`.


title: Can't get a complex table work

text: I'm trying to create a complex table, but at the current point I have no idea how to proceed... because there are some questions in it, I'll start a "50" bounty for the question! So the answer will get some points ;-) ![enter image description here](http://i.stack.imgur.com/ZGLM1.png) The problems I have are the following:   * The last line with UC7.1 has no space to the row above. I've tried to fix it with parbox, but no luck   * The next thing is the incomplete vertical line at the very left. I've tried it with the "multirow" trick I found here but again no luck   * how can I use black vertical lines between the x's and light gray vertical lines between the UC1, UC1.1, ...  Here's my latex code               \newcommand{\rotfortabtop}[1]{\begin{sideways}\parbox[b][0cm][c]{1.3cm}{#1}\end{sideways}}     \newcommand{\rotfortabbottom}[1]{\begin{sideways}\parbox[t][0cm][c]{1.9cm}{\raggedleft{#1}}\end{sideways}}          \begin{tabular}{l c c c c c c c c c c c c c c c c c }        & \rotfortabtop{UC1} & \rotfortabtop{UC1.1} & \rotfortabtop{UC1.2}        & \rotfortabtop{UC1.3} & \rotfortabtop{UC2} & \rotfortabtop{UC3.1} & \rotfortabtop{UC3.2}        & \rotfortabtop{UC4.1} & \rotfortabtop{UC4.2} & \rotfortabtop{UC4.3} &        \rotfortabtop{UC4.4} & \rotfortabtop{UC5} & \rotfortabtop{UC6} &        \rotfortabtop{UC6.1} & \rotfortabtop{UC6.2} & \rotfortabtop{UC6.3} &        \rotfortabtop{UC6.4} \\ \hline        \multicolumn{1}{|l|}{\multirow{2}{*}{Beispiel}} & \checkmark & \checkmark & x & x & x & x & x & x        & x & x & x & x & x & x & x & x & x \\ \cline{2-18} & \checkmark & \checkmark        & x & x & x & x & x & x & x & x & x & x & x & x & x & x & x \\        \hline & \rotfortabbottom{UC7.1} & \rotfortabbottom{UC7.2} &        \rotfortabbottom{UC8.1} & \rotfortabbottom{UC8.2} & \rotfortabbottom{UC9} & \rotfortabbottom{NFA1} &        \rotfortabbottom{NFA2} & \rotfortabbottom{NFA3} & \rotfortabbottom{NFA4} &        \rotfortabbottom{NFA5} & \rotfortabbottom{NFA6} & \rotfortabbottom{NFA7} & & & & & \\ \hline     \end{tabular}      Thank you!


title: LaTeX syntax for karp reduction

text: What is the LaTeX syntax for Karp reduction (i.e. the lesser than sign with curved lines instead of straight lines)?


title: Is it possible to create a hyperlink from an \includegraphics picture?

text: I'd like to make an image clickable, meaning I want to turn it into a hyperlink. I am including the image via `\includegraphics` but I am not sure how to make it clickable. Anyone knows how to do that?


title: What is the right way to indent your source code?

text: This is probably a really basic question: When I write code, I want to achieve a logical and readable structure of the lines, where I can see which brace closes which brace.               \begin{equation}      \begin{multlined}       Here is some random equation that goes on for a long time      \end{multlined}     \end{equation}      If the equation (here I am referring to the source code, not the compiled document) goes on to where it needs to jump to the next line, it is left- aligned, which screws up the indentation. I can manually add some spaces, but then if I change the size of the window, it realigns and is wrong again. What is the right way to achieve a logical indentation? My apologies if this has been asked before; I did not find it on previously asked questions. **Edit:** Sorry, forgot to mention, I am using writelatex.com as my editor.


title: How do I reference supplementary files such as tables in Excel format?

text: Some of the information I need to include in my thesis are extremely long tables that will only be provided in the digital copy as supplementary files, most likely in Excel's XLS format or similar. Now, these supplementary tables obviously need to be named and referenced and I would like to use the LaTeX way, i.e., not writing:               ...the full list is provided in Supplementary Table 2.4.      but rather:               ...the full table is provided in Supplementary Table~\ref{tab:FullList}.      and then have the expected output. I understand this is a not-so-common scenario, so I'm wondering if this is even possible. If yes, what's the right way to do it?


title: Multicols and row spacing

text: I am having trouble with spacing in using multicols. I am trying to give my students enough space to answer each part. However, each part does not line up. I am wondering if there is a single command I can give each time so the rows are automatically spacing a certain distance. I am new to this site.. Here is a MWE               \documentclass[12pt]{exam}     \usepackage{multicol}     \usepackage{amsfonts}     \usepackage{amssymb}          \usepackage{amsmath}           \begin{document}                   \begin{questions}             \question Use the power rule to differentiate                  \begin{multicols}{2}                     \begin{parts}                         \part $\dfrac{1}{x^3}$                             \vspace{1.5in}                              \part $x^{\frac{1}{2}}$                             \vspace{1.5in}                         \part $\dfrac{1}{\sqrt[3]{x}}$                             \vspace{1.5in}                         \part   $y=x\sqrt{15}$                             \vspace{1.5in}                         \part $3x^4+8x^{10}$                             \vspace{1.5in}                         \part $5x^4(2-x^3)$                             \vspace{1.5in}                         \part $(3x^2+5)(x-1)$                             \vspace{1.5in}                         \part $50x^5+\dfrac{3}{x}-7x^-\frac{5}{3}$                             \vspace{1.5in}                     \end{parts}                 \end{multicols}         \end{questions}     \end{document}      As you can see there is a problem with e and f being out of alignment. Thanks for any help. Nick


title: Another TeX capacity exceeded, sorry [input stack size=5000]

text: I got another error as below `TeX capacity exceeded, sorry [input stack size=5000]. [...ial,right= of m0] (A1B1C1) {$A_1B_1C_1$};]` Here is the code               \documentclass[12pt, a4paper, oneside]{standalone} % Paper size, default font size and one-sided paper     \usepackage{algorithm2e}     \usepackage{pdfpages}     \usepackage{listings}     \usepackage{parcolumns}     \usepackage{enumerate}               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % DRAWING PETRI NETS & DIAGRAMS     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage{pgf}     \usepackage{tikz}     \usepackage{makecell}          \usetikzlibrary{arrows,shapes,automata,petri,positioning,calc,fit,backgrounds,shapes.arrows,shapes.geometric,chains,matrix}     \tikzset{         data/.style={             ellipse,             thick,             draw=black,             minimum width = 2cm,         },         place/.style={             circle,             thick,             draw=blue,             fill=blue!20,             minimum size=6mm,         },         transition/.style={             rectangle,             thick,             draw=black,             fill=black!50,             minimum size=6mm         },         transitionH/.style={             rectangle,             thick,             fill=black,             minimum width=6mm,             minimum height=2mm         },         transitionHW/.style={             rectangle,             thick,             draw=black,             minimum width=6mm,             minimum height=2mm         },         transitionV/.style={             rectangle,             thick,             fill=black,             minimum width=2mm,             minimum height=6mm         },         transitionVW/.style={             rectangle,             thick,             draw=black,             minimum width=2mm,             minimum height=6mm         },         terminal/.style={             rounded rectangle,             thick,             draw=black         },         status/.style={             circle,             thick,             draw=black,             minimum size=15mm         },         decision/.style={             diamond,             aspect = 2,             thick,             draw=black         },         block/.style={             rectangle,             thick,             draw=black,             minimum width = 2cm,             rounded corners         },         borderE/.style={             ellipse,             thick,             draw=black         },         borderRd/.style={             rectangle,             thick,             draw=gray,             dashed,             rounded corners= 5mm         },         %double arrow         arrowD/.style={             double arrow,             fill = black,             double arrow head extend=1mm,             double arrow head indent =.5mm,             minimum width=3mm,             minimum height=7mm,             inner ysep=0.5mm         }     }               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % VIETNAMESE MACROS     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %\usepackage[vietnam]{babel}     \usepackage[utf8]{vietnam}          \begin{document}             %if need link to inside, use ``remember picture''         \begin{tikzpicture}[node distance=1cm,>=stealth',bend angle=25,auto,initial text={}]             \node [data,initial] (M0) {                 \begin{tikzpicture}                     \node (m0) {\begin{tabular}{c} $M_0$ \\ \_ \\ \_ \end{tabular}};                     \node [data, initial,right= of m0] (A1B1C1) {$A_1B_1C_1$};                 \end{tikzpicture}             };                 \end{tikzpicture}            \end{document}      But when i remove the `initial` in `\node [data, initial,right= of m0] (A1B1C1) {$A_1B_1C_1$};` everything is okie. (see the image without the red arrow) I want that arrow, and I dont know why it got error like that. PS: In case you wonder about the nested `tikzpicture`, because I want to create nested node. Acording to this nested node ![enter image description here](http://i.stack.imgur.com/tdzB7.png)


title: How to abbreviate a thesis title on the top of each page

text: My thesis title is very long (two lines). LaTeX outputs it ok on the title page, but smashes the whole title together into a single line on subsequent pages, as sort of an automatic heading which bleeds into the margins. What command do I use to include an abbreviated title (i.e. the part before the colon)? FOR EXAMPLE: If the main title is               This is the first half of my title: this is the second half followed by a colon.      The automatic title heading on subsequent pages should be               This is the first half of my title.      I am using `\documentclass[11pt]{amsart}`. I am also substituting `amsart` with `amsproc` and `amsbook`. The result is the same for all three cases. What should I do? MWE               \documentclass[twoside,onecolumn,11pt,reqno, a4paper]{amsart}      \usepackage{amsmath}      \usepackage{amsthm}      \usepackage{amssymb}      \usepackage{mathrsfs}      \usepackage{graphicx}      \usepackage{microtype}      \usepackage[color]{showkeys}      \usepackage{mathptmx}      \usepackage[T1]{fontenc}          \title{Super Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Title}          \begin{document}      \cleardoublepage      \tableofcontents      \cleardoublepage      \maketitle      \begin{abstract}      \end{abstract}      \pagenumbering{arabic}      \setcounter{page}{1}      \section{Introduction}      \section{Two}      \subsection{Subsection}      \subsection{Subsection}      \subsection{Subsection}      \subsection{Subsection}      \section{Three}      \subsection{Subsection}      \subsection{Subsection}      \subsection{Subsection}      \subsection{Subsection}      \begin{thebibliography}{3}      \end{thebibliography}      \end{document}


title: Would it make sense to write a TeX algorithms implementation in Cairo/Pango, so that it can be used to output anything Cairo can?

text: What I'd like to do is experiment with a TeX renderer, and write it in a good graphics library, which includes font support, so I ended up with Cairo. Does it make sense to write a typesetting library/program on top of Cairo/Pango? Note I'm not interested in full-blown LaTeX compatibility, just basic math and text (yes, I know that won't cut it in the long run for beatiful documents...).


title: How to do group of this equations?

text: Here (P1) denotes problem 1 and (P2) denotes problem 2. (D1) and (D2) denotes their relaxations. I want to pose the question whether the relaxations may or may not be equal. I am familiar with writing the individual problems in latex. While I am not sure how to align them to do whatever is written in the paper. This is a crude form of what I want to achieve? ![enter image description here](http://i.stack.imgur.com/MGc2q.jpg)


title: Drawing multicolumn table in latex

text: I have a problem for drawing a multicolumn table in ieeetran latex. This is what I want to draw: ![enter image description here](http://i.stack.imgur.com/o6tUn.png) However, I couldn't manage it. I am having problem to add OBR and AR rows. I tried some codes, none of them worked. My last trial is:               \begin{table}[!h]     \centering              \caption{caption}              \label{tab:table}              \begin{small}         \begin{tabular}{|l|l|l|l|}         \hline         & \multicolumn{6} {c|} {\bfseries Dataset} & {\bfseries  A} &{\bfseries B}  & {\bfseries C}\\         \cline{2-7}         {\bfseries } & {\bfseries OBR} &{\bfseries AR}  & {\bfseries OBR} &{\bfseries AR} & {\bfseries OBR} &{\bfseries AR}\\         \hline         D1        & 2.1\%   &   2.1\%   2.1\%  & 2.1\%  &   2.1\%   2.1\%   \\         \hline         D2         & 11.6\% &11.6\% & 11.6\%  & 2.1\%   &   2.1\%   2.1\%\\         \hline         D3          & 5.5\%     &   5.5\%   & 5.5\%   & 2.1\%   &   2.1\%   2.1\%  \\         \hline         \end{tabular}         \end{small}      \end{table}      May I request anyone to help me for drawing this table? I will be very grateful.


title: Extra 0.1cm after setting geometry top margin

text: I try to set 3cm for top margin of the paper with `geometry` package. After I measure the real length of top margin with PDF, this is actually 3.1 cm. There are a 0.1 extra space there. Also, I spot many inconsistencies with below margin. At one page it is exactly 3cm. At many pages it exceeds or lack 0.1cm from exact wanted margin. Beside `geometry`, I also use `fancydhr`, and customize some native pagestyle. Here is my MWE.               \documentclass[12pt, a4paper, onecolumn, oneside, final]{report}     \usepackage[paper=a4paper,headheight=0pt,left=4cm,top=3cm,right=3cm,bottom=3cm]{geometry}     \setlength{\footskip}{0.5cm}     \usepackage{fancyhdr}     \fancypagestyle{plain}     {%      \fancyhf{}%      \fancyfoot[C]{\thepage}%      \fancyfoot[R]{\footnotesize {\fontfamily{phv}\selectfont{\bo{Dummy University}}}}      \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     }%     \begin{document}     Some text blah blah blah     \end{document}      Where actually bottom margin of `geometry` is measured from bottom side of paper? Right below 'g' or 'e'? Or--though I think it is least unlikely--it is just a flaw from pdf viewer used to measure size?


title: Cannot set pixel density in standalone package for PNG output

text: I want to output a PNG image with the `standalone` package. Here is a minimal working example:               \documentclass[preview, convert={density=300}]{standalone}          \begin{document}         Hello world     \end{document}      When I inspect the file properties of the resulting PNG file, I still get 72 dpi. Even without using the `preview` option, it's still at 72 dpi. However, if I convert to JPG using `convert={density=300, outext=.jpg}`, I'd get 300 dpi. How can this be fixed? My particular requirement would be to use the `preview` option and use the PNG image format.


title: Tikz picture larger then page

text: I have a graph, containing a few nodes, but because of the size of it dose it extend beond the page. How can i set it to automatic scale so it will fit the page? Also what can i do to center it on the page?               \begin{tikzpicture}[>=stealth, every node/.style={circle, draw, minimum size=0.75cm}]     \graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]         {[name=t1]             R -> {                 b',                 c,                 d',                 e             }         };     \begin{scope}[xshift=4.5cm]        \graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]         {[name=tb]             R -> {                 b,                 c,                 d,                 e             }         };       \end{scope}     \begin{scope}[xshift=9cm]        \graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]         {[name=t2]             R -> {                 b,                 c',                 d,                 e             }         };       \end{scope}     \begin{scope}[xshift=13.5cm]        \graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]         {[name=tm]             R -> {                 b',                 c',                 d',                 e             }         };       \end{scope}          \node[draw=none,label={above left:$n_{1}$}] at (t1 R) {};      \node[draw=none,label={above left:$n_{b}$}] at (tb R) {};      \node[draw=none,label={above left:$n_{2}$}] at (t2 R) {};      \node[draw=none,label={above left:$n_{m}$}] at (tm R) {};      \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/eP8GH.png)


title: Sorting citations using \cites command in biblatex

text: I am using `biblatex` for citations and bibliography. Now I often have lists of multiple citations, for which `biblatex` has the `\cites` command. Now I can get citations to automatically sort if I don't want page numbers, but I cannot get it right with page numbers. What I want is all citation ordered chronological (oldest first). Is this possible, or must I just do this by hand? Here is an example.               \documentclass[11pt,oneside]{memoir}          \usepackage[         style=authortitle,         useprefix=false,         maxnames=2,         firstinits=true,         sortcites=true,         uniquename=init,         abbreviate=true,         backend=biber,         sorting=ynt     ]{biblatex}          \begin{filecontents}{jobname.bib}     @book{tom1,       author = {Author, A.},       year = {2001},       title = {This book is from 2001},       shorttitle = {2001},     }     @book{tom2,       author = {Author, A.},       year = {1999},       title = {This book is from 1999},       shorttitle = {1999},     }     \end{filecontents}          \addbibresource{jobname.bib}               \begin{document}     This one is corrent.\footnote{\Cites{tom1,tom2}.}     This one is corrent.\footnote{\Cite{tom1,tom2}.}               This one is incorrent.\footnote{\Cites{tom1}{tom2}.}     This one is incorrent.\footnote{\Cites[1]{tom1}[12]{tom2}.}     \end{document}


title: Sort citations as they appear in the bibliography (biblatex)

text: According to the `biblatex` manual, the option `sortcites = true` makes sure that "citations are sorted according to the global sorting order of the bibliography" (§3.1.2.1). This is, however, not what I get (using the latest version of `biblatex`). As can be seen below, the order in the text citations is the opposite of the bibliography. How can I fix this?               \documentclass{article}     \usepackage{filecontents}     \usepackage[style=authoryear-comp,sortcites=true]{biblatex}     \begin{filecontents}{\jobname.bib}     @book{lennon1972a,         AUTHOR = "John Lennon",         TITLE = "Who did what in the Beatles",         YEAR = "1972"}     @book{lennon1972b,         AUTHOR = "John Lennon",         TITLE = "This is why I was the best musician in the Beatles",         YEAR = "1972"}     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}     \cites{lennon1972a}{lennon1972b}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/Iu73e.png)


title: How to create a citation that doesn't change when compiled?

text: I am compiling a bibliography using a BibTeX file. When I compile it into my LaTeXPDF file it changes my citations in the reference section. For example it abbreviates the author's name. Is there any way around this?


title: Beamer, philex and \hfill

text: I'm using the package `philex` for linguistic examples, and I try to put a textual element at the end of the line (right centered). I tried to use the `\hfill`command, but as the MWE will show you, it does not provide a coherent alignment.               \documentclass[12pt]{beamer}     \usepackage[francais]{babel}     \usepackage{philex}          \begin{document}          \begin{frame}{The syntactic ambiguity}         \lb{}{             \lba{}{Fred eats an apple. \hfill (a)}             \lbz{}{Fred eats an apple. \hfill (a)}           }     \end{frame}          \end{document}      Can someone help me fix this odd behavior?


title: Beamer.cls Error - How to install beamer

text: I installed TeXnicCenter Version 2.02 Stable (64 bit). I wanted to make `beamer` file for my thesis proposal. I already have my sample `beamer`, but when I run it, 3 errors occurred. It says > "Latex Error: File `beamer.cls' not found" I really need to `beamer`. Please help me. What should I do?


title: Double vertical spacing : how to fix this?

text: Consider the following :               \documentclass[12pt]{report}     \usepackage{amsmath, amssymb, amsthm}     \usepackage{lipsum}          \usepackage{tikz}     \usetikzlibrary{shadows}     \newcommand*\squared[1]{\tikz[baseline=(char.base)]{\node[shape=rectangle, draw, inner color = white, drop shadow = {opaque, black}, inner sep=3pt, text justified] (char) {#1};}}          \newtheoremstyle{exercise}       {\topsep}       {\topsep}       {\hangindent=2em}       {}       {}       {}       {.8em}       {\squared{\thmnumber{#2}}}          \theoremstyle{exercise}     \newtheorem{exercise}{}          \renewcommand{\arraystretch}{1.75}     \usepackage{tabularx}          \begin{document}          \begin{exercise}         \begin{tabularx}{\textwidth}[t]{r @{\hskip .4em} X}             a) & This is a test. \\             b) & I say             $$                 \pi \approx 3.14.             $$ \\             c) & Do you agree?         \end{tabularx}     \end{exercise}          \end{document}      It seems like the fact that b) finishes with math mode adds extra vertical spacing before c). But I would like the spacing to be uniform. That is, I want the same vertical space before b) and before c). How to do it ?


title: Calling all libertines

text: I've prepared a package that I hope can replace all current libertine packages (and provide partial compatibility with obsolete ones). If you have libertine- based documents please check it out and report problems to me at > rdt at cs.queensu.ca The package can be downloaded from ftp://linus.cs.queensu.ca/libertine.tds.zip To install this package on a TDS-compliant TeX system unzip the file `libertine.tds.zip` at the root of an appropriate texmf tree, likely a personal or local tree. If necessary, update the file name database (e.g., `texhash`). Update the font map files by enabling the map file `libertine.map`. For most purposes, simply add               \usepackage{libertine}      to the preamble of your document. Font encodings supported: OT1,T1,LY1,TS1. Engines supported: LaTeX, pdfLaTeX, xeLaTeX and luaLaTeX. More documentation in               doc/fonts/libertine/README


title: Automatic hyphenation in margin notes

text: I build a document with notes (like footnotes) on margins. I found help on LaTeX community and now my preamble looks like that:               \documentclass{book}          \usepackage{marginnote}     \renewcommand*{\marginfont}{\footnotesize}     \newcounter{mynote}     \newcommand{\mynote}[2][0]{     \refstepcounter{mynote}     \mbox{\textsuperscript{\themynote}}     \marginnote{\mbox{\textsuperscript{\themynote}}\hspace{0pt}#2}[#1\baselineskip}     \newcommand{\mybr}{-\\}      Everything works pretty well except automatic hyphenation. I need to divide words manually by using `\mybr{}`. I prefer ragged notes, but justified could be too, if automatic hyphenation works only like this.


title: Avoid multiple occurrence of a multi-page algorithm in the list of algorithms

text: I have a pseudocode which spreads in multiple pages. I tried `\algstore` and `\algrestore` (as advised in Algorithm over 2 pages) and it allows multiple pages but it causes problem with `\listofalgorithms` and it adds one line for each part. How can I make sure that it just adds for the first part?


title: how to pass the content of the TeX variable to Lua

text: How can I pass the content of the TeX variable `\jobname` to a Lua variable? (I am using LuaLaTeX with the `luacode` package.)


title: Bakoma TeX Word command line file opening

text: I am new to LaTeX/Bakoma TeX Word, and I have a query about Bakoma TeX Word. I can open a TeX file in using `texword.exe` from the command line:               C:\BaKoMa TeX\BIN\WIN32>texopen.exe D:\RS\RSTA\gms333\uiii.tex      and this works perfectly. What I would like to do is open a TeX file in Bakoma TeX Word in this way and jump directly to a line number/column number I specify. In WinEdt the same result can be obtained using               C:\yandy\WINEDT\WinEdt.exe -F [Open('D:\xx\333\aa.tex');SelPar(59,8)]


title: Algorithm not displayed under correct section

text: I'm using the `algorithm2e` package to put algorithm in my LaTeX documents. In my document, I have something like this :               \section My algorithms     \subsection Algo 1     code for first algorithm     ...               \subsection Algo 2     code for second algorithm     ...          \subsection Algo 3     code for third algorithm     ...          \subsection Algo 4     code for fourth algorithm     ...      and so on. The problem is that when producing the PDF, some algorithm are correctly displayed under their subsection, and some are displayed on other pages, not under the right section. I get something like this :               1. My algorithms     1.1 Algo 1         pseudo code for algo 1          1.2 Algo 2         pseudo code for algo 2          1.3 Algo 3     1.4 Algo 4     ---------------- next page -----------         pseudo code for algo 3     ---------------- next page -----------         pseudo code for algo 4      Here is the full LaTeX source code : http://www.filedropper.com/demo_1 Here is the PDF I get : http://www.filedropper.com/demo_2 Is there a way to make sure the algo will stick with its subsection ?


title: insert figure in sweave using knitr fig.path

text: I'm trying to insert a figure using Sweave which is located in the path `C:\Users\eccehomo\Documents\mi\fig1.png`. I'm using the package `knitr`which has a function called `fig.path`but I'm getting many errors for such a simple thing! Here's one of the things I have tried:               <<fig1,fig=TRUE>>=     library(knitr)     f='C:/Users/eccehomo/Documents/mi/fig1.png'     @          \includegraphics{f}


title: LaTeX finds .cls file but not .sty file in ~/texmf directory

text: I'm writing a paper that depends on a file `elsarticle.cls` and also a file `clrscode3e.sty` (they're for two different things - not related). I have placed both files in my `~/texmf` directory. When I remove anything in my .tex file dependent on `clrscode3e.sty` and compile with LaTeX, everything is fine and from the output formatting i can see that `elsarticle.cls` has clearly been recognised. When I add something which depends on `clrscode3e.sty`, I get "File clrscode3e.sty not found". To verify that I hadn't mistyped anything, I tried moving clrscode3e.sty into the same directory as the .tex file being compiled and everything worked fine. Why would LaTeX recognise a `.cls` file in my `~/texmf` directory but not a `.sty` file?


title: Pie chart with values as angles not percent

text: I want to draw the following pie chart, where in the divisions are mentioned in angles, not percentage. Please help ![enter image description here](http://i.stack.imgur.com/Oigbq.png)