title: Use hfill in array

text: I want to have two equations, in two lines, the first the most at left, the second, the most at right:               equation 1             equation 2      So, the newbie in me try to do               \documentclass{article}     \begin{document}          \parbox{0.3\textwidth}{       \[         \begin{array}{l}           equation 1\hfill\\           \hfill equation 2         \end{array}       \]     }          \end{document}      which, of course, does not work. I can replace the `\hfill` by a specific `\hspace{size}`, but it is not what I want: I want the space to be added to be calculated automatically. One (horrible) way to make it work is the following:               \documentclass{article}          \newcommand{\twoEq}[2]{       \begin{array}{p{\linewidth}}         \(\displaystyle{#1}\hfill\)\\         \(\displaystyle\hfill{#2}\)       \end{array}     }     \begin{document}          \parbox{0.3\textwidth}{       \[         \twoEq{equation 1}{equation 2}       \]     }          \end{document}      Can somebody propose a more elegant solution?


title: Why are not the dotted line and the page number showed up while using the acronym package with the xepersian package?

text: In the code below, despite using the `withpage` option, the dotted line and the page number are not showed up in the output pdf. How can I fix this problem?               \documentclass{book}     \usepackage[colorlinks]{hyperref}     \usepackage[printonlyused,withpage]{acronym}     \usepackage{xepersian} % http://ctan.org/pkg/xepersian     \begin{document}     \chapter{تست}     \section{تست}     تست     \ac{GSM}      \section{نمادها}     \begin{acronym}     \acro{GSM}[$G_sm$]{مجموعه فلان}     \end{acronym}     \end{document}      Please note that the code should be run using `xelatex`.


title: What bibliography style starts with author name in italics?

text: So I have to write an article for a journal which requires authors use citations so that they look like this: ![image](http://i.stack.imgur.com/XGt4H.png) And they write refs manually in there example...( And I am quite used to bibtex... So I wonder how is this style named so I could use `\bibliographystyle{stylename}`?


title: Difference between \langle and <

text: Is there any difference between `\langle S \rangle` and `\left< S \right>`? Or is `\langle` just an alias for `<` that by default works on one line without having to use `\left`?


title: Font sizes in new theorem style?

text: I would like to produce a new theorem style such that the text in the body is `10pt`, instead of `11pt` (size of the document). I tried adding `10pt` for the body font, but does not compile:               \newtheoremstyle{note}  % Name     {3pt}       % Space above      {3pt}       % Space below     {10pt}      % Body font     {}          % Indent amount      {\scshape}  % Theorem head font     {.}         % Punctuation after theorem head     {.5em}      % Space after theorem head     {}          % Theorem head spec


title: LaTeX for loop \@for

text: In user700902's answer to this thread, a for-loop with the syntax `\@for` is used. How does this syntax work? I tried searching about for-loops on other websites, but I could only find something like this page, where the syntax is a different one.


title: Matching phonetic/IPA font for Minion Pro

text: I am (tentatively) using Minion Pro in XeTeX for my book, but I need to typeset a phonetic notation, for which Minion Pro does not have the glyphs. Are there any good alternatives that can match it? Here is my Microsoft Word version (the one I am trying to reproduce in latex): ![Desired phonetic](http://i.stack.imgur.com/BwrNJ.png) and here is the best I've done so far, using ugly Microsoft Sans Serif (also note that my brackets are not that good looking either): ![My phonetic](http://i.stack.imgur.com/BFiA4.png) By the way, here is how I do it in code (it would be great to get a confirmation that this is a sane way of doing this):               % Define a font capable of rendering IPA (phonetic) symbols     \newcommand{\phoneticFont}{Microsoft Sans Serif}     \newcommand{\phonetic}[1]{ {\fontspec{\phoneticFont} #1} }          ...     was formerly known under various European names, such as Budschaja in German,     Bugia or Bougia in Italian, Bougie [\phonetic{bu'ʒi}] in French or Bidjaya.       If you have any suggestions (or tips) I would appreciate them. Even if it's using a different font. I just like Minion Pro as it's OpenType and that sits well with XeTeX.


title: How can I draw irregular shading area with tikz?

text: How can I draw with tikz the irregular shaded area and (similarly?) the irregular frame around nodes like the ones in the image? ![gaming analysis](http://i.stack.imgur.com/N1WXs.png)


title: TikZ Chains - Merging after branching

text: I'm new to the LaTeX `chains` package and try to join(=merge) together 2 (or maybe even more) branches in a single node again. I only know about a very inflexible way which is shown in the code snippet below. An explanation about the issue is added as a comment in the code (hopefully it makes the problem more clear).               \documentclass[12pt]{article}          \usepackage{tikz}     \usepackage{tikz-timing}     \usetikzlibrary{chains}      \usetikzlibrary{decorations.markings}     \usetikzlibrary{external}     \usetikzlibrary{shapes}          \begin{document}          \begin{tikzpicture}[     box/.style={draw,rectangle,minimum width=10pt,minimum height=10pt},     arrow/.style={->},     ]          \begin{scope}[     start chain,     >=stealth,     every join/.style={->},     skip loop/.style={to path={-- ++(0,#1) -| (\tikztotarget)}},     point/.style={on chain,join=by -,coordinate},     ]          \node [point] {$$};     \node [box, on chain, join] (Start) {$A$};     \begin{scope}[start branch,node distance=4mm and 6mm]     \node [box, join, on chain=going above right] (L) {$B$};     \end{scope}     \begin{scope}[start branch,node distance=4mm and 6mm]     \node [box, join, on chain=going below right] (R) {$C$};     \end{scope}     % the next node line adds a node with relative distance to the      % Start node but this is impractical for longer chains with many branches     % i want to "merge" two branches into a single one and then use      % "on chain" again to go on     \node [box] (stream2) at ($(Start.east) + (23mm,0)$) {D};         \draw[arrow] (L.east) -> ($(stream2.north west)$);     \draw[arrow] (R.east) -> ($(stream2.south west)$);            \end{scope}     \end{tikzpicture}          \end{document}}      Is this even possible? I am thankful for all hints and help.


title: Replacing vector images in a PDF with raster images

text: Is there any easy (scriptable) way to convert a PDF with vector images into a PDF with raster images? In other words, I want to generate a PDF with the exact same text but with each vector image replaced with a rasterized version. I occasionally read PDFs of technical articles on my Kindle, and have found that reading a PDF directly is frustrating. Thankfully, Amazon's automatic conversion of PDFs to the Kindle format does a good job of reflowing the text portions of most of PDFs I have tried. However, while raster images seem to make it through the conversion process fine, vector images get horribly mangled. It would be great if I could easily convert a PDF so that all of its vector images were rasterized. I am interested in any possible solutions, but a Linux- or Windows-based one would be preferable. I can also get access to Adobe Acrobat if necessary.


title: How to switch between two different marginparwidth size?

text: I like this book layout stewartcalculus, so I want to mimic some of its layout. In this topic I want to start from the page number 5. The following is the screenshot: (hopely don't break the copyright :D) ![alt text](http://i.stack.imgur.com/8fpbx.jpg) The upper part has shorter marginparwidth compared to the Exercise part. I am interested how the author of this book modified the marginparwidth back and forth, from the main content to the exercise. Thank you in advance. **EDIT 1:** Or he wrote it using softwares other than LaTeX ? InDesign or something like that?


title: \vspace after \vfill ignored

text: \vfill     Text first line     \vspace{1cm}     Text second line     \cleardoublepage      The `\vspace` is unfortunately ignored by LaTeX: The resulting document has no vertical space added between the two lines. Why is that?


title: XeTeX + movie15_dvipdfmx -- Use of `\pdfmdfivesum` doesn't match its definition

text: I'm trying to embed movies in my document. That would normally mean use the `movie15` package but since I'm also using the xetex engine I have to use `movie15_dvipdfmx`. (See “ Can XeLaTeX | LuaTeX import movies ? ”) Here's a sample file.               \documentclass{article}     \usepackage[dvipdfmx]{movie15_dvipdfmx}     \usepackage{hyperref}     \begin{document}     Whispering-gallery mode in a quarter circle:     \begin{figure}[ht]     \includemovie[       poster,       text={\small(Loading Circle-m-increase3.mp4)}     ]{6cm}{6cm}{Circle-m-increase3.mp4}     \end{figure}     \end{document}      See “Generating PDF Animations with LaTeX” for the tutorial and movie file. Compiling this gives me these errors: > >     ! Use of \pdfmdfivesum doesn't match its definition. >     \pdf@filemdfivesum {->\pdfmdfivesum file{ >   >     l.4 \begin{document} >   >     ? s >     OK, entering \scrollmode... >     ! Extra }, or forgotten \endgroup. >     \ReFiCh@Check ...#1\edef #2{\ReFiCh@CheckSum {#3}} >                                                       \ifx > #2\ReFiCh@Separator #... >     l.4 \begin{document} >   >     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/se-ascii- > print.def) >     [1] (./movie_xetex.aux) >     ! Use of \pdfmdfivesum doesn't match its definition. >     \pdf@filemdfivesum {->\pdfmdfivesum file{ >   >     l.12 \end{document} >   >     ! Extra }, or forgotten \endgroup. >     \ReFiCh@Check ...#1\edef #2{\ReFiCh@CheckSum {#3}} >                                                       \ifx > #2\ReFiCh@Separator #... >     l.12 \end{document} >   >      ) >     (see the transcript file for additional information) >     Output written on movie_xetex.pdf (1 page). >     Transcript written on movie_xetex.log. >   Just those four errors, two at `\begin{document}` and two at `\end{document}`. Thing is, if you open the pdf in a suitably capable reader (like Acrobat Pro or Reader), the animation does work. I googled the error message but I didn't get anything useful. Any clues?


title: Emacs, RefTeX and Cleveref – can they work together?

text: Trying to look for an answer in the net yielded only one questions and one answer which I could neither understand nor use. On tex.stackexchange I found only this question which was answered but I'm under-skilled to translate it to my case. I want to use `cleveref` together with `reftex` when using `AUCTeX` in `emacs`. In other words, when pressing `C-c )` and finding the label I want to refer to, I want `reftex` to insert `\cref{label}` instead of `\ref{label}`. Probably there's a way to do it, but I couldn't figure it out.


title: Double braces in equation

text: I'm trying to create the attached image formulae. But I don't know how to get the double braces to work. This is my attempt with only single brace.                   x(t_n) = \left\{ \begin{array}{l l}       0      &\quad \mbox{ $n<ns$ or $n>ne$} \\       x(t_n) &\quad \mbox{ $ns\leq n\leq ne$}     \end{array} \right.      ![enter image description here](http://i.stack.imgur.com/wpBwS.png) Could someone help me with the second brace? Thanks in advance


title: Get an entry's abstract using bibtex and harvard.sty (or any other means)

text: I cut-and-paste my bib file entries using websites' "export citation" buttons (e.g., jstor or ssrn.com), often these come with an "abstract" entry. But I've never seen any bibtex or harvard.sty documentation that tells me how to input this into my tex file. Is this possible? Or can I make my bibliography section include the abstract? Thanks!


title: Write a text into an image

text: I would like to simply put a very short image description over an image I have included using \includegraphics. What is the simplest way to achieve this?


title: Plug-in for adding LaTeX annotations to an existing pdf?

text: > **Possible Duplicate:**   >  How can I superimpose LaTeX / TeX output over a PDF file? ### Is there a plug-in for a PDF reader (or stand-alone GUI) that would allow me to add LaTeX annotations to an existing PDF? I would like to annotate PDFs of scientific papers written by other authors. Often, the notes that I would like to make include maths, so being able to include LaTeX snippets in my annotations is important. I found Overlay LaTeX/TeX coding easily on PDF with 300 pages, but it's not quite what I was looking for because it will tedious to move the annotations into the whitespace available.


title: Logical symbol for exclusive disjunction: fwwf

text: Neither `detexify` nor the list of mathematical symbols yield what I am looking for: A logical symbol for the truth-function (FWWF)(pq), in English "Neither p nor q", also called 'exclusive disjunction', that looks like that:               >--<      This is the symbol that was used in the logics course I attended (University of Zurich). It seems that this symbol is non-standard. Does anyone know how to write it in LaTeX? or: What symbol _is_ the standard? Some suggestions:               \oplus           \downarrow          \veebar


title: Problem with ẽ tilde and UTF8

text: I have a problem with the following character > ẽ: e with tilde I am using UTF-8 encoding and I get the following error `! Package inputenc Error: Unicode char \u8:ẽ not set up for use with LaTeX.` I am aware of this solution: `\~e` but the problem is that the `ẽ` that concerns me is the name of an author that is inside a bibtex that is automatically generated by mendeley... I could, however, modify it in mendeley and cahnge `ẽ` for `\~e`, but is not a very elegant solution... Anyway, I can let go this and simply replace it for `e` if there is no solution. I am just curious as to why UTF-8 does not handle this? I thougth UTF-8 handled every possible character. MWE:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \begin{document}          This does not work:  ẽ          This works: \~e          \end{document}


title: Advancing \today by x days

text: New LaTex user here, hoping you can help me. I am drafting a letter, the submission date of which I do not yet know. For this reason I am dating it using `\today`. However, in the text of the letter, I would like to specify a date two weeks in advance of `\today`. In other words, there is an [advance date] and an [advance date II], the latter specifying a date 14 days after the former. I found the `advdate` package but, unless I am mistaken, it doesn't allow for setting two individual hypothetical dates. Is there a non-complicated way of implementing this? Thanks for your help.


title: Drawing a node surrounding arbitrarily places nodes

text: I'm trying to create a (flexible) method of creating a path around a set of nodes. Let me demonstrate with the help of a MWE:               \begin{tikzpicture}[         every node/.style={draw,black},         every path/.style={red}     ]          \node at (0,0) (a) {A};      \node at (2,0) (b) {B};      \node at (3,0) (c) {C};      \node at (2,-1) (e) {E};     \node at (3,-1) (f) {F};       \node at (0,-1) (d) {D};           \path [draw, rounded corners]                      (a.north west)                  -- (c.north east)                  -- (f.south east)                  -- (e.south west)                  -- (b.south west)                  -- (a.south west)                  -- cycle;           \end{tikzpicture}      Here's what it looks like: ![enter image description here](http://i.stack.imgur.com/8hdaR.png) There are two problems here:   1. The surrounding node is too closely placed on the anchors. I need something like an `inner sep` but that doesn't work since this is a path, not a node.    2. The nodes to be surrounded have to be specified explicitly. This becomes very difficult to manage if we have a lot of nodes to surround and they're moved around at a later stage.  So, what I need is a better workflow for doing something like this to address the above two issues. **Update:** After the answer by @ClaudioFiandrino, I would like to post what I need. I hacked around with my limited knowledge and arrived at this:               \newcommand{\shiftpoints}{4pt}     \begin{tikzpicture}[         every node/.style={draw,black},         every path/.style={red},         shifttl/.style={shift={(-\shiftpoints,\shiftpoints)}},         shifttr/.style={shift={(\shiftpoints,\shiftpoints)}},         shiftbl/.style={shift={(-\shiftpoints,-\shiftpoints)}},         shiftbr/.style={shift={(\shiftpoints,-\shiftpoints)}},     ]               \node at (0,0) (a) {A};      \node at (2,0) (b) {B};      \node at (3,0) (c) {C};      \node at (2,-1) (e) {E};     \node at (3,-1) (f) {F};       \node at (0,-1) (d) {D};           \begin{scope}[transform shape]      \path [draw,rounded corners]                      ([shifttl] a.north west)                  -- ([shifttr] c.north east)                  -- ([shiftbr] f.south east)                  -- ([shiftbl] e.south west)                  -- ([shiftbl] b.south west)                  -- ([shiftbl] a.south west)                  -- cycle;      \end{scope}           \end{tikzpicture}      Which produces this: ![enter image description here](http://i.stack.imgur.com/IB5Q6.png) So, any suggestions for improvement of the code. The end result seems ok for my purposes.


title: Problem with Minion Pro

text: I have a weird problem with the output using MinionPro fonts. The characters "Th" after a period produces a strange output; for example               \documentclass[14pt, a4paper]{report}     \usepackage{MinionPro}     \begin{document}          Testing Minion Pro. The Minion Pro package...          \end{document}      produces the following output:               Testing Minion Pro. fb e Minion Pro package...      Does anybody have a clue of what's happening?


title: beamer: Different numbering for Theorems, Examples, Definition, and Lemma

text: I want to have different numbering for Theorems, Examples, Definition, and Lemma. I use the following code in preamble               \setbeamertemplate{theorem}[ams style]     \setbeamertemplate{theorems}[numbered]      This code works fine but it has continuing numbering for Theorems and other Environments. I'd appreciate your help if you guide me how to get different numbering for Theorems, Examples, Definition, and Lemma in `beamer`.


title: biblatex and etex with active equal sign (=)

text: Please why does _etex.sty_ fail to load with active `=`?               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[turkish]{babel}     \catcode`\==13     \makeatletter     \bbl@activate{=}     \makeatother     \usepackage[style=authortitle-icomp]{biblatex}     \addbibresource{biblatex-examples.bib}          \begin{document}          \section*{The \texttt{authortitle-icomp} style}          This style combines the features of \texttt{authortitle-ibid} and     \texttt{authortitle-comp}. It will implicitly enable the     \texttt{sortcites} package option at load time. This style is     intended for citations given in footnotes.          \footcite{aristotle:rhetoric,averroes/bland,aristotle:physics,aristotle:poetics}     \printbibliography          \end{document}      I get the error:               ! Undefined control sequence.     \globmarks ->\et@xglob                             6\marks \mathchardef      l.240 \let\newmarks=\globmarks      Moving               \catcode`\=\string=13     \makeatletter     \bbl@activate{=}     \makeatother      into the document body works, but I am still interested in why _etex_ won't load with active `=`. Beyond _etex_ , _biblatex_ can't process its options when `=` is active.


title: Suppress year label letter in biblatex author-year styles on a per-bibliography or per-keyword basis

text: I have a document with multiple bibliographies (generated with biblatex and biber). I am wondering if it is possible to suppress the generation of a letter after the year (extrayear) for only one if the bibliographies. From a previous question, I learned that the label can be suppressed through various tweaks in the preamble, but that affects all bibliographies, of course. From the biblatex manual (p. 188 in version 2.0) , I understand that I can deactivate the label on a per-entrytype basis, but that will not do in my case. The manual also states that customization of labelyear is _not_ possible on a per-item/per-entry basis (Appendix D). So my question is whether there is a workaround to suppress the label anyway, for example on a per bibliography basis or a per keyword basis. I am thinking, for example, of a combination of `\AtEveryBibitem` and some if/then loop that filters for keywords. But I am unfortunately unable to program such a thing...


title: Is there a way to set math mode font non-italic?

text: I read many things about people wanting math mode in sans-serif font and doing crazy things with packages and options to get that, but I did not find anything that would simply make my math mode font non-italic. **Is there an (easy) way to set math mode font to be non-italic?** And is there a way to do that globally for the whole document?


title: How to make all the text in math mode non-italic

text: > **Possible Duplicate:**   >  Is there a way to set math mode font non-italic? I learned, that I can change the equation to not-italic, using `$\mathrm{text}$`. But how to make all the equations non-italic without adding `\mathrm` into all of them? I tried `\everymath{\mathrm}`, but it failed.


title: Multiple Column Height

text: I need to put three lists of data into three columns. After putting the first set of data this happened: ![Table](http://i.stack.imgur.com/IB04e.png) But I need all the data to be in the FIRST column only, the next sets of data will go in column 2 and 3 respectively. So far I have this LaTeX code:               \usepackage{multicol}     \begin{multicols}{3}     Article 1 Sorted by Frequency:\\     e: 323    FREQ:  0.12737\\     t: 242    FREQ:  0.09543\\     o: 232    FREQ:  0.09148\\     ...     \end{multicols}      What do i write to put the data into 3 columns?


title: Positioning tikz draw-fill, nodes, etc

text: In another thread (Basic geometric shapes, sections, shading), I stalled figuring out how to position things properly. What follows is clearly wrong and indicative of almost completely missing the boat. OK, scratch the "almost" in that last sentence. How should one do this right? The goal is to simply lay out the circle, the square and the pill horizontally where the sum of the circle and square equal the pill. I missing something about nodes, assuming that is what I should be doing. ThanX to Gonzalo for the original code!               \documentclass[12pt]{article}     \usepackage{tikz}     \usetikzlibrary{shapes,snakes}          \begin{document}     Consider the joining of a circle and square partitioned into four equal sections and labeled 1/4, as given below.       \\ \\     \newcommand\FillSquare[5]{%     \begin{tikzpicture}     \fill[#2] (0,0) rectangle +(0.5*#1,0.5*#1);     \fill[#3] (0.5*#1,0cm) rectangle +(0.5*#1,0.5*#1);     \fill[#4] (0,0.5*#1) rectangle +(0.5*#1,0.5*#1);     \fill[#5] (0.5*#1,0.5*#1) rectangle +(0.5*#1,0.5*#1);     \end{tikzpicture}%     }          \newcommand\MySquare[5]{%     \begin{tikzpicture}     \FillSquare{#1}{#2}{#3}{#4}{#5}     \draw (0,0) rectangle (-#1,#1);     \node [right, black] at (0,1) {+};           \draw (-#1,0.5*#1) -- +(#1,0);     \draw (-0.5*#1,0) -- +(0,#1);     \node [below right, white] at (-0.75,1.85) {$\frac{1}{4}$};      \end{tikzpicture}%     }          \newcommand\MyCircle[5]{%     \begin{tikzpicture}     \fill[#4] (0,0) arc[radius=0.5*#1,start angle=180,end angle=90] -- +(0,-0.5*#1) --cycle;     \fill[#5] (#1,0) arc[radius=0.5*#1,start angle=0,end angle=90] -- +(0,-0.5*#1) --cycle;     \fill[#3] (#1,0) arc[radius=0.5*#1,start angle=0,end angle=-90] -- +(0,0.5*#1) -- cycle;     \fill[#2] (0.5*#1,-0.5*#1) arc[radius=0.5*#1,start angle=-90,end angle=-180] -- +(0.5*#1,0) -- cycle;     \draw (0.5*#1,0) circle [radius=0.5*#1];     \node [below right, black] at (2,0.3) {=};           \draw (0,0) -- +(#1,0);     \draw (0.5*#1,-0.5*#1) -- +(0,#1);     \node [below right, white] at (1.2,0.8) {$\frac{1}{4}$};     \end{tikzpicture}%     }          \newcommand\Joined[9]{%     \begin{tikzpicture}     \fill[#2] (0,0) arc[radius=0.5*#1,start angle=270,end angle=180] -- +(1.5cm,0) --cycle;     \fill[#5] (-0.5*#1,0.5*#1) arc[radius=0.5*#1,start angle=180,end angle=90] -- +(0,-0.5*#1) --cycle;     \fill[#6] (1.5*#1,0.5*#1) arc[radius=0.5*#1,start angle=0,end angle=90] -- +(0,-0.5*#1) --cycle;     \fill[#9] (1.5*#1,0.5*#1) arc[radius=0.5*#1,start angle=0,end angle=-90] -- +(0,0.5*#1) -- cycle;     \FillSquare{#1}{#3}{#4}{#7}{#8}     \draw (0,0) -- +(-#1,0)        arc[radius=0.5*#1,start angle=270,end angle=90] -- +(#1,0)       arc[radius=0.5*#1,start angle=90,end angle=-90] -- cycle;     \draw (-1.5*#1,0.5*#1) -- +(2*#1,0);     \draw (-0.5*#1,0) -- +(0,#1);     \draw (-#1,0) -- +(0,#1);     \draw (0,0) -- +(0,#1);     \node [below right, white] at (-0.25,1.8) {$\frac{1}{4}$};     \end{tikzpicture}%     }          \MySquare{2cm}{white}{white}{white}{gray} \ \ \ \ \ \ \ \ \ \ \ \ \ \     \MyCircle{2cm}{white}{white}{white}{gray} \     \Joined{2cm}{white}{white}{white}{white}{gray}{white}{gray}{white}\quad     \\ \\     As the picture suggests, somehow 1/4 + 1/4 = 1/4.\\     \end{document}


title: Polar plot with cartesian values, lack of angular precision in the integrated arctan2 calculation?

text: I noticed that for values close to 0° and 180° the angular values dramatically changes if the values are imported from cartesian data. Here the code (with cartesian coordinates plotted in polar with data cs=cart and the same coordinates in polar coordinates obtained with arctan2 Matlab function) and illustration:               \documentclass{minimal}     \usepackage{eurosym}     \usepackage{pgfplots}     \usepackage{fp}          \begin{document}          \pgfplotsset{compat=newest}      \usepgfplotslibrary{polar}     \centering     \begin{tikzpicture}     \begin{polaraxis}[         visualization depends on=x \as \pgfplotspointx,         nodes near coords,         every node near coord/.style={             %font=\small,             rotate=\pgfplotspointx,             append after command={                 node [                     anchor=south,                     %font=\small,                     rotate=\pgfplotspointx,                     shift={(axis direction cs:0,(12.75-\pgfplotspointmeta))}                 ] {$\pgfmathprintnumber{\pgfplotspointx}^\circ$}             }         },     width=7\textwidth,     xmin=-2,xmax=1, ymin=12, ymax=16,     title=artctan2 precision problem,     grid=both,     minor x tick num={4},      minor y tick num={1},     ]     \addplot+[polar comb, data cs=cart, mark size=1, mark=asterisk, color=blue, dashed] table {     14.370195   -0.304948     14.370195   -0.304948          };      \addplot+[polar comb, mark size=1, mark=asterisk, color=green, solid] table {-1.215683667   14.37343027     -1.215683667    14.37343027     };      \end{polaraxis}     \end{tikzpicture}               \end{document}      ![enter image description here](http://i.stack.imgur.com/yUtaa.jpg) Has anyone meet this issue? Thank you in advance.


title: matlab2tikz for binary matlab figures

text: How do you properly use `matlab2tikz` for binary MATLAB figures? The figures are only black and white and when trying to generate the `.tex` file I get the error: `Input argument 'color' is not a scalar`.


title: problem with including pdf using pdfpages

text: I am trying to use `\includepdf` with about 20 different PDFs. The first 19 have worked fine, but the last one which can be found below http://math.unc.edu/for-grad-students/analysiscompsSprJan2011.pdf will not load properly. However, there are no errors - the PDF produced just has a blank page with a couple of black lines in the middle. I converted the PDF to JPG and used `\includegraphics` and it loaded properly but then I could not add it to my table of contents in the way I wanted. Any thoughts on why it won't load as a `.pdf` but will as `.jpg`? Here's a minimal document that shows the problem:               \documentclass{article}     \usepackage{pdfpages}     \begin{document}     \includepdf{analysiscompsSprJan2011.pdf}     \end{document}


title: Chemfig artifacts next to bonds

text: When drawing reaction schemes with chemfig I get unwanted small dots next to certain molecules. These dots remain the same size weither I zoom in the document or not.               \documentclass{article}          \usepackage{chemfig}          \begin{document}          %\schemedebug{true}     \schemestart[][west]         \chemfig{CO}         \+         \chemfig{M}         \arrow{->}         \chemfig{M=[:90]CO}         \arrow{->}         \chemfig{M=[:90]C}         \arrow{0}[,0]\+\arrow{0}[,0]         \chemfig{M=[:90]O}     \schemestop          \end{document}      When using the \schemedebug{true} option I notice that the artifacts are now represented with blue dots so there must be a connection between the two. If anyone has an idea what the blue dots represent, that would also help!               article.cls    2007/10/19 v1.4h Standard LaTeX document class     size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     chemfig.sty    2012/02/24 v1.0f Draw molecule with an easy syntax     tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)     pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)     pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)     pgfrcs.code.tex     pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)     ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)     pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)     pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)     xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)     color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive     pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)     pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)     pgfkeys.sty         pgfkeys.code.tex     pgffor.code.tex     tikz.code.tex     supp-pdf.mkii     ***********


title: Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

text: Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? **Edit** Thanks to egreg the node are more in harmony. **Still :** Is it possible to avoid the use of the fp package ? For the bottom and left nodes (the results) I use directly the answer of the multiplication instead of summing following the diagonals. Is there a way to have the answer of the multiplication (big numbers) without using fp package or how to simply make the sums following the diagonals ? using matrix ... ? ![enter image description here](http://i.stack.imgur.com/OBhey.png)               \documentclass{article}     \usepackage{tikz,xparse,xstring,fp}          \DeclareDocumentCommand{\split}{smmo}{%         \xdef\Entree{#3}%         \let\Sortie\empty%         \IfBooleanTF #1         {% sans étoile             \loop             \StrRight{\Entree}{#2}[\tmp]%             \edef\Sortie{\Sortie,\tmp}%             \StrGobbleRight{\Entree}{#2}[\Entree]%             \unless\ifx\Entree\empty             \repeat             \StrGobbleLeft{\Sortie}{1}[\Sortie]%         }         {% avec étoile dans l'ordre inverse             \loop             \StrRight{\Entree}{#2}[\tmp]%             \edef\Sortie{\tmp,\Sortie}%             \StrGobbleRight{\Entree}{#2}[\Entree]%             \unless\ifx\Entree\empty             \repeat             \StrGobbleRight{\Sortie}{1}[\Sortie]%         }         \IfNoValueTF{#4}{\Sortie}{\edef#4{\Sortie}}         }               \usetikzlibrary{shapes}     \pgfkeys{/tikz/.cd,         PGms/.store in=\PGms,         PGms=.8     }     \tikzset {         convert/.style 2 args={             minimum size=\PGms cm,draw,outer sep=0pt,             append after command={                 \pgfextra{                 \pgfinterruptpath                 \path (\tikzlastnode.north west)                     node[inner sep=2pt,anchor=north west]{#1};                 \path (\tikzlastnode.south east)                     node[inner sep=2pt,anchor=south east]{#2};                 \draw[help lines] (\tikzlastnode.south west)                 -- (\tikzlastnode.north east);                 \endpgfinterruptpath                 }             }         }     }               \newcommand{\PerGelosia}[3][1]{%     \split{#1}{#2}[\StringH]         \split*{#1}{#3}[\StringV]             \node[minimum size=\PGms cm,outer sep=0pt] (00) at (0,0) {} ;          \foreach \h [count=\Y from 1,count=\y from 0] in \StringH {%     \node[anchor=north,minimum size=\PGms cm,outer sep=0pt]                                     (0\Y) at (0\y.south) {} ;     \node[anchor=west] at (0\Y.west) {\h} ; }     \edef\NbLgn{\Y} % nb de lignes          \foreach \v [count=\X from 1,count=\x from 0] in \StringV {%     \node[anchor=east,minimum size=\PGms cm,outer sep=0pt]                                     (\X0) at (\x0.west) {} ;     \node[anchor=south] at (\X0.south) {\v} ;   }     \edef\NbCol{\X} % nb de colonnes          \foreach \h [count=\Y from 1,count=\y from 0] in \StringH {%     \foreach \v [count=\X from 1,count=\x from 0] in \StringV {%              \FPmul\Prod\v\h         \FPclip\Prod\Prod         \StrGobbleRight{\Prod}{#1}[\Prodg]         \StrRight{\Prod}{#1}[\Prodd]         \ifx\Prodg\empty\def\Prodg{0}\fi              \node[anchor=east,convert={\Prodg}{\Prodd}] (\X\Y) at (\x\Y.west) {} ;     }}          \FPmul\Prod{#2}{#3}     \FPclip\Prod\Prod     \StrGobbleRight{\Prod}{#1*\NbCol}[\Prodg]     \StrRight{\Prod}{#1*\NbCol}[\Prodd]          \split*{#1}{\Prodd}[\StringH]        \foreach \h [count=\Y from 1,count=\y from 0] in \StringH {%         \begin{scope}[shift={(\Y\NbLgn.south)}]         \draw[->,>=stealth] (1.5pt,1.5pt)--(-5pt,-5pt)             node[anchor=north east,inner sep=1pt] {\h};         \end{scope} ;     }          \split{#1}{\Prodg}[\StringV]         \foreach \v [count=\X from 1,count=\x from 0] in \StringV {%         \begin{scope}[shift={(\NbCol\X.west)}]         \draw[->,>=stealth] (1.5pt,1.5pt)--(-5pt,-5pt)             node[anchor=north east,,inner sep=1pt] {\v};         \end{scope} ;     }     }               \begin{document}     \begin{tikzpicture}[PGms=.95]     \PerGelosia[3]{890432}{6513782}     \end{tikzpicture}     \end{document}


title: Mathematical symbols as keywords in listing

text: Is it possible to use mathematical symbols as keywords in listing? I'm using `listings` package to typeset Mathematica code and I have used `emph` parameter of `lstset` to use blue bold font for some of my functions like               \lstset{         emph={CoolFun1, CoolOp2},         emphstyle={\color{blue}\bfseries}     }      I would like also to use some functions named with mathematical symbols, \eg\ Greek names like $\delta$ and so on. So the goal is to have something like               \lstset{         emph={CoolFun1, $\delta$},         emphstyle={\color{blue}\bfseries}     }      and obtain Mathematica listings with bold blue mathematical symbols.


title: Extended \Mapsto with text above

text: \documentclass{standalone}          \usepackage{centernot}     \usepackage{mathtools}     \usepackage{ stmaryrd }          \begin{document}         $\xmapsto{sdfkjhsdf}$ % This is similar to what I want              $\Mapsto$ % however I need this kind of arrow              %$\xMapsto{sdfkjhsdf}$ % does not exist - results in error     \end{document}      Output of the first two: ![xMapsto](http://i.imgur.com/3f7V3EM.jpg) I want an extensible `mapsto` with writing on top like the first, but with an arrow like the second. Is there a way to do this from the existing packages?


title: How can I achieve having logical page numbers shown in acrobat reader?

text: I am using (plain) TeX (not LaTeX or any other ...TeX). I want a pdf file made from my TeX-source/output that is able to have acrobat reader shown _logical page numbers_. My document’s preface page numbering should be displayed like “vi (6 of 123)” and the main part like “2 (12 of 123)” in acrobat reader’s tool bar. How do i achieve that? Do I have to use `\special`, `pdfTeX`, `dvipdfm(x)`? How do I specify the roman numeral page numbers in the TeX source? Is there a (TeX) macro package for that? Thanks to all TeX Wizards for your answers!


title: Resizing dynamically the `e` of the exponential function

text: I've been looking around and found that this question has been asked at least a couple of times, but the solutions are been correct work around. Let's say that I have a formula with a piece like:               e^{\dfrac {h A_s}{\rho V c_{p}}t}      and for some dumb reason, I'd like to force the argument of the exponential to be shown as a `\dfrac`... worst!!! I refuse to use the `\exp` command to denote the exponential, say I just want to define a command `\myexp` which 'measure' the size of the exponential argument and resize the letter `e` according to the size of the argument. Is that even possible? How could be done? Thank you!


title: Create a table column by column with special border formatting

text: I need to create some tables for a special college report. The data provided specifies the values column by column. The user Andrew Swann pointed out, that there is a way to create TeX tables column by column which was completeley new to me, but would be a great benefit for my special purpose. Unfortunately I neither understand those commands nor didn't find a good documentation for that. What I need is a table with borders around each single cell except for the first cell and the whole last row. Below is an example how it would look like using the _regular_ syntax. Could you please tell me how I can create such a table by building it columnwise? ![Result of example code](http://i.stack.imgur.com/j39Xp.png)               \begin{tabular}{|l|l|l|}         \cline{2-3}         \multicolumn{1}{l|}{a} & b & c \\ \hline         d & e & f \\ \hline         g & h & i \\ \hline         \multicolumn{1}{l}{j}  &         \multicolumn{1}{l}{k}  &         \multicolumn{1}{l}{l}  &     \end{tabular}


title: listings doesn't print my keywords bold in lstlisting

text: I've got the following problem: I want to print a listing with the listings package and lstlisting:               \documentclass{scrreprt}          \usepackage{listings}               \begin{document}          \begin{lstlisting}[language=Haskell,basicstyle=\ttfamily,keywordstyle=\bfseries]     class Show a where       show :: a -> String     \end{lstlisting}          \end{document}       But in the result I get, the keywords are not printed in bold font! This problem does not occur when I remove the basic style key-value-pair, but without this style, the listings look ugly.


title: glossaries vs hyperref conflict

text: I'm writing my thesis and I'm having some trouble with the package `glossaries` and some strange conflict with `hyperref` package. If I load `hyperref` before `glossaries` in order to have links I cannot compile:               Overfull \hbox (7.93062pt too wide) in paragraph at lines 16--17     []\T1/pplj/m/n/12 compares the clas-si-fi-ca-tion and com-pu-ta-tional     per-for- mance ) [6] (./Thesis.gls ! Undefined control sequence.     \@hyper@@anchor ...: #2#3}\else \def \anchor@spot                                                        {#2#3}\let \put@me@back \@... l.6         \setentrycounter{page}\glsnumberformat{15}}}                                                       % ?      If I load `hyperref` after `glossaries`, everything is fine but of course I cannot have links. I'm pretty sure it is related with the packages configuration but I cannot find the problem. Here the configuration that I use (see section 6 that is where I load `hyperref` and `glossaries` packages):                   %****************************************************************************************************     % classicthesis-config.tex      % formerly known as loadpackages.sty, classicthesis-ldpkg.sty, and classicthesis-preamble.sty      % Use it at the beginning of your ClassicThesis.tex, or as a LaTeX Preamble      % in your ClassicThesis.{tex,lyx} with \input{classicthesis-config}     % ****************************************************************************************************       % If you like the classicthesis, then I would appreciate a postcard.      % My address can be found in the file ClassicThesis.pdf. A collection      % of the postcards I received so far is available online at      % postcards [dot] miede [dot] de     % ****************************************************************************************************          % ****************************************************************************************************     % 1. Configure classicthesis for your needs here, e.g., remove "drafting" below      % in order to deactivate the time-stamp on the pages     % ****************************************************************************************************     \PassOptionsToPackage{         eulerchapternumbers,         listings,         pdfspacing,         linedheaders,         subfig,         beramono,         eulermath,         parts}{classicthesis}                                            % ********************************************************************     % Available options for classicthesis.sty      % (see ClassicThesis.pdf for more information):     % drafting     % parts nochapters linedheaders     % eulerchapternumbers beramono eulermath pdfspacing minionprospacing     % tocaligned dottedtoc manychapters     % listings floatperchapter subfig     % ********************************************************************          % ********************************************************************     % Triggers for this config     % ********************************************************************      \usepackage{ifthen}     \newboolean{enable-backrefs} % enable backrefs in the bibliography     \setboolean{enable-backrefs}{true} % true false     % ****************************************************************************************************               % ****************************************************************************************************     % 2. Personal data and user ad-hoc commands     % ****************************************************************************************************     \newcommand{\myTitle}{Title\xspace}     \newcommand{\mySubtitle}{SubtitleRow1\\SubtitleRow2\\SubtitleRow3\\ SubtitleRow4\xspace}     \newcommand{\myDegree}{degree}     \newcommand{\myName}{name}     \newcommand{\myProf}{}     \newcommand{\myOtherProf}{}     \newcommand{\mySupervisor}{supervisor}     \newcommand{\myTutor}{tutor}     \newcommand{\myFaculty}{faculty}     \newcommand{\myDepartment}{department\xspace}     \newcommand{\myStudies}{\textsc{Computer science}\xspace}     \newcommand{\myUni}{University\xspace}     \newcommand{\myLocation}{City\xspace}     \newcommand{\myTime}{October 2013\xspace}     \newcommand{\myVersion}{version 0.1\xspace}          % ********************************************************************     % Setup, finetuning, and useful commands     % ********************************************************************     \newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)     \newlength{\abcd} % for ab..z string length calculation     \providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}     % ****************************************************************************************************          % ****************************************************************************************************     % 3. Loading some handy packages     % ****************************************************************************************************     % ********************************************************************      % Packages with options that might require adjustments     % ********************************************************************      \PassOptionsToPackage{utf8x}{inputenc}     \usepackage{inputenc}     \usepackage{babel}     \PassOptionsToPackage{round}{natbib}     \usepackage{natbib}     \PassOptionsToPackage{fleqn}{amsmath}     \usepackage{amsmath}          % ********************************************************************      % General useful packages     % ********************************************************************      \PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics     \usepackage{fontenc}                      \usepackage{xspace} % to get the spacing after macros right       \usepackage{mparhack} % get marginpar right     \usepackage{fixltx2e} % fixes some LaTeX stuff      \PassOptionsToPackage{printonlyused,smaller}{acronym}     \usepackage{acronym} % nice macros for handling all acronyms in the thesis     \renewcommand{\bflabel}[1]{{#1}\hfill} % fix the list of acronyms     % ****************************************************************************************************               % ****************************************************************************************************     % 4. Setup floats: tables, (sub)figures, and captions     % ****************************************************************************************************     \usepackage{tabularx} % better tables         \setlength{\extrarowheight}{3pt} % increase table row height     \newcommand{\tableheadline}[1]{\multicolumn{1}{c}{\spacedlowsmallcaps{#1}}}     \newcommand{\myfloatalign}{\centering} % to be used with each float for alignment     \usepackage{caption}     \captionsetup{format=hang,font=small}     \usepackage{subfig}       % ****************************************************************************************************          % ****************************************************************************************************     % 5. Setup code listings     % ****************************************************************************************************     \usepackage{listings}      %\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} % for special keywords     \lstset{language=[LaTeX]Tex,%C++,         keywordstyle=\color{RoyalBlue},%\bfseries,         basicstyle=\small\ttfamily,         %identifierstyle=\color{NavyBlue},         commentstyle=\color{Green}\ttfamily,         stringstyle=\rmfamily,         numbers=none,%left,%         numberstyle=\scriptsize,%\tiny         stepnumber=5,         numbersep=8pt,         showstringspaces=false,         breaklines=true,         frameround=ftff,         frame=single,         belowcaptionskip=.75\baselineskip         %frame=L     }      % ****************************************************************************************************              % ****************************************************************************************************     % 6. PDFLaTeX, hyperreferences and citation backreferences     % ****************************************************************************************************     % ********************************************************************     % Using PDFLaTeX     % ********************************************************************     \PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}         \usepackage{hyperref}  % backref linktocpage pagebackref     \usepackage{etex}     \usepackage[nonumberlist,shortcuts]{glossaries}     \pdfcompresslevel=9     \pdfadjustspacing=1      \PassOptionsToPackage{pdftex}{graphicx}         \usepackage{graphicx}           % ********************************************************************     % Setup the style of the backrefs from the bibliography     % (translate the options to any language you use)     % ********************************************************************     \newcommand{\backrefnotcitedstring}{\relax}%(Not cited.)     \newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}     \newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}     \ifthenelse{\boolean{enable-backrefs}}%     {%             \PassOptionsToPackage{hyperpageref}{backref}             \usepackage{backref} % to be loaded after hyperref package                 \renewcommand{\backreftwosep}{ and~} % separate 2 pages                \renewcommand{\backreflastsep}{, and~} % separate last of longer list                \renewcommand*{\backref}[1]{}  % disable standard                \renewcommand*{\backrefalt}[4]{% detailed backref                   \ifcase #1 %                      \backrefnotcitedstring%                   \or%                      \backrefcitedsinglestring{#2}%                   \else%                      \backrefcitedmultistring{#2}%                   \fi}%     }{\relax}              % ********************************************************************     % Hyperreferences     % ********************************************************************     \hypersetup{%         %draft, % = no hyperlinking at all (useful in b/w printouts)         colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%         % uncomment the following line if you want to have black links (e.g., for printing)         %colorlinks=false, linktocpage=false, pdfborder={0 0 0}, pdfstartpage=3, pdfstartview=FitV,%          breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%         plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%         hypertexnames=true, pdfhighlight=/O,%nesting=true,%frenchlinks,%         urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%         %urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%         pdftitle={\myTitle},%         pdfauthor={\textcopyright\ \myName, \myUni, \myFaculty},%         pdfsubject={},%     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{stmaryrd}     \usepackage{mathrsfs}          \usepackage{ucs}     \usepackage[utf8x]{inputenc}     \usepackage{CJK}     \usepackage{microtype}     \usepackage{graphicx}     \usepackage[all]{xy}     \usepackage{microtype}     \usepackage{rotating}     \usepackage{fourier-orns}     % tikz figures     \usepackage{tikz}     \usetikzlibrary{shapes}     % To scale fonts     \usepackage{scalefnt}          % Package for analytic index     \usepackage{makeidx}     \makeindex          % Package for glossary (Glossaries)     \makeglossaries     \loadglsentries{Frontmatter/Glossaries}


title: Create a PDF file with embedded fonts with pdflatex to be edited in Adobe Acrobat Pro

text: I'm trying to generate a PDF file with pdflatex, that can be edited later (during review time) with Acrobat Pro. A minimal working example:               \documentclass{article}     \usepackage{lmodern}     \begin{document}     Hello world!     \end{document}      Then, the PDF is created using pdflatex. And the goal is to later go to Acrobat Pro and be able to edit the text after selecting this tool: Acrobat 8 and below: Tools-> Advanced Editing -> Touchup Text Tool Acrobat 9 and newer: Tools -> Content -> Edit Document Text Then, you select a word and type something to try to replace it with new content, and the following warning occours: > "All or part of the selection has no available system font. You cannot add > or delete text using the currently selected font." If I check the File->Properties->Fonts in Acrobat Pro, it says that the font is Embedded Subset. I tried to use the technique described in Turning off font subsetting in pdftex? and that allows me to embed all the fonts. But still, the same problem arises when I try to edit the text in Acrobat Pro. The output of the PDF file with pdffonts is the following:               name                                 type              encoding         emb sub uni object ID     ------------------------------------ ----------------- ---------------- --- --- --- ---------     CCFBMP+LMRoman10-Regular             Type 1            Custom           yes yes no       4  0      and the output from pdffonts after embedding the fonts as in Turning off font subsetting in pdftex? is:               name                                 type              encoding         emb sub uni object ID     ------------------------------------ ----------------- ---------------- --- --- --- ---------     LMRoman10-Regular                    Type 1            Custom           yes no  no       4  0      Any idea on what is still missing to allow editing in Acrobat Pro? Thanks!


title: Float(s) lost in newly defined environment (possible \vbox/\hbox problem)

text: The following gives me `LaTeX Error: Float(s) lost.` I saw on Lost float in exam class that this might have to do with the `\vbox`. Replacing it with an `\hbox` gives `Something's wrong--perhaps a missing \item`. How can this be solved?               \documentclass{scrartcl}          \usepackage[american]{babel}          \usepackage{ifthen}     \usepackage{xparse}          \newboolean{sol}     \setboolean{sol}{false}          % solution environment     % see http://tex.stackexchange.com/questions/172404/solution-environment-via-true-false-switch?noredirect=1#172408     \NewDocumentEnvironment{solution}{O{sol}}{%       \ifthenelse{\boolean{#1}}{\par\noindent{\sffamily\bfseries Solution}\par}{\setbox0=\vbox\bgroup}     }{\ifthenelse{\boolean{#1}}{}{\egroup}}          \begin{document}     \begin{solution}       \begin{enumerate}       \item foo         \begin{figure}[!htbp]         \end{figure}       \end{enumerate}     \end{solution}     \end{document}


title: Custom biblatex style for citing images and tables

text: I need to cite tables and images with a very specific style to satisfy a requirement from the institution. The resulting output of the `\printbibliography` should look like this for those citations: > Figure 3. http://www.example.com/img/name.jpg, visited on 6.3.2014 > > ... > > Table 6. http://www.example.com/tables/tables.pdf, visited on 9.3.2014. Manually, this would be something like:               \newcommand{\tablebib}[3]{%         Table \ref{#1} \url{#2}, visited on \displaydate{date}%     }      I'm using biblatex for other citations and would like to use it for those references as well. How can biblatex output such a format? The final bibliography result should a mix between a more-or-less standard `authoryear` style (I managed to do this), and the above style for citing image and table sources from the Internet (I don't know how to do this): > Tomplinson, D., Baeyer, C.L., Stinson, J.N., Sung, L. (2010): A Systematic > Review of Faces Scales for the Self-report of Pain Intensity in Children, > Pediatrics, Vol.126, 5 > > ... > > Figure 3. http://www.example.com/img/name.jpg, visited on 6.3.2014. Another manual try would be:               % arara: xelatex     % arara: biber     % arara: xelatex     \documentclass{scrartcl}     \usepackage[backend=biber,style=authoryear,sorting=nty]{biblatex}     \addbibresource{mwe.bib}          \begin{document}     \begin{table}[htb]     \begin{tabular}{l}     test     \end{tabular}     \caption{Description\cite{tab:test}}     \end{table}          \printbibliography     \end{document}      with the bibliography:               @Online{tab:test,       Url                      = {http://www.example.com/images/image.jpg},       Urldate                  = {2014-02-25},       Timestamp                = {2014.06.13},       Note                     = {Table \ref{tab:test}}     }      This outputs: > (2014) Table **??**. URL: http://www.example.com/images/image.jpg (visited > on 02/25/2014) Year should not be visible. The reference should be resolved. `URL:` should not be displayed, but the url itself should be visible.


title: Problem using a LaTeX template for writing thesis

text: I have downloaded a template for writing thesis from MIT website, which can be found here. In the file `main.tex`, I have to modify the following code:               \typein [\files]{Enter file names to process, (chap1,chap2 ...), or `all' to process all files:}     \def\all{all}     \ifx\files\all \typeout{Including all files.} \else \typeout{Including only \files.} \includeonly{\files} \fi      Could someone please let me know how I should modify the above code? I have tried for example:               \typein [\files]{'all'}      but still I get errors such as `Emergency Stop`.


title: In a table: Problem equalling the width of only three columns

text: I am writing a thesis in a large .tex file in Vim. As I show in this image, the first, second and third column have different spacing (width): ![enter image description here](http://i.stack.imgur.com/q92UQ.png) This is the code for the table:               \begin{table}[h]     \centering     \begin{tabular}{|c|c|c|c|}     \hline      \multicolumn{3}{|c|}{\begin{tabular}[c]{@{}c@{}}Números cuánticos \\[-0.1cm] del estado excitado\end{tabular}} & \multirow{2}{*}{\begin{tabular}[c]{@{}c@{}}\\[-0.95cm]Frecuencias \\[-0.2cm] de absorción \\[-0.2cm] experimentales \\[-0.2cm] (cm\textsuperscript{-1})\end{tabular}} \\ \cline{1-3}     $v _{1}$ & $v _{2}$ & $v _{3}$ &  \\ \hline     $0$ & $1$ & $0$ & $1594{.}59$ \\ \hline     $1$ & $0$ & $0$ & $3656{.}65$ \\ \hline     $0$ & $0$ & $1$ & $3755{.}79$ \\ \hline     $0$ & $2$ & $0$ & $3151{.}40$ \\ \hline     $0$ & $1$ & $1$ & $5332{.}00$ \\ \hline     $0$ & $2$ & $1$ & $6874{.}00$ \\ \hline     $1$ & $0$ & $1$ & $7251{.}60$ \\ \hline     $1$ & $1$ & $1$ & $8807{.}05$ \\ \hline     $2$ & $0$ & $1$ & $10613{.}12$ \\ \hline     $0$ & $0$ & $3$ & $11032{.}36$ \\ \hline     \end{tabular}     \end{table}      I would like to make first, second and third column the same width. The rest of the tables in the .tex file are fine, except for this particular table. This way, I would not prefer to write commands in the preamble, due to this will modify all tables. I would only like to equal the space of first, second and third columns only in this particular table. My preamble is this:               \documentclass[12pt,a4paper,twoside,openany]{report}     \usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}     \parindent 1 true cm     \usepackage[dvips]{graphicx}     \usepackage{eufrak}     \usepackage[spanish]{babel}     \usepackage[latin1]{inputenc}       \usepackage[T1]{fontenc}     \usepackage{times}     \usepackage{amsmath}     \usepackage{graphicx,epsfig}     \usepackage{multirow}     \usepackage{float}     \usepackage{color}     \usepackage[longnamesfirst,super]{natbib}      \setcitestyle{square}      \usepackage{fancyhdr}         \pagestyle{fancy}                                          \renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}              \renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}}      \lhead{\nouppercase}     \rhead{\nouppercase}     \fancyhead[LE]{{\sf \leftmark}}                                      \fancyhead[RE]{}                                                     \fancyhead[RO]{{\sf \rightmark}}                                   \fancyhead[LO]{}      \fancyfoot[LE,RO]{\thepage}     \fancyfoot[CE,CO]{}                                                              \renewcommand{\headrulewidth}{0.0pt}                                     \renewcommand{\baselinestretch}{1.25}     \usepackage{adjustbox}     \usepackage{enumerate}     \usepackage{courier}     \begin{document}      I would appreciate very much if someone could help me, making tests with my preamble, and the code that introduces the table. (I am writing the thesis .tex file in Vim).


title: how to write make rectangle box and write in it

text: \documentclass{article}     \usepackage{graphicx}     \usepackage{amssymb}     \begin{document}     \title{GROUP THEORY}\bfseries     \maketitle     \section{ALGEBRIC SYSTEM :}     NOTE: The algebraic system define over operator $\star$ , which is \emph{closed} and \emph{associative} is called SEMIGROUP.     \end{document}      I want to write my last sentence in rectangular box so that i can highlight it.


title: How can I run LaTeX from Sublimetext 2?

text: Actually, I have read the similar issues that are asked here. But still I can not find a solution for my case. I loaded Latextools plugin, and I installed Sumatra pdf viewer. Even though I added to the path sumatra pdf. I am getting the same error which is:               Cannot launch Viewer. Make sure it is on your PATH.      What should I do to fix this problem to run my .tex files from Sublimetext 2 ?


title: ModernCV creates a blank page

text: I have created a text, but as an example I created this simple text               \documentclass[a4paper,12pt,danish]{moderncv}     \moderncvtheme{classic}     \usepackage{babel}     \usepackage{lipsum}     \pagestyle{empty}     \firstname{}     \familyname{}     \address{a\\b,}{c}     \begin{document}     \recipient{a}{a}     \opening{a}     \closing{a}     \makelettertitle     \lipsum[1-3]     \makeletterclosing     \end{document}      But I am wondering, why does this create a blank page as page 2?


title: Meta data for marker size instead of colour

text: In `pgfplots`, is it possible to have meta data affect the size of markers instead of their colour? I am referring to the set of commands described in section 4.4.10 about scatter plots in the `pgfplots` manual. Here is one of the provided examples :               \begin{tikzpicture}     \begin{axis}     \addplot+[scatter,     samples=50,scatter src=y]     {x^3};     \end{axis}     \end{tikzpicture}


title: Is there a way to define starred variants for a keyvalue system?

text: I've created an environment for which various parameters are set through key values. Instead of creating a hornet's nest of various booleans, I would just like to have a slight variant form for some of the keys to handle some of the formatting. In particular, while none of the keys are mandatory, I need a way of handling things if I omit some of the keys. So, I figured I'd create starred variants. To help you understand what I'm trying to do in the following MWE, here's the basic idea: I have three optional _tags_ to add to a quote (`title`, `description`, and `author`). Each is meant to show up on its own line, when used. If the key is not used, then nothing should be done. But if the `author` key is not called, then I need a means of handling the line breaks to avoid unwanted extra whitespace. The starred variants are to be used in such a situation. Here's a MWE:               \documentclass{article}     \newcommand{\attrib}[1]{\nopagebreak{\par\raggedleft\footnotesize #1\par}}     %%----------     \makeatletter     %%----------     \let\ae@source@title\relax     \let\ae@source@description\relax     \let\ae@source@author\relax     %%----------     \newlength{\widthofwidestline}     \newlength{\afterEpigraphSkip}     \setlength{\widthofwidestline}{3in}     \setlength{\afterEpigraphSkip}{1\baselineskip}     %%----------     \RequirePackage{pgfkeys}     \pgfkeys       {         /ae/my/epigraph/environment/set/options/.cd,         title/.code         = {\def\ae@source@title{#1\\}},         description/.code   = {\def\ae@source@description{#1\\}},         author/.code        = {\def\ae@source@author{#1}},     %% variants for handling `title` and `description` when `author`     %% (and possibly other keys) are missing.         title*/.code         = {\def\ae@source@title{#1}},         description*/.code   = {\def\ae@source@description{#1}},     %% length parameters         longest line/.code  = {\settowidth{\widthofwidestline}{#1}},         afterskip/.code     = {\setlength{\afterEpigraphSkip}{#1}},       }     \newenvironment{epigraph}[1]       {\pgfkeys{ /ae/my/epigraph/environment/set/options/.cd, #1 }%        \par\hspace*{\fill}%        \begin{minipage}[t]{\dimexpr\widthofwidestline+1em}%       }       {\attrib{%          \ae@source@title          \ae@source@description          \ae@source@author          \makebox[0pt][r]{\rule[-0.8pt]{1in}{0.4pt}}%         }%        \end{minipage}%        \hspace*{\fill}%        \vspace{\afterEpigraphSkip}%       }     \makeatother          \pagestyle{empty}     \begin{document}          \begin{epigraph}{title={title},                      description={description},                      author={me},                      longest line=abcdefghijklm}       Scenario 1     \end{epigraph}          \begin{epigraph}{author={me},                      longest line=abcdefghijklm}       Scenario 2     \end{epigraph}          \begin{epigraph}{title={title},                      description={description},                      longest line=abcdefghijklm}       Scenario 3     \end{epigraph}          \begin{epigraph}{title={title},                      description*={description},                      longest line=abcdefghijklm}       Scenario 4     \end{epigraph}          \begin{epigraph}{title*={title},                      longest line=abcdefghijklm}       Scenario 5     \end{epigraph}          \begin{epigraph}{description*={description},                      longest line=abcdefghijklm}       Scenario 6     \end{epigraph}          \end{document}      `Scenario 3` illustrates what I want to avoid. This MWE produces: ![enter image description here](http://i.stack.imgur.com/Lit5g.png) I'm not so much interested in creating a new epigraph command: I know there are such packages. I also know that I could set and process booleans to handle this issue _automatically_. But as I mentioned, I really would like to avoid creating boolean switches. I'm more interested in a larger issue where key values are being used, but where occasionally you might want to handle some of the keys in a slightly different manner than _usual:_ hence the starred-variant. I haven't found anything in the documentation that would allow for this. I also didn't find anything on this site related to starred variants of keys. I'm primarily interested in feedback about best practices in such a situation.


title: Make different font sizes in a table align at top, not bottom

text: I have a situation similar as to this MWE:               \documentclass{article}     \usepackage{tabularx}     \begin{document}     \begin{table}     \begin{tiny}     \begin{tabularx}{\textwidth}{|>{\normalsize}X|X|X|}     \hline     Foo & Bar & Baz\\     \hline     \end{tabularx}     \end{tiny}     \end{table}     \end{document}      I.e., I have a first column with a larger fontsize than the others. The text is vertically aligned along the baseline, which leads to somewhat ugly whitespace at the top of the table cells. (In my real document, those cells hold multiple lines of text, which makes the effect even more ugly.) How do I make the text align so that the `normalsize` and `tiny` cells have the same whitespace from the top of the table cell? Google led me to `raisebox`, with which I did some experiments but somehow couldn't get a satisfactory result...


title: Helvetica font and ohm symbol

text: I am writing an industrial laboratory report, where I need to use Helvetica. My preamble contains:               \usepackage[T1]{fontenc}     \renewcommand{\familydefault}{phv}\selectfont     \usepackage[margin=10pt, font=bf, ]{caption}      I need the ohm symbol in the text of the document and in numerous captions, that are in bold characters. I have tried a lot of options, such as `\usepackage{textcomp}`, `\usepackage[squaren, Gray, cdot]{SIunits}`, `\usepackage{gensymb}`, and many ways to write the ohm or Omega symbol. However none looked really nice. I am currently using `$\Omega$` in the main text, and `$\boldsymbol\Omega$` in the captions. Is there any way to get an Omega matching visually Helvetica text?


title: Get derivative of a function

text: I want to write a macro, which takes a mathematical function as argument and returns a plot using `pgfplots` of the function and of its derivative. I guess that this isn't possible using just LaTeX; however, for example, `pgfplots` can use the external program `gnuplot` to plot functions or there is LuaTeX... So is there any way to get the derivative of a mathematical function do do this?


title: tikz 3D intersection of planes

text: I have got this figure in form of a PNG graphics. I can directly use it in my latex document. However, I would like to know if I can draw it with Tikz. I don't have much idea about two things -   * How to show the intersection of two planes as shown in the figure.   * The blue plane is curved. Is it possible to perform it in Tikz? ![enter image description here](http://i.stack.imgur.com/JiLEd.png) What I tried was this code-               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \begin{axis}[domain=0.01:30]     \addplot3[patch,shader=flat,blue,patch type=rectangle] coordinates {    (0,0,0) (20,0,0) (20,20,25000) (0,20,2500)};     \addplot3[patch,shader=flat,red, patch type=rectangle] coordinates {    (0,0,2500) (20,0,2500) (20,20,15000) (0,20,2500)};     \end{axis}     \end{tikzpicture}     \end{document}      I just got the information that this plot was done with Matlab. But the source code is lost. So I can try to plot it again with matlab.


title: Customize the "cell environment" in a tabular

text: Is there a way to modify the layout of cells in a `tabular`? I would like to have a environment mytable which I would use like a `tabular`:               \begin{mytable}{l|l}     entry & entry \\     entry & entry      \end{mytable}      which would create a `tabular`, and such that for each entry, it would insert some `\mycommand` at the beginning of each cell. Is it possible?


title: Is there any easy way to draw a ruled surface like a hyperbolic paraboloid in TikZ?

text: At the risk of asking YET ANOTHER TIKZ question on a general TeX forum :), I was wondering if there was any easy way to draw a ruled surface like a hyperbolic paraboloid in TikZ? I'm not particular about the surface per se: I just need some eye candy for a nontrivial looking surface, and the hyperbolic paraboloid is a good example because of the negative curvature. I checked texample.net and google, and while I found a PSTricks package that can do this, it doesn't fit my workflow with pdflatex and Beamer.


title: (Badge printing) Why is there a margin in my framebox?

text: > **Possible Duplicate:**   >  Where are the necessary places to be appended with % to remove unwanted > spaces? I am trying to create a LaTeX template for badge printing (for a conference), based on various examples I found on the internet. However, whenever I try to draw a frame around my badges, which are basically a minipage drawn on top a background graphic, the resulting badge is slightly off to the right, i.e. with a margin to the framebox' left border and overlapping the framebox' right border.               \documentclass[a4paper,12pt]{article}     \usepackage{fullpage}     \usepackage{csvtools}     \usepackage{graphicx}          \newcommand{\badgewidth}{87mm}     \newcommand{\badgeheight}{55mm}     \setlength{\oddsidemargin}{-15mm}     \setlength{\fboxsep}{0mm}     \newcommand\imgcmd{\includegraphics[width=\badgewidth,height=\badgeheight]{logo}}          \pagestyle{empty}     \begin{document}     \applyCSVfile{names.csv}{       \noindent       \framebox[\badgewidth]{         \noindent         \rlap{           \raisebox{-\badgeheight}{\imgcmd}         }              \begin{minipage}[t][\badgeheight]{\badgewidth}           \vspace{10mm}           \sffamily \centering            \fontsize{30}{36}\selectfont\textbf{\insertName}           \\           \vspace{4mm}           \LARGE\itshape\insertAffiliation         \end{minipage}       }     }     \end{document}      I have already played around with \fboxsep and put \noindent everywhere, but no help. I also used saveboxes for storing the content before, but the result remains the same. For a full working example, see the project on Github. I'd greatly appreciate any advice. Regards, Malte


title: What online tool is suggested for the picture package in LaTeX?

text: As you know there are online tools for drawing tables for LaTeX. Is there any online tool which can be used to generate the pictures (any geometrical graphics and shapes) easily? That means we don't need to manipulate the codes in LaTeX to get the desired graphics. Instead, we can generate the graphics in the tool and then copy and paste the corresponding codes into the LaTeX file.


title: How to draw an image in LaTeX

text: I would like to draw in pure Latex the three following images: ![to draw](http://i.stack.imgur.com/uwctl.png) Could you suggest me a package to do it (or directly how to do)? Thanks, Vi.


title: Graphic tool in LaTeX?

text: I have started to use TexStudio for making my documents in LaTeX (beginner mode, by the way); and I was wondering if there is any software that allows to make graphs so they can be transformed directly to LaTeX. I mean not necessary plots, but like a sort of Paint so that I can export the graphs to LaTeX, if they are TexStudio plugins would be great.


title: How can I tell which of several solutions to a LaTeX problem is the fastest/most efficient?

text: Consider this TeX/LaTeX StackExchange question I posted yesterday. I asked for a way to create a particular macro with a somewhat idiosyncratic calling pattern, which is not trivial to code. After waking up and coming back to the site, I found that seemingly viable solutions had been suggested by users A.Ellett, Sean Allred, egreg and Andrew Stacey (links go to the answers). Now it is worth noting that the efficiency (however you define this) of a particular approach to the problem is not the only thing that is of importance in deciding which solution to use. There are other things that might be considered: how versatile an approach is, how fragile/easy to break with unforeseen use-cases it is (I am using "fragile" in the generic sense, not in the TeX macro sense), how helpful its errors are when it is used incorrectly, how easily deciphered (and potentially repurposed) the TeX code is. For example, A.Ellett notes that their answer "is not fail-safe!"; I'm not sure what he means, but I assume he is warning that his version of the macro might break if used in the wrong way. For another example, egreg's approach mandates that one of the arguments must be in a TeX group (`{...}`), which is not a problem as such but is a potential "gotcha" given that a typical LaTeX command does not mandate this. But it would still be interesting to know which approach performs best (in that it allows a document that uses the macro many times to be compiled fastest). In the Python programming language, a utility is provided that allows one to time alternative approaches to a problem to see which is most efficient, by running through each approach a certain number of times and seeing which one gives the least total time. In LaTeX, presumably the natural way to do it would be to create a document that does the same sort of thing - repeating each solution a large number of times - and which contains in the finished document a summary of the total time taken by each approach. Is there a way of doing this? It could look something like:               \documentclass[a4paper]{amsart}          \usepackage{tikz, xparse}          \begin{document}     \thispagestyle{empty}          \foreach \file in {file1.tex, file2.tex, file3.tex}{         \input{\file} % file should use \def to define \mymacro         % Here we start a timer         \foreach \x in {1, ..., 1000}{             \mymacro{with}{some}{arguments}         }         % Here we stop the timer and place the time taken in the macro \executiontime.         The time taken for the approach in \file was: \executiontime.     }          \end{document}      NB. This is something approaching pseudocode, and won't compile if simply copy-pasted into a file!


title: How can I use LaTeX to build my website?

text: Can I use LaTeX to specify cascading style sheet? Can someone enlighten me something about using LaTeX with my website? Basically to setup layout like how I do for documents, setting up fonts, spacing etc


title: Put long formulas on new line/pgf tikz?

text: Sometimes I have to work with long formulas that can (or I want) not be split over two lines. I'm trying to write a macro that sent the formula at the new line if the formula would go over the margin. For example, with lines of twenty characters, and calling `\Foo` this macro: a text like > 12345678901234567890   >  aaaaa aaaa aaaaaa $bbbbbb$   >  aaaaa aaaa is formatted as > 12345678901234567890   >  aaaaa aaaa aaaaaa bbbbbb   >  aaaaa aaaa while > 12345678901234567890   >  aaaaa aaaa aaaaaa \Foo{$bbbbbb$}   >  aaaaa aaaa is formatted as > 12345678901234567890   >  aaaaa aaaa aaaaaa   >  bbbbbb aaaaa aaaa Since this require to verify if such macro is over the limit after printing, I suppose is something requiring multiple step of compilation. The only way I know to retrieve coordinates of a point is using a `tikz` coordinate, but so a "pseudocode" draft of what I'm trying to do is:               \newcommand{\Foo}[1]{%       \myCount=\myCount+1       \if\NameConcat\FooVar\myCount>\pageLength\endline\else\relax       #1%       \coordinate\NameConcat\FooVar\myCount%       }      (at the start `\myCount` and all `\FooVars` have to be "zero", and `\NameConcat` concatenate the `FooVar` name and the counter creating as many counter as needed) So, what is the best way to implement this in LaTeX?


title: Configuring TeXworks processing tools

text: I am trying to configure `TeXworks` to run the following chains:   1. `latex` with automatic dvi viewer opening   2. `latex+dvips` with automatic ps viewer opening Essentially, I want to learn how to configure TeXworks to create my own chains of commands possibly with a long list of executables that are usable and commands used within TeXworks. That is, what can go under `Program` and `Arguments`. For example, from the post: http://tex.stackexchange.com/a/18938/10898 if I want to compile via `latex+dvips+ps2pdf`, I would need to use               -e     $latex='latex -synctex=1'     -e     $dvips='dvips -P pdf -t a4'     -pdfps     $fullname      with `latexmk` as the `Program` as shown below: ![enter image description here](http://i.stack.imgur.com/MxiFr.png) When I analyze the `pdfLaTeX` settings its much simple than the one shown above. Any clarifications on how to create these settings and explanation or tutorials to understand TeXworks at this level will be very helpful. Is `latexmk` the only `Program` which can be used? I have tried changing it to `latex.exe` or the sort but no good results.


title: problem with psfrag, eps file and texworks

text: I need to compile file using psfrag ans eps figure. I use texworks on windows and I have read that there are problems with pdflatex and I should go the latex->dvi->ps way but all I have found so far is not at all understandable for me... could you help me please? Thanks by advance :)


title: How not to skip a page with begin{figure}

text: I have this code.               \section{Anhang}          \begin{figure}              \includegraphics{anderegraphen5,6-1.png}          \end{figure}      Right now I skip the page after "Anhang" can someone please tell me how I keep the graphic on the same page? I have already read How to influence the position of float environments like figure and table in LaTeX? , but perhaps i missed the solution in this link. Perhaps you can give me a direct hint.


title: Separate Verbatim into two columns

text: Is it possible to split a long verbatim simply into 2 columns? For example:                \begin{verbatim}      a      a      a      b      b      \end{verbatim}      result displayed (b starting at the middle of the page):               a       b     a       b     a


title: How to implement the Russian typographical traditions?

text: As is well known, TEX uses four styles in mathematics: _display_ ( _D_ ), _text_ ( _T_ ), _script_ ( _S_ ) and _script-script_ ( _SS_ ). This style deﬁnes the size of fractions and mathematical operators, the style for how the upper and lower limits and indices are attached to mathematical operators, the default letter size used in mathematics, etc. The style in formulæ embedded in text starts from _T_ , the style of formulæ placed in a separate block starts with _D_ , and the styles are switched automatically in fractions, integrals, arrays, etc., as it is shown below: > **Main style** _D T S SS_ > > **Numerators and denominators** _T S SS SS_ > > **Indices** _S S SS SS_ Contrary to this scheme there are only _three_ font scalings associated with four mathematical styles since _D_ -mode and _T_ -mode use letters of the same size. (It is not true for mathematical operators which are greater in _D_ -mode than in _T_ -mode.) Say for the document at 10 pt, _D_ and _T_ correspond to the font at 10 pt, _S_ \---to the font at 7 pt, _SS_ \---to the font at 5 pt. In Russian literature there is no difference between the styles of mathematical operators embedded in text and those placed separately. But _four_ font sizes are used instead of three: say, for the document at 10 dd these are 10 dd, 8 dd, 6 dd and 4 dd, and for the document at 12dd—12dd, 10 dd, 8 dd and 6 dd. (Russian typography is based on Didot points---it follows French traditions, not English ones,---and for this reason Russian fonts and spaces are a little bit greater.) Switching of font sizes in mathematical books is the following: > **Main size** 10 8 6 4 > > **Numerators and denominators** 8 6 4 4 > > **Indices** 6 6 4 4 (For newspapers and rapid communications, it is allowed not to decrease the font size for multilevel formulæ at all.) Suppose there is a fraction typed in _display style_ \---i. e., when 10 pt is the main font size and 7 pt is the font size for superscripts and subscripts. In TEX the numerator and denominator of this fraction are set in the 10 pt font and their subscripts and superscripts are set at 7 pt as well, but their ‘big operators’ use the `\textstylemode` instead of `\displaystyle`. The numerator and denominator of the nested fraction are set at 7 pt with the subscripts and superscripts set at 5 pt, the next level fraction sets both numerator/denominator and their subscripts/superscripts at 5 pt, more levels remain the font sizes unchanged. In Russian mathematical publications the ﬁrst level fraction has the numerator and denominator set at 8 pt (8 dd) with subscripts and superscripts still unchanged (i. e., at 6 pt) and with big operators set in `\textstyle` mode. It is essential that for the nested fractions these speciﬁcations remain the same irrespective of the nesting level. (That is, switching to _script style_ and _scriptscript style_ takes place for nested indices, not for nested fractions, square roots, etc.) As a result, enclosed fractions do not decrease in size so strongly as in TEX andmultilevel formulæ aremuch higher in Russian mathematics. To simulate this effect, enclosed fractions are generally typed in `\displaystyle` which is closer to the original style than that used in TEX. See this article for more details. ![enter image description here](http://i.stack.imgur.com/YfsFW.gif)


title: How did my packages update?

text: I downloaded the memoir class package and ran the .ins file. Then, without doing anything else, it seemed that the memoir class was up and running! I don't think it was there previously....I am running gummi on Ubuntu. How would I verify where the package is? Does the .ins file automatically transfer the files to the gummi program or....?


title: Why do AMS document classes incorporate amsthm rather than loading it?

text: Why do AMS document classes _incorporate_ the `amsthm` package, rather than loading it using the usual `\RequirePackage` mechanism the way they load `amsmath` and `amsfonts`? The document classes even "simulate the loading of the `amsthm` package" in order to "guard against redundant loading"! Why so complicated?


title: Vertically align table in a page

text: I would try to align vertically a table in a page. I have a page contains only a table and I would put it at the center of the page. To center it horizontally I used \centering but what command should I use to center it vertically?


title: Is biblatex compatible with RevTeX?

text: `biblatex` seems to be not compatible with RevTeX. As RevTeX automatically loads `natbib`, I load `biblatex` with the option `natbib=true`, but still LaTeX compiler complains that lot of commands are already defined. I make them undefined as follows:               \let\bibhang=\undefined     \let\citename=\undefined     \let\textcite=\undefined     \let\bibfont=\undefined     \let\Citeauthor=\undefined     \let\citet=\undefined     \let\citep=\undefined     \let\citealt=\undefined     \let\citealp=\undefined     \let\Citet=\undefined     \let\Citep=\undefined     \let\Citealt=\undefined     \let\Citealp=\undefined     \let\citefullauthor=\undefined     \let\citetext=\undefined     \let\defcitealias=\undefined               but still obtain various errors such as          ! Package biblatex Error: Incompatible package 'natbib'.          See the biblatex package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.78 \begin{document}          ?       I've checked that `natbib` compatibility mode is switched on:               Package biblatex Info: Trying to load natbib compatibility...     Package biblatex Info: ... file 'blx-natbib.def' found.      ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\blx-natbib.def"     File: blx-natbib.def 2011/02/13 v1.2a biblatex natbib compatibility      So, it looks as if that trouble comes from RevTeX. I tried both RevTeX4 and more recent RevTeX4-1. No difference.


title: The use of "tilde" changes the proximity to the set theory symbol (ref img)

text: I just want to format a simple set theory example. But the following is annoying: ![](http://i.stack.imgur.com/dIe3p.png) See how close the cap gets to the 'A' because of the tilde sign? I've used sim for the tilde sign. Any suggestions?


title: How to avoid double dot in Theorem Head Spec in case of theorem with no name?

text: I'm using the `\newtheoremstyle{name}` command to generate a specific theorem head spec in the form of:               {\thmname{#1}\thmnumber{ #2}.\thmnote{ #3}}      where `#1` is **Theorem** , `#2` is 'the theorem number', and `#3` is 'my theorem name'. However, when I don't use 'my theorem name' as in some cases, the output gives two dots (the one after `\thmnumber`, and the one after the `thm` head). How can I avoid this? I mean, how to avoid the extra dot in case of a theorem with no name?


title: randtext not working

text: All `\randomize{}` does in the following MWE is removing the space between the words. I wonder why the text is not randomised.               \documentclass{article}     \usepackage[english]{babel}          \usepackage{randtext}     \begin{document}     \randomize{Random Text}     \end{document}      I am using TeX Live.


title: Beamer Enumerate and Itemize

text: Is it possible to combine these environments? Now I have this code.               \begin{itemize}     \item a     \item b     \end{itemize}


title: Arrow with superscript in tikz-cd

text: I need my `tikz-cd` diagrams to have arrows (vertical and horizontal) that mimic `\mapsto^*` to match the relation in the text. The closest I've managed is to add a label `{*}` at `[pos=1]`:               \documentclass{article}     \usepackage{tikz,tikz-cd,stmaryrd}          \begin{document}     \[       \begin{tikzcd}         M \dar \rar[maps to] & N \dar[maps to][pos=1]{*} \\         M' \rar[maps to][pos=1]{*} & N'       \end{tikzcd}     \]     \[       M' \longmapsto^* N'     \]     \end{document}      ![MWE output](http://i.stack.imgur.com/tdnjS.png) Not horrible, but definitely off. I can get it closer by using `pos=1.1`, but I'd prefer a less fiddly solution (that won't break if the arrow's length changes, for instance). It would be especially helpful if I can define a `/.style` for this arrow so that I can change my existing ones (they already use a custom style).


title: My subsubsection take the same number as the subsection

text: \documentclass[b5paper, 11pt]{article}         \usepackage[lmargin=2cm, rmargin=2cm,tmargin=2cm,bmargin=2cm]{geometry}     \usepackage{graphicx} % for pdf, bitmapped graphics files     \usepackage{indentfirst}     \usepackage{amsmath} % assumes amsmath package installed     \usepackage{amssymb}  % assumes amsmath package installed     %\usepackage{deleq} % to divide on equation     %\usepackage{bbm} % to represent the space dimension     %\usepackage{bbding} % to represent the space dimension     \usepackage{dsfont} %to represent the space dimension     \usepackage{color}     \usepackage{algorithm}     %\usepackage{algorithms}     %\usepackage{latexsym}     %\setcounter{secnumdepth}{3}     \setcounter{secnumdepth}{3}     %\setcounter{tocdepth}{3}     \usepackage{multicol}%%%%%%%%%%%%     \usepackage{lipsum}%%%%%%%%%%%%%%%%%%%     \usepackage{theorem}     \newtheorem{theorem}{Theorem}     \newcounter{tempcount}     \graphicspath{{figures/}}          %\usepackage{titlesec}     %\titleformat{\section}[block]     %{\Large\bfseries\filcenter}{}{1em}{}     %\titleformat{\subsection}[hang]{\bfseries}{}{1em}{}          \usepackage{titlesec}     \titleformat{\section}[block]       {\fontsize{12}{15}\bfseries\sffamily\filcenter}       {\thesection}       {1em}       {\MakeUppercase}     \titleformat{\subsection}[hang]       {\fontsize{12}{15}\bfseries\sffamily}       {\thesubsection}       {1em}       {}     \titleformat{\subsubsection}[hang]       {\fontsize{12}{15}\bfseries\sffamily}       {\thesubsection}       {1em}       {}       \usepackage[T1]{fontenc}     \usepackage{mathptmx}                    \renewcommand*{\thefootnote}{\fnsymbol{footnote}}     \newcommand{\ParGraph}{\\ \indent}     \usepackage[noblocks]{authblk}     \title{\bf     title}     %\author[ ]{}     \author[ ]{Mustafa Rabeei }     \affil[ ]{Electrical Engineering Department      E-mails: {\tt eng.mustafa.rabeay}}     %##############################################################################     \begin{document}     \section{a}     \subsection{b}     \subsubsection{c}     \end{document}      I got 1 A 1.1 b 1.1 c I need 1 A 1.1 b 1.1.1 c


title: Publishing a package update on CTAN?

text: This is one of the questions I get on and off, so I thought I'd post about it. A couple of times, I've ended up with a situation where I need to modify code in a CTAN package proper - that is, I cannot just manage with a redefinition pattern like:               \let\old@COMMAND\current@COMMAND     \def\current@COMMAND{%       % pre-hook commands ...       \old@COMMAND       % ... post-hook commands ...     }      ... in my main code. The changes may be just a couple of lines in a, say, 100's of lines of `.sty` code, adding a new command - so it is in the "feature request" category, rather than "bugfix"; and as such, calling that with a "new" package name, and publishing it as such, would not be justified, in my opinion. Of course, I could always "publish" such an "update" to a package by posting it anywhere on the 'Net (from pastebin to here); but I was interested - what is the correct procedure if I'd want this update published on the CTAN package proper, and the author/current maintainer are not accessible at the moment (say, up to a month from initial query) to approve/disapprove of the update? Some related info:   * How can I contribute to CTAN? > Having done that, take your files and bundle them up in a ZIP or TAR.BZ (or > etc.) archive and upload it. There are two CTAN ‘mirrors’ to which you can > upload your work: ...   >  The only difference between the two is that a different person (in a > different timezone) will process the upload.   * Historical, stable version archive of packages > CTAN holds the current release of each package: the 'archive' in the name is > more because it's a single source for 'everything' than meant to imply a > record. (Remember that before CTAN collecting TeX sources meant trawling > many different author-maintained sites.) > > Maintaining a 'back catalogue' of material is down to each package author, > and as a result many packages have limited or no publicly-available source > repository. The nearest you can get is probably the TeX Live SVN, which gets > updated each time a package is changed in TeX Live. ... > > there are only archives of complete TeXLive versions: > ftp://tug.org/historic/systems/texlive/ ... > > I'm actually working on an archive of CTAN using automated Mercurial > repositories for the last two weeks. The CTAN content is mirrored daily and > each CTAN package (with exceptions) is committed to its own Mercurial > repository. > > This is currently online as http://ctanhg.scharrer-online.de/, but not 100% > finished yet. Also, it might not handle large loads well. You can get each > archived version as ZIP or Mercurial clone.   * Is there a database of Tex/LaTeX package bugs where one can report or track status?: No, and also: > You might know, you can download all packages from a mirror of CTAN. But > CTAN itself is run by more or less three persons, who are serving there > since many years. Without them, no CTAN.[1] > > So if any reader of this question considers asking for more than the > packages on CTAN, namely a bugzilla or whatever: We depend on people who > contribute their work to maintain our infrastructure and even at the very > heart of it there is a lack of people.   * What is the preferred way to contact a package author? - TeX - LaTeX Meta Stack Exchange > You should first check the package manual and its README file (both usually > under http://www.ctan.org/pkg/) for an email address > > Please note that virtually all package authors do write these in their spare > time and might be busy with their day job, so you should give them 1-2 weeks > to respond, then write them a second email. > > Several package authors are also reading the comp.text.tex usenet group and > people often post package related issues there. However, you still should CC > the author using a private email as well. He/she might overlook the post > otherwise. Also it is a little rude to post it in public but not contact the > author directly as well. > > This varies from package author to package author. If you can find a > (working) e-mail address, then this is usually the best way. So, in other words: if I naively packaged my changes in the original `someoneelsespackage.zip` and uploaded that to CTAN, then one of those poor souls volunteering to maintain CTAN would simply get a message, hopefully automatically identifying that such a package already exists but the originating email doesn't match, and so it will be refused outright - and thus I've managed to waste people's time for absolutely nothing. Then again, I could rename that to `myversionofsomeoneelsespackage.zip` \- that may pass through the automated checks, and even the judgment of maintainers; but is it really worth increasing all the noise (with identical pdf .docs, etc) for what is essentially a two lines patch? This is the main dilemma I have, that motivates this question...


title: Unpleasant high frames of citation or reference in paragraphs

text: When both a citation (or reference of equations) and a math object appear in the same line in a paragraph, the frame of the citation is higher than normal. Any ideas how to fix this but keep the frame? Thank you in advance!               \documentclass[a4paper, 11 pt]{article}     \usepackage{amsmath,amssymb,amsthm,mathrsfs,amsfonts}      \usepackage[round]{natbib}      \usepackage{hyperref}      \begin{document}      Since $X_n\overset{L}{\to}X$ as $n\to\infty$, by \citet{Davydov1998local}, we then have...      \bibliography{D:/Dropbox/Common/mybibliography}      \end{document}      ![enter image description here](http://i.stack.imgur.com/EUthf.png)


title: How to center dmath equation under an item?

text: I have this code:               \documentclass{article}     \usepackage{breqn}     \usepackage{blindtext}          \eqinterlinepenalty=0     \intereqpenalty=0           \begin{document}              \blindtext[3]              \begin{itemize}             \item  Line of item, line of item, line of item, line of item, line of item, line of item             \begin{dmath*}             1 - 1 = 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             = 1 - 1 + 1 - 1 + 1 - 1             \end{dmath*}         \end{itemize}          \end{document}      OUTPUT: ![enter image description here](http://i.stack.imgur.com/mmUIn.png) And I get a equation not centered under item. Any solution to force the centering of the equation under item with dmath? **Requirement:** the equation will break accross pages