title: onlyitems? How to select specific items from an item list

text: I have the following setup, I have a file with some definitions, one of which is a list of items:               \newcommand{\mylist}{     \item first item     \item second item     \item third item     }      I want to use `\mylist` in two different ways, first               \begin{itemize}     \mylist     \end{itemize}      and second,               \begin{itemize}     % somehow extract 1st and 3rd items from \mylist     \end{itemize}      or alternatively               \being{itemize}     %somehow extract first n items from \mylist     \end{itemize}      The selection can be done by stating which items I want `{1,3}`, or, maybe better, using `\label{}` and `\ref{}` so that when I add more items, I do not need to change the numbering in the subset. I need this for keeping an updated list of publications/references/talks in one place, while being able to generate various documents containing a more, or less verbose list of items. * * * **EDIT:** Due to the many answers below, I'm keeping a copy of the `.sty` file I ended up writing and using. Its undocumented, and subject to change...but you can use it if you like. Most of the fiel is due to Ryan's accepted answer, but I added some things thanks to andrew and egreg (as noted in the code).               % A package that allows the selection of items from a list based on     % the id's of the items in the list (good for CV's) based on an answer     % by Ryan Reich on TeX.SE     % http://tex.stackexchange.com/questions/4502/onlyitems-how-to-select-specific-items-from-an-item-list/32611#32611                %%%%%%%%%%%%%%%%%     \ProvidesPackage{onlyitems}          \RequirePackage{pgfkeys}     \RequirePackage{pgffor}                    % A huge list of pgfkeys to be set up.       \pgfkeys{      /onlyitems/.is family, /onlyitems,      % Utility keys      utility/store tag/.store in = \itemOptions,      utility/store bool/.store in = \itemIf,      utility/process true/.style = {process/#1 = \iftrue},      utility/process false/.style = {process/#1 = \iffalse},%\fi      utility/set store bool/.style 2 args = {#1/.style = {utility/store bool = #2}},      utility/set select style/.style 2 args = {utility/set store bool = {select/#1}{#2}},      utility/verdict/.style = {},      utility/add to reset/.style = {       reset/.prefix style = {select/#1/.style = {select/.unknown}}      },      utility/current key/.estore in = \itemKey,      % Nothing in the process family is ever set, so any selection option is set to store a boolean      process/.unknown/.style = {       utility/current key = \pgfkeyscurrentname,       select/\itemKey/.style = {        utility/set store bool = {utility/verdict}{#1}       },       utility/add to reset/.expand once = \itemKey      },      % For clearing the list of selected items (to support nested {itemize})      reset/.style = {},      reset/reset/.style = {reset/.style = {reset/reset, default}},      reset/reset,      % Here are the options you can actually pass.  These go to the {itemize}...      include/.style = {utility/process true/.list  = {#1}},      exclude/.style = {utility/process false/.list = {#1}},      all/.style  = {utility/set select style = {.unknown}{\iftrue}},      none/.style = {utility/set select style = {.unknown}{\iffalse}},%\fi      default/.style = {all},      % ...and these to the \item's      tag/.style = {utility/store tag = {[#1]}},      id/.style = {select/#1},      %yossi     .unknown/.style = {tag=\pgfkeyscurrentname} %if key is     %.unknown/.code = \onlyitemsset{utility/store tag=\pgfkeyscurrentname} %if key is                                     %unknown, treat it like a tag. thanks                                     %to Andrew Stacy: \url{http://tex.stackexchange.com/q/34376/86}     %end yossi     }          % Like tikzset, it sets a default key path     \newcommand\onlyitemsset[1]{\pgfkeys{/onlyitems, #1}}          \makeatletter          \let\itemLaTeX=\item     % Have to use a \newcount because (ugh) the LaTeX \setcounter is a global assignment     \newcount\itemsSoFar     \newcommand\onlyitemsItem[1][]{%      % The \egroup closes off any \vbox'es from the previously ignored \item.      % The conditional \bgroup cancels it out when there aren't any.      \itemIf\bgroup\fi\egroup      \let\itemIf=\iffalse%\fi      \advance\itemsSoFar by 1 %      \onlyitemsset{utility/store tag = {}, utility/verdict/.style = {}, select/\the\itemsSoFar, #1, utility/verdict}%      \itemIf       \def\next{\expandafter\itemLaTeX\itemOptions}%      \else       % The vbox is set and then discarded, effectively ignoring an entire \item.       % This inner \itemLaTeX is necessary to avoid a glitch when we       % ignore the first \item of an itemize that itself contains a nested       % \itemize.  Don't ask, I don't know.     %     %the \@gobble s are so that various numerated lists still work as if     %the items are missing (i.e, no side effects). reference: http://tex.stackexchange.com/questions/34811/how-to-skip-an-item-entirely-with-no-side-effects/34821#34821       \def\next{\setbox0=\vbox\bgroup\let\stepcounter=\@gobble\let\addtocounter\@gobbletwo\itemLaTeX}%      \fi      \next     }     \makeatother          \newcommand\onlyitems[2][]{%     \let\item=\onlyitemsItem      \let\itemIf=\iftrue      \itemsSoFar = 0 %      % We have to reset here so that the selections from an outer itemize don't conflict with an inner one.      \onlyitemsset{reset, #1}%      #2%      % This closes off the last \vbox      \itemIf\bgroup\fi\egroup     }


title: Getting table of contents to recognize titlesec paragraph

text: I am using `hyperref` to make a clickable table of contents. I am using `titlesec` to use `\paragraph{ }` as if it were a `subsubsubsection`. How do i get this use of `\paragraph` to display in my table of contents (`\tableofcontents`)? Currently it is not displaying. Note that I also what this to be a clickable table of contents and I use `hyperref` to do so, as is demonstrated below.               \documentclass{article}          \title{FooBar}          \usepackage{hyperref}      \hypersetup{          colorlinks,         citecolor=black,         filecolor=black,         linkcolor=black,         urlcolor=black     }          \usepackage{titlesec} %paragraph as subsubsubsection     \setcounter{secnumdepth}{4}     \titleformat{\paragraph}     {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}     \titlespacing*{\paragraph}     {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}          \begin{document}     \maketitle     \tableofcontents          \newpage          \section{TestSection}          \subsection{TestSubSection}          \subsubsection{TestSubSubSection}          \paragraph{TestSubSubSubSection}              \end{document}


title: IEEE case: 2 authors, 1+1 Affiliations

text: It is pretty clear in the IEEE format (for conference) that if less or equal than 3 authors are to be used, one should go with the block mode. However, what happens if one of the two authors have 2 affiliations? Should I go with this (1): ![enter image description here](http://i.stack.imgur.com/5bazH.jpg) Or this (2)? ![enter image description here](http://i.stack.imgur.com/mKQVU.jpg) What is the official IEEE position regarding this situation?


title: creating delimiters and inequality signs

text: I would like to have a delimiter whose upper half is the upper half of the delimiter [ and whose lower half is the lower half of the delimiter ( -- so that it be one continuous line, and also the matching delimiter whose upper half is the upper half of the delimiter ) and whose lower half is the lower half of the delimiter ] . Correspondingly, I would like to have a binary (inequality) relation with the full-size sign > over the succession of a half-length = sign followed on the right by an empty space of the same horizontal extent as the half-length = sign, so that the the total horizontal extent of the combination of the the half-length = sign plus the empty space be the same as that of the full-size sign > . Such a binary relation could be called "greater than or half-equal to". Similarly, I would like to have a "less than or half-equal to" sign, which is a binary relation with the full-size sign < over a half-length = sign preceded on the left by an empty space of the same horizontal extent as the half-length = sign. Can this be done without METAFONT (which I don't know at all)? Thank you very much for your help.


title: How to remove double “Contents” heading?

text: How to remove double “Contents” heading generated by `book` class? I've tried using the following advice which was given for the `memoir` class but none of these solve my problem. How to remove the self-reference of the ToC from the ToC? How to remove "Contents" line from table of contents How to remove double "Contents" heading generated by memoir? Hiding the "Table of Contents" page from Table of Contents The structure of my document is as follows:               \documentclass[12pt, twoside, a4paper]{book}          \usepackage{tocbibind}     \setcounter{secnumdepth}{0}          \begin{document}          \frontmatter     \setcounter{tocdepth}{1}     \tableofcontents          \mainmatter     \chapter[Chapter 1]{Chapter 1}          \appendix     \chapter[Appendix 1]{Appendix 1}          \backmatter     \cleardoublepage     \phantomsection     \clearpage          \begin{thebibliography}{}     \end{thebibliography}          %\addcontentsline{toc}{chapter}{\numberline{}Bibliography}%     \chapter[Summary]{Summary}          \end{document}      I could solve the self reference 'contents' in the TOC by: Removing the "%" in front of               \addcontentsline{toc}{chapter}{\numberline{}Bibliography}      and removing               \usepackage{tocbibind}      \phantomsection      However, this creates a new problem. In that case the bibliography is no longer lined out with the backmatter (in ToC). In stead it is spaced with the titles of the Appendices (without the appendix number). What I want is for the bibliography to appear inline with the backmatter sections (Summary) in the ToC without a self reference of the 'contents' heading.


title: Why does my header disappear from front page using fancyhdr?

text: I am writing a letter and using `fancyhdr` to use a pdf file as a header. It is a two page letter, and I have specified the header to be on both the first page as well as the subsequent pages. Everything works fine, until I add a return address using `address`. Then the header disappears from the first page. Here is a working example               \documentclass{letter}          \usepackage{graphicx}     \usepackage{fancyhdr}     \usepackage{geometry}     \usepackage{lipsum}     \usepackage{url}     \urlstyle{same}          \geometry{headheight = .6in}     \fancypagestyle{firstpage}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in, keepaspectratio=true]{header.pdf}}}     \fancypagestyle{plain}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in, keepaspectratio=true]{header.pdf}}}     \pagestyle{plain}     \address{Joe Smith \\ 100 Main Street. \\ Chicago, IL 60610}          \begin{document}%          \begin{letter}{Department  \\ University of X\\ City, State Area Code}%          \opening{Dear Some Name,}          \lipsum{1:5}          \vspace{.5in}     \noindent Sincerely,     \vspace{.7in}          \noindent Joe Smith          \noindent Ph.D. Candidate          \noindent Department           \noindent University      \end{letter}%          \end{document}


title: Removing subsection numbers in table of contents

text: I'm using the `report` style. I'm using `\subsection*` to suppress the numbers that would otherwise appear before my subsection text. I'm generating a table of contents using `setcounter{tocdepth}{2}` But the subsection numbers are appearing in the generated table of contents. Is there a way to suppress the numbers for the subsections in the table of contents, like you can suppress them using `\subsection*` rather than `\subsection?` (I want the chapter and section numbers to appear for new chapters and sections, as they currently are).


title: How to write Euclidean distance

text: How would one implement Euclidean distance in LaTeX. Please some one help me. Here is the below link: http://en.wikipedia.org/wiki/Euclidean_distance


title: Error while using colors in latex table?

text: I am working on color table and using code below.               \documentclass[11pt,a4paper]{article}     \usepackage{array,ragged2e}     \usepackage[pdftex]{graphicx}     \usepackage[framemethod=TikZ]{mdframed}     \usepackage{lipsum}     \usepackage[margin=1.5cm]{geometry}     \usepackage[table]{xcolor}     \usepackage{wrapfig}     \usepackage{color}     \usepackage{framed,color}     \usepackage{comment}     \usepackage{parskip}     \definecolor{shadecolor}{rgb}{1,0.8,0.3}     \definecolor{lightgray}{rgb}{0.9}     \definecolor{yellow}{rgb}{1,0.5,0}          \newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}          \usepackage{Sweave}     \begin{document}                                   \leavevmode      \newline      \leavevmode      \newline      \begin{mdframed}[roundcorner=10pt,leftmargin=1, rightmargin=1, linecolor=orange,outerlinewidth=1, innerleftmargin=15, innertopmargin=15,innerbottommargin=15]      \textbf{Detailed Genotype Table}      \centering      \rowcolors{1}{}{yellow}     \begin{tabular}{>{\rule{0pt}{.5cm}}c >{\arraybackslash}m{2cm}>{\arraybackslash}m{2cm}>{\arraybackslash}m{6cm} >{\arraybackslash}m{3cm}}      \hline      \rowcolor{orange} \textbf{data} &\textbf{dummy} &\textbf{value} &\textbf{rough} &\textbf{text}\\      \hline      rsxx  & CreT  & 17603472, 19141561  & twet  & 17603472, 19141561\\      rs7193xx343  & TrT  & 19597491, 21760908  & twer  & 19597491, 21760908\\      rxx376333  & CCe  & 2017r3747  & twertw  & 20173747\\      \hline      \leavevmode      \newline      \end{tabular}      \end{mdframed}      \leavevmode      \newline           \leavevmode      \newline      \end{document}      There is no colored table? May i know where i am wrong? ![enter image description here](http://i.stack.imgur.com/qrs97.png)


title: Spaces behind \textgreater not working as expected

text: I have the following code:                \textit{WMC \textgreater   average}      But the text looks like this: > WMC >average It does not even change if I add even more spaces. So what am I doing wrong?


title: Beamer's \visible inside a TikZ node

text: I'm using beamer for creating presentations. Inside a TikZ node I'd like to make a part of the content appears afterwards. I'm using the `\visible` command for doing so (I don't want the content to move when the hidden part is made visible). Here's a small example:               \documentclass{beamer}     \usepackage{tikz}\begin{document}          \begin{frame}       \visible<+->{You know\dots}       \begin{tikzpicture}         \node{I'm \visible<+->{very} happy. };       \end{tikzpicture}     \end{frame}     \end{document}      The compilation fails on a classic TikZ error `Giving up on this path. Did you forget a semicolon?`. However if I replace `\visible` by `\only` or `\alt` the output is produced flawlessly. But that's not what I want :) There's a possible workaround which consists in defining a new visible command, based on `\alt`:               \newcommand<>\myvisible[1]{\alt#2{#1}{\phantom{#1}}}      But `\phantom` may have some undesirable side effects (with line breaks for example). Do you have any better solution? Thanks!


title: table positions within a minipage

text: I have the following code, it should generate 2 side-by-side tables. However, the left table is too left that its last half is there, and the right table thereafter. How can I position them properly?               \begin{table}[tbh!]     \makebox[0pt][c]{\parbox{1.2\textwidth}{%     \begin{minipage}[b]{0.6\linewidth} % A minipage that covers half the page      \centering     \caption{obs=1000, Coverage Probability}     \begin{tabular}{lcccc}     \toprule     Estimators & G=3 & G=10 & G=30\\      \midrule     2SLS & 0.849 & 0.850 & 0.850\\      GMM & 0.850 & 0.849 & 0.851\\      EL & 0.848 & 0.850 & 0.851\\      EL biascorr & 0.848 & 0.850 & 0.851\\      \bottomrule     \end{tabular}     \end{minipage}%      \begin{minipage}[b]{0.4\linewidth}\centering     \caption{obs=1000, Test Statistic}     \begin{tabular}{lcccc}     \toprule     Number of acceptances & G=3 & G=10 & G=30\\      \midrule     Overidentification&&&\\     restrictions test & 893 & 831 & 720\\     Wald Test & 893 & 831 & 723\\      LM test & 893 & 831 & 718\\      \bottomrule     \end{tabular}     \end{minipage}%     }}     \end{table}      If someone can help, it will be great.


title: star next to arrowhead in tikz

text: What's the best way to draw `$\to^*$` arrows in TikZ drawings? The best I've managed to come up with so far is               \draw[->] (A) to node[very near end] {$*$} (B);


title: Formatting of \bigwedge in display math mode

text: I posted an answer on math.se here and in there I used double dollar mode. Now in that mode, I had               \bigwedge^ \hspace{1mm} k V      but upon rendering it looks weird like ![enter image description here](http://i.stack.imgur.com/aebMc.png) How can I bring the `k` closer to the big wedge so that it looks more normal like in single dollar mode? In single dollar mode, we have `$\bigwedge^k V$` looking a lot more natural.


title: Use of \ifmtarg yields spurious space

text: I seem to be getting a spurious space from `\@ifmtarg`. The MWE below yields the image on the left where there is an spurious space before the end of the `hyperref` (for the last two cases). However, if I add an `\unskip` hack I obtain the desired result on the right hand side. ![enter image description here](http://i.stack.imgur.com/S9Ocy.png) ![enter image description here](http://i.stack.imgur.com/8lzrw.png) ## Notes:   * A simple use case of `\@ifmtarg` did not reproduce this problem for me so perhaps it has something to do with the way I am using it.   * The MWE below is going to raise some WTF questions as to why I am using `\renewcommand` but this is a greatly simplified version from my actual use case, and probably can do with a lot of code clean up. But for now, this is the structure I have. ## References:   * How to check if a macro value is empty or will not create text with plain TeX conditionals? ## Code:               \documentclass{article}     \usepackage{ifmtarg}     \usepackage{xcolor}     \usepackage{hyperref}          \makeatletter         \newcommand{\IfIsEmptyArg}[3]{\@ifmtarg{#1}{#2}{#3}}     \makeatother               \newcommand{\SetTitle}[1]{}               \newcommand{\ExtractAndSetTitle}[2]{%          % #1 = macro csname in which the result is stored         % #2 = text of title witout symbol         \renewcommand{\SetTitle}[1]{%             %\latexglobal\expandafter\renewcommand\csname #1\endcsname{%             % Simplify above for this MWE.             \expandafter\gdef\csname #1\endcsname{%                 ##1%                 \IfIsEmptyArg{\Symbol}{}{~\Symbol}%                  %\unskip% Hack!!!!             }%         }%         \SetTitle{#2}%     }%                \begin{document}     \def\Symbol{$\times$}%  This works     \ExtractAndSetTitle{ExtractedTitle}{Times}%     \href{some.pdf}{\ExtractedTitle}%          \def\Symbol{\empty}%          This requires \unskip HACK     \ExtractAndSetTitle{ExtractedTitle}{Times}%     \href{some.pdf}{\ExtractedTitle}%          \def\Symbol{}%          This requires \unskip HACK     \ExtractAndSetTitle{ExtractedTitle}{Times}%     \href{some.pdf}{\ExtractedTitle}%     \end{document}


title: I can't seem to get \fbox and \itemize to work together

text: I'm trying to place some text inside of a box, here's what I'm writing that is not working:               \fbox{The \textit{two-step} model of XMCD:     \begin{itemize}     \item[In the \textit{first step}, circularly polarized X-rays generate photoelectrons     with a spin and/or orbital momentum from a localized atomic inner shell.]     \item[In the \textit{second step}, the 3d shell serves as the detector of the spin or     orbital momentum of the photoelectron. For maximum effect, the photon spin needs to be     aligned with the magnetization direction.]     \end{itemize}     }      It doesn't build and compile, the best I've gotten is a box around the very first sentence and then some weird formatting issues... TexStudio doesn't like me placing the closing bracket for `\fbox` anywhere else.


title: How to generate this table?

text: I only know how to use `\multirow`, but how to use generate the following table in LaTeX? ![enter image description here](http://i.stack.imgur.com/Et6fg.png)


title: Multipart nodes with multipart subparts — style issue

text: I want to typeset multipart nodes that have multipart sub parts — similar to the following diagram (from Miller and Ranum) ![Tree with multipart nodes](http://i.stack.imgur.com/MoBpT.png) I have tried using TikZ horizontal split rectangles inside vertical split rectangles with the following example LaTeX               \documentclass[12pt,a4paper]{article}          \usepackage[parfill]{parskip}          \usepackage{cmbright}     \renewcommand{\familydefault}{\sfdefault}          \usepackage{tikz}     \usetikzlibrary{arrows}     \usetikzlibrary{shapes.geometric}     \usetikzlibrary{shapes.multipart}     \usetikzlibrary{positioning}     \usetikzlibrary{trees}          \pgfkeys{/pgf/rectangle split parts=10}          \newlength{\MMtextNodeWidth}     \newcommand{\MMsetTextNodeWidth}[1]{%       \settowidth{\MMtextNodeWidth}{#1}%     }          \begin{document}          {% \normalsize     \large     \MMsetTextNodeWidth{99}               \begin{tikzpicture}       [myRectangleVSplit/.style={rectangle split             ,rectangle split horizontal=false             ,draw=black,thin,             % ,inner sep=0pt              ,rectangle split ignore empty parts            } % requires library shapes.multipart        ,myRectangleHSplit/.style={rectangle split             ,rectangle split horizontal             ,draw=black,thin             % ,inner sep=0.3333em              % ,outer sep=-0.3333em  % did not appear to do anything             ,rectangle split part align={center,base}              ,rectangle split ignore empty parts            } % requires library shapes.multipart        ,edge from parent/.style={draw,thick,red,-triangle 60}        % ,edge from parent fork down        ,mySingleItem/.style={rectangle,draw=black,thin}        ,level distance=6\MMtextNodeWidth        ,level 1/.style={sibling distance=12\MMtextNodeWidth}         ,level 2/.style={sibling distance=6\MMtextNodeWidth}         ,level 3/.style={sibling distance=3\MMtextNodeWidth}         ,level 4/.style={sibling distance=2\MMtextNodeWidth}        ]            \node[myRectangleVSplit,label=above:A] (nodeA)         {rootnode\nodepart{two}\begin{tikzpicture}%           \node[myRectangleHSplit] (nodeA2)             {child1\nodepart{two}child2};         \end{tikzpicture}         }         child {node[myRectangleVSplit,label=left:B] (nodeB)          {node1\nodepart{two}            \begin{tikzpicture}             \node[myRectangleHSplit] (nodeB2)               {child1\nodepart{two}child2\nodepart{three}child3};            \end{tikzpicture}          }          child {node[mySingleItem,label=left:D] (nodeD) {node3}}          child {node[mySingleItem,label=left:E] (nodeE) {node4}}          child {node[mySingleItem,label=left:F] (nodeF) {node5}}         }         child {node[myRectangleVSplit,label=right:C] (nodeC)            {node2\nodepart{two}child1}           child {node[mySingleItem,label=right:G] (nodeG) {node6}}         };     \end{tikzpicture}     }% end size          \end{document}         The above LaTeX results in ![Result of above LaTeX](http://i.stack.imgur.com/TMfZM.jpg) As you can see, the spacing in nodes with multipart sub parts (nodes A and B in my diagram) leaves a separation that is unwanted — I don't think you can alter the inner sep for just one part (TikZ manual page 451) and even if we got rid of that, the line thickness would be double in parts. Is there a better strategy here ? It looks like an obvious problem but I haven't seen something similar elsewhere. ## Version 2 Instead of trying to use TikZ multi part shapes, here is a version using tables. The table line width `\arrayrulewidth` is 0.4pt which is the same as the TikZ thin line width. The nodes with the tables have `inner sep` set to 0pt so that the arrows meet the table boundary. Is this the right way to do this sort of diagram and could the arrows to nodes D and F be improved — could the start of those arrows be shifted to start nearer the appropriate child1 and child3 in node B Here is the code:                    \documentclass[12pt,a4paper]{article}          \usepackage[parfill]{parskip}          \usepackage{bigstrut}          \usepackage{cmbright}     \renewcommand{\familydefault}{\sfdefault}          \usepackage{tikz}     \usetikzlibrary{arrows}     \usetikzlibrary{shapes.geometric}     \usetikzlibrary{shapes.multipart}     \usetikzlibrary{positioning}     \usetikzlibrary{trees}          \pgfkeys{/pgf/rectangle split parts=10}          \newlength{\MMtextNodeWidth}     \newcommand{\MMsetTextNodeWidth}[1]{%       \settowidth{\MMtextNodeWidth}{#1}%     }          \begin{document}          {% \normalsize     \large     \MMsetTextNodeWidth{99}          \begin{tikzpicture}       [myTabularNode/.style={rectangle,inner sep=0pt}        ,mySingleItem/.style={rectangle,draw=black,thin}        ,edge from parent/.style={draw,thick,red,-triangle 60}        % ,edge from parent fork down        ,level distance=6\MMtextNodeWidth        ,level 1/.style={sibling distance=12\MMtextNodeWidth}         ,level 2/.style={sibling distance=6\MMtextNodeWidth}         ,level 3/.style={sibling distance=3\MMtextNodeWidth}         ,level 4/.style={sibling distance=2\MMtextNodeWidth}        ]         \node[myTabularNode,label=above:A] (nodeA)         {\begin{tabular}{|c|c|}\hline           \multicolumn{2}{|c|}{rootnode\bigstrut} \\ \hline            \bigstrut child1 & child2 \\ \hline          \end{tabular}         }         child {node[myTabularNode,label=left:B] (nodeB)          {\begin{tabular}{|c|c|c|}\hline            \multicolumn{3}{|c|}{node1\bigstrut} \\ \hline          \bigstrut child1 & child2 & child3 \\ \hline           \end{tabular}          }          child {node[mySingleItem,label=left:D] (nodeD) {node3\bigstrut}}          child {node[mySingleItem,label=left:E] (nodeE) {node4\bigstrut}}          child {node[mySingleItem,label=left:F] (nodeF) {node5\bigstrut}}         }         child {node[myTabularNode,label=right:C] (nodeC)            {\begin{tabular}{|c|} \hline            node2\bigstrut \\ \hline            child1\bigstrut \\ \hline            \end{tabular}           }           child {node[mySingleItem,label=right:G] (nodeG) {node6\bigstrut}}         };          \end{tikzpicture}     }% end size          \end{document}           and here is the resulting output: ![Multipart nodes version 2](http://i.stack.imgur.com/txFV2.jpg)


title: removing the numbering of the axis pgfplots

text: How can I remove the axes numbers on this plot Helix as well as the box enclosing it? Would it be possible to now add a tikz 3d axis with pgf plots?               \tdplotsetmaincoords{72}{120}     \begin{tikzpicture}[line join = round, line cap = round, >=triangle 45, tdplot_main_coords]     \draw[->] (0,0,0) -- (0,5,0) node[right, scale = .75] {$y$};     \draw[->] (0,0,0) -- (0,0,5) node[above, scale = .75] {$z$};     \draw[->] (0,0,0) -- (6,0,0) node[below, scale = .75] {$x$};


title: Advanced layout with independent side column

text: I'm creating a CV and I'm rather specific about my layout. I want a constant header on each page. On the left side of the page I want a column containing my personal presentation. It starts with a picture and my personal letter follows. If it doesn't fit on the first page I want it to continue on the following pages. To the right of the column is my actual CV area, where I write about previous jobs, educations etc in a structured manner. That part also continues on following pages until everything has been included. For clearity I've create a picture of the layout which is mostly correct, the only exception is that I don't want a ragged right: ![Desired CV layout](http://i.stack.imgur.com/eoZuN.png) I've used quite a bit of LaTeX but I don't know how to realize this layout. I am not tied to LaTeX, as long as it is TeX based I'm happy. Perhaps it's easier with ConTeX? Or even plain TeX? I have considered using Scribus and having rendered frames containing LaTeX output. It will become a bit messy as I'll have to cut and paste manually at the page start & break.


title: Align columns in multiple subfigure tables in figure environment

text: Here's my code:               \documentclass{article}     \usepackage{booktabs,caption,subcaption}     \begin{document}          \begin{table}[h!]     \caption{Main figure}          \begin{subfigure}{\linewidth}     \caption{Table 1}     %Table 1     \begin{tabular}{|c|c|c|}     \toprule     Header 1 & Header 2 & Header 3 \\     \midrule     Blablabla & Bliblablabla & Blublasdad \\     \bottomrule     \end{tabular}     \end{subfigure}          \begin{subfigure}{\linewidth}     \caption{Table 2}     %Table 2     \begin{tabular}{|c|c|c|}     \toprule     Header 1 & Header 2 & Header 3 \\     \midrule     A & B & C\\     \bottomrule     \end{tabular}     \end{subfigure}          \end{table}          \end{document}      Which gives me this: ![Resulting output](http://i.stack.imgur.com/8iDfk.png) The tables are of different widths. I would like for the columns in both tables to be aligned pair-wise with one another (i.e. "Header 3" column of table 1 is aligned with that of table 2), and have them all centered. How can I do this?


title: How to use two parskips?

text: I'll go straight to the point. I'm using the `parskip` package, in particular with this option `\setlength{\parskip}{0.3\baselineskip plus2pt minus2pt}`. This code:               Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.     \\     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.      produces this: ![Code render](http://i.stack.imgur.com/uKZfu.png) However, I would like to make the `\newline` (or `\\\` in my example) command to show a bigger skip. Using `\\\ \\\` as a workaround, works fine and renders well, but I get some _Underfuill hbox_ error. My question is this: how can I configure the `\newline` paragraph skip or what is the proper way to accomplish it?


title: Tex template for "Call for Papers"

text: I need to prepare a 'Call for Papers' document for an academic conference. Is there any LaTeX template or TeX examples which can help me prepare a Call for Papers doc easily? I am looking to make a conference brochure like in this link.


title: Avoid inline equations starting on left the margin

text: I would like to avoid that ANY inline equation starts on left the margin. The solution I have for that right now is to compile the document, check where this happened and add a `~` in front of the inline equation and then recompile. But this is quite annoying. This               \documentclass{minimal}     \begin{document}     iada iada iada iada iada iada iada iada iada iada iada iada iada iada      iada iada iada iada iada iada $2+2=4$ iada iada iada     \end{document}      would produce a break as               iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada      2+2=4 iada iada iada      But I rather a similar effect as here (only without having to include the `~` everytime!)               \documentclass{minimal}     \begin{document}     iada iada iada iada iada iada iada iada iada iada iada iada iada iada      iada iada iada iada iada iada~$2+2=4$ iada iada iada     \end{document}      which would give               iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada iada       iada 2+2=4 iada iada iada


title: Custom page numbering: large lines between page numbers

text: I have to put two large lines between each page number, like this ![screenshot](http://i.stack.imgur.com/mGIaY.jpg) I am using `MikTeX 2.9` and `WinEDT` and I am on Windows XP. I have consulted the fancyhdr package documentation, but I couldn't find anything that can help me; or maybe I'm not clever enough.


title: Use a box to fill text to right margin

text: I often use an `eqnarray` (I know it's better to use `align`, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of symbols. Here's an example:               \begin{eqnarray*}       f & \text{:} & \begin{minipage}[t]{\textwidth}The objective function that we're trying to maximize.\end{minipage} \\       h & \text{:} & \begin{minipage}[t]{\textwidth}The concave heuristic function that we can use to approximate $f$.\end{minipage}     \end{eqnarray*}      This produces: ![enter image description here](http://i.stack.imgur.com/xAHiS.png) A common problem, however, is that if my descriptions are too long, they will bleed past the end of the page. I've discovered that `minipage` can help in these kinds of situations. I've tried something like this:                   \begin{eqnarray*}           \sqrt{\sin{f-g}} & \text{:} & \begin{minipage}[t]{\textwidth}This is the description of a function but unfortunately goes past the right margin over the edge of the page.\end{minipage}         \end{eqnarray*}      However, this causes the content to bleed over past the right margin, as seen: ![enter image description here](http://i.stack.imgur.com/zHptm.png) One hack to fix this is to manually figure out how 'long' this `minipage` block should be, and use that measurement instead of `\textwidth` in the above code block. This is inflexible and requires change whenever the lenght of my equations change. How do I use a box/environment/other solution to automatically begin a newline when the text hits the absolute right margin on the page? My desired output would look something like: ![enter image description here](http://i.stack.imgur.com/6uzfM.png) Thank you!


title: What is the optimal LaTeX WYSIWYG editor/platform (quality/price) for Windows 8?

text: I am doing lots of Math and also writing; want to use in the future LaTeX and seeking the adivce of this community. What is the optimal WYSIWYG editor/platform (quality/price) for Windows 8? Why?


title: Chapter number alignment with \titleformat

text: Sorry if this problem already emerged in here! I'd like to see how to "push" the red number of the chapter to be aligned with the paragraphs. As you can see bellow, the red number is a slightly far from right margin than paragraph. How could I do that? Thanks a lot!               \documentclass[paper=A4,twoside=true,fontsize=10pt]{scrreprt}     \usepackage[paper=a4paper,includemp,top=2.25cm,left=3.75cm,right=0.75cm,bottom=1.5cm,marginparwidth=1.75cm]{geometry}          \usepackage[dvipsnames]{xcolor}     \usepackage{titlesec}     \usepackage{charter}          \setkomafont{chapter}{\fontfamily{phv}\fontsize{25}{25}\selectfont}          \titleformat{\chapter}[display]         {\usekomafont{chapter}}         {\vspace{-5.5em}\raggedleft{             {\color{green}                 \rule[0pt]{2pt}{5cm}}\quad             {\color{red}                 \fontsize{60}{60}\selectfont\thechapter}             }        }        {-1.1em}        {\raggedright}        %[\vspace{-.55ex}\titlerule]          \setcounter{chapter}{13}          \begin{document}          \chapter{Pairing Lattices}     The cryptographic importance of efficiently computable, bilinear and non-degenerate pairings that are hard to invert in various ways has been amply demonstrated. The currently only known instantiations of pairings suitable for cryptography are the Weil and Tate pairings on elliptic curves or on Jacobians of more general algebraic curves. In view of the applications, efficient algorithms for computing these pairings are of great importance.     \end{document}


title: Left alignment in the algorithm and reset the numbers

text: I'm using algorithmic package and I would like to have certain text be left aligned. Also, would like to reset the numbering for each line inside the algorithm after certain text. The MWE provided to illustrate the question:                \documentclass{article}      \usepackage[utf8]{inputenc}      \usepackage{amsmath}      \usepackage{amsfonts}      \usepackage{amssymb}      \usepackage{graphicx}      \usepackage{algorithmic}      \usepackage{algorithm}      \usepackage{setspace}           \begin{document}      \begin{algorithm}      \caption{algorithm}      \begin{spacing}{1}      \begin{algorithmic}[1]            % I want the below text to be left        % "Some text before the logic:"        \FOR{ any condition z}          \STATE apply logic.        \ENDFOR             % I want the below text to be left        % "Some text before the logic:"            % Here I want the numbering to start from 1 again       \FOR{ any condition x }         \STATE apply logic.       \ENDFOR        \end{algorithmic}       \end{spacing}       \end{algorithm}       \end{document}


title: Getting \cite{} autocompletion to work in gvim with latex-suite on windows 7

text: I am using gvim (latest version) with latex-suite (latest version) on Windows 7 32 bits. This is a fresh install from my previous Ubuntu setup. Everything runs fine except for cite autocompletion, and I can't figure out why. For instance, I want to cite an article whose bib code is "aumann". Usually, I would type `\cite{au}` and then press `f9` to get a split-window with a list of different citing options. Except this split window does not open. In fact, something does happen when I press `f9`. The whole gvim window is doing something really quick (I cannot see what), then it goes back to insert mode. Probably it might just be a matter of a configuration of the `f9` key. However, I can compile this `.tex` file with any reference compiling correctly. It is just that `f9` does not open this very time-saving citation split window. I would appreciate any input on this matter. I suppose I am not the only one with this problem as my setup is standard.


title: Latex longtable not working?

text: I have some data I have put in Latex in order to make a table for a report. The table would extend over two pages but my longtable code seems not to make it to the second page. The code I am using is essentially the one mentioned on this page(http://texblog.org/2011/05/15/multi-page-tables-using-longtable/) but with my data and columns instead. I have six columns. Hopefully some one can spot a silly error here. Thanks!               \documentclass[12pt]{article}     \usepackage{longtable}     \begin{document}     \begin{center}     \begin{longtable}{cccccc}     \caption{A simple longtable example}\\     \hline     \textbf{name} & \textbf{val1} & \textbf{val2} & \textbf{val3} & \textbf{val4} & \textbf{val5}\\     \hline     \endfirsthead     \multicolumn{6}{c}%     {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\     \hline     \textbf{name} & \textbf{val1} & \textbf{val2} & \textbf{val3} & \textbf{val4} & \textbf{val5}\\     \hline     \endhead     \hline \multicolumn{6}{r}{\textit{Continued on next page}} \\     \endfoot     \hline     \endlastfoot     a_01 & 6.75 & 30.75 & 2.75 & -20.75 & 0.05 \\     a_02 & 5.51 & 12.01 & 1.51 & -4.99 & 0.06 \\     b_02 & 11.99 & 50.99 & -0.51 & -60.01 & 0.06 \\     b_01 & 10.49 & 27.99 & 1.99 & -16.01 & 0.03 \\     c_02 & 10.50 & 18.00 & 3.00& -6.49& 0.16 \\     d_01 & 6.73 & 39.73 & -2.26 & -37.26 & 0.08 \\     d_02 & 5.740 & 42.24 & -1.75 & -55.75 & 0.05 \\     d_03 & 7.00 & 58.50 & -1.49 & -60.99 & 0.03 \\     d_04 & 5.73 & 13.73 & 1.73 & -5.26 & 0.03 \\     d_05 & 11.2 & 19.23 & 2.23 & -8.76 & 0.02 \\     d_06 & 10.00 & 33.50 & 0.50 & -34.49 & 0.09 \\     d_07 & 9.23 & 20.73 & 2.23 & -8.76 & 0.07 \\     d_08 & 11.50 & 24.00 & 3.00 & -17.99 & 0.02 \\     d_10 & 10.23 & 32.23 & 2.73 & -20.76 & 0.055 \\     d_13 & 9.23 & 22.73 & -0.76 & -8.76 & 0.05 \\     d_14 & 8.50 & 23.50 & 3.50 & -9.99 & 0.031 \\     d_15 & 8.23 & 28.23 & -0.26 & -26.76 & 0.07\\     d_16 & 8.73 & 25.23 & 3.23 & -7.76 & 0.047 \\     d_19 & 8.73 & 16.23 & 1.24 & -5.76 & 0.07 \\     d_20 & 10.74 & 49.24 & 4.24 & -15.25 & 0.07 \\     d_21 & 9.73 & 38.74 & 4.23 & -19.26 & 0.06 \\     d_22 & 10.24 & 19.74 & 5.24 & -0.25 & 0.03 \\     e_02 & 7.49 & 12.49 & 3.49  & -4.00 & 0.08 \\     f_02 & 7.49 & 12.49 & 3.49 & -4.00 & 0.08 \\     f_03 & 7.99 & 16.49 & 3.49 & -1.00 & 0.03 \\     f_04 & 7.00 & 19.50 & 4.50 & -4.99 & 0.03 \\     f_05 & 6.99 & 14.49 & 3.99 & -4.00 & 0.040 \\     f_06 & 7.50 & 17.00 & 4.50 & -4.49 & 0.027 \\     f_09 & 7.26 & 12.26 & 3.76 & -1.73 & 0.03 \\               \end{longtable}     \end{center}     \end{document}


title: How do I draw merged red black tree into 2,3,4 tree in tikz?

text: I'm using `tikz` in study material and I want to show analogy between RB trees and B-trees (2,3,4 tree). I want my output looks something like this example from Wikipedia. ![merged RB tree into B tree](https://upload.wikimedia.org/wikipedia/commons/7/72/Red- black_tree_example_%28B-tree_analogy%29.svg) For RB tree I'm using almost exactly same settings as is showed in http://www.texample.net/tikz/examples/red-black-tree/ (just different settings for nil node). I could create 3 nodes in same layer, but it would use manually set position. I also do not know, hot to put these nodes together in rectangle. Would anybody give me hints or solution? I will be very grateful. Edit: I've tried this:                   \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows}     \begin{document}          \tikzset{       treenode/.style = {align=center, inner sep=4pt, text centered,font=\sffamily},       bnode/.style = {treenode, circle, white, font=\sffamily\bfseries, draw=black, fill=black, text width=1.5em},       rnode/.style = {treenode, circle, red, draw=red, text width=1.5em, very thick},       nilnode/.style = {treenode, minimum width=1.3em, minimum height=0.9em}     }          \begin{tikzpicture}[->,>=stealth',level/.style={sibling distance = 6cm/#1, level distance = 1.5cm}]           \node [bnode] {13}         child[level distance = 0cm]{ node [rnode] {8}              child{ node [bnode] {1}                  child[level distance = 0cm]{ node [nilnode] {Nil} }                 child[level distance = 0cm]{ node [rnode] {6}                     child{ node [nilnode] {Nil} }                     child{ node [nilnode] {Nil} }                  }             }             child{ node [bnode] {11}                 child[level distance = 0cm]{ node [nilnode] {Nil}}                 child[level distance = 0cm]{ node [nilnode] {Nil}}             }                              }         child[level distance = 0cm]{ node [rnode] {17}             child{ node [bnode] {15}                  child[level distance = 0cm]{ node [nilnode] {Nil}}                 child[level distance = 0cm]{ node [nilnode] {Nil}}             }             child{ node [bnode] {25}                 child[level distance = 0cm]{ node [rnode] {22}                     child{ node [nilnode] {Nil} }                     child{ node [nilnode] {Nil} }                  }                 child[level distance = 0cm]{ node [nilnode] {Nil}}             }         }     ;      \end{tikzpicture}          \end{document}      Output is this: ![my solution using fixed position](http://i.stack.imgur.com/iOGbt.png) I need at least the rectangle as border of merged node. If you also know, how to insert some separator (under the arrows in same layer), it would be even better. //I hope, that now the post meet the rules about question and sorry for previous version.


title: Mixed footnotes in REVTeX

text: I want to put my PRL paper on arXiv, so I have to merge the main text and the supplementary material in the same file. I wonder if it is possible to have _two types_ of footnotes appear in a single document? That is, I want   * the footnotes from the main text to appear in the bibliography (the way it is by default),   * but the footnotes from the supplementary material to appear at the bottom of the page (since I don't want them to mix with the references from the main file). Note that the REVTeX `footinbib` / `nofootinbib` option lets me switch between the two modes, but does not let me to have them both at the same time. Here is a minimal example to play with:               \documentclass[twocolumn,preprintnumbers]{revtex4-1}          \begin{document}     This sentence has a footnote in bibliography~\footnote{Yes.}.          This is another paragraph.          \bibliography{PRL}     \onecolumngrid          \begin{center}     \textbf{Supplementary material}     \end{center}          I want this sentence to have a regular footnote.\footnote{Really?}     \end{document}      This is how it looks like: ![Screenshot from the PDF file.](http://i.stack.imgur.com/DpF8i.png) I want the second footnote to appear at the bottom of the page instead of bibliography.


title: What are some vim macros to assist indexing a book?

text: I am about to re-read my 400-page book and mark certain words for indexing. I'm looking for a set of VIM macros that would help me quickly go through the text marking words and group of words to be indexed. The ideas I have are:   * A keystroke that index the current word (whether the cursor is on the first or any other letter). `foobar` becomes `\alsoindex{foobar}`   * A keystroke that would index the word and the one that follows it. (`foo bar` becomes `\alsoindex{foo bar}`)   * A keystroke that indexes this and the next word as the key word (`foo bar` becomes `foo bar\index{bar|foo}`)   * A keystroke that indexes whatever text is highlighted If I can really dream, I'd like the `\index` to be inserted after the punctuation. For example `foo bar. Baz` becomes `foo bar.\index{bar} Baz` Is this beyond what VIM macros can do?


title: Convert color wavelength to rgb (xcolor)

text: I have the following color: `\definecolor{SEviolet}{wave}{377}` Which is a violet with a wavelength of 377nm. How do I convert this value to rgb? The `xcolor` package goes over some conversions on `wave` defined colors on section 6.3.12. but I find two main difficulties:   1. I'm not sure if I should do the calculations manually or if there is a _better way_ to do it.    2. The equations are defined for conversions of wavelengths over 380 nm, and my color is 377.


title: How can I push footnotes to the bottom of the page in beamer?

text: In beamer, footnotes appear at the bottom of the slide, but above the footline. However, the theme that I'm using has lots of empty space on the left side of the slide that would be perfect for showing these footnotes. Is there a way to position the footnotes in beamer such that the bottom of the lowest footnote is always at the bottom of the page?               \documentclass{beamer}     \usetheme{Warsaw}     \begin{document}      \begin{frame}       abc\footnote{\color{red}foo}      \end{frame}     \end{document}      That code produces this: ![normal output](http://i.stack.imgur.com/sMDyW.png) but I'd like to modify it to produce something more like this: ![output with footnote flush against bottom](http://i.stack.imgur.com/pXIlu.png) (it looks ugly in this case but that's just for demonstration purposes).


title: Underline/Bold/Highlight multiple names in a bibliography

text: This is a variation of the question posted here: Now I want to highlight multiple names in a bibliography. Here is the erroneous solution that I tried.               \documentclass[11pt,letter]{article}      \usepackage[usenames,dvipsnames]{xcolor}       \usepackage{xstring}      \let\originalbibitem\bibitem       \def\bibitem#1#2\par{       \noexpandarg      \originalbibitem{#1}      \StrSubstitute{#2}{Author1}{{\color{blue}\textbf{Author1}}}[\x]     \expandafter\StrSubstitute\expandafter{\x}{Author2}{{\color{blue}\textbf{Author2}}}{\x}     \par}          \begin{document}      \cite{CiteKey1,CiteKey2,CiteKey3,CiteKey4}      \bibliographystyle{IEEEtran}      \bibliography{library}      \end{document}       The problem is that for each reference it makes two copies. In the first copy, it makes blue and bold Author1 and Author2, and in the second copy, it makes blue and bold Author1 only. Any ideas on how to fix this so that the reference only has a single name being made blue and bold? Also whatever solution you propose should be made extensible to up to N authors. Thanks!


title: How to use latex to include EPS images with spaces in theirs names and paths?

text: I have EPS image files (with spaces in their names) in a directory `../../Images space bla bla bla/`. The following MWE simulates the real scenario in a simplified way.               \documentclass{article}          \usepackage{filecontents}     \begin{filecontents*}{\jobname.list}     a space.eps     b space.png     \end{filecontents*}     \usepackage{grffile}          \parindent=0pt     \usepackage{graphicx}     \newread\reader          \begin{document}     \def\stripend#1 \stop{\unexpanded{#1}}     \openin\reader=\jobname.list\relax     \loop         \read\reader to \x         \unless\ifeof\reader         \section{\x}         \edef\x{%           \unexpanded{%             \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]%            }%            {../../Images space bla bla bla/\expandafter\stripend\x \stop}%          }%          \x     \repeat     \closein\reader     \end{document}      Because I want to import all image formats and manipulate them with PSTricks, I have to use latex-dvips-ps2pdf sequence. `xelatex` is not my option because it runs much slower. Shortly speaking, the compilation fails. How to solve it? Note that the available questions and the corresponding answers in this site do not help. I have read all, none works.


title: How to change background color of the frametitle (in warsaw theme)?

text: I'm using `\setbeamercolor{structure}{fg=cyan!90!cyan}` and it works for the top and bottom of the frame. Now I want to change the background color of the frametitles. I've tried with `\setbeamercolor{frametitle}{bg=cyan}` but nothing happens. I want a plain color, not a gradient. ![This is a capture of a frame](http://i.stack.imgur.com/cWVVw.png) I get the following capture of the frame after applying Jesse's answer: ![...](http://i.stack.imgur.com/e6JuR.png)


title: Change color of bullets within an ExampleBlock

text: I have redefined the color of my `exampleblock`s using the following code"               \definecolor{trueblue}{RGB}{0, 115, 197}     \setbeamercolor*{block title example}{bg=trueblue}      However, the bullets within the `exampleblock`s still appear in the default green color. I experimented with perturbation of:               \setbeamercolor{block itemize item example}{fg= trueblue}      but nothing seems to work. Any help would be greatly appreciated! Thank you!


title: Selectively disable dash ligatures in LuaLaTeX

text: With pdfLaTeX, I can print two hyphens using `-{}-`. This does not seem to work in LuaLaTeX. Indeed, the following snippet               \documentclass{minimal}     \begin{document}         en dash -- two dashes -{}-     \end{document}      prints > en dash — two dashes -- when compiled with `pdflatex`, but > en dash — two dashes — when compiled with `lualatex`. How do I print `\--` in LuaLaTeX without disabling ligatures completely?


title: How to avoid overlapping dashed lines in Tikz-Uml associations?

text: I'm using the Tikz-Uml package, and I keep getting overlapping dashed lines when multiple classes implement the same interface:               \documentclass[border=10pt]{standalone}     \usepackage{tikz}     \usepackage{tikz-uml}          \begin{document}          \begin{tikzpicture}         \umlclass[x=-4, y=0]{First}{}{             \umlvirt{+execute(): bool}         }              \umlclass[x=-4, y=-4, type=abstract]{Second}{}{             \umlvirt{+execute(): bool}         }              \umlclass[x=2, y=-4]{Third}{}{             +execute(): bool \\         }              \umlclass[x=2, y=-6]{Fourth}{}{             +execute(): bool \\         }              \umlclass[x=2, y=-8]{Fifth}{}{             +execute(): bool \\         }              \umlimpl{Third}{Second}         \umlHVHimpl[anchors=west and east]{Fourth}{Second}         \umlHVHimpl[anchors=west and east]{Fifth}{Second}     \end{tikzpicture}          \end{document}      results with: ![enter image description here](http://i.stack.imgur.com/ydKPH.png) How can I avoid overlapping dashed lines in associacions for the Fourth and the Fifth class?


title: How to placement author name in centered title at Simple Slide(ConTeXt)?

text: I have problem about placement author name more than one at my simpleslide and my MWE               \usemodule[simpleslides]     [style=Rounded,color=red,     font=Helvetica]     \setupTitle     [ title={TSP\\(Travelling Salesman Problem)},     author={Hirwanto, Novariza Eka Putri, Maya Arum Oktavia, Zara Shelli Meirosa, Sisca Aprila, Dian Nosy Antika, Nani Kurniasih, Dewy Aryani Ruspitasari, Donna Widya Yolanda,Nina Oktariana, Irma Padeta, Dian Ayu Ningtias,Delfa Anesia, Ayu Widya Pratiwi,Fitria Wulandari, Indah Pertiwi, Mareza Yolanda Umar,Revi, Yuri},     date={Date of presentation},     ]     \starttext     \placeTitle     \SlideTitle {The first slide}     Write whatever you want.     \SlideTitle {The second slide}     Continue writing.     \stoptext       I running my code and the result like this ![The Result my Code](http://i.stack.imgur.com/KNR9Z.jpg) How to placement author name in centered title like this : ![The Result Like](http://i.stack.imgur.com/dlMoQ.jpg) I don't know How edit my simple slide.


title: How to customize mouse-over behavior of the url links in the PDF files?

text: Does any one know if I provide an url in LaTex say `\href{url}{Frank}` When I generate the actual pdf, if I put the mouse cursor over Frank but not click it, I want the description to be " _Find me on Linkedin_ " rather than the url itself, how can I do this?


title: Isolated coloring of math symbols and boxes in equations

text: I know that by using a package like `xcolor` I can use `$\color{<color>} <math symbols>$` to typeset math symbols in my preferred color. But how can I isolate the color to specific symbols only? Say for instance the illustrations of commented equations in Howard Anton's Calculus book have colors for underbraces and the bounding text boxes but have none for the included text. Consider the following MWE               \documentclass[]{article}          \usepackage{amsmath}     \usepackage{xcolor}          \begin{document}          \begin{equation}     \dfrac{d}{dx}[\sin(3x^2+2)]=\underbrace{\cos(3x^2+2)}_{\text{     \fbox{\parbox[b][]{2cm}{     Derivative of the outise evaluated at the inside}     }}}     \cdot      \underbrace{6x}_{\text{     \color{blue}{\fbox{\parbox[b][]{1.25cm}{     Derivative of the inside}     }}}}     \end{equation}     \end{document}      which outputs ![enter image description here](http://i.stack.imgur.com/G8jzZ.png) How can I isolate the coloring to the underbraces and the bounding box to blue without affecting the other symbols/text?


title: Unable to include .jpg and .png even though I have declared \usepackage{graphicx} in the preamble, and attached the graphicx.sty in the same folder

text: I am writing a thesis in a large .tex file in Vim. I have a .jpg and .png high quality native images, that converted to .eps result in very a low quality. Visually, it is a lower quality. Therefore, I would like to include the jpg's and png's directly. In the preamble, I declare:                   \usepackage{graphicx}       And I also have the graphicx.sty file in the same folder. When I complie, I get this error: ![enter image description here](http://i.stack.imgur.com/wictY.png) Here is the link to direct download of the image, in order to check previously if a possible solution works: https://www.mediafire.com/?71cl62619ty6c9r My preamble is this:               \documentclass[12pt,a4paper,twoside,openany]{report}     \usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}     \parindent 1 true cm     \usepackage{graphicx}            \usepackage{eufrak}     \usepackage[spanish]{babel}     \usepackage[latin1]{inputenc}       \usepackage[T1]{fontenc}     \usepackage{times}        \usepackage{amsmath}     \usepackage{multirow}     \usepackage{float}     \usepackage{color}     \usepackage[longnamesfirst,super]{natbib}     \setcitestyle{square}     \usepackage{fancyhdr}   %llama al paquete para definición de estilo de pagina     \pagestyle{fancy}       %Idem                                      \renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}}     \lhead{\nouppercase}     \rhead{\nouppercase}     \fancyhead[LE]{{\sf \leftmark}}     \fancyhead[RE]{}     \fancyhead[RO]{{\sf \rightmark}}     \fancyhead[LO]{}     \fancyfoot[LE,RO]{\thepage}     \fancyfoot[CE,CO]{}      \renewcommand{\headrulewidth}{0.0pt}                                    \renewcommand{\baselinestretch}{1.25}     \usepackage{adjustbox}     \usepackage{enumerate}  % Para poder poner un enumerar en I.     \usepackage{courier}     \usepackage[version=3]{mhchem}     \usepackage{rotating}     \usepackage[percent]{overpic}      \begin{document}      Here is the code that introduces the image:               \begin{figure}     \centering          \includegraphics{image.jpg}          \label{image}          \end{figure}      I would appreciate very much if someone could help me, making tests with the image provided above, using my preamble, and the code that introduces the image. (I am writing the thesis .tex file in Vim).


title: Why don't bookmarks appear when using \nofiles?

text: ### Background After a document has been compiled fully, activating `\nofiles` usually causes references and other entities in next run to be the same as in the previous run. This is necessarily exploited when putting multiple logical pages onto a single physical page using the `pgfpages` package, as otherwise references and links would be to the wrong pages. The usual compile workflow is to compile normally (without `\nofiles`), then add `\nofiles`, then compile again. ### Bookmarks The `bookmark` package boasts about having the ability to get bookmarks right in a single run. However, no bookmarks are created at all when `\nofiles` is active, even if previous runs contained bookmarks. **Q** : How can I get the `bookmark` package to work when using `\nofiles`? (Note I already have **an** answer to this question, and am providing the answer for the benefit of others. And maybe someone can improve upon it.) ### MWE (It is not necessary to use `pgfpages` to demonstrate the behaviour, though my real use case is with that package.)               \documentclass{article}     \usepackage{bookmark}          % compile first with \nofiles commented out     % then comment it back in, and compile again     %\nofiles     \setcounter{errorcontextlines}{\maxdimen}          \begin{document}     \section{first}     abc     \section{second}     def          \end{document}      When compiling this as is, the bookmarks for the sections appear fine. When subsequently uncommenting the `\nofiles` line and compiling again, the bookmarks are missing, but they are still wanted!


title: Any package for matrix diagram?

text: Do you know if there is any LaTeX package available to create charts like these? ![enter image description here](http://i.stack.imgur.com/75Sm6.jpg) (Source)


title: No newline after (sub)section?

text: I want my text to appear right after the call to `\subsection{Name}` but I can't find how to do it. I'm using the `article` class. An example of command:               \subsection{a)} Blah blah bla...      produces: > a) > > Blah blah bla... instead of what I want: > a) Blah blah bla... Anything I could do?


title: Configuring portable TeXstudio to use MiKTeX portable

text: I have downloaded and installed the portable versions of TeXstudio and MiKTeX for Windows. I assume I now have to map the commands in TeXstudio to the binaries (or the batch files) in MiKTeX. However, not all commands seem to have corresponding binaries (or batch files). For instance, dvipdf is apparently dvipdfm. I am not sure what gs maps to, as there is again several ghostscript related binaries. Does anyone have a definite working mapping?


title: Manually Split Bibliography in beamer

text: I'm doing a presentation in beamer. I have a total of 8 references and i want to display them as 2 references per slide. Does anyone knows how i can do this? my code:               \documentclass[10pt]{beamer}     \usepackage{beamerthemeshadow}     \usepackage{graphicx}     \usepackage{epsfig}     \usepackage{hyperref}     \usepackage{tikz}     \usepackage{tikzpagenodes}     \usepackage{enumitem}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}          \tikzstyle{block}=[draw opacity=0.7,line width=1.4cm]          \title{Presentation}      \author{Thunder}          \today          \setcounter{tocdepth}{1}     \setbeamertemplate{bibliography item}[text]          \begin{document}     \frame{\maketitle}           \begin{frame}{Contents}         \vspace{-1.20cm}         \tableofcontents     \end{frame}          \include{Objective}     \include{References}          \end{document}      References:               \begin{frame}[allowframebreaks]{References}     \vspace{-0.50cm}     \bibliography{biblio}     \bibliographystyle{unsrt}     \end{frame}


title: Errors but compiling xetex

text: I use xelatex for my thesis. This is my preamble               \documentclass[12pt, a4paper, oneside, openany]{book}     \usepackage{xltxtra}     \usepackage{xgreek}     \usepackage{amsmath}     \usepackage{amsfonts}     %\usepackage{amssymb}     \usepackage{amsthm}     \setmainfont{Times New Roman}      and later in my document i use the align to render an equation               \begin{align*}         \forall s \in Q, \forall w \in \Sigma^\ast, \forall \alpha \in \Sigma, & ~ \delta (s, \epsilon) = s, \delta (s, w\alpha )=\delta (\delta (s, w), \alpha  ); \\         & ~ \sigma (s, \epsilon )= \epsilon, \sigma (s, w\spaha)= \sigma (s,   w)\sgima (\delta (s,w), \alpha ).     \end{align*}      But when i compile it with TexMaker it says finished with errors. The pdf output though is ok. The errors i get from log file have to do with the \end{align} that is undefined               ! Undefined control sequence.     <argument> ...on )= \epsilon , \sigma (s, w\spaha                                                    )= \sigma (s, w)\sgima (\d...          ! Undefined control sequence.     <argument> ... (s, w\spaha )= \sigma (s, w)\sgima                                                    (\delta (s,w), \alpha ).      l.71 \end{align*}      Is there a problem with my equation? It renders normally and correctly on my pdf document If i uncomment amssymb i get different errors like:               ! LaTeX Error: Command `\Finv' already defined.          ! LaTeX Error: Command `\Game' already defined.          ! LaTeX Error: Command `\beth' already defined.          ! LaTeX Error: Command `\daleth' already defined.      I used amssymb before but with latex and didn't have issues. Any help? Texlive 2009 i think (Ubuntu 12.04) and Texmaker 3.2 my env


title: Table Of Content : remove page number for item on the same page

text: I'm looking for a way to remove the page number of entries that are on the same page.   I would like to avoid having repeated page numbers in the ToC.. but I've found nothing explicit enough. Here's an example :               \documentclass[12pts, a4paper]{article}     \begin{document}     \tableofcontents     \newpage       \section{Lorem ipsum}         dolor sit amet         \subsection{consectetur adipiscing}           elit. Donec a diam lectus.             \subsubsection{Sed}       \section{sit amet}        ipsum mauris. Maecenas congue[...]     \newpage       \section{ligula}         ac quam viverra[...]         \newpage         \subsection{nec}     \end{document}      So here, only the first section, the third section, and the 3.1 subsection ("nec") should have a pagenumber.


title: Size of indices (sub- and super- scripts)

text: I've been looking around for a way to change the size of indices (all through the manuscript). I found a lot of stuff, which could work, but I refuse to use _without understandind_. (See for example this post) I while ago, I asked about changing the size of the `\wedge` symbol and the answer was to define a command               \newcommand{\w}{{\scriptstyle\wedge}}      **Question** Is is possible to define something to make all indices a bit smaller?


title: Ensure `description` or `itemize`

text: Is there a way to make sure that a macro can only be used inside a specific environment, say `description`? I am looking for something like the `\ensuremath` macro.


title: Why can't I load miniframes outer theme after Szeged theme?

text: Making some tests to answer omit delete second bar under the navigation bar in szeged theme I found that               \documentclass{beamer}          \usetheme{Szeged}     \useoutertheme[subsection=false]{miniframes}          \begin{document}     \frame{Hello}      \end{document}      finishes with `! LaTeX Error: Option clash for package beamerouterthememiniframes.` and I would like to understand why is it. `Szeged` already load `miniframes` with another option but I thought that was always possible to load other themes in order to combine them.


title: Why does TeX Live "require" yearly updates?

text: Every year TeX Live provides a new version. My recollection is that soon after a new version is released, the old version's `tlmgr` stops fetching updates to packages. They provide upgrading instructions with the disclaimer > This procedure is not bullet-proof, or especially recommended There is no upgrade path for Windows. Looking at the release history, it is not clear to me what is actually changing between releases such that a full new install is required/recommended. I always thought of TeX Live as providing useful binaries (e.g., `pdflatex`, `biber`, and `makeindex`) and a convenient way of updating CTAN packages. What am I missing? Why does TeX Live need a new install every year?


title: Locking the color (z) scale for multiple scatter plots

text: I am trying to show multiple scatter plots on one frame using Beamer's overlays and the `\only` command; see previous stackexchange question and answer. I wish to show the third (z) axis using a color scale. My problem is that the ranges of z values are slightly different, so as I step through the overlays, the colorbar scale bounces around. I realized I could specify the minimum and maximum on the colorbar scale by specifying `ymin` and `ymax` in `colorbar style`, but the mapping of values to colors still changes. Is there a way to lock the mapping so that each plot has the same color for the same z value? In the pictures below, notice how the yellow band goes from starting at 8 in the first picture to closer to 10 in the second, and a gap appears at the bottom end of the scale. * * * ![Overlay ](http://i.stack.imgur.com/5SHqd.png) ![Overlay 2](http://i.stack.imgur.com/RLaYk.png) ![Overlay 3](http://i.stack.imgur.com/Pyzjt.png)               \documentclass{beamer}          \usepackage{pgfplots}          \begin{document}          \begin{frame}{An example}       \pgfplotsset{height=8cm,compat=newest}       \vspace{-1em}       \begin{center}         \begin{tikzpicture}           \begin{axis}[xlabel=X axis, x tick label             style={/pgf/number format/1000               sep={}}, % don't put "," in numbers             ylabel=Y axis, colorbar,colormap/bluered,             colorbar style={ylabel={Z axis},ymin=0,ymax=14}]             \only<1>{\addplot[only marks,scatter,scatter src=explicit]               coordinates { (7228.00,100.00) [1.63] (7403.00, 97.50)                 [0.18] (7053.00,102.50) [14.00] (7140.50, 98.75) [12.83]                 (7490.50,103.75) [0.04] (7315.50, 96.25) [0.54]                 (6965.50,101.25) [14.11] (7009.25, 98.13) [14.02]                 (7359.25,103.13) [0.27] (7534.25, 95.63) [0.45]                 (7184.25,100.63) [4.65] (7096.75, 96.88) [13.66]                 (7446.75,101.88) [0.09] (7271.75, 99.38) [0.84]                 (6921.75,104.38) [14.16] (6943.63, 99.69) [14.12]                 (7293.63,104.69) [0.58] (7468.63, 97.19) [0.25]                 (7118.63,102.19) [13.72] (7206.13, 95.94) [3.47]                 (7556.13,100.94) [0.16] (7381.13, 98.44) [0.21]                 (7031.13,103.44) [14.04] (6987.38, 96.56) [14.02]                 (7337.38,101.56) [0.34] (7512.38, 99.06) [0.22]                 (7162.38,104.06) [10.02] (7074.88, 97.81) [13.84]                 (7424.88,102.81) [0.12] (7249.88, 95.31) [1.59]                 (6899.88,100.31) [14.17] (6910.81, 97.66) [14.14]                 (7260.81,102.66) [0.86] (7435.81, 95.16) [0.26]                 (7085.81,100.16) [13.88] (7173.31, 96.41) [7.70]                 (7523.31,101.41) [0.10] (7348.31, 98.91) [0.31]                 (6998.31,103.91) [14.08] (7042.06, 95.78) [13.88]                 (7392.06,100.78) [0.18] (7567.06, 98.28) [0.34]                 (7217.06,103.28) [1.79] (7129.56, 99.53) [13.38]                 (7479.56,104.53) [0.08] (7304.56, 97.03) [0.61]                 (6954.56,102.03) [14.13] (6932.69, 97.34) [14.11]                 (7282.69,102.34) [0.65] (7457.69, 99.84) [0.14]                 (7107.69,104.84) [13.79] (7195.19, 98.59) [3.77]                 (7545.19,103.59) [0.07] (7370.19, 96.09) [0.24]                 (7020.19,101.09) [14.04] (6976.44, 99.22) [14.08]                 (7326.44,104.22) [0.39] (7501.44, 96.72) [0.33]                 (7151.44,101.72) [12.26] (7063.94, 95.47) [13.79]                 (7413.94,100.47) [0.15] (7238.94, 97.97) [1.56]                 (6888.94,102.97) [14.19] (6894.41, 98.98) [14.17]                 (7244.41,103.98) [1.11] (7419.41, 96.48) [0.20]                 (7069.41,101.48) [13.96] (7156.91, 95.23) [10.57]                 (7506.91,100.23) [0.15] (7331.91, 97.73) [0.40]                 (6981.91,102.73) [14.10] (7025.66, 97.11) [13.97]                 (7375.66,102.11) [0.22] (7550.66, 99.61) [0.23]                 (7200.66,104.61) [2.73] (7113.16, 98.36) [13.59]                 (7463.16,103.36) [0.06] (7288.16, 95.86) [0.83]                 (6938.16,100.86) [14.14] (6960.03, 96.17) [14.06]                 (7310.03,101.17) [0.48] (7485.03, 98.67) [0.21]                 (7135.03,103.67) [13.41] (7222.53, 99.92) [1.82]                 (7572.53,104.92) [0.17] (7397.53, 97.42) [0.19]                 (7047.53,102.42) [14.01] (7003.78, 98.05) [14.03]                 (7353.78,103.05) [0.29] (7528.78, 95.55) [0.45]                 (7178.78,100.55) [5.68] (7091.28, 96.80) [13.70]                 (7441.28,101.80) [0.10] (7266.28, 99.30) [0.92]                 (6916.28,104.30) [14.16] (6905.34, 96.33) [14.13]                 (7255.34,101.33) [0.97] (7430.34, 98.83) [0.16]                 (7080.34,103.83) [13.94] (7167.84, 97.58) [8.69] };}             \only<2>{\addplot[only marks,scatter,scatter src=explicit]               coordinates { (7228.00,100.00) [14.73] (7403.00, 97.50)                 [14.86] (7053.00,102.50) [1.80] (7140.50, 98.75) [4.95]                 (7490.50,103.75) [14.89] (7315.50, 96.25) [14.81]                 (6965.50,101.25) [1.44] (7009.25, 98.13) [2.00]                 (7359.25,103.13) [14.84] (7534.25, 95.63) [14.89]                 (7184.25,100.63) [14.52] (7096.75, 96.88) [3.40]                 (7446.75,101.88) [14.88] (7271.75, 99.38) [14.78]                 (6921.75,104.38) [1.24] (6943.63, 99.69) [1.46]                 (7293.63,104.69) [14.80] (7468.63, 97.19) [14.88]                 (7118.63,102.19) [2.19] (7206.13, 95.94) [14.43]                 (7556.13,100.94) [14.90] (7381.13, 98.44) [14.85]                 (7031.13,103.44) [1.69] (6987.38, 96.56) [2.10]                 (7337.38,101.56) [14.83] (7512.38, 99.06) [14.89]                 (7162.38,104.06) [9.88] (7074.88, 97.81) [2.69]                 (7424.88,102.81) [14.87] (7249.88, 95.31) [14.71]                 (6899.88,100.31) [1.22] (6910.81, 97.66) [1.52]                 (7260.81,102.66) [14.78] (7435.81, 95.16) [14.87]                 (7085.81,100.16) [2.28] (7173.31, 96.41) [12.70]                 (7523.31,101.41) [14.90] (7348.31, 98.91) [14.83]                 (6998.31,103.91) [1.55] (7042.06, 95.78) [2.73]                 (7392.06,100.78) [14.86] (7567.06, 98.28) [14.90]                 (7217.06,103.28) [14.74] (7129.56, 99.53) [3.51]                 (7479.56,104.53) [14.89] (7304.56, 97.03) [14.80]                 (6954.56,102.03) [1.36] (6932.69, 97.34) [1.67]                 (7282.69,102.34) [14.79] (7457.69, 99.84) [14.88]                 (7107.69,104.84) [2.29] (7195.19, 98.59) [14.48]                 (7545.19,103.59) [14.90] (7370.19, 96.09) [14.85]                 (7020.19,101.09) [1.71] (6976.44, 99.22) [1.67]                 (7326.44,104.22) [14.82] (7501.44, 96.72) [14.89]                 (7151.44,101.72) [3.55] (7063.94, 95.47) [3.12]                 (7413.94,100.47) [14.87] (7238.94, 97.97) [14.72]                 (6888.94,102.97) [1.08] (6894.41, 98.98) [1.31]                 (7244.41,103.98) [14.76] (7419.41, 96.48) [14.87]                 (7069.41,101.48) [1.95] (7156.91, 95.23) [9.66]                 (7506.91,100.23) [14.89] (7331.91, 97.73) [14.82]                 (6981.91,102.73) [1.47] (7025.66, 97.11) [2.30]                 (7375.66,102.11) [14.85] (7550.66, 99.61) [14.90]                 (7200.66,104.61) [14.70] (7113.16, 98.36) [3.36]                 (7463.16,103.36) [14.88] (7288.16, 95.86) [14.79]                 (6938.16,100.86) [1.35] (6960.03, 96.17) [1.98]                 (7310.03,101.17) [14.81] (7485.03, 98.67) [14.89]                 (7135.03,103.67) [2.30] (7222.53, 99.92) [14.72]                 (7572.53,104.92) [14.91] (7397.53, 97.42) [14.86]                 (7047.53,102.42) [1.78] (7003.78, 98.05) [1.98]                 (7353.78,103.05) [14.84] (7528.78, 95.55) [14.89]                 (7178.78,100.55) [14.35] (7091.28, 96.80) [3.29]                 (7441.28,101.80) [14.88] (7266.28, 99.30) [14.77]                 (6916.28,104.30) [1.21] (6905.34, 96.33) [1.66]                 (7255.34,101.33) [14.77] (7430.34, 98.83) [14.87]                 (7080.34,103.83) [1.95] (7167.84, 97.58) [11.95] };}             \only<3>{\addplot[only marks,scatter,scatter src=explicit]               coordinates { (7228.00,100.00) [1.63] (7403.00, 97.50)                 [0.18] (7490.50,103.75) [0.04] (7315.50, 96.25) [0.54]                 (7359.25,103.13) [0.27] (7534.25, 95.63) [0.45] (7096.75,                 96.88) [13.66] (7271.75, 99.38) [0.84] (7293.63,104.69)                 [0.58] (7468.63, 97.19) [0.25] (7206.13, 95.94) [3.47]                 (7556.13,100.94) [0.16] (7381.13, 98.44) [0.21]                 (7337.38,101.56) [0.34] (7512.38, 99.06) [0.22]                 (7424.88,102.81) [0.12] (7249.88, 95.31) [1.59]                 (7260.81,102.66) [0.86] (7435.81, 95.16) [0.26] (7173.31,                 96.41) [7.70] (7523.31,101.41) [0.10] (7348.31, 98.91)                 [0.31] (7392.06,100.78) [0.18] (7567.06, 98.28) [0.34]                 (7217.06,103.28) [1.79] (7479.56,104.53) [0.08] (7304.56,                 97.03) [0.61] (7282.69,102.34) [0.65] (7457.69, 99.84)                 [0.14] (7195.19, 98.59) [3.77] (7545.19,103.59) [0.07]                 (7370.19, 96.09) [0.24] (7326.44,104.22) [0.39] (7501.44,                 96.72) [0.33] (7413.94,100.47) [0.15] (7238.94, 97.97)                 [1.56] (7244.41,103.98) [1.11] (7419.41, 96.48) [0.20]                 (7506.91,100.23) [0.15] (7331.91, 97.73) [0.40]                 (7375.66,102.11) [0.22] (7550.66, 99.61) [0.23]                 (7200.66,104.61) [2.73] (7463.16,103.36) [0.06] (7288.16,                 95.86) [0.83] (7310.03,101.17) [0.48] (7485.03, 98.67)                 [0.21] (7222.53, 99.92) [1.82] (7572.53,104.92) [0.17]                 (7397.53, 97.42) [0.19] (7353.78,103.05) [0.29] (7528.78,                 95.55) [0.45] (7178.78,100.55) [5.68] (7441.28,101.80)                 [0.10] (7266.28, 99.30) [0.92] (7255.34,101.33) [0.97]                 (7430.34, 98.83) [0.16] (7167.84, 97.58) [8.69]                 (7053.00,102.50) [1.80] (7140.50, 98.75) [4.95]                 (6965.50,101.25) [1.44] (7009.25, 98.13) [2.00] (7096.75,                 96.88) [3.40] (6921.75,104.38) [1.24] (6943.63, 99.69)                 [1.46] (7118.63,102.19) [2.19] (7031.13,103.44) [1.69]                 (6987.38, 96.56) [2.10] (7162.38,104.06) [9.88] (7074.88,                 97.81) [2.69] (6899.88,100.31) [1.22] (6910.81, 97.66)                 [1.52] (7085.81,100.16) [2.28] (6998.31,103.91) [1.55]                 (7042.06, 95.78) [2.73] (7129.56, 99.53) [3.51]                 (6954.56,102.03) [1.36] (6932.69, 97.34) [1.67]                 (7107.69,104.84) [2.29] (7020.19,101.09) [1.71] (6976.44,                 99.22) [1.67] (7151.44,101.72) [3.55] (7063.94, 95.47)                 [3.12] (6888.94,102.97) [1.08] (6894.41, 98.98) [1.31]                 (7069.41,101.48) [1.95] (7156.91, 95.23) [9.66]                 (6981.91,102.73) [1.47] (7025.66, 97.11) [2.30] (7113.16,                 98.36) [3.36] (6938.16,100.86) [1.35] (6960.03, 96.17)                 [1.98] (7135.03,103.67) [2.30] (7047.53,102.42) [1.78]                 (7003.78, 98.05) [1.98] (7091.28, 96.80) [3.29]                 (6916.28,104.30) [1.21] (6905.34, 96.33) [1.66]                 (7080.34,103.83) [1.95] };}           \end{axis}         \end{tikzpicture}       \end{center}     \end{frame}          \end{document}


title: What is abstract for?

text: Could someone explain me what abstract http://en.wikibooks.org/wiki/LaTeX/Document_Structure#Abstract is used for? I don't see the sense.


title: How can I make circle plots?

text: I have not idea how to call these things, but I just saw a paper with the following figure ![enter image description here](http://i.stack.imgur.com/ujtSQ.gif) and I was wondering how one would go about doing it in LaTeX. The closest thing I saw on TeXample.net was the Ford Circles example, but that's for a very specific case. I would like to see a way use this as a plotting device. At this point, I am not even sure how to do it in "normal" programming language, so perhaps the question is ill-placed. At any rate, I'd love to hear what people think!


title: 'only marks' option breaking cycle lists

text: I am trying to create a series of plots where data is presented with fitted curves, so what I need is for the data plots to be scatter plots with hollow marks and the fits to be solid lines with no marks. Sometimes several plots need to be presented in the same curve so colors need to change, too. The end result should be a blue scatter plot with a blue line plot, then a red scatter plot with a red line plot, and so on. I am trying to achieve this using a cycle multi list, and setting a list of colors and a list of markers as this:                \documentclass[12pt]{article}             \usepackage{pgfplots}        \pgfplotsset{width=7cm,compat=newest}             \begin{document}        \begin{tikzpicture}        \begin{axis}[            cycle multi list={            red,blue,green\nextlist             solid\nextlist            mark=o,mark=none,mark=triangle,mark=none,mark=square,mark=none             },             samples=3,         legend entries={0,...,20},        legend pos=outer north east        ]             \addplot[only marks] {x};         \addplot {x};         \addplot[only marks] {x-2};        \addplot {x-2};         \addplot[only marks] {x-4};         \addplot {x-4};        \addplot[only marks] {x-6};         \addplot {x-6};         \addplot[only marks] {x-8};         \addplot {x-8};         \addplot[only marks] {x-10};         \addplot {x-10};        \end{axis}         \end{tikzpicture}             \end{document}      The problem is that, using the [only marks] option, the marks lose all styling and the plot looks like this: ![Plot with black filled circles](http://i.stack.imgur.com/jaoXa.png) And, if I remove the option, the marks look as I expect them to, but then the "scatter" plots have lines, which is no good. Like this (the first line plot is moved down a bit so you can see it): ![Marks are OK, but lines are not!](http://i.stack.imgur.com/8CbYI.png) How can I make 2 look like this: ![What I need](http://i.stack.imgur.com/Nhlxc.png)


title: Can I easily tune the mathdesign fonts?

text: My main text font is Utopia. The `mathdesign` package contains a set of mathematical symbols that match this font pretty nicely. I noticed two small things that I don't like, especially in comparison with other math fonts. With my MWE               \documentclass{article}     \usepackage[utopia]{mathdesign}     \usepackage[no-math]{fontspec}     \defaultfontfeatures{Ligatures={TeX}}     \setmainfont{Utopia}          \begin{document}     \begin{equation}         a \propto \frac{\partial B}{\partial C}     \end{equation}     \end{document}      the symbol for proportionality is extremely large. Furthermore the distance between the partial sign and the variable is also much larger than for example in the standard font. ![enter image description here](http://i.stack.imgur.com/AE0XB.png) Here it looks in my opinion much better: ![enter image description here](http://i.stack.imgur.com/wTgBq.png) Can I somehow tune these two aspects of mathdesign in combination with the Utopia font?


title: How can I get a servicemark in latex?

text: I looked at Will Robertsons answer to Entering Unicode characters in LaTeX which explains how to enter a unicode character but it uses `\textemdash` and I don't know if a LaTeX command exists. The unicode number is 2120 and it looks like: # Some service℠


title: Avoid just nearly filled last lines

text: Old school typesetters never allowed the last line of a paragraph to be _just nearly_ filled. Either it would be clearly shorter than the other lines or it would be stretched to align with the right margin. (I assume the standard value where they decided to stretch the line was the depth of the indentation.) If you have the time the same result can be achieved by checking all pages and manually adding `\parfillskip=0pt` to all offending paragraphs. For example, this document:               \documentclass{article}     \usepackage[paperwidth=3in,paperheight=3in]{geometry}     \begin{document}     \thispagestyle{empty}     asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf     asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf     sasdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf     asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf     asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdfxx      \end{document}      renders to a paragraph with an almost-full last line: ![Almost-full Paragraph](http://i.stack.imgur.com/S0nVL.png) I've earlier been told that it would most probably be impossible to get pdfLaTeX to do this automatically. If this is true -- could it be done with LuaTeX?


title: Displaying conventional math theta using kmath

text: Bookman is one of my favourite fonts, and I was happy to discover the kmath package. Although it's designed for use with the greek language:               \usepackage{kmath, kerkis}      gives you bookman font and bookman math, besides a very ellegant integral sign. I was very happy with the package until I had to use the command:               $\theta$      the problem is that it renders a theta which is very different from the conventionally used theta. I know that the conventional theta exists in kerkis, but it is inserted only in textmode and in the middle of words. Is there any workaround to display a nice theta? (One that worked for me was very brute-force and ugly: loading the package upgreek and forcing an uprigth theta. But that results in lots of complains by TeX for loading too many math alphabets, and, also, well, theta is upright while the surrounding math is slanted)


title: How do I put the top of an image at the top of a page

text: So I just have one line for the image:                \includegraphics[width=10mm]{C:/Users/PhizKid/Desktop/image1.png}\\      And then some text to explain the image below it. But when I try to print it out, approximately top half of the image is cut off and it runs off the top of the page. How do I move the image down so that the top of the image is at the top of the page, but below the page number at the top of the page (where the text usually starts if you begin to type in a new page)?


title: Insert symbols inside verbatim mode LaTeX

text: I cannot insert mathematics symbols inside a verbatim mode in LaTeX. This how I do:               \usepackage{alltt}           \begin{verbatim}           1- Train triggers model \(  X_{i}  \)  -> Y_j (X_i: source phrase      composed of i words, Y_j : target phrase composed of j words           \end{verbatim}      Any ideas?


title: How to draw tangent lines at control points of a path in TikZ?

text: I'm drawing smooth paths by using the               \draw plot[smooth, tension=.7] coordinates ...      command. Now I would like to draw tangents at the specified coordinates. I alreade tried Jake's answer, but I cannot figure out how to define the tangent points at certain coordinates instead of path positions like `0.4`. My current code is the following:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}          \begin{document}     \begin{tikzpicture}[scale=0.35, transform shape,         tangent/.style={             decoration={                 markings,% switch on markings                 mark=                     at position #1                     with                     {                         \coordinate (tangent point-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,0pt);                         \coordinate (tangent unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (1,0pt);                         \coordinate (tangent orthogonal unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,1);                     }             },             postaction=decorate         },         use tangent/.style={             shift=(tangent point-#1),             x=(tangent unit vector-#1),             y=(tangent orthogonal unit vector-#1)         },         use tangent/.default=1     ]          \begin{scope}[every node/.style={fill,draw,blue!50,thick,circle}]       \draw[thick, tangent=0.9] plot[smooth, tension=.7] coordinates {(-8,5) (-5.5,7) (-3,5.5)};       \node (m1) at (-8,5)   {};       \node (m2) at (-5.5,7) {};       \node (m3) at (-3,5.5) {};       \draw [blue, use tangent] (-0.5,0) -- (0.5,0);     \end{scope}          \begin{scope}[every node/.style={fill,draw,red!50,thick,circle}, rotate=8, shift={(-0.5,3.5)}]       \draw[thick] plot[smooth, tension=.7] coordinates {(-8,5) (-5.5,7) (-3,5.5)};       \node at (-8,5)   {} edge (m1);       \node at (-5.5,7) {} edge (m2);       \node at (-3,5.5) {} edge (m2);     \end{scope}          \end{tikzpicture}     \end{document}      Which leads to: ![output of the above code](http://i.stack.imgur.com/isPSa.png) I would like to draw tangent lines at the blue nodes and then replace the three direct connection lines by lines which start at the red nodes and finish orthogonally at the tangent lines: ![desirable output](http://i.stack.imgur.com/PfzX4.png) Thanks in advance!


title: pdftex: Embedded pdf graphics not printed or partially printed

text: My problem concerns PDF not being portable across platforms. I use these apps: * MacOSX 10.6.8. * Texshop 2.47, right out of the box, nothing customized. Default command is LaTeX. Default script is pdftex. * Adobe Illustrator CS5. I am writing a long book. Some of the graphics are bitmap images (e.g. TIFFs), that are imported to Adobe Illustrator using "Place." Then I add labels to the Illustrator document, save as EPS, and convert to PDF with Acrobat Distiller X 10.1.3. The bitmap images are not placed as links; they are actually in the Illustrator EPS document. Finally the LaTeX document includes the PDF via \includgraphics and graphicx. It works perfectly -- for me. The problems are that   * My friends print the document, e.g. from Mac LionOS or from Windows, and these figures are sometimes blank (other, simpler figures print fine).   * My other friends view the document on iPad, and the same figures are again blank. You can find one of the bad figures here: Illustrator EPS version: http://www.physics.upenn.edu/~pcn/BadFigs/g113pereiraABClabel.eps PDF version created by Acrobat Distiller: http://www.physics.upenn.edu/~pcn/BadFigs/g113pereiraABClabel.pdf When this was embedded in my LaTeX document, processed by pdftex, and then printed from Mac Preview in OSX 10.7.?, two of the three bitmaps were blank. One bitmap was printed, along with the labels added in Illustrator. It's hard to know where to begin here, so any general advice is welcomed. Thanks.


title: Changing a tex4ht css class

text:
I am using htxelatex to convert a tex file + config file of my own. I want to change the generated css objects but I can't seem to be able to. ## What I am doing In my config file I use the following               \Css { .cmcsc-10x-x-248{font-size:90\%;} }       But my generated css keeps the original size               .cmcsc-10x-x-248{font-size:206%;}      Is there a way to edit that class from my config file without using another method (scripting), I want to edit several of them. Here are some working demos. I just want to make the font smaller.               \documentclass[12pt]{report}               \newenvironment{LOGOAMIGE}{}{~\\[1cm]      \vspace{2in}}     \newenvironment{navbartext}{}{}     \newcommand{\HRule}{\rule{\linewidth}{0.2mm}}          \begin{document}          \begin{titlepage}     \begin{center}          % Upper part of the page. The '~' is needed because \\     % only works if a paragraph has started.     \begin{LOGOAMIGE}       THELOGO     \end{LOGOAMIGE}     \begin{navbartext}         \huge \textsc{Digitarc PX3\texttrademark System}\\[0.1cm]     \end{navbartext}     \begin{navbartext}         \huge \textsc{Electrode Arc Regulator}     \end{navbartext}               \vfill     \begin{navbartext}     % Bottom of the page         User Manual\\[0.5cm]         \Large EAF 1.3     \end{navbartext}     \end{center}     \end{titlepage}          \end{document}      and the config file               \edef\hash{\string#}     \Preamble{xhtml}       \Configure{@HEAD}{\HCode{<link              rel="stylesheet" type="text/css"              href="css/bootstrap.min.css" />\Hnewline}}       \Configure{@HEAD}{\HCode{<link              rel="stylesheet" type="text/css"              href="css/bootstrap-theme.min.css" />\Hnewline}}          \begin{document}       \ConfigureEnv{titlepage}         {\HCode {}}          {\HCode {
}} {} {}       \ConfigureEnv{LOGOAMIGE}         {\HCode {
                 <button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="\#main-nav">                 Toggle navigation                                                                  </button>                      }}         {\HCode {

         }}       \Css { .cmcsc-10x-x-248{font-size:90\%;} }           \makeatletter     \let\ifes@LaTeXe\iftrue     \makeatother     \Configure{BODY}{\HCode{}}{\HCode{


title: Vertical line in middle of a binomial tree (lattice)

text: This is a really tough problem that I have no idea how to solve. I wish to have a dotted veritcal line in the middle of my binomial tree, with a `$\tau$` underneath.. The kind of thing I want is as follows: ![enter image description here](http://i.stack.imgur.com/mmnaP.png) The code for the image WITHOUT this line (or the associated \tau) is as follows:                \documentclass{article}           \usepackage{tikz}      \usetikzlibrary{matrix,fit,backgrounds}                      \begin{document}                \begin{tikzpicture}[>=stealth,sloped]         \matrix (tree) [%           matrix of nodes,           minimum size=1cm,           column sep=2.5cm,           row sep=0.4cm,         ]         {                     &                    &                     &  $_\tau S_0$             \\                   &                    &  $_{2\Delta t}S_0$  &                  \\                   & $_{\Delta t}S_0$   &                     &  $_\tau S_1$             \\           $_0S_0$ &                    &  $_{2\Delta t}S_1$  &                  \\                   & $_{\Delta t}S_1$   &                      &  $_\tau S_2$         \\                   &                    &  $_{2\Delta t}S_2$  &                \\                   &                    &                     &  $_\tau S_3$    \\         };              \draw[->] (tree-4-1) -- (tree-3-2) node [midway,above] {$p$};         \draw[->] (tree-4-1) -- (tree-5-2) node [midway,below] {$1-p$};         \draw[->] (tree-3-2) -- (tree-2-3) node [midway,above] {};         \draw[->] (tree-3-2) -- (tree-4-3) node [midway,below] {};         \draw[->] (tree-5-2) -- (tree-4-3) node [midway,above] {};         \draw[->] (tree-5-2) -- (tree-6-3) node [midway,below] {};              \draw[->] (tree-2-3) -- (tree-1-4) node [midway,above] {};         \draw[->] (tree-2-3) -- (tree-3-4) node [midway,below] {};         \draw[->] (tree-4-3) -- (tree-3-4) node [midway,above] {};         \draw[->] (tree-4-3) -- (tree-5-4) node [midway,below] {};         \draw[->] (tree-6-3) -- (tree-5-4) node [midway,above] {};         \draw[->] (tree-6-3) -- (tree-7-4) node [midway,below] {};            \end{tikzpicture}            \end{document}


title: Saving TeX formulae as images

text: I have a bit of a problem. I want to publish all things mathematical on blogs that do _not_ have any MathJax support and, as a result, I'm forced to use images instead. Now, I've seen LyX and MATLAB and the like save LaTeX formulae to images but I'm not impressed with the result. In particular, I find Word's rendering of formulae to be vastly superior, but it's not a TeX environment. So my question is, can I have the best of both worlds? I want to write in TeX but I want rendering as beautiful as this: ![](http://hexlet.org/wp-content/uploads/image008.png)


title: Flexible, user-generated text in fancyhdr

text: I'm working on a scholarly edition of a philosophical manuscript and looking for a way to have fancyhdr display the page break of the original MS. In the text I put "|" at the position of the page break, and now – naive as I am – I am looking for a command to (manually) put an information like "1|2" in the header (right on even, left on odd pages). I hope that my English is not too bad, and that I did express the question clearly enough.


title: Bibliography entry out of alphabetical order with character Ş

text: I'm pretty new to TeX so please forgive me if this requires just a simple solution. I'm writing a thesis that uses almost 100% English characters exclusively, except for a case where an author I cite has a Turkish name, starting with the letter Ş. I'm using `natbib` and `bibtex`, with the `bibliographystyle` = `chicago`. I've gotten everything to work just as I want it, except in the bibliography the Turkish author's entry is not in alphabetical order, instead appearing between the letters C and E.   * Coleman, R. G. and X. Wang (1995). Overview of the Geology and Tectonics of UHPM. In R. G. Coleman and X. Wang (Eds.), Ultrahigh Pressure Metamorphism (1 ed.)., Chapter 1, pp. 1–32. Cambridge: Cambridge University Press.   * Şengor, A. M. C. and B. A. Natal’in (1996). Paleotectonics of Asia: fragments of a synthesis. In A. Yin and M. Harrison (Eds.), The Tectonic Evolution of Asia (1 ed.)., Chapter 21, pp. 486–640. Cambridge: Cambridge University Press.   * Ernst, W. G. and J. G. Liou (2008, November). High- and ultrahigh-pressure metamorphism: Past results and future prospects. American Mineralogist 93(11-12), 1771–1786. I've read through everything I can think of at this point but I can't figure out why it's in that order and can't figure out how I can somehow customize it so that it shows up with the `S` authors. I know that there are suggestions to use `biblatex` and `biber`, but I am novice enough that I don't know if I can figure out how to get that to work (getting to this point where I am was difficult enough...). I even tried using the `key` field in the `.bib` file, but that was not successful. Here is the `.bib` entry:               @incollection{Sengor1996,     abstract = {},     address = {Cambridge},     author = {\c{S}eng\"{o}r, Ali Mehmet Cel\^{a}l and Natal'in, Boris A.},     booktitle = {The Tectonic Evolution of Asia},     chapter = {21},     edition = {1},     editor = {Yin, An and Harrison, Mark},     keywords = {Asia,cratons},     mendeley-tags = {Asia,cratons},     pages = {486--640},     publisher = {Cambridge University Press},     title = {{Paleotectonics of Asia: fragments of a synthesis}},     year = {1996}}      Any ideas for what I should try? I'm sure there is a solution but I'm not familiar enough with the system to know where it may lie. Much appreciated!


title: How do I get the concrete font for math only?

text: Is there a package that loads the concrete font, but only for the math, not for the normal text?


title: Defining a command that accepts multiple but non-determined in total number of parameters

text: I have pretty regular and large descriptions in enumerated items.               \begin{enumerate}     \item Producers       \begin{description}         \item[ Vision: ] abc ...          \item[ Contribution:]  def ...          ...       \end{description}     \end{enumerate}      What I expect is to have `myitem` command that accepts multiple, but not not determined in total number of parameters like this:               \begin{enumerate}       \myitem{Producers}         {Vision:}{abc ...}         {Contribution:}{def ...}         {...}{...}         ...     \end{enumerate}      How can I define command in this case?               \renewcommand{myitem}{...}