title: Page breaking prohibition in some rows of the table

text: I use the `longtable` package. Its allow command `\\*`, for page breaking prohibition on row. Here the code, where `\\*` does not prohibit page breaking. (on line 44) Generaed pdf here: http://web- engineering.com.ua/mtest.pdf Can it be because of using multirow package? Please help.                   \documentclass[a4paper,oneside]{book}         \usepackage{ltablex}         \usepackage{calc}         \usepackage{multirow}              \newdimen{\newtblsparewidth}         \newdimen{\newtblstarfactor}              \begin{document}         \vbox to 450pt{}         \setlength{\newtblsparewidth}{\linewidth-2\tabcolsep-2\tabcolsep-2\tabcolsep-2\tabcolsep-2\tabcolsep}         \setlength{\newtblstarfactor}{\newtblsparewidth / \real{4}}         \begin{tabularx}{\linewidth}{l|l|l|X|}          \hline\noalign{\vskip-\arrayrulewidth}\endhead     \noalign{\vskip-\arrayrulewidth}\hline\endfoot          \multicolumn{1}{|m{0.13\newtblsparewidth}}{\multirow{3}{0.13\newtblsparewidth}{\textbf{/imp1}}} &      \multicolumn{3}       {|m{0.35\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.15\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.37\newtblsparewidth}|}         {This  command imports viewer’s settings from the file specified by  setting\_file\_name parameter. Please note, all your current settings will  be overridden and lost.} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \hline          % ----          \multicolumn{1}{|m{0.13\newtblsparewidth}}{\multirow{3}{0.13\newtblsparewidth}{\textbf{/imp2}}} &      \multicolumn{3}       {|m{0.35\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.15\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.37\newtblsparewidth}|}         {This  command imports viewer’s settings from the file specified by  setting\_file\_name parameter. Please note, all your current settings will  be overridden and lost.} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\* \hline          % ---          \multicolumn{1}{|m{0.13\newtblsparewidth}}{\multirow{3}{0.13\newtblsparewidth}{\textbf{/imp3}}} &      \multicolumn{3}       {|m{0.35\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.15\newtblsparewidth+2\tabcolsep+\arrayrulewidth+0.37\newtblsparewidth}|}         {This  command imports viewer’s settings from the file specified by  setting\_file\_name parameter. Please note, all your current settings will  be overridden and lost.} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}          \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{pagemode} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}          \end{tabularx}     \end{document}


title: punctuation marks have different fonts in and out of equations in xetex

text: I am using xelatex to create a document in Armenian. I have the line `\setmainfont [Mapping=tex-text, Scale=MatchUppercase] {DejaVu Serif}` in my tex file to change the font to DejaVu Serif for the text. However the equations are still in Computer Modern. As a result punctuation marks, such as "," are different in and out of equation. This looks a bit ugly, because commas are very different in DejaVu Serif and Computer Modern. How can I fix this?


title: How to center align part of an equation within alignat?

text: I'm using the environment `alignat` to align my set of of equations at two different points. Now, I dot not only want to align it these two points, but also want to have everything in between these align-point centered. currently it looks like:               x = y                    + z     a = b + blablablablablab + u      But I want to look like:               x =           y          + z     a = b + blablablablablab + u      my current code looks like:               \centering     \begin{alignat*}{2}     x &= y &+ z\\     x &= b+blablablablablab &+ u     \end{alignat*}      Thanks for your help!


title: Proper way to write down a range with units

text: The task is to document that the r-coordinate lasts from 10 to 100 m. What would be a good way to write this down? I thought about the following examples               r = 10 to 100 [m]     r = [10 - 100 [m]]     r = 10 - 100 [m]     r = 10 [m] - 100 [m]     r = [10 - 100] [m]      Any further/better ideas? I could not really find any standard or something which recommends something. I am aware of the sunits siunitx ... but it does not use square brackets. Am I just wrong here to use it? PS: Is there a way to write tex using mathjax? I would assume so.


title: Realistic handwritten document

text: Is there a template/package that generates **realistic** handwritten documents? The font should preferably reflect an **average handwritting** (readable). Letters would follow a handwritting style but would change very little each time. **Has anyone got any news/updates?**


title: How to use \IEEEkeywords

text: I am trying to have `\keywords` ... and used               \begin{keywords}          {          .          .          .          }          \end{keywords}      but the compiler keeps telling me to use `\IEEEkeywords` instead... but I haven't find a clear (and simple) example online of how to use it...


title: Beamer .sty files not recognized in Auctex emacs

text: I'm trying to create a `beamer` presentation through Auctex in emacs. In the process I have to include several style packages (`subfigure.sty`, `stmaryrd.sty`) in the `tex` file. However the problem is that when I try to compile the `.tex` file through Auctex, it throws me an error saying these style files are not available. However I do have a TeXLive installed in my computer and I'm able to compile the same file using TeXworks. So the question is how can I make sure that the Auctex can read the style files that are installed in my system (I use Ubuntu 11.10 and the TeXLive is installed in `/usr/share/texmf-texlive/`).


title: Dividing dimensions to get a count

text: Is there a way to divide two `dimen`s and get a `count`? For example, if I have a box that doesn't fit on a single page, and I want to know the number of pages I'd need for the box (i.e., `\heightofbox / \textheight`), can I get that in a count, or in a macro without any trailing units?


title: Glottal Stop in latex and LyX

text: I am trying to type some text in LyX. The text is in Word and full of glottal stops, especially the one with the UTF code "U+02C1", namely this: ˁṬL LaTeX prints it very differently than it is in the Word file. LaTeX puts `\textrevglotstop` I tried `ipa`, `tipa` etc, with no success. Do you know how to fix it?


title: Adding hyperlink to fancy slides presentation

text: I will admit that I'm a newcomer to LaTeX, especially presentations. I'm trying to add a hyperlink to slide in my presentation and I keep getting the error: `Argument of \frame has an extra }`. I've tried a lot of different thing just from reading these threads and nothing seems to work. The code is below:               \documentclass{fancyslides}     \usepackage{hyperref}     \usepackage[utf8]{inputenc} % Allows the usage of non-english characters     \usepackage{times} % Use the Times font     \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables     \graphicspath{{images/}} % Location of the slide background and figure files          \usetheme{default}      \setbeamertemplate{navigation symbols}{} % Disable the slide navigation buttons on the bottom of each slide     \setbeamercolor{structure}{fg=\yourowntexcol} % Define the color of titles and fixed text elements (e.g. bullet points)     \setbeamercolor{normal text}{fg=\yourowntexcol} % Define the color of text in the presentation          \newcommand{\structureopacity}{0.75} % Opacity (transparency) for the structure elements (boxes and circles)          \newcommand{\strcolor}{blue} % Set the color of structure elements (boxes and circles)     \newcommand{\yourowntexcol}{white}           \newcommand{\titlephrase}{Introduction to American Government} % Presentation title     \newcommand{\name}{John D'Attoma} % Presenter's name     \newcommand{\affil}{University of Missouri} % Presenter's institution     \newcommand{\email}{johndattoma@umsl.edu} % Presenter's email address          \begin{document}          \startingslide %          \fbckg{3.jpg} % Slide background image     \begin{frame}{fragile}     \pointedsl \href{https://www.youtube.com/watch?v=WINDtlPXmmE}{\LARGE American Politics}}     % Text in this environment is printed in a circle and will be made large and uppercase - if you need to fit more text in you can reduce the font size within the \pointedsl{} bracket as usual, e.g. \pointedsl{\large smaller main point}     \end{frame}          \end{document}      Thanks!


title: Math color in my calculator mimic

text: All, I'm working on another calculator screen. This will produce what I have thus far. Note the line in red, with a single mu character in red. I need that line to read:               \mu:\ne\mu_0  <\mu_0  >\mu_0      I also need to select one of the three, put a black background and type the characters in white. Any suggestions?               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}          \usepackage{booktabs}     \usepackage{xparse}     \newcommand\tsurd{\ensuremath{\sqrt{\phantom{i}}}}     \newcommand\txbar{\ensuremath{\overline{\text{x}}}}     \newcommand\sumx{\ensuremath{\Sigma{\text{x}}}}     \newcommand\sumxsq{\ensuremath{\Sigma{\text{x}}^2}}     \newcommand\sigmax{\ensuremath{\sigma{\text{x}}}}     \newcommand\muzero{\ensuremath{\mu_0}}     \newcommand\muzerone{\ensuremath{\ne\mu_0}}     \newcommand\mymu{\ensuremath{\color{red}{\mu}}}     \ExplSyntaxOn     \NewDocumentCommand{\calcinput}{m}     {      \tl_map_inline:nn { #1 } { ##1 \hspace{0pt} }     }     \ExplSyntaxOff               \begin{document}          \def\ttest{\calcinput{T-Test}}     \def\inpt{\calcinput{\ Inpt:{\colorbox{black}{\textcolor{white}{Data}}\ Stats}}}     \def\mymuzero{\calcinput{\ \muzero:0}}     \def\mylist{\calcinput{\ List:L1}}     \def\myfreq{\calcinput{\ Freq:1}}     \def\myalt{\calcinput{\ \mymu:}}     \def\mycalc{\calcinput{\ {\colorbox{black}{\textcolor{white}{Calculate}}\ Draw}}}               \begin{center}     \begin{tikzpicture}[font=\large\ttfamily]     \draw (0,0) rectangle (5,-4);     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (ttest) {\ttest};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (inpt) at (ttest.south west) {\inpt};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (mymuzero) at (inpt.south west) {\mymuzero};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (mylist) at (mymuzero.south west) {\mylist};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (myfreq) at (mylist.south west) {\myfreq};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (myalt) at (myfreq.south west) {\myalt};     \node[align=flush left,text width =5cm,      anchor=north west,inner sep=1pt] (mycalc) at (myalt.south west) {\mycalc};     \end{tikzpicture}     \end{center}          \end{document}


title: Parse \input statements in AucTeX, TeX-insert-quote

text: AucTeX recognizes for example the statement               \usepackage[german]{babel}      in a .tex file. Then typing " twice will result in "` before a word resp. "' after a word. However if `\usepackage[german]{babel}` is hidden behind an input statement like               \input{preamble}      i.e. the statement is contained in the preamble file, AucTeX doesn't recognize the statement above anymore. Is there any way to make AucTeX parse the `\input` files too?


title: Drag and drop in AUCTeX

text: I already asked this question on the AUCTeX mailing list via Gmane but can't find the question in the mailing list's archive. Therefore I ask here, too. Since I'm writing a document with many weird named figures I searched for "auctex drag and drop" and found Michal Sojka's posting: <878vzs8ppj.fsf@steelpick.2x.cz>. Dieter Jurzitza created a patch to tex.el that "will not work 'out of the box'". I tried to apply the patch to `tex.el`. But it failed. I copied Michal's code to both `tex.el` and later `~/.emacs` and added `(add-hook 'LaTeX-mode-hook 'auctex-dnd-mode)` to `~/.emacs`; didn't work. Output of Messages buffer: * * *               Source file `/usr/local/share/emacs/site-lisp/auctex/tex.el' newer than byte-compiled file          Automatic display of crossref information was turned on Applying style hooks...           Loading /home/[...]           Unable to load color "(:line-width 1 :style release-button)" [2 times]           Loading /home/[...] Loading /usr/local/share/emacs/site-lisp/auctex/style/graphicx.elc...done           [...]           Applying style hooks... done Type C-c C-c to view the image as text.      * * * What do I need to do to get Michal's code to work? I have no programming skills ... I use Emacs 23.3.1 on Ubuntu 11.10 with the latest AUCTeX version (11.86). **[Update:]** With the help of Dieter I solved the problem. He sent me a tex.el with Michal's code that I had to byte-compile in Emacs.


title: A zero \parskip and an unusual \paragraph result in overlapping paragraphs

text: I'm trying to debug a class provided by some journal. From times to times, the text appears completely garbled, or does not appear at all (I believe it is printed _somewhere_ but probably out of the page). This class is a complete (and useless) reimplementation of `article`, but I think I narrowed down the problem. Consider the following document:                \documentclass[a4paper,10pt,twoside]{article}      \usepackage{lipsum}           \makeatletter      \renewcommand\paragraph{\@startsection{paragraph}                                    {4}{\z@}{12pt \@plus -3pt}{-.5em}                                    {\normalfont\normalsize\bfseries}}      \parskip\z@      \makeatother           \begin{document}      \lipsum[1-3]      \paragraph{New Par} \footnote{Oh}\lipsum[1-2]      \end{document}      While I believe that the `\paragraph` definition is inoffensive it seems that, in combination with the `\parskip\z@`, the results get wrong: ![enter image description here](http://i.stack.imgur.com/qDezn.png) **Question:** What fix should I give to the editor? Don't set `\parskip` to zero? Is that really the problem? Is the problem in the definition of \paragraph?


title: Revtex generating corrupt .bib file

text: I am trying to write a report using RevTeX to format my document. Here is a MWE:               \documentclass{revtex4-1}     \begin{document}     Some text \cite{article}     \bibliography{bibliography}     \end{document}      This file is called `File Name.tex` and I also have a file called `bibliography.bib` in the same directory. When I compile `File Name.tex` using pdfLaTeX, RevTeX generates a file called `File NameNotes.tex` and the `File Name.aux` file contains a line that says `\bibdata{"File Name"Notes,bibliography}` instead of just `\bibdata{bibliography}` like it would say if I was using the article class. Then when I try to run BibTeX, I get an error because there are spaces in one of the bibliography files. I've so far found two ways of fixing this:   1. Manually delete `"File Name"Notes` from the `\bibdata` entry in the `aux` file every time I run BibTeX. This is a lot of work and it still generates the useless `File NameNotes.bib` file that I don't want.   2. Change the file name to something without spaces like `FileName.tex`. This way I don't have to change the `aux` file every time, but I end up with a file named something different than I want and it still generates an unneccesary `FileNameNotes.bib` file that I don't want. Does anyone know why RevTeX insists on generating this extra `bib` file that I don't want and how to make it stop generating it?


title: TeXstudio doesn't see .bib file

text: There is `a.tex` file which includes `b.tex` which includes `c.tex` which defines configures biblatex with few `.bib` files. And the problem is that TeXstudio cannot auto-complete citations in `a.tex`. Is there any possibility to associate documents with `.bib` in TeXstudio? Thanks.


title: Latex code for this pic

text: I am new in learning `LaTeX` and I tried to produce this picture. Thank you .


title: Find error in multifile document

text: I am receiving the following error when I try to compile my multifile document: `! Extra }, or forgotten \endgroup. l.335` Which of course happens from time to time. However, the log does not show in which file the error is occurring. Most of the time it does, or I can find the error based on context, but here it seems the error could be anywhere on line 335. I have gone through all files of the document and looked at line 335 and surrounding areas, but I cannot locate this error. I already looked at this Q/A and found the last file loaded was `name- master.bbl` which did not seem to have any errors at line 335. Otherwise, in that Q/A, the issue seemed more related to the old version tex composer the OP was using. Before this happened, I _was_ converting biblatex `cite` commands from `[natbib=true]` (e.g. `\citep`) to conventional biblatex citation commands (e.g. `\parencite{foo}`). Jabref will throw an error if I have unpaired braces (which I use to keep title capitalization, etc.) in my .bib file, and I have gone through all of the newly updated citations, and I'm still getting this error. Anyone have other suggestions for how to track this down- I can't compile my thesis!!


title: Fontspec creates left margin

text: I'm using `standalone` document class and trying to draw a TikZ picture. The picture have border which is the border of the page. I do it like this:               \documentclass{standalone}     \usepackage{tikz}          \def\W{220}     \def\H{250}          \begin{document}     \begin{tikzpicture}[x=1pt,y=1pt]         \draw[ultra thick] (0,0) -- (\W,0) -- (\W,\H) -- (0,\H) -- (0,0);     \end{tikzpicture}     \end{document}      And it looks like this (I've added red background just to make the difference visible, and I've done it using gimp, it's not a part of the question) ![the left border at very left](http://i.stack.imgur.com/yZ64i.jpg) But if I just add `\usepackage{fontspec}` to the preamble then some left margin appears and it looks like this ![the left border moves to the right](http://i.stack.imgur.com/zFyqb.jpg) So, where does it come from? How can I get rid of it?


title: Two-colum task list with status information

text: I'm trying to generate a two-column task list with status information in the second column. It has to allow page breaks and should look more a less like this: ![enter image description here](http://i.stack.imgur.com/8NoGd.png) I managed to hack something together using `tabu` and `enumitem` but it's a bit a mess and the spacing is odd. Originally, there was too much space between the tasks (I added the negative `vspace`) and the status was originally supposed to be top-aligned (same height as the task title; I added the m qualifier for the first column). Ideally, it would just be one list with title, task text and status. Any suggestions?               \documentclass{book}     \usepackage{lipsum}     \usepackage{enumitem}     \usepackage{longtable}     \usepackage{tabu}          \newcommand{\status}[1]{\fbox{\textsc{#1}}}     \newlist{task}{description}{1}     \setlist[task]{style=nextline, leftmargin=*, labelindent=*, itemindent=*, itemsep=0pt, topsep=2mm, partopsep=0mm}          \begin{document}     \lipsum[11]     \begin{longtabu} to\linewidth {@{}X[-5 j m]X[c p]@{}}         \begin{task}         \item[First Task]              \lipsum[13]         \vspace{-3mm}       \end{task}&       \status{done}\\       \begin{task}           \item[Second Task]              \lipsum[4]         \vspace{-3mm}          \end{task}&           \status{in progress} \\       \begin{task}           \item[Third Task]             \lipsum[10]          \vspace{-3mm}          \end{task} &          \status{new} \\     \end{longtabu}     \end{document}


title: Use symbols with \label and \ref in custom legend

text: I would like to build a legend entry that refers to two simultaneous plots, because it is more intuitive to do so. I use `\label` and `\ref` to refer to the plot symbols, but they are shifted in the legend, while they are not shifted in the text. What am I doing wrong?               \documentclass[10pt]{article}     \usepackage{color}     \usepackage{amssymb}     \usepackage{amsmath}      \usepackage[utf8]{inputenc}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usetikzlibrary{plotmarks}          \begin{document}          \begin{tikzpicture}      \begin{axis}       \addlegendimage{empty legend}       \addlegendentry{\ref{pgf:x} $\le$ \ref{pgf:x2}}       \addplot+ function {x};        \label{pgf:x}       \addplot+ function{x^2};        \label{pgf:x2}      \end{axis}     \end{tikzpicture}          The legend is placed \ref{pgf:x2} correctly here          \end{document}      ![enter image description here](http://i.stack.imgur.com/noToY.png)


title: grouped bar colors in pgfplots

text: I have a simple grouped bar chart but would like to have all group bars the same color. Currently each bar in a group is colored, possibly because of the way I have used addplot. I've tried to use a pgfplotsset list but this still changes each bar color, rather than the group. What I am after is all bars in black to be a single color, all in brown a single color, etc. Any suggestions welcomed! ![what i have now](http://i.stack.imgur.com/T1ndG.png)               ![\documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pagestyle{empty}     \begin{document}     \pgfplotsset{     /pgfplots/bar cycle list/.style={/pgfplots/cycle list={%     {blue,fill=blue,mark=none},%     {red,fill=red,mark=none},%     {brown!60!black,fill=brown!30!white,mark=none},%     {black,fill=gray,mark=none},     {fill=orange},     {fill=green},     {fill=olive},%     }     },     }     \begin{tikzpicture}     \begin{axis}\[         ybar=1pt,         bar width=6pt,         enlargelimits=0.15,         legend style={at={(0.5,-0.15)},           anchor=north,legend columns=-1},         ylabel={TWh},         symbolic x coords={black,brown,gas,hydro,other},         nodes near coords align={vertical},         \]     \addplot coordinates {(black,118.4) (brown,56.3) (gas,17.5) (hydro,11.5) (other,4.3 )};     \addplot coordinates {(black,112.9) (brown,56.4) (gas,23.4) (hydro,13.4) (other,5.0)};     \addplot coordinates {(black,107.4) (brown,54.3) (gas,23.2) (hydro,14.7) (other,6.4)};     \addplot coordinates {(black,103.4) (brown,52.9) (gas,23.9) (hydro,14.6) (other,7.1)};     \addplot coordinates {(black,99.7) (brown,47.7) (gas,23.6) (hydro,16.9) (other,8.5)};     \legend{black, brown, gas, hydro, other}     \end{axis}     \end{tikzpicture}     \end{document}]


title: LuaLaTeX returns illegal unit of measure for .tikz

text: I have a large graph generated from matlab2tikz (~1.3mb) that I am trying to compile. Latex gives me out of memory errors so I am trying LuaLaTeX. The problem is LuaLaTeX gives me an error: `Illegal unit of measure (pt inserted).` pointing to line 37030. If I increase tex's memory then I can compile the document fine. But I would like to try using LuaLatex anyway. The .tikz file I am trying is uploaded here (please note it is large ~1.3 MB, and may lag your browser): https://gist.github.com/anonymous/7e10ab5a663e9e3367f8 Note that line 37030 is the 2nd last line, the `\end{axis}` (mods - is this the right place for files like this?) Once the file is saved as a .tikz (or .tex) I am importing it with:               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \begin{document}     \input{myfile.tex}     \end{document}      I can plot less data sets and it will eventually work in both latex and LuaLaTeX. I dont want to downsample because each individual curve is only made of 172 points. Help is greatly appreciated.


title: How to use \hlines and | column separators in a csv table uploaded with datatool

text: Hi I've been trying to use the `datatool` package to get data from csv files easily into documents as formatted tables. I seem to keep getting the lines on the first column shifted down by a row. If I rewrite the code so that it mimics the datatool manual `\DTLforeach` command I can't add the horizontal lines. What should I do differently? Am I missing something really obvious? A supplementary question: If I want to use the `\DTLdecimaltolocale{item}{cmd}` to add thousands separators to the item lists in this database how can I do that? Thanks ![Two tables showing datatool misaligned csv](http://i.stack.imgur.com/j3YqU.png)               \documentclass{article}     \usepackage{array,datatool}          \begin{filecontents}{sample.csv}     account, opening balance, expected, revised, amends     fruit, 1000000,1500000,1750000,250000     berries, 400000,500000, 450000,-50000     nuts, 300000,375000,390000,15000     legumes, 1250000, 1000000, 950000, 50000     cereals, 800000, 80000, 90000, 10000     \end{filecontents}          \begin{document}     \begin{table}[c]     \DTLloaddb[keys={ac,ob,ep,rv,df}]{dtl1}{sample.csv}     \caption{A Table to show misaligned borders}          \begin{tabular}{|p{4cm}|>{\raggedleft}p{2cm}|>{\raggedleft}p{2cm}|     >{\raggedleft}p{2cm}|>{\raggedleft}p{2cm}|}     \hline       & \bfseries 2010 Actual (a) & \textbf{2011 Target} & \textbf{2011        Updated Plan (b)} &     \textbf{Difference (a) - (b)} \tabularnewline \hline \hline     \DTLforeach{dtl1}{\what=ac,\current=ob,\budget=ep,\plan=rv,\diff=df}{%     \what & \current & \budget & \plan & \diff \tabularnewline}     \end{tabular}     \end{table}          \begin{table}     \caption{A Table to show misaligned borders working}     \begin{tabular}{|p{4cm}|>{\raggedleft}p{2cm}|>{\raggedleft}p{2cm}|     >{\raggedleft}p{2cm}|>{\raggedleft}p{2cm}|}     \hline     \bfseries account&\bfseries opening balance&\bfseries     expected&\bfseries revised&\bfseries amends\tabularnewline \hline \hline     fruit& 1000000&1500000&1750000&250000\tabularnewline     berries& 400000&500000& 450000&-50000\tabularnewline     nuts& 300000&375000&390000&15000\tabularnewline     legumes& 1250000& 1000000& 950000& 50000\tabularnewline     cereals& 800000& 80000& 90000& 10000\tabularnewline \hline     \end{tabular}     \end{table}               \end{document}


title: Adding sections such as Linkedin and Github to a Moderncv footer

text: How do I add extra links to the footer of a `moderncv` document that are not covered by the default commands?


title: Label a lstlisting listing in the lower right corner

text: I want to put a label in the lower right corner of my listings, in this case to indicate the kind of code listed there. I have a bad hack that works somewhat and illustrates what I want:               \documentclass{article}     \usepackage{listings}     \usepackage{xcolor}     \definecolor{light-gray}{gray}{0.95}     \newcommand{\mylabel}[1]{\raisebox{1em}[0pt][0pt]{\makebox[0pt][l]{\makebox[\linewidth][r]{\color{gray}{\sffamily #1}\hspace{3.5em}}}}\ignorespaces}     \lstnewenvironment{code}{\lstset{         ,frame=single         ,xleftmargin=2em         ,xrightmargin=2em         ,backgroundcolor=\color{light-gray}         ,belowskip=0pt     }}{\mylabel{Code}}     \begin{document}     \begin{code}     This is     some code     set with lstlisting     \end{code}          This is again regular text.     \end{document}      Which looks like this: ![enter image description here](http://i.stack.imgur.com/91fUV.png) The problem is that it   * does not work well with page breaks directly after the listing, i.e. the label may appear on the next page   * If the listing is followed by a blank line, the spacing is increased twice (due to the zero-sized but still existing content between the listing and the paragraph).   * It is not elegant. Are there nicer ways of obtaining this result?


title: ifpackageloaded question

text: why when i comment `\usepackage{geometry}` i get error?               \documentclass{book}          \usepackage{geometry}          \makeatletter     \@ifpackageloaded{geometry}      {                               % i the package was loaded          \newcommand*{\qw}{\itshape}  % this is enabled, else is not enabled.                                                                                }{}     \makeatother          \begin{document}     \qw hallo     \end{document}


title: fixed distance and no page break between lines

text: I'm trying to make a quotation environment which puts the quote on a gray background, with a colored rule right on top of it:               \documentclass{memoir}     \usepackage{color}     \usepackage[papersize={100mm,100mm},noheadfoot,margin=25mm]{geometry}     \pagestyle{empty}          \definecolor{shadecolor}{gray}{0.7}     \newdimen\X\X=22pt\advance\X3\baselineskip     \newenvironment{Quote}%        {\parindent0pt\parskip1\baselineskip%         \par%         \textcolor{red}{\rule{\hsize}{6pt}}\\[-\X]%         \nopagebreak%         \begin{quote}\noindent\leftmargin0pt\rightmargin0pt\begin{qshade}%        }%        {\end{qshade}\end{quote}}          \begin{document}     \begin{Quote}A small quote\end{Quote}     \begin{Quote}A small quote\end{Quote}     %\begin{Quote}A small quote\end{Quote}     \end{document}      This works fine, but when I uncomment the third Quote, a page break occurs between the rule and the quotation, even though there is a \nopagebreak. Also, this introduces extra white between the rule and the shaded box of the other two Quote's. How can I prevent this?


title: Center code in a lstlisting float

text: Out of pure laziness, I decided to create `lstlisting` floats with the option offered by the package:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{listings}          \begin{document}     \begin{lstlisting}[float,caption={Test}]       void a() {         foo();       }     \end{lstlisting}     \end{document}      This creates a float in which the code is left aligned: ![enter image description here](http://i.stack.imgur.com/eqq4k.png) This looks just silly on a page with text if code lines are short. Of course, it's easy to center by creating "regular" figures (maybe with a custom type for listings), but this approach here has the appeal of brevity. Is there a way to get the code centered in this setup?


title: Siunitx: Suppressing decimal alignment for an integer row in a table

text: How can I align the figures in the column of the following MWE? The figure in the `N` row is always an integer, so I don't want that to be aligned on the decimal place like the coefficients above: it's too far to the right. Is there any alternative to placing the `N` figures in curly brackets so `siunitx` will disregard them? Also, the minus sign is much longer than usual without `siunitx`. Is there an option I can specify so that the minus sign is the 'normal' length?               \documentclass{article}          \usepackage{siunitx}     \usepackage{longtable}     \usepackage{booktabs}               \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}%Need for STATA tables     \def\tmp{     \parbox{\linewidth-1ex}{     \footnotesize     \lipsum[3-4]     \vspace{1ex}     }     }%Need for STATA tables               \begin{document}               \begin{longtable}{@{\extracolsep{\fill}}     @{}l     S[table-format = 3.3,detect-mode,             group-digits            = false,             input-symbols           = ,             input-open-uncertainty  = ,             input-close-uncertainty = ,             table-align-text-pre    = false,                     table-align-text-post    = false,             round-precision         = 3,             table-space-text-pre    = (,     ]     }     \toprule          text               &       0.900\sym{***}\\                         &     (-35.22)        \\          N                   &         512        \\     \bottomrule          \bottomrule     \end{longtable}               \end{document}


title: Imbricate Empheq

text: I am trying to imbricate empheq environments. The result (using array) I would like to obtain is : ![enter image description here](http://i.stack.imgur.com/2oesS.png) I do not like array environment because it does not manage the spaces well, as you may see. I therefore use empheq. And I obtain : ![enter image description here](http://i.stack.imgur.com/eMgG6.png) Do you know how to solve the problem ? Regards               \documentclass[9pt]{extbook}     \usepackage[french]{keystroke}     \usepackage[utf8]{inputenc}     \usepackage{amsmath,amsfonts,amssymb,amsthm}     \usepackage[table]{xcolor}          \usepackage{array,multicol}          \usepackage[T1]{fontenc}     \usepackage{lmodern}      \usepackage[francais]{babel}          \usepackage{empheq}     \usepackage{varwidth}          \begin{document}          \[     \left\{\begin{array}{l}     \left\{\begin{array}{l}     a = b \times c \\      d = e \times f     \end{array}\right. \\     \left\{\begin{array}{l}     a = b \times c \\      d = e \times f     \end{array}\right.     \end{array} \right.     \]          \begin{empheq}[left=\empheqlbrace]{align*}      { \begin{varwidth}{20cm}     \begin{empheq}[left=\empheqlbrace]{align*}         a = b \times c \\       d = e \times f      \end{empheq}      \end{varwidth}} \\     { \begin{varwidth}{20cm}     \begin{empheq}[left=\empheqlbrace]{align*}         a = b \times c \\       d = e \times f      \end{empheq}      \end{varwidth}}      \end{empheq}          \end{document}


title: epstopdf misspelled or could not be found

text: I have a problem compiling eps-files with the epstopdf package. I use TeXStudio portable and try to compile the following code:               \documentclass{article}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[latin1]{inputenc}          \begin{document}            \begin{figure}[h]     \includegraphics[width=\columnwidth]{test.eps}       \end{figure}          \end{document}      This code gives me the error "epstopdf" either misspelled or does not exist. So I tried to convert the eps-file prompt and get the same error message. Can anybody tell me what's wrong with my Latex setup? Thank you!


title: Problem with pdfpages due to everyshi related error

text: I just want to add individual .pdf pages to my final latex document. A snippet of the code is presented below:               \documentclass[12pt, a4paper, twoside]{book}     \usepackage[top=1.50in, bottom=1.50in, left=1.25in, right=1.25in]{geometry}          ...          \usepackage[shortlabels]{enumitem}           \usepackage{pdfpages}          \usepackage{balance}     \usepackage{color}          ...      And this is why it tells me: > LaTeX Warning: You have requested package `eso-pic', but the package > provides`everyshi'. > > ! LaTeX Error: Command \@EveryShipout@Hook already defined. Or name \end... > illegal, see p.192 of the manual. > > See the LaTeX manual or LaTeX Companion for explanation. Type H for > immediate help. I am using TeX Live 2012, on Ubuntu 11.10, with the pdflatex command for compilation.


title: Customizing inline coloring with the fixme package

text: How can I set the color of annotated `fixme` text (not the comment itself)? This MWE produces the text under consideration in a blueish color, that is hard to read, I'd like it to be darker and more alarming (or just red).               % Run with: pdflatex -shell-escape -interaction=nonstopmode %.tex     \documentclass[draft]{memoir}          \usepackage{fixme}     \fxsetup{theme=color}          \begin{document}     Hello \fxnote*{Should this be capitalized?}{world}!     \end{document}      Output: ![Screen shot](http://i.stack.imgur.com/exHAb.png) This other question shows how to deal with the coloring of the first argument in annotated fixme (the comment itself), but what about the second argument (the text which is under consideration. Fixme package fxnote background


title: How can I change the in-line citation using BibTeX

text: I'm a bit new to the whole LaTeX thing, but I thought it would be interesting to use from my Master's Thesis. I'm currently using Texmaker and it has been quite useful so far, but I have been having a problem with the citations. When citing a book, normally one would would specify the exact page that one got the information from and place it only in the in-line citation. However, I can't seem to do so. Does anyone know how to do this? I've been looking around on this site and haven't found anyone talking about the same thing except when dealing with Natbib. Is Natbib better? If so, how can I get it? Bonus points: If anyone can tell me how I can put spaces between one full citation and the next. Thanks guys ^^.


title: Xindy cannot be executed

text: Trying to run `\makeglossaries` after I've already compiled the file with `pdflatex` gives me the error: `**Call to xindy failed*** Check 'settings.glg' for details` In the file `'settings.glg'` this is written: `*** Unable to execute: '"xindy" -L english -I xindy -M "settings" -t "settings.glg" -o "settings.gls" "settings.glo"' ***` `Status report:` This is my code:               \documentclass{article}          \usepackage[xindy]{glossaries}     \makeglossaries          \newglossaryentry{gloss}{     name=glossaries,     description=A package for generating glossaries in many styles     }          \begin{document}     \texttt{\gls{gloss}} is a great package!     \printglossaries     \end{document}      Everything works when I use `\makeindex` (`\usepackage{glossaries}`), but with the warning. About this warning I've already asked the question Makeindex warning. Could you explain me what I'm doing wrong with `xindy`? P.S. I've installed xindy using this How to use Xindy with MiKTeX? and made settings for my TeXstudio using this post.


title: Set the height of an include_graphics to the height of a node?

text: Consider the following tikz code:               \newcommand\Header{     \begin{tikzpicture}[remember picture, overlay]     \node[anchor=north, inner sep=0pt, outer sep=0pt] (header)      at (current page.north) {\includegraphics[width=\paperwidth]{header.png}};          \node[anchor=north, inner sep=0pt, outer sep=0pt] (header_left)      at (current page.north) {\includegraphics[height=     % SAME HEIGHT AS THE HEADER NODE ?     ]{header_left.png}};          \draw [fill=nicedarkblue, draw=none] (header.south west)      rectangle ($(header.south east)-(0,0.1cm)$);     \end{tikzpicture}     }      How to set the height of the second image to be equal to the height of the first one ?


title: Showing a text after an itemize[<+->] with \pause creates double slide

text: I've come across some strange interaction between overlay specification and `\pause`. Basically I have an itemize and after some text(or block). I want to step through the itemize and _after_ that show the text/block. I've tried to put a simple `\pause` between the `itemize` and the text, but in this way two slides are created, both with the full itemize and no text. If I don't put the `\pause` the text is visible from the start(which I don't want). I've already found a simple work-around: instead of using `itemize[<+->]` I can specify the slides on the items(e.g `item<1->, ...item<2->,... \pause`), but I don't like this solution for some reasons:   * I have to type more than before   * I have to hard-code the slide numbers   * This is solution is not robust. Modification on the item order, removal or addition of new items would break it.   * I think there has to be some better solution. So, how should I do? By the way, a minimal example:               \documentclass{beamer}          \usepackage[utf8]{inputenc}     \usepackage{default}          \begin{document}          \begin{frame}         \begin{itemize}[<+->]             \item A             \item B             \item C         \end{itemize}              \pause  % double pause here              Some text.     \end{frame}          \end{document}


title: Reset section numbering between unnumbered chapters

text: The document I'm writing using `report` class has 2 unnumbered chapters. The sections of the 2nd chapter are numbered following the numbering of the sections of the 1st chapter, like this:               MY FIRST UNNUMBERED CHAPTER     1 First Section     2 Second Section     3 Third Section          MY SECOND UNNUMBERED CHAPTER     4 First Section     5 Second Section      I want it to reset the section numbering every time a new unnumbered chapter is created:               MY FIRST UNNUMBERED CHAPTER     1 First Section     2 Second Section     3 Third Section          MY SECOND UNNUMBERED CHAPTER     1 First Section     2 Second Section      For this, I tried:   * `\@addtoreset{section}{chapter*}`, it compiled, but sections were not correctly numbered and PDF bookmarks went crazy.   * `\setcounter{section}{0}`, it correctly numbered the sections, but the PDF bookmarks of the sections of the 2nd chapter points to the first chapter. So, how to reset the section numbers between unnumbered chapters without breaking the PDF bookmarks?


title: xstring command in renewcommand

text: I'm trying renew `\texttt` command with condition on ending `.` or `,`. But after making this:               \usepackage{xstring}          \let\OldTexttt\texttt     \renewcommand{\texttt}[1]{%         \OldTexttt{\hspace{0.4em}#1}%         \IfEndWith{#1}{.}{}{\hspace{0.4em}}%         }      Edit: not working example.               \documentclass{article}          \usepackage{xstring}          \let\OldTexttt\texttt     \renewcommand{\texttt}[1]{%         \OldTexttt{\hspace{0.4em}#1}%         \IfEndWith{#1}{.}{}{\hspace{0.4em}}%         \IfEndWith{#1}{,}{}{\hspace{0.4em}}%         }               \begin{document}          \section{This is \texttt{section.}}     bbbb      \texttt{test}     \texttt{section.}     \texttt{section,}     \texttt{test}     aaa          \end{document}      Error:               ! Argument of \@sect has an extra }.     <inserted text>                      \par      l.18 \section{This is \texttt{section.}}          ?      ! Emergency stop.     <inserted text>                      \par      l.18 \section{This is \texttt{section.}}      Can anybody help what's wrong?


title: How to use GNU Plot to plot diagrams in TexShop

text: hope anyone can help with this... I have a very basic knowledge of TeXShop, but I need to plot some functions on it, say `y=x`. I learnt that this can be done by installing GNU Plot and writing in TeXShop               \begin{tikzpicture}[domain=0:4]         \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};         \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};         \draw[color=black] plot[id=x] function{x}              node[right] {$f(x) =x$};     \end{tikzpicture}      So I have downloaded GNU Plot and dragged it from the disk image to applications. I don't know how to use it but it's there. However when I run the above in TeXShop only the axis and labels pop up, but no function! I have read many sites now, but it all seems too complicated for me - can anyone help?


title: Render text upright in math mode

text: I am looking for a way to have LaTeX render strings _of more than one letter_ as upright (in math mode). For example, I want it to render   * `$Hom$` as `$\mathrm{Hom}$`,   * `$apple$` as `$\mathrm{apple}$`,   * `$apple + orange$` as `$\mathrm{apple} + \mathrm{orange}$`, while rendering   * `$a$` and `$a + o$` as normal. The answers at Use \mathrm by default are close to what I want, but they fail the last example.


title: Long and wide table: horizontal and multi-page

text: I am trying to make a table for a manuscript. The table is wide and long. Moreover, the first column has bibtex references (not sure if this interferes with anything...). I have tried two different ways to accomplish this without success: 1)               \begin{turnpage}     \begin{table}     \caption{\label{}}     \begin{ruledtabular}     \begin{tabular}{c c c c c}     \hline     data     data     data     data     \end{tabular}     \end{ruledtabular}     \end{table}     \end{turnpage}      Because some rows have multiple lines, the table keeps going and ends up truncated by the end of the page, and does not continues on the next page. Otherwise, it looks exactly as I want it! So, I tried the longtable route. 2)               \begin{landscape}     \begin{longtable}{c c c c c}     \caption{\label{fkwacoustics1}}\\     \hline     data     data     data     data     \end{longtable}     \end{landscape}      I am using all the necessary packages, but landscape is not working (tried both lscape and pdflscape). The caption appears in the center of the page (I realize this may well be an incorrect usage of longtable as you can see above), and not spread along the table. I also tried to use tunrpage instead of landscape, which did work but still the caption looked as I explained and the table was not broken in different pages. Any ideas how I can set this right? Thank you so much!


title: Problem of having \begin...\end inside \ifdefined...\fi clause

text: I am using `beamer`, and have a LaTeX code as below.               \ifdefined\VAR     \begin{itemize}        \item blahblab     \end{itemize}     \fi      this does not compile, throwing an error: ! Incomplete \ifx; all text was ignored after line 61. Line `61` is on `end{itemize}`. If I remove the itemize clause, as below. it works (of course)... Does anyone here have the same error before?               \ifdefined\VAR        blahblab     \fi      UPDATE: If I put a separate frame inside the `\ifdefined`...`\fi` clause, then it does not complain anything. Maybe this tells something..               \ifdefined\VAR     \begin{frame}     \begin{itemize}        \item blahblab     \end{itemize}     \end{frame}     \fi      UPDATE2: A self-contained example code for reproducing the error...               \documentclass[]{beamer}     \usepackage{beamerthemesplit}      \setbeamertemplate{headline}{}          \begin{document}     \begin{frame}         \frametitle{Table of Contents}         \ifdefined\VAR         \begin{itemize}            \item blahblab         \end{itemize}         \fi     \end{frame}     \end{document}


title: Automating the creation of name badges for an event

text: We are organizing an event. There will be around 60 participants and I need to prepare name badges (tags) for them. The badge will involve, `name surname` and `affiliation` fields which is different for each participant. These fields are already in an Excel sheet actually. So, I can easily export them to a csv file. And there will be a footer with a logo (picture) and the name of the organization. I want to create a PDF holding 8 or 10 cards per page and then cut with scissors. I can create the file manually in Word but I don't like to. How can I automate this process in LaTeX? As an example, here's a simple design that I would like to have: ![enter image description here](http://i.stack.imgur.com/Ltlav.png)


title: Extracting LaTeX source from HTML version of Feynman Lectures?

text: CalTech has placed Volume I of the classic _Feynman Lectures on Physics_ online in HTML format, using MathJax to render the LaTeX formulas and SVG for the graphic images. It's pretty cool, and it looks like they did a pretty decent job with the conversion from the original book format:   * The Feynman Lectures on Physics, Volume I Anyway, I would actually prefer to read these lectures in PDF format, as typeset by TeX and using TeX fonts and TeX's fine typesetting. What would be involved in programmatically extracting all the source formulas, text, and images from the web pages and converting these to LaTeX source files? There is a nice list of tools in one of the answers to this question:   * How do I convert HTML to LaTeX? but before diving in to explore those, I'm wondering if anyone can recommend a solution just by eyeballing the Feynman conversion HTML source.


title: How can I get a table of contents as below (triple page numbers)

text: I want to typesetting a problem book with hints and solutions. I want to get a TOC as                               TABLE OF CONTENTS                                      Problems   Hints    Solutions              Chapter 1 Algebra          1         25        50             problem 1.1            2         26        51             problem 1.2            3         27        52         .......................................................         Chapter 2 Geometry        91        135       180             problem 2.1           92        136       181             problem 2.2           93        137       182         .......................................................      How can I get the result? (I am more familiar with `titlesec` and `titletoc` package than others.) BTW, I would input my source code like               \part{PROBLEMS}          \chapter{ALGEBRA}     \problem The first algebra question ...     \problem The second algebra question ...     ...     \chapter{GEOMETRY}     \problem The first geometry question ...     \problem The second geometry question ...     ...          \part{HINTS}          \chapter{ALGEBRA}     \hint The hint of the first algebra question ...     \hint The hint of the second algebra question ...     ...     \chapter{GEOMETRY}     \hint The hint of the first geometry question ...     \hint The hint of the second geometry question ...     ...          \part{SOLUTIONS}          \chapter{ALGEBRA}     \solution The solution of the first algebra question ...     \solution The solution of the second algebra question ...     ...     \chapter{GEOMETRY}     \solution The solution of the first geometry question ...     \solution The solution of the second geometry question ...     ...      or like               ...          \chapter{ALGEBRA}     \problem The first algebra question ...     \hint The hint of the first algebra question ...     \solution The solution of the first algebra question ...          \problem The second algebra question ...     \hint The hint of the second algebra question ...     \solution The solution of the second algebra question ...     ...     \chapter{GEOMETRY}     \problem The first geometry question ...     \hint The hint of the first geometry question ...     \solution The solution of the first geometry question ...          \problem The second geometry question ...     \hint The hint of the second geometry question ...     \solution The solution of the second geometry question ...     ...      Which one is better? Welcome others suggestions.


title: vertical spacing between subfloat

text: I am using subfig package. Is it possible to reduce the spacing between two sufloats one below the other? I couldn't find anything in the documentation.


title: Is it possible to change the size of an arrowhead in TikZ/PGF?

text: I'm trying to draw an arrow with a bigger head than normal. Is it possible without changing the style of the line itself?


title: columns/alignment with itemize

text: I'm trying to make alignment points in a list environment. The following code gives me an error, but it almost compiles to what I want, just missing the bullet points. I must be misunderstanding something about align and/or tabular and how they work with linebreaks. Guidance appreciated!               \documentclass{beamer}          \begin{document}          \begin{frame}         \frametitle{Title}         \begin{itemize}         \begin{tabular}{ll}             \item Topic Apple: &Something to say about it \\             \item Topic Watermelons: &Something different         \end{tabular}         \end{itemize}     \end{frame}          \end{document}


title: putting a logo in a classic-thesis report

text: I am currently writing some documents using the template that is present at this link: http://www.lorenzopantieri.net/LaTeX_files/TesiClassica.zip It uses koma-script and classic-thesis/ars-classica. Now I am facing this problem: i need to put a logo into all headings of all pages of those documents. I have looked into fancyhdr, but it seems not working with koma- script (because, I think, classic-thesis already defines some parameters of the headings). I would like to insert it in two possible ways: like that ![first option](http://i.stack.imgur.com/4c5vC.jpg) Or always centered, shifting down the rest of the page (headings include). How can I do one of those two things?


title: Change node style in a tikz picture

text: I'm trying to change the node style so a node looks like a cylinder with a variable height. currently i'm using this code               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{automata,positioning,arrows,matrix,backgrounds,calc}     \usetikzlibrary{decorations.text}     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{shapes.geometric}          \tikzset{         node_standard/.style = {             ->,>=stealth',shorten >=1pt,node distance=2.5cm,auto,thick,             main node/.style={                 circle,                 fill=gray!25,                 draw,                 font=\sffamily\Large\bfseries}                 ,             black node/.style={                 circle,                 fill=black,                 text=white,                 draw,                 font=\sffamily\Large\bfseries}                 ,             cylinder node0/.style={                 ellipse,                 draw=black,                 thick,                 aspect=0.7,                 minimum height=0.4cm,                 minimum width=0.8cm,                 shape border rotate=90,                 fill=gray!15}                 ,             cylinder node1/.style={                 cylinder,                 draw=black,                 thick,                 aspect=0.7,                 minimum height=0.8cm,                 minimum width=0.8cm,                 shape border rotate=90,                 cylinder uses custom fill,                 cylinder body fill=gray!15,                 cylinder end fill=gray!25}                 ,             cylinder node2/.style={                 cylinder,                 draw=black,                 thick,                 aspect=0.7,                 minimum height=1.2cm,                 minimum width=0.8cm,                 shape border rotate=90,                 cylinder uses custom fill,                 cylinder body fill=gray!15,                 cylinder end fill=gray!25}                 ,             cylinder node3/.style={                 cylinder,                 draw=black,                 thick,                 aspect=0.7,                 minimum height=1.6cm,                 minimum width=0.8cm,                 shape border rotate=90,                 cylinder uses custom fill,                 cylinder body fill=gray!15,                 cylinder end fill=gray!25}         }     }          \tikzset{         path_standard/.style = {             %anchor=south,             every node/.style={font=\sffamily\small}         }     }          \begin{document}     \begin{center}         \begin{tikzpicture} [node_standard, node distance=2cm]%                  \node[cylinder node3] (1)           {$s$};             \node[cylinder node2] (2) at (2cm,1cm)      {$v$};             \node[cylinder node0] (3) at (1.6cm,-1cm)   {$u$};             \node[cylinder node1] (4) [below right of=2]    {$t$};                  \path[path_standard]             (2) edge [dashed]   node    {}  (1)             (2) edge        node    {}  (4)             (3) edge [dashed]   node    {}  (1)                 edge        node    {}  (2)             (4) edge [dashed]   node    {}  (3);              \end{tikzpicture}         \ \\         \ \\         ole ole ole     \end{center}     \end{document}      and i intend something like in this picture: ![like this](http://i.stack.imgur.com/JOwgg.png) so, as i said before, the nodes should look like a cylinder with an variable x to change their height. any advice how to implement this? ;)


title: How to create pgfplots cycle list from a table?

text: I know that a pgfplots cycle list can be created with `\pgfplotscreateplotcyclelist`. However, the examples given in the pgfplots manual explicitly list all the items. I am wondering if it is possible to create a cycle list by looping through a table (potentially loaded from a file). This is very useful when there are large number of `\addplot` and each needs a special style. Any idea how to do this? Thanks.


title: Handling different time zones

text: I'm looking for a way to handle date/times with different time zones. For example in `svn-multi` and `filemod` a date and time with a timezone is returned. I like to be able to compare times in different time zones and convert from one time zone to another one. The problem here is that different time zones change to daylight saving time (DST) on different dates. So converting one date from a couple of month back to another time zone would have to take the potential different DST in both time zone _for that date_ into account. I know about the packages like `datenumber`, `datetime` and `advdate`, but didn't see a functionality like this. The solution would need to be able to detect the usual time zone strings and map them to the offsets.


title: Bold chapters and sections and normalsize subsections Table of Contents in KOMA-script

text: I would like to make `chapter` and `section` appear bold in the `Table of Contents` (TOC). I am using a `KOMA`-Script prototype. My Table of Contents looks like: ![enter image description here](http://i.stack.imgur.com/O4kBO.png) Although I define sections to be written in bold, they do not appear bold in the Table of Contens. Furthermore, chapters appear in a different font. Do you know why? I include the table of content by this:               \begingroup     \changefont{phv}{m}{n}     \tableofcontents     \endgroup      The class file looks like this:               \addtokomafont{chapter}{\fontfamily{phv}\fontsize{14}{14}\bfseries}     \addtokomafont{section}{\fontfamily{phv}\normalsize\bfseries}     \addtokomafont{subsection}{\fontfamily{phv}\normalsize\mdseries}     \renewcommand{\cftchappagefont}{\fontfamily{phv}\bfseries}     \renewcommand{\cftchapfont}{\fontfamily{phv}\bfseries}     \renewcommand{\cftsecpagefont}{\fontfamily{phv}}     \renewcommand{\cftsubsecpagefont}{\fontfamily{phv}}     \renewcommand{\cftsecfont}{\fontfamily{phv}}     \renewcommand{\cftsubsecfont}{\fontfamily{phv}}     \renewcommand*{\chapterpagestyle}{empty}     \def\@dottedtocline#1#2#3#4#5{%       \ifnum #1>\c@tocdepth \else     \vskip \z@ \@plus.2\p@     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip      \parindent #2\relax\@afterindenttrue      \interlinepenalty\@M      \leavevmode      \@tempdima #3\relax      \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip      {#4}\nobreak      \leaders\hbox{\rmfamily\mdseries$\m@th         \mkern \@dotsep mu\hbox{.}\mkern \@dotsep         mu$}\hfill      \nobreak      \hskip-.2em      \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%      \par}%      \fi}     \renewcommand*\l@chapter[2]{%     \ifnum \c@tocdepth >\m@ne     \addpenalty{-\@highpenalty}%     \vskip 1.0em \@plus\p@     \setlength\@tempdima{1.5em}%     \if@tocleft       \ifx\toc@l@number\@empty\else         \setlength\@tempdima{0\toc@l@number}%       \fi     \fi          \begingroup       \parindent \z@ \rightskip \@pnumwidth       \parfillskip -\@pnumwidth       \vspace{-\baselineskip}       \leavevmode \sectfont       \advance\leftskip\@tempdima       \hskip -\leftskip       \@dottedtocline{0}{\z@}{1.3em}{\textbf{#1}}{{\changefont{phv}{m}{u}#2}}       \penalty\@highpenalty     \endgroup     \fi     }


title: Beamer: Imitating a beamer block - problem with the width

text: This is a follow up on my last question. I want a text block with (text width and outer shape) the **same width** as a beamer block but it doesn't work. The default definitioin of a beamer block is here. They use something like `\begin{beamercolorbox}[colsep*=.75ex]{block title}`. But if I use this the box is not properly centered anymore.               \documentclass{beamer}     \usetheme{Berlin}          \usepackage{tikz}          \begin{document}          % as expected          \begin{frame}{Test}          \begin{block}{Test}     Test     \end{block}          \tikzstyle{myBox} = [draw=none, fill=green,         rectangle,inner sep=10pt,align=left,minimum width=\textwidth,text width=0.8\textwidth]          \begin{centering}     \begin{tikzpicture}     \node [myBox]{dsdsadsad kdjskdj sdksdk sdks dksjkdj skdjksdjksjdksjdksjdksjdksa fjdjf dkfjdkfjdkfj kdjfkdfjkdsjfkdjf};     \end{tikzpicture}%     \end{centering}          %     \begin{block}{Test}     Test     \end{block}          \end{frame}          \end{document}      ![enter image description here](http://i.stack.imgur.com/vFqMt.png) > My aim is to imitate the lower part of the beamer block. I use a tikz > picture because I want to change transparency and other stuff. **I would like to avoid using additional packages. Is there a way to do it with TikZ? Maybe a beamercolorbox?**


title: Linguex errors: "missing $ or } inserted" errors with qtree and glossed examples

text: this is my first question and I'm quite new to this. I have started using the linguex package and it works with all my examples except those including trees (drawn using qtree) or those with glosses. It keeps throwing back about 8 "missing } inserted" and 8 "missing $ inserted" errors per example, and sometimes "missing \endgroup inserted", even though I always leave a blank line after the last example. Here is a minimal(ish) tree example (I have left in the tree itself as I don't know what element of it might be playing havoc):               \documentclass{article}     \usepackage{qtree}     \usepackage{linguex}     \usepackage{setspace}          \onehalfspacing     \begin{document}          \ex. \Tree [.CPVP \textsc{speaker} [.CPV'1 [.CPV1 \textsc{ask}_i ] [.CPVP2 \textsc{addressee}_j [.CPV'2 [.CPV2 t_i ] [.CP [.AdvP \textsc{pro}_j [.Adv' [.Adv Seriously ] ] ] [\qroof{\ldots}.CP ] ] ] ] ] ]          \end{document}      And here is a glossed example:               \documentclass{article}     \usepackage{linguex}     \usepackage{setspace}          \onehalfspacing     \begin{document}          \exg. ^{?*}This is an ungrammatical sentence\\     { }This is a lexical gloss\label{label}\\     `This is a translation'          \end{document}      The glossed examples do use special characters (they're in French). I'd be really grateful for any help, thanks!


title: Where can I get the source code to LaTeX2HTML?

text: I want to get and improve the source of the `LaTeX2HTML` program, but the top Google results are outdated, with broken links. Does anyone know where the source resides?


title: Is algorithm2e available in Spanish?

text: I'm trying this code copied from another post in TEX.SX with the Spanish option, but some words appear in English, e.g. WHILE, FOR,... IF,... Is it possible to change these to Spanish?               \documentclass[12pt,a4paper,x11names]{article}     %\renewcommand{\baselinestretch}{1.5} % interlineado de 1.5de la normativa del TFG  no usamos esto para poder usar el setspace y que el interlineado no afecte a las notas a íé de página.     \usepackage[top=2.5cm, left=3.5cm, bottom=2.5cm, right=2.5cm]{geometry}  % Margenes de la normativa TFG          \usepackage{setspace}           \usepackage{lipsum,mwe}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[spanish]{babel}     \usepackage{mathtools,amsmath,amsfonts,amssymb,latexsym}     \usepackage{eurosym}     \usepackage{graphicx}          \usepackage[ruled,vlined,lined,linesnumbered,spanish]{algorithm2e}          \begin{document}     \begin{algorithm}[H]         \caption{Algoritmo del Enfiramiento Simulado}              \KwData{la liste $L$ des naturels compris de $2$ à $N$.}         \KwResult{la liste $P$ des nombres premiers compris entre $2$ et $N$.}         \BlankLine         \For{$i = 2$ \KwTo $N$}{         \If{$i$ n'est pas barré dans la liste $L$}{             Barrer dans la liste $L$ les mutltiples $ki$ où $k \geq 2$.         }         }         \Return{la liste $P$ des nombres non barrés.}     \end{algorithm}          %\begin{algorithm}[h]     %\SetLine     %\linesnumbered     %\KwData{$\{ T_0,T_1,...,T_{imax}=T_{final}\}$}     %\end{algorithm}     \end{document}


title: Command that expands to the contents of a file

text: I'd like to make a macro that expands to the contents of a file. Basically something like               \def{\mycommand}{\input{file.txt}}            % file.txt contains "Hello%"     \anothercommand{\mycommand}      should be completely equivalent to:               \def{\theircommand}{Hello}     \anothercommand{\theircommand}      The file shall be `input`ted when the macro is used, not when it is defined (since I'm generating it on the fly and it may change throughout the document). The reason I'm doing this is because I want to emulate `\pdf@filemoddate`, which I need, but which is not available in the old pdfLaTeX version I have at work. This is a well, almost minimal, non-working example with further information:               \documentclass{article}     \makeatletter          % This part is from epstopdf.  I can't change this.     % It just takes a string like D:20090114124316Z and     % formats it as a date.     % --------------------------------------------------     \def\ETE@Date#1\@nil{%     \ifx\\#1\\%     \else       \ETE@@Date#1\@nil     \fi     }%     \def\ETE@@Date#1:#2#3#4#5#6#7#8#9{%     date: #2#3#4#5-#6#7-#8#9 %     \ETE@@Time     }%     \def\ETE@@Time#1#2#3#4#5#6#7\@nil{%     #1#2:#3#4:#5#6%     }%     \makeatother     % --------------------------------------------------          % some commands of increasing complexity     % this one just expands to the string I want out:     \def\blahone{D:20090114124316Z}     % this is the core functionality that I'm missing:     \def\blahthree{\input{temp.txt}}     % It seems to be not a problem with 'input', but an     % expansion problem, as this doesn't work either:     \def\blahtwo{\blahone}     % This is very close to the actual command I want to define     \def\myfiledate#1{%       % in reality I call a little script with #1 here       \immediate\write18{cat temp.txt > temp2.txt}%       \input{temp2.txt}%       \immediate\write18{rm temp2.txt}%     }          \begin{document}          \makeatletter          All macros work on their own.  There must not be spaces around the Xs: \\     X{\blahone}X \\     X{\blahtwo}X \\     X{\blahthree}X \\     X{\myfiledate{test.tex}}X \\          However, I can't use the results of the more complex ones as arguments: \\     \expandafter\ETE@Date\blahone\@nil \\          % doesn't work:     %\expandafter\ETE@Date\blahtwo\@nil \\     % need the 'romannumeral' trick to force full expansion:     \expandafter\ETE@Date\romannumeral-`X\blahtwo\@nil \\     % but that isn't an option.  I have code that calls     % \expandafter\ETE@Data\MACRO\@nil     % and I can only replace \MACRO, not change that code!          % doesn't work at all, no matter how many expandafters I try:     %\expandafter\ETE@Date\blahthree\@nil \\     %\expandafter\ETE@Date\filedate\@nil \\          \makeatother     \end{document}      The file test.txt contains only               D:20090114124316Z%      (with no newline at the end). * * * Update (what I'm trying to achive): I'm have a large document with lots of figures (eps) in it. When compiling it with pdfLaTeX, epstopdf converts the eps files only as needed to pdf. However, on my PC at work, the pdffilemoddate command is missing, and epstopdf can't tell if an eps file has been modified or not, so it insists on converting all figures again each time, which takes incredibly long. I'd like to have a `\def\pdf@filemoddate#1{...}` replacement that I can place in my header, and that permits epstopdf to function as intended.


title: EPS Figures in LaTeX Documents

text: I found some problems when inserting EPS images to my LaTeX document. There is no problem with the figure, the main problem is that on the left corner there is an "SS" that I have not written and I have no idea to delete them. Please tell me what to do.


title: Proper spacing with ellipsis and xspace

text: Really a simple enough question, but I haven't found an answer, so … is there any straightforward way of making the spacing adjustments of `ellipsis.sty` work with `xspace`? The package itself has an `xspace` option, which adds the command to all occurrences of `dots`, but this seems to come in the way of the spacing, so one needs to use `\dots\␣` anyway. I'm not committed to using `ellipsis.sty` – what I'd like is just proper spacing (for some definition of proper `;)`), along with `xspace`, or some similar mechanism. **Added example** Here's a minimal example to illustrate the behavior:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[xspace]{ellipsis}     \begin{document}     \noindent     x \dots x\\     x … x\\     x \dots\ x\\     x …\ x     \end{document}      This also includes Unicode ellipses, which are part of my motivation – the ability to typeset externally generated text directly, without inserting explicit spacing commands. Here's how it looks: ![With xspace](http://i.stack.imgur.com/I57bc.png) Here's how it looks without the `xspace` option: ![enter image description here](http://i.stack.imgur.com/bftIh.png) And here, without `ellipsis.sty` altogether: ![enter image description here](http://i.stack.imgur.com/j14ob.png) The spacing I want is the one I get with both `ellipsis.sty` and the explicit `\␣`. But I'd like to get it automatically – at least for the Unicode ellipsis character. It's less crucial that I make it happen for the `\dots` command. I guess maybe I shouldn't rely on `xspace`. Is there any “obviously correct” way to get the proper(?) spacing after the Unicode ellipsis character, though?


title: How do I move the package implementation to the back of the documentation?

text: I'm trying to learn how to use `.dtx` files, `docstrip` etc to produce both package code and documentation from a single file. My primary source of information so far has been Joseph Wright's model dtx file and the accompanying blog post. I've got started allright, and I can successfully output some code to the style file as well as documentation for that code in a pdf. However, I'd like the pdf to _not_ contain the actual implementation - at least not in the same place as where I describe my macros. However, I still want to keep documentation and implementation together in the `.dtx` file. After reading the The doc and shortvrb packages (pdf, link from Google search) I've tried adding `\OnlyDescription` to both the preamble and the document of the driver part of the `.dtx`, but it didn't make any difference (that I could observe in my pdf, anyway). I'd be perfectly fine with (almost prefer) delaying the output of the verbatim package implementation to the very end of the documentation, if that's possible. However, it is not a requirement - I mainly want to ensure that the code is not intermingled with the documenation text in the pdf. ## Example I have the following few lines in my `.dtx` file (ignore the text - it's in Swedish, anyway...)               %\section{Paket som används}     %\textsf{fstil} använder sig av funktionalitet från följande paket:     %\begin{description}     %\item[\textsf{fontenc}, med option \textsf{T1}] Använder den modernare teckenkodningen T1, vilken t.ex. underlättar för specialtecken som åäö.     %    \begin{macrocode}     \RequirePackage[T1]{fontenc}     %    \end{macrocode}     %\end{description}      In my pdf, this outputs as > ### Paket som används} > > **fstil** använder sig av funktionalitet från följande paket: > >      **fontenc, med option T1** Använder den modernare teckenkodningen T1, > vilken t.ex. underlättar för   >      specialtecken som åäö.   >      `1 \RequirePackage[T1]{fontenc}` I'd like to either move the last line, with the verbatim code, to the end of the document, or remove it completely.


title: How to add a png icon on the right side of a tcolorbox title?

text: I'm writing a programming book for novices and I'm making some text boxes to focus attention on them, like "Tips", "Warning", "Focus on" and so on. For now I'm using tcolorbox and I'm very happy with it, but I would like to add some small icons on the right (or left) side of the title bar. Another option could be to remove the title bar and add a side bar with the icon. In the manual of tcolorbox I have found several examples, but none of them show how to load images and add on the title bar. Any help would be wery appreciated. [EDIT] Here is a minimal example of my code:               \documentclass[10pt]{book}     \usepackage[english]{babel}     \usepackage{lipsum}     \usepackage[breakable]{tcolorbox}          % ----------------------------------------------------------------     \begin{document}          \begin{tcolorbox}[breakable,arc=0mm,colback=gray!5,colframe=gray,title=Warning!]%     \lipsum[1]     \end{tcolorbox}          \end{document}     % ----------------------------------------------------------------      The code rendered: ![enter image description here](http://i.stack.imgur.com/GYd4s.png) I would like something like: ![enter image description here](http://i.stack.imgur.com/opEbd.png) or even: ![enter image description here](http://i.stack.imgur.com/apX5F.png) Another option could be               \documentclass[10pt]{book}     \usepackage[english]{babel}     \usepackage{lipsum}     \usepackage[breakable]{tcolorbox}          % ----------------------------------------------------------------     \begin{document}          \begin{tcolorbox}[breakable,arc=0mm,colback=gray!5,colframe=gray,leftrule=12mm]%     \lipsum[1]     \end{tcolorbox}          \end{document}     % ----------------------------------------------------------------      Rendering: ![enter image description here](http://i.stack.imgur.com/54G1Q.png) And the mokup: ![enter image description here](http://i.stack.imgur.com/IH6Sw.png) That's all :)


title: Squeezing/shrinking text horizontally

text: How can I 'squeeze' or 'shrink' some text horizontally? I've heard of the `microtype` package but I'm not familiar with its options. I tried playing around with it but I could only get it to shrink the text if it was just about to overflow the line. Is there a way to force-shrink a selected portion of the text? Example - I have the following document and I want to be able to shrink/squeeze all or some porition of the text:               \documentclass[10pt]{article}     \begin{document}     This is a long line of text. This is a long line of text. This is a     long line of text. This is a long line of text. This is a long line     of text. This is a long line of text. This is a long line of text.      This is a long line of text.     \end{document}


title: latex3 complaining about Undefined control sequence. But it is defined!

text: I've tried pairing this down, but each time I do that I'm either correcting my mistake or something. So here's a slightly unwieldy MWE. In a nutshell, what I'm trying to do is.... I'm writing a quiz that has multiple version. I've got some clunky LaTeX code that already handles versioning, but I decided I could probably get cleaner looking document code if I tried writing something using LaTeX3. Each quiz has a version attached to it. I'm writing a `\choice` macro that's given a `;` separated list of possible output which will change based upon the version of the quiz. For example if I write `\choice{x;y;z;w}` then on version A of the quiz `\choice` will provide `x`, on version B of the quiz `\choice` will provide `y`, etc. I'm not anywhere near getting this up and running. I'm actually not interested in someone telling me how to achieve my ultimate goal: I think I'll learn a fair amount if I try it on my own. Also, I know I'm not following notational conventions quite correctly, but it's giving me a headache trying to balance notation (which I still find difficult to read) and mastering syntax (which I find slightly obscure, but beginning to get the hang of).               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     %-@-(1)---------------------------------------------------------------------     %% --- VERSIONING --- %%     %% store what the possible version are     \tl_new:N  \g__version_types     \tl_set:Nn \g__version_types { a;b;c;d }     \tl_show:N \g__version_types     %% make a sequence of the possible versions     \seq_new:N \g__all_possible_versions_seq     \seq_gset_split:Nnn \g__all_possible_versions_seq { ; } {\g__version_types}     \seq_show:N \g__all_possible_versions_seq     %% allow the user to define what the versions are     \NewDocumentCommand{\defineversions}{ O{;} m }{         \tl_set:Nn \g__version_types { #2 }         \seq_set_split:Nnn \g__all_possible_versions_seq { #1 } \g__version_types     }     %-@-(2)---------------------------------------------------------------------     %% --- GETTING/SETTING VERSIONS ---%%     \tl_new:N   \g__tl_current_doc_version           \cs_new:Npn \mv_set_version:n #1          {             \tl_set:Nn \g__tl_current_doc_version { #1 }         }          \cs_new:Npn \mv_get_version          {             \tl_use:N \g__tl_current_doc_version         }          \newcommand{\setversion}[1]{\mv_set_version:n {#1}}     \newcommand{\getversion}{ \mv_get_version }          \cs_new:Npn \mv_test_version:n #1 {         \str_if_eq:VnTF \g__tl_current_doc_version { #1 } { HELLO } { BYE}     }     \newcommand{\testversion}[1]{\mv_test_version:n {#1}}          %-@-(3)---------------------------------------------------------------------     %% --- CREATING THE USER INTERFACE --- %%     %% I'm going to destructive examine the sequence, so make      %% a copy of it and work with copy     \seq_new:N     \g__copy_all_possible_versions_seq     \seq_set_eq:NN \g__copy_all_possible_versions_seq \g__all_possible_versions_seq     \tl_new:N      \g__current_possible_version_tl     %% Information that the user passes to us     \seq_new:N \g__user_defined_choice_seq     \tl_new:N  \g__current_possible_choice_tl          %% This "cs" assumes that the user choices have been translated     %% into a sequence     \cs_new:Npn \__test_current_choice_against_version:n #1 {          \seq_pop_left:NN \g__user_defined_choice_seq                                  \g__current_possible_choice_tl              \seq_pop_left:NN \g__copy_all_possible_versions_seq                           \g__current_possible_version_tl              \tl_use:N        \g__current_possible_choice_tl --         \tl_use:N        \g__current_possible_version_tl \par              \str_if_eq:VVTF  \g__current_possible_choice_tl                           \g__current_possible_version_tl                          { \tl_use:N \g__current_possible_choice_tl  }                          { #1 }     }          \cs_new:Npn \mv_make_choice:n #1 {         \__test_current_choice_against_version:n             { \__test_current_choice_against_version:n                  { \__test_current_choice_against_version:n                      { FAIL }}}     }          \NewDocumentCommand{\choices}{ O{;} m }{         \texttt{#2}\par         \seq_gset_split:Nnn \g__user_defined_choice_seq  {#1}  {#2}         \mv_make_choice:n {#1}     }          \ExplSyntaxOff     \begin{document}          Hello:  I'm setting the version \setversion{b}          I'm getting the version \textbf{\getversion}!          Choosing \choices{x;y;z;w}     \end{document}      I'm getting an error about an empty sequence. I've tried showing the sequence, and tokens used to create it, but nothing seems to be right.


title: Problem Making a Background with \psframe in a0poster

text: Have the following header for a poster               \documentclass[portrait,a0b,final]{a0poster}     \usepackage[utf8]{inputenc}     \usepackage{epsfig}     \usepackage{multicol}     \usepackage{pstricks,pst-grad}          \usepackage[english]{babel}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amsopn}     \usepackage{amsbsy}     \usepackage{color}     \usepackage{hyperref}     \hypersetup{             colorlinks={true},             filecolor={0.19,0.27,0.69},             urlcolor={blue},             linkcolor={red},             citecolor={black},             }                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \setlength{\columnsep}{1cm}%3     \setlength{\columnseprule}{2mm}     \setlength{\parindent}{0.0cm}     \addtolength{\textwidth}{2cm}     \addtolength{\textheight}{5cm}     \addtolength{\hoffset}{-1.25cm}     %\addtolength{\voffset}{-1.0cm}     \newcommand\email[1]{{\tt\href{mailto:#1}{#1}}}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%               Background                     %%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newcommand{\background}[3]{     \newrgbcolor{cgradbegin}{#1}     \newrgbcolor{cgradend}{#2}     \psframe[fillstyle=gradient,gradend=cgradend,     gradbegin=cgradbegin,gradmidpoint=#3](-3.,10)(1.2\textwidth,-1.1\textheight)     }                     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      %%%                Poster                        %%%      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newenvironment{poster}{     \begin{center}     \begin{minipage}[t]{1\textwidth}      }{      \end{minipage}        \end{center}      }                    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%                pcolumn                       %%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newenvironment{pcolumn}[1]{      \begin{minipage}[t]{#1\textwidth}      \begin{center}       }{       \end{center}       \end{minipage}      }                      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        %%%                pbox                          %%%        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newrgbcolor{lcolor}{0. 0. 0.80}     \newrgbcolor{gcolor1}{1. 1. 1.}     \newrgbcolor{gcolor2}{.80 .80 1.}          \newcommand{\pbox}[4]{     \psshadowbox[#3]{     \begin{minipage}[t][#2][t]{#1}     #4      \end{minipage}      }}                 \begin{document}           \background{0.3 0.4 0.7}{0.3 0.7 0.3}{0.3}     %{0.2 0.3 0.8}{0.1 0.6 0.2}{0.3} - 3     %{0.3 0.4 0.7}{0.3 0.7 0.3}{0.3} - 2     %{0.3 0.7 0.3}{0.3 0.7 0.9}{0.3} - 1     %{0.2 0.7 0.9}{0.3 0.7 0.3}{0.5}     %\vspace*{2cm}               \newrgbcolor{lightblue}{0. 0. 0.80}     \newrgbcolor{white}{1. 1. 1.}     \newrgbcolor{whiteblue}{.80 .80 1.}               \begin{poster}                    \begin{center}      \begin{pcolumn}{0.98}       \pbox{0.965\textwidth}{}{linewidth=2mm,framearc=0.3,linecolor=lightblue,        fillstyle=gradient,gradangle=0,gradbegin=white,gradend=whiteblue,        gradmidpoint=1.0,framesep=1em}       {          \begin{minipage}[c][9.5cm][c]{0.78\textwidth}          \begin{center}           {\sc \Huge Title}\\[3mm]           {\sc \Huge More Title }\\[4mm]           {\Large \textbf{Author}}\\[6.5mm]             \textit{$^1$ Filliation }\\[4mm]         \end{center}        \end{minipage}            }       \end{pcolumn}       \end{center}                    \begin{center}     \begin{pcolumn}{0.32}        \pbox{0.9\textwidth}{40.25cm}                                                     {linewidth=2mm,framearc=0.1,linecolor=lightblue,       fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,       gradmidpoint=1.0,framesep=1em}     {            \begin{center}         \pbox{0.8\textwidth}    {}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,           linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,           gradend=whiteblue,gradmidpoint=1.0,framesep=1em}         {           \begin{center}             \bf{Motivation}           \end{center}         }       \end{center}       \vspace{1.25cm}       %        Text here. Use Maldacena conjecture \cite{Maldacena98}.       %             %        blabla       %      }          \vspace*{1cm}          \pbox{0.9\textwidth}{53.75cm}      {linewidth=2mm,framearc=0.1,linecolor=lightblue,          fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0,       framesep=1em}     {                        % \vspace{2cm}         \begin{center}           \pbox{0.8   \textwidth}                                                               {}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,           linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,           gradend=whiteblue,gradmidpoint=1.0,framesep=1em}         {           \begin{center}             \bf{The Model}           \end{center}         }       \end{center}       \vspace{1.25cm}            equation       %        \begin{equation}         \label{Intro:N=4metric}         a = b       \end{equation}       %        The relations between the parameters are illustrated below.       %             %        }       \end{pcolumn}           \begin{pcolumn}{0.32}          \pbox{0.9\textwidth}{48.25cm}{linewidth=2mm,framearc=0.1,linecolor=lightblue,     fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,     gradmidpoint=1.0,framesep=1em}       {          % \vspace{2cm}          \begin{center}\pbox{0.8\textwidth}{}{shadow=true,shadowsize=1mm,linewidth=2mm,         framearc=0.5,linecolor=lightblue,fillstyle=gradient,gradangle=0,          gradbegin=white,gradend=whiteblue,gradmidpoint=1.0,framesep=1em}       {\begin{center}           \bf{Distance Function and String Configuration}         \end{center}       }       \end{center}       \vspace{1.25cm}            }          \vspace*{1cm}                \pbox{0.9\textwidth}{45.75cm}{linewidth=2mm,framearc=0.1,linecolor=lightblue,      fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0,     framesep=1em}         {          % \vspace{2cm}        \begin{center}\pbox{0.8\textwidth}   {}{shadow=true,shadowsize=1mm,linewidth=2mm,         framearc=0.5,linecolor=lightblue,fillstyle=gradient,gradangle=0,         gradbegin=white,gradend=whiteblue,gradmidpoint=1.0,framesep=1em}       {\begin{center}\bf{Screening Distance}\end{center}}\end{center}                \vspace{1.25cm}                 }              \end{pcolumn}            \begin{pcolumn}{0.32}                  \pbox{0.9\textwidth}{51.25cm}  {linewidth=2mm,framearc=0.1,linecolor=lightblue,       fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0,     framesep=1em}          {       \begin{center}        \pbox{0.8\textwidth}  {}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,         linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,           gradend=whiteblue,gradmidpoint=1.0,framesep=1em}         {           \begin{center}            \bf{Phase Structure of the Model}          \end{center}        }       \end{center}       \vspace{1.25cm}             yet more text        }                   \vspace*{1cm}                  \pbox{0.9\textwidth}{17.5cm}  {linewidth=2mm,framearc=0.1,linecolor=lightblue,       fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0,     framesep=1em}         {           % \vspace{2cm}        \begin{center}         \pbox{0.8\textwidth}   {}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,         linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,         gradend=whiteblue,gradmidpoint=1.0,framesep=1em}        {         \begin{center}           \bf{Outlook}         \end{center}        }        \end{center}        \vspace{1.25cm}              Do stuff in the future:             \begin{itemize}       \item Do stuff       \item Do even more exciting stuff        \end{itemize}      %      %      }                \vspace*{1cm}     %       \pbox{0.9\textwidth}{22cm}{linewidth=2mm,framearc=0.1,linecolor=lightblue,         fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0,     framesep=1em}      {                      \begin{center}       \pbox{0.8\textwidth}{}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,         linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,         gradend=whiteblue,gradmidpoint=1.0,framesep=1em}       {         \begin{center}           \bf{References}         \end{center}       }     \end{center}     \vspace{-1.75cm}            \renewcommand{\refname}{}        \renewcommand{\refname}{\begin{center}\pbox{0.73\textwidth}{}{shadow=true,shadowsize=1mm,linewidth=2mm,framearc=0.5,linecolor=lightblue,fillstyle=gradient,gradangle=0,gradbegin=white,gradend=whiteblue,gradmidpoint=1.0,framesep=1em}{\begin{center}\normalsize{\bf References}\end{center}}\end{center}}          \begin{thebibliography}{99}        % \pagestyle{empty}                \bibitem {Maldacena98}      J.~M.~Maldacena, Adv.\ Theor.\ Math.\ Phys.\  {\bf 2} (1998) 231,    Int.\    J.\ Theor.\ Phys.\  {\bf 38} (1999) 1113 [arXiv:hep-th/9711200]             \end{thebibliography}           }     \end{pcolumn}     \end{center}     \end{poster}     \end{document}      The idea is to make a background for the poster that fill all of it. But I have the following result ![enter image description here](http://i.stack.imgur.com/3Nv5t.png) Even you can't see (by the background of the page), there is a white space (an horizontal space in whole the page). I tried to change with the posistion of \psframe but it doesn't work. I want to have all the background filled. I appreciate your help


title: xtabular* does not work on two columns

text: I'm trying to split a table in several pages, for doing this I'm using the `xtab` package and `xtabular`. However, the behavior of the `xtabular*` environment (that supposedly should break the two column format and be only one column) is quite odd, _because it is not working_ (as this other question also shows). It is wrapping around the two columns, instead of creating a single column. And, as you can see in the example below, if the text is wider than the column width it get over the content of the next column. I would like the behavior of splitting the tables of the `xtabular` in single column document, in the two column document using `xtabular*`. Can you point me in the right direction? Or another package that will accomplish the same result?               \documentclass[twocolumn]{article}     \usepackage{xtab}          \begin{document}          \begin{xtabular*}{\textwidth}{@{\extracolsep{\fill}}|*{5}{p{1.2cm}|}}     \hline     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     \end{xtabular*}          \end{document}      **Edit (Partial Solution)** So, I've been trying to solve this, and I try using `figure` or other float environment (like `table*`) to make it work. The closest I get was using `table*`. However, as you may know, by putting it into a one big float the table isn't split into many tables. So, I thought to try to redefine an `xtabular*` that is wrapped around a `table*`. So I make this attempt:               \documentclass[twocolumn]{article}     \usepackage{xtab}     \usepackage{lipsum}          \makeatletter     \newif\ifST@tb     \@namedef{tbxtabular*}#1{%       \@ifnextchar[{\@nameuse{@tbsupertabular*}{#1}}%                    {\@nameuse{@tbsupertabular*}{#1}[]}%]     }          \@namedef{@tbsupertabular*}#1[#2]#3{%       \ST@trace\tw@{Starting a new tbxtabular*}%       \def\ST@tableformat{#3}%       \ST@wd=#1\relax       \global\ST@startrue       \global\ST@tbtrue       \ST@rightskip \rightskip       \ST@leftskip \leftskip       \ST@parfillskip \parfillskip       \x@supertabular       \csname table*\endcsname[t]       \noindent\expandafter\csname org@tabular*\expandafter\endcsname       \expandafter{\expandafter\ST@wd\expandafter}%       \expandafter{\ST@tableformat}%       \@@tablehead}          \def\endtbxtabular{%       \ifx\@table@last@tail\undefined         \@tabletail       \else         \@table@last@tail       \fi       \csname endtabular\ifST@star*\fi\endcsname       \csname endtable*\endcsname       \x@endsupertabular       \ST@trace\tw@{Ended an tbxtabular\ifST@star*\fi}}       \expandafter\let\csname endtbxtabular*\endcsname\endtbxtabular     \def\ST@newpage{%       \noalign{\ST@trace\tw@{Starting new page, writing tail}}%       \@tabletail       \ifST@star         \csname endtabular*\endcsname       \else         \endtabular       \fi       \ifST@mp         \endminipage       \fi       \ifST@tb         \csname endtable*\endcsname       \fi       \global\let\ST@skippage\ST@newpage       \newpage\PWSTcalnextpageht       \ST@trace\tw@{writing head}%       \PWSTsethead       \ifST@mp         \noindent\minipage{\columnwidth}%         \parfillskip\ST@parfillskip         \rightskip \ST@rightskip         \leftskip \ST@leftskip       \fi       \ifST@tb         \noindent\csname table*\endcsname[t]       \fi       \noindent       \ifST@star         \expandafter\csname org@tabular*\expandafter\endcsname         \expandafter{\expandafter\ST@wd\expandafter}%         \expandafter{\ST@tableformat}%       \else         \expandafter\org@tabular\expandafter{\ST@tableformat}%       \fi}          \makeatother               \begin{document}     \lipsum[1-5]               \tablefirsthead{\hline \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E}\\}     \tablehead{\hline \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E}\\}     \tabletail{\hline}     \begin{tbxtabular*}{\textwidth}{@{\extracolsep{\fill}}|*{5}{p{1.2cm}|}}     \hline     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     a & b & c & d & e \\     \end{tbxtabular*}               \lipsum[1-5]     \end{document}      I changed the `mpxtabular*`, and create a `tbxtabular*` version of it, that is mainly the `xtabular*` with a `table*` around it. I don't know if this is the best approach or I'm just wasting my time. But, at least the tables now are converted into one column and are placed nicely in different pages and not over the text. However, the tables are not split correctly (c.f. pages 4 and 5). ![Error pages](http://i.stack.imgur.com/0vvas.png)