title: fancyhdr: Section number, Section, colon and subsection in header

text: I am a bit confused with the `fancyhdr` options. I currently have this style for my headers: MWE:               \documentclass[12pt,oneside]{book}%use oneside to ensure no blanks\     \usepackage[text={5.45in,8.5in}, left=1.5in, right=1.25in, top=1.25in, bottom=1.25in, headheight=15.91pt, centering]{geometry}     \usepackage[table,hyperref]{xcolor}     \usepackage{setspace, fancyhdr, amsmath, amssymb,amsthm, graphicx, color, lscape, longtable, booktabs, caption, wrapfig, hyperref, pdfpages, capt-of, microtype, lmodern, titlesec, tikz, lipsum}               % Ensures we put the section name/number on the left side and page number on right          \fancyhf{}                % clear all header and footer fields     \pagestyle{fancy}           %define page style     \pagenumbering{roman}       %page numbering style: before main text     \fancyhead[L]{\nouppercase{\rightmark}}     \fancyhead[R]{\thepage}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \addtolength{\headheight}{0.5pt} % make space for the rule     \fancypagestyle{plain}{%     \fancyhead{} % get rid of headers on plain pages     \fancyhead[R]{\thepage}     \renewcommand{\headrulewidth}{0pt} % and the line     }     \doublespacing          \newpage     \pagenumbering{arabic}     \renewcommand{\headrulewidth}{0.5pt}               \begin{document}          \chapter{Some chapter}     \section{Section I}     \lipsum[1-1]     \subsection{Subsection}     \lipsum[1-2]     \section{Section II}     \lipsum[1-2]     \subsection{Subsection One}     \lipsum[1-2]     \subsection{Subsection Two}     \lipsum[1-2]     \end{document}     \section{Section III}     \lipsum[1-2]     \subsection{Subsection for this section}     \lipsum[1-2]     \subsection{Another subsection}     \lipsum[1-2]      The current header looks like this: ## 1.1 Section I This is fine for most of my sections. However for some sections, say section II in the above MWE, I would like the header to read like so: ## 1.2 Section II: Subsection Two I would then like the header to switch back to the current style in the next section (Section III): ## 1.3 Section III I read several posts here on fancyhdr and the section on fancyhdr in wikibooks but I am having some trouble getting it to work, especially with the colon in between. Any help would be awesome! PS: If this is a duplicate question, could you please point me to the relevant question?


title: How can I solve this quotation problem with interlinear glosses in gb4e?

text: Observe how after the interlinear gloss I have to insert [''] -- otherwise, the quote continues (and in textmate4 the rest of the text is colored accordingly). Is there some way to resolve this without putting the [''] at the end?               \documentclass[11pt,a4paper]{book}     \setcounter{secnumdepth}{4}     \usepackage{graphicx}     \usepackage{gb4e}     \usepackage{tipa}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \usepackage{multirow}     \setcounter{part}{-1}     \setcounter{subsection}{0}     \begin{document}          \begin{exe}     \ex {\glll ``Um ch'aqitumpiw     \\     \{u-m(a)    ch'aq(u)-itu-mpi-w(a)    \\     that-\textsc{cp}    brain-\textsc{dm.masc-com-decl} \\}          \sn{\glll zanq't'ast''  qow ``[sumitr]_{pp}''. \\       zanq'(a)-t'a-s(i)-t       q(e)-o-w(a)     \emph{sumit}-r(i)\}\\       eat-\textsc{m-refl-1sim}  say-\textsc{3sim-decl}  summit-\textsc{all}\\     \glt `{}``Thus with a bit of brains, I ate'', he said, ``[on the summit]_{pp}.''' [FBV5.52A]}     \end{exe}          ''     \end{document}


title: Generating lists of custom environment.

text: I've created my own environment `example`, similar to `theorem`. Now I want to generate a list of examples, similar to list of tables or list of figures. How can I achieve this?


title: Mirroring a TeX Live Installation Onto Another System

text: I have installed TeX Live 2010 on my PC and laptop. Both systems are running Windows XP SP3, and TeX Live is installed in C:\texlive in both systems. Recently, I ran TeX Live Manager on my PC, and issued an "Update all installed" command. Over 700 packages were updated (as well as the "core" of TeX Live). The update process took a long time, and a high bandwidth (I presume). I'm curious whether I can copy C:\texlive from my PC to my laptop, so as I don't have to undergo the same update process on the laptop. Moreover, I'd like to know whether this can be done on a system on which no TeX Live is installed.


title: Where to find the gnuplot lua-tikz-terminal?

text: Where can I still download the `gnuplot` tikz terminal? I keep winding up at broken links... Or is there another alternative that makes `gnuplot` output tikz drawings? Oh, and will I be able to get it working on mac os X?


title: Aligning TikZ trees with other nodes

text: I would like to align a TikZ tree with another node by considering the tree as a whole like as if it was a node with anchors. For the moment I am only able to align the root node of the tree, not the whole tree itself. I use PGF 2.10. The following picture shows what I have: ![what I have](http://i.stack.imgur.com/2hava.png) What I want is that the left node and the tree are horizontally aligned and the arrow goes from the east anchor of the left node to the west anchor of the tree, i.e. more or less the left child of the root node as shown here: ![what I want](http://i.stack.imgur.com/pwO4V.png) Please ignore the outer border on both images. Do you know a way to achieve this? My test code is given below. I compile it with `xelatex`.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,calc,positioning,trees}     \usepackage[graphics,tightpage,active]{preview}     \PreviewEnvironment{tikzpicture}     \newlength{\imagewidth}     \newlength{\imagescale}          \begin{document}         \begin{tikzpicture}[         ->, >=stealth', shorten >=1pt, semithick, node distance=1cm, level distance=7mm, level/.style={sibling distance=10mm/#1},         block/.style = {draw, rectangle, rounded corners, minimum height=1cm},         every node/.style={circle, draw, fill=none, anchor=north}     ]          \node [block] (SOURCE DOCUMENT) {\parbox{2cm}{\centering source document}};          \node (SOURCE TREE)[right=of SOURCE DOCUMENT] {}         child { node {} }         child { node {}              child { node {} }             child { node {} }         };          \draw [->] (SOURCE DOCUMENT) edge (SOURCE TREE);     \end{tikzpicture}        \end{document}


title: The "Gold standard" in BibTeX databases

text: I've developed a simple BibTeX parser. I want to test whether it can handle all possible nuances that can occur in BibTeX databases. Is there a standard `.bib` file against which I can check my parser, so that I can be assured of its parsing capabilities? I've already tried some `.bib` files off the Internet and they are being processed correctly.


title: Friggeri resume - Very different rendering in different readers

text: I wrote my CV using the Friggeri resume template, but I just noticed a problem: the document it's rendered very differently between Acrobat Reader and FoxIt PDF Reader and Document Viewer: ![The document as displayed on FoxIt and Document Viewer](http://i.stack.imgur.com/iTh0d.png) ![The document as displayed on Adobe Acrobat](http://i.stack.imgur.com/pGdI6.png) I used xelatex and the icons are symbols from FontAwesome, following this tutorial: https://coderwall.com/p/r67dyq where I defined a new fontawesome.sty. Also I changed the in the friggeri-cv.cls the colorcounter function to get only the first letter coloured:               \newcounter{colorCounter}     \def\@sectioncolor#1{%       {%         \color{%           \ifcase\value{colorCounter}%             blue\or%             red\or%             orange\or%             green\or%             purple\or%             brown\else%             headercolor\fi%         } #1%       }%       \stepcounter{colorCounter}%     }      I call the icons on the sections as: `\section{{\FA \faStar} Expertise}` **Here is my code of the resume, reduced at the essential:**                   \documentclass[]{friggeri-cv}          % \documentclass{article}         \usepackage{unicode-math}         \usepackage{fontawesome}              \definecolor{light-gray}{gray}{0.55}         \definecolor{skype}{HTML}{12A5F4}         \definecolor{html5}{HTML}{e34c26}         \definecolor{php}{HTML}{6c7eb7}         \definecolor{db}{HTML}{FF9900}         \definecolor{linkedin}{HTML}{1683BB}                   \setmathfont{STIXGeneral}         % \addbibresource{bibliography.bib} % Specify the bibliography file to include publications              \begin{document}         \newfontfamily{\FA}{FontAwesome}         \header{Kiker}{Surname}{Front End Web Developer} % Your name and current job title/field              %----------------------------------------------------------------------------------------         %   SIDEBAR SECTION         %----------------------------------------------------------------------------------------              \begin{aside} % In the aside, each new line forces a line break         \section{contact}         {\color{light-gray}{\FA \faHome}}         {\color{skype}{\FA \faSkype}} \href{skype:myskype.myskype?call}{myskype.myskype}         {\color{light-gray}{\FA \faEnvelope}} \href{mailto:myemail@gmail.com}{myemail@gmail.com}         ~         {\color{html5}{\FA \faFire}} \href{http://www.mywebsite.de}{Portfolio}         {\color{gray}{\FA \faPencil}} \href{http://www.myblog.net}{My Blog}         {\color{linkedin}{\FA \faLinkedin}} \href{http://au.linkedin.com/pub/}{LinkedIn}         {\color{gray}{\FA \faGithubSign}} \href{https://github.com/}{GitHub}         \section{programming}         \small{{\color{red} \FA \faHeart} JavaScript, jQuery,         {\color{html5}\FA \faHtml5} HTML5, CSS3,         {\color{php}\FA \faCode} PHP, Groovy/Grails,         {\color{gray}\FA \faLinux} Linux, LEMP, NGINX,         {\color{db}\FA \faTh} MySQL, Amazon AWS}          \section{languages}          \emph{proficient} English          \emph{mother tongue} Italian          \emph{notions} Spanish \& French         \end{aside}              \section{{\FA \faUser} About me}              \section{{\FA \faStar} Expertise}              \textbf{Professional Capabilities}         \begin{itemize}             \item{High-quality front-end development for web sites and applications}             \item{Modular, DRY, robust and reusable code}             \item{Performance optimization, progressive enhancement, usability}             \item{SEO with semantic HTML, Micro Formats and schema.org structures}             \item{Site planning}             \item{User interface design}         \end{itemize}              \textbf{Technical Skills}         \begin{itemize}             \item{Scalable HTML and CSS}             \item{JavaScript Development (includes advanced jQuery and plugins development, HTML5 API, vanilla JavaScript)}             \item{Responsive Web Design}             \item{Mobile development (in browser)}             \item{Experience with Linux environments.}             \item{Working knowledge of PHP, using: CodeIgniter, ExpressionEngine, WordPress}             \item{Experience with Groovy/Grails}             \item{Working experience with software versioning, in particular Git and Mercurial}             \item{CSS Preprocessor (SASS, SCSS and LESS)}         \end{itemize}              \clearpage         \section{{\FA \faSuitCase} Experience}              \section{{\FA \faBook} Education}              \begin{entrylist}              \entry         {2004--2010}         {Degree in {\normalfont Computer Science and Automation Engineering}}         {Polytechnic Marche University, Italy}         {  }              \end{entrylist}                   \section{{\FA \faQuote} Recommandations}                   \end{document}      ** This is how the fontawesome.sty looks like:** _I have the fontawesome font installed on my system_               \def\faUserMd{\symbol{"F200}}          \def\faLinux{\symbol{"F17C}}     \def\faHtml5{\symbol{"F13B}}     \def\faCode{\symbol{"F121}}     \def\faQuote{\symbol{"F10D}}     \def\faSuitCase{\symbol{"F0F2}}


title: Why is mdframed inserting a blank page?

text: I'm using the awesome mdframed by Marco Daniel and I'm having some problems with pagination. Sometimes it will insert a blank page, depending on the exact height of the content. Here's the smallest MWE where I've been able to reproduce it:               \documentclass[10pt]{article}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{lipsum}     \usepackage{setspace}          \begin{document}     \setstretch{1.5}     \lipsum[1]     \pagebreak     \begin{mdframed}[       hidealllines=true,       needspace=0pt,     ]     \lipsum[2]     \lipsum[4]     \vspace{42.0pt}     % Tweak this number to the biggest value before "fill3 last line"     % moves to the next page.  At some point page 2 will end up blank.     % On my system, values 41.9 through 42.2 are bad.     % On writelatex.com, 51.9 through 52.2 are bad.     \lipsum[3]     fill1 \par     fill2 \par     fill3 last line \par     fill4 \par     fill5 \par     fill6 \par          \end{mdframed}     \end{document}      It's a bit sensitive, so it might be hard to reproduce. Basically I tweak the `\vspace{42.0pt}` as large as possible before "fill3 last line" moves to the following page, and then a blank page gets inserted before the `mdframed` environment. I've reproduced it at writelatex.com here, with value `52.0pt`. Any ideas why the blank page is showing up?


title: Citing the name of the collaboration/first author only with bibtex

text: I want to cite a collaboration using the `natbib` package. `bibliography.bib` is something like:               @article{entry_name,         author={{CollaborationName} and {Author1} and {Author2}},         year=2013     }      `\cite{entry_name}` gives CollaborationName et al. (2013). How can I get CollaborationName (2013)?


title: Apalike-letters and non-English (Polish) characters (alphabibitem)

text: I'm using apalike-letters bibliography style which inserts heading for each first letter of authors' names. It works well for English letters but when a name starts with Polish letter it starts to get crazy. Consider following example: ![Bibliography with Polish letters](http://i.stack.imgur.com/KWMQn.png) Note that the order of the items is correct ( _Ł_ should be after _L_ and _Ś_ should be after _S_ ) but first letters of _Łuszczewski_ and _Śpiewak_ are replaced with their second letters. I think that it is caused by `purify` function which strips non-alphanumeric characters from string (and _Ł_ and _Ś_ are not treated as alphanumeric) but I don't know how to change this. All I managed to do is to change _Ł_ to `\L` but then _Łuszczewski_ was inserted in _L_ section which is not correct. Any ideas how to change this? You can find the whole project (with the style file in it) at http://piec.info/apalike-letters_test2.zip [76 KB].


title: Set label name on two lines in CircuiTikZ

text: I'm a very beginner in using circuitikz in my tex documents. I'd like to obtain a label that shows both the part name and the component value. Looking in this forum I found this solution:               \documentclass{article}     \usepackage[siunitx]{circuitikz}     \begin{document}     \begin{circuitikz}     \draw (0,0) to  [R, l_={\parbox{1cm}{\centering R$_1$\\\SI{510}{\ohm}}}] (2,0);     \end{circuitikz}     \end{document}      The output is good but I'm not very satisfied by the code. Is there any simpler/easier solution?


title: Font shape undefined despite using either or both of fix-cm and lmodern

text: My document begins:               \RequirePackage{fix-cm}     \RequirePackage[l2tabu, orthodox]{nag}     \documentclass[oneside]{memoir}  % TODO 12pt      Nevertheless, I get errors:               LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <10> not available      (Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 139.      How do I fix these? Looking closely at the document, these are caused by something in the itemize environment (the bullet symbol?), the copyright symbol, and something in my bibliography.


![enter image description here](http://i.stack.imgur.com/SaWSI.png) How to add a new command to invoke ImageMagick in TeXMaker?


title: How can I do a pseudocode in a powerdot presentation?

text: I'm trying to write a pseudocode in a powerdot presentation. I used the commands `\usepackage{algorithm}` and `\usepackage{algorithmic}`, but they didn't work. Which package or what can I do to write a pseudocode in a powerdot presentation?


title: If can set caption for images in this table?

text: If can set caption for 3 image in cells of table in this command? What abut For one image?               \documentclass[11pt,fleqn]{book}     %\usepackage{amsmath,amsfonts,amssymb,amsthm}     \usepackage{graphicx}      \usepackage{capt-of}     \usepackage{caption}     \graphicspath{{./Pictures/}}     \begin{document}     \begin{tabular}{|c|c|c|}     \hline     pic1&pic2&pic3\\     \hline     \includegraphics[scale=.2]{first.pdf}     %\captionof{figure}{ 1}     &\includegraphics[scale=.2]{second.pdf}     %\captionof{figure}{ 2}     &\includegraphics[scale=.2]{third.pdf}\\     \hline     %\captionof{figure}{ 3}     \end{tabular}     \end{document}


title: How can add some latex eq or symbol in gnuplot?

text: Gnuplot is power for plotting graph in scientific progress. I have met this problem. I want to add some commands like `"$\ddot{x}$"`. or `$\tau$` on the legend. I see some people suggest that               plot [-5:5] [-1.5:1.5] sin(x+pi) title "$\\sin(x+\\pi)$"      But it seems it does not work.


title: How do I get a tight fit around a node when using tikz shapes.geometric?

text: I would like the two nodes below to be roughly the same size, but one is much larger than the other. Is there a way to force tikz to reconsider its bounding box calculation?               \documentclass[tikz]{standalone}     \usetikzlibrary{       positioning,       shapes.geometric     }     \begin{document}     \newcommand{\gpi}{\mathrm{GPi}}     \newcommand{\gpep}{\mathrm{GPe_{+}}}     \begin{tikzpicture}         \node[draw, inner sep=0pt, minimum size=9mm, shape=regular polygon, regular polygon sides=6] (gpi)  {$\gpi$};         \node[draw, inner sep=0pt, minimum size=9mm, shape=regular polygon, regular polygon sides=6] (gpep) [left=40mm of gpi] {$\gpep$};     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/VggKu.png)


title: How to use roman numerals for backup slides on beamer?

text: I'm making a LaTeX presentation using beamer, and I'd like to prepare some slides for possible questions I can be asked for. I find how to ignore slides numbering in this post, but I don't like the result, which is roughly the following: > Slide 1/n Slide 2/n...Slide n/n [from here questions slide] Slide (n+1)/n > Slide (n+2)/n What I would achieve is roughly the following: > Slide 1/n Slide 2/n...Slide n/n [from here questions slide] Slide I Slide II How can I achieve it?


title: Change \ttfamily font for entire document

text: I'd like to change the teletype (`\ttfamily`) font that I'm using in my document. (I'm using the `scrartcl` class.) I've searched on stackexchange and Google, but all I can find are answers to how to change the base font to teletype. How can I change just the teletype font for my document?


title: Why page break when inserting pictures?

text: If I insert an image, then it is shown at the next page. Why do Latex a page break? My code is:                1208. \\      \begin{figure}     \includegraphics[width=100mm]{Komplexa_talplanet.png}     \end{figure}\\     \\.


title: Custom axis line location for PGFplots table with tikzpicture

text: I am trying to change the `axis y line` location from 0 to 100 from these questions (1, 2). Say that the error bars represent confidence intervals on percentage scale, so 100% is no difference. Here is what I get, if I just change the values for `data.txt`: ![enter image description here](http://i.stack.imgur.com/Dk4os.png) As you see, the dashed line is at 0 and is drawn on the left side of the plot. Here is the code:               \documentclass{article}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{pgfplotstable}     \usepackage{filecontents}     \usepackage{xspace}     \usepackage{tabularx}     \usepackage{siunitx}          %% The data files     \begin{filecontents}{data.txt}     name  z p mean  lci uci     {\textbf{Variable A}} {}  {}  {}  {}  {}     Afear -0.96 0.33  98.2  89.3  107.5     Anofear 0.09  0.93  100.1 90.2  110.8     B+2 0.29  0.78  88.3  62.8  115.9     B+1 0.84  0.4 92.1  86.3  105.3     B1:1  2.19  0.03  50.2  40.6  60.8     B-1 1.02  0.31  89.2  75.2  101.2     B-2 -0.1  0.92  120.3 95.2  137.8     C+2 -1.11 0.27  110.5 89.2  130.5     C+1 1.15  0.25  105.8 78.6  115.6     \end{filecontents}          % Read data files, create new column ``upper CI boundary - mean''     \pgfplotstableread{data.txt}\data     \pgfplotstableset{create on use/error/.style={         create col/expr={\thisrow{uci}-\thisrow{mean}         }       }     }          % Define the command for the plot (I had to do this separately for each dataset)     \newcommand{\errplot}[1]{%     \begin{tikzpicture}[trim axis left,trim axis right]     \begin{axis}[y=-\baselineskip,       scale only axis,       width=6.5cm,       enlarge y limits={abs=0.5},       axis y line*=middle,       y axis line style=dashed,       ytick=\empty,       axis x line*=bottom]     %      % ``mean'' must be present in the datafile, ``error'' is the newly generated column     \addplot+[only marks][error bars/.cd,x dir=both, x explicit]     table [x=mean,y expr=\coordindex,x error=error]{#1};     \end{axis}     \end{tikzpicture}%     }          \begin{document}     % Get number of rows in datafile     \pgfplotstablegetrowsof{\data}     \let\numberofrows=\pgfplotsretval          \begin{table}     \caption{Table caption.}     % Print the table     \pgfplotstabletypeset[multicolumn names,     columns={name,mean,error,z,p},       % Booktabs rules       every head row/.style={before row=\toprule, after row=\midrule},       every last row/.style={after row=[1ex]},       % Set header name       columns/name/.style={string type,column name={}},         % Use the ``error'' column to call the \errplot command in a multirow cell in the first row, keep empty for all other rows       columns/error/.style={         column name={$\bar{x} \pm$ 95\% CI},         assign cell content/.code={% use \multirow for Z column:         \ifnum\pgfplotstablerow=1         \pgfkeyssetvalue{/pgfplots/table/@cell content}         {\multirow{\numberofrows}{6.5cm}{\errplot{\data}}}%         \else         \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%         \fi         }       },       % Format numbers and titles       columns/mean/.style={column name=$\bar{x}$, string type, column type={S[table-format=-2.2]}},       columns/z/.style={column name=$z$, string type, column type={S[table-format=-1.2]}},       columns/p/.style={column name=$p$, string type, column type={S[table-format=1.2]}},       ]{\data}     \end{table}     \end{document}      If I follow the solution in Jake's answer to this question, I get a following table: ![enter image description here](http://i.stack.imgur.com/EFD0L.png) So it seems that the empty row somehow confuses pgfplots. Yet, I would like to keep the empty row. I feel that I am very close to a solution, but cannot figure out how to do this. Could someone kindly help me? Here is the code for the second table:               \documentclass{article}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{pgfplotstable}     \usepackage{filecontents}     \usepackage{xspace}     \usepackage{tabularx}     \usepackage{siunitx}          %% The data files     \begin{filecontents}{data.txt}     name  z p mean  lci uci     {\textbf{Variable A}} {}  {}  {}  {}  {}     Afear -0.96 0.33  98.2  89.3  107.5     Anofear 0.09  0.93  100.1 90.2  110.8     B+2 0.29  0.78  88.3  62.8  115.9     B+1 0.84  0.4 92.1  86.3  105.3     B1:1  2.19  0.03  50.2  40.6  60.8     B-1 1.02  0.31  89.2  75.2  101.2     B-2 -0.1  0.92  120.3 95.2  137.8     C+2 -1.11 0.27  110.5 89.2  130.5     C+1 1.15  0.25  105.8 78.6  115.6     \end{filecontents}          % Read data files, create new column ``upper CI boundary - mean''     \pgfplotstableread{data.txt}\data     \pgfplotstableset{create on use/error/.style={         create col/expr={\thisrow{uci}-\thisrow{mean}         }       }     }          \pgfplotsset{         axis line origin/.style args={#1,#2}{             x filter/.code=\pgfmathparse{\pgfmathresult-#1},             y filter/.code=\pgfmathparse{\pgfmathresult-#2},             xticklabel=\pgfmathparse{\tick+#1}\pgfmathprintnumber{\pgfmathresult},             yticklabel=\pgfmathparse{\tick+#2}\pgfmathprintnumber{\pgfmathresult}         }     }          % Define the command for the plot (I had to do this separately for each dataset)     \newcommand{\errplot}[1]{%     \begin{tikzpicture}[trim axis left,trim axis right]     \begin{axis}[y=-\baselineskip,       scale only axis,       width=6.5cm,       enlarge y limits={abs=0.5},       axis y line*=middle,       axis line origin={100,0},       y axis line style=dashed,       ytick=\empty,       axis x line*=bottom]     %      % ``mean'' must be present in the datafile, ``error'' is the newly generated column     \addplot+[only marks][error bars/.cd,x dir=both, x explicit]     table [x=mean,y expr=\coordindex,x error=error]{#1};     \end{axis}     \end{tikzpicture}%     }          \begin{document}     % Get number of rows in datafile     \pgfplotstablegetrowsof{\data}     \let\numberofrows=\pgfplotsretval          \begin{table}     \caption{Table caption.}     % Print the table     \pgfplotstabletypeset[multicolumn names,     columns={name,mean,error,z,p},       % Booktabs rules       every head row/.style={before row=\toprule, after row=\midrule},       every last row/.style={after row=[1ex]},       % Set header name       columns/name/.style={string type,column name={}},         % Use the ``error'' column to call the \errplot command in a multirow cell in the first row, keep empty for all other rows       columns/error/.style={         column name={$\bar{x} \pm$ 95\% CI},         assign cell content/.code={% use \multirow for Z column:         \ifnum\pgfplotstablerow=1         \pgfkeyssetvalue{/pgfplots/table/@cell content}         {\multirow{\numberofrows}{6.5cm}{\errplot{\data}}}%         \else         \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%         \fi         }       },       % Format numbers and titles       columns/mean/.style={column name=$\bar{x}$, string type, column type={S[table-format=-2.2]}},       columns/z/.style={column name=$z$, string type, column type={S[table-format=-1.2]}},       columns/p/.style={column name=$p$, string type, column type={S[table-format=1.2]}},       ]{\data}     \end{table}     \end{document}


title: Align values in bmatrix

text: Is it possible to renew the `bmatrix` environment to have alignment? I would like the following vectors to show aligned:               \begin{bmatrix}      -0.505 & \\      -0.141 & \\      0.144 & \\      0.839 & \\     \end{bmatrix}


title: Multiple bibliography in Latex

text: I want to insert multiple bibliographyes into my document. I just want one for the whole document and one for each appendix. I tried different packages (`multibib`, `biblatex`,...) but cant seem to obtain a correct answer. Each of the bibliographyes are in a different .bib file. How can I approach the problem? PD: I am using Miktex and Texmaker


title: cleveref and appendix packages: appendix referenced as section

text: Using this example:               \documentclass{scrartcl}     \usepackage{lipsum}     \usepackage{appendix}     \usepackage{cleveref}          \begin{document}     \section{The first section}\label{sec:1}     \lipsum[2]          \section{The second section}     \cref{sec:1} tells us something, while \cref{app:1} tells us something else!          \begin{appendices}       \section{The first appendix}\label{app:1}       \lipsum[2]     \end{appendices}          \end{document}      The reference `\cref` to the appendix section unfortunately references it as “section A”, rather than “appendix A”. Is there any way to fix that? > section 1 tells us something, while section A tells us something else! One solution I found is this: Create an additional `\crefname` and use it as an optional argument to `\label`.


title: tabularx - How to linebreak in the tabularx environment?

text: How can I add a linebreak between two tabularx environments in a single section ?                   \documentclass[a4paper, 14pt, oneside]{article}         \usepackage{tabularx} % Nicer table style than the default         \begin{document}         \section{Research Experience}         \begin{tabularx}{1\linewidth}{>{\raggedright\scshape}p{3cm}X}         \textbf{HeadingLeft} & {\textbf{HEadingRight}}         \end{tabularx}         %%% HOW CAN I GIVE A LINEBREAK HERE ? %%%%%%%%%%%%%%         \begin{tabularx}{1\linewidth}{>{\raggedright\scshape}p{3cm}X}         \textbf{HeadingLeft} & {\textbf{HEadingRight}} \\         \end{tabularx}         \end{document}


title: Converting ConTeXt document to HTML

text: For LaTeX, I used to rely on htlatex, latex2html, or more rarely tth. I know that we can use XML with ConTeXt, although I have no experience with this, and that Pandoc let us use Markdown syntax and provides several output formats (including ConTeXt and (X)HTML), as well as templates facilities. However, does there exist a 'tex->html' converter for ConTeXt working out of the box, i.e. one that would accept a raw ConTeXt file (that can produce a PDF file) and transform it to HTML (single or multi-page)?


title: Is it a good practice if we always locally precede \href with \sloppy?

text: Is it a good practice if we always locally precede `\href` with `\sloppy` as follows?               if you are interested to know the details,      please contact me at {\sloppy     \href{mailto:asdfkoafdkfaldfkafsdfkdf@kdsoffkdlfasdfjaldf.xxx}     {asdfkoafdkfaldfkafsdfkdf@kdsoffkdlfasdfjaldf.xxx}}.


title: Why my printnomenclature not working?

text: This is my Script: In my class file i added the following entry:               \usepackage[intoc]{nomencl}      \renewcommand{\nomname}{\large \textbf{Mathematical Notation}}     \makenomenclature     \usepackage{datatool}          \begin{filecontents*}{test.csv}     Acronym,Description     LED,Light emitting diode     FET,Field effect transistor     \end{filecontents*}          \DTLloaddb{acronyms}{test.csv}          \DTLsort{Acronym}{acronyms}      In my acronym.tex file I had this entry:               \chapter*{Terminology / Notation}     \section*{\large \textbf{Acronyms / Abbreviations}}          \begin{itemize}          \DTLforeach*{acronyms}{\thisAcronym=Acronym,\thisDesc=Description}%       {\item \textbf{\thisAcronym} \thisDesc}%     \end{itemize}     \printnomenclature      In my Chapter1:               $\gamma = \int_1^\infty\left({1\over\lfloor x\rfloor}     -{1\over x}\right)\,dx$     \nomenclature{$\gamma$}{Euler–Mascheroni constant\nomrefpage}      In my Main tex file:               \begin{document}     \include{Acronyms/acronyms}     \end{document}      Actually, I am expecting the Acronym and Nomenclature should be under the same "Terminology/Notation" but should be printed in separate page. Because i don't want to use glossary stuff as its quite complicated to compile in windows under Texlipse..So i used datatool package where we can specify list of acronyms which can be saved to csv and written back to pdf*. Also i wanted to use nomenclature because of having equations in my report..If we use independently the nomenclature package its working fine..but when i use \printnomenclature in acrnonym.tex file nomenclature is not getting printed..Any helps?


title: MacOSX PDF viewer: Automatic reload on file modification

text: Is there a PDF viewer out there for MacOSX that support automatic reload of (in my case LaTex generated) PDFs when they're modified by another application?


title: Why won't my glossaries print?

text: I have a look around online and at other posts however I haven't been able to find a solution to this problem. Here is the code I'm using:               \documentclass[a4paper,final]{report}     \usepackage{epsfig}     \usepackage{url}     \usepackage[acronym,toc,nonumberlist]{glossaries}     \usepackage{algorithm, algorithmic}     \usepackage{amssymb,amsmath}     \usepackage[margin=3cm]{geometry}     \parindent 0pt               % Create the glossaries     \makeglossaries          % Create the list of Acronyms     \newacronym{LDN}{LDN}{London}     \newacronym{NYC}{NYC}{New York City}          \glsaddall               \begin{document}          \tableofcontents     \printglossaries          \end{document}      I then compile the document through TeXShop (on Mac) using the following Engine:               #!/bin/sh     bfname=$(dirname "$1")/"`basename "$1" .tex`"     pdflatex --shell-escape "$1"     makeindex -s "$bfname".ist -t "$bfname".glg -o "$bfname".gls "$bfname".glo     "$bfname".glo     pdflatex --shell-escape "$1"     pdflatex --shell-escape "$1"      However, it compiles the document and everything in it looks fine. The only exception being that the glossaries aren't displayed. Please can someone help me out?


title: Aligning columns in tabularx with multicolumn

text: I'm trying to set up a table to use in my CV, where by I list my qualifications and the date achieved (two separate columns), and under it the list of grades achieved. I want two separate sets of qualifications For now assume this is what the companies I'm applying to want, so don't worry about general CV content advice. This is what I'm trying to use:               \begin{tabularx}{0.9\linewidth}{X|r|X|r}     \textbf{GCSEs} & 2000\textendash 2005 & \textbf{A-Levels}   & 2005\textendash 2007 \\     \multicolumn{2}{p{0.45\linewidth}}{10 GCSES A*-C; including A*/A* for Science Double Award, A* for  Mathematics and A for English Language}     \multicolumn{2}{p{0.45\linewidth}}{Physics A, Chemistry B, Communication Studies B, Mathematics B.} \\          \end{tabularx}      But this is what it is producing: ![enter image description here](http://i.stack.imgur.com/Lrowi.png) And what I want is the section `GCSEs` and `2000-2005` aligned with the text below it (taking up ~50% of the table), and like-wise for `A-Levels` and `2005-2007`. In both cases I'd like the dates left aligned. Now I know there are many ways to skin a table in LaTeX, and I don't care how this gets fixed, I'd just like it fixed! Does anyone know of a way to sort this out?


title: Token for full path in Texmaker

text: I am configuring custom commands in Texmaker, I can use `%` as a token for the name of the file (minus the extension) but I cannot find an equivalent for the full path.


title: How to type a tall / symbol?

text: Say I want               \documentclass{article}     \begin{document}     \[cl(V, q) =\left (\sum_{r=0}^{\infty} \bigotimes^r V\right)/\{v\otimes v = -q(v,v)\}\]     \end{document}      ![enter image description here](http://i.stack.imgur.com/TmB21.png) How to make the "/" symbol longer to cover the height of the first expression?


title: How to smoothen an Asymptote plot

text: I tried to plot this function and export it as `.eps` file but the plot does not look smooth at all ![](http://i.imgur.com/Ejj2jLE.jpg) I'm absolute beginner at this tool, Is it a number of samples problem or what?


title: Packages for Typesetting Specific R Output

text: Anyone know of a package that translates R output into LaTeX code for the following types of commands?               exp(w1$coefficients)       exp(confint(w1))      My input/output with the `xtable` and `stargazer` R packages below:               > xtable(exp(winp.glm$coefficients))       Error in UseMethod("xtable") : no applicable method for 'xtable' applied to an object of class "c('double', 'numeric')"     > stargazer(exp(winp.glm$coefficients))       Error in objects[[i]]$zelig.call : $ operator is invalid for atomic vectors


title: Making a table centered in latex?

text: I'm trying the following code to make a table in latex, however the table is out of layout. Here's the code I'm trying:               \begin{table}     \caption{Table Title}     \begin{tabular}{|c|c|c|}     \hline     & $DOC \in P$  & $DOC \notin P$ \\ \hline     $T \in DOC$ & A & B \\ \hline     $T \notin DOC$ & C & D\\     \hline     \end{tabular}     \\[10pt]     \caption*{The caption without a number}     \end{table}      Here's the result: ![enter image description here](http://i.stack.imgur.com/GHxwO.png)


title: How can I format a book to this layout?

text: I want to format a document to the layout of the picture. ![enter image description here](http://i.stack.imgur.com/rvLFo.jpg) How can I format?


title: Placement of tokens in tikz/petri

text: Is there some easy trick to make `\node[place,tokens=3]{}` place 3 tokens in a row (and not in a triangle)?


title: Presentations best style

text: What is the best package/style to build a presentation? I use PDFSLID. Any better?


title: Page number in the margin and separator

text: I want to produce this kind of header. ![enter image description here](http://i.stack.imgur.com/xBOrR.png) My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold separator. Does anyone know if fancyhdr is capable of this kind of customization or should I look at titlesec – titleps packages?               \documentclass[a4paper, 12pt, twoside, openright, english]{book}     %     \usepackage{lipsum} % to produce dummy text     \usepackage[english]{babel}     %     \usepackage{fancyhdr}     \fancyhead{}     \fancyfoot{}     \pagestyle{fancy}     \renewcommand{\sectionmark}[1]{\markright{\sffamily \itshape \thesection\ #1}}     \renewcommand{\chaptermark}[1]{\markboth{\sffamily \itshape\thechapter\ #1}{}}     \fancyhf{}     \fancyhead[LE,RO]{\sffamily \bfseries \thepage}     \fancyhead[RE]{\footnotesize \leftmark}     \fancyhead[LO]{\footnotesize \rightmark}     \renewcommand{\headrulewidth}{0pt}     %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     \begin{document}     %     \chapter{Basic principles for multi camera systems}         \lipsum[3-15] % dummy text     \section{Introduction}         \lipsum[3-15] % dummy text     \subsection{Image processing}         \lipsum[3] % dummy text     %     \end{document}


title: Multicomn with just 2 lines

text: I desire make a template as IIIIIIIIIIIIIIIIIIIIII   line 1 I line a   line 2 I line b   IIIIIIIIIIIIIIIIIIIIII   Another text The I are just column localization. I found the multicol package but I have not had success using it.               \begin{multicols}{2}         \hline line 1 line a\\         \hline line 2 line b\\     \end{multicols}     Another text      How I put line a and b to right centralized?


title: I need a List environment with other indent and hang

text: I would like to make for formulas a listing, in which I can explain the meaning of the letters.   The following code shows how should it look like:               {\renewcommand{\arraystretch}{1.3}\tabcolsep0pt     \begin{tabularx}{\textwidth}{p{8mm} r p{4mm} X}     & ${{L_{{\text{10m}}}}}$ &&  die erweiterte Lebensdauer bei     90\% Erlebenswahrscheinlichkeit (in~Millionen Umdrehungen)   \\          & $L_\mathrm{10m1}$, $L_\mathrm{10m2}$, \dots &&  die anteilige erweiterte     Lebensdauer bei 90\% Erlebenswahrscheinlichkeit während der Betriebsbedingungen     \mbox{1, 2, \dots} (in~Millionen Umdrehungen) \\          & $U_1$, $U_2$, \ldots && Anteil am Gesamtlebenszyklus während der     Betriebsbedingungen \mbox{1, 2, \dots} (${U_1+U_2+ \ldots+U_n=1}$)      \end{tabularx}}       The characteristics of this contruct are the following:   1. there is an empty 8mm wide column at first. This is actually my mathindent (I use left aligned equations)    2. In the second column ist the formula in raggedright style    3. 4mm space, because `\tabcolsep` would set to zero. I set it, because I want the description text to run to the page border.    4. and at last the description My only problem with this tabular, that it is unbreakable...   A listing environment like                   \begin{mydescription}     \item[$the formula$]  The explnaiton lorem ipsum         \end{mydescription}      doesn't seem to be complex, but I don't have the knowledge to create it. So this is, where I need help (and it should work with memoir class (maybe it's important))


title: Beamer margins in bibliographies

text: In `beamer` I am using this code:               \begin{frame}[allowframebreaks]         \frametitle{REFERENCES}         \printbibliography     \end{frame}      to produce a bibliography that will span multiple slide pages (frames). All of this works well, except the left and right margins are way to the end of the frame. How can I bring those doggies back home?


title: Caption of a table in an array-environment

text: I used the array-environment to construct a table of data:               \documentclass[12pt,landscape]{article}          \usepackage{amsmath,amssymb}     \usepackage{array}     \usepackage{booktabs}% for top-,mid- & bottomrule          \begin{document}              $         \begin{array}{lcc}             \toprule                 &\text{1\textsuperscript{st} growth period} & \text{2\textsuperscript{nd} growth period} \\             \midrule                  \text{Estonia} & 1.28 & 1.72 \\                  \text{Slovenia} & 1.26 & 0.21 \\                  \text{Czech Republic} & 1.16 & 0.46 \\                  \text{...} & \text{...} & \text{...} \\                  \text{...} & \text{...} & \text{...} \\             \hline                  \text{Mean} & 0.69 & 0.53 \\                  \text{Lower-Quantile} & 0.37 & 0.21 \\                  \text{Upper-Quantile} & 0.99 & 0.80\\             \bottomrule         \end{array}         $      Now I would like to add a caption to my table. Has anyone an idea?


title: Using braces to label parts of an equation

text: Given an equation, say Bayes' rule,               $P(X \mid O) \propto P(X)P(O \mid X)$      how do I label the different parts of the equation using curly braces?


title: Open in a new window when using raw action

text: I'm wondering how to **open in a new window** an attached file when clicking on a bookmark. The code below links a bookmark to an attached file in the PDF file. But upon cliking it, the attached file is opened but also replaces the PDF that called it. What I'm trying to achieve is to open it in a new window. Code:               \documentclass{article}     \usepackage{embedfile}     \usepackage{hyperref}     \usepackage{hypgotoe}     \usepackage{bookmark}          \begin{document}     \section{Hello World}     \embedfile{t.pdf}          \bookmark[          rawaction={         /S /GoToE    % action type         /D [0 /FitB] % view: fit         /T <<           /R /C      % relation: child           /N (t.pdf) % name of embedded file         >>       },     ]{Open embedded file t.pdf}     \end{document}      Code for generating the t.pdf file:               \documentclass{article}     \usepackage{hyperref}     \begin{document}     \section{Embedded file}     \newpage     Page two of embedded file.     \end{document}


title: How to draw syntactical trees with parallel leafs for a natural language?

text: I need to draw syntactical trees for a natural language. The problem is that I need all the leafs to be parallel. How the other nodes are sorted in relation to the other at the same depth is not important. In practical use you would a sentence at the bottom of a paper, both sideways and horizontal would be nice. The root would be at the opposite side so the tree uses the entire page. Any suggestions of a package that can do this? Edit: Any tree package could possibly be used as long as it can use an entire page. I think.


I want to do the following arithmetic: `(x-y)*unit/s` where `x`, `y`, `s` are rational constants and `unit` is in length unit.               \documentclass{article}     \usepackage{calc}     \newlength\unit     \unit=16pt     \def\x{0.5}     \def\y{0.3}     \def\s{0.8}          \newlength\temp     \begin{document}     \temp=\unit/\real{\s}*(\real{\x}-\real{\y})\relax     \the\temp     \end{document}      What is the easiest way to write dimensional expression?


title: biblatex + verbose - urldate is getting ignored

text: I'm using `biblatex` with my own Bibstyle based on verbose Style.               \usepackage[bibstyle=mystyle,citestyle=mystyle,natbib=true]{biblatex}      Now I need the urldate shown in cite. But I can't find a way to do this. I tried               \printfield{urldate}      But nothing.               \DeclareFieldFormat{url}{\url{#1}}     \DeclareFieldFormat{formaturl}{\newline #1}     \DeclareFieldFormat{abrufurl}{\addcomma\space Abruf am #1}          \renewbibmacro*{url+urldate}{%          \printtext[formaturl]{%        \printfield{url}}%          \printtext[abrufurl]{%            \printfield{urldate}}%     }      Anyone could Help?


title: Tombstone symbol

text: I would like to change the predefined tombstone symbol to the first one on the website http://en.wikipedia.org/wiki/File:Halmos.png (the square in a black frame). ![enter image description here](http://i.stack.imgur.com/RkUtP.png) How can I do it, please?


title: How to vertically align multiple equations with text underset?

text: How do you vertically align equality signs when one of them has some text underset? My solution is:               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage[american]{babel}          \usepackage{amsmath}          \begin{document}     \begin{align*}       a &\underset{\text{explanation}}{=} b + c\\       d &\underset{\phantom{\text{explanation}}}{=} e + f + d     \end{align*}     \end{document}      However, that's not very elegant especially when several `\underset` are involved.


title: Tex2Word plugin for Microsoft Word

text: Is there any TeX to Word plugin to be added for free in Microsoft Word? The main reason behind this is that I want to use the easy to use grammar checker of Microsoft Word after writing my article in LyX/LaTeX. I know there are some grammar checker in LaTeX. But they list a long and non- important grammatical errors which takes a lot of time to change. Instead, Word shows it in a more user-friendly way.


title: Changing thinness and form of a vertical line in a table

text: I am trying to create a cover page, where in the middle of the page i use tabularx (tabular could have been just as well) to split the width of the page in to two parts. I would like to know how could i control the thinness of the line? I would like to make the line fading at the beginning and at the edges of the line if it is possible. I have no problem to use tikz or any other solution, just the picture will be at the left side and my text at other side. **EDIT** I hope it is now clearer what i wish to do (to create the line in the middle which fades at the ends) Example: ![Example](http://i.stack.imgur.com/0sgvi.png) Regards


title: Add label to bars in bar chart

text: I am trying to get labels over the bars in my bar chart. I found `\node [above] at (axis cs: 1, 810) {$Q1$};`, but this one centers itself in the middle between two bars. I want the value from the y-axis to be floating over the top of the bar (or maybe inside it) my MWE looks like this, its not very expressive without labels. any suggestions?                 \documentclass{article}     \usepackage{pgfplots}          \begin{document}     \begin{figure}     \centering     \begin{tikzpicture}         \begin{axis}[             ybar,             width  = 12cm,             height = 5cm,             bar width=20pt,             ylabel={number of participants},             symbolic x coords={High School, Bachelor degree, Master degree, Ph.D or similar},             xtick = data,         ]         \addplot[fill=blue] coordinates {(High School, 1) (Bachelor degree, 2) (Master degree, 3) (Ph.D or similar, 4)};          \addplot[fill=red] coordinates {(High School, 3) (Bachelor degree, 2) (Master degree, 8) (Ph.D or similar, 4)};           \legend{Native speaker, Non-native speaker}         \end{axis}     \end{tikzpicture}     \caption{Participants: Level of education}     \label{participantsLanguageOverviewNonNative}     \end{figure}     \end{document}


title: Adjusting booktitle in inproceedings in a makebst-file

text: I have used makebst to create my Harvard-bibliography. > Jiang, W., Koguchi, K. and Schulzrinne, H. (2003), ‘QoS evaluation of VoIP > end- points’, ‘IEEE International Conference on Communications, 2003. > ICC’03.’, pp. 1917–1921. The entry in the bib-file:               @inproceedings{jiang2003qosevaluation,     title = {{QoS} evaluation of {VoIP} end-points},     booktitle = {{IEEE} International Conference on Communications, 2003. {ICC'03.}},     author = {Jiang, W. and Koguchi, K. and Schulzrinne, H.},     month = may,     year = {2003},     pages = {1917--1921}}      I want to remove the quotes around the booktitle ‘IEEE International Conference on Communications, 2003. ICC’03.’ and make it italic, for all _inproceedings_ and probably for other entries too. Which alternative in which question in the .btj-file should I choose to make it like mentioned above? I'm using Lyx, so if it's possible I could add a TeX command to adjust.


title: How can I shift individual cells in XY-pic without shifting the corresponding row/column?

text: I'd like to create a figure using XY-pic in which one cell actually spans two rows (like \multirow). Should look something like:               1,1       1,3          BIG     2,1       3,3      With arrows from 1,1 and 2,1 to BIG and from BIG to 1,3 and 3,3.               \documentclass[11pt]{article}     \usepackage[all,cmtip]{xy}     \usepackage{multirow}     \begin{document}     \begin{equation}     \xymatrix{     1,1 \ar[dr] & & 1,3 \\     2,1 \ar[r] & \multirow{2}{*}{BIG} \ar[ur] \ar[r] & 2,3 \\     }     \end{equation}     \end{document}      I feel like there is a modifier on the element (some kind of *+5pt{BIG}) that would work, but I don't grok the Xy-pic user's manual. I did find some black magic that would shift the cell up but also increased the space between rows. Thanks for the help!


title: Making acknowledgement page before table of contents

text: I want to have a page of "Acknowledgement" before the Table of Contents in my document (which is made using `\tableofcontents`). I want it to be formatted as a chapter (i.e. with the heading "Acknowledgement" like "Chapter 1"), but I don't want to count as Chapter 1 or Chapter 0, and I don't want it to appear in the table of contents. What would be the way to do this?


title: Content - items disappeared

text: I have problem with content. Yesterday was everything ok, but today List of figures and List of tables disappeared. I didn't do any changes with them. Moreover, I do not want to introductory chapter has a number, so I used \chapter*{introductory chapter}. This item disappeared from content too. Do anyone know what can I do about this?


title: How can I create an indented and hanging-indented list with enumitem

text: I'm using `enumitem` v3.2 (latest on MikTeX), and want to create a list that looks like this:               Some text describing my list:         **Item 1**: some text that eventually wraps              and hangs onto line two         **Item 2**: some text that eventually wraps              and hangs onto line two     Some more text      I've managed to create the following instead, using `[labelindent=2em,itemindent=3em]`:               Some text describing my list:             **Item 1**: some text that eventually wraps          onto line two             **Item 2**: some text that eventually wraps          onto line two     Some more text      I've been trying to make sense of the parameters in the `enumitem` documentation, but I seem not to be having any luck. When I tried making `labelindent` negative, that had no effect. I'm sure there's some simple way to achieve this, so I appeal to the wisdom of the crowds... **EDIT** : Minimum (non-)working example follows               \documentclass{article}     \usepackage{enumitem}          \newlist{compactdesc}{description}{3}     \setlist[compactdesc]{topsep=0pt,partopsep=0pt,itemsep=0pt,parsep=0pt}          \begin{document}     \begin{figure}       \emph{Example text}       \begin{compactdesc}[labelindent=2em,itemindent=3em]\raggedright       \item[Loren ipsum:] dolor sit amet, consectetur adipiscing         elit. Duis tincidunt mi ut purus varius aliquet posuere enim         ultricies.       \item[Ut aliquet:] mi vel lacus dictum iaculis. Aenean vestibulum         pharetra magna, sit amet venenatis velit posuere ut.       \item[Fusce viverra:] commodo erat, quis feugiat purus tempor sit         amet. Nulla tincidunt erat nec diam porta accumsan.       \end{compactdesc}     \end{figure}     \end{document}


title: How can I customize TikZ’ calendar?

text: I'm playing around with the TikZ’ `calendar` library to make a simple course calendar. I want to make weekend days and days when there is a week break or something to be grayed out, lecture days to be bold face and lab days to be in italics.               \begin{minipage}[t]{.5\textwidth}     September\\      \begin{tikzpicture}     \calendar (mycal) [dates=2013-09-01 to 2013-09-30,week list];     \draw[black] (mycal-2013-09-04) circle (8pt);     \end{tikzpicture}     \end{minipage}     \begin{minipage}[t]{0.5\textwidth}     November\\      \begin{tikzpicture}     \calendar (mycal) [dates=2013-11-01 to 2013-11-30,week list];     \end{tikzpicture}     \end{minipage}\\          \vskip0.5cm      ![calendar](http://i.stack.imgur.com/s0GLN.png)


title: How to reduce space between image and its caption?

text: I m importing one image in latex document. But caption has bigger font than my normal text on page.               \documentclass{article}     \usepackage{graphicx}          \begin{document}            Some text...            \begin{figure}[htb]       \begin{center}       \includegraphics[height=1in,width=1in,angle=-90]{foo}       \caption{This is a figure.}       \end{center}       \end{figure}             More text...            \end{document}      How to reduce the font size of caption and space between caption and image?


title: Reducing vertical space between figure and caption

text: > **Possible Duplicate:**   >  How to reduce space between image and its caption? How do I reduce the space below figures and above their captions, without changing the parameters for tables? For example, I can do               \addtolength{\abovecaptionskip}{-0.25cm}      but it modifies the space for both figures and tables. With the `.sty` I am using now the spacing for tables are just fine and I don't want to change it.


title: Why is there a large gap between imported png and caption?

text: Why the spacing between the caption and image is large and why it is not where I wanted it but somewhere else? How to make it next to it as I would normally expect a caption to be? I placed the png as shown:               An overview of the development process is graphically shown:          \begin{figure}     \centering     \includegraphics[height=60mm]{diagram.png}     \caption{Development Framework} \label{Framework}     \end{figure}          \begin{list}{.}{}     \item Mathematica - Monte Carlo pricing development     \item Mathematica server - Initializing FinancialData indices     \item Excel VBA - importing of pre-saved financial data     \end{list}      ![enter image description here](http://i.stack.imgur.com/THtp6.png) But location of the image is reversed? EDIT: I changed from pdf to png file imported.


title: Tikz: \foreach and axis environment incompatibility

text: I'm trying to plot a figure with TikZ. I have a few .txt files with the coordinates of the curves that I want to plot, in a list such as               file2.txt,      file4.txt,     ...     file30.txt      and I want to add them with `\plot` file in a axis environment. Also, I'd like to put them with different colors, creating a shading effects, let's say from blue to red. In short, I want to create a sort of contour plot, but since I don't have the 3D function I have to import the coordinates. I wrote this code, where I use two variables in `\foreach`, one for the file name, \x, and one for the shading of the color, \y, (see lines 'Original Idea'). It doesn't work because of some kind of trouble between \foreach and the axis environment. I thought about other options, such as to explicate a relation between \x and \y (see code lines), use `\pgfplotsinvokeforeach` or an other trick with `\edef` but they doesn't work for different reasons:   * if I explicit the relation it seem like it doesn't want to calculate 3*\x (undefined control sequence)   * with `\pgfplotsinvokeforeach` it says 'illegal unit of measure'   * same for `\edef` I read some topics on the use of `\pgfplotsinvokeforeach` and the trick with `\edef` but probably I haven't understood correctly how to use them in my code. Can you give me a solution? Better it would be if you give me the corrections for all the 4 possible cases I proposed :-) Here's the code               \documentclass{article}     \usepackage{pgf,pgfsys,pgffor}     \usepackage{pgfplots}     \usepackage{tikz}          \begin{document}          \begin{figure}         \begin{tikzpicture}          \newcommand{\filename}{./figure/regionDep0/orthogonal}         \begin{axis}[             xmin=0, xmax=1, ymin=0, ymax=1, width=8cm, height=8cm]             % Original idea: not working             \foreach \x/\y in {2/0,4/7,...,30/98}             {                 \plot[color=blue!\y!red] file {\filename \x.txt};             }     %        %       % substituting \y as function of \x: not working     %       \foreach \x in {2,4,...,30}     %       {     %           \plot[color=blue!3*\x!red] file {\filename \x.txt};     %       }     %            %       % Trying with \pgfplotsinvokeforeach: not working     %       \pgfplotsinvokeforeach{2,4,...,30}     %       {     %       \plot [color=blue!3*#1!red] file {\filename #1.txt};     %       }     %     %       %   Trying with \edef\temp{...}: not working     %       \foreach \x/\y in {2/0,4/7,...,30/98}     %       {     %           \edef\temp{\noexpand\plot [color=blue!\y!red] file {\filename \x.txt};}     %           \temp     %       }                    \end{axis}         \end{tikzpicture}     \end{figure}          \end{document}


title: ShareLaTeX and biblatex

text: I'm writing my thesis with my friend but I'm having serious problems getting `biblatex` to work with ShareLaTeX, it apparently has support (according to this blog: http://www.clarusft.com/sharelatex/). However, I can't get it to work properly, or at all to be honest. I have included this in the top.               \documentclass{report}     \usepackage[utf8]{inputenc}     \usepackage[backend=biber]{biblatex} % I try to use biber.     \bibliography{ref} % the ref.bib file     \begin{document}          Hi there, Stackoverflowers\cite{lol}     \printbibliography      \end{document}      And here is my `ref.bib` file:               @article     {lol,     author = "Anders Ekholm",     title = "Den ljusnande framtid är vård",     year = "2010"      }      This doesn't work. I get the errors:               main.tex:55 Citation 'lol' on page 1 undefined.      main.tex:274 Empty bibliography.      undefined:undefined There were undefined references.     undefined:undefined [biblatex] Please (re)run Biber on the file: output and rerun LaTeX afterwards. (page 23)


title: black background when including pdf with transparent background as image

text: I have a pdf image with transparent background that I'll include by using graphicx (`\includegraphics`). Everything is fine when using pdfLaTeX to build my pdf, but when I switch to XeTeX the image will suddenly have black background instead of being transparent. I have tried to reproduce the problem, and quite strangely some pdf images do not exhibit this problem while some do. My XeTeX version is 3.1415926-2.4-0.9998, which I believe is the newest. And here's a sample pdf image if any one wishes to test: https://docs.google.com/file/d/0BxDcKKtrknW_MlZMV2lKOE5oMXc/edit Minimal code:               \documentclass[10pt]{article}     \usepackage{graphicx}     \begin{document}     \begin{figure}[h]      \centering \includegraphics[scale=0.48]{MapReduce_Pipeline.pdf}      \caption{MapReduce Pipeline.}     \label{fig:MapReduce_Pipeline}     \end{figure}     \end{document}


title: ConTeXt: How to set up interaction mode to emulate hyperref?

text: I have prepared a self explanatory MWE to check `interaction` mode for various objects in `ConTeXt ver: 2013.01.10 01:04 MKIV`. `Evince` document viewer is used for testing. Questions:   1. How to set up different colors to distinguish between different kind of hyperlinks like floats/references/URLs?   2. Make links to open in the same zoom settings instead of switching to `FitHeight` mode? Links to chapters/sections open in the same zoom settings while placing the referred object on the top portion of the screen. However, links to floats change the zoom settings and default to `FitHeight` mode.   3. A list of hyperlinked page numbers after each bibliographic entry to come back to the page where it was referenced (option `backref` in `hyperref`).   4. In TOC/List of floats, on the number of the chapter/float should be hyperlinked instead of the entire line (as is happening in the MWE). I expect all the above questions to be answered by setting simple parameters in `context`. Thats why I have lumped them all together. **MWE**               \setupbibtex[database=bib]     \setuppublications[alternative=num, refcommand=authornum]          \setupinteraction       [state=start,        click=yes,        focus=standard,        color=red]          \useURL[garden][http://www.contextgarden.net]          \starttext     \subject{Contents}     \placecontent     \subject{Figures}     \placelistoffigures     \section[chap:one]{Emulating {\tt hyperref}}          \subject{Bibliography}     Please refer \cite[me13b] for no particular reason. Is     there {\tt backref} like facility in \CONTEXT so that     there is a clickable list of page numbers after each     reference to come back to the page on which it was referred.          \subject{URLs}     Anything hyperref can do, \CONTEXT\ can do natively.     May be I ought to search \from[garden].          %     \placefigure[here][fig:dummy]{Dummy figure}{\externalfigure[dummy]}     %          \subject{Various Lists}     I would like {\em only} the chapter/section/subsection/float numbers     to be clickable in the TOC and List of floats. Presently, the entire     line is hyperlinked.          \subject{Footnotes}     Lets check a footnote now\footnote{Though typographically not     recommended, footnotes are never the less handy at times.}. When I click     on the footnote number, the page opens in {\tt FitHeight} mode instead of  putting     the footnote on screen in the current zoom settings. Same thing happens     when I click on the footnote to come back.     \subject{Floats}     Now, lets refer to the figure \in[fig:dummy] which is in chapter     \in[chap:one] titled \about[chap:one] on page \at[chap:one].     When I click any of the {\tt chapter} related links in {\tt FitWidth} mode,     it takes me nicely to the chapter name still in {\tt FitWidth} mode. However,     when I click on the figure number, it switches back to {\tt FitHeight} mode.     Ideally, one would like a link to take me to the refered object in the currect     zoom level.          \section{Bibliography}     \placepublications[criterium=text]     \stoptext      **bib.bib**               @article{me13,             title = {This bibliography in context},              author = {Convert, Recent},             journal = {Tex SX},             volume = {1},             number = {1},              pages = {1-11},              year = {2013},     }


title: Learning how to use TeX for automatic layout of non-technical documents

text: Whenever I try to learn more about TeX or LaTeX, I am stymied by the general bias of the books and online resources I have seen, and possibly by the bias of LaTeX itself. I am not interested in using TeX to typeset books, articles, slides, or journal publications. Instead, I would like to use it for documents that other programs generate. These documents are not of a technical nature. For example I have a system written in Haskell that takes cooking recipes and generates grocery lists. I need to generate printed output for the recipes and the grocery lists. This of course is not a book or article, and because the output is being generated automatically I don't care about separating presentation and content. Instead my main concern is making the printed output look good. So far I am using roff for this because I have never managed to figure out how to use (La)TeX for something like this. Another thing that I would like to write is a simple system to take checklists written with very little markup and transform them to a good two-column layout for printing. What good resources exist for learning (La)TeX if you do not want to write a long structured technical document? It seems that TeX is a typesetting program like roff, so it should be possible to use it for things like this, but I don't know where to start learning. Everything I read starts out with how to write an article.


title: Convert latex conference paper to html with figures and bibliographic references

text: I wrote a paper for a conference in latex format. It contains figures and bibliographic references. I got the output in PDF format and it looks fine. Now I would like to convert it to HTML. I just tried "latex2html doc.tex". But the problem is that in the resulting HTML index.html format, although it does not look bad, the citation numbers do not appear on the text and the same for the figures, which are both in .eps and .jpg formats. Is it there a better approach for doing this kind of conversions or am I missing some latex2html parameters?


title: Representing movement of a single electron

text: I would like to represent the movement of a single electron in a reaction mechanism (grignard-reaction) Is there a predefined arrow (something like a harpoon) for that in chemfig? Or does anyone have an idea?


title: Formatting list of figures with no space on left side

text: Basically I want this: > Abbildungsverzeichnis > > Abbildung 1: somecaptiontextxxxxxxxxxxxxxxxxxxxxxxxxxxx   > > xxxxxxxxxxxxxxxxxxxxxxxx.........................................................34 Abbildung 1 is the name of the figure. It equals figure 1, figure 2 etc. Abbildungsverzeichnis means list of figures. I didn't translate it in English, because the picture at the bottom is all in German, which shows the actual state of my list of figures. But the code I used:               \usepackage[titles]{tocloft}          \newlength{\mylen}          \renewcommand{\cftfigpresnum}{\figurename\enspace}      \renewcommand{\cftfigaftersnum}{:}     \settowidth{\mylen}{\cftfigpresnum\cftfigaftersnum}     \addtolength{\cftfignumwidth}{\mylen}      produced this: ![enter image description here](http://i.stack.imgur.com/nUCAg.jpg) Thanks in advance.


title: Displaying genetic algorithms on data

text: It is useful for explaining how a genetic algorithms works to display things like in the two following pictures. ![enter image description here](http://i.stack.imgur.com/Gwr8T.png) ![enter image description here](http://i.stack.imgur.com/4CSLV.png) In those pictures, it could be useful to have two more features.   1. Display dotted horizontal lines at the beginning and/or the end so as to indicate that data are not totally displayed.    2. Having an easy way to change background colors so as to indicate different techniques used. How can all of this be achieved? Here is a code for start some enhancements. This code comes from this page.               \documentclass{article}         \usepackage{tikz}         \usepackage{xstring}              \tikzset{             raw sort entry/.style={rectangle, thick, draw, node distance=1.5em},             sort entry black/.style={raw sort entry, black, fill=white},             sort entry blackgray/.style={raw sort entry, black, fill=gray!25},             s1/.style={raw sort entry, red, fill=yellow!30},             s2/.style={raw sort entry, blue, fill=green!20},             s3/.style={raw sort entry, violet, fill=orange!25}         }              \newcommand*{\List}[2][sort entry black]{%             \par\noindent%             \edef\listtoprocess{#2}%             \def\ListToProcess{}%             \begin{tikzpicture}[inner sep=2pt, outer sep=0]                 \foreach \content in \listtoprocess{                     \IfSubStr{\content}{/}{% true                         \xdef\ListToProcess{\ListToProcess,\content}                     }{%                      false                         \xdef\ListToProcess{\ListToProcess,#1/\content}                     }                 }                 \StrGobbleLeft{\ListToProcess}{1}[\ListToProcess]% removes the first comma (\listToProcess is empty at the start)                 \foreach [count=\i] \Style/\Value in \ListToProcess {                     \ifnum\i=1\relax                         \node [raw sort entry, \Style] (sortnode\i) {\Value};                     \else                         \node [raw sort entry, right of=sortnode\number\numexpr\i-1\relax, \Style] (sortnode\i) {\Value};                     \fi                 }             \end{tikzpicture}%         }          \begin{document}          \List{1, 1, 1, 1, 1, s1/2, s1/2, s1/2, 3, 3}          \end{document}


title: Make the $ that opens a math environment replace preceding spaces with a single non-breakable?

text: I find myself spending effort in placing the tilde character before every inlined math I type, e.g.,                  On 1899, G. Pick proved that      the area of a simple polygon~$P$ whose vertices are      located on the integer grid is~$i + b/2 -1$,      where~$i$ is the number of grid points in the interior of%     ~$P$ and~$b$ is the number of grid points on the     the boundary of~$P$.      Can anyone think of a way of redefining the opening $ character so that it would do that automatically. Many will find this useful, methinks. Ideally, I would write instead just                 On 1899, G. Pick proved that     the area of a simple polygon $P$ whose vertices are      located on the integer grid is $i + b/2 -1$,      where $i$ is the number of grid points in the interior of     $P$ and $b$ is the number of grid points on the     the boundary of $P$.      I think, but not sure, that this is doable with the following method:   1. Use character other than $ for inline math (or refer internally to `\\(` and `\\)`)   2. Define $ as an active character which `\unskip`s previous spaces, replacing them with non-breakable space.   3. After un-skipping, let $ redefine itself to do the closing part.   4. The closing $ will invoke `\\)` and then will redefine $ as in 2. An obvious bug of this method would be that displayed math wrapped with $$ would misbehave. I have an unpleasant feeling that there might be more.


title: How to use curve path with fill command in tikz?

text: I´ve tried using arcs to get the picture below, but I have to precise a specific center for each arc, because they don´t finish in the point which they should. Instead of arcs, I want to use curve paths to define the filled regions. How to draw or include in my code curve paths?. Maybe There's other solutions. I need your help.               \documentclass[10pt,a4paper]{book}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}          \draw[step=.2cm,gray!15,very thin](-2cm,-2cm)grid(2cm,2cm);          \draw[gray!30](-2cm,0) -- (2cm,0);     \draw[gray!30](0cm,-2cm) -- (0,2cm);     \draw (0cm,1.5576cm)--(0cm,.6227cm).. controls (.05cm,.28cm) and (.25cm,.2cm) ..(.6512cm,0cm)--(.6512cm,.9076cm) .. controls (.4cm,1cm)and(.1cm,1.1cm)..(0cm,1.5576cm);          \draw (0cm,1.5576cm).. controls (.12cm,1.2cm)and(.45cm,1.1cm)..(.8118cm,.9918cm)--(.8118cm,.0931cm)--(.9764cm,.2014cm)--(.9764cm,1.0681cm) .. controls (.45cm,1.12cm)and(.15cm,1.31cm)..(0cm,1.5576cm);          \draw (0cm,1.5576cm).. controls (.2cm,1.32cm)and(.7cm,1.21cm)..(1.141cm,1.1644cm)--(1.141cm,.3418cm)--(1.3016cm,.6227cm)--(1.3016cm,1.2727cm) .. controls (.7cm,1.3cm)and(.2cm,1.4cm)..(0cm,1.5576cm);          \draw (0cm,1.5576cm).. controls (.2cm,1.47cm)and(.7cm,1.3cm)..(1.3016cm,1.4212cm)--(1.3016cm,1.5576cm) .. controls (.7cm,1.45cm)and(.2cm,1.5cm)..(0cm,1.5576cm);          \end{tikzpicture}               \end{document}      The desired output: ![image](http://i.stack.imgur.com/8TPBb.png) Output of the MWE: ![re](http://i.stack.imgur.com/jTexd.png) This is the picture which shows the problem I want to solve, I want to define the center of the arc. Also, instead of draw an arc, I'd like to include curve paths to include different radius.   ![e](http://i.stack.imgur.com/kHXiv.png)


title: internal error in breqn package with dseries/dmath* pair

text: As an experiment, I took some equations that I'd manually split using aligned like so:               \begin{equation}\label{eqn:fourierSeries:30}     \begin{aligned}     \int_a^b \phi(x) e^{-i \omega m x} dx     &= \sum c_k \int_a^b e^{i \omega (k -m) x} dx \\     &= c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}.     \end{aligned}     \end{equation}      and switched it to dseries/dmath* in a way that I thought ought to have been allowed:               \begin{dseries}\label{eqn:fourierSeries:30a}     \begin{dmath*}     \int_a^b \phi(x) e^{-i \omega m x} dx     = \sum c_k \int_a^b e^{i \omega (k -m) x} dx      = c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}     \end{dmath*}     \end{dseries}      but get the error:               Package breqn Error: eq@repack penalty neq 0,1,2,3.      if I do this. It turns out that I can just use dmath like so as a work around:               \begin{dmath}\label{eqn:fourierSeries:30b}     \int_a^b \phi(x) e^{-i \omega m x} dx     = \sum c_k \int_a^b e^{i \omega (k -m) x} dx      = c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}     \end{dmath}      That numbers the set of equalities as one equation so that actually does exactly what I want. However, from the documentation, it doesn't look like what I did should be illegal. For example, the following (more subequation like form) also doesn't compile:               \begin{dseries}\label{eqn:fourierSeries:30c}     \begin{dmath*}     a = b + c     \end{dmath*}     \begin{dmath*}     a = b + c     \end{dmath*}     \end{dseries}      Here's a complete latex doc that demonstrates the error:               \documentclass[12pt]{scrreprt}     \usepackage{amsmath}     \usepackage{breqn}          \begin{document}          % original manually split:      %     %\begin{equation}\label{eqn:fourierSeries:30}     %\begin{aligned}     %\int_a^b \phi(x) e^{-i \omega m x} dx     %&= \sum c_k \int_a^b e^{i \omega (k -m) x} dx \\     %&= c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}.     %\end{aligned}     %\end{equation}          % works         %    \begin{dmath}\label{eqn:fourierSeries:30b}     %    \int_a^b \phi(x) e^{-i \omega m x} dx     %    = \sum c_k \int_a^b e^{i \omega (k -m) x} dx      %    = c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}     %    \end{dmath}          % both of these appear to break breqn                \begin{dseries}\label{eqn:fourierSeries:30a}     \begin{dmath*}     \int_a^b \phi(x) e^{-i \omega m x} dx     = \sum c_k \int_a^b e^{i \omega (k -m) x} dx      = c_m (b - a) + \sum_{k \ne m} \frac{e^{i \omega(k-m) b} - e^{i \omega(k-m)a}}{i \omega (k -m)}     \end{dmath*}     \end{dseries}          \begin{dseries}\label{eqn:fourierSeries:30a}     \begin{dmath*}     a = b + c     \end{dmath*}     \begin{dmath*}     a = b + c     \end{dmath*}     \end{dseries}          \end{document}      Do I misunderstand the point of the breqn dseries environment, or does it just not work?


title: How do I fix missing 'fi' characters in LyX?

text: I have a paper written and edited in LyX. On a printing today I noticed that all 'fi' combinations are not visible. The characters are in the document and displays in the PDF but doesn't print. Is this a printer, LyX or PDF problem?


title: Table of Contents in a Journal

text: I have a problem with the numbering of items. I own the items separately and do not know how to put it together, for the numbering, etc, etc. I have several articles, and need to get an index should be done as follows                                              Contents      Name of the Article Author of Article .......................................................Page Number Name of the Article Author of Article .......................................................Page Number Name of the Article Author of Article .......................................................Page Number Etc, etc. Thanks for your help


title: bibtex issue : Warning--I didn't find a database entry for "birks"

text: I'm having an issue using bibtex with pdflatex. Here is the file biblio.bib I'm using (with this exact format) :               @Book{physiqueNucleaire,     author = "Claude le Sech and Christian Ngô",     title = "Physique Nucléaire, des Quarks aux Applications",     year = "2010",     publisher = "Dunod"}          @Book{birks,     author = "J.B. Birks",     title = "The theory and Practice of Scintillation Counting",     year = "1964",     publisher = "Pergamon Presse Ltd."}      In the list of packages (at the beginning of the main file report.tex) :               \bibliographystyle{ieeetr}      And the main file section where the bibliography is "called" :               \cleardoublepage     \phantomsection     \addcontentsline{toc}{chapter}{Bibliography}     \bibliography{biblio}      In a chapter file defined before this last section, I use the \cite{physiqueNucleaire} command and it works perfectly. In an another chapter file, I use the \cite{birks} command, and the bibtex compiler (if this makes any sense) respond :               Warning--I didn't find a database entry for "birks"      I am aware I need to call the different latex commands in this order, and I tried it without any success :               pdflatex report.tex     bibtex report.tex     pdflatex report.tex     pdflatex report.tex      I also tried to delete all the files generated through the compilations (at least all the files contained in the .tex file folder - are there any elsewhere ?) Are there rules or specific places where we can call the \cite{} command ? How much rigorous is the format in the .bib file needs to be ? I already used Latex before exactly the same way and it worked succesfully, could this have something to do with the environnement ? I "migrated" from ubuntu 11.04 and gedit with the Latex plugin to KUbuntu 11.04 using kate. Any help will be rewarded with a virtual hug, Mortuis


title: Can I combine arrow tips in TikZ/pgf?

text: I'd like to draw an arrow using TikZ where I can specify more than one tip (or tail). This is presumably technically possible since the `>>` tip is a "doubled" tip: defining `>=diamond` produces a double diamond tip. Also, quoting from the `arrows` section of the manual: > The spacing arrow tips are useful for combining them with other arrows to > get arrows that do not touch the end of the line. Which is, admittedly, vague enough that I could be interpreting it incorrectly. But what is the actual syntax for combining two tips? Just listing them one after another doesn't work.


title: twocolumn / IEEEtran vertical alignment of columns

text: I'm currently writing a paper using the IEEEtran class (which uses the twocolumn option). When inserting this float figur, it is properly placed, but the second column is also aligned vertically with the first one, leaving an ugly gap. Two underfull vbox errors are also thrown (PDFLatex). What could lead to this behavior? How can I further analyze this problem? Example:               \documentclass[conference]{IEEEtran}     \usepackage[pdftex,demo]{graphicx}     \usepackage{fixltx2e}     \usepackage{stfloats}     \usepackage{blindtext}          \begin{document}     \blindtext[8]          \begin{figure}        \centering        \includegraphics[width=\columnwidth]{}        \caption{\small Test}     \end{figure}          \blindtext[10]     \end{document}      ![This is how it looks like](http://i.stack.imgur.com/Lrufm.png)


title: Customization of the Copenhagen theme

text: I am preparing slides for my zeroth review (Project) using LaTeX. Now, I am very much appealed by this theme: ![theme image](http://latex.simon04.net/img/diuf.jpg). The theme's link is given here: link. But, It is not available. I got the base theme `Copenhagen` but now I need to customize it to the colors and gradients applied in the theme. How do I do that? Here is my MWE:               \documentclass[12pt]{beamer}     \usetheme{Copenhagen}     \title{The title of the paper}     \author{Subham Soni \and Sakthivel \and Syed Rabbani}     \date{\today}     \begin{document}     \begin{frame}     \titlepage     \end{frame}     \begin{frame}{Agenda}     \tableofcontents     \end{frame}     \end{document}      ![enter image description here](http://i.stack.imgur.com/dJ8qK.png)


title: Define a Likert scale grid with multiple rows

text: I am trying to create a survey and I was hoping to do this with the eqexam package, but I can't really figure out how to make a good Likert scale. There are only examples of exams in the documentation and not of surveys. I am trying to make something like:                   Bad NotBad Neutral OK Good     Q1  []    []     []    []  []     Q2  []    []     []    []  []     Q3  []    []     []    []  []     Q4  []    []     []    []  []      Should I do this with latex anyway? I am just trying to get a printable survey.


title: Resize Arrays and Figures in a Sweave document.

text: How is it possible to resize figures produced via a Sweave script? I tried `scalebox` and others, but I can't succeed to obtain a figure with an acceptable size in my beamer with direct Sweave output like:               <<MyGraph,fig=T>>     x <- rnorm(1000)     y <- rnorm(1000)     plot(x,y)     @      Good answers for figures but for text output ? (see below) I would also like indications to resize for example an output which is too large for the screen. For example:               <<MyBigData.Frame,echo=off>>     summary(mybigdata.frame)     @


title: Align equations over multiple sections

text: Is there a way to make the math mode "align" work over multiple sections? Here is the code example:               section*{Polynomials}     Do the following polynomial devisions     \begin{align}     &(x^7 - x^4 - 21x^2 + 4x + 18) \div (x^2-9) \tag{a} \\     &7x^3 - 6x^2 - 2x + 8 \div (x-1) \tag{b}     \end{align}     \section*{Simplifying}         \begin{align}     Rewrite the follwing equations as sums     & (g^7+c)\cdot (f+\pi k^{-7}+3jg)-\pi-8hb^2-er^2 \tag{a}\\     & \beta^{56}\cdot (x^5-\frac{85l^8}{\beta^9}+\beta^{-54}) \tag{b}     \end{align}      The problem now is that the equations are only aligned in each section (as they should be, so that works). Meaning the equations in section "Polynomials" so not align (or start at the same place) as the ones in the next section "Simplifying". Is there a way to do this?


title: Writing descriptions of columns of table

text: How do you do table like this? ![enter image description here](http://i.stack.imgur.com/LouCW.png) I don't need coloured background and blue borders. This is what I have. Looks terrible. And doesn't even fit on page.               \documentclass{article}     \usepackage{polski}     \usepackage[utf8]{inputenc}     \begin{document}     \begin{figure}     \begin{tabular}{c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c |}          Bit\\         31 &&&&&&& 24&23 &&&&&&& 16&15 &&&&&&& 8&7 &&&&&& 1&0\\     S & E & E & E & E & E & E & E & E & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M & M \\     Znak & Wykładnik &&&&&&&& Mantysa          \end{tabular}     \caption{IEEE754}     \end{figure}          \listoffigures     \listoftables     \end{document}


title: Memoir chapter headings

text: I'm using memoir class and I would like to know if it's possible to change the heading name of a specific chapter because the chapter title is too long and it's not well displayed as a heading in each page, only in the main chapter title. I mean, I want this title to appear on the top of each page 'Capítulo 2 Influencia de las IDM en el espectro de ondas de espín' and as a chapter title, that appears this 'Capítulo 2 Influencia de las Interacciones de Dzyaloshinskii-Moriya en el espectro de ondas de espín' (I'm writing in spanish) Thanks beforehand, Dave


title: How to redefine the key of a bibliography entry?

text: I've posed a similar question but it has received no answer, so i'll try with a different specification. We are manually defining the order of the bibliography and we want this custom order to be reflected in the numerical key set up by bibtex. For example, we want the following code               \documentclass{article}     \usepackage{bibentry}     \usepackage[square,sort,comma,numbers]{natbib}     \usepackage{filecontents}          \begin{filecontents}{mybib.bib}      @misc{A01,       shorthand = {Author},       author = {Author, A.},       year = {2001},       title = {Alpha},     }     @misc{B02,       author = {Buthor, B.},       year = {2002},       title = {Bravo},     }     @misc{C03,       author = {Cuthor, C.},       year = {2002},       title = {Charlie},     }     \end{filecontents}          \title{A title}          \begin{document}          \bibliographystyle{plain}     \nobibliography{mybib}          I cite number two~\cite{B02} and then number three~\cite{C03} and finally number one~\cite{A01}     %i now show the bibliography with number three, one and two     \noindent\cite{C03}~\bibentry{C03}          \noindent\cite{A01}~\bibentry{A01}          \noindent\cite{B02}~\bibentry{B02}          \end{document}      To output this (with due changes somewhere):                I cite number two [3] and then number three [1] and finally number one [2]      [1] C. Cuthor. Charlie, 2002       [2] A. Author. Alpha, 2001       [3] B. Buthor. Bravo, 2002      but of course we get this:                I cite number two [2] and then number three [3] and finally number one [1]      [3] C. Cuthor. Charlie, 2002       [1] A. Author. Alpha, 2001      [2] B. Buthor. Bravo, 2002      So the Key (if that's the name of the number between square brackets) is decided by the style and not by us, and we want to modify it to our liking. We've tried with aliases but their scope is local, and i can't make it global. Any tool that will make this work is more than welcome, we are not fixed to specifics such as natbib. Thank you!


title: How to increase the memory if I get this error TeX capacity exceeded

text: I am using the following codes to input DNA sequences from fasta format (177 sequences with 1140 base pair long) Using texshade package but I had the following error: my system is: Windows 7 (64 bit)               ! TeX capacity exceeded, sorry [save size=50000].      Dose anyone know how to resolve this problem and your help would be appreciated               \documentclass[12pt]{report}     \usepackage{texshade}     \usepackage{lscape}     \usepackage[a4paper, top=2cm, bottom=2cm, left=.5cm, right=.5cm]{geometry}     \begin{document}     \begin{texshade}Concerted-evolution-2.fas}     \shadingmode{similar}          \threshold[80]{50}          \showruler{1}{top}     \hidenumbering               \end{texshade}     \end{document}


title: chemfig chemname alignment

text: I wish to have a reaction in `\chemfig` and write some details under each molecule so am using the `\chemname` command. It puts the text under the molecule. However, as I have arrows in the reaction scheme, the whole system is misaligned. I have tried to use the `\chemnameinit` command to set the depth of the deepest molecule (commented out in lines 6-10 of the MWE below), but to no avail. Am I missing something simple?! I tried putting the `\arrow(){}` command within the `\chemname{}` but that spits out errors. Having the `\chemname{\chemfig{structure}{line 1\\\ line2\\\ line3\\\ line4}}` keeps the molecules aligned (without the `\\\` no alignment of molecules!)               \documentclass{standalone}     \usepackage{chemfig,chemmacros}     \usepackage{graphicx}     \begin{document}     \schemestart     %\chemnameinit{\chemfig{CH_3-C(-[:90]CH_3)(-[:-90]CH_3)-{\color{blue}\lewis{0:2:6:,Cl}}}}     %\chemnameinit{\chemfig{AlCl_3}}     %\chemnameinit{\chemfig{CH_3-C(-[:90]CH_3)(-[:-90]CH_3)-\chemabove{{\color{red}\lewis{0:2:6:,Cl}}}{\pch}-Al(-[:90]Cl_3)(-[:-90]Cl_3)-Cl_3}}     %\chemnameinit{\chemfig{CH_3-\chemabove{C}{\pch}(-[:60]CH_3)(-[:-60]CH_3) }}     %\chemnameinit{\chemfig{Cl-\chemabove{Al}{\qquad\mch}(-[:90]Cl)(-[:-90]Cl)-Cl}}     \chemname{\chemfig{CH_3-C(-[:90]CH_3)(-[:-90]CH_3)-{\color{blue}\lewis{0:2:6:,Cl}}}}{Lewis Base\\ Lone pair of e$^-$\\ on Cl\\ can donate}     \+     \chemname{\chemfig{AlCl_3}}{Lewis Acid\\ unfilled orbitals\\ on Al\\ Can accept e$^-$}     \arrow(--){<=>[][]}     \chemname{\chemfig{CH_3-C(-[:90]CH_3)(-[:-90]CH_3)-\chemabove{{\color{red}\lewis{0:2:6:,Cl}}}{\pch}-Al(-[:90]Cl_3)(-[:-90]Cl_3)-Cl_3}}{charged complex\\ \\ \\ }     \arrow(--){<=>[][]}     \chemname{\chemfig{CH_3-\chemabove{C}{\pch}(-[:60]CH_3)(-[:-60]CH_3) }}{Lewis Acid\\ \\ \\ }     \+     \chemname{\chemfig{Cl-\chemabove{Al}{\qquad\mch}(-[:90]Cl)(-[:-90]Cl)-Cl}}{Lewis Base\\ \\ \\ }     \schemestop          \end{document}      ![misaligned_arrows](http://i.stack.imgur.com/kRGAm.png)


title: Need labels and refs in longtable rows

text: In a longtable, I need the first column to display numbers based on an enumeration by references to labels. This means I can refer to the rows somewhere else in the text. I imagined it would help to create a label and reference to that label in the same cell, but I keep getting 1-figures instead of an incrementing number. Here's an example of what I have:               \documentclass[a4paper]{article}     \usepackage{longtable}     \begin{document}          \begin{longtable}{|l|l|}               \hline     \textbf{Number} & \textbf{Title} \\     \hline     \endfirsthead          \label{row:thefirst}     \ref{row:thefirst} &     First \\          \hline          \label{row:thesecond}     \ref{row:thesecond} &     Second \\          \hline          \label{row:thethird}     \ref{row:thethird} &     Third \\          \hline          \end{longtable}          \end{document}      I have tried changing the "row:" to something like "itm:" or "fig:", but nothing helps. Perhaps, I need to put it in some context like when using `\begin{figure}`, but I am not sure how that would turn out when in a table cell. Any suggestions? Thanks!


title: Front page and author in list of contents

text: In my list of contents, the first row is the front page. And in the second line, there is the name of the author Is there a way to delete that from my list of contents? Example: ![The Table of Content with the first row and the second row which I want to delete](http://i.stack.imgur.com/IuUvb.png) And i have the following code in my prefix.               \toctitle{Ticketmanagement System-Mobil}     \titlerunning{Ticketmanagement System-Mobil}     \author{Alexander Mallinger}     \authorrunning{Ticketmanagement System-Mobil}     \tocauthor{Alexander Mallinger}


title: Import source code from URL

text: I have code snippets on my github account and I'd like to import the code from them directly into my LaTeX document via something like:               \importtext{https://gist.github.com/xxxx}      Is this possible? I've searched everywhere but cannot find this.


title: Can I download CTAN packages from the command-line? (Ubuntu)

text: I'm reading this, where one of the respondents says to "get a package from CTAN". There are no installation instructions in the package mentioned. I've installed `texlive-full` and use the long-term support version of Ubuntu precisely so I won't have to deal with this stuff, so everything will "just work". Is there a command I can run from the terminal, like `ctan-install` or `latex- install`, that will find the packages I need, update them, etc.? (`sudo apt-get upgrade` doesn't show that `texlive-full` needs updating.) **update:** Thank you for the help, everyone. I think this is going to work (eventually). However as I keep downloading `iso`'s, the `synaptic` package for `texlive-full`, and `install-tl`, my hard drive is now close to full with all of these `TeX` libraries! What should I delete after this is all over, and how? (I tried to remove the `texlive-full` meta-package in Synaptic and it said it would remove `teXmacs` as well.) Also: how am I ever going to keep this up to date and working with other programs I may install in the future?


title: eps files by originpro can not show properly in latex

text: I have incorporate EPS file in the LaTeX, but the series are not shown properly. As in attached picture, the right is correct (shown by evince) and the left is what it looks in PDF generated by LaTeX. ![print screen](http://i.stack.imgur.com/bWEKp.png) I used the following code to embed EPS in the PDF file. What is the possible reason for this? How to fix it?                \begin{figure}[!ht]      \begin{center}      \includegraphics[width=4.5cm]{figures/p1-adversaries.eps}%      \end{center}%\vspace{-0.15in}      \caption{XXX}\label{exp:p1_adversaries}      \end{figure}


title: Many documents, same preamble

text: I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining things like chapters and sections). E.g.:               \documentclass{article}          \title{The First Document}     %\title{The Second Document}     %\title{The Third Document}          \begin{document}              \input{document01}         %\input{document02}         %\input{document03}          \end{document}      To compile a different document, I just move the `%`'s to another line and run `pdflatex` on this file.   * Is there a better system for managing these?   * Can I put some details, such as the `\title` information in the beginning of each document (`document01.tex`, etc.)   * Is there any way to compile all of the documents at once as separate PDFs?


title: Notes overflowing from marginpar to footer

text: In this document, from page 12 and following, the notes from the marginpar are overflowing in the footer of each page. ![overflowing notes](http://i.stack.imgur.com/2bn7C.png) How can this be achieved in LaTeX? ConTeXT/LuaTeX based solutions are welcome, too!


title: LaTeX - Numbering

text: I'll explain what I'm doing first: I'm transcribing a set of seminars into LaTeX. Scattered around the text there are questions from people, that I have included as Question 1, Question 2, and so on. But I have written the number of all questions manually, so now if I have to insert another question in between questions I have to change manually all the questions that come after. There must be a way for LaTeX to keep track of those items so that it generates the appropriate number automatically, but I don't want to make a list or an enumerate because there are big chunks of text in between questions. (I have tried google, but I keep getting information about lists and enumerates) Any ideas?