title: Easily assign undefined ligatures with pdfLaTeX?

text: Ulrike Fischer showed how Linux Libertine's special ligatures are accessible. Even though she also pointed me at a chapter of the LaTeX Graphics Companion, I'm not really sure how to get these ligatures automatically, probably because I'm by no means well versed in fonts and I'm not likely to ever be. What I'm eventually looking for is something like               \newligature{tt}{\libertineGlyph{uniE03C}}      which assigns the glyph at `0xeo3c` (tt-ligature) to the input letter combination `tt`. I'm assuming there is no package that can do this, but if it's possible, this could be a great addition to the list of packages that originated at tex.sx! Perhaps somebody who knows their way around the guts of (La)TeX could try to imitate the way the standard ligatures like _ff_ are produced? The code points of the Libertine ligatures are listed on page 87 of Libertine's German documentation for XeTeX, but I hope this solution will work for about any font. Obviously, using the ligatures with XeLaTeX is trivial, but I like being independent of fonts installed on my system, and with the solution desired here, you could specify exactly which ligatures you want.


title: Package glossaries - single spaced \printglossaries?

text: I'm trying to make a single-spaced glossary using the glossaries package but it seems as though the package has a default level of spacing in between entries even in single-spaced mode for the document. I'm using the ut-thesis style, which is based on report.cls. Examples below. Double-spaced text:               \documentclass[11pt]{ut-thesis}     …     \usepackage[nonumberlist]{glossaries}     \makeglossaries     …     \begin{document}     \printglossaries     …     \end{document}      ![double](http://i.stack.imgur.com/E4grj.png) Single-spaced text:               \documentclass[11pt,singlespaced]{ut-thesis}     …     \usepackage[nonumberlist]{glossaries}     \makeglossaries     …     \begin{document}     \printglossaries     …     \end{document}      ![single](http://i.stack.imgur.com/ObA8Z.png) This is simply not single-spaced enough for my purposes. I checked the documentation for glossaries and I hope I didn't miss anything there but nothing for `\printglossaries` or otherwise seemed to indicate that spacing could be altered. I tried using the leading package to help my case. This is the best that I could come up with:               \documentclass[11pt,singlespaced]{ut-thesis}     …     \usepackage{leading}     \usepackage[nonumberlist]{glossaries}     \makeglossaries     …     \begin{document}     \leading{10pt}     \printglossaries     …     \end{document}      ![leading](http://i.stack.imgur.com/muZKS.png) It works okay and it's what I'm using right now but I'm not sure why I can't get it to be any better. Any ideas? Also, I'm a bit new here so if someone feels like correcting my taxonomy with respect to tagging this question, please feel free.


title: Best LaTeX-aware diff and merge tools for subversion

text: What's a good (or preferably, in your opinion the best) way to make subversion diff'ing and merging LaTeX-aware? I know latexdiff and latexrevision exist, but it's not clear to me how to make those part of a normal subversion merge workflow. Especially since you have to edit the resulting file to specify which changes you want. If there's some way to set up subversion or TortoiseSVN to automate this, that would be great. I'm going to be merging some fairly large documents, and I don't expect my collaborators to have any discipline about maintaining line breaks etc. I only recently learned about this myself. Windows tools are preferred. I do have Cygwin with X and the Windows svn client, so I can likely get UNIX tools to work.


title: Use \setkeys{Gin} to set default scale value doesn’t work

text: I’d like to make all my graphic a little smaller and tried to set the `scale`-value of `\includegraphics` globally with `\setkeys{Gin}` but while changing `width` works fine `scale` has no effect.               \documentclass{scrartcl}          \usepackage[demo]{graphicx}% use some grafic from you computer and switch of demo         \setkeys{Gin}{width=0.75\textwidth}% works fine     %   \setkeys{Gin}{scale=0.5}% doesn't work          \begin{document}     Nulla facilisi. Sed aliquam nulla quis nunc porttitor pellentesque. Nunc.     Nulla facilisi. Sed aliquam nulla quis nunc porttitor pellentesque. Nunc.     \begin{figure}         \centering         \includegraphics{somegraphic}     \end{figure}     \end{document}      I know that it’s better to produce graphics in the right size but I’m using vector graphics and it’s ok for me to scale them a bit in this case. BTW: Is there an image that is available in most TeX-systems for creating an MWE


title: Filling specified area by random dots in TikZ

text: I want to reproduce the following diagram in Tikz. ![enter image description here](http://i.stack.imgur.com/963dE.png) LaTeX code of my MWE is below:               \documentclass[tikz]{standalone}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}          \draw [-latex, thick] (0, 0) -- (0, 6) node  [above] {\Large{$e$}};     \draw [-latex, thick] (0, 3) -- (6, 3) node  [right] {\Large{$\widehat{Y}$}};          \draw [thick] (0, 0.5) -- (5, 4);     \draw [thick] (0, 1.75) -- (5, 5.25);          \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/ScMDg.png) I wonder how to fill specified area by dotted points. Any help will be highly appreciated. Thanks **Edited** How about this one? ![enter image description here](http://i.stack.imgur.com/oGKD5.png)


title: Listings alternative

text: Well like the title says I am asking if there is an alternative to the `listings` package. With more programming language definitions and the likes, and updated definitions for the current languages.


title: Column width in multicol and using float environments

text: I'm trying to write my first report ever using LaTeX. I want it to have two columns so I'm using the `multicol` package. The columns are too narrow though, I want it to be wide like, say, elsevier style articles. Also is there really no way of inserting floats (figures, pgf graphics) into this two column setup? I need to show some images and make a graphic to show my experimental results.


title: Turning off auto numbering on the right of equations in eqnarray

text: Here is my part of script.               \begin{eqnarray}     \Rightarrow (n+1)^2+5(n+1)+1\nonumber     &=& n^2+2n+1+5n+5+1\nonumber\\     &=& (n^2+5n+1)+2n+6\nonumber\\     &=& 2k+2n+6 \cdots\text{for some $k\in\N$}\nonumber\\     &=& 2(k+n+3)\nonumber     \end{eqnarray}      Here, I used \nonumber but I'm being tired to put them everytime I type this thing... Is there a way to turn off the autonumbering in equnarray?


title: How to get Proper APA referencing format

text: I'm trying to use reference in apa format for my report.               \documentclass[a4paper,12pt,openany]{report}     \usepackage{apacite}     \begin{document}     \bibliographystyle{apacite}          \chapter{Intro}          A traditional professional asset management firms      are organized in two basic ways \cite{book:SAPM}     .....blah..blah....          \bibliographystyle{apacite}     \bibliography{ref}     \end{document}      My bib file looks like               @book{ book:SAPM,                author = "{Frank  Reily, Keith Brown}",                title = "Analysis of Investments and Management of Portfolios",                publisher = "CENGAGE Learning",                year = "2012"      }      My output is... > References > > Frank Reily, Keith Brown. (2012). Analysis of investments and management of > portfolios. CENGAGE Learning. Also at the citation sentence in the paragraph it is showing like this... > A traditional professional asset management firms are organized in two basic > ways[] The desired output should be... > Bibliography > > Reily F.,Brown K. (2012). "Analysis of investments and management of > portfolios", CENGAGE Leraning. At the citation sentence in the paragraph, it should be like.... > A traditional professional asset management firms are organized in two basic > ways (Riely, Brown, 2012). I'm a beginner. So, kindly explain in detail. Also I think there is some problem with my aux and bbl files. Some times I have to delete these files for the pdflatex to run.


title: How can I use a usepackage only for one section?

text: I need 2 different usepackages: one for a floatchart ( http://www.texample.net/tikz/examples/simple-flow-chart/) and one for my whole document. . **For the Floatchart:**               \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}      **For my document:**               \usepackage[pdftex]{graphicx}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}      If I insert both, texmaker says: _option clash for package graphicx and for package inputenc._ What can I do? Can I specify the usepackage for the floatchart only for the floatchart?


title: Graphical placeholder for "variables"

text: ## Question The image below exactly shows what I am trying to accomplish in LaTeX. ![3 + _ = 7?](http://i.stack.imgur.com/SU0fx.png) ### Research   * Using `\fbox` (as Peter Grill suggested in this post):              \documentclass[]{article}     \usepackage{amsmath}          \begin{document}     \newcommand*{\Y}{\textbf{\fbox{?}}}%          \[3 + \Y = 7\]          \end{document}      I thought of replacing the question mark by a space and then removing the top border, but I have not found any material on how to hide specific borders.   * Using `\fcolorbox`: Again, I do not know how to hide the top border.   * Using `mdframed`: This does not work in math mode as far as I know. * * * ## Small improvement to Donut E. Knot's post (former accepted answer) Donut E. Knot's post perfectly answered the question, however, I want to provide a small improvement which is too small for an own answer, but still too useful for being lost in a comment. Add the following code under Knot's code:               \newdimen{\phWidth}%         \newcommand\phAutoWidth[1]{%         \setlength{\phWidth}{\widthof{#1}}%         \ph[\phWidth]{#1}}      You now no longer need to explictly specify a width, instead, it will be automatically computed.


title: \ref shows names of referenced objects

text: For some reason when I reference something in my text, it also gives the type of object referenced (like Tabel 1, instead of just 1). I understand, that this is not standard latex behavior, but I do not explicitly load packages, that should alter this. I guess, one of the packages I use silently does this. Here is my MWE:               \documentclass[12pt, english, parskip, a4paper]{scrartcl}          \usepackage[journal=angew]{chemstyle}   % loads chemscheme, graphicx          \begin{document}         \begin{table}[h]             \caption{Test}             \begin{tabular}{c}                 Test \\              \end{tabular}             \label{tab:test}         \end{table}              Look at Table~\ref{tab:test}.     \end{document}      This will print > Look at Table Table 1. How can I get rid of this? Thanks!


title: Does anyone know an easy way to produce a table with cells spanning multiple pages using latex?

text: I'm looking into the possibility of using latex for programmatically generating PDFs from templates with placeholders and some textual data. The current solution I have is based on reportlab, and it works, but I have to break cells that don't fit into one page. If I could just insert the text into a template and have latex do it for me, I would not need to do the cell breaking myself. However, I couldn't find a way to do it without getting into complicated latex programming, and I don't want to go there. Maybe someone knows an existing package that can do it? Alternatively, maybe someone knows another way to generate PDFs with big complex tables from Python code. I found this library: http://appyframework.org/pod.html, but OpenOffice scares me a bit. -- added on 21/03 -- I'm basically interested in the general solution, but the first concrete example would be the following: There's a table of the following structure:               +---+---+     | 1 | 4 |     +---+   |     | 2 |   |     +---+   |     | 3 |   |     +---+---+      Where each cell can has enough content to not fit on one page. Ideally I would like something like this to be produced on paper:               [PAGE1]     +---+---+     | 1 | 4 |     +---+---+          [PAGE2]     +---+---+     | 1 | 4 |     +---+   |     | 2 |   |     +---+---+          [PAGE3]     +---+---+     | 2 | 4 |     +---+   |     | 3 |   |     +---+---+          [PAGE4]     +---+---+     | 3 |   |     +---+---+


title: Asymptotes in a plot

text: I'm using TikZ to plotting some functions for a document. For example, I want to plot 1/(x+1). So I did something like this:               \begin{tikzpicture}[>=stealth,x=3mm,y=3mm]     \draw (0,5) node[above]{\fimg $y=f(x+1)=\dfrac{1}{x+1}$};     \clip (-5,-5) rectangle (5,5);     \ejes[1]{-4}{4}{-4}{4}     \draw[samples=100] plot(\x,{1/(\x+1)});     \end{tikzpicture}      where `\ejes[style]{xmin}{xmax}{ymin}{ymax}` is command, that I have defined before to draw the axes (join with `\fimg`). My expected output for the code below was just the function, but I get this: ![enter image description here](http://i.stack.imgur.com/ix4pX.jpg) So, TikZ automagically put the vertical asymptote at x=-1. That isn't a bad thing, but now I want to have some control over it. For example I want dotted lines for vertical asymptotes. How can I do that?


title: Creating a second caption for a figure that won't appear in the figure's list index and is aligned with the first

text: I decided to write my **completion of course work** for my computer's science degree using LaTeX, contrary to university's popular choice, MS Word. I had a great time venturing though this tool and I must say that I loved it, but I'm having some troubles adapting some of the formatting rules that my university uses, specially with captions. Inserting figures is a piece of cake, but formatting the caption to look like the way my university wants it is not. Take a look at the picture below: ![enter image description here](http://i.stack.imgur.com/EoZn5.png) The figure shown here is centered to the text, and so is the first caption. I've achieve this with the caption package:               \usepackage[center,small]{caption}      The second caption must be left aligned with the first one, and it must not be present at the figures list index. Even after some though search on the internet, I could not find anything related to creating a second caption (or `subcaption`) right bellow the first one. Actually, I don't think this kind of customization has ever been implemented by any package at all. So what I want to know is: "What's the best way to achieve this specific caption formatting?". I have another doubt related to customizing the figure's list index at the begging of my paper. I'm using these two commands ...               % Creates an auxiliary command for the criation of the figures list     \newcommand{\figfillnum}[1]{%       {\hspace{1em}\normalfont\dotfill}\nobreak       \hb@xt@\@pnumwidth{\hfil\normalfont #1}{}\par}          % Changes the way that the figure's list is printed     \renewcommand*{\l@figure}[2]{         \leftskip 3cm         \rightskip 2cm         \parfillskip -\rightskip         \parindent 0cm         \@tempdima 2.0em         \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip         {Figure \normalfont #1}\nobreak \figfillnum{#2}}      ... to create an output like this one:               Figure 1    Gauntlet ................................................... 1      What I need to do here is to add a dot after the number following the "Figure" text, like this:               Figure 1.   Gauntlet ................................................... 1      I studied those two commands, and I realized that the second one (`\l@figure`) is the one responsible for placing the "Figure" text, and that it's `#1` argument represents this text: "`1 \tab Gauntlet`". Now, I don't know where `#1` comes from, but what I need to do here is to place a `dot` between those two words contained in the `#1` argument. Is this possible? How?


title: Strict \titlespacing without glue

text: ## Problem Description TeX seems to _adjust the vertical space_ in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization is given under (a) in the Figure below: ![\(a\) Minimal Working Example showing that \\titlespacing..{12pt}{0pt} is not applied \(b\) Real case in which this occurs, not included as source.](http://i.stack.imgur.com/jkzXC.png) Even though I specify e.g. `\titlespacing{\section}{0pt}{**12pt**}{**0pt**}`, there seems to be a vertical layout that will stretch out the spacing between headings, which is unacceptable, at least for the specific conference style I have to fulfill. ## Question Can I get rid of this "vertical justification"? Any possible explanations are more than welcome. Here is my MWE that reproduces the behaviour (Note: I am using xelatex, but using latex yields the same behaviour):               \documentclass[a4paper]{article}     \makeatletter     \usepackage{multicol}     % ----important----     \usepackage[noindentafter]{titlesec}     \titlespacing{\section}{0pt}{12pt}{0pt}      \titlespacing{\subsection}{0pt}{10pt}{0pt}     \titlespacing{\subsubsection}{0pt}{3pt}{0pt}     % -----------------     \makeatother     \begin{document}       \title{Foo Bar 2013: A personal journey through a typographic nightmare.}       \author{Waldorf A. and Stattler B.}       \maketitle       \begin{abstract}       this would in fact be longer, thus we make a space here       \vspace{10cm}       \end{abstract}       \begin{multicols}{2}       \section*{first order heading}       All that is gold does not glitter. Not all those who wander are lost. The old that is            strong does not wither.       \section*{first order heading}       \subsection*{second order heading}       Deep roots are not reached by the frost.         \section*{first order heading}       \subsection*{second order heading}       From the ashes a fire shall be woken. A light from the shadows shall spring. Renewed        shall be blade that was broken. The crownless again shall be king.       \section*{first order heading}       \subsection*{second order heading}       \subsubsection*{third order heading}       Not all that have fallen are vanquished. A king may yet be without crown. A blade        that was broken be brandished.        \end{multicols}     \end{document}      ## References I have seen questions that deal with the topic, but none that really helped:   * What is Glue Stretching says that "any glue is composed by a fixed part, a stretchable part and a shrinkable part. Each of these parts can be zero ... expressed via `<fixed part> plus <stretchable part> minus <shrinkable part>`. Tried that, but no luck - problem persists.   * Read somewhere (I don't exactly recall where, to my shame!) that you should try specifying e.g. -0 as "space after", i.e. `\titlespacing{\section}{0pt}{12pt}{-0}`. No luck.


title: Code improvement for PSTricks figure

text: Consider the following example. **Code**               \documentclass{article}          \usepackage{pstricks-add}          \begin{document}          \def\laengde{60 }     \psset{unit=0.04}     \begin{pspicture}(260,260)     \pnode(0,0){P1}     \pnode(!0 \laengde){P2}     \pnode(!0 2 \laengde mul){P3}     \pnode(!0 3 \laengde mul){P4}     \pnode(!0 4 \laengde mul){P5}     \pnode(!\laengde 4 \laengde mul){P6}     \pnode(!2 \laengde mul 4 \laengde mul){P7}     \pnode(!3 \laengde mul 4 \laengde mul){P8}     \pnode(!4 \laengde mul 4 \laengde mul){P9}     \pnode(!4 \laengde mul 3 \laengde mul){P10}     \pnode(!4 \laengde mul 2 \laengde mul){P11}     \pnode(!4 \laengde mul \laengde){P12}     \pnode(!4 \laengde mul 0){P13}     \pnode(!3 \laengde mul 0){P14}     \pnode(!2 \laengde mul 0){P15}     \pnode(!\laengde 0){P16}     \psline(P1)(P2)     \psarc(P3){\laengde}{270}{90}     \psline(P4)(P5)(P6)     \psarc(P7){\laengde}{180}{0}     \psline(P8)(P9)(P10)     \psarc(P11){\laengde}{90}{270}     \psline(P12)(P13)(P14)     \psarc(P15){\laengde}{0}{180}     \psline(P16)(P1)     \pspolygon(P3)(P7)(P11)(P15)     \multido{\iA=5+1,\iB=6+1}{8}{%       \pcline[offset=12pt]{|<->|}(P\iA)(P\iB)       \ncput*[nrot=:U]{\laengde}     }     \end{pspicture}          \end{document}      **Output** ![enter image description here](http://i.stack.imgur.com/glmm9.jpg) **Question** I'm pretty sure the code can be improved/optimized. How do I do that? * * * _Update 1_ I have tried to simplify the creation of the sixteen `\pnodes`, but when they are replaced be the four outcommented lines in the code below, I cannot compile.               \documentclass{article}          \usepackage{pstricks-add}          \begin{document}          \def\laengde{60 }     \psset{unit=0.04}     \begin{pspicture}(260,260)     %\multido{\iA=1+1}{4}{\pnode(!0 \iA \laengde mul){P\iA}}     \pnode(!0 1 \laengde mul){P1}     \pnode(!0 2 \laengde mul){P2}     \pnode(!0 3 \laengde mul){P3}     \pnode(!0 4 \laengde mul){P4}     %\multido{\iB=1+1,\iC=5+1}{4}{\pnode(!\iB \laengde mul 4 \laengde mul){P\iC}}     \pnode(!1 \laengde mul 4 \laengde mul){P5}     \pnode(!2 \laengde mul 4 \laengde mul){P6}     \pnode(!3 \laengde mul 4 \laengde mul){P7}     \pnode(!4 \laengde mul 4 \laengde mul){P8}     %\multido{\iD=0+-1,\iE=9+1}{4}{\pnode(!4 \laengde mul \iD \laengde mul){P\iE}}     \pnode(!4 \laengde mul 3 \laengde mul){P9}     \pnode(!4 \laengde mul 2 \laengde mul){P10}     \pnode(!4 \laengde mul 1 \laengde mul){P11}     \pnode(!4 \laengde mul 0 \laengde mul){P12}     %\multido{\iF=0+-1,\iG=9+1}{4}{\pnode(!\iF \laengde mul 0){P\iG}}     \pnode(!3 \laengde mul 0){P13}     \pnode(!2 \laengde mul 0){P14}     \pnode(!1 \laengde mul 0){P15}     \pnode(!0 \laengde mul 0){P16}     \psline(P16)(P1)     \psarc(P2){\laengde}{270}{90}     \psline(P3)(P4)(P5)     \psarc(P6){\laengde}{180}{0}     \psline(P7)(P8)(P9)     \psarc(P10){\laengde}{90}{270}     \psline(P11)(P12)(P13)     \psarc(P14){\laengde}{0}{180}     \psline(P15)(P16)     \pspolygon(P2)(P6)(P10)(P14)     \multido{\iH=4+1,\iI=5+1}{8}{%       \pcline[offset=12pt]{|<->|}(P\iH)(P\iI)       \ncput*[nrot=:U]{\laengde}     }     \end{pspicture}          \end{document}


title: Pgfplotstable and multirow

text: In the following example, I'm trying to typeset a table using `pgfplotstable` with an `every even row` rule. Is there a way to deactivate it for some given columns ? Or alternatively, is there a way to override the color of rows of some given columns ?               \documentclass{article}     \usepackage{colortbl}     \usepackage{listings}     \usepackage{pgfplotstable}     \usepackage{booktabs}     \usepackage{multirow}     \begin{document}     \pgfplotstabletypeset[     columns/Z/.style={         column name={},         assign cell content/.code={             \ifnum\pgfplotstablerow=0                 \pgfkeyssetvalue{/pgfplots/table/@cell content}{\multirow{4}{*}{##1}}%             \else                 \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%             \fi         },     },     postproc cell content/.code={         \ifodd\pgfplotstablerow\relax         \else             % ah - an even row number.             \ifnum\pgfplotstablecol>0                 % ah - introduce a cell color:                 \pgfkeysalso{@cell content={\cellcolor[gray]{0.9}#1}}%             \fi         \fi     },     every head row/.style={before row=\toprule,after row=\midrule},     every last row/.style={after row=\bottomrule},     debug,     columns/a/.style={column name={A},         column type={S[scientific-notation=engineering, round-precision=2, round-mode=places, table-format=2.2e1]}, string type,     },     row sep=\\, col sep=&]{% here: inline data in tabular format:     Z & a & b \\     data & 1.43 & 2 \\          & 3.23 & 4 \\          & 51231.2 & 6 \\          & 0.007 & 8 \\     }     \end{document}      ![mwe](http://i.stack.imgur.com/fi15F.png) What I would like is to have "data" displayed correctly, without gray in the `multicolumn`. EDIT: I have changed my MWE according to the answer, as you can see, something is wrong with the `siunitx` package now. This is because of using `#1` in the `postproc`, but I don't know how to fix that. ![W](http://i.stack.imgur.com/Std6J.png)![WO](http://i.stack.imgur.com/QqZ1k.png)


title: What does the command \ifCLASSINFOpdf mean?

text: I found this section in my journal template:               \ifCLASSINFOpdf       % \usepackage[pdftex]{graphicx}       % declare the path(s) where your graphic files are       % \graphicspath{{../pdf/}{../jpeg/}}       % and their extensions so you won't have to specify these with       % every instance of \includegraphics       % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}     \else       % or other class option (dvipsone, dvipdf, if not using dvips). graphicx       % will default to the driver specified in the system graphics.cfg if no       % driver is specified.       % \usepackage[dvips]{graphicx}       % declare the path(s) where your graphic files are       % \graphicspath{{../eps/}}       % and their extensions so you won't have to specify these with       % every instance of \includegraphics       % \DeclareGraphicsExtensions{.eps}     \fi      I would like to know what is the meaning of the `\ifCLASSINFOpdf` macro. I tried googling, but I found no satisfactory answer. I tried searching my The **Not So Short Introduction to LATEX 2ε** to no avail. Does it detect if I am using **pdfLaTeX** or **LaTeX** or does it do something else?


title: Appendix pages placement and layout

text: I use `\chapter{Appendix I}` to create an Appendix I title however it appears as shown below: ![enter image description here](http://i.stack.imgur.com/y1R1J.png) Then I use `\chapter*{Appendix I}` to remove the Chapter 10 part but when I do that the Appendix I no longer appears in the Table of Contents section. What should I do to achieve an Appendix page that appears both in the table of contents and also doesnt have a Chapter X with it ?


title: Page displaying how BibTeX entries are presented to the user

text: Can anyone provide a page which demonstrates how BibTeX entries are presented to the user? I found this page which has an explanation about each entry, but I need a website showing how a style (I prefer the default style used by LaTeX) interprets those BibTeX elements and how they are presented to the user. Let's take for example `article` > Required fields: author, title, journal, year and > Optional fields: volume, number, pages, month, note, key Is there a webpage to demonstrate how an article will be presented if all fields are available?


title: PaloAlto theme in beamer : logo

text: In PaloAlto theme, I would like to have the logo on the top right corner instead of the top left corner so that the sidebar begins at the top left. Any Idea ? thanks


title: pgfplots: how to check if addplot filters all data

text: is there an easy way to check if a \addplot(+) table [...] command in PGFPLOTS has any drawn any points? The reason is that I want to process the data dynamically, and if the plot is empty, the legend should be omitted. Here is a MWE:               \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}          \pgfkeys{             /tr/rowfilter/.style 2 args={                     /pgfplots/x filter/.append code={                             \edef\arga{\thisrow{#1}}                             \edef\argb{#2}                             \ifx\arga\argb                             \else                                     \def\pgfmathresult{}                             \fi                     }             }     }          \usepackage{filecontents}     \begin{filecontents}{diagram.dat}     x y kind     1 10 a     1 20 a     2 13 b     2 15 b     \end{filecontents}     \begin{document}          \begin{tikzpicture}     \begin{axis}[filter discard warning=false]         \addplot table[/tr/rowfilter={kind}{a},/tr/rowfilter={x}{2}] {diagram.dat}; % if the plot doesn't contain curve a,         \addlegendentry{curve a}                                                    % <- don't execute this line         \addplot table[/tr/rowfilter={kind}{b},/tr/rowfilter={x}{2}] {diagram.dat};         \addlegendentry{curve b}     \end{axis}     \end{tikzpicture}          \begin{tikzpicture}     \begin{axis}[filter discard warning=false]         \addplot table[/tr/rowfilter={kind}{a},/tr/rowfilter={x}{1}] {diagram.dat};         \addlegendentry{curve a}         \addplot table[/tr/rowfilter={kind}{b},/tr/rowfilter={x}{2}] {diagram.dat};         \addlegendentry{curve b}     \end{axis}     \end{tikzpicture}          \end{document}      In the first diagram the legend is wrong: the line belongs to dataset of curve b! I thought of something like \newif\ifplotexists, but, as there are two filters, how to decide if \plotexistsfalse or \plotexiststrue should be set?


title: How to force a specific entry to be first in the bibliography?

text: I'm writing a paper and I need a specific entry in the bibliography go first in the list. The rest of entries should be sorted as usual. I use `plain` bibliography style and an external `.bib` file. For example: there are three authors: Jack Alien, John Bravo and Ally Complex and their papers will be sorted in references as [1] Alien, [2] Bravo, [3] Complex. But I'd like it to be: [1] Complex, [2] Alien, [3] Bravo. I know, that I can do something like in How to change order of a bibliography style manually (bilingual bibliography), but the single `.bib` file is used in many projects and in those projects the references should be sorted in standard way. So, how to accomplish, that a specific reference will be placed first in the bibliography?


title: How to number the index with tocbibind and idxlayout?

text: I'm trying to number the index section in my document. If I use only `tocbibind` it works perfectly, but once I add `idxlayout`, it doesn't work. `idxlayout` doesn't have a `numindex` option like `tocbibind`. Here is a MWE:               \documentclass[12pt]{article}          \usepackage{makeidx}     \makeindex          \usepackage[numindex]{tocbibind}     \usepackage[totoc]{idxlayout}          \begin{document}          \tableofcontents          \section{Test}          Test\index{test}          \printindex          \end{document}      How to add the number to the index section and keep `idxlayout`?


title: Is there a TikZ dashed line decorator or some other way to make part of a path dashed?

text: ## The problem I would like to draw a parabolic path in TikZ that changes (abruptly) from a continuous line to a dashed line. The obvious way to change the appearance of a path over the course of its length is using the decoration library however no dashed line decorator exists. Is there an easy way to do this that doesn't involve drawing multiple concatenated parabolas? Werner's suggestion (which has now converted into an answer) works pretty well! But is there an easier way?


title: clickable problem book

text: I started to write a `clickable` problem book using `fortextbook`. The question: after compiling to PDF, and setting the page fit to width in the Acrobat Reader if I click on e.g. question 1. it jumps to solution 2., or click to the square next to solution 1. jumps to question 2. The code:               \documentclass{article}     \usepackage{amsmath}          \usepackage[latextoc,dvips,pdflatex]{web}  % dvipsone, dvips, pdftex, dvipdfm          \usepackage[links,pdftex,fortextbook,nomarginwrite,usecustomdesign,     ftbsolns, forcolorpaper,noseparationrule,usexkv]{eqexam}          \begin{document}          \begin{probset}     {{\thesection} Solutions}%\label{probGrpANS}          \begin{problem}[7]     Solve the equation $ x^2 - 3x + 1 = 0 $ using the \emph{method of     completing the square}. \ANS{$x=\frac{3}{2}-\frac{\sqrt5}{2}$,                 $\frac{3}{2}+\frac{\sqrt5}{2}$}     \begin{solution}[]     \begin{ssol}     $ x = \frac{3}{2}-\frac{\sqrt5}{2},\                 \frac{3}{2}+\frac{\sqrt5}{2}$     \end{ssol}     \begin{lsol}     We use standard methods.     \begin{align*}         x^2 - 3x + 1 &= 0 \\         x^2 - 3x &= -1\\         x^2 - 3x + \frac{9}{4} &= -1 + \frac{9}{4}\\         ( x - \frac{3}{2} )^2 &= \frac{5}{4}\\                 x - \frac{3}{2} &= \pm\frac{\sqrt5}{2}\\                 x &= \frac{3}{2} \pm\frac{\sqrt5}{2}                 \qquad\makebox[0pt][l]{\text{The solutions are $\boxed{ x = \frac{3}{2}-\frac{\sqrt5}{2},\                 \frac{3}{2}+\frac{\sqrt5}{2}}$}}     \end{align*}     \end{lsol}     \end{solution}     \end{problem}          \begin{problem}     Solve the equation $ x^2 - 4x + 8 = 0 $ using the \emph{quadratic formula}.     Simplify your final answer. \ANS{$x=2\pm2\imath$}     \begin{solution}[]     \begin{ssol}     $x=2\pm2\imath$     \end{ssol}     \begin{lsol}     We apply the quadratic formula:     \begin{align*}         x &= \frac{4\pm\sqrt{16-4(1)(8)}}{2}\\           &= \frac{4\pm\sqrt{16-32}}{2}\\           &= \frac{4\pm\sqrt{-16}}{2}\\           &= \frac{4\pm 4\imath}{2}\\           &= 2\pm2\imath     \end{align*}     The solutions are $ \boxed{ x = 2-2\imath,\ 2+2\imath }$.     \end{lsol}     \end{solution}     \end{problem}          \end{probset}          \newpage          \includeexersolutions          \end{document}


title: fontspec: Load an italic text font so that it has the same x-height as the "main" (roman) text font

text: Suppose that one likes the "upright" shape of the font `Sabon Next LT Pro`, but prefers the "italic" shape of the font `Garamond Premier Pro` over the italic shape of Sabon Next. (Both fonts are Garamond-style fonts, by the way.) Unfortunately, the x-heights of these fonts are quite different, creating some visual unpleasantness when they're typeset side by side. I know of the option               Scale = MatchLowercase      when loading sans-serif and typewriter fonts via `\setsansfont` and `\setmonofont` statements; these options serve to scale the sans-serif and typewriter fonts to the x-height of the main text font in use. Unfortunately, there seems to be no (documented) way to set the x-height of an italics text font in the same easy way. Is this impression incorrect? In short, how should I go about scaling my italics text font to equate its x-height to that of the main (Roman/upright) text font?


title: Modern CV template 'oldstyle' is not using kurier font

text: I need help getting the kurier font to work in modern CV template 'oldstyle'. I'm using `moderncv` version 1.5.1, I followed the instructions on tug for font installation on MacOSX (10.7). I also have the font installed as Open Type (I'm using XeLaTeX). Because the `moderncvoldstyle.sty` checks for `kurier.sty`, I've put that file into the same directory as the `.tex` file. I can compile without errors and get a file with (some) standard font. Any hints where I should start looking for the problem? Thank you! Edit: Example               \documentclass[11pt,a4paper,sans]{moderncv}          \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \moderncvstyle{oldstyle}     \moderncvcolor{green}     \usepackage[scale=0.75]{geometry}     \name{John}{Doe}     \phone[mobile]{+01 999999}          \begin{document}     \makecvtitle     \section{Me}     \cvitem{cvitem}{test}     \end{document}      Log:               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.12.28)  27 JAN 2014 14:39     entering extended mode      restricted \write18 enabled.      file:line:error style messages enabled.      %&-line parsing enabled.     **CVmin.tex     (./CVmin.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (./moderncv.cls     Document Class: moderncv 2013/04/29 v1.5.1 modern curriculum vitae and letter d     ocument class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size11.clo     File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/etoolbox/etoolbox.sty     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX          (/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count80     )     \etb@tempcnta=\count81     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/ifthen.sty     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: xetex.def on input line 225.          (/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def     File: xetex.def 2013/04/29 v0.96 LaTeX color/graphics driver for XeTeX (RRM/JK)          )     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/ifxetex/ifxetex.sty     Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/fontenc.sty     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          (/usr/local/texlive/2013/texmf-dist/tex/latex/base/t1enc.def     File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file     LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/lm/lmodern.sty     Package: lmodern 2009/10/30 v1.6 Latin Modern Fonts     LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'     (Font)                  OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.     LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'     (Font)                  OML/cmm/m/it --> OML/lmm/m/it on input line 23.     LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'     (Font)                  OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.     LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'     (Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.     LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'     (Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.     LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'     (Font)                  OML/cmm/b/it --> OML/lmm/b/it on input line 27.     LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'     (Font)                  OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.     LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'     (Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'     (Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'     (Font)                  OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'     (Font)                  OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'     (Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'     (Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'     (Font)                  OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'     (Font)                  OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'     (Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.     )     ...     (./moderncvcollection.sty     Package: moderncvcollection 2013/04/29 v1.5.1 moderncv collections     \c@collection@iterator=\count116     ) (./moderncvcompatibility.sty     Package: moderncvcompatibility 2013/04/29 v1.5.1 modern curriculum vitae and le     tter compatibility patches     )          ...          . Defining document command \defaultfontfeatures with arg. spec. 'om' on line     . 108.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \addfontfeatures with arg. spec. 'm' on line 144.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newfontfeature with arg. spec. 'mm' on line 156.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newAATfeature with arg. spec. 'mmmm' on line 164.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newICUfeature with arg. spec. 'mmm' on line 172.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \aliasfontfeature with arg. spec. 'mm' on line     . 201.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \aliasfontfeatureoption with arg. spec. 'mmm' on     . line 203.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newfontscript with arg. spec. 'mm' on line 208.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newfontlanguage with arg. spec. 'mm' on line 235.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \DeclareFontsExtensions with arg. spec. 'm' on     . line 256.     .................................................     Variant \prop_gput:cnV already defined; not changing it on line 582     Variant \prop_gput:cnx already defined; not changing it on line 583     \l_fontspec_tmp_int=\count126     LaTeX Info: Redefining \itshape on input line 2087.     LaTeX Info: Redefining \slshape on input line 2092.     LaTeX Info: Redefining \scshape on input line 2097.     LaTeX Info: Redefining \upshape on input line 2102.          (/usr/local/texlive/2013/texmf-dist/tex/latex/fontspec/fontspec.cfg)))     (/usr/local/texlive/2013/texmf-dist/tex/latex/xltxtra/xltxtra.sty     Package: xltxtra 2010/09/20 v0.5e Improvements for the "XeLaTeX" format          (/usr/local/texlive/2013/texmf-dist/tex/latex/realscripts/realscripts.sty     Package: realscripts 2013/03/18 v0.3c Access OpenType subscripts and superscrip     ts     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \fakesubscript with arg. spec. 'm' on line 19.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \fakesuperscript with arg. spec. 'm' on line 22.     .................................................          *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \textsubscript with arg. spec. 's' on line 25.     *************************************************     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \textsuperscript with arg. spec. 's' on line 28.     *************************************************     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \realsubscript with arg. spec. 'm' on line 45.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \realsuperscript with arg. spec. 'm' on line 60.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \textsubsuperscript with arg. spec. 'sO{l}mm' on     . line 138.     .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \textsupersubscript with arg. spec. 'sO{l}mm' on     . line 143.     .................................................     \subsupersep=\dimen141     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/metalogo/metalogo.sty     Package: metalogo 2010/05/29 v0.12 Extended TeX logo macros     \xl@everylogo=\toks18     \xl@@everylogo=\toks19     LaTeX Info: Redefining \TeX on input line 193.     LaTeX Info: Redefining \LaTeX on input line 202.     LaTeX Info: Redefining \LaTeXe on input line 219.     )     \xxt@tempbox=\box41     )     (./moderncvstyleoldstyle.sty     Package: moderncvstyleoldstyle 2013/04/29 v1.5.1 modern curriculum vitae and le     tter style scheme: oldstyle          (/usr/local/texlive/2013/texmf-dist/tex/latex/changepage/changepage.sty     Package: changepage 2009/10/20 v1.0c check page and change page layout     \c@cp@cntr=\count127     \cp@tempcnt=\count128     )     (./kurier.sty     Invalid UTF-8 byte or sequence at line 27 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 33 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 33 replaced by U+FFFD.     Package: kurier 2005/10/03 v.1.2 Kurier package (MW)     \c@mv@kurier=\count129     \c@mv@kurierbold=\count130     LaTeX Font Info:    Overwriting symbol font `operators' in version `kurier'     (Font)                  OT1/cmr/m/n --> OT1/kurierlm/m/n on input line 59.     LaTeX Font Info:    Overwriting symbol font `letters' in version `kurier'     (Font)                  OML/cmm/m/it --> OML/kurierl/m/it on input line 60.     LaTeX Font Info:    Overwriting symbol font `symbols' in version `kurier'     (Font)                  OMS/cmsy/m/n --> OMS/kurierl/m/n on input line 61.     LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `kurier'     (Font)                  OMX/cmex/m/n --> OMX/kurierl/m/n on input line 62.     LaTeX Font Info:    Overwriting symbol font `operators' in version `kurierbold'          (Font)                  OT1/cmr/m/n --> OT1/kurierlm/b/n on input line 63.     LaTeX Font Info:    Overwriting symbol font `letters' in version `kurierbold'     (Font)                  OML/cmm/m/it --> OML/kurierl/b/it on input line 64.     LaTeX Font Info:    Overwriting symbol font `symbols' in version `kurierbold'     (Font)                  OMS/cmsy/m/n --> OMS/kurierl/b/n on input line 65.     LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `kurierbo     ld'     (Font)                  OMX/cmex/m/n --> OMX/kurierl/b/n on input line 66.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `kurier'     (Font)                  OT1/cmr/bx/n --> OT1/kurierl/bx/n on input line 68.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `kurier'     (Font)                  OT1/cmss/m/n --> OT1/kurierl/m/n on input line 69.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `kurier'     (Font)                  OT1/cmr/m/it --> OT1/kurierl/m/it on input line 70.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `kurier'     (Font)                  OT1/cmtt/m/n --> OT1/kurierl/m/n on input line 71.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `kurierbold'          (Font)                  OT1/cmss/m/n --> OT1/kurierl/bx/n on input line 72.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `kurierbold'          (Font)                  OT1/cmr/m/it --> OT1/kurierl/bx/it on input line 73.     ) (./moderncviconsletters.sty          LaTeX Warning: You have requested package `moderncviconsletters',                    but the package provides `moderncviconsmarvosym'.          Package: moderncviconsmarvosym 2013/04/29 v1.5.1 modern curriculum vitae and le     tter icons: letters     )     \quotewidth=\skip64     \hintscolumnwidth=\skip65     \separatorcolumnwidth=\skip66     \maincolumnwidth=\skip67     \doubleitemcolumnwidth=\skip68     \listitemsymbolwidth=\skip69     LaTeX Font Info:    Try loading font information for U+mvs on input line 74.      (/usr/local/texlive/2013/texmf-dist/tex/latex/marvosym/umvs.fd)     \listitemmaincolumnwidth=\skip70     \listdoubleitemmaincolumnwidth=\skip71          *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \section with arg. spec. 'sm' on line 158.     *************************************************     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \subsection with arg. spec. 'sm' on line 165.     *************************************************     \cventryyearbox=\box42     \cventrytitleboxwidth=\skip72     \cvitemwithcommentmainbox=\box43     \cvitemwithcommentmainlength=\skip73     \cvitemwithcommentcommentlength=\skip74     ) (./moderncvcolorgreen.sty     Package: moderncvcolorgreen 2013/04/29 v1.5.1 modern curriculum vitae and lette     r color scheme: green     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/geometry/geometry.sty     Package: geometry 2010/09/12 v5.6 Page Geometry          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifvtex.sty     Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)     Package ifvtex Info: VTeX not detected.     )     \Gm@cnth=\count131     \Gm@cntv=\count132     \c@Gm@tempcnt=\count133     \Gm@bindingoffset=\dimen142     \Gm@wd@mp=\dimen143     \Gm@odd@mp=\dimen144     \Gm@even@mp=\dimen145     \Gm@layoutwidth=\dimen146     \Gm@layoutheight=\dimen147     \Gm@layouthoffset=\dimen148     \Gm@layoutvoffset=\dimen149     \Gm@dimlist=\toks20     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty     Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)               (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty     Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)     Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     Package hobsub Info: Skipping package `ifluatex' (already loaded).     Package hobsub Info: Skipping package `ifvtex' (already loaded).     Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)     Package hobsub Info: Skipping package `ifpdf' (already loaded).     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)     Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: pdfTeX >= 1.30 not detected.     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode not found.     Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO     )     Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)     Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)     )     Package hobsub Info: Skipping package `hobsub' (already loaded).     Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)     Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)     Package: xcolor-patch 2011/01/30 xcolor patch     Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)     Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)     Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)     Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/auxhook.sty     Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)     )     \@linkdim=\dimen150     \Hy@linkcounter=\count134     \Hy@pagecounter=\count135          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/pd1enc.def     File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     )     \Hy@SavedSpaceFactor=\count136          (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/hyperref.cfg     File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive     )     Package hyperref Info: Option `unicode' set `true' on input line 4319.          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/puenc.def     File: puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)     )     Package hyperref Info: Hyper figures OFF on input line 4443.     Package hyperref Info: Link nesting OFF on input line 4448.     Package hyperref Info: Hyper index ON on input line 4451.     Package hyperref Info: Plain pages OFF on input line 4458.     Package hyperref Info: Backreferencing OFF on input line 4463.     Package hyperref Info: Implicit mode ON; LaTeX internals redefined.     Package hyperref Info: Bookmarks ON on input line 4688.     \c@Hy@tempcnt=\count137     LaTeX Info: Redefining \url on input line 5041.     \XeTeXLinkMargin=\dimen151     \Fld@menulength=\count138     \Field@Width=\dimen152     \Fld@charsize=\dimen153     Package hyperref Info: Hyper figures OFF on input line 6295.     Package hyperref Info: Link nesting OFF on input line 6300.     Package hyperref Info: Hyper index ON on input line 6303.     Package hyperref Info: backreferencing OFF on input line 6310.     Package hyperref Info: Link coloring OFF on input line 6315.     Package hyperref Info: Link coloring with OCG OFF on input line 6320.     Package hyperref Info: PDF/A mode OFF on input line 6325.     LaTeX Info: Redefining \ref on input line 6365.     LaTeX Info: Redefining \pageref on input line 6369.     \Hy@abspage=\count139     \c@Item=\count140     \c@Hfootnote=\count141     )          Package hyperref Message: Driver (autodetected): hxetex.          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hxetex.def     File: hxetex.def 2012/11/06 v6.83m Hyperref driver for XeTeX          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/stringenc.sty     Package: stringenc 2011/12/02 v1.10 Convert strings between diff. encodings (HO     )     )     \pdfm@box=\box44     \c@Hy@AnnotLevel=\count142     \HyField@AnnotCount=\count143     \Fld@listcount=\count144     \c@bookmark@seq@number=\count145          (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty     Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     Package rerunfilecheck Info: Feature \pdfmdfivesum is not available     (rerunfilecheck)             (e.g. pdfTeX or LuaTeX with package `pdftexcmds').          (rerunfilecheck)             Therefore file contents cannot be checked efficien     tly     (rerunfilecheck)             and the loading of the package is aborted.     )     \Hy@SectionHShift=\skip75     )     Package hyperref Info: Option `breaklinks' set `true' on input line 14.     Package hyperref Info: Option `bookmarksopen' set `true' on input line 14.          (./CVmin.aux)     \openout1 = `CVmin.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for EU1/lmr/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for T3/cmr/m/n on input line 14.     LaTeX Font Info:    Try loading font information for T3+cmr on input line 14.      (/usr/local/texlive/2013/texmf-dist/tex/latex/tipa/t3cmr.fd     File: t3cmr.fd 2001/12/31 TIPA font definitions     )     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Checking defaults for PU/pdf/m/n on input line 14.     LaTeX Font Info:    ... okay on input line 14.     LaTeX Font Info:    Try loading font information for EU1+kurierl on input line      14.     LaTeX Font Info:    No file EU1kurierl.fd. on input line 14.               LaTeX Font Warning: Font shape `EU1/kurierl/m/n' undefined     (Font)              using `EU1/lmr/m/n' instead on input line 14.          LaTeX Info: Redefining \microtypecontext on input line 14.     Package microtype Info: Character protrusion enabled (level 2).     Package microtype Info: Using default protrusion set `alltext'.     Package microtype Info: No adjustment of tracking.     Package microtype Info: No adjustment of spacing.     Package microtype Info: No adjustment of kerning.     Package microtype Info: Loading generic settings for font family     (microtype)             `kurierl' (encoding: EU1).     (microtype)             For optimal results, create family-specific settings.     (microtype)             See the microtype manual for details.     Package microtype Info: Loading generic settings for font family     (microtype)             `lmss' (encoding: EU1).     (microtype)             For optimal results, create family-specific settings.     (microtype)             See the microtype manual for details.     *geometry* driver: auto-detecting     *geometry* detected driver: xetex     *geometry* verbose mode - [ preamble ] result:     * driver: xetex     * paper: a4paper     * layout: <same size as paper>     * layoutoffset:(h,v)=(0.0pt,0.0pt)     * modes:      * h-part:(L,W,R)=(74.68848pt, 448.1309pt, 74.68849pt)     * v-part:(T,H,B)=(84.50467pt, 633.78513pt, 126.75705pt)     * \paperwidth=597.50787pt     * \paperheight=845.04684pt     * \textwidth=448.1309pt     * \textheight=633.78513pt     * \oddsidemargin=2.41849pt     * \evensidemargin=2.41849pt     * \topmargin=-24.76532pt     * \headheight=12.0pt     * \headsep=25.0pt     * \topskip=11.0pt     * \footskip=30.0pt     * \marginparwidth=0.0pt     * \marginparsep=0.0pt     * \columnsep=10.0pt     * \skip\footins=10.0pt plus 4.0pt minus 2.0pt     * \hoffset=0.0pt     * \voffset=0.0pt     * \mag=1000     * \@twocolumnfalse     * \@twosidefalse     * \@mparswitchfalse     * \@reversemarginfalse     * (1in=72.27pt=25.4mm, 1cm=28.453pt)          \AtBeginShipoutBox=\box45     Package hyperref Info: Link coloring OFF on input line 14.     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/nameref.sty     Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/gettitlestring.sty     Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)     )     \c@section@level=\count146     )     LaTeX Info: Redefining \ref on input line 14.     LaTeX Info: Redefining \pageref on input line 14.     LaTeX Info: Redefining \nameref on input line 14.          (./CVmin.out) (./CVmin.out)     \@outlinefile=\write3     \openout3 = `CVmin.out'.          \makecvtitlepicturebox=\box46     \makecvtitlepicturewidth=\skip76     \makecvtitlenamewidth=\skip77     \makecvinfobox=\box47     LaTeX Font Info:    Font shape `EU1/lmss/b/n' in size <10> not available     (Font)              Font shape `EU1/lmss/bx/n' tried instead on input line 16.          Underfull \hbox (badness 10000) detected at line 16     \EU1/lmss/bx/n/10 M      []          \makecvinfoheight=\skip78     \leftcolumnwidth=\skip79     LaTeX Font Info:    Font shape `EU1/lmss/b/n' in size <14.4> not available     (Font)              Font shape `EU1/lmss/bx/n' tried instead on input line 18.     LaTeX Font Info:    Font shape `EU1/lmss/b/n' in size <10.95> not available     (Font)              Font shape `EU1/lmss/bx/n' tried instead on input line 20.     LaTeX Font Info:    Try loading font information for OT1+kurierlm on input line      20.     (/usr/local/texlive/2013/texmf-dist/tex/latex/kurier/ot1kurierlm.fd     File: ot1kurierlm.fd 2005/10/03 v1.2 font definition file for OT1/kurierlm (MW)          )     Package microtype Info: Loading generic settings for font family     (microtype)             `kurierlm' (encoding: OT1).     (microtype)             For optimal results, create family-specific settings.     (microtype)             See the microtype manual for details.     LaTeX Font Info:    Try loading font information for OML+kurierl on input line      20.          (/usr/local/texlive/2013/texmf-dist/tex/latex/kurier/omlkurierl.fd     File: omlkurierl.fd 2008/07/22 v0.995 font definition file for OML/kurierl (MW)          )     LaTeX Font Info:    Try loading font information for OMS+kurierl on input line      20.          (/usr/local/texlive/2013/texmf-dist/tex/latex/kurier/omskurierl.fd     File: omskurierl.fd 2008/07/22 v0.995 font definition file for OMS/kurierl (MW)          )     LaTeX Font Info:    Try loading font information for OMX+kurierl on input line      20.          (/usr/local/texlive/2013/texmf-dist/tex/latex/kurier/omxkurierl.fd     File: omxkurierl.fd 2008/07/22 v0.995 font definition file for OMX/kurierl (MW)          )     Package atveryend Info: Empty hook `BeforeClearDocument' on input line 24.      [1          ]     Package atveryend Info: Empty hook `AfterLastShipout' on input line 24.          (./CVmin.aux)     Package atveryend Info: Empty hook `AtVeryEndDocument' on input line 24.     Package atveryend Info: Empty hook `AtEndAfterFileList' on input line 24.               LaTeX Font Warning: Some font shapes were not available, defaults substituted.           )      Here is how much of TeX's memory you used:      23738 strings out of 493938      455321 string characters out of 6148856      493358 words of memory out of 5000000      26800 multiletter control sequences out of 15000+600000      17468 words of font info for 43 fonts, out of 8000000 for 9000      1144 hyphenation exceptions out of 8191      44i,11n,45p,771b,338s stack positions out of 5000i,500n,10000p,200000b,80000s      kurier.sty


title: glossaries : accent commands in 'see' references

text: Using the `glossaries` package, referencing another entry in `\newglossaryentry` with the `see=label` key, the following problem occurs if the `name=...` key of the referenced label has accent commands: ![](http://i.stack.imgur.com/HzzJ3.png)               \newglossaryentry{right-view}     {name={Right View},     description={The first factor of the Noble Eightfold Path},     see=samma-ditthi}          \newglossaryentry{samma-ditthi}     {name={samm\=a-di\d{t}\d{t}hi},     description={Right View, the first of the eight factors of the Noble Eightfold Path, the path leading to \textit{nibb\=ana}. In the highest sense to have Right View means to understand the Four Noble Truths}}          \gls{right-view}, \gls{samma-ditthi}      **How to fix this?**


title: Is there any support for Esperanto in LaTeX?

text: Is Esperanto supported by LaTeX? And, if so, are there any required packages?


title: Can I conditionally scale an image with graphicx

text: In particular, when I include a graphic, I would like it to have `width=\linewidth` if it's width is greater than `\linewidth`, but I'd like it to have `\scale=1` if it is smaller than the line width. In other words, I'd like my images to only shrink if they wouldn't otherwise fit. I know that generating a document generally involves iterating on the typesetting, but when creating internally-shared documents that aren't going to be published, I'm not too concerned about how exactly perfect the layout looks. I'd just like it to be decent the first time around and not have to worry about iterating on it.nally-share


title: renew section command with args

text: How can I renew the section command to include some additional arguments and start a multicolum section? something like: `\section{title}{toc- title}{picture}{second picture}{subtitle}{author}` I just succeeded with a new environment, but now I have to add the TOC entries manually (and sections are not displayed in TexmakerX) here a sample:               \documentclass[9pt,twoside]{article}     \usepackage[papersize={ 32cm , 47cm }]{geometry}     \usepackage[latin]{babel}     \usepackage{ulem}     \usepackage{calc}     \usepackage{graphicx}     \usepackage{lipsum}          \usepackage{palatino,times}     \usepackage{microtype}     \usepackage{float}     \usepackage{multicol}     \usepackage{fixltx2e}     \usepackage{calc}          \newenvironment{mysection}[5]{       %before       \noindent         \begin{minipage}[l]{0.6\linewidth}         \centering     %    \includegraphics[height=40pt]{picts/pic-#3.jpg}         \framebox{first picture}         \par         \textbf{#2}\par         \rule{\linewidth-50pt}{3pt}         \section*{#5}         \rule{\linewidth-50pt}{3pt}         \end{minipage}         \hfill         \begin{minipage}[l]{0.4\linewidth}     %    \includegraphics[width=\linewidth]{picts/pic-#4.jpg}         \noindent\framebox(280,200){this is the main an big picture}         \end{minipage}            \begin{multicols}{4}       By\textbf{ #1}       \bigskip          }     { %after     \end{multicols}     }          \begin{document}     \begin{mysection}{authorname}{subtitle}{pict}{anotherpict}{this is the section title}               \lipsum[1-4]          \end{mysection}          \end{document}


title: Same affiliation for all authors without extra packages

text: I have a working paper with a colleague from the same institution, so we entered:               \author{A B \and C d}      how can I now add affiliation, so that its for both authors (centred), and not only for one of them? I would prefer not to use extra packages if possible.


title: \textlf{} for light font weight – how common?

text: In the `allrunes.sty` documentation (which uses Metafont), I’ve recently seen the `\textlf` macro for the first time. It selects a light font and therefore accompanies the frequent command `\textbf` and its sibling `\textmd` for default ‘medium’. Searching for ‘textlf’ on SX showed that this string is also a package option for Minion Pro, but there it switches on _lining figures_ and it seems some other packages have a command `\textlf` that does the same.   * So I wonder, how commonly supported is `\textlf` and is there an established alternative without conflicts?   * More generally, if I’m using a typeface with fonts for many weights available (e.g. thin, light, semi-bold, bold, heavy, black …), how are they best accessed in Xe-/LuaTeX?  The second question is relevant, for instance, if I was to write a supporting package for an Open Type typeface that provided predefined `\text…` macros, which wrap `fontspec`’s `\newfontfamily` or rather the less known `\newfontface` within `\DeclareTextFontCommand`.


title: Vertical alignment in TikZ matrix

text: I am using a TikZ matrix to make a diagram where the entries in a row vary considerably in size:               \documentclass{article}          \usepackage{tikz,amsmath}     \usetikzlibrary{matrix}          \begin{document}          \newcommand{\RandomDots}{%         \begin{tikzpicture}             \foreach \x in {0.1, 0.3,...,1}                 \foreach \y in {0.1, 0.3,...,1}                 {                     \pgfmathrandominteger{\r}{1}{5}                     \fill (\x,\y) circle [radius=\r/5 pt];                 }         \end{tikzpicture}     }          \begin{tikzpicture}[%         feature box/.style = {rectangle, draw, anchor=center},         ]              \matrix [             matrix of math nodes,             column sep = 1cm,             row sep = 0.1cm         ]         {             |(a)| a & \node [feature box] (f1) {\RandomDots}; \\             |(b)| b & \node [feature box] (f2) {\RandomDots}; \\         };              \draw [->] (a) -- (f1);         \draw [->] (b) -- (f2);     \end{tikzpicture}     \end{document}      The resulting image looks like this: ![enter image description here](http://i.stack.imgur.com/nNOQK.png) However, I would like the connections to be horizontal/the box from \RandomDots to be vertically aligned with the letters in the first column. Does anyone know of a way to do this?


title: Should I load microtype with pdflatex?

text: Should I always load the `microtype` package with `pdflatex`? Could it produce unwanted effects a naive user (like me) might ignore? Are there any known issues as for compatibility with other packages? In fact, I can't see any differences in the appearance of the output but I came across some posts which say that microtype is essentially a must for pdflatex since it greatly improves the pdf output.


title: Automatic command insertion for successive capital letters

text: I work in a field with heavy use of acronyms. To make my documents visually more appealing, I like to use a moderate downscaling of the capital letters.               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage{tgtermes}     \usepackage{graphicx}          \newcommand{\acr}[1]{\protect\scalebox{.93}{#1}}                  \begin{document}          Just a few words to see the scaling of an acronym such as \acr{GEP}. With the scaling, the acronym obviously blends in better with the rest of the text.          \end{document}      For several reasons (e.g. exchange with coauthors), I would prefer the insertion of the command to happen automatically – e.g. just writing "of an acronym such as GEP". This would require (La?)TeX to automatically find successive capital letters and insert a previously defined macro. Is that possible? If yes, how? (Extra points if the scaling factor of `\scalebox` could depend on the number of successive capital letters.)


title: How to run PSTricks in TeXShop

text: Why can't I run the following command in my TeXShop?               \documentclass{article}     \usepackage{pstricks-add}           \begin{document}      \psset{algebraic=true}      \pspicture(-2,-0.5)(2,2)      \psline{<->}(-2,0)(2,0)      \psline{->}(0,-0.5)(0,2)      \psplot{-1.5}{1}{x*x+x}      \endpspicture      \end{document}


title: Change bold font

text: I want to use **Avenir Next Medium** as the bold font for my document whenever I use `\textbf`. Is there a way I can use `\textbf` and specify a font to be used. After that, can I also customize the size for any font rendered using `\textbf`?


title: MiKTeX 2.9 Package Manager and Updater crash - problem with repositories?

text: I installed MiKTeX Basic on Windows XP Professional (v. 2002, with Service Pack 3) (32) (at work), but it keeps crashing when I try to look up updates or install packages. It seems to not be able to find package repositories. It seems like it can't find any package repositories. When I try to install a package on the go, the Package Installation window says "The package will be installed from": . If I try to change it, the Change Package Repository window shows an empty list when I'm supposed to select a new one. Moments later it crashes. I've tried installing them using the Package Manager, and while it does find the packages, when I hit "install", the downloading window opens but the statistics number boxes are empty (nothing's happening). Then it crashes. I've tried both the Admin and non-admin versions. It's very similar when I try to look for un update. I get to the Update MiKTeX window, choose "Use the nearest package repository" and click Next, then it just freezes and crashes. I've installed and uninstalled the Basic version several times, and have rebooted my computer as well. I tried the Complete version as well, but there was an error (Windows API 1113). The errors are the same whether I have admin rights or not. I also tried downloading some packages from http://ctan.org/tex- archive/systems/win32/miktex/tm/packages/ onto my computer and setting that as the local package repository but it tells me "Not a local repository". Without any extra packages I'm able to compile a basic Hello World.


title: Tikz picture, align left in column using beamer

text: I'm currently struggling with aligning a `tikzpicture`, within a figure environment, at the left of a column. It seems like the figure is always align centre, or right Using beamer, for a presentation.                   \begin{column}{0.5\textwidth}             \begin{figure}                 \input{pics/tikzpicture.tex}             \end{figure}         \end{column}


title: How to embed a line-chart from a logfile?

text: I have a logfile `progress.txt` in the format               <epoch> <space> <number> <space> <rest...>      Here an example excerpt:               $ cat progress.txt      1375097557 40 523 3927 26884     1375162528 40 529 3939 26969     1375170979 44 630 4761 32536     1375171815 44 637 4822 32965     ....      I would like to have LaTeX to render a **line-chart** with _x-axis_ from _column-1_ and _y-axis_ from _column-2_. The _column-1_ is in _seconds since 1970_ format, but this is not that important because I don't need any _x-axis_ -labeling. The chart would look like this, then:               |               -----     |             --     |       ------       |-------            |     +-----------------------      If simple enough, **without external reprocessing** , although it would not be a big problem, because I use a `Makefile` anyway. **An extension** would be to use _column-5_ on a **secondary y-axis** , then both drawn in different colors or styles, i.e.               |             °°-----   :     |       °°°°°°--        :     |      °------          :     |-----°-                :     |°°°°°                  :     +-----------------------+      I use               \usepackage{tikz}      anyway, so a _TikZ_ -solution is preferred.


title: Tikz chain node loop to start of node

text: I'm trying to create a node in a linked list and let it point back to itself.               \begin{tikzpicture}[list/.style={rectangle split, rectangle split parts=2,     draw, rectangle split horizontal}, >=stealth, start chain]       \node[list,on chain] (A) {1};       \coordinate[above = 0.3 of A] (aa);            \draw[*-] let \p1 = (A.two), \p2 = (A.center) in (\x1,\y2) -- (A.east);            \draw [-] (A.east) to[bend right=90] node[auto] {} (aa);       \draw [->] (aa) to[bend right=90] node[auto] {} (A.west);     \end{tikzpicture}      This results in the following image. ![Result](http://i.stack.imgur.com/CMgYt.png) But I would like it to be a nicer arrow like the following. A single arrow and it hits the item square on. ![Desired result](http://i.stack.imgur.com/aZL8R.jpg)


title: Allow \listoffigures captions to break across pages

text: I'm using the command `\listoffigures` to list all figure captions after the contents page. Many of my figure captions are quite long and as a result LaTeX is placing 2 captions on a page with a large gap in between them. I would like to prevent these gaps by allowing figure captions to be split across pages just like normal text would be - how can I do this? I am aware of the short caption option with `\caption[short]{long}` for long captions but this is not appropriate for my purposes. Minimum example:               \documentclass{article}     \usepackage{blindtext}     \usepackage{capt-of}          \begin{document}          \listoffigures     \newpage     \centering          \section{Section 1}     \rule{0.5\linewidth}{0.5\linewidth}     \captionof{figure}{\blindtext}          \section{Section 2}     \rule{0.5\linewidth}{0.5\linewidth}     \captionof{figure}{\blindtext}          \section{Section 3}     \rule{0.5\linewidth}{0.5\linewidth}     \captionof{figure}{\blindtext}          \section{Section 4}     \rule{0.5\linewidth}{0.5\linewidth}     \captionof{figure}{\blindtext}          \end{document}      This creates an analogous problem to the one I have: in the list of figures, the third figure legend starts on a new page leaving a large space at the end of the second figure legend (bottom of page 1). How can I force the third figure legend to start on page 1 and finish on page 2 like normal text?


title: Improvement of PSTricks code for drawing of balls in a triangular box

text: Consider the following. **Code**               % pdflatex -shell-escape test.tex          \documentclass{article}          \usepackage{auto-pst-pdf,pst-eucl}     \usepackage{expl3}          \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff          \def\maksimumB{\calc{2*(1+3^(1/2))*\radius} }     \def\maksimumH{\calc{(3+3^(1/2))*\radius} }     \def\Angle[#1]#2#3#4{\pstMarkAngle{#2}{#3}{#4}{#1$60^{\circ}$}}          \begin{document}          \def\radius{21.5 }     \psset{unit=0.07cm}     \begin{pspicture}(\maksimumB,\maksimumH)      \pnodes{P}(0,0)%                (\maksimumB,0)%                (!\maksimumB 2 div \maksimumH)      \pspolygon(P0)(P1)(P2)      \pnodes{C}(!3 sqrt \radius mul \radius)%                (!2 3 sqrt add \radius mul \radius)%                (!\maksimumB 2 div 1 3 sqrt add \radius mul)      \pscircle(C0){\radius}      \pscircle(C1){\radius}      \pscircle(C2){\radius}      \multido{\iA=0+1,\iB=1+1,\r=210+120}{3}{%        \psdot(C\iA)        \uput[\r](C\iA){$C_{\iB}$}      }     \psset{%       linestyle=dotted,%       dotsep=1.5pt,%       LabelSep=9,%       MarkAngleRadius=5%     }      \Angle[\footnotesize]{P2}{P1}{P0}      \Angle[\footnotesize]{P1}{P0}{P2}      \Angle[\footnotesize]{P0}{P2}{P1}     \psset{%       LabelSep=7,%       MarkAngleRadius=3%     }      \pspolygon(C0)(C1)(C2)      \Angle[\scriptsize]{C1}{C0}{C2}      \Angle[\scriptsize]{C0}{C2}{C1}      \Angle[\scriptsize]{C2}{C1}{C0}     \end{pspicture}          \end{document}      **Output** ![output](http://i.stack.imgur.com/orBVv.jpg) **Question** I have the desired output but the code is somewhat messy, I think; can anyone help me simplify if?


title: Positioning pgfplots axis in tikzpicture

text: I want to put a pgfplots plot beside several other pdf images that I import into my document, but I can't figure out how to position the pgfplots `axis` in the larger `tikzpicture`:               \documentclass{article}          \usepackage{graphicx}     \usepackage{pgfplots}     \pgfplotsset{compat=1.9}          \begin{document}     \begin{figure*}            \begin{center}         \begin{tikzpicture}                 \node[anchor=south west] (img) at (0,0)                  {\includegraphics[width=0.3\linewidth]{1.pdf}};            \node[anchor=south west]                  at (0.01\linewidth,0.01\linewidth) {a};                         \node[anchor=south west] (img) at (0.33\linewidth,0)                  {\includegraphics[width=0.3\linewidth]{1.pdf}};            \node[anchor=south west]                  at (0.34\linewidth,0.01\linewidth) {b};                  \begin{axis}[width=0.45\linewidth, yticklabels={}]              \addplot [const plot, fill=red]                        table [x index=0, y index=1]                       {hist.txt}              \closedcycle;              \end{axis}              \end{tikzpicture}       \end{center}            \caption{\label{detdemo}An example of my output}     \end{figure*}     \end{document}      here is the example output: ![example output](http://i.stack.imgur.com/fbtME.png) The `axis` seems to begin from the `(0,0)` of the `tikzpicture`. I wanted to see how I can position this axis after the second picture? Such that its bottom left corner is on `(0.66\linewidth,0)`.


title: Ligatures not formed when using MinionPro with Inconsolata

text: I use Minion in a document via the MinionPro package, and now I want to use Inconsolata for, amongst other things, code listings. When I include the fontenc package with the T1 option for Inconsolata, ligatures for “fi”, “fl”, etc. appear as separate characters in Minion. If I don’t use fontenc, I can see the ligatures, but some characters like “>” are not displayed in my code listings in Inconsolata. Any idea what I could try? I use pdfTeX 3.1415926-1.40.10-2.2 from TeX Live on an Ubuntu system. A small example:               \documentclass[a4paper]{article}     \usepackage{MinionPro}     \usepackage[T1]{fontenc}     \usepackage{inconsolata}     \begin{document}          Please save the following to a file:          \begin{verbatim}     #include <stdio.h>          int main(int argc, char *argv[])     {         if (argc > 1)             printf("No parameters.\n");         else             printf("Hello.\n");     }     \end{verbatim}          \end{document}      If I remove the fontenc package line, the `>` disappears in the output, but I get the “fi” ligature in “file”; as is, I get the `>`, but separate characters for “fi”.


title: Ancient Greek hyphenation in LuaLaTeX

text: Can anybody tell me the current state of hyphenation patterns in LuaLaTeX, especially with regard to Ancient Greek? I searched here on tex.sx and on the web. There are many mailing lists discussing particular problems, but all is very scattered. There is also some documentation on CTAN for `hyph-utf8` but it lacks information for LuaLaTeX (or I missed this bit). So, what should I do if I want to typeset Ancient Greek _and_ want to have the text properly hyphenated? Or should I wait for further developments?


title: a line through a column in MathML

text: I have a problem with MathML. How can I draw a line through a column (row and column at the same time) in a matrix? An example in TEX: Draw a line through one column of a matrix


title: Highlight an equation within an align environment with color option

text: I'd really like to do exactly what's being asked for in this question: Highlight an equation within an align environment, but with the ability to change the color when I call it, so that I could have one equation highlighted yellow, the next one highlighted lime, a third highlighted magenta, and a fourth highlighted yellow again, etc. (I'd also like the frame to be the same color as the highlight, but I'm pretty sure I can figure that part out. :) ) I really like the first solution - the one with 15 votes - and would love to know how to tweak that one to do what I want - something like `\alignedbox[yellow]`. I'm not including a MWE since my question is just a follow-up to a previous one, but I can if it would be helpful. I don't know if it's relevant or helpful, but what I'm doing right now is just using this that I found but don't really understand:               \newcommand{\highlight}[2][yellow]{\mathchoice%         {\colorbox{#1}{$\displaystyle#2$}}%          {\colorbox{#1}{$\textstyle#2$}}%         {\colorbox{#1}{$\scriptstyle#2$}}%         {\colorbox{#1}{$\scriptscriptstyle#2$}}}%      and then using `\phantom{}` and `\quad` and such to try to get the horizontal spacing right so that things align the way I want. :)


title: Using siunitx to display confidence intervals?

text: Is there a native way of using `siunitx` to display the confidence interval of a value without using a separate calls of `siuntix` separate definition. I am doing something like this at the moment, which seems verbose, and isn't too readable:               \SI{107205}{meters} (\SI{99}{\% CI} \SIrange{83000}{138400}{meters})      This would result in something like:               107205 meters (99% CI 83000 meters - 1384000 meters)


title: Table overlapping text

text: I have a two column document and a table that I want it to be page wide. The problem is the table overlaps with the text after the table. Here is the table:               \begin{tabularx}{\textwidth}[b]{ | p{1cm} | p{3cm} | p{8cm} | X | }     \hline         \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D}\\ \hline\hline           blah & blah &blah &blah \\           blah & blah &blah &blah \\           blah & blah &blah &blah \\           blah & blah &blah &blah       \end{tabularx}          Some TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome TextSome Text      The problem is that the table is printed on top of the "Some Text" paragraph. what can I do ?


title: The strange \luaescapestring in LuaTeX

text: \directlua{%       local s = [[\luaescapestring{\TeX}]]       print(s)}      After `\luaescapestring{\TeX}`, I think I should get               T\\kern -.1667em\\lower .5ex\\hbox {E}\\kern -.125emX      then this line will be converted into a string in Lua by using `[[ ]]` operation(at the same time, `\\\` will be `\`), thus,               s = "T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX"      but the result printed is               T\\kern -.1667em\\lower .5ex\\hbox {E}\\kern -.125emX      why?


title: Eliminate/Edit PDF properties added by pdfLaTeX

text: Is there a way to change the properties that are added to PDF docs? For instance, when I go the **Properties** panel in Acrobat, I see: > Application: LaTeX with hyperref package > > PDF Producer: PdfTeX-1.40.11 > > PTEX.Fullbanner: This is pdfTeX Version 3.1415926-1.40.11-22 (TeX Live 2010) These are the only ones I see with my version of Acrobat, but there might be more embedded in the PDF. I am wondering if there are settings to control the values of the properties that are embedded in the PDF doc. I recall a case where Acrobat had embedded the login userid in it, but I don't see that here on my Mac. I would like to customize all these properties, unless of course they are necessary (I am assuming that the list of fonts is required in order to be able to display the PDF properly). There most likely is a way to do this with Acrobat Pro, but that would require me to do this separately for each file.


title: How can I tell my edges to arc above when I draw automata with tikzpicture?

text: I am drawing finite automata with TikZ. Currently, transition arrows overlap between nodes because they both go across horizontally. How can I tell one arrow to arc above and the other arrow to arc under? Here's what I have:               (q_0) edge node {H} (q_1)     (q_1) edge node {T} (q_0)


title: Prevent spacing in sub or super scripts with eulervm

text: When typing formulas to explain physics, sometimes non spaced text in super or subscripts is helpful.               $q_{heat}$      To prevent spacing in subscripts, I often used `\textit` in math mode:               $q_{\textit{heat}}$      since I use classic thesis together with `eulervm`, the `\textit` trick doesn't work any more, because text font changes. Is there a better way to prevent spacing without changing the font? How do I define a `\texteulervm` environment correctly? * * * As an example what happens, the following code:               j_{WDR,runoff}^{w} & \ne j_{\text{WDR,runoff}}^{w}      results in: ![FontChange](http://i.stack.imgur.com/qED5k.png) please note the difference in the subscript.


title: Nomenclatura-How to display one symbol used in two differents contexts or more

text: The following example builds one nomenclatura (the list of some importa symbols). The problem I met is the following one : if one symbol is used in two contexts, this symbol appears two times (see the letter a in my example). Is it possible to change this so as to obtain for example the letter a appears only one time in the nomenclatura following by list of the different uses of this letter ?               \documentclass{article}         \usepackage{nomencl}         \makenomenclature          \begin{document}          \section*{Main equations}          \begin{equation}         a=\frac{N}{A}     \end{equation}%          \nomenclature{$a$}{The number of angels per unit area}%     \nomenclature{$N$}{The number of angels per needle point}%     \nomenclature{$A$}{The area of the needle point}%          The equation $\sigma = m a$%          \nomenclature{$\sigma$}{The total mass of angels per unit area}%     \nomenclature{$m$}{The mass of one angel} follows easily.          Let's try with another $a$... %     \nomenclature{$a$}{The area of the needle point}%          \printnomenclature          \end{document}      The solution given just after by Werner does the job but there is still one problem from my point of view. Instead of...               a    The number of angels per unit area          The area of the needle point      it would be better to have something like...               a    - The number of angels per unit area          - The area of the needle point      Is it possible to do that ?


title: Can I detect whether my macro is being used inside a subscript or superscript?

text: I defined this macro:               \newcommand{\foldeq}[1]{\sim_{#1}}      Later on, I noticed that when it's used inside a subscript, it looks a little bit hard to tell whether it's `$\sim f$` or `$\sim_f$`. (`$\sim f$` is not meaningful, but that's beside the point.) So I added an additional macro, for use in subscripts (and in principle superscripts, though that also would not be meaningful):               \newcommand{\scriptfoldeq}[1]{\foldeq{\raisebox{-0.25mm}{$\scriptscriptstyle #1$}}}      But then it occurred to me that it would be quite convenient if there is a way to detect whether a macro is being called inside a subscript or superscript, and react accordingly. Is there? # Update: Using David's answer, here is what my original macro looks like now:               \newcommand{\foldeq}[1]{         \sim_{\mathchoice{}{}{#1}{\raisebox{-0.25mm}{$\scriptscriptstyle #1$}}}         % {\sim_f} looks similar to {\sim f} in subscript/superscript.     }


title: Using AMS Euler Font for a portion of a document

text: I have not used different fonts in a single document before. Therefore, this is a question by an amateur/(or a first-time user). I want to use AMS Euler font just for a portion of my document. After spending some time on TeX.sx I came up with the following code.               \documentclass[12pt]{report}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{epstopdf}     \usepackage{theorem}     \usepackage{euscript}          \newcommand*{\myfont}{\fontfamily{AMSEuler}\selectfont}          \begin{document}     Using default font: \(\frac{dy}{dx}\)     \begin{myfont}     Using AMSEuler: \(\frac{dy}{dx}\)     \end{myfont}     Back to default font: \(\frac{dy}{dx}\)     \end{document}      The following is the output. It does not look like the AMS Euler font to me. Am I right? If so, how can I select and use AMS Euler font? ![enter image description here](http://i.stack.imgur.com/yle3j.png) NEW EDIT based on comment: I changed the last few lines. However, the output is still the same. The reason is (IMHO) there is no "AMSEuler". Therefore, the question remains. May be, it is not possible to use AMS Euler font this way.               \begin{document}     Using default font: \(\frac{dy}{dx}\)     \myfont{%     Using AMSEuler: \(\frac{dy}{dx}\)     }     Back to default font: \(\frac{dy}{dx}\)     \end{document}


title: LaTeX symbol for broken long repetitive figures

text: I do not remember which symbol is used for breaking long and repetitive figures. The meaning of this symbol is like three dots, that is it suggests that the figure is very long and repetitive. In my case, I have a rectangle very long (`h<<w`, where h is the height and w is the width), and I would like to break it into two parts.


title: How to automate a dictionary (sorting, headers)?

text: 1. Here is a piece of solution to automate a dictionary using the links given in the first following comments. There are two problems to solve :     * When one definition starts on one page and finishes on another, the words in the headinga are not the good ones. In my example below, take a look at the page `1` where the last word must be `adhesive` and not `adhesion`, and in the page `2`, the first word must be `adjacent` and not `adhesive`. Is there a way to solve this problem ?      * Secundly, I would like the letter A of the section to be centerd using `\textbf{\textsf{...}}` for formatting.  Here is the code that I've wanted to improve.              % Sources :     %    1) http://tex.stackexchange.com/questions/30392/how-could-one-setup-a-layout-for-a-dictionary-if-possible     %    2) http://tex.stackexchange.com/questions/26122/indexing-an-interval-of-words-on-top-of-every-page          \documentclass[twoside]{article}         \usepackage{multicol}         \usepackage{ifthen}         \usepackage{fancyhdr}         \usepackage{enumerate}         \usepackage{lipsum}          % Empty \sectionmark         \renewcommand{\sectionmark}[1]{}              \fancyhead[L]{\textsf{\rightmark}}         \fancyhead[R]{\textsf{\leftmark}}         \fancyfoot[C]{\textbf{\textsf{\thepage}}}          % Entry command : \dict{<word>}{<gender>}{<text>}         \newcommand{\dict}[3]{%             \par\vspace{0.25\baselineskip} %             \textbf{\textsf{#1}} \textit{#2} #3 %             \markboth{#1}{#1}         }              \pagestyle{fancy}               \begin{document}          \section*{A}          \begin{multicols}{2}         \dict{adequate}{n}{\lipsum[1]}         \dict{adhere}{n}{\lipsum[2]}         \dict{adherence}{n}{\lipsum[3]}         \dict{adhesion}{n}{\lipsum[4]}         \dict{adhesive}{n}{\lipsum[5]}         \dict{adjacent}{n}{\lipsum[6]}         \dict{adjective}{n}{\lipsum[1]}         \dict{adjoin}{n}{\lipsum[2]}         \dict{adjourn}{n}{\lipsum[3]}         \dict{adjournment}{n}{\lipsum[4]}         \dict{adjunt}{n}{\lipsum[5]}         \dict{adjust}{n}{\lipsum[6]}     \end{multicols}          \end{document}        2. The solution found is the following one even if there is one remaining disturbing behavior, even if it is logical : in the last page of the output of the following code, `zero` appears in both headers...              % Sources :     %    1) http://tex.stackexchange.com/questions/30392/how-could-one-setup-a-layout-for-a-dictionary-if-possible     %    2) http://tex.stackexchange.com/questions/26122/indexing-an-interval-of-words-on-top-of-every-page     %    3) http://tex.stackexchange.com/questions/30947/how-to-automate-a-dictionary-sorting-headers/31017#31017          \documentclass[twoside]{article}         \usepackage{multicol}         \usepackage{fancyhdr}         \usepackage[bf,sf,center]{titlesec}          % Headers and footers         \fancyhead[L]{\textsf{\rightmark}}         \fancyhead[R]{\textsf{\leftmark}}              \fancyfoot[C]{\textbf{\textsf{\thepage}}}              \renewcommand{\headrulewidth}{1.4pt}         \renewcommand{\footrulewidth}{1.4pt}          % Entry command : \dict{<word>}{<gender>}{<text>}         \newcommand{\dict}[3]{%             \markboth{#1}{#1}%             \par\vspace{0.25\baselineskip}%             \textbf{\textsf{#1}} \textit{- #2 -} #3%         }              \pagestyle{fancy}          % For testing         \usepackage{lipsum}               \begin{document}          \section*{A}          \begin{multicols}{2}         \dict{adequate}{n}{\lipsum[1]}         \dict{adhere}{n}{\lipsum[2]}         \dict{adherence}{n}{\lipsum[3]}         \dict{adhesion}{n}{\lipsum[4]}         \dict{adhesive}{n}{\lipsum[5]}         \dict{adjacent}{n}{\lipsum[6]}         \dict{adjective}{n}{\lipsum[1]}         \dict{adjoin}{n}{\lipsum[2]}         \dict{adjourn}{n}{\lipsum[3]}         \dict{adjournment}{n}{\lipsum[4]}         \dict{adjunt}{n}{\lipsum[5]}         \dict{adjust}{n}{\lipsum[6]}     \end{multicols}               \section*{M}          \begin{multicols}{2}         \dict{main}{n}{\lipsum[3]}         \dict{material}{n}{\lipsum[1]}         \dict{mathematic}{n}{\lipsum[2]}         \dict{more}{n}{\lipsum[2]}     \end{multicols}               \section*{Z}          \begin{multicols}{2}         \dict{zebra}{n}{\lipsum \lipsum \lipsum}         \dict{zero}{n}{\lipsum[4]}     \end{multicols}          \end{document}