title: Bad vertical alignment with double-line inference rule

text: I'm trying to write a bi-directional inference rule with a double horizontal line, using `mathpartir`. The documentation says I should be able to use `\mprset{fraction={===}}` as follows:               \documentclass{article}          \usepackage{mathpartir}          \begin{document}     \begin{mathpar}     \mprset{fraction={===}}     \inferrule*     {     }     {       C \rightarrow C'     }     \and     \inferrule*     {       C \rightarrow C     }     {       C \rightarrow C'     }     \and     \inferrule*     {       C \rightarrow C_{\beta}     }     {       C \rightarrow C'     }     \end{mathpar}     \end{document}      This does indeed format the rule with a double horizontal line, but it also breaks the vertical alignment, so that, in the last example above, the `C \rightarrow C'` now overlaps with the double line. See also here, Frac or inference rule with dotted line, but I would like a solution based on `inferrule` if possible.


title: Removing Author name in ps2pdf

text: I'm converting EPS to PDF via Ghostscript's `ps2pdf.bat` in Windows. But the author of PDFs are my system name. I changed my user name from Windows, but when I look at the properties of the PDF, my name is there. How can I remove it?


title: Drawing a collaboration graph or tree with TikZ

text: I'm trying to draw a collaboration graph for C data structures. originally I got dot files from Doxygen which I tried to convert using dot2tex with varying degrees of success, though none produced decent output (ie. no alignment, none of the typical "proper" look of well made TikZ diagrams). This kind of graph is similar to a dependency graph, except it contains references for each data structure link to the linked struct (in other words, an edge/path is connected between the pointer/reference field to the struct it references). I would like to know if `tikz-qtree` could work for this purpose, since I want to optimize space usage and dot/graphvix/dot2tex (and manually tweaking the output) is suboptimal **Example of collaboration diagram:** ![enter image description here](http://i.stack.imgur.com/ZAsdB.png) The original dot syntax:               digraph G     {       edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];       node [fontname="Helvetica",fontsize="10",shape=record];       Node1 [label="faultstate",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"];       Node2 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" entry" ,fontname="Helvetica"];       Node2 [label="vm_map_entry",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$structvm__map__entry.html"];       Node2 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" prev\nnext\nright\nleft" ,fontname="Helvetica"];       Node3 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" object" ,fontname="Helvetica"];       Node3 [label="vm_map_object",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$unionvm__map__object.html"];       Node4 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" sub_map" ,fontname="Helvetica"];       Node4 [label="vm_map",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$structvm__map.html"];       Node2 -> Node4 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" root\nheader" ,fontname="Helvetica"];       Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" vm_object" ,fontname="Helvetica"];       Node5 [label="vm_object",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$structvm__object.html"];       Node5 -> Node5 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" backing_object" ,fontname="Helvetica"];       Node4 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" map" ,fontname="Helvetica"];       Node5 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" first_object\nobject" ,fontname="Helvetica"];     }      **The converted TeX syntax** (after dot to xdot intermediate conversion via graphviz's dot) from dot2tex (TikZ mode):               \documentclass{article}     \usepackage[x11names, rgb]{xcolor}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{snakes,arrows,shapes}     \usepackage{amsmath}          \begin{document}     \pagestyle{empty}          \enlargethispage{100cm}     \begin{tikzpicture}[>=latex',line join=bevel,]     \node (Node1) at (28bp,10bp) [draw=black,fill=grey75,record] {faultstate};       \node (Node3) at (213bp,10bp) [draw=black,fill=white,record] {vm\_map\_object};       \node (Node2) at (65bp,178bp) [draw=black,fill=white,record] {vm\_map\_entry};       \node (Node5) at (140bp,88bp) [draw=black,fill=white,record] {vm\_object};       \node (Node4) at (65bp,88bp) [draw=black,fill=white,record] {vm\_map};       \draw [darkorchid3,<-,dashed] (Node3) ..controls (247.46bp,28.666bp) and (252.35bp,32.972bp)  .. (256bp,38bp) .. controls (258.83bp,41.907bp) and (274.89bp,84.957bp)  .. (266bp,98bp) .. controls (230bp,150.83bp) and (152.79bp,168.33bp)  .. (Node2);       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (284bp,88bp) node { object};       \draw [darkorchid3,<-,dashed] (Node2) ..controls (120bp,183.99bp) and (123bp,181.48bp)  .. (123bp,178bp) .. controls (123bp,172.43bp) and (115.33bp,169.35bp)  .. (Node2);       \draw (134bp,190bp) node { prev};       \draw (134bp,179bp) node {next};       \draw (134bp,168bp) node {right};       \draw (134bp,157bp) node {left};       \draw [darkorchid3,<-,dashed] (Node2) ..controls (32.825bp,146.58bp) and (12.591bp,123.18bp)  .. (4bp,98bp) .. controls (-5.6625bp,69.676bp) and (12.453bp,35.188bp)  .. (Node1);       \draw (16.5bp,88bp) node { entry};       \draw [darkorchid3,<-,dashed] (Node5) ..controls (185.12bp,92.844bp) and (188bp,90.849bp)  .. (188bp,88bp) .. controls (188bp,83.324bp) and (180.25bp,80.95bp)  .. (Node5);       \draw (222.5bp,88bp) node { backing\_object};       \draw [darkorchid3,<-,dashed] (Node4) ..controls (35.128bp,68.878bp) and (31.433bp,64.745bp)  .. (29bp,60bp) .. controls (22.399bp,47.129bp) and (24.124bp,29.744bp)  .. (Node1);       \draw (40bp,49bp) node { map};       \draw [darkorchid3,<-,dashed] (Node5) ..controls (179.37bp,70.063bp) and (185.87bp,65.478bp)  .. (191bp,60bp) .. controls (201.97bp,48.297bp) and (208.13bp,30.2bp)  .. (Node3);       \draw (228.5bp,49bp) node { vm\_object};       \draw [darkorchid3,<-,dashed] (Node5) ..controls (131.95bp,58.339bp) and (126.18bp,45.94bp)  .. (117bp,38bp) .. controls (100.03bp,23.315bp) and (75.247bp,16.617bp)  .. (Node1);       \draw (158bp,50bp) node { first\_object};       \draw (158bp,39bp) node {object};       \draw [darkorchid3,<-,dashed] (Node4) ..controls (61.38bp,57.989bp) and (62.694bp,45.955bp)  .. (70bp,38bp) .. controls (83.331bp,23.486bp) and (133.52bp,16.635bp)  .. (Node3);       \draw (91.5bp,49bp) node { sub\_map};       \draw [darkorchid3,<-,dashed] (Node2) ..controls (65bp,139.31bp) and (65bp,111.67bp)  .. (Node4);       \draw (80bp,128bp) node { root};       \draw (80bp,117bp) node {header};     \end{tikzpicture}     \end{document}      **Output obtained:** ![](http://i.stack.imgur.com/3wIXF.png) Note: this is without `\--tikzedgelabels`. Using the option yields a broken diagram. dot2tex likes straight edges only, so bent curves/edges connecting nodes don't play along. **Output wanted:**   * No hideous `\draw -(coordinate)` constructs. I want TikZ-style edge labels and no fixed drawing points. I want the layout to be fluid and have optimal distribution of the diagram nodes in the canvas.   * `\--tikzedgelabels` won't cut it. just a FYI, i can see it coming in the comments.


title: Hyphenation patterns / lccode /  ".dat" format of hyph-utf8

text: I have made a new encoding for "modern" greek based on ISO 8859-7. Now I'd like to create hyphenation patterns for it, to use with `pdftex` (that is, 8 bit based). If I understand correctly, I can do this with hyph-utf8 by creating a `.dat` file mapping my encoding to unicode and then processing the unicode hyphenation patterns for monotonic greek with it. Here's an excerpt of a `.dat` file:               0x9A    U+04D8      CYRSCHWA     0x9B    U+040A      CYRNJE     0x9C    U+0401      CYRYO     0x9D    U+2116      textnumero     0x9E    U+00A4      textcurrency     0x9F    U+00A7      textsection     0xA0    U+0491  1   cyrgup     0xA1    U+0493  1   cyrghcrs     0xA2    U+0452  1   cyrdje     0xA3    U+045B  1   cyrtshe      Most of the columns are rather self-explaining, but I'd still love to see some documentation before I start experimenting ;-) In particular, it will save some copy-pasting work if I could just ignore everything but the first two columns (what is the significance of the glyph name for the hyphenation pattern, after all?) ## Edit Thanks to Patrick Gundlach for suggesting the README in the hyph-utf8 CTAN source directory. On conversions, this file has to say,               generate-converters.rb     ======================     INPUT:     - source/generic/hyph-utf8/data/encodings/*.dat     OUTPUT:     - tex/generic/hyph-utf8/conversions/conv-utf8-*.dat          Auto-generates conversions from UTF-8 to some particular encoding.      So now, I know what to do with the `.dat` file. An important step forward :-) But I still need to know what exactly the contents of the file mean (as I have to make a new one for my own encoding). ## Update After analysing this a bit more the only information I need is what the "1" in the third column is for. Looking at the ruby code, it has the effect that for instance the following               0xE0    U+00E0  1   agrave      (from `ec.dat`) will generate in the converter `conv-utf8-ec.tex` (which will take the unicode hyphenation patterns and map them to T1 fontencoding) the line               \lccode"E0="E0 % à - U+00E0 - agrave      So, hopefully this can be answered now by anybody who knows hyphenation patterns at all: **What types of characters is such a line needed for?**


title: Creating list of for \newtheoremstyle

text: I want to create an list of theorems much like the list of figures, but couldn't find a packacke or tutorial to solve my problem. I tried this http://texblog.org/2008/07/13/define-your-own-list-of/ but couldn't get it to work :-/ This is "my" theorem style:               \usepackage{amsthm}     \newtheoremstyle{mystyle}       {\topsep}       {\topsep}       {}       {}       {\bfseries}       {:}       {\newline}       {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}     \theoremstyle{mystyle}     \newtheorem{mydef}{Definition}


title: Name tikz circuit symbol node

text: Consider the following minimal example in with `TikZ circuit library`               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{circuits.ee.IEC}          \begin{document}          \begin{tikzpicture} [circuit ee IEC,>=latex]     \draw (0,0) to [bulb] (3,0);     \end{tikzpicture}     \end{document}      Is it possible to assign a name to this bulb, say `(B)`. And reuse this point like for example:               \draw let \p1=(B.output) in (B.output) -- (\x1,-2);


title: How to plot following graph

text: I want to draw the attached graph in LATEX. But i could not. Please help me.![enter image description here](http://i.stack.imgur.com/aywB9.jpg)


title: Learning TeX via the TeXbook

text: As I most often am not able even to ask the right question, much lesser to understand answers, I have decided to read thoroughly Knuth's TeXbook. But on Appendix B--Control Sequences--I find reference to INITEX, no longer used in Mac Distributions. What would you suggest to a student that thinks "it is necessary to study Chemistry in order to learn how to strain a good coffee", as my problem, as I understand now is to learn how to make Formats--as stated in Knuth's TeXbook--or whatever/however I name it now? Or, should you suggest another learning path? I see no good in asking ready solutions from experts whose language I am not yet able to understand!!!!!


title: Left alignement and right alignement

text: I would like to realize an alignment as follows, with `array` environment by preference:               abcde fghijk     lmnnnnn  opq     rstuvwxyz      So, `abcde` and `lmnnnnn` are left aligned; `fghijk` and `opq` are right aligned. There are some space between `abcde` and `fghijk`. `rstuvwxyz` is left aligned with the 2 first rows; putting it in the center of its row is OK as well... Coud anyone help?


title: How can I get the first and the last frame of an part in beamer class?

text: Beamer class differentiates between pages and frames. To get the first page of a part `beamer` provides the command `\insertpartstartpage` and for the last page `\insertpartendpage`. Is there a chance to get the first and the last _frame_ of the current part?


title: Using xindy with texindy.xdy

text: This is a follow up on How to use xindy with XeTeX/LuaTeX?. When I use this MWE               \documentclass{article}          \usepackage{fontspec}          \usepackage{makeidx}     \makeindex          \begin{document}     Umlaut Ä\index{Ä}     \printindex     \end{document}      with this commands               xelatex file.tex     xindy -M texindy -C utf8 file.idx     xelatex file.tex      the use of `xindy` shows this error:               *** - PROGN: variable TEXINDY.XDY has no value


title: Why should I *not* use the KOMA-Script classes?

text: I've heard a lot of recommendations to use the KOMA-Script document classes in place of the base document classes. I appreciate that there is a lot of added functionality, and customisation is easier. But before I jump in, I would like to know of any potential problems with these classes. In my particular case, I am writing a thesis - it's part of the way through, and I've been compiling using the base classes (report), and a bunch of packages. But in the interest of keeping the question broadly relevant, answers with problems that don't affect my use-case are more than welcome.


title: How to define the beginning and ending of paragraphs in ConTeXt?

text: The manner of creating paragraphs in ConTeXt appears to differ from that in LaTeX. In LaTeX, one need only create an empty line between two paragraphs, and paragraphs are automatically created, e.g.:               This is a paragraph.          This is another paragraph.      From looking through the various ConTeXt manuals, including the LaTeX in Proper ConTeXt article, I have only found mention that paragraphs are formed in a different manner, but no mention of how to actually form them. Perhaps such information is regarded as too basic to bother explaining or too simple to appear in any of my searches? Of the limited sample code I have found, most rely on sections to form the boundaries between paragraphs. I have learned of the `\crlf` command, but this appears more as equal to `\\\`, but I am unclear if it is meant to designate the end and beginning of a new paragraph. How are paragraphs defined in ConTeXt?


title: How to create in-paragraph enumerations in ConTeXt?

text: The ConTeXt wiki article on enumerations shows many solutions for creating an enumerated list, however, I see no examples for creating an in-paragraph enumeration, e.g.:               Five animals lived in the forest: (1) bears, (2) snakes, (3) fish, (4) birds, and (5) wolves.      How can I create in-paragraph enumerations in ConTeXt?


title: Ubuntu Kile Configuration - Changing the TexLive Distribution

text: I have TexLive 2013 distribution. I installed Kile. It seems, it has automatically installed some other texlive-base. Now what should I do to make it point to texLive 2013. Because even `titlesec` package is not found. Not only that, It has changed my system's LaTeX settings as well. If I run pdflatex from the terminal, I get the same error. This is the path of my TexLive 2013: `/usr/local/texlive/2013/bin/x86_64-linux/` What should I do? After running system check, I get this:               #script:runTests.sh     #basedir:/tmp/kde-subhamrH3NRA/kilehyWjqM/          [TeX]     mustpass=where,basic,kile     executable=tex     where=/usr/bin/tex     version=3.1415926     basic=0     kile=0          [PDFTeX]     mustpass=     executable=pdftex     where=/usr/bin/pdftex     basic=0     kile=0          [LaTeX]     mustpass=where,basic,kile     executable=latex     where=/usr/bin/latex     basic=0     kile=0     src=0          [PDFLaTeX]     mustpass=     executable=pdflatex     where=/usr/bin/pdflatex     basic=0     kile=0          [DVItoPS]     mustpass=     executable=dvips     where=/usr/bin/dvips     kile=0          [DVItoPDF]     mustpass=     executable=dvipdfmx     where=/usr/bin/dvipdfmx     kile=0          [PStoPDF]     mustpass=     executable=ps2pdf     where=/usr/bin/ps2pdf          [BibTeX]     mustpass=     executable=bibtex     where=/usr/bin/bibtex     basic=0     kile=0          [MakeIndex]     mustpass=     executable=makeindex     where=/usr/bin/makeindex     basic=0     kile=0          [Okular]     mustpass=where     executable=okular     version=0.17.5     okular=0     where=/usr/bin/okular          [Acroread]     mustpass=     executable=acroread     where=          [DVItoPNG]     mustpass=     executable=dvipng     where=/usr/bin/dvipng          [Convert]     mustpass=     executable=convert     where=/usr/bin/convert


title: TeXShop - XeLaTeX: How to include tamil scripts?

text: I am using TeXShop - XeLaTeX on a MacBook Pro with Mountain Lion. I used the following:               \documentclass{article}         \usepackage[no-math]{fontspec}          \begin{document}          அ          \end{document}      I got an error:               Undefined control sequence \UTF ...      Could anyone give some suggestions so that I can use Tamil unicode fonts as part of my LaTeX file.


title: Spacing & sizing with libertine and newtxmath

text: I'm using the following setup for the Libertine font:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[lining]{libertine}     \usepackage[libertine, cmintegrals]{newtxmath}          \begin{document}          Test: $75 + 250\log_2 n = 75 + \frac{250}{\log_{10} 2} \log_{10} n$          \end{document}      But the spacing for inline math seems to be a little strange: ![](http://i.stack.imgur.com/STPep.png) Compare the spacing of `=` and the numbers in the denominator to the output with `mathpazo` or `mathdesign`/Utopia: ![](http://i.stack.imgur.com/ItW6a.png) ![](http://i.stack.imgur.com/FrywH.png) In my opinion the Libertine results look more uneven and poorly spaced. Is this just how the font looks, or is there something I can do to make this look better?


title: Changing \textheight in the middle of a LaTeX document

text: Actually, I want to change `\textheight` only on one page of my document, then continue with the old dimension again. How can I update `\textheight` in my `.cls` file e.g. for my title page? Is there an easy way to change `\textheight` in the middle of a document? I'd appreciate any suggestions.


title: achemso + chemmacros incompatibility

text: The combination of the `achemso` and `chemmacros` package used to work, but now I've upgraded to Ubuntu 14.04 (TeXLive 2013, I believe) and I get the following:               \documentclass{achemso}     \usepackage{chemmacros}     \title{Title}     \begin{document}     \end{document}      this stops with the error:               ABD: EveryShipout initializing macros          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! LaTeX error: "kernel/command-already-defined"     !      ! Control sequence \latin already defined.     !      ! See the LaTeX3 documentation for further information.     !      ! For immediate help type H <return>.     !...............................................            l.5 \begin{document}      Using `article` or not loading `chemmacros` fixes it. I've downloaded the latest versions of both `achemso` and `chemmacros`, and it's still the same. Do I need to do something else?


title: In table cell, how to break long words after “::” or “_”?

text: I have a software program can generate tables which may be very long and may contains words with many letters,so i use `longtabu` package. Some words may look like this: > AAA_BBB_CCCC_DDDDD_CC > > aaa::Asldfjasldfjlasdfjasld So I use `\allowbreak\\_` and `\allowbreak\::` to break the long words in certain table cell. **But the problem is, if the word after underscore or colon is too long, it can not be breaked**. Longtabu can break long words, but not words after underscore or colon... And these long words are generated by software program, I can not add any break by hand. So how to break it? Below is the code and pdf.               \documentclass[a4paper,leqno,twoside]{article}     \usepackage[utf8]{inputenc}          \title{dd}          \usepackage{tabu}     \usepackage{longtable}     \usepackage{supertabular}     \usepackage{hyperref}     \begin{document}          \maketitle          \section{Introduction}     There is a story \hyperlink{ABCDoABCoABCDoABCDDoABBoE}{alsdfas\_alsdjfa\_lasdkfjal\_alsdkfj}          \subsection{asdf asdfasf asdfasd}          \begin{longtabu} to \textwidth {|>{\footnotesize}X[1 , p ] |>{\footnotesize}X[1 , p ] | >{\scriptsize}X[1 , p ]| >{\footnotesize}X[2 , p ]|>{\footnotesize}X[1 , p ]|>{\footnotesize}X[1 , p ]|}          \caption{asdf asfas}\\          \hline          \textbf{aaaaaa;\newline asdfasd} & \textbf{asdfasdf;\newline asdfasdf;\newline asdfasdf;\newline asdfa;\newline asdfasdfasfasfasdf\newline} & \footnotesize\textbf{asdfasdfas} & \textbf{asdfasdfs} & \textbf{asdfasdf;\newline asdfasdfasdf asdf asdfas} & \textbf{asdfasdfasd} \\          \hline          \hypertarget{ABCDoABCoABCDoABCDDoABBoE}{ABCD\allowbreak\_ABC\allowbreak\_ABBVASDFASDDDD\allowbreak\_ABC\allowbreak\_ABC\allowbreak    \_A}&&Caa:: CaaaaaaaBddddd\allowbreak::EabadfkajdlEadlsfjaDalsdfjalsdf     &&&\\\hline           \end{longtabu}          \end{document}      ![enter image description here](http://i.stack.imgur.com/3HAHi.jpg)


title: TikZ ER diagrams: really can't underline keys?

text: I'm creating an ER diagram with the TikZ ER library. The manual warns that although key attributes are conventionally underlined, it is hard to implement in TeX and the library uses italics instead. That's fine for me but my teachers probably won't accept the assignment with non-standard notations. That's why I'm asking the TeX wizard community for a working solution :) Questions that may be relevant are:   * Custom switches (such as for underlining)   * Use node text as argument for a macro MWE from the manual:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{er}          \begin{document}     \begin{tikzpicture}     \node[entity] (sheep) at (0,0) {Sheep}                 child {node [key attribute] {name}};     \node[entity] (genome) at (2,0) {Genome};     \node[relationship] at (1,1.5) {has}                 edge (sheep)                 edge (genome);     \end{tikzpicture}     \end{document}


title: MathJax doesn't convert \bf

text: here is my JS part               <script type="text/x-mathjax-config">     MathJax.Hub.Config({         displayAlign: "center",         extensions: ["tex2jax.js"],         menuSettings: {             zoom: "Click",             CTRL: false,             ALT: false,             CMD: false,             Shift: false,             zscale: "250%",             font: "Auto",             context: "MathJax",             mpContext: false,             mpMouse: false,             texHints: true         },         TeX: {             Macros: {               RR: '{\\bf R}',               bold: ['{\\bf #1}', 1]             }         },         errorSettings: {             message: ["[", ["MathProcessingError", "Math Processing Error"], "]"],             style: {                 color: "#CC0000",                 "font-style": "italic"             }         },         jax: ["input/TeX", "output/SVG"],         tex2jax: {             inlineMath: [                 ['$', '$'],                 ['\\(', '\\)']             ],             displayMath: [                 ['$$', '$$'],                 ['\\[', '\\]']             ],             preview: ["[math]"],             processEscapes: true         },         "SVG": {             blacker: 10,             font: "TeX",             scale: 100,              },         MathMenu: {             delay: 150,             helpURL: "http://www.mathjax.org/help-v2/user/",             showRenderer: true,             showMathPlayer: true,             showFontMenu: true,             showContext: false,             showDiscoverable: true,         }     });     </script>      as you could see, I already put there that part with **Tex** and **Macros** and also with **\bf**. Here is my displaying text               <p>     Nachr. {\bf 28} (1964), 1--43.     </p>      but it doesn't parse that part with \bf. Of course, when I have another latex parts in the text, it converts without problems, just this is problem to convert \bf to particular output. Any help? Thanks


title: bar width not recognized in group plot

text: I am trying to put four bar charts within one groupplot. My file is               \documentclass[tikz,border=3pt]{standalone}     \usepackage{xcolor}     \usepackage{pgfplots,pgfplotstable}     \usepgfplotslibrary{groupplots}     \pgfplotsset{compat=1.4}     \pgfplotsset{every non boxed x axis/.append style={x axis line style=-},     every non boxed y axis/.append style={y axis line style=-}}     \renewcommand{\rmdefault}{phv}      % Arial font     \renewcommand{\sfdefault}{phv}      % Arial font     \definecolor{MediumSeaGreen}{rgb}{0.235294,0.701961,0.443137}     \definecolor{gold}{rgb}{1.000000,0.843137,0.000000}     \definecolor{LightBlue}{rgb}{0.678431,0.847059,0.901961}\definecolor{LightGrey}{rgb}{0.827451,0.827451,0.827451}     \definecolor{DarkGrey}{rgb}{0.662745,0.662745,0.662745}\definecolor{DarkGrey}{rgb}{0.662745,0.662745,0.662745}     \makeatletter     \pgfplotsset{/pgfplots/flexible xticklabels from table/.code n args={3}{%             \pgfplotstableread[#3]{#1}\coordinate@table             \pgfplotstablegetcolumn{#2}\of{\coordinate@table}\to\pgfplots@xticklabels             \let\pgfplots@xticklabel=\pgfplots@user@ticklabel@list@x}}     \makeatother     \pgfplotscreateplotcyclelist{mycolor}{            {black,fill=MediumSeaGreen,mark=none},         {black,fill=gold,mark=none},         {black,fill=LightBlue,mark=none},         {black,fill=LightGrey,mark=none},     }     %     \begin{document}     \color{DarkGrey}     \pgfplotsset{ tick label style = {font=\tiny}, every axis/.append style={font=\tiny}}     \begin{tikzpicture}     \pgfplotstableread[col sep=space,row sep=crcr]{data.txt}\mydata;      \begin{groupplot}[             group style={group size=2 by 2,vertical sep=1.5cm},             width=8cm,             height=5cm,               major x tick style = transparent,          yticklabel={\ifdim\tick pt=0pt 0 \else\pgfmathprintnumber{\tick}\fi},          y tick label style={/pgf/number format/fixed,/pgf/number format/precision=1,          ylabel near ticks,          yticklabel pos=left,          /pgf/number format/fixed zerofill},          ybar=0pt,          cycle list name=mycolor,             ymajorgrids=false,             ylabel = {\%},             xtick={0,1,2,3,4,5,6,7,8,9,10,11},          flexible xticklabels from table={data}{month}{col sep=space},              x tick label style={rotate=270,anchor=west},             scaled y ticks = false,             enlarge x limits=0.05,             ymin=0,          ymax=.6]     %         \nextgroupplot[legend to name=grouplegend,]      \pgfplotsinvokeforeach {1,...,4}{\addplot[bar width=2pt] table [x expr={\coordindex}, y index=#1] {\mydata};}     %      \nextgroupplot[legend to name=grouplegend,]     %     \pgfplotsinvokeforeach {1}{\addplot[bar width=2pt,color=black,fill=MediumSeaGreen] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {2}{\addplot[bar width=2pt,color=black,fill=gold] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {3}{\addplot[bar width=2pt,color=black,fill=LightBlue] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {4}{\addplot[bar width=2pt,color=black,fill=LightGrey] table [x expr={\coordindex}, y index=#1] {\mydata};}     %     \nextgroupplot     %     \pgfplotsinvokeforeach {1}{\addplot[bar width=2pt,color=black,fill=MediumSeaGreen] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {2}{\addplot[bar width=2pt,color=black,fill=gold] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {3}{\addplot[bar width=2pt,color=black,fill=LightBlue] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {4}{\addplot[bar width=2pt,color=black,fill=LightGrey] table [x expr={\coordindex}, y index=#1] {\mydata};}     %     \nextgroupplot[legend to name=grouplegend,]     %     \pgfplotsinvokeforeach {1}{\addplot[bar width=2pt,color=black,fill=MediumSeaGreen] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {2}{\addplot[bar width=2pt,color=black,fill=gold] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {3}{\addplot[bar width=2pt,color=black,fill=LightBlue] table [x expr={\coordindex}, y index=#1] {\mydata};}     \pgfplotsinvokeforeach {4}{\addplot[bar width=2pt,color=black,fill=LightGrey] table [x expr={\coordindex}, y index=#1] {\mydata};}     %       \end{groupplot}     \end{tikzpicture}      and data input file is               month   a   b   c   d        OCT'12  0.62    0.02    3.48    0.22     NOV'12  0.70    0.00    3.58    0.19     DEC'12  0.37    0.00    2.21    0.20     JAN'13  0.37    0.18    3.41    0.25     FEB'13  0.29    1.09    4.04    0.18     MAR'13  0.10    1.12    3.54    0.26         APR'13  0.00    0.60    3.50    0.18     MAY'13  0.21    0.37    3.50    0.18     JUN'13  0.07    0.37    2.58    0.14     JUL'13  0.00    0.42    3.25    0.02     AUG'13  0.00    0.37    4.62    0.12     SEP'13  0.00    0.48    3.94    0.15      My first question is: If I set the bar width within the braces following `\begin{group plot}` I get an error because bar width is not recognized by group plot, so I have to set the value whenever I invoke every plot within the group. And my second question relates to the bar colors, invoking the color cycle I have defined in the preamble (`\mycolor`) with `cycle list name=mycolor` the colors are not recognized (look at the plot in the upper left corner, all bars are white, the pony way I have found to solve this is invoking each color for each bar as I have done in the other three plots, I am sure there is an easiest way to do this


title: How to attach section-title to corresponding text?

text: My title (`\chapter`, `\section` etc.) should always be attached to the corresponding, followed text. It happens that the title is squeezed into the last line of a page and the corresponding text on the next page, whereas it would be preferable when the title would always stay with at least 5 lines of the following text on one page. Every hint is welcomed!


title: How does one construct an abstract (n × n) empty grid of squares?

text: * * * I would like to just create a grid like this, but without numbers or color, but I'd like to represent an _n_ × _n_ grid abstractly with ellipses like this: ![enter image description here](http://i.stack.imgur.com/Jo59y.jpg) * * * Also, I need just a simple—singular—grid like that of the top left grid in the image above. * * * I know need a red line (y=x) from the lower left corner to the upper right corner.


title: How to get two logos side by side

text: I need to put a logo left side aligned and a logo on the right side, I also need to add text between both logos? ![Two logos side by side](http://i.stack.imgur.com/rAaaZ.jpg) I've reviewed the questions about figures side by side, subfigure and minipage, but I can't get it How should I do it?


title: TikZ: Make node height span several others

text: How can I make the Z node span the total height of the ABCD column? ![nodes](http://i.stack.imgur.com/k4aZQ.png) My current code is:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc,positioning}          \begin{document}     \begin{tikzpicture}[node distance=5pt,every node/.style={draw, minimum width=100pt}]       \node(A)             {A};       \node(B)[below=of A] {B};       \node(C)[below=of B] {C};       \node(D)[below=of C] {D};            \path let \p1=(A.north), \p2=(D.south) in         node[minimum height={\y2-\y1},right=of A] {Z};     \end{tikzpicture}     \end{document}      For some reason, the calculated minimum height is not working.   I read in the threads   * Calculating the minimum height for a node based on the size of other nodes   * How to fix TikZ node's height with \heightof? that I should not use `minimum height` but `text height` instead (but I don't understand why). However, that doesn't help either.


title: Multiple sections on same level with diferent labels

text: This is a follow up to this question. I would like to have multiple subsections with different labels (in this situation the sign off boxes) all in the same numbering sequence. My attempt at this has broken the numbering all together. Thanks in advance.               \documentclass[a4paper,twoside]{article}     \usepackage[explicit,pagestyles]{titlesec}     \usepackage{enumitem}     \usepackage{changepage}     \usepackage{lastpage}     \usepackage{lipsum}% just to generate text for the example          %Heading formatting     \titleformat{\part}[block]       {\normalfont\LARGE\bfseries\filcenter}{\partname\ \thepart:}{0.5em}{#1}     \titleformat{\section}       {\normalfont\Large\bfseries}{}{\TIndent}{\llap{\makebox[0.5\TIndent][l]{\thesection}\hfill}#1}     \titlespacing*{\section}     {0pt}{3.5ex plus 1ex minus .2ex}{.3ex plus .2ex}          %Trainee section signoff     \newcounter{trainee}     \titleclass{\trainee}{straight}[\section]     \titleformat{\trainee}         {\normalfont\large\bfseries}{}{0em}{\llap{\smash{\makebox[\TIndent][l]{\normalfont\TeBox}}}\thesubsection. #1}     \titlespacing*{\trainee}         {0pt}{3.5ex plus 1ex minus .2ex}{.3ex plus .2ex}     \renewcommand{\thetrainee}{\Alph{trainee}}          %Trainer section signoff     \newcounter{trainer}     \titleclass{\trainer}{straight}[\section]     \titleformat{\trainer}         {\normalfont\large\bfseries}{}{0em}{\llap{\smash{\makebox[\TIndent][l]{\normalfont\TrBox}}}\thesubsection. #1}     \titlespacing*{\trainer}         {0pt}{3.5ex plus 1ex minus .2ex}{.3ex plus .2ex}     \renewcommand{\thetrainer}{\Alph{trainer}}          %Defines the sign off indent distance     \newlength\TIndent     \setlength\TIndent{9em}          \makeatletter     \@addtoreset{section}{part}     \makeatother     \renewcommand\thepart{\arabic{part}}     \renewcommand\thesection{\thepart.\arabic{section}}     \renewcommand\thesubsection{\arabic{subsection}}          %Trainee box     \newcommand\TeBox{%     \fbox{\footnotesize%     \begin{tabular}{cc}     \\[1.2em]     \hline     \\[-.8em]     Trainee & Date \vspace{-.4em}     \end{tabular}}%     }          %Trainer box     \newcommand\TrBox{%     \fbox{\footnotesize%     \begin{tabular}{cc}     \\[1.2em]     \hline     \\[-.8em]     Trainer & Date \vspace{-.4em}     \end{tabular}}%     }          \setitemize{label={\rule{1cm}{0.4pt}},leftmargin=*}          \newcommand\Text{% just to generate text for the example     Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel,     wisi. Morbi auctor lorem non justo.}          \begin{document}     \part{Personnel Introduction}          \lipsum[4]              \section{Division Personnel}         \begin{adjustwidth}{3cm}{0pt}             \leavevmode\trainee{Headquarters}                  \Text             \begin{itemize}             \item Name Name             \item Name Name             \end{itemize}                  \trainer{Production Department}                  \Text             \begin{itemize}             \item Name Name                  \begin{center}             SECONDARY GROUP             \end{center}                  \item Name Name             \item Name Name             \item Name Name             \end{itemize}         \end{adjustwidth}          \end{document}      ![Sign Off Example](http://i.stack.imgur.com/SSTPX.jpg)


title: pgftables: nodes near coords align depending on value?

text: The following code results in node labels overlapping the graph. How can I align them depending on the graph so that '1375' und '1574' are below the node and the others still above?               \documentclass{article}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}[     nodes near coords,     point meta=explicit,     nodes near coords align={auto}     ]     \pgfplotstableread{     a  d     1   1557     2   1375     3   1722     4   1763     5   1574     6   1591     7   1563     }\datatable     \addplot table[y = d, meta=d] from \datatable ;     \end{axis}     \end{tikzpicture}     \end{document}


title: Creating Thin Tables in LaTeX

text: Suppose I have the following table:               \begin{table}[!p]     \fontsize{6}{6}\selectfont     \caption{First 200 terms of Hofstadter's $Q(n)$}\label{tab11}     \center{     \begin{tabular}{l r r r r r l r r r r r}         \hline         {}&{}&{}&$n$&{}&{}&{}&{}&{}&$n$&{}&{}\        \cline{2-6}\cline{8-12}         {}&1&2&3&4&5&{}&1&2&3&4&5\        \hline         $Q(n+0)$&1&1&2&3&3&$Q(n+100)$&48&54&54&50&60\\         $Q(n+5)$&4&5&5&6&6&$Q(n+105)$&52&54&58&60&53\\         $Q(n+10)$&6&8&8&8&10&$Q(n+110)$&60&60&52&62&66\\         $Q(n+15)$&9&10&11&11&12&$Q(n+115)$&55&62&68&62&58\\         $Q(n+20)$&12&12&12&16&14&$Q(n+120)$&72&58&61&78&57\\         $Q(n+25)$&14&16&16&16&16&$Q(n+125)$&71&68&64&63&73\\         $Q(n+30)$&20&17&17&20&21&$Q(n+130)$&63&71&72&72&80\\         $Q(n+35)$&19&20&22&21&22&$Q(n+135)$&61&71&77&65&80\\         $Q(n+40)$&23&23&24&24&24&$Q(n+140)$&71&69&77&75&73\\         $Q(n+45)$&24&24&32&24&25&$Q(n+145)$&77&79&76&80&79\\         $Q(n+50)$&30&28&26&30&30&$Q(n+150)$&75&82&77&80&80\\         $Q(n+55)$&28&32&30&32&32&$Q(n+155)$&78&83&83&78&85\\         $Q(n+60)$&32&32&40&33&31&$Q(n+160)$&82&85&84&84&88\\         $Q(n+65)$&38&35&33&39&40&$Q(n+165)$&83&87&88&87&86\\         $Q(n+70)$&37&38&40&39&40&$Q(n+170)$&90&88&87&92&90\\         $Q(n+75)$&39&42&40&41&43&$Q(n+175)$&91&92&92&94&92\\         $Q(n+80)$&44&43&43&46&44&$Q(n+180)$&93&94&94&96&94\\         $Q(n+85)$&45&47&47&46&48&$Q(n+185)$&96&96&96&96&96\\         $Q(n+90)$&48&48&48&48&48&$Q(n+190)$&96&128&72&96&115\\         $Q(n+95)$&64&41&52&54&56&$Q(n+195)$&100&84&114&110&93\\         \hline     \end{tabular}     }      Is there a way to take this table and make it so that only one number of the sequence occurs on each line? Better yet, is there a way to take two columns from an excel file (a counting column and a column containing terms of the recursion) and transform them to a LaTeX friendly format? Are there programs that do this? Thanks! Edit: In essence it should be two columns and, say, 31 rows including headers. The exact number of rows is something I haven't actually decided on. The idea is there would be a left column, n, and a right column Q(n) so that it would look something like:                n Q(n)      1  1      2  1      3  2      4  3      5  3      6  4      7  5      Where the values for Q(n) are the same as the values above.


title: Kurdish language Latex

text: Kurdish (sorani) is similar arabic and persian language , its written from the right to left, and most of the letter is same with some different ( less than 10). Now there is solution for written arabic and persian. My question , How can I able to solve this problem? did I need to create kurdish package ? and is there is open source language which is possible to edit .


title: How can I remove a vertical skip added by splittopskip?

text: The following example splits a box with the setting `\splittopskip=2cm`. Everything works as expected. However I want to remove the vertical skip add by `\splittopskip=2cm` some steps later. Is there an easy way?               \documentclass{article}     \parindent0pt     \def\exampletext{Text Text Text Text Text Text Text Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text }     \fboxsep=0pt     \fboxrule=1pt          \newbox\boxi     \newbox\boxii     \begin{document}     \begingroup     \setbox\boxi=\vbox%      {%         \hsize=8cm\sloppy         \bfseries\huge\exampletext      }          \splitmaxdepth0pt \splittopskip=2cm     \setbox\boxii\vsplit\boxi to2cm     \setbox\boxii=\vbox{\unvbox\boxii}          BOX \verb+\boxii+\hfill\fbox{\box\boxii}          \setbox\boxi=\vbox{\unvbox\boxi}          BOX \verb+\boxi+\hfill\fbox{\box\boxi}     \endgroup     \end{document}      * * * **EDIT** The provided solution of David works nearly as expected. But it gobbles the first line of the splitted box. To demonstrate the behavior I changed `\exampletext` and added one `TextA` which should be the first line of the splitted box.               \documentclass{article}     \parindent0pt     \def\exampletext{Text Text Text Text Text Text Text Text TextA Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text }     \fboxsep=0pt     \fboxrule=1pt          \newbox\boxi     \newbox\boxii     \begin{document}     \begingroup     \setbox\boxi=\vbox%      {%         \hsize=8cm\sloppy         \bfseries\huge\exampletext      }          \splitmaxdepth0pt \splittopskip=2cm     \setbox\boxii\vsplit\boxi to2cm     \setbox\boxii=\vbox{\unvbox\boxii}          BOX \verb+\boxii+\hfill\fbox{\box\boxii}          BOX \verb+\boxi+ unprepared\hfill\fbox{\copy\boxi}          \splittopskip0pt     \setbox0=\vsplit\boxi to 0pt          \setbox\boxi=\vbox{\unvbox\boxi}          BOX \verb+\boxi+ prepared\hfill\fbox{\box\boxi}     \endgroup     \end{document}


title: beamer: table of frames

text: I'm looking for a possibility to create a table of frames. The MWE illustrate my question:               \documentclass{beamer}     \begin{document}     \begin{frame}{Table of Contents}     \tableofcontents     \end{frame}     \section{Topic 1}     \begin{frame}{Topic 1}     Some stuff     \end{frame}     \section{Topic 2}     \begin{frame}{Topic 2}     Other stuff     \end{frame}     \end{document}      Without the `\section` entries, the toc will be empty. Is there a way, to include all frametitles automatically to the toc or a similiar list?


title: Beamer presentation: List of frames within a section / part

text: With reference to Is there any way to produce List of frames with beamer? how can this be done so as to only list the frames contained within a section in the title slide for that section, assuming a multi section/part presentation.


title: Reduce image vertical spacing with text elements

text: I'm doing a .cls file and I want to reduce the spacing between the image and the title, the document looks like the following image ![Delete the space between the placeholder and the title](http://i.stack.imgur.com/aD8TE.jpg) The code for this, looks like this.               \begin{figure}[h]       \includegraphics[height=3.6cm,width=3.1cm]{./images/miniplace}     \end{figure}     \begin{center}       \LARGE{\scshape Institute of Extreme Resources Of Fun}\\     \end{center}      Any suggestions?


title: miktex-makemf: The source file could not be found

text: I m trying to compile file using TeXworks. I use fithesis class because its pre-set class by my university for creating documents.               \documentclass[12pt,oneside,final]{fithesis}       \usepackage[latin2] {inputenc}     \usepackage[T1] {fontenc}     \usepackage{csquot}     \usepackage{mflogo}               \thesistitle{Utoky pomocou fragmentacie IPv6}      \thesissubtitle{Bakalarska praca}       \thesisstudent{Michal Gasparovic}         \thesisfaculty{fi}       \thesisyear{jar 2014}       \thesisadvisor{doc. RNDr. Eva Hladka, Ph.D.}      \thesislang{sk}                                     \begin{document}       \FrontMatter       \ThesisTitlePage            \begin{ThesisDeclaration}       \DeclarationText       \AdvisorName       \end{ThesisDeclaration}            \begin{ThesisThanks}       Dakujem ti Brona.     \end{ThesisThanks}          \end{document}      Every time try to compile and error like this occur. > Trying to make PK font fi-logo at 514 DPI... Running miktex-makemf.exe... > miktex-makemf: The fi-logo source file could not be found. > > Running ttf2pk.exe... miktex-makepk: PK font fi-logo could not be created. > > !pdfTeX error: pdflatex.EXE (file fi-logo): Font fi-logo at 514 not found > ==> Fatal error occurred, no output PDF file produced! texify: pdflatex > failed for some reason (see log file). I have been trying to update FNDB for many times. My updmap.cfg contains Map mdbch.map line and i even tried to run initexmf --mkmaps as an admin but no difference.


title: Is there a version management package/solution for latex? (non SVN etc)

text: I'm looking for a nice versioning system for LaTeX. At home I use SVN and it's great, but some of my fellow students have a hard time just coping with LaTeX. Is there a version management package or other easy solution that doesn't involve a server or strage programs to do the job? It would be great if some variable was increased every time the document was compiled or something like that. Cheers


title: Blocks in combination with bullets spacing

text: I have been trying to create my second Tikz model based on TikZ: Diagram of a perceptron. I have manage to modify it based on my beginners knowledge and experimentation but the part that I am missing and I can not figure out how to make the bullets. I am trying to make the distance smaller but there is not affect. I tried with `distance node = 1 em` but not successfully for the moment. Is there a possible solution to my problem? A sample of the output is provided.![Output](http://i.stack.imgur.com/nZ5Hr.png) Any suggestions are appreciated.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.pathreplacing,calc} % braces {}     \usetikzlibrary{shapes,arrows,positioning}     \usepackage{pgfplots}     \pgfplotsset{compat=1.8}          \begin{document}          \tikzset{      block/.style={       draw,        rectangle,        minimum height=2em,        minimum width=5em,      },      sum/.style={       draw,        circle,        minimum size=2em      },      input/.style={coordinate},       output/.style={coordinate},      mytext/.style={       draw,       text depth=4pt,       text height=10pt      }     }          \begin{figure}[!ht]     \begin{center}     \makebox[\textwidth][c]{%     \begin{tikzpicture}[auto,>=latex']          % Blocks     \node[input, name = input] {};     \node[sum, right = of input, node distance = 1em] (sum) {MP};     \node[block, right of = sum, node distance = 6.5em] (stream) {Stream $2$};     \node[sum, right = of stream, node distance = 1em] (filter) {$F_2$};     \node[sum, above = of sum, node distance = 5em] (sum_2) {MP};     \node[block, right of = sum_2, node distance = 6.5em] (stream_2) {Stream$1$};     \node[sum, right = of stream_2, node distance = 1em] (filter_2) {$F_1$};          % Bullets     \node[below of = sum, node distance = 3em] (dot) {$\bullet$} -- (dot);     \node[below of = dot, node distance = 1em] (dot_2) {$\bullet$} -- (dot_2);     \node[below of = dot_2, node distance = 1em] (dot_3) {$\bullet$} -- (dot_3);     \node[below of = stream, node distance = 3em] (dot_4) {$\bullet$} -- (dot_4);     \node[below of = dot_4, node distance = 1em] (dot_5) {$\bullet$} -- (dot_5);     \node[below of = dot_5, node distance = 1em] (dot_6) {$\bullet$} -- (dot_6);     \node[below of = filter, node distance = 3em] (dot_7) {$\bullet$} -- (dot_7);     \node[below of = dot_7, node distance = 1em] (dot_8) {$\bullet$} -- (dot_8);     \node[below of = dot_8, node distance = 1em] (dot_9) {$\bullet$} -- (dot_9);          % Blocks     \node[input, name = input_n] {};     \node[sum, below = of dot_3, node distance = 1em] (sum_n) {MP};     \node[block, right of = sum_n, node distance = 6.5em] (stream_n) {Stream $n$};     \node[sum, right = of stream_n, node distance = 1em] (filter_n) {$F_n$};          % Sum     \node[sum, right = of filter, node distance = 3em] (total) {$\sum$};          % Oneway delay     \node[block, right of = total, node distance = 7.5em] (delay) {One Way Delay};     \node[block, right of = delay, node distance = 15em] (segments) {$MP_1$ $|$ $Payload_1$ $\dots$ $MP_n$ $|$ $Payload_n$};     \node[output,right = of segments] (output) {};          % Inputs     \node[input,left = of sum_2] (output_2) {};     \node[input,left = of sum_n] (output_n) {};          % Lines Center Block     \draw[->] (input) -- node [name = begging] {$IN_2$} (sum);     \draw[->] (sum) -- node {} (stream);     \draw[->] (stream) -- node {} (filter);     \draw[->] (filter) -- node {} (total);     \draw[->] (total) -- node {} (delay);     \draw[->] (delay) -- node {} (segments);     \draw[->] (segments) -- node {Data} (output);          % Lines Above Center Block     \draw[->] (sum_2) -- node {} (stream_2);     \draw[->] (stream_2) -- node {} (filter_2);     \draw[->] (filter_2) -- node {} (total);          % Lines Below Center Block     \draw[->] (sum_n) -- node {} (stream_n);     \draw[->] (stream_n) -- node {} (filter_n);     \draw[->] (filter_n) -- node {} (total);          % Input Lines     \draw[->] (output_2) -- node {$IN_1$} (sum_2);     \draw[->] (output_n) -- node {$IN_n$} (sum_n);          \end{tikzpicture} }% End of makebox     \caption{New Tikz}     \label{fig:tikz }     \end{center}     \end{figure}     \end{document}


title: floatingfigure doesn't start at first paragraph after page wrap

text: A `floatingfigure` I created is not aligned at the first possible paragraph. It is put directly after subsection. The space on the page does not fit for the figure, so it wraps to the next page (which is correct). What I don't understand is why the figure doesn't start right at the top of the next page, but waits for the second paragraph. Is there any way to fix this behaviour? ![enter image description here](http://i.stack.imgur.com/7KF0b.png) Here is a MWE that reproduces the behavior I've described above:               \documentclass[a4paper]{scrartcl}     \usepackage{floatflt}     \begin{document}         \section{Section}         \vspace{15.5cm}         \subsection{My section}             \begin{floatingfigure}[r]{6cm}                 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.             \end{floatingfigure}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.     \end{document}


title: How to use xymatrix with a0poster?

text: I want to make a DIN-A0 poster using the documentclass `a0poster`. Why can't I draw diagrams in that documentclass? The MWE below crashes and I don't know how to fix that. :( MWE:               \documentclass[a0,portrait]{a0poster}          \usepackage{amsfonts, amsmath, amscd, amssymb}     \usepackage{graphicx}     \usepackage{xy}          \begin{document}          \begin{align*}     \xymatrix{A & B}     \end{align*}          \end{document}


title: = sign not properly displayed

text: I have this line here               $\overline{X}$ = $\sum_{i = 1}^{n}$ $\frac{x_i}{n}$      that gives me ![Average](http://i.stack.imgur.com/lmijs.png) How should I modify my code to display the equal sign between i and 1?               \documentclass[paper=letterpaper, fontsize=11pt]{scrartcl}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{fourier}     \usepackage[francais]{babel}     \usepackage{amsmath,amsfonts,amsthm,amssymb,mathrsfs}     \usepackage{graphicx}     \usepackage{lmodern}     \usepackage{enumerate}     \usepackage{float}     \everymath{\displaystyle}               \begin{document}               %   PROBLEME 1          \section{Question \no 1 :}          \subsection{Représentation par histogramme et diagramme de Tukey}          \subsubsection{Représentation par histogramme}          \subsubsection{Représentation par diagramme de Tukey}          \subsubsection{Commentaire}          %------------------------------------------------     %          \subsection{Analyse des données des notes}          $\overline{X}$ = $\sum_{i = 1}^{n}$ $\frac{x_i}{n}$               \end{document}


title: Error in TeX Live – Font ... not loadable: Metric (TFM) file not found

text: I freshly installed **'basic'** version of TeX Live 2012 (not full, only basic version). I have following line in my code: `\usepackage[T1]{fontenc}` I get following error:               (/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1enc.def)     /usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100: Font T1/cmr/     m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.100 \fontencoding\encodingdefault\selectfont          /usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100:  ==> Fatal error occurred, no output PDF file produced!      I understand that some packages are missing, however I do not know which ones. Also, solution to this problem on most of the earlier posts is to install ubuntu latex recommended package, however please note that I am not using LaTeX from Ubuntu's software center (which is old TeX Live 2009) but rather have manually installed basic version of TeX Live 2012 as per instructions here: http://www.tug.org/texlive/quickinstall.html Please let me know how do I solve this issue (I don't want to install complete version of TeX Live 2012, only those packages necessary to run this piece of code).


title: How to install packages which I am not able to find in TeX Live Utility?

text: Using this tex on TeXworks, I get an error. The code is an output from pandoc converting from markdown to tex. I checked if I have all the packages with TeX Live Utility. I found the followings.   1. When I check `fontenc` I found that I have greek-fontenc package.   2. I am not able find lmodern and fixltx2e   3. For inputenc, I have greek-inputenc   4. I am not able find longtable in TeX Live Utility   5. I have all other packages. Now my question is how to install packages which I could not find it in TeX Live Utility? I know this is a newbie question, but I appreciate your help. Thanks in advance. ==== Error               fontenc.sty     100     I can't find file `ecrm1000'.     <*> ...ljfour; mag:=1; nonstopmode; input ecrm1000          Please type another input file name     ! Emergency stop.     <*> ...ljfour; mag:=1; nonstopmode; input ecrm1000          Transcript written on mfput.log.     grep: ecrm1000.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1000' failed to make ecrm1000.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou     nd.     <to be read again>                         relax      l.100 \fontencoding\encodingdefault\selectfont


title: If I redefine a command that has a starred variant, will that always disable the starred variant?

text: If I redefine a command that has a starred variant, will this **always** effectively disable the starred variant, as a side effect of redefining the unstarred variant? A related question: Do starred commands eat up space after them? (The information contained therein strongly suggests a "yes", but it'll be good to hear a confirmation from an expert.) Notes:   * This question was meant to be generic.   * I mean the redefining act per se. That is, let's assume that I might not include a starred variant in my redefinition.   * Some examples I had in mind (for which it would actually make sense to redefine the starred version with them, unless one is short of time and doesn't need to for one's local document):      * I was thinking of redefining `\hspace` or `\vspace` to be visible (for draft compilation runs).     * In some earlier drafts of documents of mine, `\chapter` was redefined to contain a call to `\pagestyle`.


title: Problem with updating tlmgr: Bad hostname

text: I just tried to update my texlive-installation but got the following error:               sudo tlmgr update --self                                                         TLDownload::get_file: response error: 500 Can't connect to funnyshare.org:80 (Bad hostname) (for http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5)     TLUtils::download_file: persistent connection ok, but download failed: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5     TLUtils::download_file: retrying with wget.     TLUtils::download_file: retry with wget succeeded: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5     Unable to download the remote TeX Live database,     but found a local copy so using that.          You may want to try specifying an explicit or different CTAN mirror;     see the information and examples for the -repository option at     http://tug.org/texlive/doc/install-tl.html     (or in the output of install-tl --help).          tlmgr: package repository http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet     tlmgr: saving backups to /usr/local/texlive/2013/tlpkg/backups     tlmgr: no updates for tlmgr present.     tlmgr: no updates available          sudo tlmgr update --all                                                                             TLDownload::get_file: response error: 500 Can't connect to funnyshare.org:80 (Bad hostname) (for http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5)     TLUtils::download_file: persistent connection ok, but download failed: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5     TLUtils::download_file: retrying with wget.     TLUtils::download_file: retry with wget succeeded: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5     Unable to download the remote TeX Live database,     but found a local copy so using that.          You may want to try specifying an explicit or different CTAN mirror;     see the information and examples for the -repository option at     http://tug.org/texlive/doc/install-tl.html     (or in the output of install-tl --help).          tlmgr: package repository http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet     tlmgr: saving backups to /usr/local/texlive/2013/tlpkg/backups     tlmgr: no updates available      Any idea what my be wrong and how to fix it? I am running this on ubuntu 13.10.               tlmgr --version     tlmgr revision 31673 (2013-09-16 18:03:22 +0200)     tlmgr using installation: /usr/local/texlive/2013     TeX Live (http://tug.org/texlive) version 2013


title: Prime as an argument of command

text: Suppose we are in math-mode and I want to use command \E with the following behaviour. If one or two primes follow the command, i.e. \E' or \E'', then I want to have in these cases certain expressions, say A or B. In all the other cases I want to have merely E independently what precedes or follows the \E. Here are exames   1. `$any \E' some$` -> any A some   2. `$any \E'' some$` -> any B some   3. `$any \E some$` -> any E some I dont want to use the command in a longer form like `\E{arg1}{arg2}` but only in `\E'`, `\E''` forms. Let, for example,               \def\E#1#2{my code}      Then the problem arises when using something like               $$      x \E' \sin x      $$      Or               $$     A \E b     $$      Because "b" should not be considered as an argument of `\E` in the latter case and the same reason for a slash in front of sine in the former case.


title: How to iterate through all user-defined control-words?

text: \documentclass[preview,border=12pt,varwidth]{standalone}     \usepackage{pgffor}          \def\Person#1{%         \ifcsname#1\endcsname         \else              \expandafter\def\csname #1\endcsname{#1}%         \fi             \csname#1\endcsname     }          \begin{document}     \Person{Alan} took  a shower when      \Person{Batman} was cooking in the      \Person{Carlisle}'s house which lies  3 meter due east of     \Person{David}'s school or 4 meter due west of     \Person{Enrico}'s office.          How can I iterate through the persons mentioned in the first paragraph?     \end{document}      ![enter image description here](http://i.stack.imgur.com/J7Ojk.png) How to iterate through all user-defined control-words without using `\foreach` macro and listing the names manually?


title: Latex math encapsulating complex expression in bracket

text: Latex newbie here. I've clumsily built the following math expression in Latex ![enter image description here](http://i.stack.imgur.com/PQUAw.png)               \begin{align}     &W_{i'}(\alpha) = \cdots \notag\\     &\vdots \notag\\                &W_i(\alpha) = \sum\limits_\zeta \underline{q_\zeta} \cdot \underline{\Omega(\alpha, \zeta, \hat{u}_{i}^k, \xi )} \\                &\qquad \qquad \quad \ \ \downarrow \qquad \qquad \uparrow \notag\\                &\qquad \qquad \quad \ \ \beta_i^k (\zeta) \rightarrow \hat{u}_i^k(\mathbf{x}, t) \\     &\vdots \notag\\     &W_{i''}(\alpha) = \cdots \notag     \end{align}      and would now like to append a f(n) = \left{ to the left of it. How do I do this without rewriting the entire code in terms of an array? Thanks!


title: Geometry on last page of document

text: I would like the geometry of my file to be different on the last page of the document. I have tried something like:               \AtEndDocument{\newgeometry{left=0.6in,right=0.6in,top=0.6in,bottom=1.8in}}      But seems the geometry package forces a `\clearpage` after a `\newgeometry` command is issued. This causes all manner of trouble. Is there a simpler solution?


title: Cases environment left alignment

text: As I understand, cases environment is centered by default:![enter image description here](http://i.stack.imgur.com/BTGuL.png) How to make it left aligned?


title: Input files relative to main file when using subfiles

text: I'm writing a report where I use the package `subfiles` to include different parts of my report.               \input{misc/variables.tex}      will include my variables file perfectly and render the subfiles. But if I try to render a subfile it complains about the filepath, as the relative path is different in the subfile. I would like to use paths relative to the main file, so I can compile just parts of the subfile, while still including files with `\input`. I can't use absolute paths as the report is shared in a repository, where the others don't have the same absolute path. Any ideas?


title: How to let enumeration start at (0) automatically?

text: As we know the enumeration usually begin at (1), then followed by (2), (3),... My question: How to start at (0)? I know \item[(0)] will work, but how do I do this automatically? That is, make it as a default option.


title: Parsing a \$ as part of an improved \getargs command

text: As the author of `stringstrings`, I am acutely aware of its slowness. For small tasks, that slowness can be annoying. For larger tasks, it can be prohibitive. Recently, in using data column as "axis" in table with pgfplotstable, I proposed a solution, using the `\getargs` command (of the `stringstrings` package) as part of the solution on how to read and store a 2-D array for future use (`\getargs` will parse an argument into individual words). That solution envisioned a syntax such as               \readArray{\dataA}{arA}{4}     \readArray{\dataB}{arB}{4}      for reading lists of data into, for example, 4 columns, and identifying the arrays by unique identifiers such as arA, arB, etc., so that, when later building a tabular, one could use               \Arrayij{arA}{1}{1} & \Arrayij{arA}{1}{4} & \Arrayij{arB}{1}{4} \\      to call back various elements of the input arrays. I could immediately see that these datasets could become large, and I feared the `\getargs` command developed for `stringstrings` would be too slow for processing a large array. So I tried to rewrite a fast version of `\getargs` (call it`\getargsFAST`), from a completely different angle, using a streamlined recursion, rather than the exhaustive `\if\else\fi` approach that allows `stringsstrings` to handle extended character sets. I understand and accept that the two versions will not act exactly alike. I figured that an array of data (for which `\getargsFAST` is designed) would contain mostly numbers, maybe some words (for units or cases) and (for financial folks) the dollar sign `\$`. And it's the dollar sign that is confounding me at present. I've tried various things, but can't get `\getargsFAST` to process `\$` as part of the input data. Is there an fix apparent to those well versed in lower-level TeX, which I am not. Here is the routine, as part of an example, and its output. Note: I did not use `\$` in the input, because then I wouldn't have any output to post for you.               \documentclass[10pt]{article}     \usepackage{ifnextok}          \makeatletter     \def\stringend{$}     \newcounter{arg@index}     \def\getargsFAST#1{\edef\argi{}\setcounter{arg@index}{1}%                        \expandafter\parse@Block#1\stringend}     \def\parse@Block{\IfNextToken\stringend%       {\edef\narg{\arabic{arg@index}}\@gobble}%       {\IfNextToken\@sptoken{\addtocounter{arg@index}{1}%        \expandafter\edef\csname arg\roman{arg@index}\endcsname{}%        \add@to{\parse@Block}}%       {\add@to{\parse@Block}}}}           \def\add@to#1#2{\expandafter\edef\csname arg\roman{arg@index}\endcsname%                        {\csname arg\roman{arg@index}\endcsname#2}#1}     \makeatother          \parskip 0.9ex \parindent 0in     \begin{document}          Test of getargsFAST (fast alternative to getargs of stringstrings package):          \def\myarg{This is a ~~test of   the emergency $x_i^2\alpha$ broadcast system}          Original argument:\par     \verb,This is a ~~test of   the emergency $x_i^2\alpha$ broadcast system,          \getargsFAST{\myarg}          Number of args is \narg, given as follows:\par     \argi \par     \argii \par     \argiii \par     \argiv \par     \argv \par     \argvi \par     \argvii \par     \argviii \par     \argix \par     \argx \par          Differences from getargs are probably numerous.  Here are some: hard     spaces are retained by FAST version only; FAST version has no built-in     argument size limit; FAST version chokes on the \verb,\$, character.          Like getargs, getargsFAST can process only a very limited set of math     tokens.  Obviously, \verb,#,, without a backslash, causes result to     choke.          Unlike getargs, getargsFAST provides no workarounds for processing     characters that cannot be put into an edef, such as \dag, \ddag, \P, \d     x, \t x, \b x, \copyright, as well as (in OT1 encoding) \_, \{, \}, \S,     \c x, and \pounds.          Other characters that will confound getargsFAST include the     \verb,&, (when entered without the backslash), and most of the     diacritical markings.          I will probably add this command to the stringstrings package when play     testing is complete.          \end{document}      ![enter image description here](http://i.stack.imgur.com/4kTxl.jpg)


title: Vertical alignment with floatrow

text: I am playing with `floatrow`, however the images are not aligned at the top and I do not know what I am doing wrong.               \begin{figure}[H]     \begin{floatrow}     \floatbox{figure}[0.4\textwidth][\FBheight][t]     {\caption{first image positioned at the top}      \label{fig:floatrow:example:3:a}}     {\includegraphics[width=0.25\textwidth]{images/TestBild.png}}     %     \floatbox{figure}[0.4\textwidth][\FBheight][t]     {\caption{second image positioned at the top}      \label{fig:floatrow:example:3:b}}     {\includegraphics[width=0.2\textwidth]{images/TestBild.png}}     \end{floatrow}     \end{figure}      also I would like to add a defined spacing between the pictures, but have not found out how. Typically I add either `\hspace{2em}` or `\hfill`, but both do nothing if inserted between the commands (as expected).


title: How to use more than 10 tab stops in \bmatrix?

text: I'm using `bmatrix` environment from the `amsmath` package, and I'm trying to do something like this:               \documentclass{article}     \usepackage{amsmath}           \begin{document}          \begin{equation}              \begin{bmatrix}                  1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11\\              \end{bmatrix}         \end{equation}      \end{document}      However, pdfLaTeX returns an error: "Extra alignment tab has been changed to \cr", and in the output the extra element is moved to the next row. (If I remove one element, then it works perfectly fine). I guess this means that I've hit some hard limit on the number of tab stops in a matrix. Is there a way to change this? The elements in the matrix are short and could fit perfectly on a single row.


title: Problem with matrix (too many alignment tabs)

text: I can not see any problem here. I guess that some problem with _encoding_ or _end of line_ could be the reason. See the image. ![enter image description here](http://i.stack.imgur.com/daCAo.png) **The code.**               \documentclass[11pt,a4paper]{report}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \begin{document}          \[J_{i} = \begin{bmatrix}%     x_{i}   & 1         & 0         & \cdots    & 0         & | & 0         & 0         & 0         & \cdots & 0        &  & \cdots      \\%     %0      & x_{i}     & 1         & \cdots    & 0         & | & 0         & 0         & 0         & \cdots & 0        &  & \cdots      \\     %\vdots & \vdots    & \vdots    & \ddots    & \vdots    & | & \vdots    & \vdots    & \vdots    & \ddots & \vdots   &  & \cdots      \\     %0      & 0         & 0         & \cdots    & 1         & | & 0         & 0         & 0         & \cdots & 0        &  & \cdots      \\     %0      & 0         & 0         & \cdots    & x_{i}     & | & 0         & 0         & 0         & \cdots & 0        &  & \cdots      \\     %-      & -         & -         & - - -     & -         & - & -         & -         & -         & - - -  & -        &  &             \\     %0      & 0         & 0         & \cdots    & 0         & | & x_{i}     & 1         & 0         & \cdots & 0        &  & \cdots      \\     %0      & 0         & 0         & \cdots    & 0         & | & 0         & x_{i}     & 1         & \cdots & 0        &  & \cdots      \\     %\vdots     & \vdots    & \vdots    & \ddots    & \vdots    & | & \vdots    & \vdots    & \vdots    & \ddots & \vdots   &  & \cdots      \\     %0      & 0         & 0         & \cdots    & 0         & | & 0         & 0         & 0         & \cdots & 1        &  & \cdots      \\     %0      & 0         & 0         & \cdots    & 0         & | & 0         & 0         & 0         & \cdots & x_{i}    &  & \cdots      \\     %-      & -         & -         & - - -     & -         & - & -         & -         & -         & - - -  & -        &  &             \\     %\vdots     & \vdots    & \vdots    & \vdots    & \vdots    &   & \vdots    & \vdots    & \vdots    & \vdots & \vdots   &  & \ddots     \end{bmatrix}     \]     \end{document}


title: TikZ: shade also the border of a node

text: I would like to shade a node **and** the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a solution which can be used in a style and used on the node directly. Has someone a good idea?               \documentclass{scrartcl}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage{tikz}     \usetikzlibrary{backgrounds}     \usetikzlibrary{calc}          \tikzset{      shrink inner sep/.code={        \pgfkeysgetvalue{/pgf/inner xsep}{\currentinnerxsep}        \pgfkeysgetvalue{/pgf/inner ysep}{\currentinnerysep}        \pgfkeyssetvalue{/pgf/inner xsep}{\currentinnerxsep - 0.5\pgflinewidth}        \pgfkeyssetvalue{/pgf/inner ysep}{\currentinnerysep - 0.5\pgflinewidth}        }}     \begin{document}     \begin{tikzpicture}     \draw (0,0) node[rectangle,           rounded corners,           shading=axis,           thick,           outer sep=0pt,           shrink inner sep,           left color=red!50!white,           right color=green!50!white            ](A){abcabc abc};      \begin{scope}[on background layer]      \shade[rectangle,             left color = red,             right color= green,             thick,             rounded corners=4pt+\pgflinewidth]            ($(A.south west)+(-\pgflinewidth,-\pgflinewidth)$) rectangle            ($(A.north east)+(\pgflinewidth,\pgflinewidth)$)             ;     \end{scope};     \end{tikzpicture}          \begin{tikzpicture}     \draw (0,0) node[rectangle,            rounded corners,            fill=red!50!white,            draw=red,            thick            ](A){abcabc abc};     \end{tikzpicture}                \begin{tikzpicture}     \draw (0,0) node[rectangle,            rounded corners,            shading=axis,            left color=red!50!white,            right color=green!50!white,            draw=red,            thick            ](A){abcabc abc};     \end{tikzpicture}            \end{document}      ![enter image description here](http://i.stack.imgur.com/Fkfvu.png)


title: \raggedouter to typeset marginal text in twoside book

text: We used the following code fragment               \newcommand{\raggedouter}{%         \checkoddpage%             \ifoddpage%             \RaggedRight%             \else%             \RaggedLeft%             \fi%     }      to provide a `\raggedouter` command, inspired by the `tufte-latex` class. Please see the following image to demonstrate the effect in a two-side book. ![enter image description here](http://i.stack.imgur.com/LgeGZ.png) It is not uncommon and is done by Bringhurst's `The Elements of Typographic Style` or even in the German `Der LaTeX-Begleiter` by Mittelbach and Goosens. I would suspect the function in a package such as `ragged2e`. Does the upper code-fragment cover all possible cases? If there is a good solution, would it be an appropriate feature request for `ragged2e`?


title: Colors for integers in listings package

text: > **Possible Duplicate:**   >  How can I change the color of digits when using the listings package?   >  Listings package: How can I format all numbers? Is it possible to have colors for integers using the listings package? I tried to define integers from 0 to 9 in `keywords` then having keywords having a different style, but it doesn't work.


title: lstlisting: how to color numbers in code

text: > **Possible Duplicates:**   >  How can I change the color of digits when using the listings package?   >  Listings package: How can I format all numbers?   >  How to color digits with the listings package How can you define a specific color for numbers in (Python) code using `lstlisting`? As in this example: ![Picture of python syntax](http://i.stack.imgur.com/6nK8i.png)


title: How to color digits with the listings package

text: For my project, I've been using the `listings` package in order to color the keywords, comments, strings, and digits in the code. The thing is, I've managed to color the keywords, comments and strings, however, I couldn't color the digits within the code without coloring those in the comments/strings. I've tried using the solution proposed in Coloring digits with the listings package; however, it didn't work. The digits weren't colored in the strings, but they were in the comments. Would you be kind to suggest me a solution?


title: How can I change the color of digits when using the listings package?

text: I'm using the listings package and was already able to modify the color of the keywords and almost all elements I was interested in. The only thing that remains is the color of the digits. I'd like to have all numbers within my source codes to be coloured in red. Do you know any smart way of doing this ? I was able to change the colour of single digits but not of whole numbers. Any help would be greatly appreciated.


title: Want theorem and equation numbering linked under section

text: Similar questions have been answered but the solutions didn't seem to give what I need. I would like theorems and equations both to proceed as follows within each section. Say we've begun Section 6. If I started with a theorem, it'd be Theorem 6.1. Then if I next used an equation, it would show up with numbering (6.2). The next equation or theorem (whichever is first) would be 6.3, and so on.


title: Preventing \mbox or \fbox from exiting the page

text: I am trying to do something like this:               \documentclass[a4paper]{article}          \usepackage[top=0mm, bottom=0mm, left=0mm, right=0mm]{geometry}          \begin{document}          \noindent     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}\hspace{1cm}\allowbreak%     \fbox{\hskip1cm Some text \hskip1cm}          \end{document}      The document(s) will be automatically generated, so I want to avoid adding newlines by hand, or putting this in a table. What I want is to make a bunch of nametags with given width and height (I've solved that part) and put them in a document. It should be up to LaTeX to decide when they get out of the page and insert a new line, like it does with text. Unfortunatelly, my boxes run out of the page. In the above example, I get five boxes in a row, but the fifth one is out of the page, so it should actually be the first one in the second row (i.e., I should get four per row, not five). I am aware that I might be looking in a completely wrong direction, so suggestions on the alternative ways to make nametags are also welcome. However, my code currently works as intended (apart from this glitch), so I'd prefer just fixing this.


title: The scale option of \includegraphics does not work after changing the document class

text: After .cls file changes, `\includegraphics[scale=0.5]{img/GoalHierarchyMetaModel.png}` command gives the following error.               ! Package keyval Error: scale=0.5 undefined.          See the keyval package documentation for explanation.     Type  H <return>  for immediate help.     ...                                                        l.6 ...[scale=0.5]{img/GoalHierarchyMetaModel.png}      MWE can be accessed from google drive in here. `main_e.tex` is the working one, `main_m.tex` outputs error above. Only difference between those files is `documentclass`.   * `main_e.tex` uses `\documentclass[conference]{IEEEtran}`   * `main_m.tex` uses `\documentclass[chaparabic,ceng,phd,12pt,oneandhalf]{metu}`


title: Problem with using scale while using \includegraphics

text: > **Possible Duplicate:**   >  \usepackage[turkish]{babel} and \includegraphics inconcistency I previously imported many figures to TEX files and simply use the corresponding parameters without any problems. However, this time I am preparing some slides using beamer and I couldn't figure what's wrong with it. Here is my TEX code related with the problem.               \documentclass{beamer}           \usepackage[latin5]{inputenc}     \RequirePackage[turkish]{babel}          \usetheme{Madrid}     \usepackage{graphicx}     \usepackage{epstopdf}          \begin{document}          \begin{frame}     \frametitle{Markov Karar Süreçleri}     \includegraphics[scale=0.5]{img/mdp.eps}     %\includegraphics{img/mdp.eps}     \end{frame}          \end{document}      The code exists with many compile errors. However, when I simply comment out the includegraphics line scale parameters and uncomment the other one, it compiles smoothly. Any ideas are welcome..


title: fontspec Error for some XeTeX/LuaTeX function

text: I have a template I got from the internet. When I run it I get the following error.               ! Fatal fontspec error: "not-pdftex"     !      ! Requires XeTeX or LuaTeX to function!      I have XeTeX and LuaTeX installed. It gives me an error at line 34 in fontspec.sty. Please help. I do not understand what is wrong. Thanks


title: Include PDF with two pages per page

text: I'm appending my papers to my thesis using the `pdfpages` package as so               \includepdf[pages={-}, addtotoc={1, chapter, 1, Paper 1, paper1}]{paper-1.pdf}      Can I modify the layout of `paper-1.pdf` such that two pages per sheet are printed?


title: Long list of tabular figures inside minipage goes off page

text: Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]:               \documentclass[letterpaper]{report}          \usepackage[demo]{graphicx}     \usepackage{fontspec}     \usepackage{savetrees}          \begin{document}         \begin{figure}[H]             \begin{minipage}{\textwidth}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}             \end{minipage}         \end{figure}     \end{document}      The issue is that when multiple photos or long (height) photos are added to the tabular environment, the photos go off of the page instead of a new page being created and going into the new page. MWE [LuaLaTeX]:               \documentclass[letterpaper]{report}          \usepackage[demo]{graphicx}     \usepackage{fontspec}     \usepackage{savetrees}          \begin{document}         \begin{figure}[H]             \begin{minipage}{\textwidth}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}                 \begin{tabular}{p{8cm}p{6cm}}                     \vspace{0cm}                     \includegraphics[width=8cm]{name} & Some text on the side.                 \end{tabular}             \end{minipage}         \end{figure}     \end{document}      I noticed that outside of the minipage and tabular environments, everything works perfectly, but this isn't an option because I need a caption on the right side of the images and also need to ensure that LaTeX doesn't move pictures around randomly. Ideally I can keep everything inside the minipage and tabular enviornments. MWE [LuaLaTeX]:               \documentclass[letterpaper]{report}          \usepackage[demo]{graphicx}     \usepackage{fontspec}     \usepackage{savetrees}          \begin{document}         \flushleft         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\         \includegraphics[width=8cm]{name} \\     \end{document}       I have hundreds of images that need to be formatted as in the first MWE, so applying `\newpage` manually is not an option. Is there a way to automatically move the images to new pages where necessary like it does in the last MWE?


title: Telling Tikz/Tex to produce raster instead of vector in resulting PDF

text: I am using MikTeX and Tikz package to generate images (playing cards on A4 paper). The result is nice, but slow (too many vector objects, printing is hell slow). Is there a way to directly tell TeX "I want everything else than text to be rasterized before creating PDF? You shoud use this ... DPI. Yes, the result would be great in file size, I want it that way." It would be great if I could do that on per-tikz picture object basis (Rasterize everything in this tikz clipping/bounding box). Is there a way to do it without external programs like ImageMagick? Thanks! **Edit:** Thanks for all the contributions - usepackage outline used drawing the text multiple times last time I checked. - Thanks for externalize, I am just now studying it. - Yes, I want to have only specific portions of the document rasterized! Like telling Tikz, I want to rasterize these drawing commands from here to here and result saved on a canvas loaded just here in the page. And now draw some text over it for me please. Rasterizing the whole document seems like an overkill to me (and it can't be done with TeX commands, sniff!) MWE here - http://pastebin.com/ehZxD73P. It is a bit messy, because I wanted to make a code for drawing playing cards. Cards produced by the command "cardstats" are nice, but put 9 of them on one page and the printer will need a loong time to do it. If I could rasterize the problematic portions (only), it will be great! Second great use would be, that specifying big images as backgrounds for cards, it could automatically rasterize them in lower resolution and not storing them in original resolution. Well, maybe I want to have something that was not yet implemented...


title: Updating floating point number in animation

text: I'm trying to have an animated tikz graph with floating point values. While I can use floating point values as parameters for the graph, I can't seem to find a way to do so for displayed equations. Below is a MWE using beamer. The green line is animated properly - but the parameter does not appear in simplified form. The blue line shows the parameter appearing the way I would like it to (as a simplified number) but it is not updated in the tikz picture, even though it is updated outside that picture.               \documentclass[12pt]{beamer}          \usepackage{animate}     \usepackage{fp}     \usepackage{tikz}          \begin{document}          \newcounter{step}        \setcounter{step}{1}          \newcommand{\scalevalues}{ %     \FPmul{\scaled}{\thestep}{0.1}     \FPtrunc{\scaled}{\scaled}{1}     }          \scalevalues        \scaled % will print 0.1 above picture          \begin{animateinline}[loop, poster = first, controls, palindrome]{10}     \whiledo{\thestep < 21}{         \begin{tikzpicture}         %\useasboundingbox (-1,-1) rectangle (5,5);         %         \draw[->] (-1,0) -- (5,0) node[anchor=west]{\color{gray}x};         \draw[->] (0,-1) -- (0,5) node[anchor=south]{\color{gray}y};         %          \draw[-, thick, blue] (\scaled,-1) -- (5,4) node[anchor=east]{$\scaled x $};         \draw[-, thick, green] (0.1*\thestep,-1) -- (2,3) node[anchor=east]{$0.1*\thestep x $};         \end{tikzpicture}         \stepcounter{step}         \scalevalues           \scaled % will print updated values below picture         \ifthenelse{\thestep < 21}{                 \newframe         }{             \end{animateinline}\relax          }     }          \end{document}


title: Altering page setups within postponed blocks

text: I'm using `\startpostponing`–`\stoppostponing` to add two pages that interrupt the flow of normal text. When I was splitting the text manually, the interrupting pages used `\setupfooter` and `\setupbackgrounds`. Neither of these commands appear to work inside the postponing block: the setups are ignored within the block and use the setups of the page before where the postponed page is eventually placed. The postponing commands themselves are undocumented, making research that much harder. Additionally, the pages have different backgrounds, so changing a global definition attached to the postponing block doesn't help. How do I define individual page setups for postponed pages?


title: Search for files first in the texmf trees

text: If I want to check first if a file is in the current dir and then look for it in the texmf tree I can do it like this:               \documentclass{article}     \begin{document}     \IfFileExists{./biblatex.def}      {yes, current dir}      {\IfFileExists{biblatex.def}       {yes, texmf dir}{no}}           \end{document}      Is there a way to do it the other way round? To first search the texmf tree and to use a local file only if this failed? (I'm asking more out of curiosity then need, I just thought about the search order in some code and realized that I have no idea how to _exclude_ the current dir).


title: How to set bibliography in Elsevier CRC journal article

text: I am writing a paper for an Elsevier journal first time and don't know how to start and manage the bibliography in `elsarticle` and `ecrc`. Please help and guide me to that how to start bibliography. Thanks.


title: Convert a figure in black and white at compile time

text: > **Possible Duplicate:**   >  Can \includegraphics be used to change an image color? Is it possible to include a color figure and export it in black and white, converting it at compile time? Something like the following:               \includegraphics[blackandwhite]{myfigure.png} % Not working code!!


title: PGF/TikZ arrow line width not consistent with line width

text: I have a document I created several months back, and maybe with a new version of PGF/TikZ it is not working as previously (currently using Arch Linux, TexLive 2011, pgf version 2.10). The fast question is that I have a picture like this:               \begin{tikzpicture}[remember picture,overlay]     \draw [line width=4pt,->,line join=round,line cap=round,red!50] (tl2) -- (tl1);      where `tl2` and `tl1` are previously defined nodes. Line is displayed right, with a width of 4pt, but the cap is displayed as if the line had a smaller width, obtaining the following: ![arrow tip with inconsistent width](http://i.stack.imgur.com/bp2Yv.png) The question is, how can I get the tip of the same width as the line? This may be related with this other question regarding line width in layers, but I'm not sure: Bug in TikZ? Line width on layers **EDIT** : I include minimal compilable code to show the behavior:               \documentclass[a4paper,12pt,oneside]{scrreprt}     \usepackage[left=2.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}     \usepackage{tikz}          \begin{document}          I have ...          \begin{tikzpicture}[remember picture,overlay]     \coordinate[xshift=-1.8cm] (tl1) at ([yshift=-2cm]current page.north east);     \coordinate[xshift=-1.8cm,yshift=2cm] (tl2) at (current page.south east);     \draw [line cap=round,line width=4pt,->,red!50] (tl2)  -- (tl1);     \node [above,right=5pt,scale=.7,color=black!50] at (tl1) {timeline};     \end{tikzpicture}          \newpage          \end{document}      I use remember picture because I reuse the `tl1` and `tl2` nodes defined here. **SOLUTION** : Well, I found `pdflatex` fails with that rendering, but the combination, for example, of `latex` + `dvipdf` works as expected. I checked this with Ubuntu 11.10 and Arch Linux, both running TexLive 2011, so the problem may reside in the TL2011's `pdflatex`.